[maemo-commits] [maemo-commits] r13537 - in projects/haf/trunk/gtk+: . gtk

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Fri Aug 31 17:51:49 EEST 2007
Author: xan
Date: 2007-08-31 17:51:46 +0300 (Fri, 31 Aug 2007)
New Revision: 13537

Modified:
   projects/haf/trunk/gtk+/ChangeLog
   projects/haf/trunk/gtk+/gtk/gtkarrow.c
   projects/haf/trunk/gtk+/gtk/gtkmenuitem.c
Log:
Add doc for new style properties.


Modified: projects/haf/trunk/gtk+/ChangeLog
===================================================================
--- projects/haf/trunk/gtk+/ChangeLog	2007-08-31 14:35:32 UTC (rev 13536)
+++ projects/haf/trunk/gtk+/ChangeLog	2007-08-31 14:51:46 UTC (rev 13537)
@@ -1,5 +1,14 @@
 2007-08-31  Xan Lopez  <xan.lopez at nokia.com>
 
+	* gtk/gtkarrow.c (gtk_arrow_class_init): add doc for
+	GtkArrow::maemo-min-size and GtkArrow::maemo-aspect-ratio
+	style properties.
+
+	* gtk/gtkmenuitem.c (gtk_menu_item_class_init): add doc for
+	GtkMenuItem::arrow-scaling style property.
+
+2007-08-31  Xan Lopez  <xan.lopez at nokia.com>
+
 	* gtk/gtkentrycompletion.c (_gtk_entry_completion_popdown): add the
 	gtk grab for the popup window. This way the popup at least will close
 	when the user clicks outside it but in the same app/process.

Modified: projects/haf/trunk/gtk+/gtk/gtkarrow.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtkarrow.c	2007-08-31 14:35:32 UTC (rev 13536)
+++ projects/haf/trunk/gtk+/gtk/gtkarrow.c	2007-08-31 14:51:46 UTC (rev 13537)
@@ -102,6 +102,15 @@
                                                                GTK_PARAM_READABLE));
 
 #if defined(MAEMO_CHANGES)
+  /**
+   *
+   * GtkArrow::maemo-min-size
+   *
+   * Specifies the minimum width and height for the arrow.
+   *
+   * Since: maemo 4.0
+   * Stability: Unstable
+   */
   gtk_widget_class_install_style_property (widget_class,
                                            g_param_spec_int ("maemo-min-size",
                                                              P_("Arrow Minimum Size"),
@@ -110,7 +119,16 @@
                                                              G_MAXINT,
                                                              15,
                                                              GTK_PARAM_READABLE));
-
+  /**
+   *
+   * GtkArrow::maemo-aspect-ratio
+   *
+   * Sets the height of the arrow as height = aspect-ratio * width. By default it's 1.0,
+   * for a square arrow.
+   *
+   * Since: maemo 4.0
+   * Stability: Unstable
+   */
   gtk_widget_class_install_style_property (widget_class,
                                            g_param_spec_float ("maemo-aspect-ratio",
                                                                P_("Aspect Ratio"),

Modified: projects/haf/trunk/gtk+/gtk/gtkmenuitem.c
===================================================================
--- projects/haf/trunk/gtk+/gtk/gtkmenuitem.c	2007-08-31 14:35:32 UTC (rev 13536)
+++ projects/haf/trunk/gtk+/gtk/gtkmenuitem.c	2007-08-31 14:51:46 UTC (rev 13537)
@@ -241,7 +241,15 @@
 							     G_MAXINT,
 							     10,
 							     GTK_PARAM_READABLE));
-
+  /**
+   *
+   * GtkMenuItem::arrow-scaling
+   *
+   * Arbitrary constant to scale up or down the size of the arrow in menuitems.
+   * 
+   * Since: maemo 4.0
+   * Stability: Unstable
+   */
   gtk_widget_class_install_style_property (widget_class,
                                            g_param_spec_float ("arrow-scaling",
                                                                P_("Arrow Scaling"),


More information about the maemo-commits mailing list