From 8c939dca8ad71ce10c7758243385b12bced22449 Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Mon, 26 Jan 2004 21:56:03 +0000 Subject: Add panded widget to EShellWindowPrivate and handle state saving of 2004-01-26 Rodney Dawes * e-shell-window.c (setup_widgets): Add panded widget to EShellWindowPrivate and handle state saving of position (#52049) * e-task-bar.c (init): Switch to EClippedLabel instead of GtkLabel for the status bar text (#52937) Fixes #52049 and #52937 svn path=/trunk/; revision=24448 --- shell/e-task-bar.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'shell/e-task-bar.c') diff --git a/shell/e-task-bar.c b/shell/e-task-bar.c index 7a706fd290..02ca5cbcdf 100644 --- a/shell/e-task-bar.c +++ b/shell/e-task-bar.c @@ -27,12 +27,12 @@ #include "e-task-bar.h" #include -#include +#include "widgets/misc/e-clipped-label.h" struct _ETaskBarPrivate { - GtkLabel *message_label; + EClippedLabel *message_label; GtkHBox *hbox; }; @@ -103,11 +103,11 @@ init (ETaskBar *task_bar) gtk_box_set_spacing (GTK_BOX (task_bar), 10); - label = gtk_label_new (""); + label = e_clipped_label_new ("", PANGO_WEIGHT_NORMAL, 1.0); gtk_widget_show (label); gtk_box_pack_start (GTK_BOX (task_bar), label, FALSE, TRUE, 0); gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5); - task_bar->priv->message_label = GTK_LABEL (label); + task_bar->priv->message_label = E_CLIPPED_LABEL (label); hbox = gtk_hbox_new (0, FALSE); gtk_widget_show (hbox); @@ -142,7 +142,8 @@ e_task_bar_set_message (ETaskBar *task_bar, { if (message) { gtk_widget_show (GTK_WIDGET (task_bar->priv->message_label)); - gtk_label_set_text (task_bar->priv->message_label, message); + e_clipped_label_set_text (task_bar->priv->message_label, + message); } else { e_task_bar_unset_message (task_bar); } -- cgit v1.2.3