Re: Menubars with new api



Russell Shaw wrote:
Hi,
I'm trying to make a menubar widget with the first menu named "File", which
contains a menu item named "Open":

  GtkUIManager *manager=gtk_ui_manager_new();
  guint mid=gtk_ui_manager_new_merge_id(manager);
  gtk_ui_manager_add_ui(
           manager,
           mid,
           "/menubar",
           NULL,
           <action>,                // what do i use for <action> ?
           GTK_UI_MANAGER_MENUBAR,
           TRUE
  );

What do i do now? I've looked at testaction.c, but it's still not so clear.

Found answers here:

  http://developer.gnome.org/doc/API/2.2/gtk/migrating-gnomeuiinfo.html



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