diff options
author | Anders Broman <anders.broman@ericsson.com> | 2011-05-03 16:51:08 +0000 |
---|---|---|
committer | Anders Broman <anders.broman@ericsson.com> | 2011-05-03 16:51:08 +0000 |
commit | ec855fcd7ec994e1648b64c0a1921dc6418d402a (patch) | |
tree | 7281b4a8f79e9314bb45afae4db2f0fdf392c373 | |
parent | c263f6461edefa2c9c64a08e7c1c654ee34faa71 (diff) | |
download | wireshark-ec855fcd7ec994e1648b64c0a1921dc6418d402a.tar.gz wireshark-ec855fcd7ec994e1648b64c0a1921dc6418d402a.tar.bz2 wireshark-ec855fcd7ec994e1648b64c0a1921dc6418d402a.zip |
Do some prep work on GUIManager code, if you enable it it will break as the menus.c changes are not commited.
svn path=/trunk/; revision=36978
-rw-r--r-- | gtk/io_stat.c | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/gtk/io_stat.c b/gtk/io_stat.c index ab45cb00a0..c381cd4596 100644 --- a/gtk/io_stat.c +++ b/gtk/io_stat.c @@ -2165,18 +2165,43 @@ init_io_stat_window(io_stat_t *io) window_present(io->window); } +#ifdef MAIN_MENU_USE_UIMANAGER +static void +gui_iostat_cb(GtkAction *action _U_, gpointer user_data _U_) +{ + iostat_init(NULL,NULL); +} +#else static void gui_iostat_cb(GtkWidget *w _U_, gpointer d _U_) { iostat_init(NULL,NULL); } +#endif void register_tap_listener_gtk_iostat(void) { register_stat_cmd_arg("io,stat", iostat_init,NULL); +#ifdef MAIN_MENU_USE_UIMANAGER + register_stat_menu_item_stock( + REGISTER_STAT_GROUP_GENERIC, /* Group */ + "/Menubar/StatisticsMenu/IOGraphs", /* GUI path */ + "IO-Graphs", /* Name */ + WIRESHARK_STOCK_GRAPHS, /* stock_id */ + "_IO Graphs", /* label */ + NULL, /* accelerator */ + NULL, /* tooltip */ + G_CALLBACK(gui_iostat_cb), /* callback */ + TRUE, /* enabled */ + NULL, /* selected_packet_enabled */ + NULL, /* selected_tree_row_enabled */ + NULL); /* callback_data */ + +#else register_stat_menu_item_stock("_IO Graphs", REGISTER_STAT_GROUP_GENERIC, WIRESHARK_STOCK_GRAPHS, gui_iostat_cb, NULL, NULL, NULL); +#endif } |