diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-01-05 05:43:53 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-01-05 09:22:21 +0800 |
commit | 1501b8588c33f96310cf30b39b8a75f5a55afab0 (patch) | |
tree | 1d1c1b90d06c58787ad2a81208a602e9c6fab55d /widgets/table/e-table-header-item.c | |
parent | e969826cd3ef2ba0f473313197990793d4bcac0b (diff) | |
download | gsoc2013-evolution-1501b8588c33f96310cf30b39b8a75f5a55afab0.tar.gz gsoc2013-evolution-1501b8588c33f96310cf30b39b8a75f5a55afab0.tar.zst gsoc2013-evolution-1501b8588c33f96310cf30b39b8a75f5a55afab0.zip |
Kill e_popup_menu().
The function is trivial and was only used from ETableHeaderItem.
This also eliminates widgets/misc/e-gui-utils.[ch].
Diffstat (limited to 'widgets/table/e-table-header-item.c')
-rw-r--r-- | widgets/table/e-table-header-item.c | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/widgets/table/e-table-header-item.c b/widgets/table/e-table-header-item.c index 2b601c44b6..ed468b3c58 100644 --- a/widgets/table/e-table-header-item.c +++ b/widgets/table/e-table-header-item.c @@ -38,7 +38,6 @@ #include "e-util/e-util.h" #include "e-util/e-xml-utils.h" #include "misc/e-canvas.h" -#include "misc/e-gui-utils.h" #include "misc/e-popup-menu.h" #include "e-table.h" @@ -1596,7 +1595,11 @@ ethi_header_context_menu (ETableHeaderItem *ethi, GdkEventButton *event) g_object_ref_sink (popup); g_signal_connect (popup, "selection-done", G_CALLBACK (free_popup_info), info); - e_popup_menu (popup, (GdkEvent *) event); + + gtk_menu_popup ( + GTK_MENU (popup), + NULL, NULL, NULL, NULL, + event->button, event->time); } static void @@ -1828,7 +1831,10 @@ ethi_event (GnomeCanvasItem *item, GdkEvent *e) g_object_ref_sink (popup); g_signal_connect (popup, "selection-done", G_CALLBACK (free_popup_info), info); - e_popup_menu (popup, NULL); + gtk_menu_popup ( + GTK_MENU (popup), + NULL, NULL, NULL, NULL, + 0, GDK_CURRENT_TIME); } else if (e->key.keyval == GDK_space) { ETableCol *ecol; |