Index: src/vte.c
===================================================================
--- src/vte.c	(révision 2000)
+++ src/vte.c	(copie de travail)
@@ -11080,6 +11080,37 @@ vte_terminal_im_append_menuitems(VteTerm
 	gtk_im_multicontext_append_menuitems(context, menushell);
 }
 
+/**
+ * vte_terminal_im_merge_ui:
+ * @terminal: a #VteTerminal
+ * @ui_manager: a #GtkUIManager
+ * @group_name: the name to use when creating the #GtkActionGroup
+ * @ui_path: the path where to merge the UI in @ui_manager
+ * @group: a location to return the newly created #GtkActionGroup
+ *
+ * Adds UI for various input methods to @ui_manager. See
+ * gtk_im_multicontext_merge_ui().
+ *
+ * Returns: the merge ID
+ */
+guint
+vte_terminal_im_merge_ui(VteTerminal *terminal,
+                         GtkUIManager *manager,
+                         const char *group_name,
+                         const char *ui_path,
+                         GtkActionGroup **action_group)
+{
+	GtkIMMulticontext *context;
+
+	g_return_val_if_fail(VTE_IS_TERMINAL(terminal), 0);
+	g_return_val_if_fail(GTK_WIDGET_REALIZED(terminal), 0);
+
+	context = GTK_IM_MULTICONTEXT(terminal->pvt->im_context);
+
+	return gtk_im_multicontext_merge_ui(context, manager, group_name,
+                                            ui_path, action_group);
+}
+
 /* Set up whatever background we wanted. */
 static gboolean
 vte_terminal_background_update(VteTerminal *terminal)
Index: src/vte.h
===================================================================
--- src/vte.h	(révision 2000)
+++ src/vte.h	(copie de travail)
@@ -285,6 +285,11 @@ void vte_terminal_set_scrollback_lines(V
 /* Append the input method menu items to a given shell. */
 void vte_terminal_im_append_menuitems(VteTerminal *terminal,
 				      GtkMenuShell *menushell);
+guint vte_terminal_im_merge_ui(VteTerminal *terminal,
+                               GtkUIManager *manager,
+                               const char *group_name,
+                               const char *ui_path,
+                               GtkActionGroup **action_group);
 
 /* Set or retrieve the current font. */
 void vte_terminal_set_font(VteTerminal *terminal,
