gtk+ r21068 - in trunk: . gtk



Author: neo
Date: Mon Aug 11 13:07:18 2008
New Revision: 21068
URL: http://svn.gnome.org/viewvc/gtk+?rev=21068&view=rev

Log:
2008-08-11  Sven Neumann  <sven gimp org>

	* gtk/gtkaccelgroup.c
	* gtk/gtkactiongroup.c
	* gtk/gtkcalendar.c
	* gtk/gtkcelleditable.c
	* gtk/gtkclipboard-quartz.c
	* gtk/gtkclipboard.c
	* gtk/gtkcolorbutton.c
	* gtk/gtkcolorsel.c
	* gtk/gtkcontainer.c
	* gtk/gtkcurve.c: use canonical signal names.



Modified:
   trunk/ChangeLog
   trunk/gtk/gtkaccelgroup.c
   trunk/gtk/gtkactiongroup.c
   trunk/gtk/gtkcalendar.c
   trunk/gtk/gtkcelleditable.c
   trunk/gtk/gtkclipboard-quartz.c
   trunk/gtk/gtkclipboard.c
   trunk/gtk/gtkcolorbutton.c
   trunk/gtk/gtkcolorsel.c
   trunk/gtk/gtkcontainer.c
   trunk/gtk/gtkcurve.c

Modified: trunk/gtk/gtkaccelgroup.c
==============================================================================
--- trunk/gtk/gtkaccelgroup.c	(original)
+++ trunk/gtk/gtkaccelgroup.c	Mon Aug 11 13:07:18 2008
@@ -49,15 +49,15 @@
 
 
 /* --- variables --- */
-static guint		 signal_accel_activate = 0;
-static guint		 signal_accel_changed = 0;
-static guint		 quark_acceleratable_groups = 0;
-static guint		 default_accel_mod_mask = (GDK_SHIFT_MASK |
-						   GDK_CONTROL_MASK |
-						   GDK_MOD1_MASK |
-						   GDK_SUPER_MASK |
-						   GDK_HYPER_MASK |
-						   GDK_META_MASK);
+static guint  signal_accel_activate      = 0;
+static guint  signal_accel_changed       = 0;
+static guint  quark_acceleratable_groups = 0;
+static guint  default_accel_mod_mask     = (GDK_SHIFT_MASK   |
+                                            GDK_CONTROL_MASK |
+                                            GDK_MOD1_MASK    |
+                                            GDK_SUPER_MASK   |
+                                            GDK_HYPER_MASK   |
+                                            GDK_META_MASK);
 
 
 enum {
@@ -111,7 +111,7 @@
    * Returns: %TRUE if the accelerator was activated
    */
   signal_accel_activate =
-    g_signal_new (I_("accel_activate"),
+    g_signal_new (I_("accel-activate"),
 		  G_OBJECT_CLASS_TYPE (class),
 		  G_SIGNAL_DETAILED,
 		  0,
@@ -136,7 +136,7 @@
    * their visual representation if the @accel_closure is theirs.
    */
   signal_accel_changed =
-    g_signal_new (I_("accel_changed"),
+    g_signal_new (I_("accel-changed"),
 		  G_OBJECT_CLASS_TYPE (class),
 		  G_SIGNAL_RUN_FIRST | G_SIGNAL_DETAILED,
 		  G_STRUCT_OFFSET (GtkAccelGroupClass, accel_changed),

Modified: trunk/gtk/gtkactiongroup.c
==============================================================================
--- trunk/gtk/gtkactiongroup.c	(original)
+++ trunk/gtk/gtkactiongroup.c	Mon Aug 11 13:07:18 2008
@@ -192,7 +192,7 @@
    * @action: the action
    * @proxy: the proxy
    *
-   * The connect_proxy signal is emitted after connecting a proxy to 
+   * The ::connect-proxy signal is emitted after connecting a proxy to 
    * an action in the group. Note that the proxy may have been connected 
    * to a different action before.
    *
@@ -207,7 +207,7 @@
    * Since: 2.4
    */
   action_group_signals[CONNECT_PROXY] =
-    g_signal_new (I_("connect_proxy"),
+    g_signal_new (I_("connect-proxy"),
 		  G_OBJECT_CLASS_TYPE (klass),
 		  0, 0, NULL, NULL,
 		  _gtk_marshal_VOID__OBJECT_OBJECT,
@@ -220,7 +220,7 @@
    * @action: the action
    * @proxy: the proxy
    *
-   * The disconnect_proxy signal is emitted after disconnecting a proxy 
+   * The ::disconnect-proxy signal is emitted after disconnecting a proxy 
    * from an action in the group. 
    *
    * #GtkUIManager proxies the signal and provides global notification 
@@ -230,7 +230,7 @@
    * Since: 2.4
    */
   action_group_signals[DISCONNECT_PROXY] =
-    g_signal_new (I_("disconnect_proxy"),
+    g_signal_new (I_("disconnect-proxy"),
 		  G_OBJECT_CLASS_TYPE (klass),
 		  0, 0, NULL, NULL,
 		  _gtk_marshal_VOID__OBJECT_OBJECT,
@@ -242,7 +242,7 @@
    * @action_group: the group
    * @action: the action
    *
-   * The pre_activate signal is emitted just before the @action in the
+   * The ::pre-activate signal is emitted just before the @action in the
    * @action_group is activated
    *
    * This is intended for #GtkUIManager to proxy the signal and provide global
@@ -251,7 +251,7 @@
    * Since: 2.4
    */
   action_group_signals[PRE_ACTIVATE] =
-    g_signal_new (I_("pre_activate"),
+    g_signal_new (I_("pre-activate"),
 		  G_OBJECT_CLASS_TYPE (klass),
 		  0, 0, NULL, NULL,
 		  _gtk_marshal_VOID__OBJECT,
@@ -263,7 +263,7 @@
    * @action_group: the group
    * @action: the action
    *
-   * The post_activate signal is emitted just after the @action in the
+   * The ::post-activate signal is emitted just after the @action in the
    * @action_group is activated
    *
    * This is intended for #GtkUIManager to proxy the signal and provide global
@@ -272,7 +272,7 @@
    * Since: 2.4
    */
   action_group_signals[POST_ACTIVATE] =
-    g_signal_new (I_("post_activate"),
+    g_signal_new (I_("post-activate"),
 		  G_OBJECT_CLASS_TYPE (klass),
 		  0, 0, NULL, NULL,
 		  _gtk_marshal_VOID__OBJECT,

Modified: trunk/gtk/gtkcalendar.c
==============================================================================
--- trunk/gtk/gtkcalendar.c	(original)
+++ trunk/gtk/gtkcalendar.c	Mon Aug 11 13:07:18 2008
@@ -580,7 +580,7 @@
 							 GTK_PARAM_READWRITE));
 
   gtk_calendar_signals[MONTH_CHANGED_SIGNAL] =
-    g_signal_new (I_("month_changed"),
+    g_signal_new (I_("month-changed"),
 		  G_OBJECT_CLASS_TYPE (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkCalendarClass, month_changed),
@@ -588,7 +588,7 @@
 		  _gtk_marshal_VOID__VOID,
 		  G_TYPE_NONE, 0);
   gtk_calendar_signals[DAY_SELECTED_SIGNAL] =
-    g_signal_new (I_("day_selected"),
+    g_signal_new (I_("day-selected"),
 		  G_OBJECT_CLASS_TYPE (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkCalendarClass, day_selected),
@@ -596,7 +596,7 @@
 		  _gtk_marshal_VOID__VOID,
 		  G_TYPE_NONE, 0);
   gtk_calendar_signals[DAY_SELECTED_DOUBLE_CLICK_SIGNAL] =
-    g_signal_new (I_("day_selected_double_click"),
+    g_signal_new (I_("day-selected-double-click"),
 		  G_OBJECT_CLASS_TYPE (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkCalendarClass, day_selected_double_click),
@@ -604,7 +604,7 @@
 		  _gtk_marshal_VOID__VOID,
 		  G_TYPE_NONE, 0);
   gtk_calendar_signals[PREV_MONTH_SIGNAL] =
-    g_signal_new (I_("prev_month"),
+    g_signal_new (I_("prev-month"),
 		  G_OBJECT_CLASS_TYPE (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkCalendarClass, prev_month),
@@ -612,7 +612,7 @@
 		  _gtk_marshal_VOID__VOID,
 		  G_TYPE_NONE, 0);
   gtk_calendar_signals[NEXT_MONTH_SIGNAL] =
-    g_signal_new (I_("next_month"),
+    g_signal_new (I_("next-month"),
 		  G_OBJECT_CLASS_TYPE (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkCalendarClass, next_month),
@@ -620,7 +620,7 @@
 		  _gtk_marshal_VOID__VOID,
 		  G_TYPE_NONE, 0);
   gtk_calendar_signals[PREV_YEAR_SIGNAL] =
-    g_signal_new (I_("prev_year"),
+    g_signal_new (I_("prev-year"),
 		  G_OBJECT_CLASS_TYPE (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkCalendarClass, prev_year),
@@ -628,7 +628,7 @@
 		  _gtk_marshal_VOID__VOID,
 		  G_TYPE_NONE, 0);
   gtk_calendar_signals[NEXT_YEAR_SIGNAL] =
-    g_signal_new (I_("next_year"),
+    g_signal_new (I_("next-year"),
 		  G_OBJECT_CLASS_TYPE (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkCalendarClass, next_year),

Modified: trunk/gtk/gtkcelleditable.c
==============================================================================
--- trunk/gtk/gtkcelleditable.c	(original)
+++ trunk/gtk/gtkcelleditable.c	Mon Aug 11 13:07:18 2008
@@ -77,7 +77,7 @@
        * gtk_cell_editable_editing_done() is a convenience method
        * for emitting ::editing-done. 
        */
-      g_signal_new (I_("editing_done"),
+      g_signal_new (I_("editing-done"),
                     GTK_TYPE_CELL_EDITABLE,
                     G_SIGNAL_RUN_LAST,
                     G_STRUCT_OFFSET (GtkCellEditableIface, editing_done),
@@ -101,7 +101,7 @@
        * gtk_cell_editable_remove_widget() is a convenience method
        * for emitting ::remove-widget. 
        */
-      g_signal_new (I_("remove_widget"),
+      g_signal_new (I_("remove-widget"),
                     GTK_TYPE_CELL_EDITABLE,
                     G_SIGNAL_RUN_LAST,
                     G_STRUCT_OFFSET (GtkCellEditableIface, remove_widget),
@@ -141,7 +141,7 @@
 {
   g_return_if_fail (GTK_IS_CELL_EDITABLE (cell_editable));
 
-  g_signal_emit_by_name (cell_editable, "editing_done");
+  g_signal_emit_by_name (cell_editable, "editing-done");
 }
 
 /**
@@ -155,7 +155,7 @@
 {
   g_return_if_fail (GTK_IS_CELL_EDITABLE (cell_editable));
 
-  g_signal_emit_by_name (cell_editable, "remove_widget");
+  g_signal_emit_by_name (cell_editable, "remove-widget");
 }
 
 #define __GTK_CELL_EDITABLE_C__

Modified: trunk/gtk/gtkclipboard-quartz.c
==============================================================================
--- trunk/gtk/gtkclipboard-quartz.c	(original)
+++ trunk/gtk/gtkclipboard-quartz.c	Mon Aug 11 13:07:18 2008
@@ -194,7 +194,7 @@
   class->owner_change = gtk_clipboard_owner_change;
 
   clipboard_signals[OWNER_CHANGE] =
-    g_signal_new (I_("owner_change"),
+    g_signal_new (I_("owner-change"),
 		  G_TYPE_FROM_CLASS (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkClipboardClass, owner_change),
@@ -1292,7 +1292,7 @@
  * _gtk_clipboard_handle_event:
  * @event: a owner change event
  * 
- * Emits the ::owner_change signal on the appropriate @clipboard.
+ * Emits the ::owner-change signal on the appropriate @clipboard.
  *
  * Since: 2.6
  **/

Modified: trunk/gtk/gtkclipboard.c
==============================================================================
--- trunk/gtk/gtkclipboard.c	(original)
+++ trunk/gtk/gtkclipboard.c	Mon Aug 11 13:07:18 2008
@@ -186,7 +186,7 @@
    * Since: 2.6
    */ 
   clipboard_signals[OWNER_CHANGE] =
-    g_signal_new (I_("owner_change"),
+    g_signal_new (I_("owner-change"),
 		  G_TYPE_FROM_CLASS (gobject_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkClipboardClass, owner_change),

Modified: trunk/gtk/gtkcolorbutton.c
==============================================================================
--- trunk/gtk/gtkcolorbutton.c	(original)
+++ trunk/gtk/gtkcolorbutton.c	Mon Aug 11 13:07:18 2008
@@ -232,7 +232,7 @@
    *
    * Since: 2.4
    */
-  color_button_signals[COLOR_SET] = g_signal_new (I_("color_set"),
+  color_button_signals[COLOR_SET] = g_signal_new (I_("color-set"),
 						  G_TYPE_FROM_CLASS (gobject_class),
 						  G_SIGNAL_RUN_FIRST,
 						  G_STRUCT_OFFSET (GtkColorButtonClass, color_set),

Modified: trunk/gtk/gtkcolorsel.c
==============================================================================
--- trunk/gtk/gtkcolorsel.c	(original)
+++ trunk/gtk/gtkcolorsel.c	Mon Aug 11 13:07:18 2008
@@ -303,7 +303,7 @@
 						      GTK_PARAM_READWRITE));
   
   color_selection_signals[COLOR_CHANGED] =
-    g_signal_new (I_("color_changed"),
+    g_signal_new (I_("color-changed"),
 		  G_OBJECT_CLASS_TYPE (object_class),
 		  G_SIGNAL_RUN_FIRST,
 		  G_STRUCT_OFFSET (GtkColorSelectionClass, color_changed),

Modified: trunk/gtk/gtkcontainer.c
==============================================================================
--- trunk/gtk/gtkcontainer.c	(original)
+++ trunk/gtk/gtkcontainer.c	Mon Aug 11 13:07:18 2008
@@ -274,7 +274,7 @@
 		  G_TYPE_NONE, 1,
 		  GTK_TYPE_WIDGET);
   container_signals[CHECK_RESIZE] =
-    g_signal_new (I_("check_resize"),
+    g_signal_new (I_("check-resize"),
 		  G_OBJECT_CLASS_TYPE (object_class),
 		  G_SIGNAL_RUN_LAST,
 		  G_STRUCT_OFFSET (GtkContainerClass, check_resize),

Modified: trunk/gtk/gtkcurve.c
==============================================================================
--- trunk/gtk/gtkcurve.c	(original)
+++ trunk/gtk/gtkcurve.c	Mon Aug 11 13:07:18 2008
@@ -164,7 +164,7 @@
 						       GTK_PARAM_READWRITE));
 
   curve_type_changed_signal =
-    g_signal_new (I_("curve_type_changed"),
+    g_signal_new (I_("curve-type-changed"),
 		   G_OBJECT_CLASS_TYPE (gobject_class),
 		   G_SIGNAL_RUN_FIRST,
 		   G_STRUCT_OFFSET (GtkCurveClass, curve_type_changed),



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