[gtk+] colorbutton: Stop using state-changed
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+] colorbutton: Stop using state-changed
- Date: Thu, 12 May 2016 16:27:33 +0000 (UTC)
commit 4cce90d1e2fbd2fad15066e8229d5f03174055c5
Author: Timm Bäder <mail baedert org>
Date: Wed May 11 15:33:18 2016 +0200
colorbutton: Stop using state-changed
gtk/gtkcolorbutton.c | 14 --------------
1 files changed, 0 insertions(+), 14 deletions(-)
---
diff --git a/gtk/gtkcolorbutton.c b/gtk/gtkcolorbutton.c
index 96a5bc1..060f8a1 100644
--- a/gtk/gtkcolorbutton.c
+++ b/gtk/gtkcolorbutton.c
@@ -103,10 +103,6 @@ static void gtk_color_button_get_property (GObject *object,
GValue *value,
GParamSpec *pspec);
-/* gtkwidget signals */
-static void gtk_color_button_state_changed (GtkWidget *widget,
- GtkStateType previous_state);
-
/* gtkbutton signals */
static void gtk_color_button_clicked (GtkButton *button);
@@ -147,17 +143,14 @@ static void
gtk_color_button_class_init (GtkColorButtonClass *klass)
{
GObjectClass *gobject_class;
- GtkWidgetClass *widget_class;
GtkButtonClass *button_class;
gobject_class = G_OBJECT_CLASS (klass);
- widget_class = GTK_WIDGET_CLASS (klass);
button_class = GTK_BUTTON_CLASS (klass);
gobject_class->get_property = gtk_color_button_get_property;
gobject_class->set_property = gtk_color_button_set_property;
gobject_class->finalize = gtk_color_button_finalize;
- widget_class->state_changed = gtk_color_button_state_changed;
button_class->clicked = gtk_color_button_clicked;
klass->color_set = NULL;
@@ -285,13 +278,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
}
static void
-gtk_color_button_state_changed (GtkWidget *widget,
- GtkStateType previous_state)
-{
- gtk_widget_queue_draw (widget);
-}
-
-static void
gtk_color_button_drag_data_received (GtkWidget *widget,
GdkDragContext *context,
gint x,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]