changeset 3032:6baa6eaf8290

Don't use deprecated gtk_type_class()
author Tomasz Mon <desowin@gmail.com>
date Fri, 10 Apr 2009 11:02:41 +0200
parents 9cba6d37570e
children 70eb8b174e15
files src/skins/ui_skinned_button.c src/skins/ui_skinned_equalizer_graph.c src/skins/ui_skinned_equalizer_slider.c src/skins/ui_skinned_horizontal_slider.c src/skins/ui_skinned_menurow.c src/skins/ui_skinned_monostereo.c src/skins/ui_skinned_number.c src/skins/ui_skinned_playlist.c src/skins/ui_skinned_playlist_slider.c src/skins/ui_skinned_playstatus.c src/skins/ui_skinned_textbox.c src/skins/ui_skinned_window.c
diffstat 12 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/src/skins/ui_skinned_button.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_button.c	Fri Apr 10 11:02:41 2009 +0200
@@ -106,7 +106,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_button_destroy;
 
--- a/src/skins/ui_skinned_equalizer_graph.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_equalizer_graph.c	Fri Apr 10 11:02:41 2009 +0200
@@ -73,7 +73,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_equalizer_graph_destroy;
 
--- a/src/skins/ui_skinned_equalizer_slider.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_equalizer_slider.c	Fri Apr 10 11:02:41 2009 +0200
@@ -95,7 +95,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_equalizer_slider_destroy;
 
--- a/src/skins/ui_skinned_horizontal_slider.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_horizontal_slider.c	Fri Apr 10 11:02:41 2009 +0200
@@ -94,7 +94,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_horizontal_slider_destroy;
 
--- a/src/skins/ui_skinned_menurow.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_menurow.c	Fri Apr 10 11:02:41 2009 +0200
@@ -82,7 +82,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_menurow_destroy;
 
--- a/src/skins/ui_skinned_monostereo.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_monostereo.c	Fri Apr 10 11:02:41 2009 +0200
@@ -73,7 +73,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_monostereo_destroy;
 
--- a/src/skins/ui_skinned_number.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_number.c	Fri Apr 10 11:02:41 2009 +0200
@@ -80,7 +80,7 @@
 
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_number_destroy;
 
--- a/src/skins/ui_skinned_playlist.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_playlist.c	Fri Apr 10 11:02:41 2009 +0200
@@ -118,7 +118,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_playlist_destroy;
 
--- a/src/skins/ui_skinned_playlist_slider.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_playlist_slider.c	Fri Apr 10 11:02:41 2009 +0200
@@ -83,7 +83,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_playlist_slider_destroy;
 
--- a/src/skins/ui_skinned_playstatus.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_playstatus.c	Fri Apr 10 11:02:41 2009 +0200
@@ -75,7 +75,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_playstatus_destroy;
 
--- a/src/skins/ui_skinned_textbox.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_textbox.c	Fri Apr 10 11:02:41 2009 +0200
@@ -116,7 +116,7 @@
     gobject_class = G_OBJECT_CLASS(klass);
     object_class = (GtkObjectClass*) klass;
     widget_class = (GtkWidgetClass*) klass;
-    parent_class = gtk_type_class (gtk_widget_get_type ());
+    parent_class = g_type_class_peek_parent(klass);
 
     object_class->destroy = ui_skinned_textbox_destroy;
 
--- a/src/skins/ui_skinned_window.c	Fri Apr 10 10:42:13 2009 +0200
+++ b/src/skins/ui_skinned_window.c	Fri Apr 10 11:02:41 2009 +0200
@@ -188,7 +188,7 @@
 
     widget_class = (GtkWidgetClass*) klass;
 
-    parent = gtk_type_class(gtk_window_get_type());
+    parent = g_type_class_peek_parent(klass);
 
     widget_class->motion_notify_event = ui_skinned_window_motion_notify_event;
     widget_class->focus_in_event = ui_skinned_window_focus_in;