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
ac73a8f7
Commit
ac73a8f7
authored
Sep 22, 2010
by
Carlos Garnacho
Browse files
GtkStyleContext: Add gtk_style_context_reset_widgets()
This function recalculates the style for all widgets on a screen.
parent
679ff63d
Changes
2
Hide whitespace changes
Inline
Side-by-side
gtk/gtkstylecontext.c
View file @
ac73a8f7
...
...
@@ -707,13 +707,13 @@ gtk_style_context_remove_provider (GtkStyleContext *context,
}
}
static
void
reset_toplevel
s
(
GdkScreen
*
screen
)
void
gtk_style_context_reset_widget
s
(
GdkScreen
*
screen
)
{
GList
*
list
,
*
toplevels
;
toplevels
=
gtk_window_list_toplevels
();
g_list_foreach
(
toplevels
,
(
GFunc
)
g_object_ref
,
NULL
);
g_list_foreach
(
toplevels
,
(
GFunc
)
g_object_ref
,
NULL
);
for
(
list
=
toplevels
;
list
;
list
=
list
->
next
)
{
...
...
@@ -745,7 +745,7 @@ gtk_style_context_add_provider_for_screen (GdkScreen *screen,
if
(
list
!=
providers
)
g_object_set_qdata
(
G_OBJECT
(
screen
),
provider_list_quark
,
list
);
reset_toplevel
s
(
screen
);
gtk_style_context_reset_widget
s
(
screen
);
}
void
...
...
@@ -767,7 +767,7 @@ gtk_style_context_remove_provider_for_screen (GdkScreen *screen,
if
(
list
!=
providers
)
g_object_set_qdata
(
G_OBJECT
(
screen
),
provider_list_quark
,
list
);
reset_toplevel
s
(
screen
);
gtk_style_context_reset_widget
s
(
screen
);
}
}
...
...
gtk/gtkstylecontext.h
View file @
ac73a8f7
...
...
@@ -169,7 +169,7 @@ void gtk_style_context_state_transition_stop (GtkStyleContext *context,
gpointer
identifier
);
void
gtk_style_context_invalidate
(
GtkStyleContext
*
context
);
void
gtk_style_context_reset_widgets
(
GdkScreen
*
screen
);
/* Paint methods */
void
gtk_render_check
(
GtkStyleContext
*
context
,
...
...
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