After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 169370 - no way to set a new palettes columns via script
no way to set a new palettes columns via script
Status: RESOLVED FIXED
Product: GIMP
Classification: Other
Component: libgimp
git master
Other All
: Low enhancement
: 2.4
Assigned To: GIMP Bugs
GIMP Bugs
Depends on:
Blocks:
 
 
Reported: 2005-03-06 10:58 UTC by Carol
Modified: 2005-03-08 14:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Carol 2005-03-06 10:58:34 UTC
Compare a gimp palette file with the gimp palette dialog. 

GIMP Palette
Name: Default copy
Columns: 4
#
255   0   0     Red
255   0 255     Magenta
  0   0 255     Blue

...

 76  76  76     Gray 30%
102 102 102     Gray 40%
127 127 127     Gray 50%
153 153 153     Gray 60%

gimp palette scripted calls only return the number of colors and there is no way
to set the column number from a script.
Comment 1 Sven Neumann 2005-03-08 14:45:05 UTC
2005-03-08  Sven Neumann  <sven@gimp.org>

	* app/core/gimppalette.[ch]: renamed gimp_palette_[gs]et_n_columns
	to gimp_palette_[gs]et_num_columns().

	* app/dialogs/palette-import-dialog.c
	* app/widgets/gimppaletteeditor.c: changed accordingly.

	* tools/pdbgen/pdb/palette.pdb: added new PDB function to control
	the number of columns used when displaying a palette (bug #169370).

	* app/pdb/internal_procs.c
	* app/pdb/palette_cmds.c
	* libgimp/gimppalette_pdb.[ch]: regenerated.

	* libgimp/gimp.def: updated.