[Xfce4-commits] <thunar:jannis/new-shortcuts-pane> Add debug output for the height computation.

Jannis Pohlmann noreply at xfce.org
Tue Jun 7 00:46:01 CEST 2011


Updating branch refs/heads/jannis/new-shortcuts-pane
         to 877401372d6545ee715d8c7e7d8832545d7ad7dd (commit)
       from ae60ba34e0ddcf0288e7120edfc8ed8bd6d354a5 (commit)

commit 877401372d6545ee715d8c7e7d8832545d7ad7dd
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