]> Pileus Git - ~andy/gtk/commitdiff
Add missing accessor for sealed fields GtkScaleButton->plus_button and
authorJohan Dahlin <jdahlin@async.com.br>
Fri, 20 Jun 2008 14:30:28 +0000 (14:30 +0000)
committerJohan Dahlin <johan@src.gnome.org>
Fri, 20 Jun 2008 14:30:28 +0000 (14:30 +0000)
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

ChangeLog
gtk/gtk.symbols
gtk/gtkscalebutton.c
gtk/gtkscalebutton.h

index f24a8e4a22627afcd5010c2d1f03d0ab6203a7a8..9490501e6967e64873b0935520fd27106932558f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+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.
+
 2008-06-20  Johan Dahlin  <jdahlin@async.com.br>
 
        * gtk/gtkscalebutton.c: Fix gtk-doc syntax, add missing trailing colon.
index e61a37441c4b080f8b49db3409d2775ec052b01b..5ed7d203db345a41272a476e10625ca68157a8e8 100644 (file)
@@ -3310,6 +3310,8 @@ gtk_scale_button_set_icons
 gtk_scale_button_set_value
 gtk_scale_button_get_adjustment
 gtk_scale_button_set_adjustment
+gtk_scale_button_get_minus_button
+gtk_scale_button_get_plus_button
 #endif
 #endif
 
index 5ab9d0133efa2c9a549af9a706f1899db0fde9e6..7b1bd99fe7df224b7019802250716c44d70f787f 100644 (file)
@@ -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"
index 7384db05c2c09fbfe4873d477286912a0a64c142..9548093b72e00eae98e3cc703bab667b06590f50 100644 (file)
@@ -95,6 +95,8 @@ void          gtk_scale_button_set_value      (GtkScaleButton *button,
 GtkAdjustment* gtk_scale_button_get_adjustment (GtkScaleButton *button);
 void           gtk_scale_button_set_adjustment (GtkScaleButton *button,
                                                 GtkAdjustment  *adjustment);
+GtkWidget*     gtk_scale_button_get_plus_button (GtkScaleButton *button);
+GtkWidget*     gtk_scale_button_get_minus_button (GtkScaleButton *button);
 
 G_END_DECLS