diff options
author | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-01 16:29:37 +0000 |
---|---|---|
committer | stig <stig@f5534014-38df-0310-8fa8-9805f1628bb7> | 2010-10-01 16:29:37 +0000 |
commit | 4667f2ba4a02168c6b6f355d400c53e6fea0e542 (patch) | |
tree | c2613e71492404ced8036ef24122b14520f30e68 /gtk/main_statusbar.c | |
parent | a6f5ee030e8b71a182b5b069bf9a994944ac8079 (diff) |
Add a new right-click popup menu for the statusbar profiles for easy functions
to create new, copy, delete and rename configuration profiles.
git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@34312 f5534014-38df-0310-8fa8-9805f1628bb7
Diffstat (limited to 'gtk/main_statusbar.c')
-rw-r--r-- | gtk/main_statusbar.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/gtk/main_statusbar.c b/gtk/main_statusbar.c index 4a11f454de..5a55c4e726 100644 --- a/gtk/main_statusbar.c +++ b/gtk/main_statusbar.c @@ -56,6 +56,8 @@ #include "gtk/profile_dlg.h" #include "gtk/main_welcome.h" #include "gtk/expert_indicators.h" +#include "gtk/keys.h" +#include "gtk/menus.h" /* * The order below defines the priority of info bar contexts. @@ -411,6 +413,8 @@ profile_bar_new(void) profile_bar = gtk_statusbar_new(); gtk_container_add(GTK_CONTAINER(profile_bar_event), profile_bar); g_signal_connect(profile_bar_event, "button_press_event", G_CALLBACK(profile_show_popup_cb), NULL); + g_signal_connect(profile_bar_event, "button_press_event", G_CALLBACK(popup_menu_handler), + g_object_get_data(G_OBJECT(popup_menu_object), PM_STATUSBAR_PROFILES_KEY)); profile_ctx = gtk_statusbar_get_context_id(GTK_STATUSBAR(profile_bar), "profile"); gtk_tooltips_set_tip (tooltips, profile_bar_event, "Click to change configuration profile", NULL); @@ -478,8 +482,9 @@ profile_bar_update(void) } profile_str = g_strdup_printf (" Profile: %s", get_profile_name ()); - gtk_statusbar_push(GTK_STATUSBAR(profile_bar), profile_ctx, profile_str); + + set_menus_for_profiles(is_default_profile()); } } |