~ubuntu-branches/ubuntu/jaunty/gimp/jaunty-security

« back to all changes in this revision

Viewing changes to app/widgets/gimpmessagedialog.c

  • Committer: Bazaar Package Importer
  • Author(s): Daniel Holbach
  • Date: 2007-05-02 16:33:03 UTC
  • mfrom: (1.1.4 upstream)
  • Revision ID: james.westby@ubuntu.com-20070502163303-bvzhjzbpw8qglc4y
Tags: 2.3.16-1ubuntu1
* Resynchronized with Debian, remaining Ubuntu changes:
  - debian/rules: i18n magic.
* debian/control.in:
  - Maintainer: Ubuntu Core Developers <ubuntu-devel@lists.ubuntu.com>
* debian/patches/02_help-message.patch,
  debian/patches/03_gimp.desktop.in.in.patch,
  debian/patches/10_dont_show_wizard.patch: updated.
* debian/patches/04_composite-signedness.patch,
  debian/patches/05_add-letter-spacing.patch: dropped, used upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* The GIMP -- an image manipulation program
 
1
/* GIMP - The GNU Image Manipulation Program
2
2
 * Copyright (C) 1995 Spencer Kimball and Peter Mattis
3
3
 *
4
4
 * gimpmessagedialog.c
31
31
#include "gimpmessagedialog.h"
32
32
 
33
33
 
34
 
GType
35
 
gimp_message_dialog_get_type (void)
36
 
{
37
 
  static GType dialog_type = 0;
38
 
 
39
 
  if (! dialog_type)
40
 
    {
41
 
      static const GTypeInfo dialog_info =
42
 
      {
43
 
        sizeof (GimpMessageDialogClass),
44
 
        (GBaseInitFunc) NULL,
45
 
        (GBaseFinalizeFunc) NULL,
46
 
        NULL,           /* class_init     */
47
 
        NULL,           /* class_finalize */
48
 
        NULL,           /* class_data     */
49
 
        sizeof (GimpMessageDialog),
50
 
        0,              /* n_preallocs    */
51
 
        NULL            /* instance_init  */
52
 
      };
53
 
 
54
 
      dialog_type = g_type_register_static (GIMP_TYPE_DIALOG,
55
 
                                            "GimpMessageDialog",
56
 
                                            &dialog_info, 0);
57
 
    }
58
 
 
59
 
  return dialog_type;
 
34
G_DEFINE_TYPE (GimpMessageDialog, gimp_message_dialog, GIMP_TYPE_DIALOG)
 
35
 
 
36
 
 
37
static void
 
38
gimp_message_dialog_class_init (GimpMessageDialogClass *klass)
 
39
{
 
40
}
 
41
 
 
42
static void
 
43
gimp_message_dialog_init (GimpMessageDialog *dialog)
 
44
{
60
45
}
61
46
 
62
47
 
112
97
  va_end (args);
113
98
 
114
99
  dialog->box = g_object_new (GIMP_TYPE_MESSAGE_BOX,
115
 
                              "stock_id",  stock_id,
 
100
                              "stock-id",  stock_id,
116
101
                              NULL);
117
102
 
118
103
  gtk_box_pack_start (GTK_BOX (GTK_DIALOG (dialog)->vbox),