[gtk/wip/matthiasc/can-focus: 29/42] widget: Drop the :is-focus property



commit 39f0b2eb5f9e7f725b0dd08536a0e92b7f85273b
Author: Matthias Clasen <mclasen redhat com>
Date:   Thu Apr 2 20:30:17 2020 -0400

    widget: Drop the :is-focus property
    
    This property doesn't carry any new information compared
    to GtkWindow:focus-widget. We still keep the gtk_widget_is_focus
    getter, as a convenient shortcut.

 gtk/gtkwidget.c | 15 ---------------
 1 file changed, 15 deletions(-)
---
diff --git a/gtk/gtkwidget.c b/gtk/gtkwidget.c
index 677c6b2b8d..c9d65d0470 100644
--- a/gtk/gtkwidget.c
+++ b/gtk/gtkwidget.c
@@ -517,7 +517,6 @@ enum {
   PROP_SENSITIVE,
   PROP_CAN_FOCUS,
   PROP_HAS_FOCUS,
-  PROP_IS_FOCUS,
   PROP_CAN_TARGET,
   PROP_FOCUS_ON_CLICK,
   PROP_HAS_DEFAULT,
@@ -992,13 +991,6 @@ gtk_widget_class_init (GtkWidgetClass *klass)
                             FALSE,
                             GTK_PARAM_READWRITE|G_PARAM_EXPLICIT_NOTIFY);
 
-  widget_props[PROP_IS_FOCUS] =
-      g_param_spec_boolean ("is-focus",
-                            P_("Is focus"),
-                            P_("Whether the widget is the focus widget within the toplevel"),
-                            FALSE,
-                            GTK_PARAM_READWRITE);
-
   widget_props[PROP_CAN_TARGET] =
       g_param_spec_boolean ("can-target",
                             P_("Can target"),
@@ -1699,10 +1691,6 @@ gtk_widget_set_property (GObject         *object,
       if (g_value_get_boolean (value))
        gtk_widget_grab_focus (widget);
       break;
-    case PROP_IS_FOCUS:
-      if (g_value_get_boolean (value))
-       gtk_widget_grab_focus (widget);
-      break;
     case PROP_CAN_TARGET:
       gtk_widget_set_can_target (widget, g_value_get_boolean (value));
       break;
@@ -1856,9 +1844,6 @@ gtk_widget_get_property (GObject         *object,
     case PROP_HAS_FOCUS:
       g_value_set_boolean (value, gtk_widget_has_focus (widget));
       break;
-    case PROP_IS_FOCUS:
-      g_value_set_boolean (value, gtk_widget_is_focus (widget));
-      break;
     case PROP_CAN_TARGET:
       g_value_set_boolean (value, gtk_widget_get_can_target (widget));
       break;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]