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=/trunk/; revision=1217
This commit is contained in:
parent
feba0d3136
commit
b73e72bcfe
@ -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-05-15 Lucas Rocha <lucasr@gnome.org>
|
2007-05-15 Lucas Rocha <lucasr@gnome.org>
|
||||||
|
|
||||||
* configure.in: post-release version bump.
|
* configure.in: post-release version bump.
|
||||||
|
@ -44,13 +44,13 @@ main (gint argc, gchar **argv) {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
bindtextdomain(GETTEXT_PACKAGE, GNOMELOCALEDIR);
|
||||||
|
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
||||||
textdomain(GETTEXT_PACKAGE);
|
textdomain(GETTEXT_PACKAGE);
|
||||||
|
|
||||||
results = zenity_option_parse (argc, argv);
|
|
||||||
|
|
||||||
bind_textdomain_codeset(GETTEXT_PACKAGE, "UTF-8");
|
|
||||||
gtk_init (&argc, &argv);
|
gtk_init (&argc, &argv);
|
||||||
|
|
||||||
|
results = zenity_option_parse (argc, argv);
|
||||||
|
|
||||||
switch (results->mode) {
|
switch (results->mode) {
|
||||||
case MODE_CALENDAR:
|
case MODE_CALENDAR:
|
||||||
zenity_calendar (results->data, results->calendar_data);
|
zenity_calendar (results->data, results->calendar_data);
|
||||||
|
@ -48,6 +48,7 @@ zenity_notification_icon_update (void)
|
|||||||
GError *error = NULL;
|
GError *error = NULL;
|
||||||
|
|
||||||
pixbuf = gdk_pixbuf_new_from_file_at_scale (icon_file, icon_size, icon_size, TRUE, &error);
|
pixbuf = gdk_pixbuf_new_from_file_at_scale (icon_file, icon_size, icon_size, TRUE, &error);
|
||||||
|
|
||||||
if (error) {
|
if (error) {
|
||||||
g_warning ("Could not load notification icon '%s': %s",
|
g_warning ("Could not load notification icon '%s': %s",
|
||||||
icon_file, error->message);
|
icon_file, error->message);
|
||||||
|
Reference in New Issue
Block a user