diff options
author | Lucas Rocha <lucasr@gnome.org> | 2007-05-27 20:11:01 +0000 |
---|---|---|
committer | Lucas Almeida Rocha <lucasr@src.gnome.org> | 2007-05-27 20:11:01 +0000 |
commit | a700a318de8055fae5ebc0396d96f7904c22f647 (patch) | |
tree | c9196209a138064fc1d6b48b7491bdd862b1cf19 | |
parent | f7ce23aab6204c7e63bbe8eead27292924a2a749 (diff) | |
download | zenity-a700a318de8055fae5ebc0396d96f7904c22f647.tar.gz |
initialize GTK+ before parsing command line options to better handle
2007-05-27 Lucas Rocha <lucasr@gnome.org>
* src/main.c: initialize GTK+ before parsing command line options to
better handle errors on display setting (Fixes bug #410055).
svn path=/branches/gnome-2-18/; revision=1218
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | src/main.c | 6 | ||||
-rw-r--r-- | src/notification.c | 1 |
3 files changed, 9 insertions, 3 deletions
@@ -1,3 +1,8 @@ +2007-05-27 Lucas Rocha <lucasr@gnome.org> + + * src/main.c: initialize GTK+ before parsing command line options to + better handle errors on display setting (Fixes bug #410055). + 2007-04-09 Lucas Rocha <lucasr@gnome.org> * configure.in: post-release version bump. @@ -44,13 +44,13 @@ main (gint argc, gchar **argv) { #endif bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR); + bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); textdomain(GETTEXT_PACKAGE); - results = zenity_option_parse (argc, argv); - - bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8"); gtk_init (&argc, &argv); + results = zenity_option_parse (argc, argv); + switch (results->mode) { case MODE_CALENDAR: zenity_calendar (results->data, results->calendar_data); diff --git a/src/notification.c b/src/notification.c index 745d8a3..7aa69b5 100644 --- a/src/notification.c +++ b/src/notification.c @@ -48,6 +48,7 @@ zenity_notification_icon_update (void) GError *error = NULL; pixbuf = gdk_pixbuf_new_from_file_at_scale (icon_file, icon_size, icon_size, TRUE, &error); + if (error) { g_warning ("Could not load notification icon '%s': %s", icon_file, error->message); |