← Back to team overview

qreator-discuss team mailing list archive

Help with the color editing branch and Glade

 

Hi,

I'm currently working on the branch to enable color editing. It is based
on a new edit mode whereby on the QR code screen you can click on the
Edit icon (a pencil at the bottom of the screen), which opens the edit
bar to the right of the code. So far so good.

One of the options in the edit bar is the ability to choose a color from
a GTK color selector dialog. I first implemented this in code, but then
I moved the selector dialog to Glade to be able to more easily add
widgets to it.

Now the problem is that after this move, whenever I click on the
'Select' button I never get a Gtk.ResponseType.OK response, so the color
change is never applied. I always get a '0' (an int) response regardless
of the button I click.

This seems like something really trivial I'm overseeing, but I cannot
quite figure it out and I'm a bit stuck. Here's the relevant code [1].

Any ideas?

Thanks.

Cheers,
David.

[1]
http://bazaar.launchpad.net/~dpm/+junk/qreator-color-edit/view/head:/qreator/QreatorWindow.py#L285

Attachment: signature.asc
Description: OpenPGP digital signature


Follow ups