aboutsummaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorRodney Dawes <dobey@ximian.com>2004-01-29 04:20:49 +0800
committerRodney Dawes <dobey@src.gnome.org>2004-01-29 04:20:49 +0800
commit3af02b087f634b58514f4ae159cb04b826cbc99a (patch)
treea7dc4919af0b31391e75601329b6e083eec6449d /shell
parentc9417a5e7de3dfc3cb0dc6d3b72b01fd77b1a211 (diff)
downloadgsoc2013-evolution-3af02b087f634b58514f4ae159cb04b826cbc99a.tar.gz
gsoc2013-evolution-3af02b087f634b58514f4ae159cb04b826cbc99a.tar.zst
gsoc2013-evolution-3af02b087f634b58514f4ae159cb04b826cbc99a.zip
First argument to gtk_hbox_new () is a boolean, not an int, don't show the
2004-01-28 Rodney Dawes <dobey@ximian.com> * e-task-bar.c (init): First argument to gtk_hbox_new () is a boolean, not an int, don't show the hbox for activities by default (e_task_bar_prepend_task): Show the hbox for activities when we add tasks to the taskbar (e_task_bar_remove_task): If we have no tasks left to display, don't show the empty hbox svn path=/trunk/; revision=24500
Diffstat (limited to 'shell')
-rw-r--r--shell/ChangeLog9
-rw-r--r--shell/e-task-bar.c10
2 files changed, 16 insertions, 3 deletions
diff --git a/shell/ChangeLog b/shell/ChangeLog
index 74c40e7986..d03121954a 100644
--- a/shell/ChangeLog
+++ b/shell/ChangeLog
@@ -1,3 +1,12 @@
+2004-01-28 Rodney Dawes <dobey@ximian.com>
+
+ * e-task-bar.c (init): First argument to gtk_hbox_new () is a boolean,
+ not an int, don't show the hbox for activities by default
+ (e_task_bar_prepend_task): Show the hbox for activities when we add
+ tasks to the taskbar
+ (e_task_bar_remove_task): If we have no tasks left to display, don't
+ show the empty hbox
+
2004-01-27 Rodney Dawes <dobey@ximian.com>
* e-task-bar.c (init): Expand the label, this fixes the problem
diff --git a/shell/e-task-bar.c b/shell/e-task-bar.c
index b31527a36b..6f20d11505 100644
--- a/shell/e-task-bar.c
+++ b/shell/e-task-bar.c
@@ -109,9 +109,8 @@ init (ETaskBar *task_bar)
gtk_misc_set_alignment (GTK_MISC (label), 0, 0.5);
task_bar->priv->message_label = E_CLIPPED_LABEL (label);
- hbox = gtk_hbox_new (0, FALSE);
- gtk_widget_show (hbox);
- gtk_container_add (GTK_CONTAINER (task_bar), hbox);
+ hbox = gtk_hbox_new (FALSE, 0);
+ gtk_container_add (GTK_CONTAINER (task_bar), hbox);
task_bar->priv->hbox = GTK_HBOX (hbox);
}
@@ -192,6 +191,8 @@ e_task_bar_prepend_task (ETaskBar *task_bar,
}
reduce_displayed_activities_per_component (task_bar);
+
+ gtk_widget_show (GTK_WIDGET (task_bar->priv->hbox));
}
void
@@ -208,6 +209,9 @@ e_task_bar_remove_task (ETaskBar *task_bar,
gtk_widget_destroy (GTK_WIDGET (task_widget));
reduce_displayed_activities_per_component (task_bar);
+
+ if (g_list_length (GTK_BOX (task_bar->priv->hbox)->children) == 0)
+ gtk_widget_hide (GTK_WIDGET (task_bar->priv->hbox));
}
ETaskWidget *