Make midori_view_get_snapshot a public function

This commit is contained in:
Christian Dywan 2009-10-27 22:58:11 +01:00
parent 8ef3eeaa89
commit c9dc0c5d55
3 changed files with 21 additions and 11 deletions

View file

@ -996,11 +996,6 @@ midori_browser_speed_dial_get_next_free_slot (void)
return slot_id;
}
GdkPixbuf*
midori_view_get_snapshot (MidoriView* view,
guint width,
guint height);
static void
midori_browser_add_speed_dial (MidoriBrowser* browser)
{

View file

@ -47,11 +47,6 @@ midori_search_action_get_icon (KatzeNet* net,
static void
midori_view_construct_web_view (MidoriView* view);
GdkPixbuf*
midori_view_get_snapshot (MidoriView* view,
gint width,
gint height);
static void
midori_view_item_meta_data_changed (KatzeItem* item,
const gchar* key,
@ -4056,7 +4051,22 @@ midori_view_execute_script (MidoriView* view,
return TRUE;
}
/* For now this is private API */
/**
* midori_view_get_snapshot
* @view: a #MidoriView
* @width: the desired width
* @height: the desired height
*
* Take a snapshot of the view at the given dimensions. The
* view has to be mapped on the screen.
*
* If width and height are negative, the resulting
* image is going to be optimized for speed.
*
* Returns: a newly allocated #GdkPixbuf
*
* Since: 0.2.1
**/
GdkPixbuf*
midori_view_get_snapshot (MidoriView* view,
gint width,

View file

@ -195,6 +195,11 @@ midori_view_execute_script (MidoriView* view,
const gchar* script,
gchar** exception);
GdkPixbuf*
midori_view_get_snapshot (MidoriView* view,
gint width,
gint height);
G_END_DECLS
#endif /* __MIDORI_VIEW_H__ */