diff options
author | Rodney Dawes <dobey@ximian.com> | 2004-01-27 05:56:03 +0800 |
---|---|---|
committer | Rodney Dawes <dobey@src.gnome.org> | 2004-01-27 05:56:03 +0800 |
commit | 8c939dca8ad71ce10c7758243385b12bced22449 (patch) | |
tree | 29d48aa1ffcc9ec96322ba147fd6b4ed9eb73f2b /shell/e-task-bar.c | |
parent | b09318f2bbd4898494462aee9b47669b045dfde3 (diff) | |
download | gsoc2013-evolution-8c939dca8ad71ce10c7758243385b12bced22449.tar gsoc2013-evolution-8c939dca8ad71ce10c7758243385b12bced22449.tar.gz gsoc2013-evolution-8c939dca8ad71ce10c7758243385b12bced22449.tar.bz2 gsoc2013-evolution-8c939dca8ad71ce10c7758243385b12bced22449.tar.lz gsoc2013-evolution-8c939dca8ad71ce10c7758243385b12bced22449.tar.xz gsoc2013-evolution-8c939dca8ad71ce10c7758243385b12bced22449.tar.zst gsoc2013-evolution-8c939dca8ad71ce10c7758243385b12bced22449.zip |
Add panded widget to EShellWindowPrivate and handle state saving of
2004-01-26 Rodney Dawes <dobey@ximian.com>
* 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
Diffstat (limited to 'shell/e-task-bar.c')
-rw-r--r-- | shell/e-task-bar.c | 11 |
1 files changed, 6 insertions, 5 deletions
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 <gal/util/e-util.h> -#include <gtk/gtklabel.h> +#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); } |