From d800546a3c93d44285be5d519201edc8b9427b7f Mon Sep 17 00:00:00 2001 From: infirit Date: Mon, 3 Aug 2015 23:08:54 +0200 Subject: Drop GtkObject usage --- applets/brightness/brightness-applet.c | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c index b0a5f91..55083bc 100644 --- a/applets/brightness/brightness-applet.c +++ b/applets/brightness/brightness-applet.c @@ -35,9 +35,6 @@ #include #include #include -#if GTK_CHECK_VERSION (3, 0, 0) -#define GtkObject GtkWidget -#endif #include #include #include @@ -108,7 +105,7 @@ static void gpm_applet_create_popup (GpmBrightnessApplet *applet); static gboolean gpm_applet_popup_cb (GpmBrightnessApplet *applet, GdkEventButton *event); static void gpm_applet_dialog_about_cb (GtkAction *action, gpointer data); static gboolean gpm_applet_cb (MatePanelApplet *_applet, const gchar *iid, gpointer data); -static void gpm_applet_destroy_cb (GtkObject *object); +static void gpm_applet_destroy_cb (GtkWidget *widget); #define GPM_BRIGHTNESS_APPLET_ID "BrightnessApplet" #define GPM_BRIGHTNESS_APPLET_FACTORY_ID "BrightnessAppletFactory" @@ -863,12 +860,12 @@ gpm_applet_help_cb (GtkAction *action, gpointer data) /** * gpm_applet_destroy_cb: - * @object: Class instance to destroy + * @widget: Class instance to destroy **/ static void -gpm_applet_destroy_cb (GtkObject *object) +gpm_applet_destroy_cb (GtkWidget *widget) { - GpmBrightnessApplet *applet = GPM_BRIGHTNESS_APPLET(object); + GpmBrightnessApplet *applet = GPM_BRIGHTNESS_APPLET(widget); if (applet->monitor != NULL) { g_object_unref (applet->monitor); -- cgit v1.2.1