PDA

View Full Version : Problem with GNOME Development



Masterofpsi
October 5th, 2009, 01:02 AM
Hi, I am having a problem trying to develop a GNOME app using the Glade graphical builder.

I have installed glade and glade-gnome, but when I open Glade, all of the GNOME widgets are greyed out. That is, everything in the pallete under "GNOME User Interface," "GNOME UI Obsolete" and "GNOME Canvas" is visible, but greyed out, and unusable.

Has anyone had this problem/have any idea how to fix this?

haTem
October 5th, 2009, 02:22 AM
I think those are all depreciated. I remember reading that libgnomeui was being phased out in gnome 2.28.

I'm assuming you're using glade-3. Those are all grayed out if you select GtkBuilder as the file format when you create a new project. If you really need those widgets, select libglade as the file format instead, but keep in mind libglade is also depreciated, and you really shouldn't use it if you're making a new project.

Edit: Which of those widgets did you need? I think they all have replacements in gtk. Druid=Assistant, Cavnas=Drawing Area, etc. If you post which ones you need, someone could point you to what the modern equivalent is.

Masterofpsi
October 5th, 2009, 02:39 AM
I think those are all depreciated. I remember reading that libgnomeui was being phased out in gnome 2.28.

I'm assuming you're using glade-3. Those are all grayed out if you select GtkBuilder as the file format when you create a new project. If you really need those widgets, select libglade as the file format instead, but keep in mind libglade is also depreciated, and you really shouldn't use it if you're making a new project.

Edit: Which of those widgets did you need? I think they all have replacements in gtk. Druid=Assistant, Cavnas=Drawing Area, etc. If you post which ones you need, someone could point you to what the modern equivalent is.

So Glade just isn't a good solution for GNOME development right now?

haTem
October 5th, 2009, 03:24 AM
No, using the glade designer is fine. It's supported and widely used.

There's a difference between glade and libglade. Glade is the application itself that you use to design the UI. This part is fine. Libglade is the library you use to load the glade project file into your program (from C/C++/python/whatever). This part has been depreciated. Gtk now has the functionality to load a glade interface file built-in (starting from gtk 2.12 I think, but I'm not sure). It's called GtkBuilder and does the exact same thing libglade does. Just save your glade project in GtkBuilder format and you're all set!

So essentially it boils down to this. Before, in order for your program to use the interface you created with the glade designer, you had to have libglade installed to load it into your program. Now, all you need is a relatively recent version of gtk. Just use the GtkBuilder api.

Similarly, libgnomeui is being phased out in favor of the similar widgets that are already included in gtk. This all cuts down on external library usage, so that your program won't have to depend on so many external libraries.

mmix
October 6th, 2009, 01:46 PM
So Glade just isn't a good solution for GNOME development right now?

IMHO, yes. gtk code simply fine.