obtain parent from menu callback
- From: "Steve ." <iteration69 gmail com>
- To: gtk-app-devel-list gnome org
- Subject: obtain parent from menu callback
- Date: Sat, 26 Nov 2011 03:27:17 -0500
Hello folks,
I've got a GtkItemFactoryEntry popup menu, the menu pops up from a button
press event using gtk_menu_popup
Inside my menu callback I need to be able to force a configure event on
another widget.
My hierarchy:
window
-Fixed Container
--Drawable
The menu is created using the window and i need to force the configure
event on the drawable
Looking at gtk_menu_popup
(GtkMenu *menu,
GtkWidget *parent_menu_shell,
GtkWidget *parent_menu_item,
GtkMenuPositionFunc func,
gpointer data,
guint button,
guint32 activate_time);
Since i manually place the popup menu via the position func and data, i'm
using all the params except. 2nd and 3rd
I'm wondering if there is a way to use either GtkWidget *parent_menu_shell,
or GtkWidget *parent_menu_item, to pass the drawable widget to my menu
callback.
I have access to the drawable inside the button press even handler, which
calls gtk_menu_popup so it seems like the best place to pass the widget.
Since the menu callback arguments changed with the position func and data,
i'm curios if it changes when i add the parent menu item?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]