Commit 908f727f authored by Michael Natterer's avatar Michael Natterer 😴

Chain up unconditionally in GObject::constructed()

It's supported since GLib 2.28.
parent c914aa80
......@@ -81,8 +81,7 @@ gimp_brush_cache_constructed (GObject *object)
{
GimpBrushCache *cache = GIMP_BRUSH_CACHE (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (cache->data_destroy != NULL);
}
......
......@@ -98,8 +98,7 @@ gimp_brush_clipboard_constructed (GObject *object)
{
GimpBrushClipboard *brush = GIMP_BRUSH_CLIPBOARD (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GIMP (brush->gimp));
......
......@@ -62,8 +62,7 @@ gimp_channel_prop_undo_constructed (GObject *object)
GimpChannelPropUndo *channel_prop_undo = GIMP_CHANNEL_PROP_UNDO (object);
GimpChannel *channel;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_CHANNEL (GIMP_ITEM_UNDO (object)->item));
......
......@@ -103,8 +103,7 @@ gimp_channel_undo_init (GimpChannelUndo *undo)
static void
gimp_channel_undo_constructed (GObject *object)
{
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_CHANNEL (GIMP_ITEM_UNDO (object)->item));
}
......
......@@ -775,8 +775,7 @@ gimp_context_constructed (GObject *object)
Gimp *gimp;
GimpContainer *container;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp = GIMP_CONTEXT (object)->gimp;
......
......@@ -247,8 +247,7 @@ gimp_data_init (GimpData *data,
static void
gimp_data_constructed (GObject *object)
{
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_data_thaw (GIMP_DATA (object));
}
......
......@@ -97,8 +97,7 @@ gimp_drawable_mod_undo_constructed (GObject *object)
GimpItem *item;
GimpDrawable *drawable;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_DRAWABLE (GIMP_ITEM_UNDO (object)->item));
......
......@@ -113,8 +113,7 @@ gimp_drawable_stack_constructed (GObject *object)
{
GimpContainer *container = GIMP_CONTAINER (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (g_type_is_a (gimp_container_get_children_type (container),
GIMP_TYPE_DRAWABLE));
......
......@@ -108,8 +108,7 @@ gimp_drawable_undo_constructed (GObject *object)
{
GimpDrawableUndo *drawable_undo = GIMP_DRAWABLE_UNDO (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_DRAWABLE (GIMP_ITEM_UNDO (object)->item));
g_assert (drawable_undo->buffer != NULL);
......
......@@ -122,8 +122,7 @@ gimp_filtered_container_constructed (GObject *object)
{
GimpFilteredContainer *filtered_container = GIMP_FILTERED_CONTAINER (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_CONTAINER (filtered_container->src_container));
......
......@@ -61,8 +61,7 @@ gimp_floating_sel_undo_constructed (GObject *object)
GimpFloatingSelUndo *floating_sel_undo = GIMP_FLOATING_SEL_UNDO (object);
GimpLayer *layer;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_LAYER (GIMP_ITEM_UNDO (object)->item));
......
......@@ -60,8 +60,7 @@ gimp_group_layer_undo_constructed (GObject *object)
GimpGroupLayerUndo *group_layer_undo = GIMP_GROUP_LAYER_UNDO (object);
GimpGroupLayer *group;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GROUP_LAYER (GIMP_ITEM_UNDO (object)->item));
......
......@@ -86,8 +86,7 @@ gimp_guide_undo_constructed (GObject *object)
{
GimpGuideUndo *guide_undo = GIMP_GUIDE_UNDO (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GUIDE (guide_undo->guide));
......
......@@ -740,8 +740,7 @@ gimp_image_constructed (GObject *object)
GimpCoreConfig *config;
GimpTemplate *template;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GIMP (image->gimp));
......
......@@ -150,8 +150,7 @@ gimp_image_undo_constructed (GObject *object)
GimpImageUndo *image_undo = GIMP_IMAGE_UNDO (object);
GimpImage *image;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
image = GIMP_UNDO (object)->image;
......
......@@ -338,8 +338,7 @@ gimp_item_constructed (GObject *object)
{
GimpItemPrivate *private = GET_PRIVATE (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_IMAGE (private->image));
g_assert (private->ID != 0);
......
......@@ -97,8 +97,7 @@ gimp_item_prop_undo_constructed (GObject *object)
GimpItemPropUndo *item_prop_undo = GIMP_ITEM_PROP_UNDO (object);
GimpItem *item;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
item = GIMP_ITEM_UNDO (object)->item;
......
......@@ -67,8 +67,7 @@ gimp_item_stack_constructed (GObject *object)
{
GimpContainer *container = GIMP_CONTAINER (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (g_type_is_a (gimp_container_get_children_type (container),
GIMP_TYPE_ITEM));
......
......@@ -147,8 +147,7 @@ gimp_item_tree_constructed (GObject *object)
GimpItemTree *tree = GIMP_ITEM_TREE (object);
GimpItemTreePrivate *private = GIMP_ITEM_TREE_GET_PRIVATE (tree);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_IMAGE (private->image));
g_assert (g_type_is_a (private->container_type, GIMP_TYPE_ITEM_STACK));
......
......@@ -81,8 +81,7 @@ gimp_item_undo_constructed (GObject *object)
{
GimpItemUndo *item_undo = GIMP_ITEM_UNDO (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_ITEM (item_undo->item));
}
......
......@@ -62,8 +62,7 @@ gimp_layer_mask_prop_undo_constructed (GObject *object)
layer_mask_prop_undo = GIMP_LAYER_MASK_PROP_UNDO (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_LAYER (GIMP_ITEM_UNDO (object)->item));
......
......@@ -92,8 +92,7 @@ gimp_layer_mask_undo_constructed (GObject *object)
{
GimpLayerMaskUndo *layer_mask_undo = GIMP_LAYER_MASK_UNDO (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_LAYER (GIMP_ITEM_UNDO (object)->item));
g_assert (GIMP_IS_LAYER_MASK (layer_mask_undo->layer_mask));
......
......@@ -62,8 +62,7 @@ gimp_layer_prop_undo_constructed (GObject *object)
GimpLayerPropUndo *layer_prop_undo = GIMP_LAYER_PROP_UNDO (object);
GimpLayer *layer;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_LAYER (GIMP_ITEM_UNDO (object)->item));
......
......@@ -101,8 +101,7 @@ gimp_layer_undo_init (GimpLayerUndo *undo)
static void
gimp_layer_undo_constructed (GObject *object)
{
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_LAYER (GIMP_ITEM_UNDO (object)->item));
}
......
......@@ -97,8 +97,7 @@ gimp_mask_undo_constructed (GObject *object)
GimpDrawable *drawable;
gint x1, y1, x2, y2;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_CHANNEL (GIMP_ITEM_UNDO (object)->item));
......
......@@ -99,8 +99,7 @@ gimp_pattern_clipboard_constructed (GObject *object)
{
GimpPatternClipboard *pattern = GIMP_PATTERN_CLIPBOARD (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GIMP (pattern->gimp));
......
......@@ -174,8 +174,7 @@ gimp_pdb_progress_constructed (GObject *object)
{
GimpPdbProgress *progress = GIMP_PDB_PROGRESS (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_PDB (progress->pdb));
g_assert (GIMP_IS_CONTEXT (progress->context));
......
......@@ -86,8 +86,7 @@ gimp_sample_point_undo_constructed (GObject *object)
{
GimpSamplePointUndo *sample_point_undo = GIMP_SAMPLE_POINT_UNDO (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (sample_point_undo->sample_point != NULL);
......
......@@ -177,8 +177,7 @@ gimp_tool_preset_constructed (GObject *object)
{
GimpToolPreset *preset = GIMP_TOOL_PRESET (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GIMP (preset->gimp));
}
......
......@@ -179,8 +179,7 @@ gimp_undo_constructed (GObject *object)
{
GimpUndo *undo = GIMP_UNDO (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_IMAGE (undo->image));
}
......
......@@ -191,8 +191,7 @@ gimp_canvas_item_constructed (GObject *object)
private->change_count = 0; /* undo hack from init() */
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
}
static void
......
......@@ -363,8 +363,7 @@ gimp_display_shell_constructed (GObject *object)
gint shell_width;
gint shell_height;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_UI_MANAGER (shell->popup_manager));
g_assert (GIMP_IS_DISPLAY (shell->display));
......
......@@ -129,8 +129,7 @@ gimp_scale_combo_box_constructed (GObject *object)
GtkBorder border = { 0, 0, 0, 0 };
gint i;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
store = gtk_list_store_new (N_COLUMNS,
G_TYPE_DOUBLE, /* SCALE */
......
......@@ -65,8 +65,7 @@ gimp_ink_undo_constructed (GObject *object)
GimpInkUndo *ink_undo = GIMP_INK_UNDO (object);
GimpInk *ink;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_INK (GIMP_PAINT_CORE_UNDO (ink_undo)->paint_core));
......
......@@ -84,8 +84,7 @@ gimp_paint_core_undo_constructed (GObject *object)
{
GimpPaintCoreUndo *paint_core_undo = GIMP_PAINT_CORE_UNDO (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_PAINT_CORE (paint_core_undo->paint_core));
......
......@@ -164,8 +164,7 @@ gimp_pdb_context_constructed (GObject *object)
gint threshold;
GParamSpec *pspec;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
/* get default interpolation from gimprc */
......
......@@ -100,8 +100,7 @@ gimp_text_undo_constructed (GObject *object)
GimpTextUndo *text_undo = GIMP_TEXT_UNDO (object);
GimpTextLayer *layer;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_TEXT_LAYER (GIMP_ITEM_UNDO (text_undo)->item));
......
......@@ -168,8 +168,7 @@ gimp_align_tool_constructed (GObject *object)
GimpAlignTool *align_tool = GIMP_ALIGN_TOOL (object);
GimpAlignOptions *options;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
options = GIMP_ALIGN_TOOL_GET_OPTIONS (align_tool);
......
......@@ -129,8 +129,7 @@ gimp_brush_tool_constructed (GObject *object)
GimpBrushTool *brush_tool = GIMP_BRUSH_TOOL (object);
GimpDisplayConfig *display_config;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_BRUSH_CORE (paint_tool->core));
......
......@@ -130,8 +130,7 @@ gimp_color_picker_tool_constructed (GObject *object)
{
GimpTool *tool = GIMP_TOOL (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_color_tool_enable (GIMP_COLOR_TOOL (object),
GIMP_COLOR_TOOL_GET_OPTIONS (tool));
......
......@@ -178,8 +178,7 @@ gimp_crop_tool_constructed (GObject *object)
GimpContext *gimp_context;
GimpToolInfo *tool_info;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_rectangle_tool_constructor (object);
......
......@@ -207,8 +207,7 @@ gimp_foreground_select_tool_constructed (GObject *object)
{
GimpToolOptions *options = GIMP_TOOL_GET_OPTIONS (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_signal_connect_object (options, "notify",
G_CALLBACK (gimp_foreground_select_options_notify),
......
......@@ -89,8 +89,7 @@ gimp_foreground_select_tool_undo_constructed (GObject *object)
{
GimpForegroundSelectToolUndo *fg_select_tool_undo;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
fg_select_tool_undo = GIMP_FOREGROUND_SELECT_TOOL_UNDO (object);
......
......@@ -232,8 +232,7 @@ gimp_image_map_tool_constructed (GObject *object)
GimpImageMapTool *image_map_tool = GIMP_IMAGE_MAP_TOOL (object);
GimpImageMapToolClass *klass;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
klass = GIMP_IMAGE_MAP_TOOL_GET_CLASS (image_map_tool);
......
......@@ -150,8 +150,7 @@ gimp_paint_tool_constructed (GObject *object)
GimpPaintOptions *options = GIMP_PAINT_TOOL_GET_OPTIONS (tool);
GimpPaintInfo *paint_info;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_TOOL_INFO (tool->tool_info));
g_assert (GIMP_IS_PAINT_INFO (tool->tool_info->paint_info));
......
......@@ -179,8 +179,7 @@ gimp_perspective_clone_tool_constructed (GObject *object)
GimpPerspectiveCloneTool *clone_tool = GIMP_PERSPECTIVE_CLONE_TOOL (object);
GimpPerspectiveCloneOptions *options;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
options = GIMP_PERSPECTIVE_CLONE_TOOL_GET_OPTIONS (tool);
......
......@@ -246,8 +246,7 @@ gimp_rectangle_select_tool_constructed (GObject *object)
GimpRectangleSelectOptions *options;
GimpRectangleSelectToolPrivate *priv;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_rectangle_tool_constructor (object);
......
......@@ -278,8 +278,7 @@ gimp_text_tool_constructed (GObject *object)
GimpTextTool *text_tool = GIMP_TEXT_TOOL (object);
GimpTextOptions *options = GIMP_TEXT_TOOL_GET_OPTIONS (text_tool);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_rectangle_tool_constructor (object);
......
......@@ -192,8 +192,7 @@ gimp_tool_constructed (GObject *object)
{
GimpTool *tool = GIMP_TOOL (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_TOOL_INFO (tool->tool_info));
......
......@@ -89,8 +89,7 @@ gimp_transform_tool_undo_constructed (GObject *object)
GimpTransformTool *transform_tool;
gint i;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_TRANSFORM_TOOL (transform_tool_undo->transform_tool));
......
......@@ -68,8 +68,7 @@ gimp_vectors_mod_undo_constructed (GObject *object)
GimpVectorsModUndo *vectors_mod_undo = GIMP_VECTORS_MOD_UNDO (object);
GimpVectors *vectors;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_VECTORS (GIMP_ITEM_UNDO (object)->item));
......
......@@ -60,8 +60,7 @@ gimp_vectors_prop_undo_constructed (GObject *object)
{
/* GimpVectors *vectors; */
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_VECTORS (GIMP_ITEM_UNDO (object)->item));
......
......@@ -102,8 +102,7 @@ gimp_vectors_undo_init (GimpVectorsUndo *undo)
static void
gimp_vectors_undo_constructed (GObject *object)
{
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_VECTORS (GIMP_ITEM_UNDO (object)->item));
}
......
......@@ -115,8 +115,7 @@ gimp_action_group_constructed (GObject *object)
GimpActionGroup *group = GIMP_ACTION_GROUP (object);
const gchar *name;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_GIMP (group->gimp));
......
......@@ -223,8 +223,7 @@ gimp_brush_editor_init (GimpBrushEditor *editor)
static void
gimp_brush_editor_constructed (GObject *object)
{
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_docked_set_show_button_bar (GIMP_DOCKED (object), FALSE);
}
......
......@@ -135,8 +135,7 @@ gimp_brush_select_constructed (GObject *object)
GtkWidget *label;
GtkAdjustment *spacing_adj;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_context_set_opacity (dialog->context, select->initial_opacity);
gimp_context_set_paint_mode (dialog->context, select->initial_mode);
......
......@@ -158,8 +158,7 @@ gimp_channel_tree_view_constructed (GObject *object)
GdkModifierType extend_mask;
GdkModifierType modify_mask;
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
extend_mask = gtk_widget_get_modifier_mask (GTK_WIDGET (object),
GDK_MODIFIER_INTENT_EXTEND_SELECTION);
......
......@@ -220,8 +220,7 @@ gimp_colormap_editor_constructed (GObject *object)
{
GimpColormapEditor *editor = GIMP_COLORMAP_EDITOR (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
gimp_editor_add_action_button (GIMP_EDITOR (editor), "colormap",
"colormap-edit-color",
......
......@@ -104,8 +104,7 @@ gimp_combo_tag_entry_constructed (GObject *object)
{
GimpComboTagEntry *entry = GIMP_COMBO_TAG_ENTRY (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_signal_connect_object (GIMP_TAG_ENTRY (entry)->container,
"tag-count-changed",
......
......@@ -121,8 +121,7 @@ gimp_container_box_constructed (GObject *object)
gimp_container_view_set_dnd_widget (GIMP_CONTAINER_VIEW (box),
box->scrolled_win);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
}
void
......
......@@ -224,8 +224,7 @@ gimp_container_editor_constructed (GObject *object)
{
GimpContainerEditor *editor = GIMP_CONTAINER_EDITOR (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
g_assert (GIMP_IS_CONTAINER (editor->priv->container));
g_assert (GIMP_IS_CONTEXT (editor->priv->context));
......
......@@ -182,8 +182,7 @@ gimp_container_icon_view_constructed (GObject *object)
GimpContainerView *view = GIMP_CONTAINER_VIEW (object);
GimpContainerBox *box = GIMP_CONTAINER_BOX (object);
if (G_OBJECT_CLASS (parent_class)->constructed)
G_OBJECT_CLASS (parent_class)->constructed (object);
G_OBJECT_CLASS (parent_class)->constructed (object);
icon_view->model = gimp_container_tree_store_new (view,
icon_view->n_model_columns,
......
......@@ -117,8 +117,7 @@ gimp_container_tree_store_init (GimpContainerTreeStore *store)
static void
gimp_container_tree_store_constructed (GObject *object)
{