summaryrefslogtreecommitdiff
path: root/gtk/gtkscale.c
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2010-05-25 18:55:15 -0400
committerMatthias Clasen <mclasen@redhat.com>2010-05-25 18:55:15 -0400
commitb4e2ff3da32ad2b9670ecf33805eb9993824fe0b (patch)
treededc3f6b06fe6af1ddc1a92dc4b0956a40d6feec /gtk/gtkscale.c
parentbd4609b14042a91646cd9057764eecfbc6faf42b (diff)
downloadgtk+-b4e2ff3da32ad2b9670ecf33805eb9993824fe0b.tar.gz
Make orientable base classes instantiable
This commit adds constructors for GtkPaned, GtkBox, GtkButtonBox, GtkRuler, GtkScale, GtkScrollbar and GtkSeparator and makes these types instantiable.
Diffstat (limited to 'gtk/gtkscale.c')
-rw-r--r--gtk/gtkscale.c18
1 files changed, 8 insertions, 10 deletions
diff --git a/gtk/gtkscale.c b/gtk/gtkscale.c
index 6b7da98469..c2f0f3520c 100644
--- a/gtk/gtkscale.c
+++ b/gtk/gtkscale.c
@@ -126,9 +126,9 @@ static void gtk_scale_buildable_custom_finished (GtkBuildable *buildable,
gpointer user_data);
-G_DEFINE_ABSTRACT_TYPE_WITH_CODE (GtkScale, gtk_scale, GTK_TYPE_RANGE,
- G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
- gtk_scale_buildable_interface_init))
+G_DEFINE_TYPE_WITH_CODE (GtkScale, gtk_scale, GTK_TYPE_RANGE,
+ G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
+ gtk_scale_buildable_interface_init))
static gboolean
@@ -463,7 +463,6 @@ gtk_scale_get_property (GObject *object,
}
}
-#if 0
/**
* gtk_scale_new:
* @orientation: the scale's orientation.
@@ -474,7 +473,7 @@ gtk_scale_get_property (GObject *object,
*
* Return value: a new #GtkScale
*
- * Since: 2.16
+ * Since: 3.0
**/
GtkWidget *
gtk_scale_new (GtkOrientation orientation,
@@ -508,8 +507,8 @@ gtk_scale_new (GtkOrientation orientation,
*
* Return value: a new #GtkScale
*
- * Since: 2.16
- **/
+ * Since: 3.0
+ */
GtkWidget *
gtk_scale_new_with_range (GtkOrientation orientation,
gdouble min,
@@ -541,14 +540,13 @@ gtk_scale_new_with_range (GtkOrientation orientation,
"digits", digits,
NULL);
}
-#endif
/**
* gtk_scale_set_digits:
* @scale: a #GtkScale
- * @digits: the number of decimal places to display,
+ * @digits: the number of decimal places to display,
* e.g. use 1 to display 1.0, 2 to display 1.00, etc
- *
+ *
* Sets the number of decimal places that are displayed in the value.
* Also causes the value of the adjustment to be rounded off to this
* number of digits, so the retrieved value matches the value the user saw.