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

Mailing List Archive: Maemo: Developers

how to adjust padding of HildonTouchSelectorColumn's private panarea?

 

 

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


kyle at pbx

Nov 26, 2009, 2:42 AM

Post #1 of 3 (487 views)
Permalink
how to adjust padding of HildonTouchSelectorColumn's private panarea?

Hi everyone,

It looks like the hildon_touch_selector_append_column function has a
hard-coded padding of 6 pixels around the column's panarea, which gets
added to the selector's internal hbox widget. Is there any way I
could override this without pulling private structure definitions out
of the libhildon code? Media player managed to do it somehow: the
selector entries go all the way to the edges of the screen and it
looks really nice.

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


csaavedra at igalia

Nov 26, 2009, 3:18 AM

Post #2 of 3 (460 views)
Permalink
Re: how to adjust padding of HildonTouchSelectorColumn's private panarea? [In reply to]

El jue, 26-11-2009 a las 04:42 -0600, kyle cronan escribió:
> Hi everyone,
>
> It looks like the hildon_touch_selector_append_column function has a
> hard-coded padding of 6 pixels around the column's panarea, which gets
> added to the selector's internal hbox widget. Is there any way I
> could override this without pulling private structure definitions out
> of the libhildon code?

I think this is done this way since the very first demos of the widget,
I don't think it's possible to override it.

> Media player managed to do it somehow: the
> selector entries go all the way to the edges of the screen and it
> looks really nice.

I suspect they might not be using HildonTouchSelector at all, but just a
GtkTreeView inside a pannable.

Claudio


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


kyle at pbx

Nov 26, 2009, 3:45 AM

Post #3 of 3 (458 views)
Permalink
Re: how to adjust padding of HildonTouchSelectorColumn's private panarea? [In reply to]

I'm not one to give up easily. :)
-Kyle

/* BEWARE: terrible kluge */
void set_panarea_padding(GtkWidget *child, gpointer data)
{
void set_child_padding(GtkWidget *child, gpointer user_data)
{
GtkBox *box = GTK_BOX(user_data);
gboolean expand, fill;
guint pad;
GtkPackType pack;

gtk_box_query_child_packing(box, child, &expand, &fill, &pad, &pack);
gtk_box_set_child_packing(box, child, expand, fill, 0, pack);
}

if (GTK_IS_CONTAINER(child))
gtk_container_forall(GTK_CONTAINER(child), set_child_padding, child);
}

gtk_container_forall(GTK_CONTAINER(selector), set_panarea_padding, NULL);


On Thu, Nov 26, 2009 at 5:18 AM, Claudio Saavedra <csaavedra [at] igalia> wrote:
> El jue, 26-11-2009 a las 04:42 -0600, kyle cronan escribió:
>> Hi everyone,
>>
>> It looks like the hildon_touch_selector_append_column function has a
>> hard-coded padding of 6 pixels around the column's panarea, which gets
>> added to the selector's internal hbox widget.  Is there any way I
>> could override this without pulling private structure definitions out
>> of the libhildon code?
>
> I think this is done this way since the very first demos of the widget,
> I don't think it's possible to override it.
>
>>  Media player managed to do it somehow: the
>> selector entries go all the way to the edges of the screen and it
>> looks really nice.
>
> I suspect they might not be using HildonTouchSelector at all, but just a
> GtkTreeView inside a pannable.
>
> Claudio
>
>
> _______________________________________________
> maemo-developers mailing list
> maemo-developers [at] maemo
> https://lists.maemo.org/mailman/listinfo/maemo-developers
>
_______________________________________________
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.