diff options
author | Johan Dahlin <jdahlin@async.com.br> | 2008-06-20 14:30:28 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-06-20 14:30:28 +0000 |
commit | 9e400139b7f8cfbba83ca59b359834d50135f2d4 (patch) | |
tree | c9e2d06e94d0a439e1699d205e4bc099c0068dab /gtk/gtkscalebutton.c | |
parent | 02fbfecda2dce98cd3bed035d00be7c050569676 (diff) | |
download | gtk+-9e400139b7f8cfbba83ca59b359834d50135f2d4.tar.gz |
Add missing accessor for sealed fields GtkScaleButton->plus_button and
2008-06-20 Johan Dahlin <jdahlin@async.com.br>
* gtk/gtk.symbols:
* gtk/gtkscalebutton.c (gtk_scale_button_get_plus_button),
(gtk_scale_button_get_minus_button):
* gtk/gtkscalebutton.h:
Add missing accessor for sealed fields GtkScaleButton->plus_button and
minus_button.
svn path=/trunk/; revision=20648
Diffstat (limited to 'gtk/gtkscalebutton.c')
-rw-r--r-- | gtk/gtkscalebutton.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/gtk/gtkscalebutton.c b/gtk/gtkscalebutton.c index 5ab9d0133e..7b1bd99fe7 100644 --- a/gtk/gtkscalebutton.c +++ b/gtk/gtkscalebutton.c @@ -1321,5 +1321,41 @@ gtk_scale_button_scale_value_changed (GtkRange *range) g_object_notify (G_OBJECT (button), "value"); } +/** + * gtk_scale_button_get_plus_button: + * @button: a #GtkScaleButton + * + * Retrieves the scale buttons plus button widget + * + * Return value: the plus button widget + * + * Since: 2.14 + */ +GtkWidget* +gtk_scale_button_get_plus_button (GtkScaleButton *button) +{ + g_return_val_if_fail (GTK_IS_SCALE_BUTTON (button), button); + + return button->plus_button; +} + +/** + * gtk_scale_button_get_minus_button: + * @button: a #GtkScaleButton + * + * Retrieves the scale buttons minus button widget + * + * Return value: the minus button widget + * + * Since: 2.14 + */ +GtkWidget* +gtk_scale_button_get_minus_button (GtkScaleButton *button) +{ + g_return_val_if_fail (GTK_IS_SCALE_BUTTON (button), button); + + return button->minus_button; +} + #define __GTK_SCALE_BUTTON_C__ #include "gtkaliasdef.c" |