From 3d94bb95601c1b025d4e10ce71fdfd94bd296cf6 Mon Sep 17 00:00:00 2001 From: Anna Marie Dirks Date: Wed, 7 Aug 2002 18:01:20 +0000 Subject: Added an alignment to make button position be the same as the other 2002-08-07 Anna Marie Dirks * e-summary-shown.c (e_summary_shown_init): Added an alignment to make button position be the same as the other buttons of this type in evo. (add_clicked): make this buttons sensitive when there is no proper selection (remove_clicked): same thing with the button * my-evolution.glade: Capitalized "Weather Settings" properly. svn path=/trunk/; revision=17732 --- my-evolution/ChangeLog | 11 +++++++++++ my-evolution/e-summary-shown.c | 14 +++++++++++--- my-evolution/my-evolution.glade | 2 +- 3 files changed, 23 insertions(+), 4 deletions(-) (limited to 'my-evolution') diff --git a/my-evolution/ChangeLog b/my-evolution/ChangeLog index 12303459a3..a44f1ec44b 100644 --- a/my-evolution/ChangeLog +++ b/my-evolution/ChangeLog @@ -1,3 +1,14 @@ +2002-08-07 Anna Marie Dirks + + * e-summary-shown.c (e_summary_shown_init): Added an alignment to make + button position be the same as the other buttons of this type in evo. + (add_clicked): make this buttons sensitive when there is no proper + selection + (remove_clicked): same thing with the button + + * my-evolution.glade: Capitalized "Weather Settings" properly. + + 2002-07-26 Peter Williams * e-summary-mail.c (update_folder_cb): Don't use the folder's path diff --git a/my-evolution/e-summary-shown.c b/my-evolution/e-summary-shown.c index f66b5c7512..631703d8ae 100644 --- a/my-evolution/e-summary-shown.c +++ b/my-evolution/e-summary-shown.c @@ -398,6 +398,8 @@ add_clicked (GtkWidget *button, g_list_free (list); gtk_signal_emit (GTK_OBJECT (shown), shown_signals[ITEM_CHANGED]); + + gtk_widget_set_sensitive (GTK_WIDGET (button), FALSE); } static void @@ -442,6 +444,8 @@ remove_clicked (GtkWidget *button, g_list_free (list); gtk_signal_emit (GTK_OBJECT (shown), shown_signals[ITEM_CHANGED]); + + gtk_widget_set_sensitive (GTK_WIDGET (button), FALSE); } static TableData * @@ -524,6 +528,7 @@ e_summary_shown_init (ESummaryShown *shown) { ESummaryShownPrivate *priv; GtkWidget *vbox; + GtkWidget *align; gtk_box_set_spacing (GTK_BOX (shown), 3); @@ -538,8 +543,11 @@ e_summary_shown_init (ESummaryShown *shown) gtk_box_pack_start (GTK_BOX (shown), priv->all->etable, TRUE, TRUE, 2); gtk_widget_show (priv->all->etable); - vbox = gtk_vbox_new (TRUE, 0); - gtk_box_pack_start (GTK_BOX (shown), vbox, FALSE, FALSE, 2); + vbox = gtk_vbox_new (TRUE, 9); + align = gtk_alignment_new (.5, .5, .5, 0.0); + gtk_container_add (GTK_CONTAINER (align), vbox); + + gtk_box_pack_start (GTK_BOX (shown), align, FALSE, FALSE, 3); /* Fixme: nice GFX version */ priv->add = construct_pixmap_button (_("Add"), GNOME_STOCK_BUTTON_NEXT); @@ -555,7 +563,7 @@ e_summary_shown_init (ESummaryShown *shown) gtk_signal_connect (GTK_OBJECT (priv->remove), "clicked", GTK_SIGNAL_FUNC (remove_clicked), shown); - gtk_widget_show_all (vbox); + gtk_widget_show_all (align); priv->shown = make_table (shown->shown_model, _("Shown"), GTK_SIGNAL_FUNC (shown_selection_changed), shown); diff --git a/my-evolution/my-evolution.glade b/my-evolution/my-evolution.glade index 7fa895f3e8..373b2a0dfa 100644 --- a/my-evolution/my-evolution.glade +++ b/my-evolution/my-evolution.glade @@ -330,7 +330,7 @@ GtkFrame frame3 3 - + 0 GTK_SHADOW_ETCHED_IN -- cgit