summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorTristan Van Berkom <tvb@src.gnome.org>2006-04-24 15:36:45 +0000
committerTristan Van Berkom <tvb@src.gnome.org>2006-04-24 15:36:45 +0000
commit00859f541e49169ba148f138385fcfc797a3a15a (patch)
treee218e7e556c035b7ed23960775db9f38f80b1501 /src/main.c
parentdf0658fbed5cbaf304c55b38fe859842033faf04 (diff)
downloadglade-00859f541e49169ba148f138385fcfc797a3a15a.tar.gz
Updated
* TODO: Updated * doc/gladeui-sections.txt updated * src/glade-app.[ch]: Majorly reduced the api, now GladeApp is a singleton. Added "active-project" signal. * src/glade-builtins.[ch]: Removed unused variable. Enhanced objects pspec type to recognize interfaces. Added glade_param_spec_objects_get_type() * src/glade-clipboard-view.c: Trying a cute border. * src/glade-command.c, src/glade-fixed-manager.c, src/glade-placehodler.c, src/glade-popup.c, src/glade-project-view.c, src/glade-project-window.c: Updated for glade-app changes * src/glade-editor-property.c: Implemented objects pspec * src/glade-editor.[ch]: Added atk tab, added cuteness. * src/glade-gtk.c: o Translated image type names o Added button types (translated) o Support for button label & use-underline properties * src/glade-parser.c: o Updated for glade-app changes o Added save support for atk actions and relations. * src/glade-project.c: o Updated for glade-app changes o Fixed glade_project_fix_object_props for object lists * src/glade-property-class.[ch]: o Hardcoded atk relations and action names o Added glade_property_class_make_gvalue(), glade_property_class_get_from_gvalue(), glade_property_class_new_atk_action(), glade_property_class_list_atk_relations(), glade_property_class_atk_realname() o Fixed glade_property_class_is_object() (object lists qualify) * src/glade-property.[ch]: o Integrated property load proceedure into glade-property, loading code much cleaner and less redundant. (Added glade_property_read()) o Implemented atk properties (save/load) * src/glade-utils.[ch]: Added glade_util_read_prop_name(), glade_util_added_in_list(), glade_util_removed_from_list(), glade_util_class_implements_interface() * src/glade-widget-class.c: Introspect atk properties * src/glade-widget.c: Simplified load code, moved property load code to glade-property, save atk props properly. * src/glade.h: Removed the unused atk-relation tag. * src/main.c: Load gail (for atk action introspection) * src/atk.xpm: New atk icon * widgets/gtk+.xml.in: o GtkLabel label property --> translatable o GtkButton label property --> translatable, multi-line o Added GtkButton "type" property and GtkButton remove-child-function
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c13
1 files changed, 12 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index a9a18d1d..d7283f79 100644
--- a/src/main.c
+++ b/src/main.c
@@ -69,7 +69,19 @@ main (int argc, char *argv[])
GOptionContext *option_context;
GOptionGroup *option_group;
GError *error = NULL;
+ gchar *modules, *new_modules;
+ /* We need to ensure that gail is loaded, so that we can query accessibility
+ info. I can't see a GTK+ function to do that. For now we just add the
+ modules we need to the GTK_MODULES environment variable. It doesn't
+ matter if modules appear twice. */
+ modules = (char*) g_getenv ("GTK_MODULES");
+ new_modules = g_strdup_printf ("%s%s%s",
+ modules ? modules : "",
+ modules ? G_SEARCHPATH_SEPARATOR_S : "",
+ "gail");
+ g_setenv ("GTK_MODULES", new_modules, TRUE);
+
#ifdef ENABLE_NLS
setlocale (LC_ALL, "");
bindtextdomain (GETTEXT_PACKAGE, glade_locale_dir);
@@ -129,7 +141,6 @@ main (int argc, char *argv[])
}
project_window = glade_project_window_new ();
- glade_default_app_set (GLADE_APP (project_window));
if (widget_name != NULL)
{