Replace usage of deprecated gtk api

Fixes part of GNOME Bug #572332
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2009-04-30 19:45:17 +02:00 committed by Owen W. Taylor
parent 6638d0e507
commit 90f21fa5db
3 changed files with 3 additions and 3 deletions

View File

@ -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;

View File

@ -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;

View File

@ -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;