summaryrefslogtreecommitdiff
path: root/gtk/toolbar.c
diff options
context:
space:
mode:
authorUlf Lamping <ulf.lamping@web.de>2005-04-16 20:39:18 +0000
committerUlf Lamping <ulf.lamping@web.de>2005-04-16 20:39:18 +0000
commit3625956f52d2e29e20f3858330a8165e0c1683db (patch)
tree57bb43b1aa7290457a0e09919a1a897e21e5cbc4 /gtk/toolbar.c
parent83dc83abd8dca40a7ee13b97855dbda4f01737ec (diff)
downloadwireshark-3625956f52d2e29e20f3858330a8165e0c1683db.tar.gz
disable some toolbar icons, if no capture packets loaded
svn path=/trunk/; revision=14106
Diffstat (limited to 'gtk/toolbar.c')
-rw-r--r--gtk/toolbar.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gtk/toolbar.c b/gtk/toolbar.c
index 5eaef1f315..42cfcdcccc 100644
--- a/gtk/toolbar.c
+++ b/gtk/toolbar.c
@@ -361,12 +361,15 @@ void set_toolbar_for_captured_packets(gboolean have_captured_packets) {
if (toolbar_init) {
gtk_widget_set_sensitive(print_button, have_captured_packets);
gtk_widget_set_sensitive(find_button, have_captured_packets);
+ gtk_widget_set_sensitive(history_back_button, have_captured_packets);
+ gtk_widget_set_sensitive(history_forward_button, have_captured_packets);
gtk_widget_set_sensitive(go_to_button, have_captured_packets);
gtk_widget_set_sensitive(go_to_top_button, have_captured_packets);
gtk_widget_set_sensitive(go_to_bottom_button, have_captured_packets);
gtk_widget_set_sensitive(zoom_in_button, have_captured_packets);
gtk_widget_set_sensitive(zoom_out_button, have_captured_packets);
gtk_widget_set_sensitive(zoom_100_button, have_captured_packets);
+ gtk_widget_set_sensitive(resize_columns_button, have_captured_packets);
/* XXX - I don't see a reason why this should be done (as it is in the
* menus) */
/* gtk_widget_set_sensitive(color_display_button, have_captured_packets);*/
@@ -377,7 +380,7 @@ void set_toolbar_for_captured_packets(gboolean have_captured_packets) {
/* helper function: add a separator to the toolbar */
static void toolbar_append_separator(GtkWidget *toolbar) {
#if GTK_MAJOR_VERSION < 2
- /* XXX - the usage of a gtk_separator doesn't seem to work for a toolbar.
+ /* the usage of a gtk_separator doesn't seem to work for a toolbar.
* (at least in the win32 port of gtk 1.3)
* So simply add a few spaces */
gtk_toolbar_append_space(GTK_TOOLBAR(toolbar)); /* space after item */