Re: Abiword & Gnome (was: Re: What is GNOME office?)
- From: "Dom Lachowicz" <cinamod hotmail com>
- To: sam uchicago edu, hp redhat com
- Cc: chema celorio com, gnome-office-list gnome org
- Subject: Re: Abiword & Gnome (was: Re: What is GNOME office?)
- Date: Mon, 20 Nov 2000 15:08:43 EST
Sam TH said:
Dom, what do we use libglade for in the GNOME front end?
We don't. A lot of the GTK code is human-edited output generated by Glade
though. Our Gnome dialogs extend our GTK ones, which don't use glade.
Using glade would be a *lot* easier than what we currently do, though. This
is especially true for Gtk/Gnome inheritance. Basically, we can say:
#ifndef HAVE_GNOME
GladeXML *gui = glade_xml_new("gtk_version_of_my_dialog.glade");
#else
GladeXML *gui = glade_xml_new("gnome_version_of_my_dialog.glade");
#endif
// will return stock GTK version or Gnome version based on above
GtkWidget *ok_button = glade_xml_get_widget(gui, "ok_button");
and have all of the rest of our c/c++ code shared between the two versions.
Then changing dialogs becomes a snap because it doesn't involve changing a
line of code in the majority of circumstances. Also, there is almost no
performance hit when using Glade. It takes a little longer to construct your
GUI, but that's about it. We're talking on the order of 1/1000s of a second
here.
Gnumeric uses libglade for just about all of its dialogs, though. It's
really nice, but at the moment, it doesn't fit into our framework too well.
Why not? We don't use gettext. Internationilization using our method + glade
would *suck*.
Dom
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]