diff options
author | Anders Broman <anders.broman@ericsson.com> | 2012-03-08 08:04:39 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2012-03-08 08:04:39 +0000 |
commit | 44828083eeb9425853fe6e682d160d095f3ac821 (patch) | |
tree | 39fcfced34fd9e7c83b513624e2967bda87ff715 /ui/gtk/main_statusbar.c | |
parent | 839b3e748164a048ea6815d014a704fd518aafe0 (diff) | |
download | wireshark-44828083eeb9425853fe6e682d160d095f3ac821.tar.gz |
Don't show expert info or comments icons unless we have a file loaded
svn path=/trunk/; revision=41423
Diffstat (limited to 'ui/gtk/main_statusbar.c')
-rw-r--r-- | ui/gtk/main_statusbar.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/ui/gtk/main_statusbar.c b/ui/gtk/main_statusbar.c index ab2c1df515..124c965862 100644 --- a/ui/gtk/main_statusbar.c +++ b/ui/gtk/main_statusbar.c @@ -586,7 +586,6 @@ status_expert_new(void) expert_info_none = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(expert_info_none), expert_image); g_signal_connect(expert_info_none, "button_press_event", G_CALLBACK(expert_comp_dlg_event_cb), NULL); - gtk_widget_show(expert_info_none); } static void @@ -642,8 +641,7 @@ status_capture_comment_new(void) capture_comment_none = gtk_event_box_new(); gtk_container_add(GTK_CONTAINER(capture_comment_none), comment_image); g_signal_connect(capture_comment_none, "button_press_event", G_CALLBACK(edit_capture_comment_dlg_event_cb), NULL); - gtk_widget_show(capture_comment_none); - + /* comment_image = pixbuf_to_widget(capture_comment_disabled_pb_data); ... */ } @@ -719,6 +717,10 @@ statusbar_cf_file_closed_cb(capture_file *cf _U_) { /* go back to "No packets" */ packets_bar_update(); + /* Remove comments icon */ + status_capture_comment_hide(); + /* Remove experts icon */ + status_expert_hide(); } |