[gtk+/wip/baedert/gtkimageview: 183/185] Even moar docs



commit 471f1553c36216578b026d2a893cc3a01b2c0b7e
Author: Timm Bäder <mail baedert org>
Date:   Mon Feb 8 22:50:20 2016 +0100

    Even moar docs

 gtk/gtkimageview.c |   37 ++++++++++++++++++++++++++++++++++---
 gtk/gtkimageview.h |   10 +++++-----
 2 files changed, 39 insertions(+), 8 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index 5289127..8926e32 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -1,3 +1,29 @@
+/*  Copyright 2016 Timm Bäder
+ *
+ * GTK+ is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2 of the
+ * License, or (at your option) any later version.
+ *
+ * GLib is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with GTK+; see the file COPYING.  If not,
+ * see <http://www.gnu.org/licenses/>.
+ */
+
+/**
+ * SECTION:gtkimageview
+ * @Short_description: A widget.
+ * @Title: GtkImageView
+ *
+ *
+ * Since: 3.20
+ */
+
 #include "config.h"
 #include "gtkimageview.h"
 #include "gtktypebuiltins.h"
@@ -1223,7 +1249,7 @@ gtk_image_view_set_vscroll_policy (GtkImageView        *image_view,
  *
  * If #GtkImageView:transitions-enabled is set to #TRUE, the internal scale value will be
  * interpolated between the old and the new scale, #gtk_image_view_get_scale
- * will report the one passed to gtk_image_view_set_scale() however.
+ * will report the one passed to #gtk_image_view_set_scale however.
  *
  * Since: 3.20
  */
@@ -1284,7 +1310,7 @@ gtk_image_view_set_scale (GtkImageView *image_view,
 }
 
 /**
- * gtk_image_view_set_scale:
+ * gtk_image_view_get_scale:
  * @image_view: A #GtkImageView instance
  *
  * Returns: The current scale applied to the image.
@@ -1503,7 +1529,7 @@ gtk_image_view_get_fit_allocation (GtkImageView *image_view)
 }
 
 /**
- * gtk_image_view_get_rotatable:
+ * gtk_image_view_set_rotatable:
  * @image_view: A #GtkImageView instance
  * @rotatable: The new value of the rotatable property
  *
@@ -2087,6 +2113,11 @@ gtk_image_view_class_init (GtkImageViewClass *view_class)
   gtk_widget_class_set_css_name (widget_class, "imageview");
 }
 
+/**
+ * gtk_image_view_new:
+ *
+ * Returns: A newly created #GtkImageView instance.
+ */
 GtkWidget *
 gtk_image_view_new ()
 {
diff --git a/gtk/gtkimageview.h b/gtk/gtkimageview.h
index 64fa8aa..68fb507 100644
--- a/gtk/gtkimageview.h
+++ b/gtk/gtkimageview.h
@@ -19,9 +19,9 @@ G_BEGIN_DECLS
 #define GTK_IMAGE_VIEW_GET_CLASS(obj)  (G_TYPE_INSTANCE_GET_CLASS ((obj), GTK_TYPE_IMAGE_VIEW, 
GtkImageViewClass))
 
 
-typedef struct _GtkImageView              GtkImageView;
-typedef struct _GtkImageViewPrivate       GtkImageViewPrivate;
-typedef struct _GtkImageViewClass         GtkImageViewClass;
+typedef struct _GtkImageView         GtkImageView;
+typedef struct _GtkImageViewPrivate  GtkImageViewPrivate;
+typedef struct _GtkImageViewClass    GtkImageViewClass;
 
 
 struct _GtkImageView
@@ -118,7 +118,7 @@ gboolean gtk_image_view_get_fit_allocation (GtkImageView *image_view);
 
 GDK_AVAILABLE_IN_3_20
 void gtk_image_view_set_rotatable (GtkImageView *image_view,
-                                   gboolean      rotate_gesture_enabled);
+                                   gboolean      rotatable);
 
 GDK_AVAILABLE_IN_3_20
 gboolean gtk_image_view_get_rotatable (GtkImageView *image_view);
@@ -127,7 +127,7 @@ gboolean gtk_image_view_get_rotatable (GtkImageView *image_view);
 
 GDK_AVAILABLE_IN_3_20
 void gtk_image_view_set_zoomable (GtkImageView *image_view,
-                                  gboolean      zoom_gesture_enabled);
+                                  gboolean      zoomable);
 
 GDK_AVAILABLE_IN_3_20
 gboolean gtk_image_view_get_zoomable (GtkImageView *image_view);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]