diff options
author | Matthias Clasen <mclasen@redhat.com> | 2016-01-13 00:05:16 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2016-01-13 00:19:31 -0500 |
commit | ea4cff1ea45413ef0ecd8e09af97199c788c9957 (patch) | |
tree | e62f6ac361ddea1070a4e0e4bb7a243dfb5987be /gtk/gtkframe.c | |
parent | 64b499be6616c909ea6544f03520e0c928b8d302 (diff) | |
download | gtk+-ea4cff1ea45413ef0ecd8e09af97199c788c9957.tar.gz |
Use convenience API that was introduced recently
Use gtk_css_gadget_set_state in all the places where we previously
were getting a node from a gadget, just to call gtk_css_node_set_state.
Diffstat (limited to 'gtk/gtkframe.c')
-rw-r--r-- | gtk/gtkframe.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/gtk/gtkframe.c b/gtk/gtkframe.c index e71477118c..ac5af4a7c7 100644 --- a/gtk/gtkframe.c +++ b/gtk/gtkframe.c @@ -1023,10 +1023,7 @@ static void gtk_frame_state_flags_changed (GtkWidget *widget, GtkStateFlags previous_state) { - GtkCssNode *border_node; - - border_node = gtk_css_gadget_get_node (GTK_FRAME (widget)->priv->border_gadget); - gtk_css_node_set_state (border_node, gtk_widget_get_state_flags (widget)); + gtk_css_gadget_set_state (GTK_FRAME (widget)->priv->border_gadget, gtk_widget_get_state_flags (widget)); GTK_WIDGET_CLASS (gtk_frame_parent_class)->state_flags_changed (widget, previous_state); } |