diff options
author | Irene RĂ¼ngeler <I.Ruengeler@fh-muenster.de> | 2013-04-12 13:33:22 +0000 |
---|---|---|
committer | Irene RĂ¼ngeler <I.Ruengeler@fh-muenster.de> | 2013-04-12 13:33:22 +0000 |
commit | 22e43ff352b1223dea551c1e9c770b6eabab457e (patch) | |
tree | 4757291be76e420e0849a6b6a770b708ebf9a9bb /ui | |
parent | 590a68a677a870b2d83885dd79683b623f5253da (diff) |
Ifdef LibPcap
svn path=/trunk/; revision=48830
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/main_menubar.c | 4 | ||||
-rw-r--r-- | ui/gtk/main_toolbar.c | 4 | ||||
-rw-r--r-- | ui/gtk/main_welcome.c | 2 |
3 files changed, 6 insertions, 4 deletions
diff --git a/ui/gtk/main_menubar.c b/ui/gtk/main_menubar.c index 86e15c9e25..c4b4760c57 100644 --- a/ui/gtk/main_menubar.c +++ b/ui/gtk/main_menubar.c @@ -4834,14 +4834,14 @@ set_menus_for_capture_in_progress(gboolean capture_in_progress) #endif /* HAVE_LIBPCAP */ } +#ifdef HAVE_LIBPCAP void set_menus_capture_start_sensitivity(gboolean enable) { -#ifdef HAVE_LIBPCAP set_menu_sensitivity(ui_manager_main_menubar, "/Menubar/CaptureMenu/Start", enable); -#endif } +#endif /* Disable menu items while we're waiting for the capture child to finish. We disallow quitting until it finishes, and also disallow diff --git a/ui/gtk/main_toolbar.c b/ui/gtk/main_toolbar.c index 441ad382eb..e629937c8e 100644 --- a/ui/gtk/main_toolbar.c +++ b/ui/gtk/main_toolbar.c @@ -98,11 +98,11 @@ toolbar_redraw_all(void) (GtkToolbarStyle)prefs.gui_toolbar_filter_style); } -void set_start_button_sensitive(gboolean enable) { #ifdef HAVE_LIBPCAP +void set_start_button_sensitive(gboolean enable) { gtk_widget_set_sensitive(GTK_WIDGET(new_button), enable); -#endif } +#endif /* Enable or disable toolbar items based on whether you have a capture file and, if so, whether you've finished reading it and whether there's stuff diff --git a/ui/gtk/main_welcome.c b/ui/gtk/main_welcome.c index a7fec6cef7..6de0feaae5 100644 --- a/ui/gtk/main_welcome.c +++ b/ui/gtk/main_welcome.c @@ -759,10 +759,12 @@ gboolean on_selection_changed(GtkTreeSelection *selection _U_, void set_sensitivity_for_start_icon(void) { +#ifdef HAVE_LIBPCAP gboolean enable = (global_capture_opts.num_selected > 0); set_start_button_sensitive(enable); set_menus_capture_start_sensitivity(enable); +#endif } static gboolean activate_ifaces(GtkTreeModel *model, |