diff options
author | Benjamin Otte <otte@redhat.com> | 2015-11-30 00:55:43 +0100 |
---|---|---|
committer | Benjamin Otte <otte@redhat.com> | 2015-12-02 00:29:30 +0100 |
commit | afad393b15631b18f76708599deb2ea0f097620c (patch) | |
tree | 7276b1d50a05ca3da6573b087e93ab6ff3ac6554 /gtk/gtkiconhelperprivate.h | |
parent | 2ce67f00983a5205adec2d4b637c3968f7a5989c (diff) | |
download | gtk+-afad393b15631b18f76708599deb2ea0f097620c.tar.gz |
iconhelper: Refactor ensure_surface()
Make gtk_icon_helper_ensure_surface() a private function that just
ensures the surface was loaded.
Add gtk_icon_helper_load_surface() that is called by the above function
and the dnd code to actually load the surface.
Diffstat (limited to 'gtk/gtkiconhelperprivate.h')
-rw-r--r-- | gtk/gtkiconhelperprivate.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gtk/gtkiconhelperprivate.h b/gtk/gtkiconhelperprivate.h index 1e98f29040..ffb178f088 100644 --- a/gtk/gtkiconhelperprivate.h +++ b/gtk/gtkiconhelperprivate.h @@ -121,8 +121,8 @@ cairo_surface_t *_gtk_icon_helper_peek_surface (GtkIconHelper *self); const gchar *_gtk_icon_helper_get_stock_id (GtkIconHelper *self); const gchar *_gtk_icon_helper_get_icon_name (GtkIconHelper *self); -cairo_surface_t *_gtk_icon_helper_ensure_surface (GtkIconHelper *self, - GtkStyleContext *context); +cairo_surface_t *gtk_icon_helper_load_surface (GtkIconHelper *self, + GtkStyleContext *context); GdkPixbuf *_gtk_icon_helper_ensure_pixbuf (GtkIconHelper *self, GtkStyleContext *context); void _gtk_icon_helper_get_size (GtkIconHelper *self, |