Fix code style and warts in GtkScaleButton

This patch fixes the code style inconsistencies and some weird bits of
the GtkScaleButton widget implementation.

svn path=/trunk/; revision=18092
This commit is contained in:
Emmanuele Bassi
2007-06-10 15:32:02 +00:00
parent 7e43841f4d
commit 2c18665743
3 changed files with 85 additions and 49 deletions

View File

@ -1,3 +1,17 @@
2007-06-10 Emmanuele Bassi <ebassi@gnome.org>
* gtk/gtkscalebutton.[ch]: Fix some coding style bits.
(gtk_scale_button_dispose), (gtk_scale_button_class_init),
(gtk_scale_button_init): Use the GObject private data API instead
of allocating the private structure ourselves.
(gtk_scale_button_dispose), (gtk_scale_button_finalize): Free
the icons string vector inside ::finalize and not in ::dispose.
(gtk_scale_button_update_icon): Use g_strv_length() instead
of an empty for loop.
2007-06-09 Matthias Clasen <mclasen@redhat.com>
* gtk/gtkwidget.c: