On Tue, Sep 3, 2013 at 1:30 AM, Giuseppe Penone <giuspen@gmail.com> wrote:
Hi, in the branch named xkb (for my already completed work in keyboard layout handler) I'm also working on a new plugin that integrates the launchbar and taskbar to be able to add/remove launchers from the taskbar right click and to hide a launcher when a task button is visible.
I'm not far from a first version (even if actually the only visible differences from normal launchbar and taskbar separated are many prints to the terminal) but I realized that I introduced a problem: when the task buttons take all the space from the taskbar, they don't shrink to fit in but are hidden under the other plugins that follow.
If anybody has some experience with the taskbar, could help me to understand what I'm doing wrong?
The single eventbox that was there when it was only taskbutton now became:

-- box(H or V)
--- eventbox launch
--- eventbox task

I finally fixed it, turns out that I simply had to pack the taskbar to the container
with expand=TRUE rather than expand=FALSE.

gtk_box_pack_start(GTK_BOX(p->pwid), ltbp->p_evbox_launchbar, FALSE, TRUE, 0);
-    gtk_box_pack_start(GTK_BOX(p->pwid), ltbp->p_evbox_taskbar, FALSE, TRUE, 0);
+    gtk_box_pack_start(GTK_BOX(p->pwid), ltbp->p_evbox_taskbar, TRUE, TRUE, 0);