gtk: Avoid GdkDrawable usage, including needless casts

This commit is contained in:
Benjamin Otte 2010-11-22 17:47:56 +01:00
parent 63808f90a2
commit a7e6d6c4b4
3 changed files with 4 additions and 4 deletions

View File

@ -692,7 +692,7 @@ check_hex (GtkIMContextSimple *context_simple,
static void
beep_window (GdkWindow *window)
{
GdkScreen *screen = gdk_window_get_screen (GDK_DRAWABLE (window));
GdkScreen *screen = gdk_window_get_screen (window);
gboolean beep;
g_object_get (gtk_settings_get_for_screen (screen),

View File

@ -681,9 +681,9 @@ _gtk_im_module_get_default_context_id (GdkWindow *client_window)
/* Check if the certain immodule is set in XSETTINGS.
*/
if (GDK_IS_DRAWABLE (client_window))
if (GDK_IS_WINDOW (client_window))
{
screen = gdk_window_get_screen (GDK_DRAWABLE (client_window));
screen = gdk_window_get_screen (client_window);
settings = gtk_settings_get_for_screen (screen);
g_object_get (G_OBJECT (settings), "gtk-im-module", &tmp, NULL);
if (tmp)

View File

@ -297,7 +297,7 @@ gtk_im_multicontext_set_client_window (GtkIMContext *context,
if (window)
{
screen = gdk_window_get_screen (GDK_DRAWABLE (window));
screen = gdk_window_get_screen (window);
settings = gtk_settings_get_for_screen (screen);
connected = GPOINTER_TO_INT (g_object_get_data (G_OBJECT (settings),