gtk+ r21041 - in trunk: . gtk



Author: neo
Date: Fri Aug  8 13:25:18 2008
New Revision: 21041
URL: http://svn.gnome.org/viewvc/gtk+?rev=21041&view=rev

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

	* gtk/gtkadjustment.c
	* gtk/gtkclist.c
	* gtk/gtkcolorsel.c
	* gtk/gtkiconview.c
	* gtk/gtklayout.c
	* gtk/gtkprogress.c
	* gtk/gtkrange.c
	* gtk/gtkspinbutton.c
	* gtk/gtktext.c
	* gtk/gtktextview.c
	* gtk/gtktreeview.c
	* gtk/gtkviewport.c: use the canonical signal name 
"value-changed"
	instead of "value_changed".



Modified:
   trunk/ChangeLog
   trunk/gtk/gtkadjustment.c
   trunk/gtk/gtkclist.c
   trunk/gtk/gtkcolorsel.c
   trunk/gtk/gtkiconview.c
   trunk/gtk/gtklayout.c
   trunk/gtk/gtkprogress.c
   trunk/gtk/gtkrange.c
   trunk/gtk/gtkspinbutton.c
   trunk/gtk/gtktext.c
   trunk/gtk/gtktextview.c
   trunk/gtk/gtktreeview.c
   trunk/gtk/gtkviewport.c

Modified: trunk/gtk/gtkadjustment.c
==============================================================================
--- trunk/gtk/gtkadjustment.c	(original)
+++ trunk/gtk/gtkadjustment.c	Fri Aug  8 13:25:18 2008
@@ -198,7 +198,7 @@
 		  G_TYPE_NONE, 0);
 
   adjustment_signals[VALUE_CHANGED] =
-    g_signal_new (I_("value_changed"),
+    g_signal_new (I_("value-changed"),
 		  G_OBJECT_CLASS_TYPE (class),
 		  G_SIGNAL_RUN_FIRST | G_SIGNAL_NO_RECURSE,
 		  G_STRUCT_OFFSET (GtkAdjustmentClass, value_changed),

Modified: trunk/gtk/gtkclist.c
==============================================================================
--- trunk/gtk/gtkclist.c	(original)
+++ trunk/gtk/gtkclist.c	Fri Aug  8 13:25:18 2008
@@ -1172,7 +1172,7 @@
       gtk_signal_connect (GTK_OBJECT (clist->hadjustment), "changed",
 			  (GtkSignalFunc) hadjustment_changed,
 			  (gpointer) clist);
-      gtk_signal_connect (GTK_OBJECT (clist->hadjustment), "value_changed",
+      gtk_signal_connect (GTK_OBJECT (clist->hadjustment), "value-changed",
 			  (GtkSignalFunc) hadjustment_value_changed,
 			  (gpointer) clist);
     }
@@ -1219,7 +1219,7 @@
       gtk_signal_connect (GTK_OBJECT (clist->vadjustment), "changed",
 			  (GtkSignalFunc) vadjustment_changed,
 			  (gpointer) clist);
-      gtk_signal_connect (GTK_OBJECT (clist->vadjustment), "value_changed",
+      gtk_signal_connect (GTK_OBJECT (clist->vadjustment), "value-changed",
 			  (GtkSignalFunc) vadjustment_value_changed,
 			  (gpointer) clist);
     }
@@ -6036,7 +6036,7 @@
 	  clist->vadjustment->value = MAX (0, (LIST_HEIGHT (clist) -
 					       clist->clist_window_height));
 	  gtk_signal_emit_by_name (GTK_OBJECT (clist->vadjustment),
-				   "value_changed");
+				   "value-changed");
 	}
       gtk_signal_emit_by_name (GTK_OBJECT (clist->vadjustment), "changed");
     }
@@ -6057,7 +6057,7 @@
 	  clist->hadjustment->value = MAX (0, (LIST_WIDTH (clist) -
 					       clist->clist_window_width));
 	  gtk_signal_emit_by_name (GTK_OBJECT (clist->hadjustment),
-				   "value_changed");
+				   "value-changed");
 	}
       gtk_signal_emit_by_name (GTK_OBJECT (clist->hadjustment), "changed");
     }

Modified: trunk/gtk/gtkcolorsel.c
==============================================================================
--- trunk/gtk/gtkcolorsel.c	(original)
+++ trunk/gtk/gtkcolorsel.c	Fri Aug  8 13:25:18 2008
@@ -410,7 +410,7 @@
   gtk_label_set_mnemonic_widget (GTK_LABEL (priv->opacity_label),
                                  priv->opacity_slider);
   gtk_scale_set_draw_value (GTK_SCALE (priv->opacity_slider), FALSE);
-  g_signal_connect (adjust, "value_changed",
+  g_signal_connect (adjust, "value-changed",
                     G_CALLBACK (adjustment_changed),
                     GINT_TO_POINTER (COLORSEL_OPACITY));
   gtk_table_attach_defaults (GTK_TABLE (table), priv->opacity_slider, 1, 7, 4, 5); 
@@ -2059,7 +2059,7 @@
 
   gtk_widget_set_tooltip_text (*spinbutton, tooltip);  
 
-  g_signal_connect (adjust, "value_changed",
+  g_signal_connect (adjust, "value-changed",
                     G_CALLBACK (adjustment_changed),
                     GINT_TO_POINTER (channel_type));
   label = gtk_label_new_with_mnemonic (text);

Modified: trunk/gtk/gtkiconview.c
==============================================================================
--- trunk/gtk/gtkiconview.c	(original)
+++ trunk/gtk/gtkiconview.c	Fri Aug  8 13:25:18 2008
@@ -2379,7 +2379,7 @@
       icon_view->priv->hadjustment = hadj;
       g_object_ref_sink (icon_view->priv->hadjustment);
 
-      g_signal_connect (icon_view->priv->hadjustment, "value_changed",
+      g_signal_connect (icon_view->priv->hadjustment, "value-changed",
 			G_CALLBACK (gtk_icon_view_adjustment_changed),
 			icon_view);
       need_adjust = TRUE;
@@ -2390,7 +2390,7 @@
       icon_view->priv->vadjustment = vadj;
       g_object_ref_sink (icon_view->priv->vadjustment);
 
-      g_signal_connect (icon_view->priv->vadjustment, "value_changed",
+      g_signal_connect (icon_view->priv->vadjustment, "value-changed",
 			G_CALLBACK (gtk_icon_view_adjustment_changed),
 			icon_view);
       need_adjust = TRUE;

Modified: trunk/gtk/gtklayout.c
==============================================================================
--- trunk/gtk/gtklayout.c	(original)
+++ trunk/gtk/gtklayout.c	Fri Aug  8 13:25:18 2008
@@ -247,7 +247,7 @@
       g_object_ref_sink (layout->hadjustment);
       gtk_layout_set_adjustment_upper (layout->hadjustment, layout->width, FALSE);
       
-      g_signal_connect (layout->hadjustment, "value_changed",
+      g_signal_connect (layout->hadjustment, "value-changed",
 			G_CALLBACK (gtk_layout_adjustment_changed),
 			layout);
       need_adjust = TRUE;
@@ -259,7 +259,7 @@
       g_object_ref_sink (layout->vadjustment);
       gtk_layout_set_adjustment_upper (layout->vadjustment, layout->height, FALSE);
       
-      g_signal_connect (layout->vadjustment, "value_changed",
+      g_signal_connect (layout->vadjustment, "value-changed",
 			G_CALLBACK (gtk_layout_adjustment_changed),
 			layout);
       need_adjust = TRUE;

Modified: trunk/gtk/gtkprogress.c
==============================================================================
--- trunk/gtk/gtkprogress.c	(original)
+++ trunk/gtk/gtkprogress.c	Fri Aug  8 13:25:18 2008
@@ -494,7 +494,7 @@
           g_signal_connect (adjustment, "changed",
 			    G_CALLBACK (gtk_progress_changed),
 			    progress);
-          g_signal_connect (adjustment, "value_changed",
+          g_signal_connect (adjustment, "value-changed",
 			    G_CALLBACK (gtk_progress_value_changed),
 			    progress);
         }

Modified: trunk/gtk/gtkrange.c
==============================================================================
--- trunk/gtk/gtkrange.c	(original)
+++ trunk/gtk/gtkrange.c	Fri Aug  8 13:25:18 2008
@@ -259,7 +259,7 @@
    * Emitted when the range value changes.
    */
   signals[VALUE_CHANGED] =
-    g_signal_new (I_("value_changed"),
+    g_signal_new (I_("value-changed"),
                   G_TYPE_FROM_CLASS (gobject_class),
                   G_SIGNAL_RUN_LAST,
                   G_STRUCT_OFFSET (GtkRangeClass, value_changed),
@@ -268,7 +268,7 @@
                   G_TYPE_NONE, 0);
   
   signals[ADJUST_BOUNDS] =
-    g_signal_new (I_("adjust_bounds"),
+    g_signal_new (I_("adjust-bounds"),
                   G_TYPE_FROM_CLASS (gobject_class),
                   G_SIGNAL_RUN_LAST,
                   G_STRUCT_OFFSET (GtkRangeClass, adjust_bounds),
@@ -285,7 +285,7 @@
    * Virtual function that moves the slider. Used for keybindings.
    */
   signals[MOVE_SLIDER] =
-    g_signal_new (I_("move_slider"),
+    g_signal_new (I_("move-slider"),
                   G_TYPE_FROM_CLASS (gobject_class),
                   G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
                   G_STRUCT_OFFSET (GtkRangeClass, move_slider),
@@ -321,7 +321,7 @@
    * Since: 2.6
    */
   signals[CHANGE_VALUE] =
-    g_signal_new (I_("change_value"),
+    g_signal_new (I_("change-value"),
                   G_TYPE_FROM_CLASS (gobject_class),
                   G_SIGNAL_RUN_LAST,
                   G_STRUCT_OFFSET (GtkRangeClass, change_value),
@@ -763,7 +763,7 @@
       g_signal_connect (adjustment, "changed",
 			G_CALLBACK (gtk_range_adjustment_changed),
 			range);
-      g_signal_connect (adjustment, "value_changed",
+      g_signal_connect (adjustment, "value-changed",
 			G_CALLBACK (gtk_range_adjustment_value_changed),
 			range);
       

Modified: trunk/gtk/gtkspinbutton.c
==============================================================================
--- trunk/gtk/gtkspinbutton.c	(original)
+++ trunk/gtk/gtkspinbutton.c	Fri Aug  8 13:25:18 2008
@@ -329,7 +329,7 @@
 		  G_TYPE_BOOLEAN, 0);
 
   spinbutton_signals[VALUE_CHANGED] =
-    g_signal_new (I_("value_changed"),
+    g_signal_new (I_("value-changed"),
 		  G_TYPE_FROM_CLASS (gobject_class),
 		  G_SIGNAL_RUN_LAST,
 		  G_STRUCT_OFFSET (GtkSpinButtonClass, value_changed),
@@ -1727,7 +1727,7 @@
       if (adjustment)
         {
 	  g_object_ref_sink (adjustment);
-	  g_signal_connect (adjustment, "value_changed",
+	  g_signal_connect (adjustment, "value-changed",
 			    G_CALLBACK (gtk_spin_button_value_changed),
 			    spin_button);
 	  g_signal_connect (adjustment, "changed",

Modified: trunk/gtk/gtktext.c
==============================================================================
--- trunk/gtk/gtktext.c	(original)
+++ trunk/gtk/gtktext.c	Fri Aug  8 13:25:18 2008
@@ -814,7 +814,7 @@
       gtk_signal_connect (GTK_OBJECT (text->hadj), "changed",
 			  (GtkSignalFunc) gtk_text_adjustment,
 			  text);
-      gtk_signal_connect (GTK_OBJECT (text->hadj), "value_changed",
+      gtk_signal_connect (GTK_OBJECT (text->hadj), "value-changed",
 			  (GtkSignalFunc) gtk_text_adjustment,
 			  text);
       gtk_signal_connect (GTK_OBJECT (text->hadj), "destroy",
@@ -833,7 +833,7 @@
       gtk_signal_connect (GTK_OBJECT (text->vadj), "changed",
 			  (GtkSignalFunc) gtk_text_adjustment,
 			  text);
-      gtk_signal_connect (GTK_OBJECT (text->vadj), "value_changed",
+      gtk_signal_connect (GTK_OBJECT (text->vadj), "value-changed",
 			  (GtkSignalFunc) gtk_text_adjustment,
 			  text);
       gtk_signal_connect (GTK_OBJECT (text->vadj), "destroy",
@@ -4294,7 +4294,7 @@
   text->vadj->value = MIN (text->vadj->value, upper);
   text->vadj->value = MAX (text->vadj->value, 0.0);
   
-  gtk_signal_emit_by_name (GTK_OBJECT (text->vadj), "value_changed");
+  gtk_signal_emit_by_name (GTK_OBJECT (text->vadj), "value-changed");
 }
 
 static void 

Modified: trunk/gtk/gtktextview.c
==============================================================================
--- trunk/gtk/gtktextview.c	(original)
+++ trunk/gtk/gtktextview.c	Fri Aug  8 13:25:18 2008
@@ -6891,7 +6891,7 @@
       text_view->hadjustment = hadj;
       g_object_ref_sink (text_view->hadjustment);
       
-      g_signal_connect (text_view->hadjustment, "value_changed",
+      g_signal_connect (text_view->hadjustment, "value-changed",
                         G_CALLBACK (gtk_text_view_value_changed),
 			text_view);
       need_adjust = TRUE;
@@ -6902,7 +6902,7 @@
       text_view->vadjustment = vadj;
       g_object_ref_sink (text_view->vadjustment);
       
-      g_signal_connect (text_view->vadjustment, "value_changed",
+      g_signal_connect (text_view->vadjustment, "value-changed",
                         G_CALLBACK (gtk_text_view_value_changed),
 			text_view);
       need_adjust = TRUE;

Modified: trunk/gtk/gtktreeview.c
==============================================================================
--- trunk/gtk/gtktreeview.c	(original)
+++ trunk/gtk/gtktreeview.c	Fri Aug  8 13:25:18 2008
@@ -7987,7 +7987,7 @@
       tree_view->priv->hadjustment = hadj;
       g_object_ref_sink (tree_view->priv->hadjustment);
 
-      g_signal_connect (tree_view->priv->hadjustment, "value_changed",
+      g_signal_connect (tree_view->priv->hadjustment, "value-changed",
 			G_CALLBACK (gtk_tree_view_adjustment_changed),
 			tree_view);
       need_adjust = TRUE;
@@ -7998,7 +7998,7 @@
       tree_view->priv->vadjustment = vadj;
       g_object_ref_sink (tree_view->priv->vadjustment);
 
-      g_signal_connect (tree_view->priv->vadjustment, "value_changed",
+      g_signal_connect (tree_view->priv->vadjustment, "value-changed",
 			G_CALLBACK (gtk_tree_view_adjustment_changed),
 			tree_view);
       need_adjust = TRUE;

Modified: trunk/gtk/gtkviewport.c
==============================================================================
--- trunk/gtk/gtkviewport.c	(original)
+++ trunk/gtk/gtkviewport.c	Fri Aug  8 13:25:18 2008
@@ -442,7 +442,7 @@
   else
     viewport_set_vadjustment_values (viewport, &value_changed);
 
-  g_signal_connect (adjustment, "value_changed",
+  g_signal_connect (adjustment, "value-changed",
 		    G_CALLBACK (gtk_viewport_adjustment_value_changed),
 		    viewport);
 



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