[gtk+/wip/attachment-rectangle] label: use gtk_menu_popup_against ()
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/attachment-rectangle] label: use gtk_menu_popup_against ()
- Date: Wed, 9 Sep 2015 21:37:19 +0000 (UTC)
commit 37825d57a78128349bcab29ec491ab7550231870
Author: William Hua <william hua canonical com>
Date: Wed Sep 9 11:57:19 2015 -0400
label: use gtk_menu_popup_against ()
gtk/gtklabel.c | 15 ++++++++++++---
1 files changed, 12 insertions(+), 3 deletions(-)
---
diff --git a/gtk/gtklabel.c b/gtk/gtklabel.c
index fd8da41..a4e5b73 100644
--- a/gtk/gtklabel.c
+++ b/gtk/gtklabel.c
@@ -6625,9 +6625,18 @@ gtk_label_do_popup (GtkLabel *label,
event->button, event->time);
else
{
- gtk_menu_popup (GTK_MENU (menu), NULL, NULL,
- popup_position_func, label,
- 0, gtk_get_current_event_time ());
+ gtk_menu_popup_against (GTK_MENU (menu),
+ NULL,
+ NULL,
+ GTK_WIDGET (label),
+ NULL,
+ GDK_ATTACHMENT_ATTACH_BOTTOM_EDGE | GDK_ATTACHMENT_ATTACH_OPPOSITE_EDGE,
+ NULL,
+ NULL,
+ NULL,
+ 0,
+ gtk_get_current_event_time ());
+
gtk_menu_shell_select_first (GTK_MENU_SHELL (menu), FALSE);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]