gtk+ r20757 - in trunk: . gtk



Author: mitch
Date: Fri Jul  4 09:02:20 2008
New Revision: 20757
URL: http://svn.gnome.org/viewvc/gtk+?rev=20757&view=rev

Log:
2008-07-04  Michael Natterer  <mitch imendio com>

	Bug 539944 â Add GtkScaleButton API so struct fields can be marked
	as private

	* gtk/gtk.symbols
	* gtk/gtkscalebutton.[ch]: add gtk_scale_button_get_plus_button()
	and _get_minus_button(). Patch by Christian Dywan.



Modified:
   trunk/ChangeLog
   trunk/gtk/gtk.symbols
   trunk/gtk/gtkscalebutton.c
   trunk/gtk/gtkscalebutton.h

Modified: trunk/gtk/gtk.symbols
==============================================================================
--- trunk/gtk/gtk.symbols	(original)
+++ trunk/gtk/gtk.symbols	Fri Jul  4 09:02:20 2008
@@ -3311,6 +3311,8 @@
 gtk_scale_button_set_adjustment
 gtk_scale_button_get_orientation
 gtk_scale_button_set_orientation
+gtk_scale_button_get_plus_button
+gtk_scale_button_get_minus_button
 gtk_scale_button_get_popup
 #endif
 #endif

Modified: trunk/gtk/gtkscalebutton.c
==============================================================================
--- trunk/gtk/gtkscalebutton.c	(original)
+++ trunk/gtk/gtkscalebutton.c	Fri Jul  4 09:02:20 2008
@@ -759,6 +759,38 @@
 }
 
 /**
+ * gtk_scale_button_get_plus_button:
+ * @button: a #GtkScaleButton
+ *
+ * Retrieves the plus button of the #GtkScaleButton.
+ *
+ * Since: 2.14
+ */
+GtkWidget *
+gtk_scale_button_get_plus_button (GtkScaleButton *button)
+{
+  g_return_val_if_fail (GTK_IS_SCALE_BUTTON (button), NULL);
+
+  return button->plus_button;
+}
+
+/**
+ * gtk_scale_button_get_minus_button:
+ * @button: a #GtkScaleButton
+ *
+ * Retrieves the minus button of the #GtkScaleButton.
+ *
+ * Since: 2.14
+ */
+GtkWidget *
+gtk_scale_button_get_minus_button (GtkScaleButton *button)
+{
+  g_return_val_if_fail (GTK_IS_SCALE_BUTTON (button), NULL);
+
+  return button->minus_button;
+}
+
+/**
  * gtk_scale_button_get_popup:
  * @button: a #GtkScaleButton
  *
@@ -766,7 +798,7 @@
  *
  * Since: 2.14
  */
-GtkWidget*
+GtkWidget *
 gtk_scale_button_get_popup (GtkScaleButton *button)
 {
   g_return_val_if_fail (GTK_IS_SCALE_BUTTON (button), NULL);

Modified: trunk/gtk/gtkscalebutton.h
==============================================================================
--- trunk/gtk/gtkscalebutton.h	(original)
+++ trunk/gtk/gtkscalebutton.h	Fri Jul  4 09:02:20 2008
@@ -81,24 +81,26 @@
   void (*_gtk_reserved4) (void);
 };
 
-GType            gtk_scale_button_get_type        (void) G_GNUC_CONST;
-GtkWidget *      gtk_scale_button_new             (GtkIconSize      size,
-                                                   gdouble          min,
-                                                   gdouble          max,
-                                                   gdouble          step,
-                                                   const gchar    **icons);
-void             gtk_scale_button_set_icons       (GtkScaleButton  *button,
-                                                   const gchar    **icons);
-gdouble          gtk_scale_button_get_value       (GtkScaleButton  *button);
-void             gtk_scale_button_set_value       (GtkScaleButton  *button,
-                                                   gdouble          value);
-GtkAdjustment *  gtk_scale_button_get_adjustment  (GtkScaleButton  *button);
-void             gtk_scale_button_set_adjustment  (GtkScaleButton  *button,
-                                                   GtkAdjustment   *adjustment);
-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);
+GType            gtk_scale_button_get_type         (void) G_GNUC_CONST;
+GtkWidget *      gtk_scale_button_new              (GtkIconSize      size,
+                                                    gdouble          min,
+                                                    gdouble          max,
+                                                    gdouble          step,
+                                                    const gchar    **icons);
+void             gtk_scale_button_set_icons        (GtkScaleButton  *button,
+                                                    const gchar    **icons);
+gdouble          gtk_scale_button_get_value        (GtkScaleButton  *button);
+void             gtk_scale_button_set_value        (GtkScaleButton  *button,
+                                                    gdouble          value);
+GtkAdjustment *  gtk_scale_button_get_adjustment   (GtkScaleButton  *button);
+void             gtk_scale_button_set_adjustment   (GtkScaleButton  *button,
+                                                    GtkAdjustment   *adjustment);
+GtkOrientation   gtk_scale_button_get_orientation  (GtkScaleButton  *button);
+void             gtk_scale_button_set_orientation  (GtkScaleButton  *button,
+                                                    GtkOrientation   orientation);
+GtkWidget *      gtk_scale_button_get_plus_button  (GtkScaleButton  *button);
+GtkWidget *      gtk_scale_button_get_minus_button (GtkScaleButton  *button);
+GtkWidget *      gtk_scale_button_get_popup        (GtkScaleButton  *button);
 
 G_END_DECLS
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]