Commit 3ca90a18 authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

Use the canonical form for signal names in lots of places (but by far not

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).
parent 9a5cd29c
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).
2005-05-27 Sven Neumann <sven@gimp.org>
* app/widgets/gimphistogrameditor.[ch]: connect to "name-changed"
......
......@@ -376,7 +376,7 @@ gimp_context_class_init (GimpContextClass *klass)
parent_class = g_type_class_peek_parent (klass);
gimp_context_signals[IMAGE_CHANGED] =
g_signal_new ("image_changed",
g_signal_new ("image-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, image_changed),
......@@ -386,7 +386,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_IMAGE);
gimp_context_signals[DISPLAY_CHANGED] =
g_signal_new ("display_changed",
g_signal_new ("display-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, display_changed),
......@@ -396,7 +396,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_OBJECT);
gimp_context_signals[TOOL_CHANGED] =
g_signal_new ("tool_changed",
g_signal_new ("tool-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, tool_changed),
......@@ -406,7 +406,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_TOOL_INFO);
gimp_context_signals[FOREGROUND_CHANGED] =
g_signal_new ("foreground_changed",
g_signal_new ("foreground-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, foreground_changed),
......@@ -416,7 +416,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_RGB | G_SIGNAL_TYPE_STATIC_SCOPE);
gimp_context_signals[BACKGROUND_CHANGED] =
g_signal_new ("background_changed",
g_signal_new ("background-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, background_changed),
......@@ -426,7 +426,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_RGB | G_SIGNAL_TYPE_STATIC_SCOPE);
gimp_context_signals[OPACITY_CHANGED] =
g_signal_new ("opacity_changed",
g_signal_new ("opacity-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, opacity_changed),
......@@ -436,7 +436,7 @@ gimp_context_class_init (GimpContextClass *klass)
G_TYPE_DOUBLE);
gimp_context_signals[PAINT_MODE_CHANGED] =
g_signal_new ("paint_mode_changed",
g_signal_new ("paint-mode-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, paint_mode_changed),
......@@ -446,7 +446,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_LAYER_MODE_EFFECTS);
gimp_context_signals[BRUSH_CHANGED] =
g_signal_new ("brush_changed",
g_signal_new ("brush-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, brush_changed),
......@@ -456,7 +456,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_BRUSH);
gimp_context_signals[PATTERN_CHANGED] =
g_signal_new ("pattern_changed",
g_signal_new ("pattern-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, pattern_changed),
......@@ -466,7 +466,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_PATTERN);
gimp_context_signals[GRADIENT_CHANGED] =
g_signal_new ("gradient_changed",
g_signal_new ("gradient-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, gradient_changed),
......@@ -476,7 +476,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_GRADIENT);
gimp_context_signals[PALETTE_CHANGED] =
g_signal_new ("palette_changed",
g_signal_new ("palette-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, palette_changed),
......@@ -486,7 +486,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_PALETTE);
gimp_context_signals[FONT_CHANGED] =
g_signal_new ("font_changed",
g_signal_new ("font-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, font_changed),
......@@ -496,7 +496,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_FONT);
gimp_context_signals[BUFFER_CHANGED] =
g_signal_new ("buffer_changed",
g_signal_new ("buffer-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, buffer_changed),
......@@ -506,7 +506,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_BUFFER);
gimp_context_signals[IMAGEFILE_CHANGED] =
g_signal_new ("imagefile_changed",
g_signal_new ("imagefile-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, imagefile_changed),
......@@ -516,7 +516,7 @@ gimp_context_class_init (GimpContextClass *klass)
GIMP_TYPE_IMAGEFILE);
gimp_context_signals[TEMPLATE_CHANGED] =
g_signal_new ("template_changed",
g_signal_new ("template-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContextClass, template_changed),
......
......@@ -243,7 +243,7 @@ gimp_image_class_init (GimpImageClass *klass)
parent_class = g_type_class_peek_parent (klass);
gimp_image_signals[MODE_CHANGED] =
g_signal_new ("mode_changed",
g_signal_new ("mode-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, mode_changed),
......@@ -252,7 +252,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_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 (GimpImageClass, alpha_changed),
......@@ -261,7 +261,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[FLOATING_SELECTION_CHANGED] =
g_signal_new ("floating_selection_changed",
g_signal_new ("floating-selection-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, floating_selection_changed),
......@@ -270,7 +270,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[ACTIVE_LAYER_CHANGED] =
g_signal_new ("active_layer_changed",
g_signal_new ("active-layer-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, active_layer_changed),
......@@ -279,7 +279,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[ACTIVE_CHANNEL_CHANGED] =
g_signal_new ("active_channel_changed",
g_signal_new ("active-channel-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, active_channel_changed),
......@@ -288,7 +288,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[ACTIVE_VECTORS_CHANGED] =
g_signal_new ("active_vectors_changed",
g_signal_new ("active-vectors-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, active_vectors_changed),
......@@ -297,7 +297,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[COMPONENT_VISIBILITY_CHANGED] =
g_signal_new ("component_visibility_changed",
g_signal_new ("component-visibility-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, component_visibility_changed),
......@@ -307,7 +307,7 @@ gimp_image_class_init (GimpImageClass *klass)
GIMP_TYPE_CHANNEL_TYPE);
gimp_image_signals[COMPONENT_ACTIVE_CHANGED] =
g_signal_new ("component_active_changed",
g_signal_new ("component-active-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, component_active_changed),
......@@ -317,7 +317,7 @@ gimp_image_class_init (GimpImageClass *klass)
GIMP_TYPE_CHANNEL_TYPE);
gimp_image_signals[MASK_CHANGED] =
g_signal_new ("mask_changed",
g_signal_new ("mask-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, mask_changed),
......@@ -326,7 +326,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[RESOLUTION_CHANGED] =
g_signal_new ("resolution_changed",
g_signal_new ("resolution-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, resolution_changed),
......@@ -335,7 +335,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[UNIT_CHANGED] =
g_signal_new ("unit_changed",
g_signal_new ("unit-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, unit_changed),
......@@ -344,7 +344,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[QMASK_CHANGED] =
g_signal_new ("qmask_changed",
g_signal_new ("qmask-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, qmask_changed),
......@@ -353,7 +353,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_NONE, 0);
gimp_image_signals[SELECTION_CONTROL] =
g_signal_new ("selection_control",
g_signal_new ("selection-control",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, selection_control),
......@@ -396,7 +396,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_INT);
gimp_image_signals[UPDATE_GUIDE] =
g_signal_new ("update_guide",
g_signal_new ("update-guide",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, update_guide),
......@@ -406,7 +406,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_POINTER);
gimp_image_signals[UPDATE_SAMPLE_POINT] =
g_signal_new ("update_sample_point",
g_signal_new ("update-sample-point",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, update_sample_point),
......@@ -416,7 +416,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_POINTER);
gimp_image_signals[SAMPLE_POINT_ADDED] =
g_signal_new ("sample_point_added",
g_signal_new ("sample-point-added",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, sample_point_added),
......@@ -426,7 +426,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_POINTER);
gimp_image_signals[SAMPLE_POINT_REMOVED] =
g_signal_new ("sample_point_removed",
g_signal_new ("sample-point-removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, sample_point_removed),
......@@ -436,7 +436,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_POINTER);
gimp_image_signals[COLORMAP_CHANGED] =
g_signal_new ("colormap_changed",
g_signal_new ("colormap-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, colormap_changed),
......@@ -446,7 +446,7 @@ gimp_image_class_init (GimpImageClass *klass)
G_TYPE_INT);
gimp_image_signals[UNDO_EVENT] =
g_signal_new ("undo_event",
g_signal_new ("undo-event",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImageClass, undo_event),
......@@ -584,11 +584,11 @@ gimp_image_init (GimpImage *gimage)
G_CALLBACK (gimp_image_drawable_update),
gimage);
gimage->layer_visible_handler =
gimp_container_add_handler (gimage->layers, "visibility_changed",
gimp_container_add_handler (gimage->layers, "visibility-changed",
G_CALLBACK (gimp_image_drawable_visibility),
gimage);
gimage->layer_alpha_handler =
gimp_container_add_handler (gimage->layers, "alpha_changed",
gimp_container_add_handler (gimage->layers, "alpha-changed",
G_CALLBACK (gimp_image_layer_alpha_changed),
gimage);
......@@ -597,15 +597,15 @@ gimp_image_init (GimpImage *gimage)
G_CALLBACK (gimp_image_drawable_update),
gimage);
gimage->channel_visible_handler =
gimp_container_add_handler (gimage->channels, "visibility_changed",
gimp_container_add_handler (gimage->channels, "visibility-changed",
G_CALLBACK (gimp_image_drawable_visibility),
gimage);
gimage->channel_name_changed_handler =
gimp_container_add_handler (gimage->channels, "name_changed",
gimp_container_add_handler (gimage->channels, "name-changed",
G_CALLBACK (gimp_image_channel_name_changed),
gimage);
gimage->channel_color_changed_handler =
gimp_container_add_handler (gimage->channels, "color_changed",
gimp_container_add_handler (gimage->channels, "color-changed",
G_CALLBACK (gimp_image_channel_color_changed),
gimage);
......
......@@ -132,7 +132,7 @@ gimp_imagefile_class_init (GimpImagefileClass *klass)
parent_class = g_type_class_peek_parent (klass);
gimp_imagefile_signals[INFO_CHANGED] =
g_signal_new ("info_changed",
g_signal_new ("info-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpImagefileClass, info_changed),
......@@ -144,7 +144,7 @@ gimp_imagefile_class_init (GimpImagefileClass *klass)
gimp_object_class->name_changed = gimp_imagefile_name_changed;
viewable_class->name_changed_signal = "info_changed";
viewable_class->name_changed_signal = "info-changed";
viewable_class->get_new_pixbuf = gimp_imagefile_get_new_pixbuf;
viewable_class->get_description = gimp_imagefile_get_description;
......
......@@ -144,7 +144,7 @@ gimp_item_class_init (GimpItemClass *klass)
G_TYPE_NONE, 0);
gimp_item_signals[VISIBILITY_CHANGED] =
g_signal_new ("visibility_changed",
g_signal_new ("visibility-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpItemClass, visibility_changed),
......@@ -153,7 +153,7 @@ gimp_item_class_init (GimpItemClass *klass)
G_TYPE_NONE, 0);
gimp_item_signals[LINKED_CHANGED] =
g_signal_new ("linked_changed",
g_signal_new ("linked-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpItemClass, linked_changed),
......
......@@ -191,7 +191,7 @@ gimp_layer_class_init (GimpLayerClass *klass)
parent_class = g_type_class_peek_parent (klass);
layer_signals[OPACITY_CHANGED] =
g_signal_new ("opacity_changed",
g_signal_new ("opacity-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpLayerClass, opacity_changed),
......@@ -200,7 +200,7 @@ gimp_layer_class_init (GimpLayerClass *klass)
G_TYPE_NONE, 0);
layer_signals[MODE_CHANGED] =
g_signal_new ("mode_changed",
g_signal_new ("mode-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpLayerClass, mode_changed),
......@@ -209,7 +209,7 @@ gimp_layer_class_init (GimpLayerClass *klass)
G_TYPE_NONE, 0);
layer_signals[PRESERVE_TRANS_CHANGED] =
g_signal_new ("preserve_trans_changed",
g_signal_new ("preserve-trans-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpLayerClass, preserve_trans_changed),
......@@ -218,7 +218,7 @@ gimp_layer_class_init (GimpLayerClass *klass)
G_TYPE_NONE, 0);
layer_signals[MASK_CHANGED] =
g_signal_new ("mask_changed",
g_signal_new ("mask-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpLayerClass, mask_changed),
......
......@@ -99,7 +99,7 @@ gimp_layer_mask_class_init (GimpLayerMaskClass *klass)
parent_class = g_type_class_peek_parent (klass);
layer_mask_signals[APPLY_CHANGED] =
g_signal_new ("apply_changed",
g_signal_new ("apply-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpLayerMaskClass, apply_changed),
......@@ -108,7 +108,7 @@ gimp_layer_mask_class_init (GimpLayerMaskClass *klass)
G_TYPE_NONE, 0);
layer_mask_signals[EDIT_CHANGED] =
g_signal_new ("edit_changed",
g_signal_new ("edit-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpLayerMaskClass, edit_changed),
......@@ -117,7 +117,7 @@ gimp_layer_mask_class_init (GimpLayerMaskClass *klass)
G_TYPE_NONE, 0);
layer_mask_signals[SHOW_CHANGED] =
g_signal_new ("show_changed",
g_signal_new ("show-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpLayerMaskClass, show_changed),
......
......@@ -115,7 +115,7 @@ gimp_object_class_init (GimpObjectClass *klass)
G_TYPE_NONE, 0);
object_signals[NAME_CHANGED] =
g_signal_new ("name_changed",
g_signal_new ("name-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpObjectClass, name_changed),
......
......@@ -116,7 +116,7 @@ gimp_stroke_options_class_init (GimpStrokeOptionsClass *klass)
klass->dash_info_changed = NULL;
stroke_options_signals[DASH_INFO_CHANGED] =
g_signal_new ("dash_info_changed",
g_signal_new ("dash-info-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpStrokeOptionsClass, dash_info_changed),
......
......@@ -152,7 +152,7 @@ gimp_viewable_class_init (GimpViewableClass *klass)
quark_preview_pixbuf = g_quark_from_static_string ("viewable-preview-pixbuf");
viewable_signals[INVALIDATE_PREVIEW] =
g_signal_new ("invalidate_preview",
g_signal_new ("invalidate-preview",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpViewableClass, invalidate_preview),
......@@ -161,7 +161,7 @@ gimp_viewable_class_init (GimpViewableClass *klass)
G_TYPE_NONE, 0);
viewable_signals[SIZE_CHANGED] =
g_signal_new ("size_changed",
g_signal_new ("size-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpViewableClass, size_changed),
......@@ -176,7 +176,7 @@ gimp_viewable_class_init (GimpViewableClass *klass)
gimp_object_class->get_memsize = gimp_viewable_get_memsize;
klass->default_stock_id = "gimp-question";
klass->name_changed_signal = "name_changed";
klass->name_changed_signal = "name-changed";
klass->invalidate_preview = gimp_viewable_real_invalidate_preview;
klass->size_changed = NULL;
......
......@@ -136,34 +136,34 @@ gimp_display_shell_connect (GimpDisplayShell *shell)
g_signal_connect (gimage, "dirty",
G_CALLBACK (gimp_display_shell_clean_dirty_handler),
shell);
g_signal_connect (gimage, "undo_event",
g_signal_connect (gimage, "undo-event",
G_CALLBACK (gimp_display_shell_undo_event_handler),
shell);
g_signal_connect (gimage->grid, "notify",
G_CALLBACK (gimp_display_shell_grid_notify_handler),
shell);
g_signal_connect (gimage, "name_changed",
g_signal_connect (gimage, "name-changed",
G_CALLBACK (gimp_display_shell_name_changed_handler),
shell);
g_signal_connect (gimage, "selection_control",
g_signal_connect (gimage, "selection-control",
G_CALLBACK (gimp_display_shell_selection_control_handler),
shell);
g_signal_connect (gimage, "size_changed",
g_signal_connect (gimage, "size-changed",
G_CALLBACK (gimp_display_shell_size_changed_handler),
shell);
g_signal_connect (gimage, "resolution_changed",
g_signal_connect (gimage, "resolution-changed",
G_CALLBACK (gimp_display_shell_resolution_changed_handler),
shell);
g_signal_connect (gimage, "qmask_changed",
g_signal_connect (gimage, "qmask-changed",
G_CALLBACK (gimp_display_shell_qmask_changed_handler),
shell);
g_signal_connect (gimage, "update_guide",
g_signal_connect (gimage, "update-guide",
G_CALLBACK (gimp_display_shell_update_guide_handler),
shell);
g_signal_connect (gimage, "update_sample_point",
g_signal_connect (gimage, "update-sample-point",
G_CALLBACK (gimp_display_shell_update_sample_point_handler),
shell);
g_signal_connect (gimage, "invalidate_preview",
g_signal_connect (gimage, "invalidate-preview",
G_CALLBACK (gimp_display_shell_invalidate_preview_handler),
shell);
......@@ -176,7 +176,7 @@ gimp_display_shell_connect (GimpDisplayShell *shell)
G_CALLBACK (gimp_display_shell_vectors_thaw_handler),
shell);
shell->vectors_visible_handler =
gimp_container_add_handler (gimage->vectors, "visibility_changed",
gimp_container_add_handler (gimage->vectors, "visibility-changed",
G_CALLBACK (gimp_display_shell_vectors_visible_handler),
shell);
......
......@@ -723,7 +723,7 @@ gimp_brush_core_real_set_brush (GimpBrushCore *core,
if (core->main_brush)
{
g_object_ref (core->main_brush);
g_signal_connect (core->main_brush, "invalidate_preview",
g_signal_connect (core->main_brush, "invalidate-preview",
G_CALLBACK (gimp_brush_core_invalidate_cache),
core);
}
......
......@@ -159,7 +159,7 @@ gimp_container_grid_view_class_init (GimpContainerGridViewClass *klass)
klass->move_cursor = gimp_container_grid_view_move_cursor;
grid_view_signals[MOVE_CURSOR] =
g_signal_new ("move_cursor",
g_signal_new ("move-cursor",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
G_STRUCT_OFFSET (GimpContainerGridViewClass, move_cursor),
......@@ -170,19 +170,19 @@ gimp_container_grid_view_class_init (GimpContainerGridViewClass *klass)
G_TYPE_INT);
gtk_binding_entry_add_signal (binding_set, GDK_Home, 0,
"move_cursor", 2,
"move-cursor", 2,
G_TYPE_ENUM, GTK_MOVEMENT_BUFFER_ENDS,
G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set, GDK_End, 0,
"move_cursor", 2,
"move-cursor", 2,
G_TYPE_ENUM, GTK_MOVEMENT_BUFFER_ENDS,
G_TYPE_INT, 1);
gtk_binding_entry_add_signal (binding_set, GDK_Page_Up, 0,
"move_cursor", 2,
"move-cursor", 2,
G_TYPE_ENUM, GTK_MOVEMENT_PAGES,
G_TYPE_INT, -1);
gtk_binding_entry_add_signal (binding_set, GDK_Page_Down, 0,
"move_cursor", 2,
"move-cursor", 2,
G_TYPE_ENUM, GTK_MOVEMENT_PAGES,
G_TYPE_INT, 1);
......@@ -210,7 +210,7 @@ gimp_container_grid_view_init (GimpContainerGridView *grid_view)
grid_view->wrap_box);
gtk_widget_show (grid_view->wrap_box);
g_signal_connect (grid_view->wrap_box->parent, "size_allocate",
g_signal_connect (grid_view->wrap_box->parent, "size-allocate",
G_CALLBACK (gimp_container_grid_view_viewport_resized),
grid_view);
......@@ -434,10 +434,10 @@ gimp_container_grid_view_insert_item (GimpContainerView *view,
gtk_widget_show (preview);
g_signal_connect (preview, "button_press_event",
g_signal_connect (preview, "button-press-event",
G_CALLBACK (gimp_container_grid_view_item_selected),
view);
g_signal_connect (preview, "double_clicked",
g_signal_connect (preview, "double-clicked",
G_CALLBACK (gimp_container_grid_view_item_activated),
view);
g_signal_connect (preview, "context",
......
......@@ -152,7 +152,7 @@ gimp_container_view_iface_base_init (GimpContainerViewInterface *view_iface)
return;
view_signals[SELECT_ITEM] =
g_signal_new ("select_item",
g_signal_new ("select-item",
G_TYPE_FROM_INTERFACE (view_iface),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GimpContainerViewInterface, select_item),
......@@ -163,7 +163,7 @@ gimp_container_view_iface_base_init (GimpContainerViewInterface *view_iface)
G_TYPE_POINTER);
view_signals[ACTIVATE_ITEM] =
g_signal_new ("activate_item",
g_signal_new ("activate-item",
G_TYPE_FROM_INTERFACE (view_iface),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContainerViewInterface, activate_item),
......@@ -174,7 +174,7 @@ gimp_container_view_iface_base_init (GimpContainerViewInterface *view_iface)
G_TYPE_POINTER);
view_signals[CONTEXT_ITEM] =
g_signal_new ("context_item",
g_signal_new ("context-item",
G_TYPE_FROM_INTERFACE (view_iface),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpContainerViewInterface, context_item),
......
......@@ -156,7 +156,7 @@ gimp_dock_class_init (GimpDockClass *klass)
parent_class = g_type_class_peek_parent (klass);
dock_signals[BOOK_ADDED] =
g_signal_new ("book_added",
g_signal_new ("book-added",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpDockClass, book_added),
......@@ -166,7 +166,7 @@ gimp_dock_class_init (GimpDockClass *klass)
GIMP_TYPE_DOCKBOOK);
dock_signals[BOOK_REMOVED] =
g_signal_new ("book_removed",
g_signal_new ("book-removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpDockClass, book_removed),
......
......@@ -143,7 +143,7 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
parent_class = g_type_class_peek_parent (klass);
dockbook_signals[DOCKABLE_ADDED] =
g_signal_new ("dockable_added",
g_signal_new ("dockable-added",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpDockbookClass, dockable_added),
......@@ -153,7 +153,7 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
GIMP_TYPE_DOCKABLE);
dockbook_signals[DOCKABLE_REMOVED] =
g_signal_new ("dockable_removed",
g_signal_new ("dockable-removed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpDockbookClass, dockable_removed),
......@@ -163,7 +163,7 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
GIMP_TYPE_DOCKABLE);
dockbook_signals[DOCKABLE_REORDERED] =
g_signal_new ("dockable_reordered",
g_signal_new ("dockable-reordered",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpDockbookClass, dockable_reordered),
......@@ -182,13 +182,13 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
klass->dockable_reordered = NULL;
gtk_widget_class_install_style_property (widget_class,
g_param_spec_int ("tab_border",
g_param_spec_int ("tab-border",
NULL, NULL,
0, G_MAXINT,
DEFAULT_TAB_BORDER,
G_PARAM_READABLE));
gtk_widget_class_install_style_property (widget_class,
g_param_spec_enum ("tab_icon_size",
g_param_spec_enum ("tab-icon-size",
NULL, NULL,
GTK_TYPE_ICON_SIZE,
DEFAULT_TAB_ICON_SIZE,
......
......@@ -77,7 +77,7 @@ gimp_docked_iface_base_init (GimpDockedInterface *docked_iface)
if (! initialized)
{
docked_signals[TITLE_CHANGED] =
g_signal_new ("title_changed",
g_signal_new ("title-changed",
GIMP_TYPE_DOCKED,
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpDockedInterface, title_changed),
......
......@@ -128,7 +128,7 @@ gimp_histogram_view_class_init (GimpHistogramViewClass *klass)
widget_class = GTK_WIDGET_CLASS (klass);
histogram_view_signals[RANGE_CHANGED] =
g_signal_new ("range_changed",
g_signal_new ("range-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpHistogramViewClass, range_changed),
......
......@@ -215,7 +215,7 @@ gimp_item_tree_view_class_init (GimpItemTreeViewClass *klass)
parent_class = g_type_class_peek_parent (klass);
view_signals[SET_IMAGE] =
g_signal_new ("set_image",
g_signal_new ("set-image",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GimpItemTreeViewClass, set_image),
......
......@@ -118,7 +118,7 @@ gimp_navigation_view_class_init (GimpNavigationViewClass *klass)
parent_class = g_type_class_peek_parent (klass);
view_signals[MARKER_CHANGED] =
g_signal_new ("marker_changed",
g_signal_new ("marker-changed",
G_TYPE_FROM_CLASS (klass),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (GimpNavigationViewClass, marker_changed),
......
......@@ -443,7 +443,7 @@ gimp_palette_editor_set_data (GimpDataEditor *editor,
{
GimpPalette *palette = GIMP_PALETTE (editor->data);
g_signal_connect (editor->data, "invalidate_preview",
g_signal_connect (editor->data, "invalidate-preview",
G_CALLBACK (palette_editor_invalidate_preview),
editor);
......
......@@ -90,7 +90,7 @@ gimp_text_editor_class_init (GimpTextEditorClass *klass)