Cleanup color button
authorLuc Pionchon <luc.pionchon@nokia.com>
Thu, 16 Mar 2006 15:18:33 +0000 (15:18 +0000)
committerLuc Pionchon <luc.pionchon@nokia.com>
Thu, 16 Mar 2006 15:18:33 +0000 (15:18 +0000)
commit2fc48b73633b6eed827e5b8ff446ecf8cc537db6
tree8771744ba02675d5d88707163d9b0b3fa9e24ab7
parent5f03a3a0f58697674cfd4bdebac25e2aa1c886f5
Cleanup color button

* hildon-widgets/hildon-color-button.c:
        - removed unused #include
        - removed unused gettext macro

        (COLOR_FIELD_WIDTH) : renamed to COLOR_FILLED_WIDTH
        (COLOR_FIELD_HEIGHT): renamed to COLOR_FILLED_HEIGHT
        + value updated to match specifications

        (struct _HildonColorButtonPrivate):
        removed 'drawing_area' and 'pixbuf' members (unused)

        (hildon_color_button_init):
        use drawing_area directly, update COLOR_FILLED_ macro names

        (hildon_color_button_unrealize): new function.
        (hildon_color_button_class_init): register unrealize function
        (hildon_color_button_finalize): free allocated GC in unrealize
        handler instead of in finalize.

        (hildon_color_button_recolor_pixbuf): removed. (use
        gdk_draw_rectangle() instead)
        (hildon_color_button_draw_pixbuf_borders): likewise

        (hildon_color_field_expose_event): use gdk_draw_rectangle() to
        draw the button
        (hildon_color_button_set_property): queue the drawing - instead of
        calling recolor_pixbuf

        (hildon_color_button_clicked): renamed variable 'csd' to 'cs_dialog'
ChangeLog
hildon-widgets/hildon-color-button.c