Comments (4)
OK I figured it out, it is a build tags issues. So the normal go get
wont return success but get into the source file run ./gobbi build will successfully built it. Then for my test all I have to pass the tags (same in the gobbi script file.
from gobbi.
As mentioned in https://pekim.github.io/gobbi/getting-started.html, start with getting the whole gobbi library,
go get github.com/pekim/gobbi
Then you'll be able to import a package such as gtk.
import "github.com/pekim/gobbi/lib/gtk"
That's followed by mention of the need to use build tags, and a link to a page with more details.
(The link was broken, and I've just fixed it.)
I'm open to suggestions about how to improve that documentation.
from gobbi.
Thanks, I have not read the doc, yet jumps in as usual as the README.md is only the first I read. Thus if the information and quick start added to README is probably useful IMHO.
I now have some issues (form porting my app gotk3 to gobbi) - that the builder.ConnectSignals()
has different signature. gotk3 allows me to define a signals := map[string]interface{}
but gobbi requires a uintptr
. I know I can connect signal manually for each widget but it is tiring ...
Any idea of quick way to connect signal?
from gobbi.
In general gobbi provides support for typesafe connection of signal handlers. Connecting signals for a Builder would, of necessity, connect signal handlers in a non typesafe way. So unlike most of gobbi, which is generated, this will need to be hand coded. That's fair enough given the specific case.
I think that I can probably follow a broadly similar approach to gotk3 for this. But it'll be non-trivial, and will take me some time. I doubt that I'll be able to get to it until the weekend.
from gobbi.
Related Issues (17)
- could not determine kind of name for C.g_networking_init HOT 2
- Support connecting signals for a Builder HOT 1
- code generation error HOT 3
- callback function signatures changed HOT 3
- Feature request: libhandy support HOT 4
- Use pkg-config to automatically generate build tags HOT 6
- Incompatible with gobject 2.62.4 HOT 7
- nullable string parameters HOT 3
- redundant code generation HOT 1
- How to extract element from GList HOT 1
- missing api gtk_text_buffer_create_tag() HOT 4
- Use girepository to invoke library functions HOT 1
- main_event_loop.go:55:10: undefined: SOURCE_REMOVE when running "Custom Drawing" Example Code HOT 7
- godoc missing api gtk.HeaderBarNew() HOT 2
- showcase applications built using gobbi HOT 2
- go modules: missing gtksource HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gobbi.