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

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);
......
......@@ -743,7 +743,7 @@ user_install_dialog_run (const gchar *alternate_system_gimprc,
darea = gtk_drawing_area_new ();
TITLE_STYLE (darea);
gtk_widget_set_size_request (darea, 16, 16);
g_signal_connect (darea, "expose_event",
g_signal_connect (darea, "expose-event",
G_CALLBACK (user_install_corner_expose),
GINT_TO_POINTER (GTK_CORNER_TOP_LEFT));
gtk_table_attach (GTK_TABLE (table), darea, 0, 1, 0, 1,
......@@ -753,7 +753,7 @@ user_install_dialog_run (const gchar *alternate_system_gimprc,
darea = gtk_drawing_area_new ();
TITLE_STYLE (darea);
gtk_widget_set_size_request (darea, 16, 16);
g_signal_connect (darea, "expose_event",
g_signal_connect (darea, "expose-event",
G_CALLBACK (user_install_corner_expose),
GINT_TO_POINTER (GTK_CORNER_BOTTOM_LEFT));
gtk_table_attach (GTK_TABLE (table), darea, 0, 1, 2, 3,
......@@ -994,7 +994,7 @@ user_install_dialog_run (const gchar *alternate_system_gimprc,
gtk_tree_view_expand_all (GTK_TREE_VIEW (tv));
g_signal_connect (tv, "size_allocate",
g_signal_connect (tv, "size-allocate",
G_CALLBACK (user_install_tv_fix_size_request),
NULL);
......
......@@ -76,7 +76,7 @@ vectors_export_dialog_new (GimpImage *image,
G_CALLBACK (gtk_widget_destroy),
dialog->dialog, 0);
g_signal_connect (dialog->dialog, "delete_event",
g_signal_connect (dialog->dialog, "delete-event",
G_CALLBACK (gtk_true),
NULL);
......
......@@ -80,7 +80,7 @@ vectors_import_dialog_new (GimpImage *image,
G_CALLBACK (gtk_widget_destroy),
dialog->dialog, 0);
g_signal_connect (dialog->dialog, "delete_event",
g_signal_connect (dialog->dialog, "delete-event",
G_CALLBACK (gtk_true),
NULL);
......
......@@ -284,10 +284,10 @@ gimp_display_shell_canvas_realize (GtkWidget *canvas,
shell->disp_height = canvas->allocation.height;
/* set up the scrollbar observers */
g_signal_connect (shell->hsbdata, "value_changed",
g_signal_connect (shell->hsbdata, "value-changed",
G_CALLBACK (gimp_display_shell_hscrollbar_update),
shell);
g_signal_connect (shell->vsbdata, "value_changed",
g_signal_connect (shell->vsbdata, "value-changed",
G_CALLBACK (gimp_display_shell_vscrollbar_update),
shell);
......
......@@ -160,7 +160,7 @@ gimp_display_shell_close_dialog (GimpDisplayShell *shell,
box = GIMP_MESSAGE_DIALOG (dialog)->box;
g_signal_connect_object (gimage, "name_changed",
g_signal_connect_object (gimage, "name-changed",
G_CALLBACK (gimp_display_shell_close_name_changed),
box, 0);
......
......@@ -331,16 +331,16 @@ gimp_display_shell_init (GimpDisplayShell *shell)
GDK_SCROLL_MASK));
/* active display callback */
g_signal_connect (shell, "button_press_event",
g_signal_connect (shell, "button-press-event",
G_CALLBACK (gimp_display_shell_events),
shell);
g_signal_connect (shell, "button_release_event",
g_signal_connect (shell, "button-release-event",
G_CALLBACK (gimp_display_shell_events),
shell);
g_signal_connect (shell, "key_press_event",
g_signal_connect (shell, "key-press-event",
G_CALLBACK (gimp_display_shell_events),
shell);
g_signal_connect (shell, "window_state_event",
g_signal_connect (shell, "window-state-event",
G_CALLBACK (gimp_display_shell_events),
shell);
......@@ -743,13 +743,13 @@ gimp_display_shell_new (GimpDisplay *gdisp,
NULL);
/* active display callback */
g_signal_connect (shell->menubar, "button_press_event",
g_signal_connect (shell->menubar, "button-press-event",
G_CALLBACK (gimp_display_shell_events),
shell);
g_signal_connect (shell->menubar, "button_release_event",
g_signal_connect (shell->menubar, "button-release-event",
G_CALLBACK (gimp_display_shell_events),
shell);
g_signal_connect (shell->menubar, "key_press_event",
g_signal_connect (shell->menubar, "key-press-event",
G_CALLBACK (gimp_display_shell_events),
shell);
}
......@@ -805,7 +805,7 @@ gimp_display_shell_new (GimpDisplay *gdisp,
gtk_container_add (GTK_CONTAINER (shell->origin_button), image);
gtk_widget_show (image);
g_signal_connect (shell->origin_button, "button_press_event",
g_signal_connect (shell->origin_button, "button-press-event",
G_CALLBACK (gimp_display_shell_origin_button_press),
shell);
......@@ -821,10 +821,10 @@ gimp_display_shell_new (GimpDisplay *gdisp,
gtk_widget_set_events (GTK_WIDGET (shell->hrule),
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
g_signal_connect_swapped (shell->canvas, "motion_notify_event",
g_signal_connect_swapped (shell->canvas, "motion-notify-event",
G_CALLBACK (GTK_WIDGET_GET_CLASS (shell->hrule)->motion_notify_event),
shell->hrule);
g_signal_connect (shell->hrule, "button_press_event",
g_signal_connect (shell->hrule, "button-press-event",
G_CALLBACK (gimp_display_shell_hruler_button_press),
shell);
......@@ -835,10 +835,10 @@ gimp_display_shell_new (GimpDisplay *gdisp,
gtk_widget_set_events (GTK_WIDGET (shell->vrule),
GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
g_signal_connect_swapped (shell->canvas, "motion_notify_event",
g_signal_connect_swapped (shell->canvas, "motion-notify-event",
G_CALLBACK (GTK_WIDGET_GET_CLASS (shell->vrule)->motion_notify_event),
shell->vrule);
g_signal_connect (shell->vrule, "button_press_event",
g_signal_connect (shell->vrule, "button-press-event",
G_CALLBACK (gimp_display_shell_vruler_button_press),
shell);
......@@ -853,47 +853,47 @@ gimp_display_shell_new (GimpDisplay *gdisp,
g_signal_connect (shell->canvas, "realize",
G_CALLBACK (gimp_display_shell_canvas_realize),
shell);
g_signal_connect (shell->canvas, "size_allocate",
g_signal_connect (shell->canvas, "size-allocate",
G_CALLBACK (gimp_display_shell_canvas_size_allocate),
shell);
g_signal_connect (shell->canvas, "expose_event",
g_signal_connect (shell->canvas, "expose-event",
G_CALLBACK (gimp_display_shell_canvas_expose),
shell);
g_signal_connect (shell->canvas, "enter_notify_event",
g_signal_connect (shell->canvas, "enter-notify-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "leave_notify_event",
g_signal_connect (shell->canvas, "leave-notify-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "proximity_in_event",
g_signal_connect (shell->canvas, "proximity-in-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "proximity_out_event",
g_signal_connect (shell->canvas, "proximity-out-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "focus_in_event",
g_signal_connect (shell->canvas, "focus-in-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "focus_out_event",
g_signal_connect (shell->canvas, "focus-out-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "button_press_event",
g_signal_connect (shell->canvas, "button-press-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "button_release_event",
g_signal_connect (shell->canvas, "button-release-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "scroll_event",
g_signal_connect (shell->canvas, "scroll-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "motion_notify_event",
g_signal_connect (shell->canvas, "motion-notify-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "key_press_event",
g_signal_connect (shell->canvas, "key-press-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
g_signal_connect (shell->canvas, "key_release_event",
g_signal_connect (shell->canvas, "key-release-event",
G_CALLBACK (gimp_display_shell_canvas_tool_events),
shell);
......@@ -935,7 +935,7 @@ gimp_display_shell_new (GimpDisplay *gdisp,
g_signal_connect (shell->qmask_button, "toggled",
G_CALLBACK (gimp_display_shell_qmask_toggled),
shell);
g_signal_connect (shell->qmask_button, "button_press_event",
g_signal_connect (shell->qmask_button, "button-press-event",
G_CALLBACK (gimp_display_shell_qmask_button_press),
shell);
......@@ -946,7 +946,7 @@ gimp_display_shell_new (GimpDisplay *gdisp,
gtk_container_add (GTK_CONTAINER (shell->nav_ebox), image);
gtk_widget_show (image);
g_signal_connect (shell->nav_ebox, "button_press_event",
g_signal_connect (shell->nav_ebox, "button-press-event",
G_CALLBACK (gimp_display_shell_nav_button_press),
shell);
......
......@@ -163,7 +163,7 @@ gimp_navigation_editor_init (GimpNavigationEditor *editor)
gtk_container_add (GTK_CONTAINER (frame), editor->view);
gtk_widget_show (editor->view);
g_signal_connect (editor->view, "marker_changed",
g_signal_connect (editor->view, "marker-changed",
G_CALLBACK (gimp_navigation_editor_marker_changed),
editor);
g_signal_connect (editor->view, "zoom",
......@@ -214,7 +214,7 @@ gimp_navigation_editor_set_context (GimpDocked *docked,
if (context)
{
g_signal_connect (context, "display_changed",
g_signal_connect (context, "display-changed",
G_CALLBACK (gimp_navigation_editor_context_changed),
editor);
......@@ -279,7 +279,7 @@ gimp_navigation_editor_popup (GimpDisplayShell *shell,
gtk_container_add (GTK_CONTAINER (frame), GTK_WIDGET (editor));
gtk_widget_show (GTK_WIDGET (editor));
g_signal_connect (editor->view, "button_release_event",
g_signal_connect (editor->view, "button-release-event",
G_CALLBACK (gimp_navigation_editor_button_release),
shell);
}
......@@ -415,7 +415,7 @@ gimp_navigation_editor_new_private (GimpMenuFactory *menu_factory,
editor->zoom_adjustment =
GTK_ADJUSTMENT (gtk_adjustment_new (0.0, -8.0, 8.0, 0.5, 1.0, 0.0));
g_signal_connect (editor->zoom_adjustment, "value_changed",
g_signal_connect (editor->zoom_adjustment, "value-changed",
G_CALLBACK (gimp_navigation_editor_zoom_adj_changed),
editor);
......
......@@ -370,7 +370,7 @@ gui_restore_callback (Gimp *gimp,
G_CALLBACK (gui_show_help_button_notify),
gimp);
g_signal_connect (gimp_get_user_context (gimp), "display_changed",
g_signal_connect (gimp_get_user_context (gimp), "display-changed",
G_CALLBACK (gui_display_changed),
gimp);
......
......@@ -114,14 +114,14 @@ splash_create (void)
splash->window =
g_object_new (GTK_TYPE_WINDOW,
"type", GTK_WINDOW_TOPLEVEL,
"type_hint", GDK_WINDOW_TYPE_HINT_SPLASHSCREEN,
"type-hint", GDK_WINDOW_TYPE_HINT_SPLASHSCREEN,
"title", _("GIMP Startup"),
"role", "gimp-startup",
"window_position", GTK_WIN_POS_CENTER,
"window-position", GTK_WIN_POS_CENTER,
"resizable", FALSE,
NULL);
g_signal_connect_swapped (splash->window, "delete_event",
g_signal_connect_swapped (splash->window, "delete-event",
G_CALLBACK (exit),
GINT_TO_POINTER (0));
......@@ -167,7 +167,7 @@ splash_create (void)
GDK_RGB_DITHER_NORMAL, 0, 0);
g_object_unref (pixbuf);
g_signal_connect (splash->area, "expose_event",
g_signal_connect (splash->area, "expose-event",
G_CALLBACK (splash_area_expose),
splash);
......
......@@ -242,7 +242,7 @@ gimp_brightness_contrast_tool_dialog (GimpImageMapTool *image_map_tool)
slider = GIMP_SCALE_ENTRY_SCALE (data);
gtk_range_set_update_policy (GTK_RANGE (slider), GTK_UPDATE_DELAYED);
g_signal_connect (data, "value_changed",
g_signal_connect (data, "value-changed",
G_CALLBACK (brightness_contrast_brightness_adjustment_update),
bc_tool);
......@@ -257,7 +257,7 @@ gimp_brightness_contrast_tool_dialog (GimpImageMapTool *image_map_tool)
slider = GIMP_SCALE_ENTRY_SCALE (data);
gtk_range_set_update_policy (GTK_RANGE (slider), GTK_UPDATE_DELAYED);
g_signal_connect (data, "value_changed",
g_signal_connect (data, "value-changed",
G_CALLBACK (brightness_contrast_contrast_adjustment_update),
bc_tool);
}
......
......@@ -299,21 +299,21 @@ gimp_color_balance_tool_dialog (GimpImageMapTool *image_map_tool)
cb_tool->cyan_red_adj =
create_levels_scale (_("Cyan"), _("Red"), table, 0);
g_signal_connect (cb_tool->cyan_red_adj, "value_changed",
g_signal_connect (cb_tool->cyan_red_adj, "value-changed",
G_CALLBACK (color_balance_cr_adjustment_update),
cb_tool);
cb_tool->magenta_green_adj =
create_levels_scale (_("Magenta"), _("Green"), table, 1);
g_signal_connect (cb_tool->magenta_green_adj, "value_changed",
g_signal_connect (cb_tool->magenta_green_adj, "value-changed",
G_CALLBACK (color_balance_mg_adjustment_update),
cb_tool);