From: "J.A. Magallon" I need this to make gconfig work under gtk-2.4. Without this, it just coredumps. There is some problem with pixmap creation/usage from XPM in the way it is done in gconf, so I just added some stock icons. It is even prettier..;) Could someone test this still works on gtk-2.0 or 2.2 ? Changes: - change the wiget class 'button' in glade files to something known to glade (GtkToolButton) - use 'stock-id' property for toolbar buttons instead of "stock_pixmap" - change unknown signal "pressed" to "clicked" - removed unused xpms - remove manual setting of icons in gconf.c Signed-off-by: Andrew Morton --- 25-akpm/scripts/kconfig/gconf.c | 32 ---- 25-akpm/scripts/kconfig/gconf.glade | 40 ++--- 25-akpm/scripts/kconfig/images.c | 288 ------------------------------------ 3 files changed, 21 insertions(+), 339 deletions(-) diff -puN scripts/kconfig/gconf.c~make-gconfig-work-with-gtk-24 scripts/kconfig/gconf.c --- 25/scripts/kconfig/gconf.c~make-gconfig-work-with-gtk-24 2004-12-01 23:43:14.688079848 -0800 +++ 25-akpm/scripts/kconfig/gconf.c 2004-12-01 23:43:14.698078328 -0800 @@ -187,8 +187,6 @@ void init_main_window(const gchar * glad GtkWidget *widget; GtkTextBuffer *txtbuf; char title[256]; - GdkPixmap *pixmap; - GdkBitmap *mask; GtkStyle *style; xml = glade_xml_new(glade_file, "window1", NULL); @@ -221,36 +219,6 @@ void init_main_window(const gchar * glad style = gtk_widget_get_style(main_wnd); widget = glade_xml_get_widget(xml, "toolbar1"); - pixmap = gdk_pixmap_create_from_xpm_d(main_wnd->window, &mask, - &style->bg[GTK_STATE_NORMAL], - (gchar **) xpm_single_view); - gtk_image_set_from_pixmap(GTK_IMAGE - (((GtkToolbarChild - *) (g_list_nth(GTK_TOOLBAR(widget)-> - children, - 5)->data))->icon), - pixmap, mask); - pixmap = - gdk_pixmap_create_from_xpm_d(main_wnd->window, &mask, - &style->bg[GTK_STATE_NORMAL], - (gchar **) xpm_split_view); - gtk_image_set_from_pixmap(GTK_IMAGE - (((GtkToolbarChild - *) (g_list_nth(GTK_TOOLBAR(widget)-> - children, - 6)->data))->icon), - pixmap, mask); - pixmap = - gdk_pixmap_create_from_xpm_d(main_wnd->window, &mask, - &style->bg[GTK_STATE_NORMAL], - (gchar **) xpm_tree_view); - gtk_image_set_from_pixmap(GTK_IMAGE - (((GtkToolbarChild - *) (g_list_nth(GTK_TOOLBAR(widget)-> - children, - 7)->data))->icon), - pixmap, mask); - switch (view_mode) { case SINGLE_VIEW: widget = glade_xml_get_widget(xml, "button4"); diff -puN scripts/kconfig/gconf.glade~make-gconfig-work-with-gtk-24 scripts/kconfig/gconf.glade --- 25/scripts/kconfig/gconf.glade~make-gconfig-work-with-gtk-24 2004-12-01 23:43:14.690079544 -0800 +++ 25-akpm/scripts/kconfig/gconf.glade 2004-12-01 23:43:14.696078632 -0800 @@ -310,13 +310,13 @@ True - + True Goes up of one level (single view) Back True - gtk-undo - + gtk-undo + @@ -327,24 +327,24 @@ - + True Load a config file Load True - gtk-open - + gtk-open + - + True Save a config file Save True - gtk-save - + gtk-save + @@ -355,34 +355,34 @@ - + True Single view Single True - gtk-missing-image + gtk-indent - + True Split view Split True - gtk-missing-image + gtk-copy - + True Full view Full True - gtk-missing-image + gtk-justify-left @@ -394,22 +394,24 @@ - + True Collapse the whole tree in the right frame Collapse True - + gtk-zoom-out + - + True Expand the whole tree in the right frame Expand True - + gtk-zoom-in +