Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Dorota Czaplejewicz
gtk
Commits
1bdd761c
Commit
1bdd761c
authored
Oct 29, 2010
by
Carlos Garnacho
Browse files
GtkWidget: Ensure name changes involve a style context update.
parent
8ea649e0
Changes
1
Hide whitespace changes
Inline
Side-by-side
gtk/gtkwidget.c
View file @
1bdd761c
...
...
@@ -6666,6 +6666,18 @@ gtk_widget_set_name (GtkWidget *widget,
g_free
(
priv
->
name
);
priv
->
name
=
new_name
;
if
(
priv
->
path
)
{
guint
pos
;
pos
=
gtk_widget_path_length
(
priv
->
path
)
-
1
;
gtk_widget_path_iter_set_name
(
priv
->
path
,
pos
,
priv
->
name
);
}
if
(
priv
->
context
)
gtk_style_context_set_path
(
priv
->
context
,
priv
->
path
);
if
(
priv
->
rc_style
)
gtk_widget_reset_rc_style
(
widget
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment