menu doesn't have ancestor?



Hi list,

  When I do:
  
  anc = gtk_widget_get_ancestor (button1, GTK_TYPE_WINDOW);

  inside a button1 callback, it returns a pointer to the ancestor window.

  But if I do it inside a menu item callback (changing button1 to menuitem1)
  it doesn't work.

  Any hints?
    Pedro




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]