[Xfce4-commits] <thunar:jannis/new-shortcuts-pane> Add debug output for the height computation.
Jannis Pohlmann
noreply at xfce.org
Fri Jul 15 21:10:13 CEST 2011
Updating branch refs/heads/jannis/new-shortcuts-pane
to 086e3558169b1d9dffcac83a13f9709a1a9a0b69 (commit)
from 526859897fc2fc46cdaa0f036e1e5d138a6e5a0a (commit)
commit 086e3558169b1d9dffcac83a13f9709a1a9a0b69
Author: Jannis Pohlmann <jannis at xfce.org>
Date: Tue Jun 7 00:45:41 2011 +0200
Add debug output for the height computation.
thunar/thunar-shortcut-row.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
diff --git a/thunar/thunar-shortcut-row.c b/thunar/thunar-shortcut-row.c
index 8b03fcb..00b86fe 100644
--- a/thunar/thunar-shortcut-row.c
+++ b/thunar/thunar-shortcut-row.c
@@ -663,14 +663,22 @@ thunar_shortcut_row_size_request (GtkWidget *widget,
/* let the event box class compute the size we need for its children */
(*GTK_WIDGET_CLASS (thunar_shortcut_row_parent_class)->size_request) (widget, requisition);
+ g_debug ("computed height: %i", requisition->height);
+
/* get the size request of the button */
gtk_widget_size_request (row->action_button, &button_requisition);
+ g_debug (" button height: %i", button_requisition.height);
+ g_debug (" icon size + 4: %i", row->icon_size + 4);
+ g_debug (" min height: %i", THUNAR_SHORTCUT_ROW_MIN_HEIGHT);
+
/* use the maximum of the computed requisition height, the button height,
* the icon size + 4, and the minimum allowed height for rows */
requisition->height = MAX (requisition->height, button_requisition.height);
requisition->height = MAX (requisition->height, (gint) row->icon_size + 4);
requisition->height = MAX (requisition->height, THUNAR_SHORTCUT_ROW_MIN_HEIGHT);
+
+ g_debug (" => %i", requisition->height);
}
More information about the Xfce4-commits
mailing list