After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 500065 - need gtkuimanager way to append input method menu items
need gtkuimanager way to append input method menu items
Status: RESOLVED OBSOLETE
Product: gtk+
Classification: Platform
Component: Class: UIManager / Actions
unspecified
Other Linux
: Normal enhancement
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks: 143467 500196
 
 
Reported: 2007-11-27 21:52 UTC by Christian Persch
Modified: 2013-06-08 11:30 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement


Attachments
proposed patch (9.74 KB, patch)
2007-11-28 13:30 UTC, Christian Persch
none Details | Review

Description Christian Persch 2007-11-27 21:52:42 UTC
For gtkmenu based menus, there's gtk_im_multicontext_append_menuitems(). Since my app uses gtkuimanager menus, I need a way to create an action group containing actions for the input methods, and to create a menu merge ID containing the menu items at a specified UI path.

I propose:

GtkActionGroup *gtk_im_multicontext_create_action_group
  (GtkIMMultiContext *im,
   const char *unique_id);

(the unique_id would be used for the action names, e.g. <Unique>GtkIMAction<ID>)

guint gtk_im_multicontext_merge_ui 
  (GtkIMMultiContext *im,
   GtkUIManager *manager,
   const char *ui_path);

or maybe a combined method

void gtk_im_multicontext_create_ui
  (GtkIMMultiContext *im,
   GtkUIManager *manager,
   const char *unique_id,
   const char *ui_path,
   GtkActionGroup **group,
   guint *merge_id);

If that's agreeable, I can provide a patch.
Comment 1 Christian Persch 2007-11-28 13:30:13 UTC
Created attachment 99773 [details] [review]
proposed patch

I went with the all-in-one variant.
Comment 2 Christian Persch 2013-06-08 11:30:23 UTC
Not necessary anymore.