mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-11 11:20:12 +00:00
gtk/gtkadjustment.c gtk/gtkclist.c gtk/gtkcolorsel.c gtk/gtkiconview.c
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". svn path=/trunk/; revision=21041
This commit is contained in:
parent
729524185b
commit
867a82c36e
16
ChangeLog
16
ChangeLog
@ -1,3 +1,19 @@
|
||||
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".
|
||||
|
||||
2008-08-08 Tor Lillqvist <tml@novell.com>
|
||||
|
||||
* gtk/gtk.symbols
|
||||
|
@ -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),
|
||||
|
@ -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");
|
||||
}
|
||||
|
@ -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);
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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",
|
||||
|
@ -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
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user