From 3ca90a182eed1a46598fb677faaaf3ebd8ff3bc2 Mon Sep 17 00:00:00 2001 From: Sven Neumann Date: Fri, 27 May 2005 13:05:26 +0000 Subject: [PATCH] Use the canonical form for signal names in lots of places (but by far not 2005-05-27 Sven Neumann * (lots of files): Use the canonical form for signal names in lots of places (but by far not all). --- ChangeLog | 5 +++ app/core/gimpcontext.c | 30 ++++++++-------- app/core/gimpimage.c | 48 ++++++++++++------------- app/core/gimpimagefile.c | 4 +-- app/core/gimpitem.c | 4 +-- app/core/gimplayer.c | 8 ++--- app/core/gimplayermask.c | 6 ++-- app/core/gimpobject.c | 2 +- app/core/gimpstrokeoptions.c | 2 +- app/core/gimpviewable.c | 6 ++-- app/display/gimpdisplayshell-handlers.c | 20 +++++------ app/paint/gimpbrushcore.c | 2 +- app/widgets/gimpcontainergridview.c | 16 ++++----- app/widgets/gimpcontainerview.c | 6 ++-- app/widgets/gimpdock.c | 4 +-- app/widgets/gimpdockbook.c | 10 +++--- app/widgets/gimpdocked.c | 2 +- app/widgets/gimphistogramview.c | 2 +- app/widgets/gimpitemtreeview.c | 2 +- app/widgets/gimpnavigationview.c | 2 +- app/widgets/gimppaletteeditor.c | 2 +- app/widgets/gimptexteditor.c | 4 +-- app/widgets/gimpview.c | 2 +- app/widgets/gimpviewrenderer.c | 4 +-- libgimp/gimpbrushmenu.c | 2 +- libgimp/gimpgradientmenu.c | 4 +-- libgimp/gimppatternmenu.c | 2 +- libgimpmodule/gimpmoduledb.c | 2 +- libgimpwidgets/gimpbutton.c | 2 +- libgimpwidgets/gimpchainbutton.c | 4 +-- libgimpwidgets/gimpcolorarea.c | 2 +- libgimpwidgets/gimpcolorbutton.c | 10 +++--- libgimpwidgets/gimpcolorhexentry.c | 10 +++--- libgimpwidgets/gimpcolornotebook.c | 6 ++-- libgimpwidgets/gimpcolorscales.c | 2 +- libgimpwidgets/gimpcolorselect.c | 8 ++--- libgimpwidgets/gimpcolorselection.c | 16 ++++----- libgimpwidgets/gimpcolorselector.c | 4 +-- libgimpwidgets/gimpdialog.c | 2 +- libgimpwidgets/gimpfileentry.c | 6 ++-- libgimpwidgets/gimphelpui.c | 4 +-- libgimpwidgets/gimpmemsizeentry.c | 4 +-- libgimpwidgets/gimpoffsetarea.c | 6 ++-- libgimpwidgets/gimppatheditor.c | 6 ++-- libgimpwidgets/gimppickbutton.c | 10 +++--- libgimpwidgets/gimppreview.c | 2 +- libgimpwidgets/gimppropwidgets.c | 28 +++++++-------- libgimpwidgets/gimpscrolledpreview.c | 4 +-- libgimpwidgets/gimpsizeentry.c | 16 ++++----- libgimpwidgets/gimpunitmenu.c | 4 +-- libgimpwidgets/gimpwidgets.c | 24 ++++++------- 51 files changed, 194 insertions(+), 189 deletions(-) diff --git a/ChangeLog b/ChangeLog index e948a618d3..7231991114 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2005-05-27 Sven Neumann + + * (lots of files): Use the canonical form for signal names in lots + of places (but by far not all). + 2005-05-27 Sven Neumann * app/widgets/gimphistogrameditor.[ch]: connect to "name-changed" diff --git a/app/core/gimpcontext.c b/app/core/gimpcontext.c index 863367924d..356069a2f9 100644 --- a/app/core/gimpcontext.c +++ b/app/core/gimpcontext.c @@ -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), diff --git a/app/core/gimpimage.c b/app/core/gimpimage.c index 0002b934e7..dbbd60b985 100644 --- a/app/core/gimpimage.c +++ b/app/core/gimpimage.c @@ -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); diff --git a/app/core/gimpimagefile.c b/app/core/gimpimagefile.c index 2cf9384b39..507133992b 100644 --- a/app/core/gimpimagefile.c +++ b/app/core/gimpimagefile.c @@ -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; diff --git a/app/core/gimpitem.c b/app/core/gimpitem.c index 5b650d019e..61c4802020 100644 --- a/app/core/gimpitem.c +++ b/app/core/gimpitem.c @@ -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), diff --git a/app/core/gimplayer.c b/app/core/gimplayer.c index 9b85320bc0..77c3d71747 100644 --- a/app/core/gimplayer.c +++ b/app/core/gimplayer.c @@ -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), diff --git a/app/core/gimplayermask.c b/app/core/gimplayermask.c index 3b2795e0e8..2ba9cc53fa 100644 --- a/app/core/gimplayermask.c +++ b/app/core/gimplayermask.c @@ -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), diff --git a/app/core/gimpobject.c b/app/core/gimpobject.c index f12e853d4b..fc63586f55 100644 --- a/app/core/gimpobject.c +++ b/app/core/gimpobject.c @@ -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), diff --git a/app/core/gimpstrokeoptions.c b/app/core/gimpstrokeoptions.c index e001cf18a7..f41e7ffacd 100644 --- a/app/core/gimpstrokeoptions.c +++ b/app/core/gimpstrokeoptions.c @@ -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), diff --git a/app/core/gimpviewable.c b/app/core/gimpviewable.c index 0b073c90d2..014ee53211 100644 --- a/app/core/gimpviewable.c +++ b/app/core/gimpviewable.c @@ -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; diff --git a/app/display/gimpdisplayshell-handlers.c b/app/display/gimpdisplayshell-handlers.c index c8bd1ee795..45a57e222f 100644 --- a/app/display/gimpdisplayshell-handlers.c +++ b/app/display/gimpdisplayshell-handlers.c @@ -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); diff --git a/app/paint/gimpbrushcore.c b/app/paint/gimpbrushcore.c index 2535535234..1a0ef97ccd 100644 --- a/app/paint/gimpbrushcore.c +++ b/app/paint/gimpbrushcore.c @@ -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); } diff --git a/app/widgets/gimpcontainergridview.c b/app/widgets/gimpcontainergridview.c index b30f3fbf62..fbab449302 100644 --- a/app/widgets/gimpcontainergridview.c +++ b/app/widgets/gimpcontainergridview.c @@ -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", diff --git a/app/widgets/gimpcontainerview.c b/app/widgets/gimpcontainerview.c index 39b8a3104a..fdd58a449f 100644 --- a/app/widgets/gimpcontainerview.c +++ b/app/widgets/gimpcontainerview.c @@ -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), diff --git a/app/widgets/gimpdock.c b/app/widgets/gimpdock.c index 0d0ac7f3f2..f539d7c598 100644 --- a/app/widgets/gimpdock.c +++ b/app/widgets/gimpdock.c @@ -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), diff --git a/app/widgets/gimpdockbook.c b/app/widgets/gimpdockbook.c index 54506f1dbf..e9796df516 100644 --- a/app/widgets/gimpdockbook.c +++ b/app/widgets/gimpdockbook.c @@ -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, diff --git a/app/widgets/gimpdocked.c b/app/widgets/gimpdocked.c index 112731e168..987cedf01f 100644 --- a/app/widgets/gimpdocked.c +++ b/app/widgets/gimpdocked.c @@ -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), diff --git a/app/widgets/gimphistogramview.c b/app/widgets/gimphistogramview.c index bc1e5c424a..a142ad0f9c 100644 --- a/app/widgets/gimphistogramview.c +++ b/app/widgets/gimphistogramview.c @@ -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), diff --git a/app/widgets/gimpitemtreeview.c b/app/widgets/gimpitemtreeview.c index d468ef6926..a8b778b89e 100644 --- a/app/widgets/gimpitemtreeview.c +++ b/app/widgets/gimpitemtreeview.c @@ -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), diff --git a/app/widgets/gimpnavigationview.c b/app/widgets/gimpnavigationview.c index 682f206e29..676f94dfe7 100644 --- a/app/widgets/gimpnavigationview.c +++ b/app/widgets/gimpnavigationview.c @@ -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), diff --git a/app/widgets/gimppaletteeditor.c b/app/widgets/gimppaletteeditor.c index bd78022dd2..d6428e6a9a 100644 --- a/app/widgets/gimppaletteeditor.c +++ b/app/widgets/gimppaletteeditor.c @@ -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); diff --git a/app/widgets/gimptexteditor.c b/app/widgets/gimptexteditor.c index 66c2766b3c..b1d40f2a3f 100644 --- a/app/widgets/gimptexteditor.c +++ b/app/widgets/gimptexteditor.c @@ -90,7 +90,7 @@ gimp_text_editor_class_init (GimpTextEditorClass *klass) parent_class = g_type_class_peek_parent (klass); text_editor_signals[TEXT_CHANGED] = - g_signal_new ("text_changed", + g_signal_new ("text-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpTextEditorClass, text_changed), @@ -99,7 +99,7 @@ gimp_text_editor_class_init (GimpTextEditorClass *klass) G_TYPE_NONE, 0); text_editor_signals[DIR_CHANGED] = - g_signal_new ("dir_changed", + g_signal_new ("dir-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpTextEditorClass, dir_changed), diff --git a/app/widgets/gimpview.c b/app/widgets/gimpview.c index de8be4db34..af2a31a3de 100644 --- a/app/widgets/gimpview.c +++ b/app/widgets/gimpview.c @@ -157,7 +157,7 @@ gimp_view_class_init (GimpViewClass *klass) GDK_TYPE_MODIFIER_TYPE); view_signals[DOUBLE_CLICKED] = - g_signal_new ("double_clicked", + g_signal_new ("double-clicked", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpViewClass, double_clicked), diff --git a/app/widgets/gimpviewrenderer.c b/app/widgets/gimpviewrenderer.c index 2695ea6547..83997ace55 100644 --- a/app/widgets/gimpviewrenderer.c +++ b/app/widgets/gimpviewrenderer.c @@ -336,12 +336,12 @@ gimp_view_renderer_set_viewable (GimpViewRenderer *renderer, (gpointer *) &renderer->viewable); g_signal_connect_swapped (renderer->viewable, - "invalidate_preview", + "invalidate-preview", G_CALLBACK (gimp_view_renderer_invalidate), renderer); g_signal_connect_swapped (renderer->viewable, - "size_changed", + "size-changed", G_CALLBACK (gimp_view_renderer_size_changed), renderer); diff --git a/libgimp/gimpbrushmenu.c b/libgimp/gimpbrushmenu.c index 2a2eda2be4..be9e8c1705 100644 --- a/libgimp/gimpbrushmenu.c +++ b/libgimp/gimpbrushmenu.c @@ -159,7 +159,7 @@ gimp_brush_select_widget_new (const gchar *title, gtk_container_add (GTK_CONTAINER (frame), brush_sel->preview); gtk_widget_show (brush_sel->preview); - g_signal_connect_swapped (brush_sel->preview, "size_allocate", + g_signal_connect_swapped (brush_sel->preview, "size-allocate", G_CALLBACK (gimp_brush_select_preview_resize), brush_sel); g_signal_connect (brush_sel->preview, "event", diff --git a/libgimp/gimpgradientmenu.c b/libgimp/gimpgradientmenu.c index 344dad10e7..7a75e6c940 100644 --- a/libgimp/gimpgradientmenu.c +++ b/libgimp/gimpgradientmenu.c @@ -154,11 +154,11 @@ gimp_gradient_select_widget_new (const gchar *title, gradient_sel->preview); gtk_widget_show (gradient_sel->preview); - g_signal_connect (gradient_sel->preview, "size_allocate", + g_signal_connect (gradient_sel->preview, "size-allocate", G_CALLBACK (gimp_gradient_select_preview_size_allocate), gradient_sel); - g_signal_connect (gradient_sel->preview, "expose_event", + g_signal_connect (gradient_sel->preview, "expose-event", G_CALLBACK (gimp_gradient_select_preview_expose), gradient_sel); diff --git a/libgimp/gimppatternmenu.c b/libgimp/gimppatternmenu.c index 102ba73ab7..38b880efae 100644 --- a/libgimp/gimppatternmenu.c +++ b/libgimp/gimppatternmenu.c @@ -144,7 +144,7 @@ gimp_pattern_select_widget_new (const gchar *title, gtk_container_add (GTK_CONTAINER (frame), pattern_sel->preview); gtk_widget_show (pattern_sel->preview); - g_signal_connect_swapped (pattern_sel->preview, "size_allocate", + g_signal_connect_swapped (pattern_sel->preview, "size-allocate", G_CALLBACK (gimp_pattern_select_preview_resize), pattern_sel); g_signal_connect (pattern_sel->preview, "event", diff --git a/libgimpmodule/gimpmoduledb.c b/libgimpmodule/gimpmoduledb.c index 6f03b44bf1..5c4052b31b 100644 --- a/libgimpmodule/gimpmoduledb.c +++ b/libgimpmodule/gimpmoduledb.c @@ -128,7 +128,7 @@ gimp_module_db_class_init (GimpModuleDBClass *klass) GIMP_TYPE_MODULE); db_signals[MODULE_MODIFIED] = - g_signal_new ("module_modified", + g_signal_new ("module-modified", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpModuleDBClass, module_modified), diff --git a/libgimpwidgets/gimpbutton.c b/libgimpwidgets/gimpbutton.c index 700f914ae1..eb5486d827 100644 --- a/libgimpwidgets/gimpbutton.c +++ b/libgimpwidgets/gimpbutton.c @@ -86,7 +86,7 @@ gimp_button_class_init (GimpButtonClass *klass) parent_class = g_type_class_peek_parent (klass); button_signals[EXTENDED_CLICKED] = - g_signal_new ("extended_clicked", + g_signal_new ("extended-clicked", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpButtonClass, extended_clicked), diff --git a/libgimpwidgets/gimpchainbutton.c b/libgimpwidgets/gimpchainbutton.c index 862f1da60f..c29adcf294 100644 --- a/libgimpwidgets/gimpchainbutton.c +++ b/libgimpwidgets/gimpchainbutton.c @@ -122,10 +122,10 @@ gimp_chain_button_init (GimpChainButton *button) g_signal_connect (button->button, "clicked", G_CALLBACK (gimp_chain_button_clicked_callback), button); - g_signal_connect (button->line1, "expose_event", + g_signal_connect (button->line1, "expose-event", G_CALLBACK (gimp_chain_button_draw_lines), button); - g_signal_connect (button->line2, "expose_event", + g_signal_connect (button->line2, "expose-event", G_CALLBACK (gimp_chain_button_draw_lines), button); } diff --git a/libgimpwidgets/gimpcolorarea.c b/libgimpwidgets/gimpcolorarea.c index 3a8b3a2f8a..afc5d8302f 100644 --- a/libgimpwidgets/gimpcolorarea.c +++ b/libgimpwidgets/gimpcolorarea.c @@ -133,7 +133,7 @@ gimp_color_area_class_init (GimpColorAreaClass *klass) parent_class = g_type_class_peek_parent (klass); gimp_color_area_signals[COLOR_CHANGED] = - g_signal_new ("color_changed", + g_signal_new ("color-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpColorAreaClass, color_changed), diff --git a/libgimpwidgets/gimpcolorbutton.c b/libgimpwidgets/gimpcolorbutton.c index 4185d3eb67..636b8fc963 100644 --- a/libgimpwidgets/gimpcolorbutton.c +++ b/libgimpwidgets/gimpcolorbutton.c @@ -177,7 +177,7 @@ gimp_color_button_class_init (GimpColorButtonClass *klass) parent_class = g_type_class_peek_parent (klass); gimp_color_button_signals[COLOR_CHANGED] = - g_signal_new ("color_changed", + g_signal_new ("color-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpColorButtonClass, color_changed), @@ -268,7 +268,7 @@ gimp_color_button_init (GimpColorButton *button, "drag-mask", GDK_BUTTON2_MASK, NULL); - g_signal_connect (button->color_area, "color_changed", + g_signal_connect (button->color_area, "color-changed", G_CALLBACK (gimp_color_button_area_changed), button); @@ -510,7 +510,7 @@ gimp_color_button_clicked (GtkButton *button) gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), selection); gtk_widget_show (selection); - g_signal_connect (selection, "color_changed", + g_signal_connect (selection, "color-changed", G_CALLBACK (gimp_color_button_selection_changed), button); @@ -543,7 +543,7 @@ gimp_color_button_get_action_type (GimpColorButton *button) * This returns a button with a preview showing the color. * When the button is clicked a GtkColorSelectionDialog is opened. * If the user changes the color the new color is written into the - * array that was used to pass the initial color and the "color_changed" + * array that was used to pass the initial color and the "color-changed" * signal is emitted. * * Returns: Pointer to the new #GimpColorButton widget. @@ -662,7 +662,7 @@ gimp_color_button_get_update (GimpColorButton *button) * @button: A #GimpColorButton widget. * @continuous: The new setting of the @continuous_update property. * - * When set to #TRUE, the @button will emit the "color_changed" + * When set to #TRUE, the @button will emit the "color-changed" * continuously while the color is changed in the color selection * dialog. **/ diff --git a/libgimpwidgets/gimpcolorhexentry.c b/libgimpwidgets/gimpcolorhexentry.c index b2ab032674..6bed29cfd8 100644 --- a/libgimpwidgets/gimpcolorhexentry.c +++ b/libgimpwidgets/gimpcolorhexentry.c @@ -95,7 +95,7 @@ static void gimp_color_hex_entry_class_init (GimpColorHexEntryClass *klass) { entry_signals[COLOR_CHANGED] = - g_signal_new ("color_changed", + g_signal_new ("color-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpColorHexEntryClass, color_changed), @@ -155,14 +155,14 @@ gimp_color_hex_entry_init (GimpColorHexEntry *entry) gtk_entry_set_text (GTK_ENTRY (entry), "000000"); - g_signal_connect (entry, "focus_out_event", + g_signal_connect (entry, "focus-out-event", G_CALLBACK (gimp_color_hex_entry_events), NULL); - g_signal_connect (entry, "key_press_event", + g_signal_connect (entry, "key-press-event", G_CALLBACK (gimp_color_hex_entry_events), NULL); - g_signal_connect (completion, "match_selected", + g_signal_connect (completion, "match-selected", G_CALLBACK (gimp_color_hex_entry_matched), entry); } @@ -186,7 +186,7 @@ gimp_color_hex_entry_new (void) * @color: pointer to a #GimpRGB * * Sets the color displayed by a #GimpColorHexEntry. If the new color - * is different to the previously set color, the "color_changed" + * is different to the previously set color, the "color-changed" * signal is emitted. * * Since: GIMP 2.2 diff --git a/libgimpwidgets/gimpcolornotebook.c b/libgimpwidgets/gimpcolornotebook.c index d5bdac47aa..da3d951bca 100644 --- a/libgimpwidgets/gimpcolornotebook.c +++ b/libgimpwidgets/gimpcolornotebook.c @@ -159,7 +159,7 @@ gimp_color_notebook_init (GimpColorNotebook *notebook) gtk_notebook_popup_enable (GTK_NOTEBOOK (notebook->notebook)); - g_signal_connect (notebook->notebook, "switch_page", + g_signal_connect (notebook->notebook, "switch-page", G_CALLBACK (gimp_color_notebook_switch_page), notebook); @@ -426,10 +426,10 @@ gimp_color_notebook_add_page (GimpColorNotebook *notebook, gtk_widget_show (page); - g_signal_connect (page, "color_changed", + g_signal_connect (page, "color-changed", G_CALLBACK (gimp_color_notebook_color_changed), notebook); - g_signal_connect (page, "channel_changed", + g_signal_connect (page, "channel-changed", G_CALLBACK (gimp_color_notebook_channel_changed), notebook); diff --git a/libgimpwidgets/gimpcolorscales.c b/libgimpwidgets/gimpcolorscales.c index 252c6645a9..2c0ac76751 100644 --- a/libgimpwidgets/gimpcolorscales.c +++ b/libgimpwidgets/gimpcolorscales.c @@ -209,7 +209,7 @@ gimp_color_scales_init (GimpColorScales *scales) gimp_color_scale_set_channel (GIMP_COLOR_SCALE (scales->sliders[i]), i); - g_signal_connect (scales->slider_data[i], "value_changed", + g_signal_connect (scales->slider_data[i], "value-changed", G_CALLBACK (gimp_color_scales_scale_update), scales); } diff --git a/libgimpwidgets/gimpcolorselect.c b/libgimpwidgets/gimpcolorselect.c index aaba7f6765..8101decf4f 100644 --- a/libgimpwidgets/gimpcolorselect.c +++ b/libgimpwidgets/gimpcolorselect.c @@ -293,10 +293,10 @@ gimp_color_select_init (GimpColorSelect *select) gtk_container_add (GTK_CONTAINER (frame), select->xy_color); gtk_widget_show (select->xy_color); - g_signal_connect (select->xy_color, "size_allocate", + g_signal_connect (select->xy_color, "size-allocate", G_CALLBACK (gimp_color_select_xy_size_allocate), select); - g_signal_connect_after (select->xy_color, "expose_event", + g_signal_connect_after (select->xy_color, "expose-event", G_CALLBACK (gimp_color_select_xy_expose), select); g_signal_connect (select->xy_color, "event", @@ -321,10 +321,10 @@ gimp_color_select_init (GimpColorSelect *select) gtk_container_add (GTK_CONTAINER (frame), select->z_color); gtk_widget_show (select->z_color); - g_signal_connect (select->z_color, "size_allocate", + g_signal_connect (select->z_color, "size-allocate", G_CALLBACK (gimp_color_select_z_size_allocate), select); - g_signal_connect_after (select->z_color, "expose_event", + g_signal_connect_after (select->z_color, "expose-event", G_CALLBACK (gimp_color_select_z_expose), select); g_signal_connect (select->z_color, "event", diff --git a/libgimpwidgets/gimpcolorselection.c b/libgimpwidgets/gimpcolorselection.c index f6552268a3..0d3859e401 100644 --- a/libgimpwidgets/gimpcolorselection.c +++ b/libgimpwidgets/gimpcolorselection.c @@ -132,7 +132,7 @@ gimp_color_selection_class_init (GimpColorSelectionClass *klass) parent_class = g_type_class_peek_parent (klass); selection_signals[COLOR_CHANGED] = - g_signal_new ("color_changed", + g_signal_new ("color-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpColorSelectionClass, color_changed), @@ -190,11 +190,11 @@ gimp_color_selection_init (GimpColorSelection *selection) TRUE, TRUE, 0); gtk_widget_show (selection->notebook); - g_signal_connect (selection->notebook, "color_changed", + g_signal_connect (selection->notebook, "color-changed", G_CALLBACK (gimp_color_selection_notebook_changed), selection); g_signal_connect (GIMP_COLOR_NOTEBOOK (selection->notebook)->notebook, - "switch_page", + "switch-page", G_CALLBACK (gimp_color_selection_switch_page), selection); @@ -223,7 +223,7 @@ gimp_color_selection_init (GimpColorSelection *selection) gtk_container_add (GTK_CONTAINER (frame), selection->new_color); gtk_widget_show (selection->new_color); - g_signal_connect (selection->new_color, "color_changed", + g_signal_connect (selection->new_color, "color-changed", G_CALLBACK (gimp_color_selection_new_color_changed), selection); @@ -264,10 +264,10 @@ gimp_color_selection_init (GimpColorSelection *selection) TRUE, TRUE, 0); gtk_widget_show (selection->scales); - g_signal_connect (selection->scales, "channel_changed", + g_signal_connect (selection->scales, "channel-changed", G_CALLBACK (gimp_color_selection_channel_changed), selection); - g_signal_connect (selection->scales, "color_changed", + g_signal_connect (selection->scales, "color-changed", G_CALLBACK (gimp_color_selection_scales_changed), selection); @@ -290,7 +290,7 @@ gimp_color_selection_init (GimpColorSelection *selection) g_object_set_data (G_OBJECT (selection), "color-hex-entry", entry); - g_signal_connect (entry, "color_changed", + g_signal_connect (entry, "color-changed", G_CALLBACK (gimp_color_selection_entry_changed), selection); } @@ -451,7 +451,7 @@ gimp_color_selection_reset (GimpColorSelection *selection) * gimp_color_selection_color_changed: * @selection: A #GimpColorSelection widget. * - * Emits the "color_changed" signal. + * Emits the "color-changed" signal. **/ void gimp_color_selection_color_changed (GimpColorSelection *selection) diff --git a/libgimpwidgets/gimpcolorselector.c b/libgimpwidgets/gimpcolorselector.c index dd64c0e390..62cb5c398b 100644 --- a/libgimpwidgets/gimpcolorselector.c +++ b/libgimpwidgets/gimpcolorselector.c @@ -87,7 +87,7 @@ gimp_color_selector_class_init (GimpColorSelectorClass *klass) parent_class = g_type_class_peek_parent (klass); selector_signals[COLOR_CHANGED] = - g_signal_new ("color_changed", + g_signal_new ("color-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpColorSelectorClass, color_changed), @@ -98,7 +98,7 @@ gimp_color_selector_class_init (GimpColorSelectorClass *klass) G_TYPE_POINTER); selector_signals[CHANNEL_CHANGED] = - g_signal_new ("channel_changed", + g_signal_new ("channel-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpColorSelectorClass, channel_changed), diff --git a/libgimpwidgets/gimpdialog.c b/libgimpwidgets/gimpdialog.c index caf12af7ef..bb25982973 100644 --- a/libgimpwidgets/gimpdialog.c +++ b/libgimpwidgets/gimpdialog.c @@ -515,7 +515,7 @@ gimp_dialog_run (GimpDialog *dialog) unmap_handler = g_signal_connect (dialog, "unmap", G_CALLBACK (run_unmap_handler), &ri); - delete_handler = g_signal_connect (dialog, "delete_event", + delete_handler = g_signal_connect (dialog, "delete-event", G_CALLBACK (run_delete_handler), &ri); destroy_handler = g_signal_connect (dialog, "destroy", diff --git a/libgimpwidgets/gimpfileentry.c b/libgimpwidgets/gimpfileentry.c index f6282b803c..e02c2d0a45 100644 --- a/libgimpwidgets/gimpfileentry.c +++ b/libgimpwidgets/gimpfileentry.c @@ -101,7 +101,7 @@ gimp_file_entry_class_init (GimpFileEntryClass *klass) * This signal is emitted whenever the user changes the filename. **/ gimp_file_entry_signals[FILENAME_CHANGED] = - g_signal_new ("filename_changed", + g_signal_new ("filename-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpFileEntryClass, filename_changed), @@ -140,7 +140,7 @@ gimp_file_entry_init (GimpFileEntry *entry) g_signal_connect (entry->entry, "activate", G_CALLBACK (gimp_file_entry_entry_activate), entry); - g_signal_connect (entry->entry, "focus_out_event", + g_signal_connect (entry->entry, "focus-out-event", G_CALLBACK (gimp_file_entry_entry_focus_out), entry); } @@ -378,7 +378,7 @@ gimp_file_entry_browse_clicked (GtkWidget *widget, g_signal_connect (chooser, "response", G_CALLBACK (gimp_file_entry_chooser_response), entry); - g_signal_connect (chooser, "delete_event", + g_signal_connect (chooser, "delete-event", G_CALLBACK (gtk_true), NULL); diff --git a/libgimpwidgets/gimphelpui.c b/libgimpwidgets/gimphelpui.c index 8f56a3137f..8a3d9807b7 100644 --- a/libgimpwidgets/gimphelpui.c +++ b/libgimpwidgets/gimphelpui.c @@ -179,7 +179,7 @@ gimp_help_connect (GtkWidget *widget, g_object_set_data (G_OBJECT (widget), "gimp-help-data", help_data); - g_signal_connect (widget, "show_help", + g_signal_connect (widget, "show-help", G_CALLBACK (gimp_help_callback), help_func); @@ -379,7 +379,7 @@ gimp_context_help_idle_start (gpointer widget) gtk_grab_add (invisible); - g_signal_connect (invisible, "button_press_event", + g_signal_connect (invisible, "button-press-event", G_CALLBACK (gimp_context_help_button_press), NULL); } diff --git a/libgimpwidgets/gimpmemsizeentry.c b/libgimpwidgets/gimpmemsizeentry.c index 7e7ee8899a..ff86e757b6 100644 --- a/libgimpwidgets/gimpmemsizeentry.c +++ b/libgimpwidgets/gimpmemsizeentry.c @@ -91,7 +91,7 @@ gimp_memsize_entry_class_init (GimpMemsizeEntryClass *klass) object_class->finalize = gimp_memsize_entry_finalize; gimp_memsize_entry_signals[VALUE_CHANGED] = - g_signal_new ("value_changed", + g_signal_new ("value-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpMemsizeEntryClass, value_changed), @@ -225,7 +225,7 @@ gimp_memsize_entry_new (guint64 value, gtk_box_pack_start (GTK_BOX (entry), entry->spinbutton, FALSE, FALSE, 0); gtk_widget_show (entry->spinbutton); - g_signal_connect (entry->adjustment, "value_changed", + g_signal_connect (entry->adjustment, "value-changed", G_CALLBACK (gimp_memsize_entry_adj_callback), entry); diff --git a/libgimpwidgets/gimpoffsetarea.c b/libgimpwidgets/gimpoffsetarea.c index 52888e04be..f5150581aa 100644 --- a/libgimpwidgets/gimpoffsetarea.c +++ b/libgimpwidgets/gimpoffsetarea.c @@ -93,7 +93,7 @@ gimp_offset_area_class_init (GimpOffsetAreaClass *klass) parent_class = g_type_class_peek_parent (klass); gimp_offset_area_signals[OFFSETS_CHANGED] = - g_signal_new ("offsets_changed", + g_signal_new ("offsets-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpOffsetAreaClass, offsets_changed), @@ -185,7 +185,7 @@ gimp_offset_area_set_pixbuf (GimpOffsetArea *area, * @height: the new height * * Sets the size of the image/drawable displayed by the #GimpOffsetArea. - * If the offsets change as a result of this change, the %offsets_changed + * If the offsets change as a result of this change, the "offsets-changed" * signal is emitted. **/ void @@ -235,7 +235,7 @@ gimp_offset_area_set_size (GimpOffsetArea *area, * @offset_y: the Y offset * * Sets the offsets of the image/drawable displayed by the #GimpOffsetArea. - * It does not emit the %offsets_changed signal. + * It does not emit the "offsets-changed" signal. **/ void gimp_offset_area_set_offsets (GimpOffsetArea *area, diff --git a/libgimpwidgets/gimppatheditor.c b/libgimpwidgets/gimppatheditor.c index 3d325e5e5c..2e054f72e5 100644 --- a/libgimpwidgets/gimppatheditor.c +++ b/libgimpwidgets/gimppatheditor.c @@ -115,7 +115,7 @@ gimp_path_editor_class_init (GimpPathEditorClass *klass) * or reorders an element of the search path. **/ gimp_path_editor_signals[PATH_CHANGED] = - g_signal_new ("path_changed", + g_signal_new ("path-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpPathEditorClass, path_changed), @@ -131,7 +131,7 @@ gimp_path_editor_class_init (GimpPathEditorClass *klass) * gimp_path_editor_set_dir_writable(). **/ gimp_path_editor_signals[WRITABLE_CHANGED] = - g_signal_new ("writable_changed", + g_signal_new ("writable-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpPathEditorClass, writable_changed), @@ -294,7 +294,7 @@ gimp_path_editor_new (const gchar *filesel_title, TRUE, TRUE, 0); gtk_widget_show (editor->file_entry); - g_signal_connect (editor->file_entry, "filename_changed", + g_signal_connect (editor->file_entry, "filename-changed", G_CALLBACK (gimp_path_editor_file_entry_changed), editor); diff --git a/libgimpwidgets/gimppickbutton.c b/libgimpwidgets/gimppickbutton.c index 3d0a6f7630..ac6ce23d6d 100644 --- a/libgimpwidgets/gimppickbutton.c +++ b/libgimpwidgets/gimppickbutton.c @@ -108,7 +108,7 @@ gimp_pick_button_class_init (GimpPickButtonClass* klass) parent_class = g_type_class_peek_parent (klass); pick_button_signals[COLOR_PICKED] = - g_signal_new ("color_picked", + g_signal_new ("color-picked", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpPickButtonClass, color_picked), @@ -277,10 +277,10 @@ gimp_pick_button_clicked (GtkButton *gtk_button) gtk_grab_add (widget); - g_signal_connect (widget, "button_press_event", + g_signal_connect (widget, "button-press-event", G_CALLBACK (gimp_pick_button_mouse_press), button); - g_signal_connect (widget, "key_press_event", + g_signal_connect (widget, "key-press-event", G_CALLBACK (gimp_pick_button_key_press), button); } @@ -292,10 +292,10 @@ gimp_pick_button_mouse_press (GtkWidget *invisible, { if (event->type == GDK_BUTTON_PRESS && event->button == 1) { - g_signal_connect (invisible, "motion_notify_event", + g_signal_connect (invisible, "motion-notify-event", G_CALLBACK (gimp_pick_button_mouse_motion), button); - g_signal_connect (invisible, "button_release_event", + g_signal_connect (invisible, "button-release-event", G_CALLBACK (gimp_pick_button_mouse_release), button); diff --git a/libgimpwidgets/gimppreview.c b/libgimpwidgets/gimppreview.c index c34bcd771f..bdf1394feb 100644 --- a/libgimpwidgets/gimppreview.c +++ b/libgimpwidgets/gimppreview.c @@ -232,7 +232,7 @@ gimp_preview_init (GimpPreview *preview) G_CALLBACK (gimp_preview_area_unrealize), preview); - g_signal_connect (preview->area, "size_allocate", + g_signal_connect (preview->area, "size-allocate", G_CALLBACK (gimp_preview_area_size_allocate), preview); diff --git a/libgimpwidgets/gimppropwidgets.c b/libgimpwidgets/gimppropwidgets.c index 518b3bb2e5..f9e32344d3 100644 --- a/libgimpwidgets/gimppropwidgets.c +++ b/libgimpwidgets/gimppropwidgets.c @@ -1013,7 +1013,7 @@ gimp_prop_spin_button_new (GObject *config, set_param_spec (G_OBJECT (adjustment), spinbutton, param_spec); - g_signal_connect (adjustment, "value_changed", + g_signal_connect (adjustment, "value-changed", G_CALLBACK (gimp_prop_adjustment_callback), config); @@ -1103,7 +1103,7 @@ gimp_prop_scale_entry_new (GObject *config, set_param_spec (G_OBJECT (adjustment), NULL, param_spec); - g_signal_connect (adjustment, "value_changed", + g_signal_connect (adjustment, "value-changed", G_CALLBACK (gimp_prop_adjustment_callback), config); @@ -1175,7 +1175,7 @@ gimp_prop_opacity_entry_new (GObject *config, g_object_set_data (G_OBJECT (adjustment), "opacity-scale", GINT_TO_POINTER (TRUE)); - g_signal_connect (adjustment, "value_changed", + g_signal_connect (adjustment, "value-changed", G_CALLBACK (gimp_prop_adjustment_callback), config); @@ -1393,7 +1393,7 @@ gimp_prop_memsize_entry_new (GObject *config, GIMP_MEMSIZE_ENTRY (entry)->spinbutton, param_spec); - g_signal_connect (entry, "value_changed", + g_signal_connect (entry, "value-changed", G_CALLBACK (gimp_prop_memsize_callback), config); @@ -1838,7 +1838,7 @@ gimp_prop_file_entry_new (GObject *config, GIMP_FILE_ENTRY (entry)->entry, param_spec); - g_signal_connect (entry, "filename_changed", + g_signal_connect (entry, "filename-changed", G_CALLBACK (gimp_prop_file_entry_callback), config); @@ -2114,7 +2114,7 @@ gimp_prop_path_editor_new (GObject *config, g_object_set_data (G_OBJECT (editor), "gimp-config-param-spec-path", path_param_spec); - g_signal_connect (editor, "path_changed", + g_signal_connect (editor, "path-changed", G_CALLBACK (gimp_prop_path_editor_path_callback), config); @@ -2127,7 +2127,7 @@ gimp_prop_path_editor_new (GObject *config, g_object_set_data (G_OBJECT (editor), "gimp-config-param-spec-writable", writable_param_spec); - g_signal_connect (editor, "writable_changed", + g_signal_connect (editor, "writable-changed", G_CALLBACK (gimp_prop_path_editor_writable_callback), config); @@ -2396,7 +2396,7 @@ gimp_prop_size_entry_new (GObject *config, g_object_set_data (G_OBJECT (sizeentry), "gimp-config-param-spec", param_spec); - g_signal_connect (sizeentry, "value_changed", + g_signal_connect (sizeentry, "value-changed", G_CALLBACK (gimp_prop_size_entry_callback), config); @@ -2409,7 +2409,7 @@ gimp_prop_size_entry_new (GObject *config, g_object_set_data (G_OBJECT (sizeentry), "gimp-config-param-spec-unit", unit_param_spec); - g_signal_connect (sizeentry, "unit_changed", + g_signal_connect (sizeentry, "unit-changed", G_CALLBACK (gimp_prop_size_entry_callback), config); @@ -2742,10 +2742,10 @@ gimp_prop_coordinates_connect (GObject *config, g_object_set_data (G_OBJECT (sizeentry), "chainbutton", chainbutton); } - g_signal_connect (sizeentry, "value_changed", + g_signal_connect (sizeentry, "value-changed", G_CALLBACK (gimp_prop_coordinates_callback), config); - g_signal_connect (sizeentry, "refval_changed", + g_signal_connect (sizeentry, "refval-changed", G_CALLBACK (gimp_prop_coordinates_callback), config); @@ -2767,7 +2767,7 @@ gimp_prop_coordinates_connect (GObject *config, old_unit_value, (GDestroyNotify) g_free); - g_signal_connect (sizeentry, "unit_changed", + g_signal_connect (sizeentry, "unit-changed", G_CALLBACK (gimp_prop_coordinates_callback), config); @@ -3042,7 +3042,7 @@ gimp_prop_color_area_new (GObject *config, set_param_spec (G_OBJECT (area), area, param_spec); - g_signal_connect (area, "color_changed", + g_signal_connect (area, "color-changed", G_CALLBACK (gimp_prop_color_area_callback), config); @@ -3162,7 +3162,7 @@ gimp_prop_unit_menu_new (GObject *config, set_param_spec (G_OBJECT (menu), menu, param_spec); - g_signal_connect (menu, "unit_changed", + g_signal_connect (menu, "unit-changed", G_CALLBACK (gimp_prop_unit_menu_callback), config); diff --git a/libgimpwidgets/gimpscrolledpreview.c b/libgimpwidgets/gimpscrolledpreview.c index f8d34ad2c4..b411ac1d47 100644 --- a/libgimpwidgets/gimpscrolledpreview.c +++ b/libgimpwidgets/gimpscrolledpreview.c @@ -169,7 +169,7 @@ gimp_scrolled_preview_init (GimpScrolledPreview *preview) G_CALLBACK (gimp_scrolled_preview_area_unrealize), preview); - g_signal_connect (GIMP_PREVIEW (preview)->area, "size_allocate", + g_signal_connect (GIMP_PREVIEW (preview)->area, "size-allocate", G_CALLBACK (gimp_scrolled_preview_area_size_allocate), preview); @@ -183,7 +183,7 @@ gimp_scrolled_preview_init (GimpScrolledPreview *preview) gtk_container_add (GTK_CONTAINER (preview->nav_icon), image); gtk_widget_show (image); - g_signal_connect (preview->nav_icon, "button_press_event", + g_signal_connect (preview->nav_icon, "button-press-event", G_CALLBACK (gimp_scrolled_preview_nav_button_press), preview); } diff --git a/libgimpwidgets/gimpsizeentry.c b/libgimpwidgets/gimpsizeentry.c index bc727ba0a7..b441f7548e 100644 --- a/libgimpwidgets/gimpsizeentry.c +++ b/libgimpwidgets/gimpsizeentry.c @@ -133,7 +133,7 @@ gimp_size_entry_class_init (GimpSizeEntryClass *klass) parent_class = g_type_class_peek_parent (klass); gimp_size_entry_signals[VALUE_CHANGED] = - g_signal_new ("value_changed", + g_signal_new ("value-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpSizeEntryClass, value_changed), @@ -142,7 +142,7 @@ gimp_size_entry_class_init (GimpSizeEntryClass *klass) G_TYPE_NONE, 0); gimp_size_entry_signals[REFVAL_CHANGED] = - g_signal_new ("refval_changed", + g_signal_new ("refval-changed", G_TYPE_FROM_CLASS (klass), G_SIGNAL_RUN_FIRST, G_STRUCT_OFFSET (GimpSizeEntryClass, refval_changed), @@ -151,7 +151,7 @@ gimp_size_entry_class_init (GimpSizeEntryClass *klass) G_TYPE_NONE, 0); gimp_size_entry_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 (GimpSizeEntryClass, unit_changed), @@ -335,7 +335,7 @@ gimp_size_entry_new (gint number_of_fields, gtk_table_attach_defaults (GTK_TABLE (gse), gsef->value_spinbutton, i+1, i+2, gse->show_refval+1, gse->show_refval+2); - g_signal_connect (gsef->value_adjustment, "value_changed", + g_signal_connect (gsef->value_adjustment, "value-changed", G_CALLBACK (gimp_size_entry_value_callback), gsef); @@ -354,7 +354,7 @@ gimp_size_entry_new (gint number_of_fields, gtk_table_attach_defaults (GTK_TABLE (gse), gsef->refval_spinbutton, i + 1, i + 2, 1, 2); g_signal_connect (gsef->refval_adjustment, - "value_changed", + "value-changed", G_CALLBACK (gimp_size_entry_refval_callback), gsef); @@ -374,7 +374,7 @@ gimp_size_entry_new (gint number_of_fields, i+2, i+3, gse->show_refval+1, gse->show_refval+2, GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0); - g_signal_connect (gse->unitmenu, "unit_changed", + g_signal_connect (gse->unitmenu, "unit-changed", G_CALLBACK (gimp_size_entry_unit_callback), gse); gtk_widget_show (gse->unitmenu); @@ -434,7 +434,7 @@ gimp_size_entry_add_field (GimpSizeEntry *gse, gsef->value_adjustment = GTK_OBJECT (gtk_spin_button_get_adjustment (value_spinbutton)); gsef->value_spinbutton = GTK_WIDGET (value_spinbutton); - g_signal_connect (gsef->value_adjustment, "value_changed", + g_signal_connect (gsef->value_adjustment, "value-changed", G_CALLBACK (gimp_size_entry_value_callback), gsef); @@ -443,7 +443,7 @@ gimp_size_entry_add_field (GimpSizeEntry *gse, gsef->refval_adjustment = GTK_OBJECT (gtk_spin_button_get_adjustment (refval_spinbutton)); gsef->refval_spinbutton = GTK_WIDGET (refval_spinbutton); - g_signal_connect (gsef->refval_adjustment, "value_changed", + g_signal_connect (gsef->refval_adjustment, "value-changed", G_CALLBACK (gimp_size_entry_refval_callback), gsef); } diff --git a/libgimpwidgets/gimpunitmenu.c b/libgimpwidgets/gimpunitmenu.c index 7cb9c3c23f..1139e3db55 100644 --- a/libgimpwidgets/gimpunitmenu.c +++ b/libgimpwidgets/gimpunitmenu.c @@ -109,7 +109,7 @@ gimp_unit_menu_class_init (GimpUnitMenuClass *klass) * the #GimpUnitMenu. **/ gimp_unit_menu_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 (GimpUnitMenuClass, unit_changed), @@ -685,7 +685,7 @@ gimp_unit_menu_create_selection (GimpUnitMenu *menu) gtk_container_add (GTK_CONTAINER (scrolled_win), menu->tv); - g_signal_connect (menu->tv, "row_activated", + g_signal_connect (menu->tv, "row-activated", G_CALLBACK (gimp_unit_menu_selection_row_activated_callback), menu); diff --git a/libgimpwidgets/gimpwidgets.c b/libgimpwidgets/gimpwidgets.c index 92bf997735..ff66ca2e8c 100644 --- a/libgimpwidgets/gimpwidgets.c +++ b/libgimpwidgets/gimpwidgets.c @@ -577,12 +577,12 @@ gimp_scale_entry_new_internal (gboolean color_scale, 1.0, digits); g_signal_connect - (G_OBJECT (constrained_adj), "value_changed", + (G_OBJECT (constrained_adj), "value-changed", G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback), adjustment); g_signal_connect - (G_OBJECT (adjustment), "value_changed", + (G_OBJECT (adjustment), "value-changed", G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback), constrained_adj); @@ -843,11 +843,11 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment, scale_adj->step_increment = log_step_increment; scale_adj->page_increment = log_page_increment; - g_signal_connect (scale_adj, "value_changed", + g_signal_connect (scale_adj, "value-changed", G_CALLBACK (gimp_scale_entry_exp_adjustment_callback), adj); - g_signal_connect (adj, "value_changed", + g_signal_connect (adj, "value-changed", G_CALLBACK (gimp_scale_entry_log_adjustment_callback), scale_adj); @@ -883,11 +883,11 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment, scale_adj->step_increment = adj->step_increment; scale_adj->page_increment = adj->page_increment; - g_signal_connect (scale_adj, "value_changed", + g_signal_connect (scale_adj, "value-changed", G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback), adj); - g_signal_connect (adj, "value_changed", + g_signal_connect (adj, "value-changed", G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback), scale_adj); @@ -995,7 +995,7 @@ gimp_random_seed_new (guint *seed, gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0); gtk_widget_show (spinbutton); - g_signal_connect (adj, "value_changed", + g_signal_connect (adj, "value-changed", G_CALLBACK (gimp_uint_adjustment_update), seed); @@ -1082,7 +1082,7 @@ gimp_coordinates_callback (GtkWidget *widget, gcd->last_x = new_x; new_y = (new_x * gcd->orig_y) / gcd->orig_x; - g_signal_stop_emission_by_name (widget, "value_changed"); + g_signal_stop_emission_by_name (widget, "value-changed"); gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (widget), 1, new_y); gcd->last_y @@ -1093,7 +1093,7 @@ gimp_coordinates_callback (GtkWidget *widget, gcd->last_y = new_y; new_x = (new_y * gcd->orig_x) / gcd->orig_y; - g_signal_stop_emission_by_name (widget, "value_changed"); + g_signal_stop_emission_by_name (widget, "value-changed"); gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (widget), 0, new_x); gcd->last_x @@ -1107,7 +1107,7 @@ gimp_coordinates_callback (GtkWidget *widget, { new_y = new_x; - g_signal_stop_emission_by_name (widget, "value_changed"); + g_signal_stop_emission_by_name (widget, "value-changed"); gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (widget), 1, new_x); gcd->last_y = gcd->last_x = gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (widget), 1); @@ -1116,7 +1116,7 @@ gimp_coordinates_callback (GtkWidget *widget, { new_x = new_y; - g_signal_stop_emission_by_name (widget, "value_changed"); + g_signal_stop_emission_by_name (widget, "value-changed"); gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (widget), 0, new_y); gcd->last_x = gcd->last_y = gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (widget), 0); @@ -1273,7 +1273,7 @@ gimp_coordinates_new (GimpUnit unit, G_CALLBACK (g_free), gcd); - g_signal_connect (sizeentry, "value_changed", + g_signal_connect (sizeentry, "value-changed", G_CALLBACK (gimp_coordinates_callback), gcd);