summaryrefslogtreecommitdiff
path: root/gtk/gtkwindowprivate.h
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2014-01-24 15:40:37 -0500
committerMatthias Clasen <mclasen@redhat.com>2014-01-24 15:40:37 -0500
commit6e96111d9f5e9298ff0b716f063b084a94a880e6 (patch)
treed7906dcf72d4e0c946c8ebcd378e04cc676bf447 /gtk/gtkwindowprivate.h
parent3437f83ff3bfb256f69122c6de1e24dd8424a60f (diff)
downloadgtk+-6e96111d9f5e9298ff0b716f063b084a94a880e6.tar.gz
GtkHeaderBar: try harder to find the best window icon
GtkWindow has 4 (!) APIs for setting window icons, and we have to try them all in the right order to find the right icon. This commit makes it so, and keeps the icon list manipulation inside gtkwindow.c by adding a private API for getting a single icon at the right size. https://bugzilla.gnome.org/show_bug.cgi?id=722515
Diffstat (limited to 'gtk/gtkwindowprivate.h')
-rw-r--r--gtk/gtkwindowprivate.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/gtkwindowprivate.h b/gtk/gtkwindowprivate.h
index 9f9bce6bd0..704026d001 100644
--- a/gtk/gtkwindowprivate.h
+++ b/gtk/gtkwindowprivate.h
@@ -107,6 +107,9 @@ void _gtk_window_get_popover_position (GtkWindow *window,
GtkPositionType *pos,
cairo_rectangle_int_t *rect);
+GdkPixbuf *gtk_window_get_icon_for_size (GtkWindow *window,
+ gint size);
+
G_END_DECLS
#endif /* __GTK_WINDOW_PRIVATE_H__ */