[maemo-commits] [maemo-commits] r9167 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Jan 17 14:03:37 EET 2007
- Previous message: [maemo-commits] r9166 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk
- Next message: [maemo-commits] r9180 - in projects/haf/trunk/maemo-af-desktop: . hildon-home
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: kris Date: 2007-01-17 14:03:36 +0200 (Wed, 17 Jan 2007) New Revision: 9167 Modified: projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtktreeview.c Log: 2007-01-17 Kristian Rietveld <kris at imendio.com> * gtk/gtktreeview.c (gtk_tree_view_class_init), (validate_row): port over the separator-height style property. Modified: projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog =================================================================== --- projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog 2007-01-17 11:02:38 UTC (rev 9166) +++ projects/haf/branches/gtk+/maemo-gtk-2-10/ChangeLog 2007-01-17 12:03:36 UTC (rev 9167) @@ -1,5 +1,10 @@ 2007-01-17 Kristian Rietveld <kris at imendio.com> + * gtk/gtktreeview.c (gtk_tree_view_class_init), + (validate_row): port over the separator-height style property. + +2007-01-17 Kristian Rietveld <kris at imendio.com> + * gtk/gtktreeview.c (gtk_tree_view_row_changed): if the row just became insensitive, unselect it. Modified: projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtktreeview.c =================================================================== --- projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtktreeview.c 2007-01-17 11:02:38 UTC (rev 9166) +++ projects/haf/branches/gtk+/maemo-gtk-2-10/gtk/gtktreeview.c 2007-01-17 12:03:36 UTC (rev 9167) @@ -744,6 +744,9 @@ #define _TREE_VIEW_EXPANDER_SIZE 12 #define _TREE_VIEW_VERTICAL_SEPARATOR 2 #define _TREE_VIEW_HORIZONTAL_SEPARATOR 2 + /* MAEMO START */ +#define _TREE_VIEW_SEPARATOR_HEIGHT 2 + /* MAEMO END */ gtk_widget_class_install_style_property (widget_class, g_param_spec_int ("expander-size", @@ -835,6 +838,24 @@ "\1\1", GTK_PARAM_READABLE)); + /* MAEMO START */ + /** + * GtkTreeView::separator-height: + * + * Height in pixels of a separator. + * + * Since: maemo 3.0 + */ + gtk_widget_class_install_style_property (widget_class, + g_param_spec_int ("separator-height", + P_("Separator height"), + P_("Height of the separator"), + 0, + G_MAXINT, + _TREE_VIEW_SEPARATOR_HEIGHT, + GTK_PARAM_READABLE)); + /* MAEMO END */ + /* Signals */ widget_class->set_scroll_adjustments_signal = g_signal_new (I_("set_scroll_adjustments"), @@ -5483,6 +5504,9 @@ gboolean draw_vgrid_lines, draw_hgrid_lines; gint focus_pad; gint grid_line_width; + /* MAEMO START */ + gint separator_height; + /* MAEMO END */ /* double check the row needs validating */ if (! GTK_RBNODE_FLAG_SET (node, GTK_RBNODE_INVALID) && @@ -5502,6 +5526,9 @@ "horizontal-separator", &horizontal_separator, "vertical-separator", &vertical_separator, "grid-line-width", &grid_line_width, + /* MAEMO START */ + "separator-height", &separator_height, + /* MAEMO END */ NULL); draw_vgrid_lines = @@ -5548,7 +5575,9 @@ height = MAX (height, tree_view->priv->expander_size); } else - height = 2 + 2 * focus_pad; + /* MAEMO START */ + height = separator_height + 2 * focus_pad; + /* MAEMO END */ if (gtk_tree_view_is_expander_column (tree_view, column)) {
- Previous message: [maemo-commits] r9166 - in projects/haf/branches/gtk+/maemo-gtk-2-10: . gtk
- Next message: [maemo-commits] r9180 - in projects/haf/trunk/maemo-af-desktop: . hildon-home
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]