diff --git a/ChangeLog b/ChangeLog index 2f45f7563d..560031d7ed 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,19 @@ +2008-08-08 Sven Neumann + + * 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". + 2008-08-08 Tor Lillqvist * gtk/gtk.symbols diff --git a/gtk/gtkadjustment.c b/gtk/gtkadjustment.c index ca4f2565fa..16e76ede8e 100644 --- a/gtk/gtkadjustment.c +++ b/gtk/gtkadjustment.c @@ -198,7 +198,7 @@ gtk_adjustment_class_init (GtkAdjustmentClass *class) 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), diff --git a/gtk/gtkclist.c b/gtk/gtkclist.c index d8350a3694..937776ec23 100644 --- a/gtk/gtkclist.c +++ b/gtk/gtkclist.c @@ -1172,7 +1172,7 @@ gtk_clist_set_hadjustment (GtkCList *clist, 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_clist_set_vadjustment (GtkCList *clist, 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 @@ adjust_adjustments (GtkCList *clist, 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 @@ adjust_adjustments (GtkCList *clist, 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"); } diff --git a/gtk/gtkcolorsel.c b/gtk/gtkcolorsel.c index d8dfbab68c..dab84df0f8 100644 --- a/gtk/gtkcolorsel.c +++ b/gtk/gtkcolorsel.c @@ -410,7 +410,7 @@ gtk_color_selection_init (GtkColorSelection *colorsel) 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 @@ make_label_spinbutton (GtkColorSelection *colorsel, 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); diff --git a/gtk/gtkiconview.c b/gtk/gtkiconview.c index 5c74c4685c..c03c9a22b6 100644 --- a/gtk/gtkiconview.c +++ b/gtk/gtkiconview.c @@ -2379,7 +2379,7 @@ gtk_icon_view_set_adjustments (GtkIconView *icon_view, 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 @@ gtk_icon_view_set_adjustments (GtkIconView *icon_view, 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; diff --git a/gtk/gtklayout.c b/gtk/gtklayout.c index 426376c5b0..79d11e4360 100644 --- a/gtk/gtklayout.c +++ b/gtk/gtklayout.c @@ -247,7 +247,7 @@ gtk_layout_set_adjustments (GtkLayout *layout, 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 @@ gtk_layout_set_adjustments (GtkLayout *layout, 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; diff --git a/gtk/gtkprogress.c b/gtk/gtkprogress.c index 3a1ac52c97..aa67d00995 100644 --- a/gtk/gtkprogress.c +++ b/gtk/gtkprogress.c @@ -494,7 +494,7 @@ gtk_progress_set_adjustment (GtkProgress *progress, 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); } diff --git a/gtk/gtkrange.c b/gtk/gtkrange.c index 76aa0d6f4a..6bf507424e 100644 --- a/gtk/gtkrange.c +++ b/gtk/gtkrange.c @@ -259,7 +259,7 @@ gtk_range_class_init (GtkRangeClass *class) * 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 @@ gtk_range_class_init (GtkRangeClass *class) 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 @@ gtk_range_class_init (GtkRangeClass *class) * 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 @@ gtk_range_class_init (GtkRangeClass *class) * 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 @@ gtk_range_set_adjustment (GtkRange *range, 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); diff --git a/gtk/gtkspinbutton.c b/gtk/gtkspinbutton.c index cce3d052b4..cebed5fa72 100644 --- a/gtk/gtkspinbutton.c +++ b/gtk/gtkspinbutton.c @@ -329,7 +329,7 @@ gtk_spin_button_class_init (GtkSpinButtonClass *class) 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 @@ gtk_spin_button_set_adjustment (GtkSpinButton *spin_button, 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", diff --git a/gtk/gtktext.c b/gtk/gtktext.c index bf28433289..297f1ebfc2 100644 --- a/gtk/gtktext.c +++ b/gtk/gtktext.c @@ -814,7 +814,7 @@ gtk_text_set_adjustments (GtkText *text, 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_text_set_adjustments (GtkText *text, 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 @@ scroll_int (GtkText* text, gint diff) 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 diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c index 94dd91e61f..b6e1b42d95 100644 --- a/gtk/gtktextview.c +++ b/gtk/gtktextview.c @@ -6891,7 +6891,7 @@ gtk_text_view_set_scroll_adjustments (GtkTextView *text_view, 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 @@ gtk_text_view_set_scroll_adjustments (GtkTextView *text_view, 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; diff --git a/gtk/gtktreeview.c b/gtk/gtktreeview.c index 8257216c27..f2c5036962 100644 --- a/gtk/gtktreeview.c +++ b/gtk/gtktreeview.c @@ -7987,7 +7987,7 @@ gtk_tree_view_set_adjustments (GtkTreeView *tree_view, 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 @@ gtk_tree_view_set_adjustments (GtkTreeView *tree_view, 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; diff --git a/gtk/gtkviewport.c b/gtk/gtkviewport.c index 17605cc344..8e399fab66 100644 --- a/gtk/gtkviewport.c +++ b/gtk/gtkviewport.c @@ -442,7 +442,7 @@ viewport_set_adjustment (GtkViewport *viewport, 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);