[maemo-developers] how to adjust padding of HildonTouchSelectorColumn's private panarea?

From: kyle cronan kyle at pbx.org
Date: Thu Nov 26 13:45:29 EET 2009
I'm not one to give up easily. :)

/* 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.com> 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.org
> https://lists.maemo.org/mailman/listinfo/maemo-developers
More information about the maemo-developers mailing list