summaryrefslogtreecommitdiff
path: root/gtk
diff options
context:
space:
mode:
authorMatthias Clasen <matthiasc@src.gnome.org>2008-07-03 18:03:13 +0000
committerMatthias Clasen <matthiasc@src.gnome.org>2008-07-03 18:03:13 +0000
commitefd2dbf02644a170f7efa220d3774430dd9be890 (patch)
tree76a93bba9f6f86ef83f99f58124364612d909989 /gtk
parent5d0421f6c3de152a652b0ce8c101790a9d1f15bd (diff)
downloadgtk+-efd2dbf02644a170f7efa220d3774430dd9be890.tar.gz
Add gtk_scale_button_get_popup
svn path=/trunk/; revision=20748
Diffstat (limited to 'gtk')
-rw-r--r--gtk/gtk.symbols1
-rw-r--r--gtk/gtkscalebutton.c16
-rw-r--r--gtk/gtkscalebutton.h1
3 files changed, 18 insertions, 0 deletions
diff --git a/gtk/gtk.symbols b/gtk/gtk.symbols
index c3d1071524..60ee9720de 100644
--- a/gtk/gtk.symbols
+++ b/gtk/gtk.symbols
@@ -3311,6 +3311,7 @@ gtk_scale_button_get_adjustment
gtk_scale_button_set_adjustment
gtk_scale_button_get_orientation
gtk_scale_button_set_orientation
+gtk_scale_button_get_popup
#endif
#endif
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c
index 30ef2608e7..27b34984b8 100644
--- a/gtk/gtkscalebutton.c
+++ b/gtk/gtkscalebutton.c
@@ -758,6 +758,22 @@ gtk_scale_button_set_orientation (GtkScaleButton *button,
}
}
+/**
+ * gtk_scale_button_get_popup:
+ * @button: a #GtkScaleButton
+ *
+ * Retrieves the popup of the #GtkScaleButton.
+ *
+ * Since: 2.14
+ */
+GtkWidget*
+gtk_scale_button_get_popup (GtkScaleButton *button)
+{
+ g_return_if_fail (GTK_IS_SCALE_BUTTON (button));
+
+ return button->priv->dock;
+}
+
/*
* button callbacks.
*/
diff --git a/gtk/gtkscalebutton.h b/gtk/gtkscalebutton.h
index 5ba1c8bdd1..6ba51b229a 100644
--- a/gtk/gtkscalebutton.h
+++ b/gtk/gtkscalebutton.h
@@ -98,6 +98,7 @@ void gtk_scale_button_set_adjustment (GtkScaleButton *button,
GtkOrientation gtk_scale_button_get_orientation (GtkScaleButton *button);
void gtk_scale_button_set_orientation (GtkScaleButton *button,
GtkOrientation orientation);
+GtkWidget * gtk_scale_button_get_popup (GtkScaleButton *button);
G_END_DECLS