http://bugzilla.gnome.org/show_bug.cgi?id=86575 handle missing pixmaps
2002-06-26 Jody Goldberg <jody@gnome.org> http://bugzilla.gnome.org/show_bug.cgi?id=86575 * gnome-keybinding-properties.c (setup_dialog) : handle missing pixmaps more smoothly.
This commit is contained in:
parent
6e5233869c
commit
5719b6cda4
2 changed files with 9 additions and 2 deletions
|
@ -760,10 +760,11 @@ setup_dialog (GladeXML *dialog)
|
|||
widget = WID ("gnome-keybinding-dialog");
|
||||
filename = gnome_program_locate_file (NULL, GNOME_FILE_DOMAIN_APP_PIXMAP, "keyboard-shortcut.png", TRUE, NULL);
|
||||
icon_pixbuf = gdk_pixbuf_new_from_file ("keyboard-shortcut.png", NULL);
|
||||
if (icon_pixbuf != NULL)
|
||||
if (icon_pixbuf != NULL) {
|
||||
gtk_window_set_icon (GTK_WINDOW (widget), icon_pixbuf);
|
||||
g_object_unref (icon_pixbuf);
|
||||
}
|
||||
g_free (filename);
|
||||
g_object_unref (icon_pixbuf);
|
||||
gtk_widget_show (widget);
|
||||
|
||||
g_signal_connect (G_OBJECT (widget), "response", G_CALLBACK(cb_dialog_response), NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue