mirror of https://github.com/GNOME/gimp.git
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).
This commit is contained in:
parent
9a5cd29c69
commit
3ca90a182e
|
@ -1,3 +1,8 @@
|
||||||
|
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>
|
2005-05-27 Sven Neumann <sven@gimp.org>
|
||||||
|
|
||||||
* app/widgets/gimphistogrameditor.[ch]: connect to "name-changed"
|
* 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);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gimp_context_signals[IMAGE_CHANGED] =
|
gimp_context_signals[IMAGE_CHANGED] =
|
||||||
g_signal_new ("image_changed",
|
g_signal_new ("image-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, image_changed),
|
G_STRUCT_OFFSET (GimpContextClass, image_changed),
|
||||||
|
@ -386,7 +386,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_IMAGE);
|
GIMP_TYPE_IMAGE);
|
||||||
|
|
||||||
gimp_context_signals[DISPLAY_CHANGED] =
|
gimp_context_signals[DISPLAY_CHANGED] =
|
||||||
g_signal_new ("display_changed",
|
g_signal_new ("display-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, display_changed),
|
G_STRUCT_OFFSET (GimpContextClass, display_changed),
|
||||||
|
@ -396,7 +396,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_OBJECT);
|
GIMP_TYPE_OBJECT);
|
||||||
|
|
||||||
gimp_context_signals[TOOL_CHANGED] =
|
gimp_context_signals[TOOL_CHANGED] =
|
||||||
g_signal_new ("tool_changed",
|
g_signal_new ("tool-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, tool_changed),
|
G_STRUCT_OFFSET (GimpContextClass, tool_changed),
|
||||||
|
@ -406,7 +406,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_TOOL_INFO);
|
GIMP_TYPE_TOOL_INFO);
|
||||||
|
|
||||||
gimp_context_signals[FOREGROUND_CHANGED] =
|
gimp_context_signals[FOREGROUND_CHANGED] =
|
||||||
g_signal_new ("foreground_changed",
|
g_signal_new ("foreground-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, foreground_changed),
|
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_TYPE_RGB | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||||
|
|
||||||
gimp_context_signals[BACKGROUND_CHANGED] =
|
gimp_context_signals[BACKGROUND_CHANGED] =
|
||||||
g_signal_new ("background_changed",
|
g_signal_new ("background-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, background_changed),
|
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_TYPE_RGB | G_SIGNAL_TYPE_STATIC_SCOPE);
|
||||||
|
|
||||||
gimp_context_signals[OPACITY_CHANGED] =
|
gimp_context_signals[OPACITY_CHANGED] =
|
||||||
g_signal_new ("opacity_changed",
|
g_signal_new ("opacity-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, opacity_changed),
|
G_STRUCT_OFFSET (GimpContextClass, opacity_changed),
|
||||||
|
@ -436,7 +436,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
G_TYPE_DOUBLE);
|
G_TYPE_DOUBLE);
|
||||||
|
|
||||||
gimp_context_signals[PAINT_MODE_CHANGED] =
|
gimp_context_signals[PAINT_MODE_CHANGED] =
|
||||||
g_signal_new ("paint_mode_changed",
|
g_signal_new ("paint-mode-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, paint_mode_changed),
|
G_STRUCT_OFFSET (GimpContextClass, paint_mode_changed),
|
||||||
|
@ -446,7 +446,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_LAYER_MODE_EFFECTS);
|
GIMP_TYPE_LAYER_MODE_EFFECTS);
|
||||||
|
|
||||||
gimp_context_signals[BRUSH_CHANGED] =
|
gimp_context_signals[BRUSH_CHANGED] =
|
||||||
g_signal_new ("brush_changed",
|
g_signal_new ("brush-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, brush_changed),
|
G_STRUCT_OFFSET (GimpContextClass, brush_changed),
|
||||||
|
@ -456,7 +456,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_BRUSH);
|
GIMP_TYPE_BRUSH);
|
||||||
|
|
||||||
gimp_context_signals[PATTERN_CHANGED] =
|
gimp_context_signals[PATTERN_CHANGED] =
|
||||||
g_signal_new ("pattern_changed",
|
g_signal_new ("pattern-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, pattern_changed),
|
G_STRUCT_OFFSET (GimpContextClass, pattern_changed),
|
||||||
|
@ -466,7 +466,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_PATTERN);
|
GIMP_TYPE_PATTERN);
|
||||||
|
|
||||||
gimp_context_signals[GRADIENT_CHANGED] =
|
gimp_context_signals[GRADIENT_CHANGED] =
|
||||||
g_signal_new ("gradient_changed",
|
g_signal_new ("gradient-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, gradient_changed),
|
G_STRUCT_OFFSET (GimpContextClass, gradient_changed),
|
||||||
|
@ -476,7 +476,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_GRADIENT);
|
GIMP_TYPE_GRADIENT);
|
||||||
|
|
||||||
gimp_context_signals[PALETTE_CHANGED] =
|
gimp_context_signals[PALETTE_CHANGED] =
|
||||||
g_signal_new ("palette_changed",
|
g_signal_new ("palette-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, palette_changed),
|
G_STRUCT_OFFSET (GimpContextClass, palette_changed),
|
||||||
|
@ -486,7 +486,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_PALETTE);
|
GIMP_TYPE_PALETTE);
|
||||||
|
|
||||||
gimp_context_signals[FONT_CHANGED] =
|
gimp_context_signals[FONT_CHANGED] =
|
||||||
g_signal_new ("font_changed",
|
g_signal_new ("font-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, font_changed),
|
G_STRUCT_OFFSET (GimpContextClass, font_changed),
|
||||||
|
@ -496,7 +496,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_FONT);
|
GIMP_TYPE_FONT);
|
||||||
|
|
||||||
gimp_context_signals[BUFFER_CHANGED] =
|
gimp_context_signals[BUFFER_CHANGED] =
|
||||||
g_signal_new ("buffer_changed",
|
g_signal_new ("buffer-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, buffer_changed),
|
G_STRUCT_OFFSET (GimpContextClass, buffer_changed),
|
||||||
|
@ -506,7 +506,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_BUFFER);
|
GIMP_TYPE_BUFFER);
|
||||||
|
|
||||||
gimp_context_signals[IMAGEFILE_CHANGED] =
|
gimp_context_signals[IMAGEFILE_CHANGED] =
|
||||||
g_signal_new ("imagefile_changed",
|
g_signal_new ("imagefile-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, imagefile_changed),
|
G_STRUCT_OFFSET (GimpContextClass, imagefile_changed),
|
||||||
|
@ -516,7 +516,7 @@ gimp_context_class_init (GimpContextClass *klass)
|
||||||
GIMP_TYPE_IMAGEFILE);
|
GIMP_TYPE_IMAGEFILE);
|
||||||
|
|
||||||
gimp_context_signals[TEMPLATE_CHANGED] =
|
gimp_context_signals[TEMPLATE_CHANGED] =
|
||||||
g_signal_new ("template_changed",
|
g_signal_new ("template-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContextClass, template_changed),
|
G_STRUCT_OFFSET (GimpContextClass, template_changed),
|
||||||
|
|
|
@ -243,7 +243,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gimp_image_signals[MODE_CHANGED] =
|
gimp_image_signals[MODE_CHANGED] =
|
||||||
g_signal_new ("mode_changed",
|
g_signal_new ("mode-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, mode_changed),
|
G_STRUCT_OFFSET (GimpImageClass, mode_changed),
|
||||||
|
@ -252,7 +252,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[ALPHA_CHANGED] =
|
gimp_image_signals[ALPHA_CHANGED] =
|
||||||
g_signal_new ("alpha_changed",
|
g_signal_new ("alpha-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, alpha_changed),
|
G_STRUCT_OFFSET (GimpImageClass, alpha_changed),
|
||||||
|
@ -261,7 +261,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[FLOATING_SELECTION_CHANGED] =
|
gimp_image_signals[FLOATING_SELECTION_CHANGED] =
|
||||||
g_signal_new ("floating_selection_changed",
|
g_signal_new ("floating-selection-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, floating_selection_changed),
|
G_STRUCT_OFFSET (GimpImageClass, floating_selection_changed),
|
||||||
|
@ -270,7 +270,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[ACTIVE_LAYER_CHANGED] =
|
gimp_image_signals[ACTIVE_LAYER_CHANGED] =
|
||||||
g_signal_new ("active_layer_changed",
|
g_signal_new ("active-layer-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, active_layer_changed),
|
G_STRUCT_OFFSET (GimpImageClass, active_layer_changed),
|
||||||
|
@ -279,7 +279,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[ACTIVE_CHANNEL_CHANGED] =
|
gimp_image_signals[ACTIVE_CHANNEL_CHANGED] =
|
||||||
g_signal_new ("active_channel_changed",
|
g_signal_new ("active-channel-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, active_channel_changed),
|
G_STRUCT_OFFSET (GimpImageClass, active_channel_changed),
|
||||||
|
@ -288,7 +288,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[ACTIVE_VECTORS_CHANGED] =
|
gimp_image_signals[ACTIVE_VECTORS_CHANGED] =
|
||||||
g_signal_new ("active_vectors_changed",
|
g_signal_new ("active-vectors-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, active_vectors_changed),
|
G_STRUCT_OFFSET (GimpImageClass, active_vectors_changed),
|
||||||
|
@ -297,7 +297,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[COMPONENT_VISIBILITY_CHANGED] =
|
gimp_image_signals[COMPONENT_VISIBILITY_CHANGED] =
|
||||||
g_signal_new ("component_visibility_changed",
|
g_signal_new ("component-visibility-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, component_visibility_changed),
|
G_STRUCT_OFFSET (GimpImageClass, component_visibility_changed),
|
||||||
|
@ -307,7 +307,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
GIMP_TYPE_CHANNEL_TYPE);
|
GIMP_TYPE_CHANNEL_TYPE);
|
||||||
|
|
||||||
gimp_image_signals[COMPONENT_ACTIVE_CHANGED] =
|
gimp_image_signals[COMPONENT_ACTIVE_CHANGED] =
|
||||||
g_signal_new ("component_active_changed",
|
g_signal_new ("component-active-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, component_active_changed),
|
G_STRUCT_OFFSET (GimpImageClass, component_active_changed),
|
||||||
|
@ -317,7 +317,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
GIMP_TYPE_CHANNEL_TYPE);
|
GIMP_TYPE_CHANNEL_TYPE);
|
||||||
|
|
||||||
gimp_image_signals[MASK_CHANGED] =
|
gimp_image_signals[MASK_CHANGED] =
|
||||||
g_signal_new ("mask_changed",
|
g_signal_new ("mask-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, mask_changed),
|
G_STRUCT_OFFSET (GimpImageClass, mask_changed),
|
||||||
|
@ -326,7 +326,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[RESOLUTION_CHANGED] =
|
gimp_image_signals[RESOLUTION_CHANGED] =
|
||||||
g_signal_new ("resolution_changed",
|
g_signal_new ("resolution-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, resolution_changed),
|
G_STRUCT_OFFSET (GimpImageClass, resolution_changed),
|
||||||
|
@ -335,7 +335,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[UNIT_CHANGED] =
|
gimp_image_signals[UNIT_CHANGED] =
|
||||||
g_signal_new ("unit_changed",
|
g_signal_new ("unit-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, unit_changed),
|
G_STRUCT_OFFSET (GimpImageClass, unit_changed),
|
||||||
|
@ -344,7 +344,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[QMASK_CHANGED] =
|
gimp_image_signals[QMASK_CHANGED] =
|
||||||
g_signal_new ("qmask_changed",
|
g_signal_new ("qmask-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, qmask_changed),
|
G_STRUCT_OFFSET (GimpImageClass, qmask_changed),
|
||||||
|
@ -353,7 +353,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_image_signals[SELECTION_CONTROL] =
|
gimp_image_signals[SELECTION_CONTROL] =
|
||||||
g_signal_new ("selection_control",
|
g_signal_new ("selection-control",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, selection_control),
|
G_STRUCT_OFFSET (GimpImageClass, selection_control),
|
||||||
|
@ -396,7 +396,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_INT);
|
G_TYPE_INT);
|
||||||
|
|
||||||
gimp_image_signals[UPDATE_GUIDE] =
|
gimp_image_signals[UPDATE_GUIDE] =
|
||||||
g_signal_new ("update_guide",
|
g_signal_new ("update-guide",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, update_guide),
|
G_STRUCT_OFFSET (GimpImageClass, update_guide),
|
||||||
|
@ -406,7 +406,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_POINTER);
|
G_TYPE_POINTER);
|
||||||
|
|
||||||
gimp_image_signals[UPDATE_SAMPLE_POINT] =
|
gimp_image_signals[UPDATE_SAMPLE_POINT] =
|
||||||
g_signal_new ("update_sample_point",
|
g_signal_new ("update-sample-point",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, update_sample_point),
|
G_STRUCT_OFFSET (GimpImageClass, update_sample_point),
|
||||||
|
@ -416,7 +416,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_POINTER);
|
G_TYPE_POINTER);
|
||||||
|
|
||||||
gimp_image_signals[SAMPLE_POINT_ADDED] =
|
gimp_image_signals[SAMPLE_POINT_ADDED] =
|
||||||
g_signal_new ("sample_point_added",
|
g_signal_new ("sample-point-added",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, sample_point_added),
|
G_STRUCT_OFFSET (GimpImageClass, sample_point_added),
|
||||||
|
@ -426,7 +426,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_POINTER);
|
G_TYPE_POINTER);
|
||||||
|
|
||||||
gimp_image_signals[SAMPLE_POINT_REMOVED] =
|
gimp_image_signals[SAMPLE_POINT_REMOVED] =
|
||||||
g_signal_new ("sample_point_removed",
|
g_signal_new ("sample-point-removed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, sample_point_removed),
|
G_STRUCT_OFFSET (GimpImageClass, sample_point_removed),
|
||||||
|
@ -436,7 +436,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_POINTER);
|
G_TYPE_POINTER);
|
||||||
|
|
||||||
gimp_image_signals[COLORMAP_CHANGED] =
|
gimp_image_signals[COLORMAP_CHANGED] =
|
||||||
g_signal_new ("colormap_changed",
|
g_signal_new ("colormap-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, colormap_changed),
|
G_STRUCT_OFFSET (GimpImageClass, colormap_changed),
|
||||||
|
@ -446,7 +446,7 @@ gimp_image_class_init (GimpImageClass *klass)
|
||||||
G_TYPE_INT);
|
G_TYPE_INT);
|
||||||
|
|
||||||
gimp_image_signals[UNDO_EVENT] =
|
gimp_image_signals[UNDO_EVENT] =
|
||||||
g_signal_new ("undo_event",
|
g_signal_new ("undo-event",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImageClass, undo_event),
|
G_STRUCT_OFFSET (GimpImageClass, undo_event),
|
||||||
|
@ -584,11 +584,11 @@ gimp_image_init (GimpImage *gimage)
|
||||||
G_CALLBACK (gimp_image_drawable_update),
|
G_CALLBACK (gimp_image_drawable_update),
|
||||||
gimage);
|
gimage);
|
||||||
gimage->layer_visible_handler =
|
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),
|
G_CALLBACK (gimp_image_drawable_visibility),
|
||||||
gimage);
|
gimage);
|
||||||
gimage->layer_alpha_handler =
|
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),
|
G_CALLBACK (gimp_image_layer_alpha_changed),
|
||||||
gimage);
|
gimage);
|
||||||
|
|
||||||
|
@ -597,15 +597,15 @@ gimp_image_init (GimpImage *gimage)
|
||||||
G_CALLBACK (gimp_image_drawable_update),
|
G_CALLBACK (gimp_image_drawable_update),
|
||||||
gimage);
|
gimage);
|
||||||
gimage->channel_visible_handler =
|
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),
|
G_CALLBACK (gimp_image_drawable_visibility),
|
||||||
gimage);
|
gimage);
|
||||||
gimage->channel_name_changed_handler =
|
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),
|
G_CALLBACK (gimp_image_channel_name_changed),
|
||||||
gimage);
|
gimage);
|
||||||
gimage->channel_color_changed_handler =
|
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),
|
G_CALLBACK (gimp_image_channel_color_changed),
|
||||||
gimage);
|
gimage);
|
||||||
|
|
||||||
|
|
|
@ -132,7 +132,7 @@ gimp_imagefile_class_init (GimpImagefileClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gimp_imagefile_signals[INFO_CHANGED] =
|
gimp_imagefile_signals[INFO_CHANGED] =
|
||||||
g_signal_new ("info_changed",
|
g_signal_new ("info-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpImagefileClass, info_changed),
|
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;
|
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_new_pixbuf = gimp_imagefile_get_new_pixbuf;
|
||||||
viewable_class->get_description = gimp_imagefile_get_description;
|
viewable_class->get_description = gimp_imagefile_get_description;
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ gimp_item_class_init (GimpItemClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_item_signals[VISIBILITY_CHANGED] =
|
gimp_item_signals[VISIBILITY_CHANGED] =
|
||||||
g_signal_new ("visibility_changed",
|
g_signal_new ("visibility-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpItemClass, visibility_changed),
|
G_STRUCT_OFFSET (GimpItemClass, visibility_changed),
|
||||||
|
@ -153,7 +153,7 @@ gimp_item_class_init (GimpItemClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_item_signals[LINKED_CHANGED] =
|
gimp_item_signals[LINKED_CHANGED] =
|
||||||
g_signal_new ("linked_changed",
|
g_signal_new ("linked-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpItemClass, linked_changed),
|
G_STRUCT_OFFSET (GimpItemClass, linked_changed),
|
||||||
|
|
|
@ -191,7 +191,7 @@ gimp_layer_class_init (GimpLayerClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
layer_signals[OPACITY_CHANGED] =
|
layer_signals[OPACITY_CHANGED] =
|
||||||
g_signal_new ("opacity_changed",
|
g_signal_new ("opacity-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpLayerClass, opacity_changed),
|
G_STRUCT_OFFSET (GimpLayerClass, opacity_changed),
|
||||||
|
@ -200,7 +200,7 @@ gimp_layer_class_init (GimpLayerClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
layer_signals[MODE_CHANGED] =
|
layer_signals[MODE_CHANGED] =
|
||||||
g_signal_new ("mode_changed",
|
g_signal_new ("mode-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpLayerClass, mode_changed),
|
G_STRUCT_OFFSET (GimpLayerClass, mode_changed),
|
||||||
|
@ -209,7 +209,7 @@ gimp_layer_class_init (GimpLayerClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
layer_signals[PRESERVE_TRANS_CHANGED] =
|
layer_signals[PRESERVE_TRANS_CHANGED] =
|
||||||
g_signal_new ("preserve_trans_changed",
|
g_signal_new ("preserve-trans-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpLayerClass, preserve_trans_changed),
|
G_STRUCT_OFFSET (GimpLayerClass, preserve_trans_changed),
|
||||||
|
@ -218,7 +218,7 @@ gimp_layer_class_init (GimpLayerClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
layer_signals[MASK_CHANGED] =
|
layer_signals[MASK_CHANGED] =
|
||||||
g_signal_new ("mask_changed",
|
g_signal_new ("mask-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpLayerClass, mask_changed),
|
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);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
layer_mask_signals[APPLY_CHANGED] =
|
layer_mask_signals[APPLY_CHANGED] =
|
||||||
g_signal_new ("apply_changed",
|
g_signal_new ("apply-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpLayerMaskClass, apply_changed),
|
G_STRUCT_OFFSET (GimpLayerMaskClass, apply_changed),
|
||||||
|
@ -108,7 +108,7 @@ gimp_layer_mask_class_init (GimpLayerMaskClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
layer_mask_signals[EDIT_CHANGED] =
|
layer_mask_signals[EDIT_CHANGED] =
|
||||||
g_signal_new ("edit_changed",
|
g_signal_new ("edit-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpLayerMaskClass, edit_changed),
|
G_STRUCT_OFFSET (GimpLayerMaskClass, edit_changed),
|
||||||
|
@ -117,7 +117,7 @@ gimp_layer_mask_class_init (GimpLayerMaskClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
layer_mask_signals[SHOW_CHANGED] =
|
layer_mask_signals[SHOW_CHANGED] =
|
||||||
g_signal_new ("show_changed",
|
g_signal_new ("show-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpLayerMaskClass, show_changed),
|
G_STRUCT_OFFSET (GimpLayerMaskClass, show_changed),
|
||||||
|
|
|
@ -115,7 +115,7 @@ gimp_object_class_init (GimpObjectClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
object_signals[NAME_CHANGED] =
|
object_signals[NAME_CHANGED] =
|
||||||
g_signal_new ("name_changed",
|
g_signal_new ("name-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpObjectClass, name_changed),
|
G_STRUCT_OFFSET (GimpObjectClass, name_changed),
|
||||||
|
|
|
@ -116,7 +116,7 @@ gimp_stroke_options_class_init (GimpStrokeOptionsClass *klass)
|
||||||
klass->dash_info_changed = NULL;
|
klass->dash_info_changed = NULL;
|
||||||
|
|
||||||
stroke_options_signals[DASH_INFO_CHANGED] =
|
stroke_options_signals[DASH_INFO_CHANGED] =
|
||||||
g_signal_new ("dash_info_changed",
|
g_signal_new ("dash-info-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpStrokeOptionsClass, dash_info_changed),
|
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");
|
quark_preview_pixbuf = g_quark_from_static_string ("viewable-preview-pixbuf");
|
||||||
|
|
||||||
viewable_signals[INVALIDATE_PREVIEW] =
|
viewable_signals[INVALIDATE_PREVIEW] =
|
||||||
g_signal_new ("invalidate_preview",
|
g_signal_new ("invalidate-preview",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpViewableClass, invalidate_preview),
|
G_STRUCT_OFFSET (GimpViewableClass, invalidate_preview),
|
||||||
|
@ -161,7 +161,7 @@ gimp_viewable_class_init (GimpViewableClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
viewable_signals[SIZE_CHANGED] =
|
viewable_signals[SIZE_CHANGED] =
|
||||||
g_signal_new ("size_changed",
|
g_signal_new ("size-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpViewableClass, size_changed),
|
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;
|
gimp_object_class->get_memsize = gimp_viewable_get_memsize;
|
||||||
|
|
||||||
klass->default_stock_id = "gimp-question";
|
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->invalidate_preview = gimp_viewable_real_invalidate_preview;
|
||||||
klass->size_changed = NULL;
|
klass->size_changed = NULL;
|
||||||
|
|
|
@ -136,34 +136,34 @@ gimp_display_shell_connect (GimpDisplayShell *shell)
|
||||||
g_signal_connect (gimage, "dirty",
|
g_signal_connect (gimage, "dirty",
|
||||||
G_CALLBACK (gimp_display_shell_clean_dirty_handler),
|
G_CALLBACK (gimp_display_shell_clean_dirty_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "undo_event",
|
g_signal_connect (gimage, "undo-event",
|
||||||
G_CALLBACK (gimp_display_shell_undo_event_handler),
|
G_CALLBACK (gimp_display_shell_undo_event_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage->grid, "notify",
|
g_signal_connect (gimage->grid, "notify",
|
||||||
G_CALLBACK (gimp_display_shell_grid_notify_handler),
|
G_CALLBACK (gimp_display_shell_grid_notify_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "name_changed",
|
g_signal_connect (gimage, "name-changed",
|
||||||
G_CALLBACK (gimp_display_shell_name_changed_handler),
|
G_CALLBACK (gimp_display_shell_name_changed_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "selection_control",
|
g_signal_connect (gimage, "selection-control",
|
||||||
G_CALLBACK (gimp_display_shell_selection_control_handler),
|
G_CALLBACK (gimp_display_shell_selection_control_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "size_changed",
|
g_signal_connect (gimage, "size-changed",
|
||||||
G_CALLBACK (gimp_display_shell_size_changed_handler),
|
G_CALLBACK (gimp_display_shell_size_changed_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "resolution_changed",
|
g_signal_connect (gimage, "resolution-changed",
|
||||||
G_CALLBACK (gimp_display_shell_resolution_changed_handler),
|
G_CALLBACK (gimp_display_shell_resolution_changed_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "qmask_changed",
|
g_signal_connect (gimage, "qmask-changed",
|
||||||
G_CALLBACK (gimp_display_shell_qmask_changed_handler),
|
G_CALLBACK (gimp_display_shell_qmask_changed_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "update_guide",
|
g_signal_connect (gimage, "update-guide",
|
||||||
G_CALLBACK (gimp_display_shell_update_guide_handler),
|
G_CALLBACK (gimp_display_shell_update_guide_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "update_sample_point",
|
g_signal_connect (gimage, "update-sample-point",
|
||||||
G_CALLBACK (gimp_display_shell_update_sample_point_handler),
|
G_CALLBACK (gimp_display_shell_update_sample_point_handler),
|
||||||
shell);
|
shell);
|
||||||
g_signal_connect (gimage, "invalidate_preview",
|
g_signal_connect (gimage, "invalidate-preview",
|
||||||
G_CALLBACK (gimp_display_shell_invalidate_preview_handler),
|
G_CALLBACK (gimp_display_shell_invalidate_preview_handler),
|
||||||
shell);
|
shell);
|
||||||
|
|
||||||
|
@ -176,7 +176,7 @@ gimp_display_shell_connect (GimpDisplayShell *shell)
|
||||||
G_CALLBACK (gimp_display_shell_vectors_thaw_handler),
|
G_CALLBACK (gimp_display_shell_vectors_thaw_handler),
|
||||||
shell);
|
shell);
|
||||||
shell->vectors_visible_handler =
|
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),
|
G_CALLBACK (gimp_display_shell_vectors_visible_handler),
|
||||||
shell);
|
shell);
|
||||||
|
|
||||||
|
|
|
@ -723,7 +723,7 @@ gimp_brush_core_real_set_brush (GimpBrushCore *core,
|
||||||
if (core->main_brush)
|
if (core->main_brush)
|
||||||
{
|
{
|
||||||
g_object_ref (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),
|
G_CALLBACK (gimp_brush_core_invalidate_cache),
|
||||||
core);
|
core);
|
||||||
}
|
}
|
||||||
|
|
|
@ -159,7 +159,7 @@ gimp_container_grid_view_class_init (GimpContainerGridViewClass *klass)
|
||||||
klass->move_cursor = gimp_container_grid_view_move_cursor;
|
klass->move_cursor = gimp_container_grid_view_move_cursor;
|
||||||
|
|
||||||
grid_view_signals[MOVE_CURSOR] =
|
grid_view_signals[MOVE_CURSOR] =
|
||||||
g_signal_new ("move_cursor",
|
g_signal_new ("move-cursor",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
G_SIGNAL_RUN_LAST | G_SIGNAL_ACTION,
|
||||||
G_STRUCT_OFFSET (GimpContainerGridViewClass, move_cursor),
|
G_STRUCT_OFFSET (GimpContainerGridViewClass, move_cursor),
|
||||||
|
@ -170,19 +170,19 @@ gimp_container_grid_view_class_init (GimpContainerGridViewClass *klass)
|
||||||
G_TYPE_INT);
|
G_TYPE_INT);
|
||||||
|
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_Home, 0,
|
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_ENUM, GTK_MOVEMENT_BUFFER_ENDS,
|
||||||
G_TYPE_INT, -1);
|
G_TYPE_INT, -1);
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_End, 0,
|
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_ENUM, GTK_MOVEMENT_BUFFER_ENDS,
|
||||||
G_TYPE_INT, 1);
|
G_TYPE_INT, 1);
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_Page_Up, 0,
|
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_ENUM, GTK_MOVEMENT_PAGES,
|
||||||
G_TYPE_INT, -1);
|
G_TYPE_INT, -1);
|
||||||
gtk_binding_entry_add_signal (binding_set, GDK_Page_Down, 0,
|
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_ENUM, GTK_MOVEMENT_PAGES,
|
||||||
G_TYPE_INT, 1);
|
G_TYPE_INT, 1);
|
||||||
|
|
||||||
|
@ -210,7 +210,7 @@ gimp_container_grid_view_init (GimpContainerGridView *grid_view)
|
||||||
grid_view->wrap_box);
|
grid_view->wrap_box);
|
||||||
gtk_widget_show (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),
|
G_CALLBACK (gimp_container_grid_view_viewport_resized),
|
||||||
grid_view);
|
grid_view);
|
||||||
|
|
||||||
|
@ -434,10 +434,10 @@ gimp_container_grid_view_insert_item (GimpContainerView *view,
|
||||||
|
|
||||||
gtk_widget_show (preview);
|
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),
|
G_CALLBACK (gimp_container_grid_view_item_selected),
|
||||||
view);
|
view);
|
||||||
g_signal_connect (preview, "double_clicked",
|
g_signal_connect (preview, "double-clicked",
|
||||||
G_CALLBACK (gimp_container_grid_view_item_activated),
|
G_CALLBACK (gimp_container_grid_view_item_activated),
|
||||||
view);
|
view);
|
||||||
g_signal_connect (preview, "context",
|
g_signal_connect (preview, "context",
|
||||||
|
|
|
@ -152,7 +152,7 @@ gimp_container_view_iface_base_init (GimpContainerViewInterface *view_iface)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
view_signals[SELECT_ITEM] =
|
view_signals[SELECT_ITEM] =
|
||||||
g_signal_new ("select_item",
|
g_signal_new ("select-item",
|
||||||
G_TYPE_FROM_INTERFACE (view_iface),
|
G_TYPE_FROM_INTERFACE (view_iface),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GimpContainerViewInterface, select_item),
|
G_STRUCT_OFFSET (GimpContainerViewInterface, select_item),
|
||||||
|
@ -163,7 +163,7 @@ gimp_container_view_iface_base_init (GimpContainerViewInterface *view_iface)
|
||||||
G_TYPE_POINTER);
|
G_TYPE_POINTER);
|
||||||
|
|
||||||
view_signals[ACTIVATE_ITEM] =
|
view_signals[ACTIVATE_ITEM] =
|
||||||
g_signal_new ("activate_item",
|
g_signal_new ("activate-item",
|
||||||
G_TYPE_FROM_INTERFACE (view_iface),
|
G_TYPE_FROM_INTERFACE (view_iface),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContainerViewInterface, activate_item),
|
G_STRUCT_OFFSET (GimpContainerViewInterface, activate_item),
|
||||||
|
@ -174,7 +174,7 @@ gimp_container_view_iface_base_init (GimpContainerViewInterface *view_iface)
|
||||||
G_TYPE_POINTER);
|
G_TYPE_POINTER);
|
||||||
|
|
||||||
view_signals[CONTEXT_ITEM] =
|
view_signals[CONTEXT_ITEM] =
|
||||||
g_signal_new ("context_item",
|
g_signal_new ("context-item",
|
||||||
G_TYPE_FROM_INTERFACE (view_iface),
|
G_TYPE_FROM_INTERFACE (view_iface),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpContainerViewInterface, context_item),
|
G_STRUCT_OFFSET (GimpContainerViewInterface, context_item),
|
||||||
|
|
|
@ -156,7 +156,7 @@ gimp_dock_class_init (GimpDockClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
dock_signals[BOOK_ADDED] =
|
dock_signals[BOOK_ADDED] =
|
||||||
g_signal_new ("book_added",
|
g_signal_new ("book-added",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpDockClass, book_added),
|
G_STRUCT_OFFSET (GimpDockClass, book_added),
|
||||||
|
@ -166,7 +166,7 @@ gimp_dock_class_init (GimpDockClass *klass)
|
||||||
GIMP_TYPE_DOCKBOOK);
|
GIMP_TYPE_DOCKBOOK);
|
||||||
|
|
||||||
dock_signals[BOOK_REMOVED] =
|
dock_signals[BOOK_REMOVED] =
|
||||||
g_signal_new ("book_removed",
|
g_signal_new ("book-removed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpDockClass, book_removed),
|
G_STRUCT_OFFSET (GimpDockClass, book_removed),
|
||||||
|
|
|
@ -143,7 +143,7 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
dockbook_signals[DOCKABLE_ADDED] =
|
dockbook_signals[DOCKABLE_ADDED] =
|
||||||
g_signal_new ("dockable_added",
|
g_signal_new ("dockable-added",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpDockbookClass, dockable_added),
|
G_STRUCT_OFFSET (GimpDockbookClass, dockable_added),
|
||||||
|
@ -153,7 +153,7 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
|
||||||
GIMP_TYPE_DOCKABLE);
|
GIMP_TYPE_DOCKABLE);
|
||||||
|
|
||||||
dockbook_signals[DOCKABLE_REMOVED] =
|
dockbook_signals[DOCKABLE_REMOVED] =
|
||||||
g_signal_new ("dockable_removed",
|
g_signal_new ("dockable-removed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpDockbookClass, dockable_removed),
|
G_STRUCT_OFFSET (GimpDockbookClass, dockable_removed),
|
||||||
|
@ -163,7 +163,7 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
|
||||||
GIMP_TYPE_DOCKABLE);
|
GIMP_TYPE_DOCKABLE);
|
||||||
|
|
||||||
dockbook_signals[DOCKABLE_REORDERED] =
|
dockbook_signals[DOCKABLE_REORDERED] =
|
||||||
g_signal_new ("dockable_reordered",
|
g_signal_new ("dockable-reordered",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpDockbookClass, dockable_reordered),
|
G_STRUCT_OFFSET (GimpDockbookClass, dockable_reordered),
|
||||||
|
@ -182,13 +182,13 @@ gimp_dockbook_class_init (GimpDockbookClass *klass)
|
||||||
klass->dockable_reordered = NULL;
|
klass->dockable_reordered = NULL;
|
||||||
|
|
||||||
gtk_widget_class_install_style_property (widget_class,
|
gtk_widget_class_install_style_property (widget_class,
|
||||||
g_param_spec_int ("tab_border",
|
g_param_spec_int ("tab-border",
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
0, G_MAXINT,
|
0, G_MAXINT,
|
||||||
DEFAULT_TAB_BORDER,
|
DEFAULT_TAB_BORDER,
|
||||||
G_PARAM_READABLE));
|
G_PARAM_READABLE));
|
||||||
gtk_widget_class_install_style_property (widget_class,
|
gtk_widget_class_install_style_property (widget_class,
|
||||||
g_param_spec_enum ("tab_icon_size",
|
g_param_spec_enum ("tab-icon-size",
|
||||||
NULL, NULL,
|
NULL, NULL,
|
||||||
GTK_TYPE_ICON_SIZE,
|
GTK_TYPE_ICON_SIZE,
|
||||||
DEFAULT_TAB_ICON_SIZE,
|
DEFAULT_TAB_ICON_SIZE,
|
||||||
|
|
|
@ -77,7 +77,7 @@ gimp_docked_iface_base_init (GimpDockedInterface *docked_iface)
|
||||||
if (! initialized)
|
if (! initialized)
|
||||||
{
|
{
|
||||||
docked_signals[TITLE_CHANGED] =
|
docked_signals[TITLE_CHANGED] =
|
||||||
g_signal_new ("title_changed",
|
g_signal_new ("title-changed",
|
||||||
GIMP_TYPE_DOCKED,
|
GIMP_TYPE_DOCKED,
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpDockedInterface, title_changed),
|
G_STRUCT_OFFSET (GimpDockedInterface, title_changed),
|
||||||
|
|
|
@ -128,7 +128,7 @@ gimp_histogram_view_class_init (GimpHistogramViewClass *klass)
|
||||||
widget_class = GTK_WIDGET_CLASS (klass);
|
widget_class = GTK_WIDGET_CLASS (klass);
|
||||||
|
|
||||||
histogram_view_signals[RANGE_CHANGED] =
|
histogram_view_signals[RANGE_CHANGED] =
|
||||||
g_signal_new ("range_changed",
|
g_signal_new ("range-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpHistogramViewClass, range_changed),
|
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);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
view_signals[SET_IMAGE] =
|
view_signals[SET_IMAGE] =
|
||||||
g_signal_new ("set_image",
|
g_signal_new ("set-image",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GimpItemTreeViewClass, set_image),
|
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);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
view_signals[MARKER_CHANGED] =
|
view_signals[MARKER_CHANGED] =
|
||||||
g_signal_new ("marker_changed",
|
g_signal_new ("marker-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpNavigationViewClass, marker_changed),
|
G_STRUCT_OFFSET (GimpNavigationViewClass, marker_changed),
|
||||||
|
|
|
@ -443,7 +443,7 @@ gimp_palette_editor_set_data (GimpDataEditor *editor,
|
||||||
{
|
{
|
||||||
GimpPalette *palette = GIMP_PALETTE (editor->data);
|
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),
|
G_CALLBACK (palette_editor_invalidate_preview),
|
||||||
editor);
|
editor);
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ gimp_text_editor_class_init (GimpTextEditorClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
text_editor_signals[TEXT_CHANGED] =
|
text_editor_signals[TEXT_CHANGED] =
|
||||||
g_signal_new ("text_changed",
|
g_signal_new ("text-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpTextEditorClass, text_changed),
|
G_STRUCT_OFFSET (GimpTextEditorClass, text_changed),
|
||||||
|
@ -99,7 +99,7 @@ gimp_text_editor_class_init (GimpTextEditorClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
text_editor_signals[DIR_CHANGED] =
|
text_editor_signals[DIR_CHANGED] =
|
||||||
g_signal_new ("dir_changed",
|
g_signal_new ("dir-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpTextEditorClass, dir_changed),
|
G_STRUCT_OFFSET (GimpTextEditorClass, dir_changed),
|
||||||
|
|
|
@ -157,7 +157,7 @@ gimp_view_class_init (GimpViewClass *klass)
|
||||||
GDK_TYPE_MODIFIER_TYPE);
|
GDK_TYPE_MODIFIER_TYPE);
|
||||||
|
|
||||||
view_signals[DOUBLE_CLICKED] =
|
view_signals[DOUBLE_CLICKED] =
|
||||||
g_signal_new ("double_clicked",
|
g_signal_new ("double-clicked",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpViewClass, double_clicked),
|
G_STRUCT_OFFSET (GimpViewClass, double_clicked),
|
||||||
|
|
|
@ -336,12 +336,12 @@ gimp_view_renderer_set_viewable (GimpViewRenderer *renderer,
|
||||||
(gpointer *) &renderer->viewable);
|
(gpointer *) &renderer->viewable);
|
||||||
|
|
||||||
g_signal_connect_swapped (renderer->viewable,
|
g_signal_connect_swapped (renderer->viewable,
|
||||||
"invalidate_preview",
|
"invalidate-preview",
|
||||||
G_CALLBACK (gimp_view_renderer_invalidate),
|
G_CALLBACK (gimp_view_renderer_invalidate),
|
||||||
renderer);
|
renderer);
|
||||||
|
|
||||||
g_signal_connect_swapped (renderer->viewable,
|
g_signal_connect_swapped (renderer->viewable,
|
||||||
"size_changed",
|
"size-changed",
|
||||||
G_CALLBACK (gimp_view_renderer_size_changed),
|
G_CALLBACK (gimp_view_renderer_size_changed),
|
||||||
renderer);
|
renderer);
|
||||||
|
|
||||||
|
|
|
@ -159,7 +159,7 @@ gimp_brush_select_widget_new (const gchar *title,
|
||||||
gtk_container_add (GTK_CONTAINER (frame), brush_sel->preview);
|
gtk_container_add (GTK_CONTAINER (frame), brush_sel->preview);
|
||||||
gtk_widget_show (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),
|
G_CALLBACK (gimp_brush_select_preview_resize),
|
||||||
brush_sel);
|
brush_sel);
|
||||||
g_signal_connect (brush_sel->preview, "event",
|
g_signal_connect (brush_sel->preview, "event",
|
||||||
|
|
|
@ -154,11 +154,11 @@ gimp_gradient_select_widget_new (const gchar *title,
|
||||||
gradient_sel->preview);
|
gradient_sel->preview);
|
||||||
gtk_widget_show (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),
|
G_CALLBACK (gimp_gradient_select_preview_size_allocate),
|
||||||
gradient_sel);
|
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),
|
G_CALLBACK (gimp_gradient_select_preview_expose),
|
||||||
gradient_sel);
|
gradient_sel);
|
||||||
|
|
||||||
|
|
|
@ -144,7 +144,7 @@ gimp_pattern_select_widget_new (const gchar *title,
|
||||||
gtk_container_add (GTK_CONTAINER (frame), pattern_sel->preview);
|
gtk_container_add (GTK_CONTAINER (frame), pattern_sel->preview);
|
||||||
gtk_widget_show (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),
|
G_CALLBACK (gimp_pattern_select_preview_resize),
|
||||||
pattern_sel);
|
pattern_sel);
|
||||||
g_signal_connect (pattern_sel->preview, "event",
|
g_signal_connect (pattern_sel->preview, "event",
|
||||||
|
|
|
@ -128,7 +128,7 @@ gimp_module_db_class_init (GimpModuleDBClass *klass)
|
||||||
GIMP_TYPE_MODULE);
|
GIMP_TYPE_MODULE);
|
||||||
|
|
||||||
db_signals[MODULE_MODIFIED] =
|
db_signals[MODULE_MODIFIED] =
|
||||||
g_signal_new ("module_modified",
|
g_signal_new ("module-modified",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpModuleDBClass, module_modified),
|
G_STRUCT_OFFSET (GimpModuleDBClass, module_modified),
|
||||||
|
|
|
@ -86,7 +86,7 @@ gimp_button_class_init (GimpButtonClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
button_signals[EXTENDED_CLICKED] =
|
button_signals[EXTENDED_CLICKED] =
|
||||||
g_signal_new ("extended_clicked",
|
g_signal_new ("extended-clicked",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpButtonClass, extended_clicked),
|
G_STRUCT_OFFSET (GimpButtonClass, extended_clicked),
|
||||||
|
|
|
@ -122,10 +122,10 @@ gimp_chain_button_init (GimpChainButton *button)
|
||||||
g_signal_connect (button->button, "clicked",
|
g_signal_connect (button->button, "clicked",
|
||||||
G_CALLBACK (gimp_chain_button_clicked_callback),
|
G_CALLBACK (gimp_chain_button_clicked_callback),
|
||||||
button);
|
button);
|
||||||
g_signal_connect (button->line1, "expose_event",
|
g_signal_connect (button->line1, "expose-event",
|
||||||
G_CALLBACK (gimp_chain_button_draw_lines),
|
G_CALLBACK (gimp_chain_button_draw_lines),
|
||||||
button);
|
button);
|
||||||
g_signal_connect (button->line2, "expose_event",
|
g_signal_connect (button->line2, "expose-event",
|
||||||
G_CALLBACK (gimp_chain_button_draw_lines),
|
G_CALLBACK (gimp_chain_button_draw_lines),
|
||||||
button);
|
button);
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,7 @@ gimp_color_area_class_init (GimpColorAreaClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gimp_color_area_signals[COLOR_CHANGED] =
|
gimp_color_area_signals[COLOR_CHANGED] =
|
||||||
g_signal_new ("color_changed",
|
g_signal_new ("color-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpColorAreaClass, color_changed),
|
G_STRUCT_OFFSET (GimpColorAreaClass, color_changed),
|
||||||
|
|
|
@ -177,7 +177,7 @@ gimp_color_button_class_init (GimpColorButtonClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gimp_color_button_signals[COLOR_CHANGED] =
|
gimp_color_button_signals[COLOR_CHANGED] =
|
||||||
g_signal_new ("color_changed",
|
g_signal_new ("color-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpColorButtonClass, color_changed),
|
G_STRUCT_OFFSET (GimpColorButtonClass, color_changed),
|
||||||
|
@ -268,7 +268,7 @@ gimp_color_button_init (GimpColorButton *button,
|
||||||
"drag-mask", GDK_BUTTON2_MASK,
|
"drag-mask", GDK_BUTTON2_MASK,
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
g_signal_connect (button->color_area, "color_changed",
|
g_signal_connect (button->color_area, "color-changed",
|
||||||
G_CALLBACK (gimp_color_button_area_changed),
|
G_CALLBACK (gimp_color_button_area_changed),
|
||||||
button);
|
button);
|
||||||
|
|
||||||
|
@ -510,7 +510,7 @@ gimp_color_button_clicked (GtkButton *button)
|
||||||
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), selection);
|
gtk_container_add (GTK_CONTAINER (GTK_DIALOG (dialog)->vbox), selection);
|
||||||
gtk_widget_show (selection);
|
gtk_widget_show (selection);
|
||||||
|
|
||||||
g_signal_connect (selection, "color_changed",
|
g_signal_connect (selection, "color-changed",
|
||||||
G_CALLBACK (gimp_color_button_selection_changed),
|
G_CALLBACK (gimp_color_button_selection_changed),
|
||||||
button);
|
button);
|
||||||
|
|
||||||
|
@ -543,7 +543,7 @@ gimp_color_button_get_action_type (GimpColorButton *button)
|
||||||
* This returns a button with a preview showing the color.
|
* This returns a button with a preview showing the color.
|
||||||
* When the button is clicked a GtkColorSelectionDialog is opened.
|
* When the button is clicked a GtkColorSelectionDialog is opened.
|
||||||
* If the user changes the color the new color is written into the
|
* 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.
|
* signal is emitted.
|
||||||
*
|
*
|
||||||
* Returns: Pointer to the new #GimpColorButton widget.
|
* Returns: Pointer to the new #GimpColorButton widget.
|
||||||
|
@ -662,7 +662,7 @@ gimp_color_button_get_update (GimpColorButton *button)
|
||||||
* @button: A #GimpColorButton widget.
|
* @button: A #GimpColorButton widget.
|
||||||
* @continuous: The new setting of the @continuous_update property.
|
* @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
|
* continuously while the color is changed in the color selection
|
||||||
* dialog.
|
* dialog.
|
||||||
**/
|
**/
|
||||||
|
|
|
@ -95,7 +95,7 @@ static void
|
||||||
gimp_color_hex_entry_class_init (GimpColorHexEntryClass *klass)
|
gimp_color_hex_entry_class_init (GimpColorHexEntryClass *klass)
|
||||||
{
|
{
|
||||||
entry_signals[COLOR_CHANGED] =
|
entry_signals[COLOR_CHANGED] =
|
||||||
g_signal_new ("color_changed",
|
g_signal_new ("color-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpColorHexEntryClass, color_changed),
|
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");
|
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),
|
G_CALLBACK (gimp_color_hex_entry_events),
|
||||||
NULL);
|
NULL);
|
||||||
g_signal_connect (entry, "key_press_event",
|
g_signal_connect (entry, "key-press-event",
|
||||||
G_CALLBACK (gimp_color_hex_entry_events),
|
G_CALLBACK (gimp_color_hex_entry_events),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
g_signal_connect (completion, "match_selected",
|
g_signal_connect (completion, "match-selected",
|
||||||
G_CALLBACK (gimp_color_hex_entry_matched),
|
G_CALLBACK (gimp_color_hex_entry_matched),
|
||||||
entry);
|
entry);
|
||||||
}
|
}
|
||||||
|
@ -186,7 +186,7 @@ gimp_color_hex_entry_new (void)
|
||||||
* @color: pointer to a #GimpRGB
|
* @color: pointer to a #GimpRGB
|
||||||
*
|
*
|
||||||
* Sets the color displayed by a #GimpColorHexEntry. If the new color
|
* 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.
|
* signal is emitted.
|
||||||
*
|
*
|
||||||
* Since: GIMP 2.2
|
* Since: GIMP 2.2
|
||||||
|
|
|
@ -159,7 +159,7 @@ gimp_color_notebook_init (GimpColorNotebook *notebook)
|
||||||
|
|
||||||
gtk_notebook_popup_enable (GTK_NOTEBOOK (notebook->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),
|
G_CALLBACK (gimp_color_notebook_switch_page),
|
||||||
notebook);
|
notebook);
|
||||||
|
|
||||||
|
@ -426,10 +426,10 @@ gimp_color_notebook_add_page (GimpColorNotebook *notebook,
|
||||||
|
|
||||||
gtk_widget_show (page);
|
gtk_widget_show (page);
|
||||||
|
|
||||||
g_signal_connect (page, "color_changed",
|
g_signal_connect (page, "color-changed",
|
||||||
G_CALLBACK (gimp_color_notebook_color_changed),
|
G_CALLBACK (gimp_color_notebook_color_changed),
|
||||||
notebook);
|
notebook);
|
||||||
g_signal_connect (page, "channel_changed",
|
g_signal_connect (page, "channel-changed",
|
||||||
G_CALLBACK (gimp_color_notebook_channel_changed),
|
G_CALLBACK (gimp_color_notebook_channel_changed),
|
||||||
notebook);
|
notebook);
|
||||||
|
|
||||||
|
|
|
@ -209,7 +209,7 @@ gimp_color_scales_init (GimpColorScales *scales)
|
||||||
|
|
||||||
gimp_color_scale_set_channel (GIMP_COLOR_SCALE (scales->sliders[i]), i);
|
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),
|
G_CALLBACK (gimp_color_scales_scale_update),
|
||||||
scales);
|
scales);
|
||||||
}
|
}
|
||||||
|
|
|
@ -293,10 +293,10 @@ gimp_color_select_init (GimpColorSelect *select)
|
||||||
gtk_container_add (GTK_CONTAINER (frame), select->xy_color);
|
gtk_container_add (GTK_CONTAINER (frame), select->xy_color);
|
||||||
gtk_widget_show (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),
|
G_CALLBACK (gimp_color_select_xy_size_allocate),
|
||||||
select);
|
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),
|
G_CALLBACK (gimp_color_select_xy_expose),
|
||||||
select);
|
select);
|
||||||
g_signal_connect (select->xy_color, "event",
|
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_container_add (GTK_CONTAINER (frame), select->z_color);
|
||||||
gtk_widget_show (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),
|
G_CALLBACK (gimp_color_select_z_size_allocate),
|
||||||
select);
|
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),
|
G_CALLBACK (gimp_color_select_z_expose),
|
||||||
select);
|
select);
|
||||||
g_signal_connect (select->z_color, "event",
|
g_signal_connect (select->z_color, "event",
|
||||||
|
|
|
@ -132,7 +132,7 @@ gimp_color_selection_class_init (GimpColorSelectionClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
selection_signals[COLOR_CHANGED] =
|
selection_signals[COLOR_CHANGED] =
|
||||||
g_signal_new ("color_changed",
|
g_signal_new ("color-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpColorSelectionClass, color_changed),
|
G_STRUCT_OFFSET (GimpColorSelectionClass, color_changed),
|
||||||
|
@ -190,11 +190,11 @@ gimp_color_selection_init (GimpColorSelection *selection)
|
||||||
TRUE, TRUE, 0);
|
TRUE, TRUE, 0);
|
||||||
gtk_widget_show (selection->notebook);
|
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),
|
G_CALLBACK (gimp_color_selection_notebook_changed),
|
||||||
selection);
|
selection);
|
||||||
g_signal_connect (GIMP_COLOR_NOTEBOOK (selection->notebook)->notebook,
|
g_signal_connect (GIMP_COLOR_NOTEBOOK (selection->notebook)->notebook,
|
||||||
"switch_page",
|
"switch-page",
|
||||||
G_CALLBACK (gimp_color_selection_switch_page),
|
G_CALLBACK (gimp_color_selection_switch_page),
|
||||||
selection);
|
selection);
|
||||||
|
|
||||||
|
@ -223,7 +223,7 @@ gimp_color_selection_init (GimpColorSelection *selection)
|
||||||
gtk_container_add (GTK_CONTAINER (frame), selection->new_color);
|
gtk_container_add (GTK_CONTAINER (frame), selection->new_color);
|
||||||
gtk_widget_show (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),
|
G_CALLBACK (gimp_color_selection_new_color_changed),
|
||||||
selection);
|
selection);
|
||||||
|
|
||||||
|
@ -264,10 +264,10 @@ gimp_color_selection_init (GimpColorSelection *selection)
|
||||||
TRUE, TRUE, 0);
|
TRUE, TRUE, 0);
|
||||||
gtk_widget_show (selection->scales);
|
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),
|
G_CALLBACK (gimp_color_selection_channel_changed),
|
||||||
selection);
|
selection);
|
||||||
g_signal_connect (selection->scales, "color_changed",
|
g_signal_connect (selection->scales, "color-changed",
|
||||||
G_CALLBACK (gimp_color_selection_scales_changed),
|
G_CALLBACK (gimp_color_selection_scales_changed),
|
||||||
selection);
|
selection);
|
||||||
|
|
||||||
|
@ -290,7 +290,7 @@ gimp_color_selection_init (GimpColorSelection *selection)
|
||||||
|
|
||||||
g_object_set_data (G_OBJECT (selection), "color-hex-entry", entry);
|
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),
|
G_CALLBACK (gimp_color_selection_entry_changed),
|
||||||
selection);
|
selection);
|
||||||
}
|
}
|
||||||
|
@ -451,7 +451,7 @@ gimp_color_selection_reset (GimpColorSelection *selection)
|
||||||
* gimp_color_selection_color_changed:
|
* gimp_color_selection_color_changed:
|
||||||
* @selection: A #GimpColorSelection widget.
|
* @selection: A #GimpColorSelection widget.
|
||||||
*
|
*
|
||||||
* Emits the "color_changed" signal.
|
* Emits the "color-changed" signal.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
gimp_color_selection_color_changed (GimpColorSelection *selection)
|
gimp_color_selection_color_changed (GimpColorSelection *selection)
|
||||||
|
|
|
@ -87,7 +87,7 @@ gimp_color_selector_class_init (GimpColorSelectorClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
selector_signals[COLOR_CHANGED] =
|
selector_signals[COLOR_CHANGED] =
|
||||||
g_signal_new ("color_changed",
|
g_signal_new ("color-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpColorSelectorClass, color_changed),
|
G_STRUCT_OFFSET (GimpColorSelectorClass, color_changed),
|
||||||
|
@ -98,7 +98,7 @@ gimp_color_selector_class_init (GimpColorSelectorClass *klass)
|
||||||
G_TYPE_POINTER);
|
G_TYPE_POINTER);
|
||||||
|
|
||||||
selector_signals[CHANNEL_CHANGED] =
|
selector_signals[CHANNEL_CHANGED] =
|
||||||
g_signal_new ("channel_changed",
|
g_signal_new ("channel-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpColorSelectorClass, channel_changed),
|
G_STRUCT_OFFSET (GimpColorSelectorClass, channel_changed),
|
||||||
|
|
|
@ -515,7 +515,7 @@ gimp_dialog_run (GimpDialog *dialog)
|
||||||
unmap_handler = g_signal_connect (dialog, "unmap",
|
unmap_handler = g_signal_connect (dialog, "unmap",
|
||||||
G_CALLBACK (run_unmap_handler),
|
G_CALLBACK (run_unmap_handler),
|
||||||
&ri);
|
&ri);
|
||||||
delete_handler = g_signal_connect (dialog, "delete_event",
|
delete_handler = g_signal_connect (dialog, "delete-event",
|
||||||
G_CALLBACK (run_delete_handler),
|
G_CALLBACK (run_delete_handler),
|
||||||
&ri);
|
&ri);
|
||||||
destroy_handler = g_signal_connect (dialog, "destroy",
|
destroy_handler = g_signal_connect (dialog, "destroy",
|
||||||
|
|
|
@ -101,7 +101,7 @@ gimp_file_entry_class_init (GimpFileEntryClass *klass)
|
||||||
* This signal is emitted whenever the user changes the filename.
|
* This signal is emitted whenever the user changes the filename.
|
||||||
**/
|
**/
|
||||||
gimp_file_entry_signals[FILENAME_CHANGED] =
|
gimp_file_entry_signals[FILENAME_CHANGED] =
|
||||||
g_signal_new ("filename_changed",
|
g_signal_new ("filename-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpFileEntryClass, filename_changed),
|
G_STRUCT_OFFSET (GimpFileEntryClass, filename_changed),
|
||||||
|
@ -140,7 +140,7 @@ gimp_file_entry_init (GimpFileEntry *entry)
|
||||||
g_signal_connect (entry->entry, "activate",
|
g_signal_connect (entry->entry, "activate",
|
||||||
G_CALLBACK (gimp_file_entry_entry_activate),
|
G_CALLBACK (gimp_file_entry_entry_activate),
|
||||||
entry);
|
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),
|
G_CALLBACK (gimp_file_entry_entry_focus_out),
|
||||||
entry);
|
entry);
|
||||||
}
|
}
|
||||||
|
@ -378,7 +378,7 @@ gimp_file_entry_browse_clicked (GtkWidget *widget,
|
||||||
g_signal_connect (chooser, "response",
|
g_signal_connect (chooser, "response",
|
||||||
G_CALLBACK (gimp_file_entry_chooser_response),
|
G_CALLBACK (gimp_file_entry_chooser_response),
|
||||||
entry);
|
entry);
|
||||||
g_signal_connect (chooser, "delete_event",
|
g_signal_connect (chooser, "delete-event",
|
||||||
G_CALLBACK (gtk_true),
|
G_CALLBACK (gtk_true),
|
||||||
NULL);
|
NULL);
|
||||||
|
|
||||||
|
|
|
@ -179,7 +179,7 @@ gimp_help_connect (GtkWidget *widget,
|
||||||
|
|
||||||
g_object_set_data (G_OBJECT (widget), "gimp-help-data", help_data);
|
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),
|
G_CALLBACK (gimp_help_callback),
|
||||||
help_func);
|
help_func);
|
||||||
|
|
||||||
|
@ -379,7 +379,7 @@ gimp_context_help_idle_start (gpointer widget)
|
||||||
|
|
||||||
gtk_grab_add (invisible);
|
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),
|
G_CALLBACK (gimp_context_help_button_press),
|
||||||
NULL);
|
NULL);
|
||||||
}
|
}
|
||||||
|
|
|
@ -91,7 +91,7 @@ gimp_memsize_entry_class_init (GimpMemsizeEntryClass *klass)
|
||||||
object_class->finalize = gimp_memsize_entry_finalize;
|
object_class->finalize = gimp_memsize_entry_finalize;
|
||||||
|
|
||||||
gimp_memsize_entry_signals[VALUE_CHANGED] =
|
gimp_memsize_entry_signals[VALUE_CHANGED] =
|
||||||
g_signal_new ("value_changed",
|
g_signal_new ("value-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpMemsizeEntryClass, value_changed),
|
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_box_pack_start (GTK_BOX (entry), entry->spinbutton, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (entry->spinbutton);
|
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),
|
G_CALLBACK (gimp_memsize_entry_adj_callback),
|
||||||
entry);
|
entry);
|
||||||
|
|
||||||
|
|
|
@ -93,7 +93,7 @@ gimp_offset_area_class_init (GimpOffsetAreaClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gimp_offset_area_signals[OFFSETS_CHANGED] =
|
gimp_offset_area_signals[OFFSETS_CHANGED] =
|
||||||
g_signal_new ("offsets_changed",
|
g_signal_new ("offsets-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpOffsetAreaClass, offsets_changed),
|
G_STRUCT_OFFSET (GimpOffsetAreaClass, offsets_changed),
|
||||||
|
@ -185,7 +185,7 @@ gimp_offset_area_set_pixbuf (GimpOffsetArea *area,
|
||||||
* @height: the new height
|
* @height: the new height
|
||||||
*
|
*
|
||||||
* Sets the size of the image/drawable displayed by the #GimpOffsetArea.
|
* 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.
|
* signal is emitted.
|
||||||
**/
|
**/
|
||||||
void
|
void
|
||||||
|
@ -235,7 +235,7 @@ gimp_offset_area_set_size (GimpOffsetArea *area,
|
||||||
* @offset_y: the Y offset
|
* @offset_y: the Y offset
|
||||||
*
|
*
|
||||||
* Sets the offsets of the image/drawable displayed by the #GimpOffsetArea.
|
* 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
|
void
|
||||||
gimp_offset_area_set_offsets (GimpOffsetArea *area,
|
gimp_offset_area_set_offsets (GimpOffsetArea *area,
|
||||||
|
|
|
@ -115,7 +115,7 @@ gimp_path_editor_class_init (GimpPathEditorClass *klass)
|
||||||
* or reorders an element of the search path.
|
* or reorders an element of the search path.
|
||||||
**/
|
**/
|
||||||
gimp_path_editor_signals[PATH_CHANGED] =
|
gimp_path_editor_signals[PATH_CHANGED] =
|
||||||
g_signal_new ("path_changed",
|
g_signal_new ("path-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpPathEditorClass, path_changed),
|
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_set_dir_writable().
|
||||||
**/
|
**/
|
||||||
gimp_path_editor_signals[WRITABLE_CHANGED] =
|
gimp_path_editor_signals[WRITABLE_CHANGED] =
|
||||||
g_signal_new ("writable_changed",
|
g_signal_new ("writable-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpPathEditorClass, writable_changed),
|
G_STRUCT_OFFSET (GimpPathEditorClass, writable_changed),
|
||||||
|
@ -294,7 +294,7 @@ gimp_path_editor_new (const gchar *filesel_title,
|
||||||
TRUE, TRUE, 0);
|
TRUE, TRUE, 0);
|
||||||
gtk_widget_show (editor->file_entry);
|
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),
|
G_CALLBACK (gimp_path_editor_file_entry_changed),
|
||||||
editor);
|
editor);
|
||||||
|
|
||||||
|
|
|
@ -108,7 +108,7 @@ gimp_pick_button_class_init (GimpPickButtonClass* klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
pick_button_signals[COLOR_PICKED] =
|
pick_button_signals[COLOR_PICKED] =
|
||||||
g_signal_new ("color_picked",
|
g_signal_new ("color-picked",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpPickButtonClass, color_picked),
|
G_STRUCT_OFFSET (GimpPickButtonClass, color_picked),
|
||||||
|
@ -277,10 +277,10 @@ gimp_pick_button_clicked (GtkButton *gtk_button)
|
||||||
|
|
||||||
gtk_grab_add (widget);
|
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),
|
G_CALLBACK (gimp_pick_button_mouse_press),
|
||||||
button);
|
button);
|
||||||
g_signal_connect (widget, "key_press_event",
|
g_signal_connect (widget, "key-press-event",
|
||||||
G_CALLBACK (gimp_pick_button_key_press),
|
G_CALLBACK (gimp_pick_button_key_press),
|
||||||
button);
|
button);
|
||||||
}
|
}
|
||||||
|
@ -292,10 +292,10 @@ gimp_pick_button_mouse_press (GtkWidget *invisible,
|
||||||
{
|
{
|
||||||
if (event->type == GDK_BUTTON_PRESS && event->button == 1)
|
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),
|
G_CALLBACK (gimp_pick_button_mouse_motion),
|
||||||
button);
|
button);
|
||||||
g_signal_connect (invisible, "button_release_event",
|
g_signal_connect (invisible, "button-release-event",
|
||||||
G_CALLBACK (gimp_pick_button_mouse_release),
|
G_CALLBACK (gimp_pick_button_mouse_release),
|
||||||
button);
|
button);
|
||||||
|
|
||||||
|
|
|
@ -232,7 +232,7 @@ gimp_preview_init (GimpPreview *preview)
|
||||||
G_CALLBACK (gimp_preview_area_unrealize),
|
G_CALLBACK (gimp_preview_area_unrealize),
|
||||||
preview);
|
preview);
|
||||||
|
|
||||||
g_signal_connect (preview->area, "size_allocate",
|
g_signal_connect (preview->area, "size-allocate",
|
||||||
G_CALLBACK (gimp_preview_area_size_allocate),
|
G_CALLBACK (gimp_preview_area_size_allocate),
|
||||||
preview);
|
preview);
|
||||||
|
|
||||||
|
|
|
@ -1013,7 +1013,7 @@ gimp_prop_spin_button_new (GObject *config,
|
||||||
|
|
||||||
set_param_spec (G_OBJECT (adjustment), spinbutton, param_spec);
|
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),
|
G_CALLBACK (gimp_prop_adjustment_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -1103,7 +1103,7 @@ gimp_prop_scale_entry_new (GObject *config,
|
||||||
|
|
||||||
set_param_spec (G_OBJECT (adjustment), NULL, param_spec);
|
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),
|
G_CALLBACK (gimp_prop_adjustment_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -1175,7 +1175,7 @@ gimp_prop_opacity_entry_new (GObject *config,
|
||||||
g_object_set_data (G_OBJECT (adjustment),
|
g_object_set_data (G_OBJECT (adjustment),
|
||||||
"opacity-scale", GINT_TO_POINTER (TRUE));
|
"opacity-scale", GINT_TO_POINTER (TRUE));
|
||||||
|
|
||||||
g_signal_connect (adjustment, "value_changed",
|
g_signal_connect (adjustment, "value-changed",
|
||||||
G_CALLBACK (gimp_prop_adjustment_callback),
|
G_CALLBACK (gimp_prop_adjustment_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -1393,7 +1393,7 @@ gimp_prop_memsize_entry_new (GObject *config,
|
||||||
GIMP_MEMSIZE_ENTRY (entry)->spinbutton,
|
GIMP_MEMSIZE_ENTRY (entry)->spinbutton,
|
||||||
param_spec);
|
param_spec);
|
||||||
|
|
||||||
g_signal_connect (entry, "value_changed",
|
g_signal_connect (entry, "value-changed",
|
||||||
G_CALLBACK (gimp_prop_memsize_callback),
|
G_CALLBACK (gimp_prop_memsize_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -1838,7 +1838,7 @@ gimp_prop_file_entry_new (GObject *config,
|
||||||
GIMP_FILE_ENTRY (entry)->entry,
|
GIMP_FILE_ENTRY (entry)->entry,
|
||||||
param_spec);
|
param_spec);
|
||||||
|
|
||||||
g_signal_connect (entry, "filename_changed",
|
g_signal_connect (entry, "filename-changed",
|
||||||
G_CALLBACK (gimp_prop_file_entry_callback),
|
G_CALLBACK (gimp_prop_file_entry_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -2114,7 +2114,7 @@ gimp_prop_path_editor_new (GObject *config,
|
||||||
g_object_set_data (G_OBJECT (editor), "gimp-config-param-spec-path",
|
g_object_set_data (G_OBJECT (editor), "gimp-config-param-spec-path",
|
||||||
path_param_spec);
|
path_param_spec);
|
||||||
|
|
||||||
g_signal_connect (editor, "path_changed",
|
g_signal_connect (editor, "path-changed",
|
||||||
G_CALLBACK (gimp_prop_path_editor_path_callback),
|
G_CALLBACK (gimp_prop_path_editor_path_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -2127,7 +2127,7 @@ gimp_prop_path_editor_new (GObject *config,
|
||||||
g_object_set_data (G_OBJECT (editor), "gimp-config-param-spec-writable",
|
g_object_set_data (G_OBJECT (editor), "gimp-config-param-spec-writable",
|
||||||
writable_param_spec);
|
writable_param_spec);
|
||||||
|
|
||||||
g_signal_connect (editor, "writable_changed",
|
g_signal_connect (editor, "writable-changed",
|
||||||
G_CALLBACK (gimp_prop_path_editor_writable_callback),
|
G_CALLBACK (gimp_prop_path_editor_writable_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -2396,7 +2396,7 @@ gimp_prop_size_entry_new (GObject *config,
|
||||||
g_object_set_data (G_OBJECT (sizeentry), "gimp-config-param-spec",
|
g_object_set_data (G_OBJECT (sizeentry), "gimp-config-param-spec",
|
||||||
param_spec);
|
param_spec);
|
||||||
|
|
||||||
g_signal_connect (sizeentry, "value_changed",
|
g_signal_connect (sizeentry, "value-changed",
|
||||||
G_CALLBACK (gimp_prop_size_entry_callback),
|
G_CALLBACK (gimp_prop_size_entry_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -2409,7 +2409,7 @@ gimp_prop_size_entry_new (GObject *config,
|
||||||
g_object_set_data (G_OBJECT (sizeentry), "gimp-config-param-spec-unit",
|
g_object_set_data (G_OBJECT (sizeentry), "gimp-config-param-spec-unit",
|
||||||
unit_param_spec);
|
unit_param_spec);
|
||||||
|
|
||||||
g_signal_connect (sizeentry, "unit_changed",
|
g_signal_connect (sizeentry, "unit-changed",
|
||||||
G_CALLBACK (gimp_prop_size_entry_callback),
|
G_CALLBACK (gimp_prop_size_entry_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -2742,10 +2742,10 @@ gimp_prop_coordinates_connect (GObject *config,
|
||||||
g_object_set_data (G_OBJECT (sizeentry), "chainbutton", chainbutton);
|
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),
|
G_CALLBACK (gimp_prop_coordinates_callback),
|
||||||
config);
|
config);
|
||||||
g_signal_connect (sizeentry, "refval_changed",
|
g_signal_connect (sizeentry, "refval-changed",
|
||||||
G_CALLBACK (gimp_prop_coordinates_callback),
|
G_CALLBACK (gimp_prop_coordinates_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -2767,7 +2767,7 @@ gimp_prop_coordinates_connect (GObject *config,
|
||||||
old_unit_value,
|
old_unit_value,
|
||||||
(GDestroyNotify) g_free);
|
(GDestroyNotify) g_free);
|
||||||
|
|
||||||
g_signal_connect (sizeentry, "unit_changed",
|
g_signal_connect (sizeentry, "unit-changed",
|
||||||
G_CALLBACK (gimp_prop_coordinates_callback),
|
G_CALLBACK (gimp_prop_coordinates_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -3042,7 +3042,7 @@ gimp_prop_color_area_new (GObject *config,
|
||||||
|
|
||||||
set_param_spec (G_OBJECT (area), area, param_spec);
|
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),
|
G_CALLBACK (gimp_prop_color_area_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
@ -3162,7 +3162,7 @@ gimp_prop_unit_menu_new (GObject *config,
|
||||||
|
|
||||||
set_param_spec (G_OBJECT (menu), menu, param_spec);
|
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),
|
G_CALLBACK (gimp_prop_unit_menu_callback),
|
||||||
config);
|
config);
|
||||||
|
|
||||||
|
|
|
@ -169,7 +169,7 @@ gimp_scrolled_preview_init (GimpScrolledPreview *preview)
|
||||||
G_CALLBACK (gimp_scrolled_preview_area_unrealize),
|
G_CALLBACK (gimp_scrolled_preview_area_unrealize),
|
||||||
preview);
|
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),
|
G_CALLBACK (gimp_scrolled_preview_area_size_allocate),
|
||||||
preview);
|
preview);
|
||||||
|
|
||||||
|
@ -183,7 +183,7 @@ gimp_scrolled_preview_init (GimpScrolledPreview *preview)
|
||||||
gtk_container_add (GTK_CONTAINER (preview->nav_icon), image);
|
gtk_container_add (GTK_CONTAINER (preview->nav_icon), image);
|
||||||
gtk_widget_show (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),
|
G_CALLBACK (gimp_scrolled_preview_nav_button_press),
|
||||||
preview);
|
preview);
|
||||||
}
|
}
|
||||||
|
|
|
@ -133,7 +133,7 @@ gimp_size_entry_class_init (GimpSizeEntryClass *klass)
|
||||||
parent_class = g_type_class_peek_parent (klass);
|
parent_class = g_type_class_peek_parent (klass);
|
||||||
|
|
||||||
gimp_size_entry_signals[VALUE_CHANGED] =
|
gimp_size_entry_signals[VALUE_CHANGED] =
|
||||||
g_signal_new ("value_changed",
|
g_signal_new ("value-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpSizeEntryClass, value_changed),
|
G_STRUCT_OFFSET (GimpSizeEntryClass, value_changed),
|
||||||
|
@ -142,7 +142,7 @@ gimp_size_entry_class_init (GimpSizeEntryClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_size_entry_signals[REFVAL_CHANGED] =
|
gimp_size_entry_signals[REFVAL_CHANGED] =
|
||||||
g_signal_new ("refval_changed",
|
g_signal_new ("refval-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpSizeEntryClass, refval_changed),
|
G_STRUCT_OFFSET (GimpSizeEntryClass, refval_changed),
|
||||||
|
@ -151,7 +151,7 @@ gimp_size_entry_class_init (GimpSizeEntryClass *klass)
|
||||||
G_TYPE_NONE, 0);
|
G_TYPE_NONE, 0);
|
||||||
|
|
||||||
gimp_size_entry_signals[UNIT_CHANGED] =
|
gimp_size_entry_signals[UNIT_CHANGED] =
|
||||||
g_signal_new ("unit_changed",
|
g_signal_new ("unit-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpSizeEntryClass, unit_changed),
|
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,
|
gtk_table_attach_defaults (GTK_TABLE (gse), gsef->value_spinbutton,
|
||||||
i+1, i+2,
|
i+1, i+2,
|
||||||
gse->show_refval+1, gse->show_refval+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),
|
G_CALLBACK (gimp_size_entry_value_callback),
|
||||||
gsef);
|
gsef);
|
||||||
|
|
||||||
|
@ -354,7 +354,7 @@ gimp_size_entry_new (gint number_of_fields,
|
||||||
gtk_table_attach_defaults (GTK_TABLE (gse), gsef->refval_spinbutton,
|
gtk_table_attach_defaults (GTK_TABLE (gse), gsef->refval_spinbutton,
|
||||||
i + 1, i + 2, 1, 2);
|
i + 1, i + 2, 1, 2);
|
||||||
g_signal_connect (gsef->refval_adjustment,
|
g_signal_connect (gsef->refval_adjustment,
|
||||||
"value_changed",
|
"value-changed",
|
||||||
G_CALLBACK (gimp_size_entry_refval_callback),
|
G_CALLBACK (gimp_size_entry_refval_callback),
|
||||||
gsef);
|
gsef);
|
||||||
|
|
||||||
|
@ -374,7 +374,7 @@ gimp_size_entry_new (gint number_of_fields,
|
||||||
i+2, i+3,
|
i+2, i+3,
|
||||||
gse->show_refval+1, gse->show_refval+2,
|
gse->show_refval+1, gse->show_refval+2,
|
||||||
GTK_SHRINK | GTK_FILL, GTK_SHRINK | GTK_FILL, 0, 0);
|
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),
|
G_CALLBACK (gimp_size_entry_unit_callback),
|
||||||
gse);
|
gse);
|
||||||
gtk_widget_show (gse->unitmenu);
|
gtk_widget_show (gse->unitmenu);
|
||||||
|
@ -434,7 +434,7 @@ gimp_size_entry_add_field (GimpSizeEntry *gse,
|
||||||
gsef->value_adjustment =
|
gsef->value_adjustment =
|
||||||
GTK_OBJECT (gtk_spin_button_get_adjustment (value_spinbutton));
|
GTK_OBJECT (gtk_spin_button_get_adjustment (value_spinbutton));
|
||||||
gsef->value_spinbutton = GTK_WIDGET (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),
|
G_CALLBACK (gimp_size_entry_value_callback),
|
||||||
gsef);
|
gsef);
|
||||||
|
|
||||||
|
@ -443,7 +443,7 @@ gimp_size_entry_add_field (GimpSizeEntry *gse,
|
||||||
gsef->refval_adjustment =
|
gsef->refval_adjustment =
|
||||||
GTK_OBJECT (gtk_spin_button_get_adjustment (refval_spinbutton));
|
GTK_OBJECT (gtk_spin_button_get_adjustment (refval_spinbutton));
|
||||||
gsef->refval_spinbutton = GTK_WIDGET (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),
|
G_CALLBACK (gimp_size_entry_refval_callback),
|
||||||
gsef);
|
gsef);
|
||||||
}
|
}
|
||||||
|
|
|
@ -109,7 +109,7 @@ gimp_unit_menu_class_init (GimpUnitMenuClass *klass)
|
||||||
* the #GimpUnitMenu.
|
* the #GimpUnitMenu.
|
||||||
**/
|
**/
|
||||||
gimp_unit_menu_signals[UNIT_CHANGED] =
|
gimp_unit_menu_signals[UNIT_CHANGED] =
|
||||||
g_signal_new ("unit_changed",
|
g_signal_new ("unit-changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_FIRST,
|
G_SIGNAL_RUN_FIRST,
|
||||||
G_STRUCT_OFFSET (GimpUnitMenuClass, unit_changed),
|
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);
|
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),
|
G_CALLBACK (gimp_unit_menu_selection_row_activated_callback),
|
||||||
menu);
|
menu);
|
||||||
|
|
||||||
|
|
|
@ -577,12 +577,12 @@ gimp_scale_entry_new_internal (gboolean color_scale,
|
||||||
1.0, digits);
|
1.0, digits);
|
||||||
|
|
||||||
g_signal_connect
|
g_signal_connect
|
||||||
(G_OBJECT (constrained_adj), "value_changed",
|
(G_OBJECT (constrained_adj), "value-changed",
|
||||||
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
|
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
|
||||||
adjustment);
|
adjustment);
|
||||||
|
|
||||||
g_signal_connect
|
g_signal_connect
|
||||||
(G_OBJECT (adjustment), "value_changed",
|
(G_OBJECT (adjustment), "value-changed",
|
||||||
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
|
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
|
||||||
constrained_adj);
|
constrained_adj);
|
||||||
|
|
||||||
|
@ -843,11 +843,11 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
|
||||||
scale_adj->step_increment = log_step_increment;
|
scale_adj->step_increment = log_step_increment;
|
||||||
scale_adj->page_increment = log_page_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),
|
G_CALLBACK (gimp_scale_entry_exp_adjustment_callback),
|
||||||
adj);
|
adj);
|
||||||
|
|
||||||
g_signal_connect (adj, "value_changed",
|
g_signal_connect (adj, "value-changed",
|
||||||
G_CALLBACK (gimp_scale_entry_log_adjustment_callback),
|
G_CALLBACK (gimp_scale_entry_log_adjustment_callback),
|
||||||
scale_adj);
|
scale_adj);
|
||||||
|
|
||||||
|
@ -883,11 +883,11 @@ gimp_scale_entry_set_logarithmic (GtkObject *adjustment,
|
||||||
scale_adj->step_increment = adj->step_increment;
|
scale_adj->step_increment = adj->step_increment;
|
||||||
scale_adj->page_increment = adj->page_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),
|
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
|
||||||
adj);
|
adj);
|
||||||
|
|
||||||
g_signal_connect (adj, "value_changed",
|
g_signal_connect (adj, "value-changed",
|
||||||
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
|
G_CALLBACK (gimp_scale_entry_unconstrained_adjustment_callback),
|
||||||
scale_adj);
|
scale_adj);
|
||||||
|
|
||||||
|
@ -995,7 +995,7 @@ gimp_random_seed_new (guint *seed,
|
||||||
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
gtk_box_pack_start (GTK_BOX (hbox), spinbutton, FALSE, FALSE, 0);
|
||||||
gtk_widget_show (spinbutton);
|
gtk_widget_show (spinbutton);
|
||||||
|
|
||||||
g_signal_connect (adj, "value_changed",
|
g_signal_connect (adj, "value-changed",
|
||||||
G_CALLBACK (gimp_uint_adjustment_update),
|
G_CALLBACK (gimp_uint_adjustment_update),
|
||||||
seed);
|
seed);
|
||||||
|
|
||||||
|
@ -1082,7 +1082,7 @@ gimp_coordinates_callback (GtkWidget *widget,
|
||||||
gcd->last_x = new_x;
|
gcd->last_x = new_x;
|
||||||
new_y = (new_x * gcd->orig_y) / gcd->orig_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,
|
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (widget), 1,
|
||||||
new_y);
|
new_y);
|
||||||
gcd->last_y
|
gcd->last_y
|
||||||
|
@ -1093,7 +1093,7 @@ gimp_coordinates_callback (GtkWidget *widget,
|
||||||
gcd->last_y = new_y;
|
gcd->last_y = new_y;
|
||||||
new_x = (new_y * gcd->orig_x) / gcd->orig_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,
|
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (widget), 0,
|
||||||
new_x);
|
new_x);
|
||||||
gcd->last_x
|
gcd->last_x
|
||||||
|
@ -1107,7 +1107,7 @@ gimp_coordinates_callback (GtkWidget *widget,
|
||||||
{
|
{
|
||||||
new_y = new_x;
|
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);
|
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (widget), 1, new_x);
|
||||||
gcd->last_y = gcd->last_x
|
gcd->last_y = gcd->last_x
|
||||||
= gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (widget), 1);
|
= gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (widget), 1);
|
||||||
|
@ -1116,7 +1116,7 @@ gimp_coordinates_callback (GtkWidget *widget,
|
||||||
{
|
{
|
||||||
new_x = new_y;
|
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);
|
gimp_size_entry_set_refval (GIMP_SIZE_ENTRY (widget), 0, new_y);
|
||||||
gcd->last_x = gcd->last_y
|
gcd->last_x = gcd->last_y
|
||||||
= gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (widget), 0);
|
= gimp_size_entry_get_refval (GIMP_SIZE_ENTRY (widget), 0);
|
||||||
|
@ -1273,7 +1273,7 @@ gimp_coordinates_new (GimpUnit unit,
|
||||||
G_CALLBACK (g_free),
|
G_CALLBACK (g_free),
|
||||||
gcd);
|
gcd);
|
||||||
|
|
||||||
g_signal_connect (sizeentry, "value_changed",
|
g_signal_connect (sizeentry, "value-changed",
|
||||||
G_CALLBACK (gimp_coordinates_callback),
|
G_CALLBACK (gimp_coordinates_callback),
|
||||||
gcd);
|
gcd);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue