[gnome-power-manager] Adapt to GtkObject removal in GTK3
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-power-manager] Adapt to GtkObject removal in GTK3
- Date: Wed, 6 Oct 2010 14:30:07 +0000 (UTC)
commit c635dc1e6bc65af6c755faa2d279044fd9b893ce
Author: Javier Jardón <jjardon gnome org>
Date: Wed Oct 6 01:58:56 2010 +0200
Adapt to GtkObject removal in GTK3
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=631479
applets/brightness/brightness-applet.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/applets/brightness/brightness-applet.c b/applets/brightness/brightness-applet.c
index f04b95d..33d64cd 100644
--- a/applets/brightness/brightness-applet.c
+++ b/applets/brightness/brightness-applet.c
@@ -99,7 +99,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_bonobo_cb (PanelApplet *_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"
@@ -803,12 +803,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);
g_bus_unwatch_name (applet->bus_watch_id);
if (applet->icon != NULL)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]