qreator-discuss team mailing list archive
-
qreator-discuss team
-
Mailing list archive
-
Message #00009
Re: Help with the color editing branch and Glade
Hi David,
this is a typical case of documentation that ... well... is not good :-)
You need to manually edit the action response for the different buttons in
the glade file (because in Glade, the properties are insensitive for some
reason).
You can see an edited version here:
lp:~stefan-schwarzburg/+junk/qreator-color-editing<https://code.launchpad.net/%7Estefan-schwarzburg/+junk/qreator-color-editing>
there, cancel returns 0, ok returns 1, help returns 2 (although I'm not
sure if the help response makes any sense...)
Cheers,
Stfan
On Sat, Nov 10, 2012 at 2:40 PM, David Planella
<david.planella@xxxxxxxxxx>wrote:
> 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
>
>
> --
> Mailing list: https://launchpad.net/~qreator-discuss
> Post to : qreator-discuss@xxxxxxxxxxxxxxxxxxx
> Unsubscribe : https://launchpad.net/~qreator-discuss
> More help : https://help.launchpad.net/ListHelp
>
>
Follow ups
References