Re: gpe-iconlist

From: Luc Pionchon <luc.pionchon_at_welho.com>
Date: Sun, 16 Mar 2003 14:11:33 +0200

Some more sugestions,

Icons could be selectable, with a different visual aspect (darker?)
and react to double-click.

luc

On Sun, 16 Mar 2003 14:01:28 +0200
Luc Pionchon <luc_at_handhelds.org> wrote:

> Hi,
>
> I uploaded a few changes to gpe-iconlist to allow use by
> gpe-sketchbook.
>
> (set_show_title): New public function to allow titleless iconlist
> (set_bg_color): New public function to set the bg color
> (update_icon_item_with_udata): New public function to update an icon
> (remove_item_with_udata): New public function to remove an icon
>
> With show_title = FALSE, the size should be reduced (at least minus
> "label_height") but I did not fully sorted out the size management
> yet.(help welcome! :)
>
> Actualy I experienced a "funny" effect with sizes:
> When clicking a button (not even the iconlist) the iconlist's size is
> recalculated... and grow up! The increment is 23, which is...
> 15 + 8 ! :)
> LABEL_XMARGIN is 8, and there are a few 15 in the code...
> it could be related.
>
> The hand made patch below fixes the thing:
>
> in _recalc_size(),
> gtk_drawing_area_size (
> GTK_DRAWING_AREA(gtk_object_get_data (GTK_OBJECT(self), "da")),
> - allocation->width, self->_priv->rows * il_row_height (self) + 5);
> + allocation->width -23, self->_priv->rows * il_row_height (self) +
> 5);
>
> Also, I think the border should be a parameter. The current default is
> quite large (sketchbook only displays 2 icons in a row (64 pixels))
>
> void gpe_iconlist_set_icon_border_size(IL, size) ?
>
>
> cheers,
>
> luc
>
> `·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.´¯`·.¸¸.´
> _______________________________________________
> GPE mailing list
> GPE_at_handhelds.org
> https://handhelds.org/mailman/listinfo/gpe

`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.·´¯`·.¸¸.´¯`·.¸¸.´
Received on Sun Mar 16 2003 - 12:11:40 EST

This archive was generated by hypermail 2.2.0 : Mon Jul 25 2005 - 17:19:03 EDT