Commit 93eab43e authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann
Browse files

Use the canonical form for signal names.

2005-05-27  Sven Neumann  <sven@gimp.org>

	* (lots of files): Use the canonical form for signal names.
parent 3ca90a18
2005-05-27 Sven Neumann <sven@gimp.org>
* (lots of files): Use the canonical form for signal names in lots
of places (but by far not all).
* (lots of files): Use the canonical form for signal names.
2005-05-27 Sven Neumann <sven@gimp.org>
......
......@@ -165,13 +165,13 @@ edit_actions_setup (GimpActionGroup *group)
G_N_ELEMENTS (edit_fill_actions),
G_CALLBACK (edit_fill_cmd_callback));
g_signal_connect_object (context, "foreground_changed",
g_signal_connect_object (context, "foreground-changed",
G_CALLBACK (edit_actions_foreground_changed),
group, 0);
g_signal_connect_object (context, "background_changed",
g_signal_connect_object (context, "background-changed",
G_CALLBACK (edit_actions_background_changed),
group, 0);
g_signal_connect_object (context, "pattern_changed",
g_signal_connect_object (context, "pattern-changed",
G_CALLBACK (edit_actions_pattern_changed),
group, 0);
......
......@@ -106,7 +106,7 @@ error_console_save_cmd_callback (GtkAction *action,
g_signal_connect (chooser, "response",
G_CALLBACK (error_console_save_response),
console);
g_signal_connect (chooser, "delete_event",
g_signal_connect (chooser, "delete-event",
G_CALLBACK (gtk_true),
NULL);
......
......@@ -412,7 +412,7 @@ gradient_editor_replicate_cmd_callback (GtkAction *action,
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, TRUE, 4);
gtk_widget_show (scale);
g_signal_connect (scale_data, "value_changed",
g_signal_connect (scale_data, "value-changed",
G_CALLBACK (gimp_int_adjustment_update),
&editor->replicate_times);
......@@ -507,7 +507,7 @@ gradient_editor_split_uniformly_cmd_callback (GtkAction *action,
gtk_box_pack_start (GTK_BOX (vbox), scale, FALSE, FALSE, 4);
gtk_widget_show (scale);
g_signal_connect (scale_data, "value_changed",
g_signal_connect (scale_data, "value-changed",
G_CALLBACK (gimp_int_adjustment_update),
&editor->split_parts);
......
......@@ -90,7 +90,7 @@ gradients_save_as_pov_ray_cmd_callback (GtkAction *action,
g_signal_connect (chooser, "response",
G_CALLBACK (gradients_save_as_pov_ray_response),
gradient);
g_signal_connect (chooser, "delete_event",
g_signal_connect (chooser, "delete-event",
G_CALLBACK (gtk_true),
NULL);
......
......@@ -83,7 +83,7 @@ text_editor_load_cmd_callback (GtkAction *action,
g_signal_connect (chooser, "response",
G_CALLBACK (text_editor_load_response),
editor);
g_signal_connect (chooser, "delete_event",
g_signal_connect (chooser, "delete-event",
G_CALLBACK (gtk_true),
NULL);
......
......@@ -90,10 +90,10 @@ gimp_gradients_init (Gimp *gimp)
gradient->segments->left_color.b,
0.0);
g_signal_connect (gimp->user_context, "foreground_changed",
g_signal_connect (gimp->user_context, "foreground-changed",
G_CALLBACK (gimp_gradients_foreground_changed),
gimp);
g_signal_connect (gimp->user_context, "background_changed",
g_signal_connect (gimp->user_context, "background-changed",
G_CALLBACK (gimp_gradients_background_changed),
gimp);
}
......
......@@ -114,7 +114,7 @@ gimp_brush_class_init (GimpBrushClass *klass)
parent_class = g_type_class_peek_parent (klass);
brush_signals[SPACING_CHANGED] =
g_signal_new ("spacing_changed",
g_signal_new ("spacing-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpBrushClass, spacing_changed),
......
......@@ -1895,7 +1895,7 @@ gimp_context_real_set_tool (GimpContext *context,
{
g_object_ref (tool_info);
g_signal_connect_object (tool_info, "name_changed",
g_signal_connect_object (tool_info, "name-changed",
G_CALLBACK (gimp_context_tool_dirty),
context,
0);
......@@ -2265,7 +2265,7 @@ gimp_context_real_set_brush (GimpContext *context,
{
g_object_ref (brush);
g_signal_connect_object (brush, "name_changed",
g_signal_connect_object (brush, "name-changed",
G_CALLBACK (gimp_context_brush_dirty),
context,
0);
......@@ -2407,7 +2407,7 @@ gimp_context_real_set_pattern (GimpContext *context,
{
g_object_ref (pattern);
g_signal_connect_object (pattern, "name_changed",
g_signal_connect_object (pattern, "name-changed",
G_CALLBACK (gimp_context_pattern_dirty),
context,
0);
......@@ -2537,7 +2537,7 @@ gimp_context_real_set_gradient (GimpContext *context,
{
g_object_ref (gradient);
g_signal_connect_object (gradient, "name_changed",
g_signal_connect_object (gradient, "name-changed",
G_CALLBACK (gimp_context_gradient_dirty),
context,
0);
......@@ -2659,7 +2659,7 @@ gimp_context_real_set_palette (GimpContext *context,
{
g_object_ref (palette);
g_signal_connect_object (palette, "name_changed",
g_signal_connect_object (palette, "name-changed",
G_CALLBACK (gimp_context_palette_dirty),
context,
0);
......@@ -2803,7 +2803,7 @@ gimp_context_real_set_font (GimpContext *context,
{
g_object_ref (font);
g_signal_connect_object (font, "name_changed",
g_signal_connect_object (font, "name-changed",
G_CALLBACK (gimp_context_font_dirty),
context,
0);
......@@ -2941,7 +2941,7 @@ gimp_context_real_set_buffer (GimpContext *context,
{
g_object_ref (buffer);
g_signal_connect_object (buffer, "name_changed",
g_signal_connect_object (buffer, "name-changed",
G_CALLBACK (gimp_context_buffer_dirty),
context,
0);
......@@ -3081,7 +3081,7 @@ gimp_context_real_set_imagefile (GimpContext *context,
{
g_object_ref (imagefile);
g_signal_connect_object (imagefile, "name_changed",
g_signal_connect_object (imagefile, "name-changed",
G_CALLBACK (gimp_context_imagefile_dirty),
context,
0);
......@@ -3221,7 +3221,7 @@ gimp_context_real_set_template (GimpContext *context,
{
g_object_ref (template);
g_signal_connect_object (template, "name_changed",
g_signal_connect_object (template, "name-changed",
G_CALLBACK (gimp_context_template_dirty),
context,
0);
......
......@@ -221,7 +221,7 @@ gimp_drawable_class_init (GimpDrawableClass *klass)
G_TYPE_INT);
gimp_drawable_signals[ALPHA_CHANGED] =
g_signal_new ("alpha_changed",
g_signal_new ("alpha-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpDrawableClass, alpha_changed),
......
......@@ -271,10 +271,10 @@ gimp_projection_new (GimpImage *gimage)
g_signal_connect_object (gimage, "update",
G_CALLBACK (gimp_projection_image_update),
proj, 0);
g_signal_connect_object (gimage, "size_changed",
g_signal_connect_object (gimage, "size-changed",
G_CALLBACK (gimp_projection_image_size_changed),
proj, 0);
g_signal_connect_object (gimage, "mode_changed",
g_signal_connect_object (gimage, "mode-changed",
G_CALLBACK (gimp_projection_image_mode_changed),
proj, 0);
g_signal_connect_object (gimage, "flush",
......
......@@ -165,10 +165,10 @@ about_dialog_create (void)
g_signal_connect (widget, "unmap",
G_CALLBACK (about_dialog_unmap),
NULL);
g_signal_connect (widget, "button_press_event",
g_signal_connect (widget, "button-press-event",
G_CALLBACK (about_dialog_button),
NULL);
g_signal_connect (widget, "key_press_event",
g_signal_connect (widget, "key-press-event",
G_CALLBACK (about_dialog_key),
NULL);
......
......@@ -155,7 +155,7 @@ channel_options_dialog_new (GimpImage *gimage,
TRUE, 0.0, 0.0,
NULL, NULL);
g_signal_connect (opacity_adj, "value_changed",
g_signal_connect (opacity_adj, "value-changed",
G_CALLBACK (channel_options_opacity_update),
options->color_panel);
......@@ -163,7 +163,7 @@ channel_options_dialog_new (GimpImage *gimage,
TRUE, TRUE, 0);
gtk_widget_show (options->color_panel);
g_signal_connect (options->color_panel, "color_changed",
g_signal_connect (options->color_panel, "color-changed",
G_CALLBACK (channel_options_color_changed),
opacity_adj);
......
......@@ -186,7 +186,7 @@ convert_dialog_new (GimpImage *gimage,
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
gtk_widget_show (spinbutton);
g_signal_connect (adjustment, "value_changed",
g_signal_connect (adjustment, "value-changed",
G_CALLBACK (gimp_int_adjustment_update),
&dialog->num_colors);
......
......@@ -229,7 +229,7 @@ info_dialog_add_scale (InfoDialog *idialog,
gtk_scale_set_draw_value (GTK_SCALE (scale), FALSE);
if (callback)
g_signal_connect (adjustment, "value_changed",
g_signal_connect (adjustment, "value-changed",
callback,
callback_data);
......@@ -270,7 +270,7 @@ info_dialog_add_spinbutton (InfoDialog *idialog,
gtk_entry_set_width_chars (GTK_ENTRY (spinbutton), SB_WIDTH);
if (callback)
g_signal_connect (adjustment, "value_changed",
g_signal_connect (adjustment, "value-changed",
callback,
callback_data);
......@@ -316,7 +316,7 @@ info_dialog_add_sizeentry (InfoDialog *idialog,
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (sizeentry), i, value_ptr[i]);
if (callback)
g_signal_connect (sizeentry, "value_changed",
g_signal_connect (sizeentry, "value-changed",
callback,
callback_data);
......
......@@ -335,7 +335,7 @@ palette_import_dialog_new (Gimp *gimp)
NULL, NULL));
g_signal_connect_swapped (import_dialog->num_colors,
"value_changed",
"value-changed",
G_CALLBACK (palette_import_make_palette),
import_dialog);
......@@ -347,7 +347,7 @@ palette_import_dialog_new (Gimp *gimp)
TRUE, 0.0, 0.0,
NULL, NULL));
g_signal_connect (import_dialog->columns, "value_changed",
g_signal_connect (import_dialog->columns, "value-changed",
G_CALLBACK (palette_import_columns_changed),
import_dialog);
......@@ -360,7 +360,7 @@ palette_import_dialog_new (Gimp *gimp)
NULL, NULL));
gimp_scale_entry_set_sensitive (GTK_OBJECT (import_dialog->threshold), FALSE);
g_signal_connect_swapped (import_dialog->threshold, "value_changed",
g_signal_connect_swapped (import_dialog->threshold, "value-changed",
G_CALLBACK (palette_import_make_palette),
import_dialog);
......@@ -390,13 +390,13 @@ palette_import_dialog_new (Gimp *gimp)
G_CALLBACK (palette_import_image_remove),
import_dialog);
g_signal_connect (import_dialog->context, "gradient_changed",
g_signal_connect (import_dialog->context, "gradient-changed",
G_CALLBACK (palette_import_gradient_changed),
import_dialog);
g_signal_connect (import_dialog->context, "image_changed",
g_signal_connect (import_dialog->context, "image-changed",
G_CALLBACK (palette_import_image_changed),
import_dialog);
g_signal_connect (import_dialog->filename_entry, "filename_changed",
g_signal_connect (import_dialog->filename_entry, "filename-changed",
G_CALLBACK (palette_import_filename_changed),
import_dialog);
......
......@@ -1151,7 +1151,7 @@ prefs_display_options_frame_add (Gimp *gimp,
gimp_color_panel_set_context (GIMP_COLOR_PANEL (button),
gimp_get_user_context (gimp));
g_signal_connect (button, "color_changed",
g_signal_connect (button, "color-changed",
G_CALLBACK (prefs_canvas_padding_color_changed),
gtk_bin_get_child (GTK_BIN (combo)));
}
......
......@@ -278,10 +278,10 @@ print_size_dialog_new (GimpImage *image,
gtk_container_set_focus_chain (GTK_CONTAINER (entry), focus_chain);
g_list_free (focus_chain);
g_signal_connect (private->size_entry, "value_changed",
g_signal_connect (private->size_entry, "value-changed",
G_CALLBACK (print_size_dialog_size_changed),
private);
g_signal_connect (private->resolution_entry, "value_changed",
g_signal_connect (private->resolution_entry, "value-changed",
G_CALLBACK (print_size_dialog_resolution_changed),
private);
......
......@@ -233,7 +233,7 @@ resize_dialog_new (GimpViewable *viewable,
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (entry), 0, 0);
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (entry), 1, 0);
g_signal_connect (entry, "value_changed",
g_signal_connect (entry, "value-changed",
G_CALLBACK (offset_update),
private);
......@@ -264,7 +264,7 @@ resize_dialog_new (GimpViewable *viewable,
if (pixbuf)
gimp_offset_area_set_pixbuf (GIMP_OFFSET_AREA (private->area), pixbuf);
g_signal_connect (private->area, "offsets_changed",
g_signal_connect (private->area, "offsets-changed",
G_CALLBACK (offsets_changed),
private);
......@@ -441,5 +441,5 @@ offset_center_clicked (GtkWidget *widget,
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (private->offset), 0, off_x);
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (private->offset), 1, off_y);
g_signal_emit_by_name (private->offset, "value_changed", 0);
g_signal_emit_by_name (private->offset, "value-changed", 0);
}
......@@ -131,7 +131,7 @@ tips_dialog_create (Gimp *gimp)
gtk_window_set_position (GTK_WINDOW (tips_dialog), GTK_WIN_POS_CENTER);
gtk_window_set_resizable (GTK_WINDOW (tips_dialog), TRUE);
g_signal_connect (tips_dialog, "delete_event",
g_signal_connect (tips_dialog, "delete-event",
G_CALLBACK (gtk_widget_destroy),
NULL);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment