Re: gkrellm, right side of the screen, hiding

Daniel Adamski <[email protected]>
Newsgroups gmane.comp.gnome.apps.gkrellm
Message-ID <[email protected]>
On 2006-06-04 23:14:58, Daniel Adamski <[email protected]> wrote:

> As some of you know, if you click with your middle mouse button on the edge of
> gkrellm than it "hides" to a narrow stripe. It works OK (or at least as I would
> expected) if gkrellm is at the left edge of the screen:
> http://mars.iti.pk.edu.pl/~danadam/01.jpg (12 KB)
> http://mars.iti.pk.edu.pl/~danadam/02.jpg (4.3 KB)
> 
> I prefer having it at the right edge of the screen, but unfortunately it
> doesn't behave as I would expected in that case. After middle-clicking on
> gkrellm it folds to ITS left border, so the narrow stripe isn't placed at the
> right edge:
> http://mars.iti.pk.edu.pl/~danadam/03.jpg (11 KB)
> http://mars.iti.pk.edu.pl/~danadam/04.jpg (4.5 KB)
> 
> Now if I middle-click it one more time it unfolds again to left:
> http://mars.iti.pk.edu.pl/~danadam/05.jpg (13 KB)
> 
>  From now on it stays where it is and successive middle-clicks doesn't make it
> "move" to the left.
> 
> I use Debian (testing), gkrellm 2.2.9, openbox 3.2 .
> 
Here are some results of my evening investigation. I have no idea of GTK 
programming so these are only clues. Maybe some of you can use them to try to 
fix it.

Chunk of code from src/main.c:

static gboolean
side_frame_button_press(GtkWidget *widget, GdkEventButton *ev, gpointer data)
     {
     [...]
     if (ev->button == 2 || (_GK.m2 && ev->button == 1))
         {
         if (monitors_visible)
             {
             // show widgets
             if (direction == CLOSE_RIGHT)
                 {
                 gdk_window_move(gtree.window->window,
                                 x_gkrell - _GK.chart_width, y_gkrell);
                 }
             }
         else
             {
             // hide widgets
             if (direction == CLOSE_RIGHT)
                 {
                 gdk_window_move(gtree.window->window,
                                 x_gkrell + _GK.chart_width, y_gkrell);
                 }
             }
         }


Variable direction equals CLOSE_RIGHT if gkrellm window is on the right side of 
the screen. As you can see, gkrellm window is moved to the right during hiding.
Or at least it should be moved. In my case it won't be moved if it's placed at 
the right edge of screen. On my system I'm not able to move gkrellm window out 
of the screen and this code tries to do it. It appears that it doesn't matter 
that those widgets are hidden.

So, if anyone knows how to make gkrellm to be able to move out of the screen, 
please tell me. I'd appreciate it very much.


Best Regards!
-- 
Daniel Adamski


---------------------------------------------------------------------
Dzwon za grosze, a nawet za darmo! 
>>> http://link.interia.pl/f1967


_______________________________________________
Gkrellm mailing list
[email protected]
http://ninja.linux-phreak.biz/mailman/listinfo/gkrellm
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.