[gnome-applets/wip/segeiger/window-picker-in-process: 6/8] Debug code: I will rebase this branch and delete this commit when I have fixed all bugs



commit 2b85936dcec1313135ca1a84536d7ba6399d3bdf
Author: Sebastian Geiger <sbastig gmx net>
Date:   Sun Jul 12 00:08:29 2015 +0200

    Debug code: I will rebase this branch and delete this commit when I have fixed all bugs

 windowpicker/src/task-item.c |   10 ++++++++++
 1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/windowpicker/src/task-item.c b/windowpicker/src/task-item.c
index 9fb1382..705dab8 100644
--- a/windowpicker/src/task-item.c
+++ b/windowpicker/src/task-item.c
@@ -280,6 +280,16 @@ static void on_size_allocate (
     priv->area.width = allocation->width;
     priv->area.height = allocation->height;
 
+    GtkWidget *taskList = gtk_widget_get_parent (widget);
+    int taskListWidth = gtk_widget_get_allocated_width (taskList);
+    GtkWidget *outerBox = gtk_widget_get_parent (taskList);
+    int outerBoxWidth = gtk_widget_get_allocated_width (outerBox);
+    int appletWidth = gtk_widget_get_allocated_width (GTK_WIDGET (applet));
+
+    g_message ("TaskList Width: %d", taskListWidth);
+    g_message ("OuterBox Width: %d", outerBoxWidth);
+    g_message ("Applet Width: %d", appletWidth);
+
     update_hints (item);
 }
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]