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

« back to all changes in this revision

Viewing changes to app/widgets/gimpcontrollerwheel.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
 * gimpcontrollerwheel.c
5
5
 * Copyright (C) 2004 Michael Natterer <mitch@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"
48
47
};
49
48
 
50
49
 
51
 
static GObject     * gimp_controller_wheel_constructor     (GType           type,
52
 
                                                            guint           n_params,
53
 
                                                            GObjectConstructParam *params);
 
50
static void          gimp_controller_wheel_constructed     (GObject        *object);
54
51
 
55
52
static gint          gimp_controller_wheel_get_n_events    (GimpController *controller);
56
53
static const gchar * gimp_controller_wheel_get_event_name  (GimpController *controller,
175
172
  GObjectClass        *object_class     = G_OBJECT_CLASS (klass);
176
173
  GimpControllerClass *controller_class = GIMP_CONTROLLER_CLASS (klass);
177
174
 
178
 
  object_class->constructor         = gimp_controller_wheel_constructor;
 
175
  object_class->constructed         = gimp_controller_wheel_constructed;
179
176
 
180
177
  controller_class->name            = _("Mouse Wheel");
181
178
  controller_class->help_id         = GIMP_HELP_CONTROLLER_WHEEL;
211
208
    }
212
209
}
213
210
 
214
 
static GObject *
215
 
gimp_controller_wheel_constructor (GType                  type,
216
 
                                   guint                  n_params,
217
 
                                   GObjectConstructParam *params)
 
211
static void
 
212
gimp_controller_wheel_constructed (GObject *object)
218
213
{
219
 
  GObject *object;
220
 
 
221
 
  object = G_OBJECT_CLASS (parent_class)->constructor (type, n_params, params);
 
214
  if (G_OBJECT_CLASS (parent_class)->constructed)
 
215
    G_OBJECT_CLASS (parent_class)->constructed (object);
222
216
 
223
217
  g_object_set (object,
224
218
                "name",  _("Mouse Wheel Events"),
225
219
                "state", _("Ready"),
226
220
                NULL);
227
 
 
228
 
  return object;
229
221
}
230
222
 
231
223
static gint