← Back to team overview

qreator-discuss team mailing list archive

Re: Help with the color editing branch and Glade

 

On Sat, Nov 10, 2012 at 7:24 PM, David Planella
<david.planella@xxxxxxxxxx>wrote:

> Al 10/11/12 16:44, En/na Stefan Schwarzburg ha escrit:
> > 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).
> >
>
> Ah, good catch, I would have never come across that. So I guess it's two
> bugs:
>
> - The response properties for each button should be set to the
>   appropriate value
> - The response properties for each button should be editable in Glade
>
>
Yes. And a third bug: missing documentation.


> > 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...)
> >
>
> I think you might have forgotten to do the last commit, as I can only
> see my revisions there, but I think I get the idea. I'm more leaning
> towards setting the response ID in code (if I can), as I'm concerned
> that Glade might inadvertently revert any manual changes to the .ui file.
>
> You are right. I have pushed the changes now, but you already know what is
going on.

Cheers,
Stefan


> Thanks!
>
> Cheers,
> David.
>
> >
> > Cheers,
> > Stfan
> >
> > On Sat, Nov 10, 2012 at 2:40 PM, David Planella
> > <david.planella@xxxxxxxxxx <mailto: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
> >     <mailto:qreator-discuss@xxxxxxxxxxxxxxxxxxx>
> >     Unsubscribe : https://launchpad.net/~qreator-discuss
> >     More help   : https://help.launchpad.net/ListHelp
> >
> >
> >
> >
>
>
> --
> David Planella
> Ubuntu Translations Coordinator
> www.ubuntu.com / www.davidplanella.wordpress.com
> www.identi.ca/dplanella / www.twitter.com/dplanella
>
>
> --
> 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