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

« back to all changes in this revision

Viewing changes to libgimp/gimpgradientselect.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:
63
63
                          GimpRunGradientCallback  callback,
64
64
                          gpointer                 data)
65
65
{
66
 
  static GimpParamDef args[] =
 
66
  static const GimpParamDef args[] =
67
67
  {
68
 
    { GIMP_PDB_STRING,    "str",           "String" },
69
 
    { GIMP_PDB_INT32,     "grad width",    "Gradient width" },
70
 
    { GIMP_PDB_FLOATARRAY,"grad data",     "The gradient mask data" },
71
 
    { GIMP_PDB_INT32,     "dialog status", "If the dialog was closing "
72
 
                                           "[0 = No, 1 = Yes]" },
 
68
    { GIMP_PDB_STRING,    "str",            "String"                     },
 
69
    { GIMP_PDB_INT32,     "gradient width", "Gradient width"             },
 
70
    { GIMP_PDB_FLOATARRAY,"gradient data",  "The gradient mask data"     },
 
71
    { GIMP_PDB_INT32,     "dialog status",  "If the dialog was closing "
 
72
                                            "[0 = No, 1 = Yes]"          }
73
73
  };
74
74
 
75
75
  gchar *gradient_callback = gimp_procedural_db_temp_name ();
76
76
 
77
77
  gimp_install_temp_proc (gradient_callback,
78
 
                          "Temporary gradient popup callback procedure",
79
 
                          "",
80
 
                          "Andy Thomas",
81
 
                          "Andy Thomas",
82
 
                          "1997",
83
 
                          NULL,
84
 
                          "RGB*, GRAY*",
85
 
                          GIMP_TEMPORARY,
86
 
                          G_N_ELEMENTS (args), 0,
87
 
                          args, NULL,
88
 
                          gimp_temp_gradient_run);
 
78
                          "Temporary gradient popup callback procedure",
 
79
                          "",
 
80
                          "",
 
81
                          "",
 
82
                          "",
 
83
                          NULL,
 
84
                          "",
 
85
                          GIMP_TEMPORARY,
 
86
                          G_N_ELEMENTS (args), 0,
 
87
                          args, NULL,
 
88
                          gimp_temp_gradient_run);
89
89
 
90
90
  if (gimp_gradients_popup (gradient_callback, title, gradient_name,
91
91
                            sample_size))
97
97
      /* Now add to hash table so we can find it again */
98
98
      if (! gimp_gradient_select_ht)
99
99
        gimp_gradient_select_ht = g_hash_table_new_full (g_str_hash,
100
 
                                                         g_str_equal,
 
100
                                                         g_str_equal,
101
101
                                                         g_free, g_free);
102
102
 
103
103
      gradient_data = g_new0 (GimpGradientData, 1);