[gtk+/wip/baedert/box] widget: Remove state-changed signal
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/box] widget: Remove state-changed signal
- Date: Tue, 4 Oct 2016 16:41:43 +0000 (UTC)
commit dea3c81dba87aea149969f88fc0d69b24bf2195d
Author: Timm Bäder <mail baedert org>
Date: Tue Oct 4 18:04:48 2016 +0200
widget: Remove state-changed signal
gtk/gtkwidget.c | 28 ----------------------------
gtk/gtkwidget.h | 2 --
2 files changed, 0 insertions(+), 30 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 926261e..cd6ab96 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -501,7 +501,6 @@ enum {
UNREALIZE,
SIZE_ALLOCATE,
STATE_FLAGS_CHANGED,
- STATE_CHANGED,
PARENT_SET,
HIERARCHY_CHANGED,
STYLE_SET,
@@ -1038,7 +1037,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
klass->get_preferred_width_for_height = gtk_widget_real_get_width_for_height;
klass->get_preferred_height_for_width = gtk_widget_real_get_height_for_width;
klass->get_preferred_height_and_baseline_for_width = NULL;
- klass->state_changed = NULL;
klass->state_flags_changed = gtk_widget_real_state_flags_changed;
klass->parent_set = NULL;
klass->hierarchy_changed = NULL;
@@ -1772,26 +1770,6 @@ G_GNUC_END_IGNORE_DEPRECATIONS
GDK_TYPE_RECTANGLE | G_SIGNAL_TYPE_STATIC_SCOPE);
/**
- * GtkWidget::state-changed:
- * @widget: the object which received the signal.
- * @state: the previous state
- *
- * The ::state-changed signal is emitted when the widget state changes.
- * See gtk_widget_get_state().
- *
- * Deprecated: 3.0: Use #GtkWidget::state-flags-changed instead.
- */
- widget_signals[STATE_CHANGED] =
- g_signal_new (I_("state-changed"),
- G_TYPE_FROM_CLASS (gobject_class),
- G_SIGNAL_RUN_FIRST | G_SIGNAL_DEPRECATED,
- G_STRUCT_OFFSET (GtkWidgetClass, state_changed),
- NULL, NULL,
- NULL,
- G_TYPE_NONE, 1,
- GTK_TYPE_STATE_TYPE);
-
- /**
* GtkWidget::state-flags-changed:
* @widget: the object which received the signal.
* @flags: The previous state flags.
@@ -12567,11 +12545,6 @@ gtk_widget_propagate_state (GtkWidget *widget,
{
GtkWidgetPrivate *priv = widget->priv;
GtkStateFlags new_flags, old_flags = priv->state_flags;
- GtkStateType old_state;
-
- G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
- old_state = gtk_widget_get_state (widget);
- G_GNUC_END_IGNORE_DEPRECATIONS;
priv->state_flags |= data->flags_to_set;
priv->state_flags &= ~(data->flags_to_unset);
@@ -12601,7 +12574,6 @@ gtk_widget_propagate_state (GtkWidget *widget,
gtk_style_context_set_state (_gtk_widget_get_style_context (widget), new_flags);
- g_signal_emit (widget, widget_signals[STATE_CHANGED], 0, old_state);
g_signal_emit (widget, widget_signals[STATE_FLAGS_CHANGED], 0, old_flags);
if (!priv->shadowed &&
diff --git a/gtk/gtkwidget.h b/gtk/gtkwidget.h
index d778c84..a62451f 100644
--- a/gtk/gtkwidget.h
+++ b/gtk/gtkwidget.h
@@ -170,8 +170,6 @@ struct _GtkWidget
* been called or the widget has been unmapped (that is, it is going
* to be hidden).
* @size_allocate: Signal emitted to get the widget allocation.
- * @state_changed: Signal emitted when the widget state
- * changes. Deprecated: 3.0
* @state_flags_changed: Signal emitted when the widget state changes,
* see gtk_widget_get_state_flags().
* @parent_set: Signal emitted when a new parent has been set on a
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]