aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-preferences.c
diff options
context:
space:
mode:
Diffstat (limited to 'my-evolution/e-summary-preferences.c')
-rw-r--r--my-evolution/e-summary-preferences.c37
1 files changed, 36 insertions, 1 deletions
diff --git a/my-evolution/e-summary-preferences.c b/my-evolution/e-summary-preferences.c
index e681884af5..162b1a6861 100644
--- a/my-evolution/e-summary-preferences.c
+++ b/my-evolution/e-summary-preferences.c
@@ -1108,6 +1108,26 @@ calendar_today_toggled_cb (GtkToggleButton *tb,
gnome_property_box_changed (pd->box);
}
+static void
+construct_pixmap_button (GtkButton *button,
+ const char *text,
+ const char *image)
+{
+ GtkWidget *label, *box, *pixmap;
+
+ g_return_if_fail (button != NULL);
+
+ box = gtk_hbox_new (FALSE, 0);
+ label = gtk_label_new (text);
+ gtk_box_pack_start (GTK_BOX (box), label, TRUE, TRUE, 0);
+
+ pixmap = gnome_stock_pixmap_widget (NULL, image);
+ gtk_box_pack_start (GTK_BOX (box), pixmap, TRUE, TRUE, 0);
+
+ gtk_container_add (GTK_CONTAINER (button), box);
+ gtk_widget_show_all (box);
+}
+
static gboolean
make_property_dialog (PropertyData *pd)
{
@@ -1145,11 +1165,15 @@ make_property_dialog (PropertyData *pd)
mail->add = glade_xml_get_widget (pd->xml, "button4");
g_return_val_if_fail (mail->add != NULL, FALSE);
+ construct_pixmap_button (GTK_BUTTON (mail->add), _("Add"),
+ GNOME_STOCK_BUTTON_NEXT);
gtk_signal_connect (GTK_OBJECT (mail->add), "clicked",
GTK_SIGNAL_FUNC (mail_add_clicked_cb), pd);
mail->remove = glade_xml_get_widget (pd->xml, "button5");
g_return_val_if_fail (mail->remove != NULL, FALSE);
+ construct_pixmap_button (GTK_BUTTON (mail->remove), _("Remove"),
+ GNOME_STOCK_BUTTON_PREV);
gtk_signal_connect (GTK_OBJECT (mail->remove), "clicked",
GTK_SIGNAL_FUNC (mail_remove_clicked_cb), pd);
@@ -1193,6 +1217,8 @@ make_property_dialog (PropertyData *pd)
rdf->add = glade_xml_get_widget (pd->xml, "button9");
g_return_val_if_fail (rdf->add != NULL, FALSE);
+ construct_pixmap_button (GTK_BUTTON (rdf->add), _("Add"),
+ GNOME_STOCK_BUTTON_NEXT);
gtk_widget_set_sensitive (rdf->add, FALSE);
gtk_signal_connect (GTK_OBJECT (rdf->add), "clicked",
GTK_SIGNAL_FUNC (rdf_add_clicked_cb), pd);
@@ -1200,6 +1226,8 @@ make_property_dialog (PropertyData *pd)
rdf->remove = glade_xml_get_widget (pd->xml, "button10");
g_return_val_if_fail (rdf->remove != NULL, FALSE);
+ construct_pixmap_button (GTK_BUTTON (rdf->remove), _("Remove"),
+ GNOME_STOCK_BUTTON_PREV);
gtk_widget_set_sensitive (rdf->remove, FALSE);
gtk_signal_connect (GTK_OBJECT (rdf->remove), "clicked",
GTK_SIGNAL_FUNC (rdf_remove_clicked_cb), pd);
@@ -1250,11 +1278,17 @@ make_property_dialog (PropertyData *pd)
weather->add = glade_xml_get_widget (pd->xml, "button6");
g_return_val_if_fail (weather->add != NULL, FALSE);
+
+ construct_pixmap_button (GTK_BUTTON (weather->add), _("Add"),
+ GNOME_STOCK_BUTTON_NEXT);
gtk_signal_connect (GTK_OBJECT (weather->add), "clicked",
GTK_SIGNAL_FUNC (weather_add_clicked_cb), pd);
weather->remove = glade_xml_get_widget (pd->xml, "button7");
g_return_val_if_fail (weather->remove != NULL, FALSE);
+
+ construct_pixmap_button (GTK_BUTTON (weather->remove), _("Remove"),
+ GNOME_STOCK_BUTTON_PREV);
gtk_signal_connect (GTK_OBJECT (weather->remove), "clicked",
GTK_SIGNAL_FUNC (weather_remove_clicked_cb), pd);
@@ -1379,7 +1413,8 @@ e_summary_configure (GtkWidget *widget,
summary->old_prefs = e_summary_preferences_copy (summary->preferences);
pd->xml = glade_xml_new (EVOLUTION_GLADEDIR "/my-evolution.glade", NULL);
- g_assert (pd->xml != NULL); /* Fixme: Nice GUI to explain what happened */
+ g_return_if_fail (pd->xml != NULL);
+
pd->box = GNOME_PROPERTY_BOX (glade_xml_get_widget (pd->xml, "dialog1"));
gtk_window_set_title (GTK_WINDOW (pd->box), _("My Evolution Settings"));
if (make_property_dialog (pd) == FALSE) {