Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Maemo: Developers

Black border/background around GtkButton

 

 

Maemo developers RSS feed   Index | Next | Previous | View Threaded


andrew at bleb

Oct 23, 2009, 3:52 AM

Post #1 of 4 (274 views)
Permalink
Black border/background around GtkButton

Hi,

If you look at this screenshot, you'll see there are black borders
around the GtkButtons:

http://twitpic.com/mknhl

This is just two GtkButtons in a GtkHButtonBox in a GtkAlignment in a
GtkWindow (which has had gdk_window_set_back_pixmap called on it).

Is there a way of getting rid of these backgrounds/borders?

Thanks in advance,

Andrew

--
Andrew Flegg -- mailto:andrew [at] bleb | http://www.bleb.org/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


anderson.lizardo at openbossa

Oct 23, 2009, 5:25 AM

Post #2 of 4 (248 views)
Permalink
Re: Black border/background around GtkButton [In reply to]

On Fri, Oct 23, 2009 at 6:52 AM, Andrew Flegg <andrew [at] bleb> wrote:
> Hi,
>
> If you look at this screenshot, you'll see there are black borders
> around the GtkButtons:
>
>    http://twitpic.com/mknhl
>
> This is just two GtkButtons in a GtkHButtonBox in a GtkAlignment in a
> GtkWindow (which has had gdk_window_set_back_pixmap called on it).
>
> Is there a way of getting rid of these backgrounds/borders?

I've seen that on Scratchbox + Xephyr, but I thought it was just some
drawing issue with Xephyr. Does it happen on a N900 too?

Anyway, I'll let the GTK+ experts answer you (I'm interested in the
answer as well).

Regards,
--
Anderson Lizardo
OpenBossa Labs - INdT
Manaus - Brazil
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


andrew at bleb

Oct 23, 2009, 5:35 AM

Post #3 of 4 (244 views)
Permalink
Re: Black border/background around GtkButton [In reply to]

On Fri, Oct 23, 2009 at 13:25, Anderson Lizardo
<anderson.lizardo [at] openbossa> wrote:
> On Fri, Oct 23, 2009 at 6:52 AM, Andrew Flegg <andrew [at] bleb> wrote:
>>
>> Is there a way of getting rid of these backgrounds/borders?
>
> I've seen that on Scratchbox + Xephyr, but I thought it was just some
> drawing issue with Xephyr. Does it happen on a N900 too?

Yup.

> Anyway, I'll let the GTK+ experts answer you (I'm interested in the
> answer as well).

Hopefully there's a GTK+ expert around who knows the answer...

Cheers,

Andrew

--
Andrew Flegg -- mailto:andrew [at] bleb | http://www.bleb.org/
_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers


csaavedra at igalia

Oct 23, 2009, 5:45 AM

Post #4 of 4 (262 views)
Permalink
Re: Black border/background around GtkButton [In reply to]

El vie, 23-10-2009 a las 08:25 -0400, Anderson Lizardo escribió:
> On Fri, Oct 23, 2009 at 6:52 AM, Andrew Flegg <andrew [at] bleb> wrote:
> > Hi,
> >
> > If you look at this screenshot, you'll see there are black borders
> > around the GtkButtons:
> >
> > http://twitpic.com/mknhl
> >
> > This is just two GtkButtons in a GtkHButtonBox in a GtkAlignment in a
> > GtkWindow (which has had gdk_window_set_back_pixmap called on it).
> >
> > Is there a way of getting rid of these backgrounds/borders?
>
> I've seen that on Scratchbox + Xephyr, but I thought it was just some
> drawing issue with Xephyr. Does it happen on a N900 too?
>
> Anyway, I'll let the GTK+ experts answer you (I'm interested in the
> answer as well).

This was a design decision from the UI design team [1], and it's
implemented at the theme level (by drawing these borders inside the
actual GtkButton and other widgets). There's nothing you can do to get
rid of these margins. Rationale is that doing it this way, UI team could
make sure that all apps "get the padding right".

There's a bug about the lack of proper documentation of this in
bugs.maemo.org (https://bugs.maemo.org/show_bug.cgi?id=5458).

Claudio


[1] That I opposed to back in the days, fwiw

_______________________________________________
maemo-developers mailing list
maemo-developers [at] maemo
https://lists.maemo.org/mailman/listinfo/maemo-developers

Maemo developers RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.