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
25536faf
Commit
25536faf
authored
Aug 04, 2008
by
Matthias Clasen
Browse files
Update to handle GEmblem`
svn path=/trunk/; revision=20980
parent
45ac6c4f
Changes
2
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
25536faf
2008-08-04 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkicontheme.c: Update to handle GEmblem.
2008-08-04 Michael Natterer <mitch@imendio.com>
* tests/prop-editor.c: undeprecate (apart from still using
...
...
gtk/gtkicontheme.c
View file @
25536faf
...
...
@@ -3458,19 +3458,21 @@ gtk_icon_theme_lookup_by_gicon (GtkIconTheme *icon_theme,
else
if
(
G_IS_EMBLEMED_ICON
(
icon
))
{
GIcon
*
base
,
*
emblem
;
GList
*
list
,
*
l
;
GtkIconInfo
*
emblem_info
;
base
=
g_emblemed_icon_get_icon
(
G_EMBLEMED_ICON
(
icon
));
emblem
=
g_emblemed_icon_get_emblem
(
G_EMBLEMED_ICON
(
icon
));
/* recursively collect information for all emblems */
info
=
gtk_icon_theme_lookup_by_gicon
(
icon_theme
,
base
,
size
,
flags
);
if
(
info
)
{
GtkIconInfo
*
emblem_info
;
emblem_info
=
gtk_icon_theme_lookup_by_gicon
(
icon_theme
,
emblem
,
size
/
2
,
flags
);
if
(
emblem_info
)
info
->
emblem_infos
=
g_slist_prepend
(
info
->
emblem_infos
,
emblem_info
);
list
=
g_emblemed_icon_get_emblems
(
G_EMBLEMED_ICON
(
icon
));
for
(
l
=
list
;
l
;
l
=
l
->
next
)
{
emblem
=
g_emblem_get_icon
(
G_EMBLEM
(
l
->
data
));
emblem_info
=
gtk_icon_theme_lookup_by_gicon
(
icon_theme
,
emblem
,
size
/
2
,
flags
);
if
(
emblem_info
)
info
->
emblem_infos
=
g_slist_prepend
(
info
->
emblem_infos
,
emblem_info
);
}
}
return
info
;
...
...
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