forked from AuroraMiddleware/gtk
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.
This commit is contained in:
parent
4fe8c037c7
commit
c1459cc45b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user