Giter Site home page Giter Site logo

thezbyg / gpick Goto Github PK

View Code? Open in Web Editor NEW
372.0 372.0 33.0 5.45 MB

Advanced color picker written in C++ using GTK+ toolkit

License: BSD 3-Clause "New" or "Revised" License

Python 1.72% Makefile 0.06% Lua 0.69% C++ 83.93% C 11.80% Roff 0.08% Ragel 0.72% CMake 1.00%

gpick's People

Contributors

0ion9 avatar bmwiedemann avatar eson57 avatar marcuscalhoun-lopez avatar prokoudine avatar rmg-90 avatar ryandesign avatar thezbyg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gpick's Issues

gpl export writes colors in wrong order.

Original issue 33 created by thezbyg on 2011-04-30T00:14:22.000Z:

What steps will reproduce the problem?

  1. load the attached .gpa (or create your own)
  2. export a gpl
  3. drag some colors to a new position; remove them from the old position.
  4. export a gpl with a different filename

result: the two exported gpls match. That is, the coloring order matches, rather than being rearranged.

Performing the [export, arrange colors in gpl, new file, import from gpl]
sequence results in the next 'export to gpl' giving correct results.

(Thanks for responding so promptly to issue # 32 :)

Will gpick be added to Canonical's official repos ?

Original issue 18 created by thezbyg on 2010-08-19T23:51:08.000Z:

Apologies for taking out an "issue" regarding this - but gpick is a great little tool and was wondering whether there has been any interest from Canonical in adding it to their official repositories ? It's the kind of tool that people would want to search for in the Software center, e.g., "Color Picker". Currently only people who find this site (or add the PPA) will be aware :-)

Cheers,

Patrick

install on ubuntu fails to find required library liblua

Original issue 41 created by thezbyg on 2011-06-01T15:23:20.000Z:

What steps will reproduce the problem?
1.download gpick_0.2.4-2_i386.deb and install
2.
3.

What is the expected output? What do you see instead?
Failed to fetch http://us.archive.ubuntu.com/ubuntu/pool/main/l/lua5.1/liblua5.1-0_5.1.4-2_i386.deb 404 Not Found [IP: 91.189.92.171 80]

What version of the product are you using? On what operating system?
0.2.4 on Ubuntu 9.04

Please provide any additional information below.
Other versions of liblua are available at us.archive.ubuntu.com, but the required one is not.

Add numeric values on color picker

Original issue 46 created by thezbyg on 2011-08-23T20:08:13.000Z:

It will be very usefull to add numeric values near to color bars.

For example:

v RGB

[========A=========] 110
[=================A] 250
[==A===============] 75

So, users can see and type the RGB (or HSV, SHL, CMYK, etc.) values directly.

I know you can copy they using the right mouse clic over the color palette, but if you can not paste they on the destination application, the method I propose will be more useful.

A nice improvement will be to allow type the numeric values too.

Thanks! ;)

Error installing

Original issue 2 created by thezbyg on 2009-04-17T22:15:56.000Z:

What steps will reproduce the problem?

  1. make
  2. make install

What is the expected output? What do you see instead?
I've got an error while installing gpick:
install -c -m 755 bin/gpick /usr/local/bin/gpick
install -c -m 644 res/falloff-cubic.png -D
/usr/local/share/gpick/falloff-cubic.png
install -c -m 644 res/falloff-linear.png
/usr/local/share/gpick/falloff-linear.png
install -c -m 644 res/falloff-none.png /usr/local/share/gpick/falloff-none.png
install -c -m 644 res/falloff-quadratic.png
/usr/local/share/gpick/falloff-quadratic.png
install -c -m 644 res/falloff-exponential.png
/usr/local/share/gpick/falloff-exponential.png
install -c -m 644 res/colors.txt /usr/local/share/gpick/colors.txt
install -c -m 644 res/colors0.txt /usr/local/share/gpick/colors0.txt
install -c -m 644 res/gpick.png
/usr/local/share/icons/hicolor/48x48/apps/gpick.png
install: can't create file
`/usr/local/share/icons/hicolor/48x48/apps/gpick.png': No such file or
directory
make: *** [install] Error 1

But it's compiled and works OK.

What version of the product are you using? On what operating system?
svn revision 35. Fedora 10 (Gnome)

Please provide any additional information below.
Great little tool :-)

[Feature Request] Copy HEX to clipboard without the "#"

Original issue 16 created by thezbyg on 2010-01-25T15:30:43.000Z:

It's a feature request, but not an important one : Stupidly in Photoshop
CS2,CS3 or even CS4, we can't paste #HEX value with the "#" directly inside
Photoshop color swatch. To me, Photoshop is certainly missing something
here but, if it's possible to add, I would like the ability in gpick to
copy hex value to the clipboard with or without the "#".
I know it look like a stupid and not important feature request, but i can't
stop blaming Adobe for it...
What do you think about it ?

LAB mixing mode for "color mixer"

Original issue 30 created by thezbyg on 2011-04-28T00:28:07.000Z:

LAB mixing mode improves gradients between colors of a very different hue,
eg between 120, 20, 26 and 80,153,78. (dark red and medium green).
It also improves the general evenness of gradients compared to RGB mode.

Unified diff of source/uiDialogMix.cpp attached.

gpick will not compile -- gets stuck at source/cssparser/css_grammar_wrap.cpp

Original issue 29 created by thezbyg on 2011-04-27T13:13:14.000Z:

  1. run 'scons' in the gpick hg checkout directory
  2. build continues okay until reaching css parsing.

flex --header-file=build/source/cssparser/css_lex.h -o build/source/cssparser/css_lex.cpp source/cssparser/css_lex.l
buildAction(["build/source/cssparser/css_grammar.c", "build/source/cssparser/css_grammar.h", "build/source/cssparser/css_grammar.c"], ["source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y"])
Copy("build/lempar.c", "extern/lempar.c")
Copy("build/source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y")
Delete("build/source/cssparser/css_grammar.y")
Compiling ==> build/source/cssparser/css_grammar_wrap.o
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c: In function ‘int yy_find_shift_action(yyParser*, unsigned char)’:
../build/source/cssparser/css_grammar.c:667:15: error: ‘YY_SHIFT_COUNT’ was not declared in this scope
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c:673:17: error: ‘YY_ACTTAB_COUNT’ was not declared in this scope
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c: In function ‘int yy_find_reduce_action(int, unsigned char)’:
../build/source/cssparser/css_grammar.c:731:15: error: ‘YY_REDUCE_COUNT’ was not declared in this scope
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c:742:17: error: ‘YY_ACTTAB_COUNT’ was not declared in this scope

I am using gcc 4.6, scons 2.0.1, flex 2.5.35 on Arch Linux.
I encountered this bug while adding a 'LAB' mixing mode to 'Mix Colors'. It occurs whether or not I have modified any code.

I tried copying in a more recent lempar.c from http://code.google.com/p/lemonbind/source/browse/lempar.c -- That reduces the errors but does not eliminate them

buildAction(["build/source/cssparser/css_grammar.c", "build/source/cssparser/css_grammar.h", "build/source/cssparser/css_grammar.c"], ["source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y"])
Copy("build/lempar.c", "extern/lempar.c")
Copy("build/source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y")
Delete("build/source/cssparser/css_grammar.y")
Compiling ==> build/source/cssparser/css_grammar_wrap.o
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c:101:26: error: uninitialized const ‘yyzerominor’ [-fpermissive]
../build/source/cssparser/css_grammar.c:70:15: note: ‘const union YYMINORTYPE’ has no user-provided default constructor
In file included from source/cssparser/css_grammar_wrap.cpp:20:0:
../build/source/cssparser/css_grammar.c: In function ‘void yy_reduce(yyParser_, int)’:
../build/source/cssparser/css_grammar.c:965:39: error: ‘yytestcase’ was not declared in this scope
scons: *_* [build/source/cssparser/css_grammar_wrap.o] Error 1

Crash when launch with an error message in XP

Original issue 7 created by thezbyg on 2009-09-08T16:10:14.000Z:

  1. gpick 1.52 installed just fine in XP
  2. When gpick is loading, it crashes and close with this error :
    "g_assert_warning is not found in the dynamic link library
    libglib-2.0-0.dll" (sorry, translate from french)
    Screenshot provided.

Provide more keyboard shortcuts

Original issue 31 created by thezbyg on 2011-04-29T09:36:11.000Z:

General usage speed could be improved by assigning some shortcuts:

  • 'p' for the color pick button on the status bar
  • 1,2,3,4,5,6 to switch the 'active' color in the comparison display
  • alt+p,s,o to switch tabs

I'm happy to look into this.

Segmentation Fault in Ubuntu amd64

Original issue 11 created by thezbyg on 2009-09-17T04:40:11.000Z:

What steps will reproduce the problem?

  1. Install amd64 deb
  2. Run gpick

What is the expected output? What do you see instead?
-- Unkown, never used.

What version of the product are you using? On what operating system?
-- latest DEB available in downloads for amd64

Please provide any additional information below.
-- terminal gives the error: Segmentation fault, when running gpick.

GPL Export rounding error

Original issue 45 created by thezbyg on 2011-07-17T10:41:00.000Z:

  1. Mix # 80ffff with #ffffff using LAB mixer, 3 steps.
    The results will be 80FFFF C8FFFF FFFFFF,
    which makes the 5 colors present in your palette, in order,

80FFFF FFFFFF 80FFFF C8FFFF FFFFFF.

  1. Export to a gpl file
  2. Import that gpl file

The imported hex values are different from the ones that are shown before export.
The values I get on the imported colors:

7FFFFF FFFFFF 7FFEFF C7FFFE FFFFFE

I verified this as rounding error by adding this to the LAB mixing code after the color_rgb_normalize() call:

                                            r.rgb.red += (0.49999/255.);
                                            r.rgb.green += (0.49999/255.);
                                           r.rgb.blue += (0.49999/255.);

(which makes this test succeed -- the export->imported palette has the same hex values as GPick showed before export.)

I believe that the exported values are being truncated rather than rounded. This results in occasional off-by-one errors.

Small patch attached to fix GPL exporting accuracy. It rounds the RGB values after they are multiplied up to the scale [0..255], in the function used by the exporter.

Add "Recent color palettes" menú item

Original issue 22 created by thezbyg on 2010-10-20T07:49:18.000Z:

First at all: great job!
Gpick it is a great tool for designers. I like it very much.

I have a suggestion:

It would be a nice idea to add a "Recent color palettes" submenú in the File menú.

I work with many .gpa palettes, but I must open they one by one, searching it on my HD.

An "Load Recent color palette" would be a great advance, because save lot of time to the users. ;)

Thanks!

gpl export seems to export mysterious extra colors.

Original issue 32 created by thezbyg on 2011-04-29T14:31:57.000Z:

What steps will reproduce the problem?

  1. create a palette. or load a palette, whatever.
  2. export to gpl
  3. result contains all of the colors in the palette, plus some/all from another palette, plus "manhattan ~' (which is not in any currently existing palettes of mine)

the test .gpa is attached, along with the resulting .gpl.
After the 'rodeo dust ~' line, the rest is junk (for me, the full set of colors from my ranger.gpa, plus "manhattan ~")
If I load ranger.gpa and export a gpl from that, I get the same set of colors in the same order, minus 'manhattan ~';
OTOH, if I restart gpick and load ranger.gpa immediately and export a gpl immediately, I get exactly all the colors in the palette and no strange extras.

.deb package's installed size should be an integer

Original issue 21 created by thezbyg on 2010-10-19T22:46:59.000Z:

What steps will reproduce the problem?

  1. Download the Deb file
  2. Double click or execute the downloaded to install
  3. See the error during installation

What is the expected output? What do you see instead?
During installation you might (depending if using gdebi or softwarecenter) get the following error:
Traceback (most recent call last):
File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 768, in simulate
return self._simulate_helper(trans, status_path)
File "/usr/lib/python2.6/dist-packages/aptdaemon/worker.py", line 851, in _simulate_helper
size = int(deb["Installed-Size"]) * 1024
ValueError: invalid literal for int() with base 10: '706.0'

What version of the product are you using? On what operating system?
0.2.3-1 on Ubuntu 10.10

Please provide any additional information below.
Originally posted to Launchpad at https://bugs.launchpad.net/ubuntu/+source/software-center/+bug/662936

The problem comes from "Installed-Size: 706.0" which should be an integer.
See http://www.debian.org/doc/debian-policy/ch-controlfields.html#s-f-Installed-Size

Can't get .exe to run

Original issue 17 created by thezbyg on 2010-02-26T08:02:10.000Z:

What steps will reproduce the problem?

  1. Download installation program
  2. Run installation program
  3. Double-click desktop icon to start application

What is the expected output? What do you see instead?
Windows error dialog:
"The procedure entry point g_assertion_message could not be located in the
dynamic link library libglib-2.0-0.dll."
What version of the product are you using? On what operating system?
Latest Windows version on XP.

Please provide any additional information below.

cpu 100%

Original issue 12 created by thezbyg on 2009-09-29T12:42:51.000Z:

cpu 100% and always got a message: converter_get_result: attempt to call a
nil value

/usr/share/gpick/helpers.lua:3: module 'user_init' not found

Original issue 5 created by thezbyg on 2009-08-20T16:21:52.000Z:

I've installed http://gpick.googlecode.com/files/gpick_0.1.52-1_amd64.deb
When I run gpick from terminal, I get an error about user_init module:

$ gpick
/usr/share/gpick/helpers.lua:3: module 'user_init' not found:
no field package.preload['user_init']
no file '/usr/share/gpick/user_init.lua'
no file '/home/myuser/.config/gpick/user_init.lua'
no file './user_init.so'
no file '/usr/local/lib/lua/5.1/user_init.so'
no file '/usr/lib/lua/5.1/user_init.so'
no file '/usr/local/lib/lua/5.1/loadall.so'

The module is probably missing (?)
$ dpkg -L gpick
/.
/usr
/usr/share
/usr/share/doc
/usr/share/doc/gpick
/usr/share/doc/gpick/copyright
/usr/share/man
/usr/share/man/man1
/usr/share/man/man1/gpick.1
/usr/share/applications
/usr/share/applications/gpick.desktop
/usr/share/icons
/usr/share/icons/hicolor
/usr/share/icons/hicolor/scalable
/usr/share/icons/hicolor/scalable/apps
/usr/share/icons/hicolor/scalable/apps/gpick.svg
/usr/share/icons/hicolor/48x48
/usr/share/icons/hicolor/48x48/apps
/usr/share/icons/hicolor/48x48/apps/gpick.png
/usr/share/gpick
/usr/share/gpick/falloff-quadratic.png
/usr/share/gpick/falloff-none.png
/usr/share/gpick/falloff-linear.png
/usr/share/gpick/falloff-cubic.png
/usr/share/gpick/init.lua
/usr/share/gpick/falloff-exponential.png
/usr/share/gpick/colors.txt
/usr/share/gpick/colors0.txt
/usr/share/gpick/helpers.lua
/usr/bin
/usr/bin/gpick

Failed to bulid gpick in Ubuntu Lucid Lynx, "lua >= 5.1" is not satisfied

Original issue 24 created by thezbyg on 2010-10-25T08:25:18.000Z:

Whenever I ran `scons' to build gpick in Ubuntu, I encountered the following problems:

scons: Reading SConscript files ...
Checking for dbus-glib-1 >= 0.76... yes
Checking for gtk+-2.0 >= 2.12.0... yes
Checking for lua >= 5.1... no
Checking for lua5.1 >= 5.1... no

I have installed package Lua5.1 in Ubuntu Lucid Lynx with the corresponding versions of lua5.1, `apt-cache show lua5.1 | grep Version" produces the output "Version: 5.1.4-5".

Is there any solution for this, guys?

interactive 'mix colors' option in bottom pane

Original issue 44 created by thezbyg on 2011-07-10T08:53:02.000Z:

While often I want to make blends in the palette, it's very common that I end up going back and forth tuning the blend endpoints. For this, the 'mix colors' dialog is troublesome, because I have to repeatedly invoke it every time I change the endpoint colors.

If instead I could interact with the endpoints to directly tune them, and finally commit the result to the palette, that would be a lot more useful IMO, and would also make paint-program users,
of which I am one, happy (providing a 'blender' that can easily be dropped to or picked from.)

tl;dr version : An interactive version of 'mix colors' as a choice in the bottom pane would be very useful, IMO.

makefile

Original issue 3 created by thezbyg on 2009-08-15T11:54:45.000Z:

I could not find the Makefile in the source dir.
How to make gpick my own?

Version.0 not found

Original issue 27 created by thezbyg on 2011-01-11T07:21:25.000Z:

why this happened after update my system apps.
gcc version is gcc-4.5.2

Compiling ==> build/source/version/Version.o
g++: : No such file or directory
scons: *** [build/source/version/Version.o] Error 1
scons: building terminated because of errors.

'Add all to palette' in 'Brightness/Darkness' produces disordered results

Original issue 38 created by thezbyg on 2011-05-29T00:07:37.000Z:

I was writing a detailed article on how to use GPick (which you are welcome to use here on the wiki, BTW, when it's done.), when
I discovered this bug.

Most logical groups of colors are added in an orderly way. Brightness-Darkness's colors, OTOH, are added in a consistent, but badly ordered way, IMO.

954
853
752
651

^^ text depiction of the layout of the brightness-darkness 'window', in the order that makes sense to add the colors IMO. 5 is the base color, 1-4 are darker versions, 6-9 are lighter. This would be consistent with the 'Variations' and 'Color scheme' 'windows' in terms of the color ordering it produces.

The order that they actually get added to the palette in currently looks like this:

846
943
241
745

(4 being the base color here.)

Which doesn't seem to have any sensible order to it at all.

Typing in the palette list activates a useless search box.

Original issue 42 created by thezbyg on 2011-06-04T15:21:33.000Z:

I was actually trying to set the active swatch slot when I found this.. so I was typing '2', '3' etc.

What actually happens:

  • the standard GTK TreeView search box pops up.
  • however, it doesn't seem to be searching on any sensible field -- IMO the only sensible field to search on is color name. The result of the current behaviour is simply that no search results seem to be found.

What should happen:

  • This is definitely a personal preference: disable the search box, to allow active-swatch-slot selection while the palette TreeView is active. This makes it very easy to arrange some palette colors onto the swatch slots to compare them (much faster than DnD)
  • (the other possibility, of course, being simply make the search box search on a sane column. This would be important to people who find it necessary to find colors by name. So far I'm not convinced such people exist ;)

Can't work with tiling window manager

Original issue 15 created by thezbyg on 2009-11-24T06:46:21.000Z:

Because gpick can't work with xmonad and awesome, I have to use gcolor2 in
the tiling window desktops. So how about put a "switch button" on it like
gcolor2 to let it work more manually?

1.6.60 doesn't build

Original issue 6 created by thezbyg on 2009-09-07T10:29:59.000Z:

$ scons
scons: Reading SConscript files ...
Checking for dbus-glib-1 >= 0.76-1... yes
Checking for gtk+-2.0 >= 2.12.0... yes
Checking for lua >= 5.1... yes
KeyError: 0:
File "/home/avp/soft/build/graphics/swatches/gpick-0.1.66/SConstruct",
line 3:
SConscript(['SConscript'], variant_dir='build', duplicate=0)
File "/usr/lib/python2.5/site-packages/SCons/Script/SConscript.py", line 599:
return apply(method, args, kw)
File "/usr/lib/python2.5/site-packages/SCons/Script/SConscript.py", line 536:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/usr/lib/python2.5/site-packages/SCons/Script/SConscript.py", line 259:
exec file in call_stack[-1].globals
File "/home/avp/soft/build/graphics/swatches/gpick-0.1.66/SConscript",
line 69:
executable = SConscript(['source/SConscript'], exports='env')
File "/usr/lib/python2.5/site-packages/SCons/Script/SConscript.py", line 599:
return apply(method, args, kw)
File "/usr/lib/python2.5/site-packages/SCons/Script/SConscript.py", line 536:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/usr/lib/python2.5/site-packages/SCons/Script/SConscript.py", line 259:
exec file in call_stack[-1].globals
File
"/home/avp/soft/build/graphics/swatches/gpick-0.1.66/source/SConscript",
line 12:
if 'UNIQUE_PC' in local_env:
File "/usr/lib/python2.5/site-packages/SCons/Environment.py", line 368:
return self._dict[key]

Any ideas?

FTBFS with scons < 1.2.0

Original issue 9 created by thezbyg on 2009-09-10T08:30:15.000Z:

FTBFS = fails to build from source

This happens with scons version less than 1.2.0, specifically ubuntu 8.04
hardy has scons 0.97.0 and ubuntu 8.10 intrepid has scons 0.98.5:
http://packages.ubuntu.com/search?keywords=scons

The error:
sh: svnversion: not found
KeyError: 0:
File "/build/buildd/gpick-0.1.66/SConstruct", line 3:
SConscript(['SConscript'], variant_dir='build', duplicate=0)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 596:
return apply(method, args, kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 533:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 256:
exec file in call_stack[-1].globals
File "/build/buildd/gpick-0.1.66/SConscript", line 69:
executable = SConscript(['source/SConscript'], exports='env')
File "/usr/lib/scons/SCons/Script/SConscript.py", line 596:
return apply(method, args, kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 533:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 256:
exec file in call_stack[-1].globals
File "/build/buildd/gpick-0.1.66/source/SConscript", line 21:
objects.append(SConscript(['unique/SConscript'], exports='env'))
File "/usr/lib/scons/SCons/Script/SConscript.py", line 596:
return apply(method, args, kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 533:
return apply(_SConscript, [self.fs,] + files, subst_kw)
File "/usr/lib/scons/SCons/Script/SConscript.py", line 256:
exec file in call_stack[-1].globals
File "/build/buildd/gpick-0.1.66/source/unique/SConscript", line 18:
if 'UNIQUE_PC' in local_env:
File "/usr/lib/scons/SCons/Environment.py", line 368:
return self._dict[key]
make: *** [clean-stamp] Error 2

Would you recommend to depend on subversion package? I use the stable
source tarball releases, not the svn source.

trunk fails to build

Original issue 28 created by thezbyg on 2011-03-08T15:57:24.000Z:

What steps will reproduce the problem?
1.hg clone https://gpick.googlecode.com/hg/ gpick
2.cd gpick
3.

What is the expected output?
successful build

What do you see instead?
Compiling ==> ...
...
Compiling ==> build/source/layout/System.o
flex --header-file=build/source/cssparser/css_lex.h -o build/source/cssparser/css_lex.cpp source/cssparser/css_lex.l
buildAction(["build/source/cssparser/css_grammar.c", "build/source/cssparser/css_grammar.h", "build/source/cssparser/css_grammar.c"], ["source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y"])
Copy("build/lempar.c", "extern/lempar.c")
Copy("build/source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y")
/usr/fetching/gpick/build
sh: ../build/source/cssparser/css_grammar.y: Permission denied
Delete("build/source/cssparser/css_grammar.y")
Compiling ==> build/source/cssparser/css_grammar_wrap.o
source/cssparser/css_grammar_wrap.cpp:20: fatal error: css_grammar.c: No such file or directory
compilation terminated.
scons: *** [build/source/cssparser/css_grammar_wrap.o] Error 1
scons: building terminated because of errors.

What version of the product are you using? On what operating system?
trunk, Ubuntu 10.10 i386

Please provide any additional information below.

libstdc++ dependency not met in Ubuntu 11.04 (amd64)

Original issue 37 created by thezbyg on 2011-05-16T06:48:25.000Z:

What steps will reproduce the problem?

  1. Download and install gpick_0.2.4-1_amd64.deb
  2. Run gpick from Terminal

What is the expected output? What do you see instead?
gpick exits with this message:
gpick: /usr/lib/x86_64-linux-gnu/libstdc++.so.6: version `GLIBCXX_3.4.15' not found (required by gpick)

What version of the product are you using? On what operating system?
gpick 0.2.4 under Ubuntu 11.04 (amd64)

Please provide any additional information below.
libstdc++.so.6 links to libstdc++.so.6.0.14, which provides up to GLIBCXX_3.4.14. Presumably this is the default (and newest) version for Ubuntu 11.04.

Failed to build gpick 0.2.3 in Gentoo, can't open the template file "lempar.c".

Original issue 25 created by thezbyg on 2010-10-28T04:03:15.000Z:

The following problem is always encountered.

scons: Reading SConscript files ...
Checking for dbus-glib-1 >= 0.76... yes
Checking for gtk+-2.0 >= 2.12.0... yes
Checking for lua >= 5.1... yes
scons: done reading SConscript files.
scons: Building targets ...
Compiling ==> build/source/BrightnessDarkness.o
Compiling ==> build/source/ChangeNotification.o
Compiling ==> build/source/Color.o
Compiling ==> build/source/ColorAction.o
Compiling ==> build/source/ColorList.o
Compiling ==> build/source/ColorMixer.o
Compiling ==> build/source/ColorNames.o
Compiling ==> build/source/ColorObject.o
Compiling ==> build/source/ColorPicker.o
Compiling ==> build/source/ColorRYB.o
Compiling ==> build/source/ColorSource.o
Compiling ==> build/source/ColorSourceManager.o
Compiling ==> build/source/ColorWheelType.o
Compiling ==> build/source/Converter.o
Compiling ==> build/source/CopyPaste.o
Compiling ==> build/source/DragDrop.o
Compiling ==> build/source/DynvHelpers.o
Compiling ==> build/source/FileFormat.o
Compiling ==> build/source/FloatingPicker.o
Compiling ==> build/source/GenerateScheme.o
Compiling ==> build/source/GlobalState.o
Compiling ==> build/source/LayoutPreview.o
Compiling ==> build/source/LuaExt.o
Compiling ==> build/source/MathUtil.o
Compiling ==> build/source/Noise.o
Compiling ==> build/source/Paths.o
Compiling ==> build/source/Random.o
Compiling ==> build/source/RegisterSources.o
Compiling ==> build/source/Sampler.o
Compiling ==> build/source/ScreenReader.o
Compiling ==> build/source/Variations.o
Compiling ==> build/source/main.o
Compiling ==> build/source/uiAbout.o
Compiling ==> build/source/uiApp.o
Compiling ==> build/source/uiColorInput.o
Compiling ==> build/source/uiConverter.o
Compiling ==> build/source/uiDialogGenerate.o
Compiling ==> build/source/uiDialogMix.o
Compiling ==> build/source/uiDialogOptions.o
Compiling ==> build/source/uiDialogVariations.o
Compiling ==> build/source/uiExport.o
Compiling ==> build/source/uiListPalette.o
Compiling ==> build/source/uiStatusIcon.o
Compiling ==> build/source/uiUtilities.o
Compiling ==> build/source/dynv/DynvHandler.o
Compiling ==> build/source/dynv/DynvIO.o
Compiling ==> build/source/dynv/DynvMemoryIO.o
Compiling ==> build/source/dynv/DynvSystem.o
Compiling ==> build/source/dynv/DynvVarBool.o
Compiling ==> build/source/dynv/DynvVarColor.o
Compiling ==> build/source/dynv/DynvVarDynv.o
Compiling ==> build/source/dynv/DynvVarFloat.o
Compiling ==> build/source/dynv/DynvVarInt32.o
Compiling ==> build/source/dynv/DynvVarPtr.o
Compiling ==> build/source/dynv/DynvVarString.o
Compiling ==> build/source/dynv/DynvVariable.o
Compiling ==> build/source/dynv/DynvXml.o
Compiling ==> build/source/tools/PaletteFromCssFile.o
Compiling ==> build/source/tools/PaletteFromImage.o
Compiling ==> build/source/version/Version.o
Compiling ==> build/source/unique/UniqueDBus.o
Compiling ==> build/source/gtk/ColorCell.o
Compiling ==> build/source/gtk/ColorComponent.o
Compiling ==> build/source/gtk/ColorWheel.o
Compiling ==> build/source/gtk/ColorWidget.o
Compiling ==> build/source/gtk/LayoutPreview.o
Compiling ==> build/source/gtk/Range2D.o
Compiling ==> build/source/gtk/Swatch.o
Compiling ==> build/source/gtk/Zoomed.o
Compiling ==> build/source/layout/Box.o
Compiling ==> build/source/layout/Layout.o
Compiling ==> build/source/layout/LuaBindings.o
Compiling ==> build/source/layout/ReferenceCounter.o
Compiling ==> build/source/layout/Style.o
Compiling ==> build/source/layout/System.o
flex --header-file=build/source/cssparser/css_lex.h -o build/source/cssparser/css_lex.cpp source/cssparser/css_lex.l
buildAction(["build/source/cssparser/css_grammar.c", "build/source/cssparser/css_grammar.h", "build/source/cssparser/css_grammar.c"], ["source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y"])
Copy("build/source/cssparser/css_grammar.y", "source/cssparser/css_grammar.y")
Can't open the template file "lempar.c".
Delete("build/source/cssparser/css_grammar.y")
Compiling ==> build/source/cssparser/css_grammar_wrap.o
source/cssparser/css_grammar_wrap.cpp:20:25: error: css_grammar.c: No such file or directory
scons: *** [build/source/cssparser/css_grammar_wrap.o] Error 1
scons: building terminated because of errors.

Multi-color internal clipboard

Original issue 36 created by thezbyg on 2011-05-06T04:34:08.000Z:

  • to make it easier to move multiple colors within a palette.

After generating a gradient using 'mix colors' or a scheme using 'generate', I find I usually want to put it next to the original colors, but currently have to move one color at a time.

Considering that large numbers of colors can be generated (even as few as 16 becomes troublesome), we could usefully have some way to move large numbers of colors around. Internal 'Cut/Copy/Paste' is the traditional solution. This would nicely round out the arrangement-of-colors functionality.

The Magnifying Glass Can't Be Deactivated

Original issue 50 created by thezbyg on 2011-11-20T19:25:03.000Z:

When I don't pick colors, that is when I tune color values, I find the magnifying glass distracting and I would like to be able to disable it.

gpick packaging - lemon and amalgamation

Original issue 35 created by thezbyg on 2011-05-05T17:36:24.000Z:

Hi,

I'm packaging gpick for openSUSE (asked by one of our users), but I'm facing a tiny issue here with lemon.

As I don't have the lemon parser available (the one built from lemon.c), I have 2 possible ways:

  1. Since lemon is only required at build time, I can attach the source and 'hand-compile' it on the spec file. Then hack scons build process to use it from the local directory where I've built it.
  2. Ask upstream to include the generated C files in the source tarball (like SQLite amalgamation[1]) does, which would make lemon only required to hack the grammar, but not for building the package. I believe this solution would bring much more value to downstreamers (ex: fedora, opensuse, gentoo, arch, etc), and make our life more easy. This is also the process that SQLite uses[2], in fact they don't really support the 'legacy' release.

Any way we can have option 2? That C generated files are included on the source tarball?

Nelson

[1] - http://sqlite.org/amalgamation.html
[2] - http://sqlite.org/download.html

Can't drag colors further than one page at once

Original issue 34 created by thezbyg on 2011-05-01T03:42:41.000Z:

What steps will reproduce the problem?

  1. create a palette with enough colors that you have to scroll to access them all
  2. go to the bottom of the palette and try to drag the last color up to the first location in the palette

The color drags only to the top of the page. Autoscroll doesn't activate.
In this situation, currently we have to drag the color, delete the color from old position,
drag the color, delete from old position.. until it ends up at the place you want.

I have already tried implementing this via the attached patch, however unlike
http://ubuntuforums.org/showthread.php?t=1336996 says, gtk_container_set_focus_vadjustment() doesn't effect the behaviour in this case.

drag'n drop color from tab "layout preview" closes the program abruptly

Original issue 19 created by thezbyg on 2010-09-01T14:56:28.000Z:

What steps will reproduce the problem?

  1. start program with "gpick" command
  2. in "tab "color picker", pick color to right
  3. go to tab "layout preview"
  4. drag'n drop color on layout
  5. randomly, the program closes abruptly

What is the expected output? What do you see instead?
See backtrace below.

What version of the product are you using? On what operating system?
Gpick 0.2.2 (gpick_0.2.2-1_amd64)
under
Linux 2.6.32-24-generic x86_64

Please provide any additional information below.

Backtrace :
gpick
*** glibc detected *** gpick: malloc(): smallbin double linked list corrupted: 0x0000000000af7a70 ***
======= Backtrace: =========
/lib/libc.so.6(+0x775b6)[0x7fab0182a5b6]
/lib/libc.so.6(+0x7b8e9)[0x7fab0182e8e9]
/lib/libc.so.6(__libc_malloc+0x6e)[0x7fab0182f58e]
/usr/lib/libX11.so.6(_XSend+0x6a)[0x7fab008855ea]
/usr/lib/libX11.so.6(_XFlush+0x15)[0x7fab00885c45]
/usr/lib/libX11.so.6(XFlush+0x1a)[0x7fab0085d2da]
/usr/lib/libgdk-x11-2.0.so.0(gdk_window_process_all_updates+0xe8)[0x7fab037ad208]
/usr/lib/libgdk-x11-2.0.so.0(+0x422b9)[0x7fab037ad2b9]
/usr/lib/libgdk-x11-2.0.so.0(+0x1edb6)[0x7fab03789db6]
/lib/libglib-2.0.so.0(g_main_context_dispatch+0x1f2)[0x7fab023228c2]
/lib/libglib-2.0.so.0(+0x42748)[0x7fab02326748]
/lib/libglib-2.0.so.0(g_main_loop_run+0x195)[0x7fab02326c55]
/usr/lib/libgtk-x11-2.0.so.0(gtk_main+0xa7)[0x7fab03b53bb7]
gpick[0x4336fe]
gpick[0x42f0c9]
/lib/libc.so.6(__libc_start_main+0xfd)[0x7fab017d1c4d]
gpick[0x40f9d9]
======= Memory map: ========
00400000-00493000 r-xp 00000000 08:02 1090861 /usr/bin/gpick
00692000-00694000 rw-p 00092000 08:02 1090861 /usr/bin/gpick
00694000-00695000 rw-p 00000000 00:00 0
0086e000-00c66000 rw-p 00000000 00:00 0 [heap]
7faaf0000000-7faaf0021000 rw-p 00000000 00:00 0
7faaf0021000-7faaf4000000 ---p 00000000 00:00 0
7faaf4461000-7faaf44f9000 r--p 00000000 08:02 1082915 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans.ttf
7faaf44f9000-7faaf4579000 r--p 00000000 08:02 1108271 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSans-Oblique.ttf
7faaf4579000-7faaf457a000 r-xp 00000000 08:02 1188952 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
7faaf457a000-7faaf477a000 ---p 00001000 08:02 1188952 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
7faaf477a000-7faaf477b000 r--p 00001000 08:02 1188952 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
7faaf477b000-7faaf477c000 rw-p 00002000 08:02 1188952 /usr/lib/gtk-2.0/2.10.0/immodules/im-cedilla.so
7faaf477c000-7faaf47cb000 r--p 00000000 08:02 1082917 /usr/share/fonts/truetype/ttf-dejavu/DejaVuSansMono.ttf
7faaf47cb000-7faaf482b000 rw-s 00000000 00:04 381812765 /SYSV00000000 (deleted)
7faaf482b000-7faaf488b000 rw-s 00000000 00:04 381779996 /SYSV00000000 (deleted)
7faaf488b000-7faaf4890000 r-xp 00000000 08:02 1175278 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7faaf4890000-7faaf4a8f000 ---p 00005000 08:02 1175278 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7faaf4a8f000-7faaf4a90000 r--p 00004000 08:02 1175278 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7faaf4a90000-7faaf4a91000 rw-p 00005000 08:02 1175278 /usr/lib/gtk-2.0/2.10.0/loaders/libpixbufloader-png.so
7faaf4a91000-7faaf4ad5000 r--p 00000000 08:02 1444144 /usr/share/fonts/truetype/msttcorefonts/Arial.ttf
7faaf4ad5000-7faaf4ad7000 r-xp 00000000 08:02 1175147 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7faaf4ad7000-7faaf4cd6000 ---p 00002000 08:02 1175147 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7faaf4cd6000-7faaf4cd7000 r--p 00001000 08:02 1175147 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7faaf4cd7000-7faaf4cd8000 rw-p 00002000 08:02 1175147 /usr/lib/pango/1.6.0/modules/pango-basic-fc.so
7faaf4cd8000-7faaf4cd9000 r--s 00000000 08:02 1190583 /var/cache/fontconfig/26de28bc8622bbc1fb67fd234c21975f-le64.cache-3
7faaf4cd9000-7faaf4cda000 r--s 00000000 08:02 1228170 /var/cache/fontconfig/c05880de57d1f5e948fdfacc138775d9-le64.cache-3
7faaf4cda000-7faaf4ce3000 r--s 00000000 08:02 1228150 /var/cache/fontconfig/945677eb7aeaf62f1d50efc3fb3ec7d8-le64.cache-3
7faaf4ce3000-7faaf4ce5000 r--s 00000000 08:02 1228168 /var/cache/fontconfig/99e8ed0e538f840c565b6ed5dad60d56-le64.cache-3
7faaf4ce5000-7faaf4ce8000 r--s 00000000 08:02 1228167 /var/cache/fontconfig/e383d7ea5fbe662a33d9b44caf393297-le64.cache-3
7faaf4ce8000-7faaf4ce9000 r--s 00000000 08:02 1228166 /var/cache/fontconfig/e7071f4a29fa870f4323321c154eba04-le64.cache-3
7faaf4ce9000-7faaf4cee000 r--s 00000000 08:02 1190599 /var/cache/fontconfig/926e794c3d5e5dffcaf2fa83ef8d36c2-le64.cache-3
7faaf4cee000-7faaf4cf2000 r--s 00000000 08:02 1228165 /var/cache/fontconfig/6eb3985aa4124903f6ff08ba781cd364-le64.cache-3
7faaf4cf2000-7faaf4cf3000 r--s 00000000 08:02 1228164 /var/cache/fontconfig/4c73fe0c47614734b17d736dbde7580a-le64.cache-3
7faaf4cf3000-7faaf4cf4000 r--s 00000000 08:02 1228163 /var/cache/fontconfig/0d8c3b2ac0904cb8a57a757ad11a4a08-le64.cache-3
7faaf4cf4000-7faaf4cf5000 r--s 00000000 08:02 1228162 /var/cache/fontconfig/6a53c69dea097a2d716e069445527da8-le64.cache-3
7faaf4cf5000-7faaf4cfb000 r--s 00000000 08:02 1228161 /var/cache/fontconfig/a755afe4a08bf5b97852ceb7400b47bc-le64.cache-3
7faaf4cfb000-7faaf4d04000 r--s 00000000 08:02 1203416 /var/cache/fontconfig/6d41288fd70b0be22e8c3a91e032eec0-le64.cache-3
7faaf4d04000-7faaf4d14000 r--s 00000000 08:02 1228159 /var/cache/fontconfig/0f34bcd4b6ee430af32735b75db7f02b-le64.cache-3
7faaf4d14000-7faaf4d42000 r--s 00000000 08:02 1190481 /var/cache/fontconfig/365b55f210c0a22e9a19e35191240f32-le64.cache-3
7faaf4d42000-7faaf4d4c000 r--s 00000000 08:02 1228623 /var/cache/fontconfig/d52a8644073d54c13679302ca1180695-le64.cache-3
7faaf4d4c000-7faaf4d5f000 r--s 00000000 08:02 1190121 /var/cache/fontconfig/e13b20fdb08344e0e664864cc2ede53d-le64.cache-3
7faaf4d5f000-7faaf4d6f000 r-xp 00000000 08:02 1050044 /lib/libbz2.so.1.0.4
7faaf4d6f000-7faaf4f6e000 ---p 00010000 08:02 1050044 Abandon

Makefile is not correct

Original issue 1 created by thezbyg on 2009-04-04T08:35:51.000Z:

What steps will reproduce the problem?

  1. just compile the source with make
  2. error with no "obj bin" folder
    3.

What is the expected output? What do you see instead?
Without the errror.

What version of the product are you using? On what operating system?
0.0.34, I use the gcc 4.3.3

Please provide any additional information below.
I check the Makefile, I find there are some things can improved.
You should add the DESTDIR variable, this will good for pack the
executable file.
I own create the folder "obj" and "bin" it will good for compile.

regard
ginkgo

Simulate color blindness/defects?

Original issue 39 created by thezbyg on 2011-05-31T08:24:16.000Z:

When creating color schemes it would be very useful to know which colors may not display properly for those with color blindness/defects. More information on what types there are can be found here http://en.wikipedia.org/wiki/Color_blindness

Additionally, for ideas of how this might be implemented take a look at this website http://colorschemedesigner.com/ (under the Colorblind tab) and at Scribus (I use 1.5)

Does not work with Windows due to missing DLLs

Original issue 43 created by thezbyg on 2011-06-19T22:32:02.000Z:

What steps will reproduce the problem?

  1. Installed
  2. Attempt to run the program

What is the expected output? What do you see instead?
Program should start. Instead it displays an error concerning the missing DLL "libcairo-2.dll"

What version of the product are you using? On what operating system?
Window 7 - 64 bit

Please provide any additional information below.
This DLL is not included in Windows 7 and must be included in your installer for it to be functional. It appears as if a large number of DLLs that are not installed in Windows and are not included in the installer are required. It looks like it may require the entire GTK+.

[Feature Request] Inserting values in color scheme generator

Original issue 13 created by thezbyg on 2009-10-20T13:21:30.000Z:

This is not an issue. This is a feature request.
Currently, it seems we can't insert color hex values directly inside color
scheme generator (unless i miss it somewhere). Will it be integrated in
next release ? Is it planned ?
This feature will be greatly appreciated.
Thanks for your answer !

SConscript: dbus-glib-1 >= 0.76

Original issue 10 created by thezbyg on 2009-09-10T10:26:39.000Z:

I am not sure but I think that the dbus-glib-1 in SConscript should be ">=
0.76", not ">= 0.76-1"

:)

scons -c should not check dependencies (minor issue)

Original issue 4 created by thezbyg on 2009-08-20T14:49:00.000Z:

This is a minor issue. I was trying to make a debian source package (not a
binary one), but when I run "scons -c" to clean the targets, it checks for
build-dependencies. I might be wrong, but I think that the check during
cleanup isn't required.

Is there any way I can disable the build-dependency check during cleanup?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.