forked from AuroraMiddleware/gtk
widget: Use get_css_name() in get_property()
Instead of reimplementing it there.
This commit is contained in:
parent
28482e52be
commit
a4ecfd8f33
@ -2046,7 +2046,7 @@ gtk_widget_get_property (GObject *object,
|
|||||||
g_value_set_int (value, gtk_widget_get_scale_factor (widget));
|
g_value_set_int (value, gtk_widget_get_scale_factor (widget));
|
||||||
break;
|
break;
|
||||||
case PROP_CSS_NAME:
|
case PROP_CSS_NAME:
|
||||||
g_value_set_string (value, g_quark_to_string (gtk_css_node_get_name (priv->cssnode)));
|
g_value_set_string (value, gtk_widget_get_css_name (widget));
|
||||||
break;
|
break;
|
||||||
case PROP_CSS_CLASSES:
|
case PROP_CSS_CLASSES:
|
||||||
g_value_take_boxed (value, gtk_widget_get_css_classes (widget));
|
g_value_take_boxed (value, gtk_widget_get_css_classes (widget));
|
||||||
@ -13127,7 +13127,7 @@ gtk_widget_class_query_action (GtkWidgetClass *widget_class,
|
|||||||
*
|
*
|
||||||
* Returns the CSS name that is used for @self.
|
* Returns the CSS name that is used for @self.
|
||||||
*
|
*
|
||||||
* Returns: the CSS name
|
* Returns: (transfer none): the CSS name
|
||||||
**/
|
**/
|
||||||
const char *
|
const char *
|
||||||
gtk_widget_get_css_name (GtkWidget *self)
|
gtk_widget_get_css_name (GtkWidget *self)
|
||||||
|
Loading…
Reference in New Issue
Block a user