[evolution-patches] Patch for "Theme engine could not render icon"



Here's a patch to fix the "Theme engine could not render icon"
nonsense that gets spit out when you open the settings dialog.
It removes the construct_pixmap_button () function and calls,
and just uses the stock buttons instead, since they are already
translated in gtk+.


? evolution-1-3-summary-image.patch
Index: ChangeLog
===================================================================
RCS file: /cvs/gnome/evolution/my-evolution/ChangeLog,v
retrieving revision 1.276
diff -u -r1.276 ChangeLog
--- ChangeLog	9 Apr 2003 08:02:45 -0000	1.276
+++ ChangeLog	12 Apr 2003 15:51:19 -0000
@@ -1,3 +1,7 @@
+2003-04-12  Rodney Dawes  <dobey ximian com>
+
+	* e-summary-shown.c: Remove construct_pixmap_button (), use stock buttons
+	
 2003-04-09  Larry Ewing  <lewing ximian com>
 
 	* e-summary.c (e_summary_init): remove call to
Index: e-summary-shown.c
===================================================================
RCS file: /cvs/gnome/evolution/my-evolution/e-summary-shown.c,v
retrieving revision 1.17
diff -u -r1.17 e-summary-shown.c
--- e-summary-shown.c	14 Mar 2003 05:14:23 -0000	1.17
+++ e-summary-shown.c	12 Apr 2003 15:51:19 -0000
@@ -477,28 +477,6 @@
 	td->contents = NULL;
 	return td;
 }
-
-static GtkWidget *
-construct_pixmap_button (const char *text,
-			 const char *image)
-{
-	GtkWidget *box, *button, *image_widget, *label;
-
-	box = gtk_hbox_new (FALSE, 1);
-
-	image_widget = gtk_image_new_from_stock (image, 48);
-	gtk_box_pack_start (GTK_BOX (box), image_widget, FALSE, FALSE, 0);
-	
-	label = gtk_label_new (text);
-	gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0);
-
-	button = gtk_button_new ();
-	gtk_container_add (GTK_CONTAINER (button), box);
-
-	gtk_widget_show_all (box);
-
-	return button;
-}
 	
 static void
 e_summary_shown_init (ESummaryShown *shown)
@@ -527,13 +505,13 @@
 	gtk_box_pack_start (GTK_BOX (shown), align, FALSE, FALSE, 3);
 
 	/* Fixme: nice GFX version */
-	priv->add = construct_pixmap_button (_("Add"), GTK_STOCK_GO_FORWARD);
+	priv->add = gtk_button_new_from_stock (GTK_STOCK_ADD);
 	gtk_widget_set_sensitive (priv->add, FALSE);
 	gtk_box_pack_start (GTK_BOX (vbox), priv->add, TRUE, FALSE, 0);
 	g_signal_connect (priv->add, "clicked", G_CALLBACK (add_clicked), shown);
 
 	/* Fixme: Ditto */
-	priv->remove = construct_pixmap_button (_("Remove"), GTK_STOCK_GO_BACK);
+	priv->remove = gtk_button_new_from_stock (GTK_STOCK_REMOVE);
 	gtk_widget_set_sensitive (priv->remove, FALSE);
 	gtk_box_pack_start (GTK_BOX (vbox), priv->remove, TRUE, FALSE, 0);
 	g_signal_connect (priv->remove, "clicked", G_CALLBACK (remove_clicked), shown);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]