Rapid Application Development with Glade 3.0 Part 3

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
13,594
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Mar 29, 2009

Download project from http://thenerdshow.com/c/hasher.zip

GtkBuilder provides the glue to connect our xml interface to our C program. This is done using pseudo object-oriented functions in the form: gtk_some_widget_dosomething(GTK_SOME_WIDGET(widget)) which we could probably tuck into a macro somewhere, if we were smarter, something like #define DOIT(xx) gtk_some_widget_##xx(GTK_SOME_WIDGET(widget))

DOIT(show);
DOIT(set_text);
DOIT(make_toast);...

I guess when compiling on Windows, you need to precede callback functions with G_MODULE_EXPORT

Glade is a free and open source RAD tool for user interface design. It is distributed under the GNU General Public License (GPL).
Website: http://glade.gnome.org/

  • likes, 1 dislikes

Link to this comment:

Share to:

Uploader Comments (themanyone)

  • How did you generate the c code? I watched part 1 and part 2, then part 3 starts with the generated c code, where did it come from?

    I'm on Ubuntu 10.04, Glade 3.6.7 and GTK+ 2.2?

  • @LenWhistler I wrote that starting with one of the boilerplate Glade templates they provided. There is no generator with 3.0 and the one with 2.0 generated bad code. I suppose there are 3rd party generators, but it's way better to write your own.

  • thanks for the tutorial, its so difficult to find good and complete tutorials about graphic interfaces

  • It's ok now, but it's a moving target. These interfaces keep changing; it will likely go out of date.

see all

All Comments (9)

Sign In or Sign Up now to post a comment!
  • This is mickey mouse compared to ebase xi

  • @LenWhistler "Glade originally generated C code to build the GUI (and you'll still find examples and tutorials doing this). This was later discouraged in favor of using a library, Libglade, to build the interface at run time. And finally, as of Glade3, the old method has become deprecated."

  • lazarus  10 timez better this shit

  • @Slurfs hahah yeah man.. But its hard to find free softwares like this...!

  • @adnanahmed316 Ever heard about something called google?

  • where can i find Glade3.0 on internet????

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more