diff options
author | Anna Marie Dirks <anna@ximian.com> | 2002-08-08 02:01:20 +0800 |
---|---|---|
committer | Anna Dirks <anna@src.gnome.org> | 2002-08-08 02:01:20 +0800 |
commit | 3d94bb95601c1b025d4e10ce71fdfd94bd296cf6 (patch) | |
tree | 6168ee92252d324b3ab0a34e7bea77944de1f18f /my-evolution/e-summary-shown.c | |
parent | f7a5a0a2618b4e38777c9ce54d35c72193364064 (diff) | |
download | gsoc2013-evolution-3d94bb95601c1b025d4e10ce71fdfd94bd296cf6.tar.gz gsoc2013-evolution-3d94bb95601c1b025d4e10ce71fdfd94bd296cf6.tar.zst gsoc2013-evolution-3d94bb95601c1b025d4e10ce71fdfd94bd296cf6.zip |
Added an alignment to make button position be the same as the other
2002-08-07 Anna Marie Dirks <anna@ximian.com>
* 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
Diffstat (limited to 'my-evolution/e-summary-shown.c')
-rw-r--r-- | my-evolution/e-summary-shown.c | 14 |
1 files changed, 11 insertions, 3 deletions
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); |