diff --git a/src/ui/preview-widget.c b/src/ui/preview-widget.c index 32fbc7051..a6da36d5a 100644 --- a/src/ui/preview-widget.c +++ b/src/ui/preview-widget.c @@ -72,7 +72,7 @@ meta_preview_class_init (MetaPreviewClass *class) GtkWidgetClass *widget_class; widget_class = (GtkWidgetClass*) class; - parent_class = gtk_type_class (GTK_TYPE_BIN); + parent_class = g_type_class_peek (GTK_TYPE_BIN); gobject_class->finalize = meta_preview_finalize; diff --git a/src/ui/themewidget.c b/src/ui/themewidget.c index 5eab87d6a..7ee9db087 100644 --- a/src/ui/themewidget.c +++ b/src/ui/themewidget.c @@ -69,7 +69,7 @@ meta_area_class_init (MetaAreaClass *class) object_class = (GtkObjectClass*) class; widget_class = (GtkWidgetClass*) class; - parent_class = gtk_type_class (gtk_misc_get_type ()); + parent_class = g_type_class_peek (gtk_misc_get_type ()); gobject_class->finalize = meta_area_finalize; diff --git a/src/ui/ui.c b/src/ui/ui.c index 6955112d7..7f2fac593 100644 --- a/src/ui/ui.c +++ b/src/ui/ui.c @@ -656,7 +656,7 @@ meta_ui_window_should_not_cause_focus (Display *xdisplay, /* we shouldn't cause focus if we're an override redirect * toplevel which is not foreign */ - if (window && gdk_window_get_type (window) == GDK_WINDOW_TEMP) + if (window && gdk_window_get_window_type (window) == GDK_WINDOW_TEMP) return TRUE; else return FALSE;