[gtk+/wip/baedert/gtkimageview: 87/118] Add getter for scale-set
- From: Timm Bäder <baedert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/baedert/gtkimageview: 87/118] Add getter for scale-set
- Date: Thu, 12 May 2016 20:02:40 +0000 (UTC)
commit ecdba7168e9b5f10033130b319cad9f29f0686e0
Author: Timm Bäder <mail baedert org>
Date: Tue Feb 9 20:41:07 2016 +0100
Add getter for scale-set
gtk/gtkimageview.c | 19 ++++++++++++++++++-
gtk/gtkimageview.h | 3 +++
2 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/gtk/gtkimageview.c b/gtk/gtkimageview.c
index b0d8de2..9d45166 100644
--- a/gtk/gtkimageview.c
+++ b/gtk/gtkimageview.c
@@ -1666,7 +1666,7 @@ gtk_image_view_set_transitions_enabled (GtkImageView *image_view,
* gtk_image_view_get_transitions_enabled:
* @image_view: A #GtkImageView instance
*
- * Returns the current value of the #GtkImageView:transitions-enabled property.
+ * Returns: the current value of the #GtkImageView:transitions-enabled property.
*
* Since: 3.20
*/
@@ -1679,6 +1679,23 @@ gtk_image_view_get_transitions_enabled (GtkImageView *image_view)
return priv->transitions_enabled;
}
+/**
+ * gtk_image_view_get_scale_set:
+ * @image_view: A #GtkImageView instance
+ *
+ * Returns: the current value of the #GtkImageView:scale-set property.
+ *
+ * Since: 3.20
+ */
+gboolean
+gtk_image_view_get_scale_set (GtkImageView *image_view)
+{
+ GtkImageViewPrivate *priv = gtk_image_view_get_instance_private (image_view);
+ g_return_val_if_fail (GTK_IS_IMAGE_VIEW (image_view), FALSE);
+
+ return priv->scale_set;
+}
+
static void
gtk_image_view_realize (GtkWidget *widget)
{
diff --git a/gtk/gtkimageview.h b/gtk/gtkimageview.h
index 68fb507..613634c 100644
--- a/gtk/gtkimageview.h
+++ b/gtk/gtkimageview.h
@@ -132,6 +132,9 @@ void gtk_image_view_set_zoomable (GtkImageView *image_view,
GDK_AVAILABLE_IN_3_20
gboolean gtk_image_view_get_zoomable (GtkImageView *image_view);
+GDK_AVAILABLE_IN_3_20
+gboolean gtk_image_view_get_scale_set (GtkImageView *image_view);
+
G_END_DECLS
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]