diff src/skins/ui_vis.h @ 3017:963796db51ea

Don't use deprecated gtk macros and types
author Tomasz Mon <desowin@gmail.com>
date Thu, 09 Apr 2009 14:23:42 +0200
parents 8fba3fbf1a0f
children
line wrap: on
line diff
--- a/src/skins/ui_vis.h	Thu Apr 09 02:21:21 2009 +0300
+++ b/src/skins/ui_vis.h	Thu Apr 09 14:23:42 2009 +0200
@@ -27,9 +27,9 @@
 extern "C" {
 #endif
 
-#define UI_VIS(obj)          GTK_CHECK_CAST (obj, ui_vis_get_type (), UiVis)
-#define UI_VIS_CLASS(klass)  GTK_CHECK_CLASS_CAST (klass, ui_vis_get_type (), UiVisClass)
-#define UI_IS_VIS(obj)       GTK_CHECK_TYPE (obj, ui_vis_get_type ())
+#define UI_VIS(obj)          G_TYPE_CHECK_INSTANCE_CAST (obj, ui_vis_get_type (), UiVis)
+#define UI_VIS_CLASS(klass)  G_TYPE_CHECK_CLASS_CAST (klass, ui_vis_get_type (), UiVisClass)
+#define UI_IS_VIS(obj)       G_TYPE_CHECK_INSTANCE_TYPE (obj, ui_vis_get_type ())
 
 typedef enum {
     VIS_ANALYZER, VIS_SCOPE, VIS_VOICEPRINT, VIS_OFF
@@ -85,7 +85,7 @@
 };
 
 GtkWidget* ui_vis_new (GtkWidget *fixed, gint x, gint y, gint width);
-GtkType ui_vis_get_type(void);
+GType ui_vis_get_type(void);
 void ui_vis_set_vis(GtkWidget *widget, gint num);
 void ui_vis_clear_data(GtkWidget *widget);
 void ui_vis_timeout_func(GtkWidget *widget, guchar * data);