~ubuntu-branches/ubuntu/vivid/gimp/vivid

« back to all changes in this revision

Viewing changes to app/widgets/gimpprofilechooserdialog.c

  • Committer: Package Import Robot
  • Author(s): Jordi Mallach
  • Date: 2012-05-08 18:50:03 UTC
  • mto: (1.1.26) (0.5.1 experimental)
  • mto: This revision was merged to the branch mainline in revision 71.
  • Revision ID: package-import@ubuntu.com-20120508185003-tltkvbaysf8d2426
ImportĀ upstreamĀ versionĀ 2.8.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * GimpProfileChooserDialog
5
5
 * Copyright (C) 2006 Sven Neumann <sven@gimp.org>
6
6
 *
7
 
 * This program is free software; you can redistribute it and/or modify
 
7
 * This program is free software: you can redistribute it and/or modify
8
8
 * it under the terms of the GNU General Public License as published by
9
 
 * the Free Software Foundation; either version 2 of the License, or
 
9
 * the Free Software Foundation; either version 3 of the License, or
10
10
 * (at your option) any later version.
11
11
 *
12
12
 * This program is distributed in the hope that it will be useful,
15
15
 * GNU General Public License for more details.
16
16
 *
17
17
 * You should have received a copy of the GNU General Public License
18
 
 * along with this program; if not, write to the Free Software
19
 
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
 
18
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
20
19
 */
21
20
 
22
21
#include "config.h"
43
42
};
44
43
 
45
44
 
46
 
static void   gimp_profile_chooser_dialog_class_init     (GimpProfileChooserDialogClass *klass);
47
 
static void   gimp_profile_chooser_dialog_init           (GimpProfileChooserDialog *dialog);
48
 
static GObject * gimp_profile_chooser_dialog_constructor (GType                     type,
49
 
                                                          guint                     n_params,
50
 
                                                          GObjectConstructParam    *params);
51
 
 
 
45
static void   gimp_profile_chooser_dialog_constructed    (GObject                  *object);
52
46
static void   gimp_profile_chooser_dialog_dispose        (GObject                  *object);
53
47
static void   gimp_profile_chooser_dialog_finalize       (GObject                  *object);
54
48
static void   gimp_profile_chooser_dialog_set_property   (GObject                  *object,
78
72
{
79
73
  GObjectClass *object_class = G_OBJECT_CLASS (klass);
80
74
 
81
 
  object_class->constructor  = gimp_profile_chooser_dialog_constructor;
 
75
  object_class->constructed  = gimp_profile_chooser_dialog_constructed;
82
76
  object_class->dispose      = gimp_profile_chooser_dialog_dispose;
83
77
  object_class->finalize     = gimp_profile_chooser_dialog_finalize;
84
78
  object_class->get_property = gimp_profile_chooser_dialog_get_property;
99
93
  dialog->buffer  = gtk_text_buffer_new (NULL);
100
94
}
101
95
 
102
 
static GObject *
103
 
gimp_profile_chooser_dialog_constructor (GType                  type,
104
 
                                         guint                  n_params,
105
 
                                         GObjectConstructParam *params)
 
96
static void
 
97
gimp_profile_chooser_dialog_constructed (GObject *object)
106
98
{
107
 
  GObject                  *object;
108
 
  GimpProfileChooserDialog *dialog;
 
99
  GimpProfileChooserDialog *dialog = GIMP_PROFILE_CHOOSER_DIALOG (object);
109
100
  GtkFileFilter            *filter;
110
101
 
111
 
  object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
112
 
 
113
 
  dialog = GIMP_PROFILE_CHOOSER_DIALOG (object);
 
102
  if (G_OBJECT_CLASS (parent_class)->constructed)
 
103
    G_OBJECT_CLASS (parent_class)->constructed (object);
114
104
 
115
105
  gtk_window_set_role (GTK_WINDOW (dialog), "gimp-profile-chooser-dialog");
116
106
 
147
137
  g_signal_connect (dialog, "update-preview",
148
138
                    G_CALLBACK (gimp_profile_chooser_dialog_update_preview),
149
139
                    NULL);
150
 
 
151
 
  return object;
152
140
}
153
141
 
154
142
static void