immodule: Remove unused parameter

This commit is contained in:
Benjamin Otte 2015-08-18 20:45:34 +02:00
parent 8ed4e439e4
commit c6219c913f
3 changed files with 4 additions and 5 deletions

View File

@ -792,7 +792,6 @@ get_current_input_language (void)
/**
* _gtk_im_module_get_default_context_id:
* @client_window: a window
*
* Return the context_id of the best IM context type
* for the given window.
@ -800,7 +799,7 @@ get_current_input_language (void)
* Returns: the context ID (will never be %NULL)
*/
const gchar *
_gtk_im_module_get_default_context_id (GdkWindow *client_window)
_gtk_im_module_get_default_context_id (void)
{
GSList *tmp_list;
const gchar *context_id = NULL;

View File

@ -27,7 +27,7 @@ G_BEGIN_DECLS
void _gtk_im_module_list (const GtkIMContextInfo ***contexts,
guint *n_contexts);
GtkIMContext * _gtk_im_module_create (const gchar *context_id);
const gchar * _gtk_im_module_get_default_context_id (GdkWindow *client_window);
const gchar * _gtk_im_module_get_default_context_id (void);
G_END_DECLS

View File

@ -251,7 +251,7 @@ get_effective_context_id (GtkIMMulticontext *multicontext)
return priv->context_id_aux;
if (!global_context_id)
global_context_id = _gtk_im_module_get_default_context_id (priv->client_window);
global_context_id = _gtk_im_module_get_default_context_id ();
return global_context_id;
}
@ -605,7 +605,7 @@ gtk_im_multicontext_append_menuitems (GtkIMMulticontext *context,
GtkWidget *menuitem, *system_menuitem;
const char *system_context_id;
system_context_id = _gtk_im_module_get_default_context_id (priv->client_window);
system_context_id = _gtk_im_module_get_default_context_id ();
system_menuitem = menuitem = gtk_radio_menu_item_new_with_label (group, C_("input method menu", "System"));
if (!priv->context_id_aux)
gtk_check_menu_item_set_active (GTK_CHECK_MENU_ITEM (menuitem), TRUE);