You are not logged in.

#1 2016-04-10 20:05:11

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 82

[SOLVED] GTK+ 3.20 Dialog boxes no longer in the center

Hello Folks,
I've got a simple bash script:

#!/bin/bash
#shutdown script
gxmessage "Zamknij..." -center -title "Zamknij..." -default "Anuluj" -buttons "Zamknij System":2,"Uruchom ponownie":3,"Anuluj":1

case $? in
    1)
        echo "Exit";;
    2)
    	systemctl poweroff;;
    3)
        systemctl reboot;;
esac

As it's quite easy to guess, it generates a simple gxmessage (GTK3) dialog window, which should appear in the center of the screen - there is the "-center" switch applied which is supposed to force that. And it used to do so, but since the latest GTK3 upgrade, that's no longer true. As I've already noticed, the same applies to other GTK3 dialog windows, in apps like Transmission for example - instead of being shown in the center of the main window of the app (or at least more or less there), they all appear in the very upper left corner of the entire screen, which is quite disturbing. So does my gxmessage script as well.
I would like to know whether that's a GTK+ 3.20 bug, or rather something wrong, broken or misconfigured in my case roll
I'm using Openbox ant I've not even modified my GTK3 config since long time ago, just did the regular "pacman -Syu", if that matters...
Any ideas?
Thanks in advance.

Last edited by Hwiparam (2016-04-13 08:45:42)

Offline

#2 2016-04-10 21:02:23

DeadMetaler
Member
Registered: 2016-03-16
Posts: 41

Re: [SOLVED] GTK+ 3.20 Dialog boxes no longer in the center

It's known bug in gtk 3.20.2.

I have already reported and bug was fixed.
https://bugzilla.gnome.org/show_bug.cgi?id=764403

1. You must wait fo next release 3.20.3
2. You may build package with patch manually
https://git.gnome.org/browse/gtk+/commi … fbe1257c54
3. You may build package with ABS. Replace gtk+-3.20.2.tar.xz with patched https://git.gnome.org/browse/gtk+/snaps … c54.tar.xz.
Rename downloaded tar.xz in gtk+-3.20.2.tar.xz and rename included folder in gtk+-3.20.2

Offline

#3 2016-04-10 21:25:20

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 82

Re: [SOLVED] GTK+ 3.20 Dialog boxes no longer in the center

Thanks for suggestions, I think I'd rather be patient for a while and wait for 3.20.3 to hit the repos roll Yes, probably I could build it either manually or using ABS as you suggested, but now I'm quite busy - believe me, there are more urgent things than this particular issue smile

Last edited by Hwiparam (2016-04-10 21:26:26)

Offline

#4 2016-04-10 21:26:02

rlees85
Member
From: Daventry, UK
Registered: 2015-04-29
Posts: 95
Website

Re: [SOLVED] GTK+ 3.20 Dialog boxes no longer in the center

Thanks DeadMetaler !

It affects a lot of Cinnamon dialogs too, most notably the shutdown one. Will wait for the fix smile

Offline

#5 2016-04-13 08:45:17

Hwiparam
Member
From: Poland
Registered: 2011-09-26
Posts: 82

Re: [SOLVED] GTK+ 3.20 Dialog boxes no longer in the center

After today's "pacman -Syu" (gtk3 upgraded to 3.20.3) I no longer encounter the issue in any app/dialog window. Seems fixed, thanks.

Offline

Board footer

Powered by FluxBB