16 Mar 2003 13:01
gpe-iconlist
Luc Pionchon <luc <at> handhelds.org>
2003-03-16 12:01:28 GMT
2003-03-16 12:01:28 GMT
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))(Continue reading)
RSS Feed