[gdm] Drop GtkObject usage



commit db8de4d655b644f6e21a0f69f21cd285cb2fbc32
Author: William Jon McCann <jmccann redhat com>
Date:   Tue Jan 11 22:36:17 2011 -0500

    Drop GtkObject usage
    
    https://bugzilla.gnome.org/show_bug.cgi?id=639284

 gui/simple-greeter/gdm-scrollable-widget.c |    8 +++-----
 1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/gui/simple-greeter/gdm-scrollable-widget.c b/gui/simple-greeter/gdm-scrollable-widget.c
index 3ff1c7d..58f84f9 100644
--- a/gui/simple-greeter/gdm-scrollable-widget.c
+++ b/gui/simple-greeter/gdm-scrollable-widget.c
@@ -471,7 +471,7 @@ gdm_scrollable_widget_forall (GtkContainer *container,
 }
 
 static void
-gdm_scrollable_widget_destroy (GtkObject *object)
+gdm_scrollable_widget_destroy (GtkWidget *object)
 {
         GdmScrollableWidget *scrollable_widget;
 
@@ -480,7 +480,7 @@ gdm_scrollable_widget_destroy (GtkObject *object)
         gtk_widget_unparent (scrollable_widget->priv->scrollbar);
         gtk_widget_destroy (scrollable_widget->priv->scrollbar);
 
-        GTK_OBJECT_CLASS (gdm_scrollable_widget_parent_class)->destroy (object);
+        GTK_WIDGET_CLASS (gdm_scrollable_widget_parent_class)->destroy (object);
 }
 
 static void
@@ -616,20 +616,18 @@ static void
 gdm_scrollable_widget_class_init (GdmScrollableWidgetClass *klass)
 {
         GObjectClass             *object_class;
-        GtkObjectClass           *gtk_object_class;
         GtkWidgetClass           *widget_class;
         GtkContainerClass        *container_class;
         GdmScrollableWidgetClass *scrollable_widget_class;
 
         object_class = G_OBJECT_CLASS (klass);
-        gtk_object_class = GTK_OBJECT_CLASS (klass);
         widget_class = GTK_WIDGET_CLASS (klass);
         container_class = GTK_CONTAINER_CLASS (klass);
         scrollable_widget_class = GDM_SCROLLABLE_WIDGET_CLASS (klass);
 
         object_class->finalize = gdm_scrollable_widget_finalize;
 
-        gtk_object_class->destroy = gdm_scrollable_widget_destroy;
+        widget_class->destroy = gdm_scrollable_widget_destroy;
 
         widget_class->size_request = gdm_scrollable_widget_size_request;
         widget_class->size_allocate = gdm_scrollable_widget_size_allocate;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]