aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 *