[gnome-control-center] wacom: Style fixes for signal handlers
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-control-center] wacom: Style fixes for signal handlers
- Date: Thu, 16 Feb 2012 18:35:18 +0000 (UTC)
commit 4738872e04614fabba75a71528a1ecb1a7cbe84b
Author: Bastien Nocera <hadess hadess net>
Date: Thu Feb 16 19:31:37 2012 +0100
wacom: Style fixes for signal handlers
panels/wacom/cc-wacom-mapping-panel.c | 18 +++++++++---------
1 files changed, 9 insertions(+), 9 deletions(-)
---
diff --git a/panels/wacom/cc-wacom-mapping-panel.c b/panels/wacom/cc-wacom-mapping-panel.c
index d3a68d1..d0346e0 100644
--- a/panels/wacom/cc-wacom-mapping-panel.c
+++ b/panels/wacom/cc-wacom-mapping-panel.c
@@ -51,8 +51,8 @@ enum {
MONITOR_NUM_COLUMNS
};
-static void combobox_changed_cb (GtkWidget *widget, gpointer data);
-static void checkbutton_toggled_cb (GtkWidget *widget, gpointer data);
+static void combobox_changed_cb (GtkWidget *widget, CcWacomMappingPanel *self);
+static void checkbutton_toggled_cb (GtkWidget *widget, CcWacomMappingPanel *self);
static GnomeRROutputInfo**
get_rr_outputs (void)
@@ -198,20 +198,20 @@ cc_wacom_mapping_panel_set_device (CcWacomMappingPanel *self,
}
static void
-checkbutton_toggled_cb (GtkWidget *widget,
- gpointer data)
+checkbutton_toggled_cb (GtkWidget *widget,
+ CcWacomMappingPanel *self)
{
- CcWacomMappingPanel *self = data;
- gboolean active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));
+ gboolean active;
+
+ active = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (widget));
set_combobox_sensitive (self, active);
update_mapping (self);
}
static void
-combobox_changed_cb (GtkWidget *widget,
- gpointer data)
+combobox_changed_cb (GtkWidget *widget,
+ CcWacomMappingPanel *self)
{
- CcWacomMappingPanel *self = data;
update_mapping (self);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]