[maemo-commits] [maemo-commits] r9912 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Thu Feb 15 16:29:54 EET 2007
- Previous message: [maemo-commits] r9911 - in projects/haf/trunk/hildon-theme-layout-4: . rc
- Next message: [maemo-commits] r9913 - projects/haf/branches/gtk+/maemo-gtk-2-10
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: timj Date: 2007-02-15 16:29:52 +0200 (Thu, 15 Feb 2007) New Revision: 9912 Modified: projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtkdialog.c Log: Thu Feb 15 15:18:37 2007 Tim Janik <timj at gtk.org> * gtk/gtkdialog.c: added style property ::content-area-spacing, to allow configurable area spacing similar to the style properties ::button-spacing and ::content-area-border. Modified: projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog =================================================================== --- projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog 2007-02-15 14:16:06 UTC (rev 9911) +++ projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog 2007-02-15 14:29:52 UTC (rev 9912) @@ -1,3 +1,9 @@ +Thu Feb 15 15:18:37 2007 Tim Janik <timj at gtk.org> + + * gtk/gtkdialog.c: added style property ::content-area-spacing, to + allow configurable area spacing similar to the style properties + ::button-spacing and ::content-area-border. + Thu Feb 15 13:17:52 2007 Tim Janik <timj at gtk.org> * gtk/gtkarrow.c (gtk_arrow_expose): removed arrow size down scaling Modified: projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtkdialog.c =================================================================== --- projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtkdialog.c 2007-02-15 14:16:06 UTC (rev 9911) +++ projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtkdialog.c 2007-02-15 14:29:52 UTC (rev 9912) @@ -147,7 +147,22 @@ G_MAXINT, 2, GTK_PARAM_READABLE)); + /** + * GtkDialog:content-area-spacing: + * + * Spacing between elements of the main dialog area. + * + * Since: maemo 1.0 + */ gtk_widget_class_install_style_property (widget_class, + g_param_spec_int ("content-area-spacing", + P_("Content area spacing"), + P_("Spacing between elements of the main dialog area"), + 0, + G_MAXINT, + 0, + GTK_PARAM_READABLE)); + gtk_widget_class_install_style_property (widget_class, g_param_spec_int ("button-spacing", P_("Button spacing"), P_("Spacing between buttons"), @@ -178,17 +193,20 @@ gint content_area_border; gint button_spacing; gint action_area_border; + gint content_area_spacing; widget = GTK_WIDGET (dialog); gtk_widget_style_get (widget, "content-area-border", &content_area_border, + "content-area-spacing", &content_area_spacing, "button-spacing", &button_spacing, "action-area-border", &action_area_border, NULL); gtk_container_set_border_width (GTK_CONTAINER (dialog->vbox), content_area_border); + gtk_box_set_spacing (GTK_BOX (dialog->vbox), content_area_spacing); gtk_box_set_spacing (GTK_BOX (dialog->action_area), button_spacing); gtk_container_set_border_width (GTK_CONTAINER (dialog->action_area),
- Previous message: [maemo-commits] r9911 - in projects/haf/trunk/hildon-theme-layout-4: . rc
- Next message: [maemo-commits] r9913 - projects/haf/branches/gtk+/maemo-gtk-2-10
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]