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:
Jody Goldberg 2002-06-27 01:44:51 +00:00 committed by Jody Goldberg
parent 6e5233869c
commit 5719b6cda4
2 changed files with 9 additions and 2 deletions

View file

@ -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);