From 3625956f52d2e29e20f3858330a8165e0c1683db Mon Sep 17 00:00:00 2001 From: Ulf Lamping Date: Sat, 16 Apr 2005 20:39:18 +0000 Subject: disable some toolbar icons, if no capture packets loaded svn path=/trunk/; revision=14106 --- gtk/toolbar.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'gtk/toolbar.c') 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 */ -- cgit v1.2.1