[mousetweaks] Adapt to GtkObject removal in GTK3
- From: Javier Jardón <jjardon src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [mousetweaks] Adapt to GtkObject removal in GTK3
- Date: Wed, 6 Oct 2010 21:50:08 +0000 (UTC)
commit 7427d8127de559a3b5e74c39a222ea3e623873bb
Author: Javier Jardón <jjardon gnome org>
Date: Wed Oct 6 16:52:14 2010 +0200
Adapt to GtkObject removal in GTK3
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=631533
configure.ac | 2 +-
src/pointer-capture-applet.c | 10 +++++-----
2 files changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 4bc0101..1f61427 100644
--- a/configure.ac
+++ b/configure.ac
@@ -43,7 +43,7 @@ GIO_REQUIRED=2.25.9
PKG_CHECK_MODULES(DEPENDENCIES,
gio-2.0 >= $GIO_REQUIRED
- gtk+-2.0 >= 2.18
+ gtk+-3.0 >= 2.91.0
gconf-2.0 >= 2.16.0
x11
xcursor
diff --git a/src/pointer-capture-applet.c b/src/pointer-capture-applet.c
index 061b18f..4cea0ca 100644
--- a/src/pointer-capture-applet.c
+++ b/src/pointer-capture-applet.c
@@ -111,9 +111,9 @@ pc_applet_change_orient (PanelApplet *applet,
}
static void
-pc_applet_destroy (GtkObject *object)
+pc_applet_destroy (GtkWidget *widget)
{
- PcApplet *pc = PC_APPLET (object);
+ PcApplet *pc = PC_APPLET (widget);
if (pc->blank)
{
@@ -133,11 +133,11 @@ pc_applet_destroy (GtkObject *object)
static void
pc_applet_class_init (PcAppletClass *klass)
{
- GtkObjectClass *object_class;
+ GtkWidgetClass *widget_class;
PanelAppletClass *applet_class;
- object_class = GTK_OBJECT_CLASS (klass);
- object_class->destroy = pc_applet_destroy;
+ widget_class = GTK_WIDGET_CLASS (klass);
+ widget_class->destroy = pc_applet_destroy;
applet_class = PANEL_APPLET_CLASS (klass);
applet_class->change_orient = pc_applet_change_orient;
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]