From 90f21fa5dbe5029919cd62c2ccde423021d99c98 Mon Sep 17 00:00:00 2001 From: Thomas Hindoe Paaboel Andersen Date: Thu, 30 Apr 2009 19:45:17 +0200 Subject: [PATCH] Replace usage of deprecated gtk api Fixes part of GNOME Bug #572332 --- src/ui/preview-widget.c | 2 +- src/ui/themewidget.c | 2 +- src/ui/ui.c | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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;