Slashdot Mirror


Glade 2 Tutorial

Renartthefox writes "Rikke D. Giles has written a new tutorial for Glade II. Glade is a program designed to enable the quick building of graphical user interfaces for GTK+ and GNOME applications. However, it can be used with any desktop environment in linux, as long as the GTK+ and/or GNOME libraries are installed."

17 of 147 comments (clear)

  1. also.. by Mr2cents · · Score: 4, Interesting

    If I'm not wrong, glade files can also be importd in qt designer (qt's gui builder). Nice work.

    --
    "It's too bad that stupidity isn't painful." - Anton LaVey
    1. Re:also.. by JanneM · · Score: 3, Interesting

      Well, no.

      Or rather, you could, but it'd be almost just as easy to do as writing for both toolkits without it - ie. not at all. You still need to work with the widgets in your code (at least defining callbacks), and thus you'll need separate codepaths. Also, you'd need to include stuff for both toolkits, which means that the user will need to have both installed even if they use only one of them.

      What you could do is have that choice at compile-time. Write the backend completely toolkit-independent, then have two frontends, using the glade file (so they always are in sync, UI-wise) and including the backend stuff. At compile time, it is determined which of them (or both) to build.

      --
      Trust the Computer. The Computer is your friend.
  2. Mozilla and Phoenix need this by zymano · · Score: 3, Interesting

    Getting rid of xul(xml user interface language) would be good for responsive gui.

    1. Re:Mozilla and Phoenix need this by cheesybagel · · Score: 4, Informative

      XUL may be slow but it is more portable than GTK+ is.
      Yes I know there is a GTK+ port for Windows but neither it is fast itself or just having Windows support in addition to X11 support is enough.

  3. Thank you by John+Jorsett · · Score: 3, Insightful

    Finally, an article that defines what the thing is instead of assuming that we've all heard of 'Zxzzy Underlayer II.3M'.

  4. Re:Something stinks by Anonymous Coward · · Score: 3, Funny

    Why am i not surprised that Slashdot readers haven't heard of air freshener....

  5. Shhhhh! by Znonymous+Coward · · Score: 4, Funny

    Don't make too big of a deal about Glade. With all the recent frivolous lawsuits, SC Johnson Wax will be all over 'em.

    --

    Karma: The shiznight, mostly because I am the Drizzle.

    1. Re:Shhhhh! by kurosawdust · · Score: 4, Funny
      Don't make too big of a deal about Glade. With all the recent frivolous lawsuits, SC Johnson Wax will be all over 'em.

      Or at least just the plug-ins.

  6. Great, but..... by mickwd · · Score: 5, Interesting

    Can we have articles like this listed and catalogued in a single place somewhere ?

    If I happen to be wanting to learn Glade 2 now, this article will be really useful. Otherwise, I could bookmark it for future reference (assuming it'll still be there in a few months time) - or download it, and save it on a directory somewhere.

    What about having somewhere such as the Linux Documentation Project keep a collection of articles like this (or keep a list of dated bookmarks to useful external articles) - simultaneously making both the Linux Documentation Project, and the articles in links to, more useful resources to more people.

  7. You've got it lucky these days by nother_nix_hacker · · Score: 4, Insightful

    Pah, Glade, when I was at school all we had was Visual Basic....oh...hold on...

  8. When will it end ?? by Timesprout · · Score: 5, Funny

    What is the linux community coming to when people actually write tutorials on how to use applications. Man pages with so many options they resemble a form of Hieroglyph were just about acceptable. Worse was to follow a lot half heart how-to's which fortunately seldom explained what you actually wanted.
    Next thing you know linux apps will be come fully documented, with samples and context sensitive help. Anyone will be able to use them !!

    --
    Do not try to read the dupe, thats impossible. Instead, only try to realize the truth
    What truth?
    There is no dupe
  9. GNOME needs more user friendly documentation. by Idimmu+Xul · · Score: 5, Insightful

    GNOME has some wonderful technologies at it's disposal, but the documentation is crap. Reading someone else's code is not the best way to learn imho, and some decent documentation covering bonobo etc is just what the doctor ordered.

    --
    The problem with slashdot is that most of its users were bullied and stuffed into lockers as kids!
  10. Additional Glade info by A+Proud+American · · Score: 5, Interesting
    Due to the nature of the work at my place of employment, we're generally stuck using Visual C++ (on the Windows platform) for most of our coding.

    Nonetheless, I work with Glade on weekends for fun. Here are some other interesting links that you'll undoubtedly enjoy:

    http://developer.gnome.org/

    http://www.daa.com.au/~james/pygtk/

    http://www.student.oulu.fi/~jlof/gtkglarea/

  11. I hate to break this to you by A+Proud+American · · Score: 3, Interesting

    But what Linux needs is a fresh look and a fresh batch of research into creating a truly intuitive desktop computing experience.

    Windows isn't intuitive, but because it's so popular, people have had to learn how to get work done and consistent interfaces across Microsoft applications helps this.

    But if Linux hackers want a new crowd of free software users, they need to attract them not only with the low price of open source software, but a high intuitivity index of the software itself.

    Someone please make Linux more easy to use. It's too hard.

  12. You Killed Our Server! You Bastards! NOT! by libertynews · · Score: 4, Interesting

    Something strange is happening here. I am not seeing any kind of adverse effect to the machine from being slashdotted. Its chugging along fine, happily serving up pages.

    Hmm, must be some kind of multi GHz Quad Processor heavy iron type of box, right?

    Nope.

    P75, 48megs of ram. No kidding.

    cat /proc/cpuinfo
    model : Pentium 75+
    vendor_id : GenuineIntel
    bogomips : 40.04

    Granted, I'm only seeing 109 current connections to the web server right now. But its running just fine. This is probably mostly due to our colocation hosts at VDomainHosting having enough available bandwidth to serve things up in a timely manner. Thanks guys!

    And thanks to Rikke for such a great tutorial. She presented it a few weeks ago at the Linux Fest NW event, to a packed room.

    Brian
    KPLUG Webmaster

    --
    Remember Lexington Green!
  13. Re:not an IDE by Saint+Stephen · · Score: 4, Interesting

    I learned about glade by trying DIASCE2, a Visual IDE for Glade. Before Glade I couldn't grok automake, pkg-config, much less GTK; by writing a simple Hello Glade World I grokked it all, wrote my own build scripts, and started writing Gnome apps.

    Glade was only a stepping stone for me to using the raw GTK api. I find GTK in C to be quite elegant. The only real wart I found is that Popped-up menus are reparented in a fake GtkWindow, where as top levels aren't. Baring that, raw GTK in C is good enough for me.

    "The world is fundamentally functional and relational." -- Quote from a grayheaded Silicon Valley dude, there's wisdom.

  14. Anjuta by noda132 · · Score: 3, Interesting

    It's a very good thing they didn't try to make an IDE, because one already exists: Anjuta. And best of all, Anjuta not only offers all the usual editor/compiler mumbo-jumbo, but it also calls Glade for GUI creation.

    If you're trying to start out GNOME/GTK development, Anjuta's the IDE of choice (as far as I can see). Of course, all I did in it was make a little "Hello, world!" app that would hide the message when you click a button. But it was very simple to make and had full i18n support -- for 5 minutes from start to finish, that's not half-bad :).