From 90b888b8af55c61c3af7d8356c4314aed2913a90 Mon Sep 17 00:00:00 2001 From: Ettore Perazzoli Date: Sun, 5 Aug 2001 04:31:24 +0000 Subject: Make the close icon as large as the pin icon so the bar doesn't change * e-title-bar.c: Make the close icon as large as the pin icon so the bar doesn't change size when it switches between them. (e_title_bar_construct): Add some horizontal padding to the label to make it look nicer. svn path=/trunk/; revision=11688 --- widgets/misc/ChangeLog | 7 +++++++ widgets/misc/e-title-bar.c | 31 ++++++++++++++++++------------- 2 files changed, 25 insertions(+), 13 deletions(-) (limited to 'widgets') diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog index 95e2032739..1dd673ad6d 100644 --- a/widgets/misc/ChangeLog +++ b/widgets/misc/ChangeLog @@ -1,3 +1,10 @@ +2001-08-04 Ettore Perazzoli + + * e-title-bar.c: Make the close icon as large as the pin icon so + the bar doesn't change size when it switches between them. + (e_title_bar_construct): Add some horizontal padding to the label + to make it look nicer. + 2001-08-03 Federico Mena Quintero * e-calendar-item.c (e_calendar_item_mark_day): Request an update. diff --git a/widgets/misc/e-title-bar.c b/widgets/misc/e-title-bar.c index 128139f944..840da2d901 100644 --- a/widgets/misc/e-title-bar.c +++ b/widgets/misc/e-title-bar.c @@ -50,21 +50,25 @@ static guint signals[LAST_SIGNAL] = { 0 }; /* The pixmaps. */ static char *close_xpm[] = { - "12 12 2 1", + "16 16 2 1", " c none", ". c #000000000000", - " ", - " .. .. ", - " ... ... ", - " ... ... ", - " ...... ", - " .... ", - " .... ", - " ...... ", - " ... ... ", - " ... ... ", - " .. .. ", - " " + " ", + " ", + " ", + " .. .. ", + " ... ... ", + " ... ... ", + " ...... ", + " .... ", + " .... ", + " ...... ", + " ... ... ", + " ... ... ", + " .. .. ", + " ", + " ", + " " }; static char *pin_xpm[] = { @@ -306,6 +310,7 @@ e_title_bar_construct (ETitleBar *title_bar, priv->label = e_clipped_label_new (title); gtk_misc_set_alignment (GTK_MISC (priv->label), 0.0, 0.5); + gtk_misc_set_padding (GTK_MISC (priv->label), 2, 0); gtk_widget_show (priv->label); priv->button = gtk_button_new (); -- cgit