]> spindle.queued.net Git - midori/commitdiff
Make midori_view_get_snapshot a public function
authorChristian Dywan <christian@twotoasts.de>
Tue, 27 Oct 2009 21:58:11 +0000 (22:58 +0100)
committerChristian Dywan <christian@twotoasts.de>
Tue, 27 Oct 2009 21:58:11 +0000 (22:58 +0100)
midori/midori-browser.c
midori/midori-view.c
midori/midori-view.h

index e675dcf8b9ab0d42c5922c06b1ef24e171775c5b..819f294304cffda112233875865cf86321820d2a 100644 (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)
 {
index 2f8bedc099e21b1eead1f7d2c38632912cab1aec..d9de94e944da90e7d8b734f446bd20047aa7f72a 100644 (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,
index 0dbfc52b118a13c5175f8b61334efed8bcbd5f60..fc798fbda4d33c461d1d85a8253058dea225f10c 100644 (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__ */