aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-header-item.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2010-01-05 05:43:53 +0800
committerMatthew Barnes <mbarnes@redhat.com>2010-01-05 09:22:21 +0800
commit1501b8588c33f96310cf30b39b8a75f5a55afab0 (patch)
tree1d1c1b90d06c58787ad2a81208a602e9c6fab55d /widgets/table/e-table-header-item.c
parente969826cd3ef2ba0f473313197990793d4bcac0b (diff)
downloadgsoc2013-evolution-1501b8588c33f96310cf30b39b8a75f5a55afab0.tar
gsoc2013-evolution-1501b8588c33f96310cf30b39b8a75f5a55afab0.tar.gz
gsoc2013-evolution-1501b8588c33f96310cf30b39b8a75f5a55afab0.tar.bz2
gsoc2013-evolution-1501b8588c33f96310cf30b39b8a75f5a55afab0.tar.lz
gsoc2013-evolution-1501b8588c33f96310cf30b39b8a75f5a55afab0.tar.xz
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.c12
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;