libfetion / libfetion-gui

Automatically exported from code.google.com/p/libfetion-gui
2 stars 0 forks source link

linux 托盘图标背景 不能被刷新 #91

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. 在linux更换在线状态,
2. 托盘图标有部分背景是黑的..
3.

What is the expected output? What do you see instead?
能正常显示托盘图标

Please use labels and text to provide additional information.
好像092版本没有这个现象,

Original issue reported on code.google.com by libfet...@gmail.com on 15 Jun 2009 at 2:06

GoogleCodeExporter commented 9 years ago
Not reproduced in r312, should be marked as RESOLVED??

Original comment by alsor.zhou on 13 Aug 2009 at 8:35

GoogleCodeExporter commented 9 years ago
I still have this problem in my 8.04/8.10 Ubuntu.

Original comment by libfet...@gmail.com on 13 Aug 2009 at 8:43

GoogleCodeExporter commented 9 years ago
Not sure if it's a bug of gnome-taskbar or not (what's your gnome version? or 
KDE?)
My working environment, Karmic 9.10, Gnome 2.26~

Original comment by alsor.zhou on 13 Aug 2009 at 9:00

GoogleCodeExporter commented 9 years ago
Gnome..

But in 092 version of libfetion, This issues didn't occur.
So I think maybe it is the libfetion's problem.
I will take focus on it. -0 

Original comment by libfet...@gmail.com on 13 Aug 2009 at 9:03

GoogleCodeExporter commented 9 years ago
Paste my screen shot~ still not reproduced. 

ummm

Original comment by alsor.zhou on 13 Aug 2009 at 9:20

Attachments:

GoogleCodeExporter commented 9 years ago
attach my screen shot..

Original comment by libfet...@gmail.com on 13 Aug 2009 at 9:29

Attachments:

GoogleCodeExporter commented 9 years ago
Really strange, no idea

Original comment by alsor.zhou on 13 Aug 2009 at 9:45

GoogleCodeExporter commented 9 years ago
这个应该是图片透明色的问题。
新版里面的图片背景是透明色的。
我将换回老版本就应该没问题。

Original comment by libfet...@gmail.com on 29 Aug 2009 at 4:19

GoogleCodeExporter commented 9 years ago
照理说sys 
tray的图标应该用透明背景的图片,老版本的背景是白色的么�
��

Original comment by alsor.zhou on 29 Aug 2009 at 4:52

GoogleCodeExporter commented 9 years ago
Have you enabled Compiz? Sounds like this bug,
https://bugs.launchpad.net/ubuntu/+source/compiz/+bug/327000

snapshot
http://launchpadlibrarian.net/22310633/Screenshot.png

Original comment by alsor.zhou on 29 Aug 2009 at 5:07

GoogleCodeExporter commented 9 years ago
现象是一样的,但我的电脑好像没有开启compiz...

Original comment by libfet...@gmail.com on 30 Aug 2009 at 6:23

GoogleCodeExporter commented 9 years ago
确实有这个问题,我的是必现的,只要把任何窗口移动到图标上
,图标背景就变成了窗口的颜色..我
用的窗口管理器是fvwm,systray是用的stalonetray 
,不过在fvwmconsole中重启 fvwm后就没有问
题了. 附图.

Original comment by duoer1...@163.com on 15 Sep 2009 at 2:28

Attachments:

GoogleCodeExporter commented 9 years ago
092就没有这个问题,V1.0才有的.

Original comment by duoer1...@163.com on 15 Sep 2009 at 2:41

GoogleCodeExporter commented 9 years ago
确实有这个问题,我的是必现的,只要把任何窗口移动到图标上
,图标背景就变成了窗口的颜色..我
用的窗口管理器是fvwm,systray是用的stalonetray 
,不过在fvwmconsole中重启 fvwm后就没有问
题了. 附图.

请问 duoer兄, 你是怎么将“窗口移动到图标上”?
我想重现这个问题。这样将有助于我验证这个问题。 ;-)

Original comment by libfet...@gmail.com on 15 Sep 2009 at 2:49

GoogleCodeExporter commented 9 years ago
Thanks for your confirm. Warmly:)

ddd, root cause found. "no systray_online_flick picture founded" in v1.0 skins.
see skins/res.xml
systray_offline="systray/offline.png"
systray_online="systray/online.png"
systray_hide="systray/hide.png"
systray_away="systray/away.png"
systray_busy="systray/busy.png"
systray_online_flick="systray/online_flick.png"       <---- not found

and flickTray function in fxResource.cpp
    if (flag)
    {
        return QPixmap(getSkinPath() + "/" +
                       getXMLRes("systray_online", ""));
    }
    else
    {
        //FIXME: QPixmap has an invalid parameter here!!!
        return QPixmap(getSkinPath() + "/" +
                       getXMLRes("systray_online_flick",""));
    }

Original comment by alsor.zhou on 15 Sep 2009 at 2:57

GoogleCodeExporter commented 9 years ago
Please ignore my comment 15, lol. It seems another potential problem, not this 
bug.

Original comment by alsor.zhou on 15 Sep 2009 at 3:04

GoogleCodeExporter commented 9 years ago
Hi alsor,

The online_flick.png could be ignored when flicking.

Original comment by libfet...@gmail.com on 15 Sep 2009 at 3:22

GoogleCodeExporter commented 9 years ago
用fvwm可以把桌面上任意窗口拖动到systray上的,不像gnome那样,��
�口不能覆盖任务栏,也就不能
覆盖任务栏中的systray了,所以这些用户就可能偶尔才发现有这
个问题.  

   但很奇怪的是,我只要把fvwm重新启动,这个问题就没有了.

Original comment by duoer1...@163.com on 16 Sep 2009 at 2:02

GoogleCodeExporter commented 9 years ago
更恐怖的事情发生了

Original comment by duoer1...@163.com on 16 Sep 2009 at 3:13

Attachments:

GoogleCodeExporter commented 9 years ago
Horrible, really ... lol...

Original comment by alsor.zhou on 16 Sep 2009 at 3:20

GoogleCodeExporter commented 9 years ago
这个也许是QT程序兼容的问题,呵呵,我尽量在1.1发布前搞定
。

Original comment by libfet...@gmail.com on 16 Sep 2009 at 3:42

GoogleCodeExporter commented 9 years ago
我退到 0.92去

Original comment by duoer1...@163.com on 17 Sep 2009 at 2:23

GoogleCodeExporter commented 9 years ago
我觉得应该是图标的问题,
你把092的图标 用在1.0上也许就没问题了。

/usr/share/libfetion/ 
systray下面的,替换1.0里面的,也许就不会有这问题了。

能帮我试试不?

Original comment by libfet...@gmail.com on 17 Sep 2009 at 2:31

GoogleCodeExporter commented 9 years ago
还是不行阿,注意到0.92的图片格式是gif,但是1.0是png,是不是格�
��问题?
我不能直接把gif放过去,程序里不认.

Original comment by duoer1...@163.com on 20 Sep 2009 at 3:38

GoogleCodeExporter commented 9 years ago
我找到重现这个问题的方法了。
ctrl+alt+F1 进入终端,然后在ctrl+alt+F7 切回来。

Original comment by libfet...@gmail.com on 20 Sep 2009 at 6:15

GoogleCodeExporter commented 9 years ago
我试了gif的,也会这样,
看了是程序那里改动了,导致的。

Original comment by libfet...@gmail.com on 20 Sep 2009 at 6:18

GoogleCodeExporter commented 9 years ago
折腾了一下午. 来回的切换回归版本..

最后定位在r238-r239之间.
这两个版本很简单的,对比发现只有那个style.css文件存在的��
�题...

最后总结一想,应该是

QWidget{
    font-family:Arial, Helvetica, sans-serif;
    color:#333333;
    font-size:12px;
}

这个才会影响系统托盘组件的,这又是和颜色有关,所以把��
�色color的设置去掉,
然后就OK了。

我的天啊,整整一下午啊...

Original comment by libfet...@gmail.com on 20 Sep 2009 at 10:01

GoogleCodeExporter commented 9 years ago
fix in r374.

to duoer/alsor:
Could you help me to test this fix?

Original comment by libfet...@gmail.com on 20 Sep 2009 at 10:12

GoogleCodeExporter commented 9 years ago

To alsor:
Maybe the issue 97 is caused by hard coding of setting QWidget's property too.

QWidget{
    font-family:Arial, Helvetica, sans-serif;
    font-size:12px;
}

I think we should remove it completely from the "style.css",
and we should review the fix of issue97.
Do you agree wiht me?

Original comment by libfet...@gmail.com on 20 Sep 2009 at 10:17

GoogleCodeExporter commented 9 years ago
how to ? 先给我个内测版本??

Original comment by duoer1...@163.com on 20 Sep 2009 at 1:08

GoogleCodeExporter commented 9 years ago
你可以直接更新svn的代码,然后自己编译吧。 ;-)

Original comment by libfet...@gmail.com on 20 Sep 2009 at 1:15

GoogleCodeExporter commented 9 years ago
You have resolved this problem ! congratulations!!

Original comment by duoer1...@163.com on 20 Sep 2009 at 2:27

GoogleCodeExporter commented 9 years ago
不过怎么普通用户不能启动阿,提示段失败,怎么回事? 
segmentation fault,root用户没有问题!

Original comment by duoer1...@163.com on 20 Sep 2009 at 2:48

GoogleCodeExporter commented 9 years ago
飞信号:645763086  知道什么原因麻烦给个消息.

Original comment by duoer1...@163.com on 20 Sep 2009 at 3:07

GoogleCodeExporter commented 9 years ago
to douer:
能否使用gdb运行下程序,
然后崩溃后,运行bt命令。

给我看看,如果有问题,我们可以另外开个issue解决这个问题
。

Original comment by libfet...@gmail.com on 20 Sep 2009 at 3:07

GoogleCodeExporter commented 9 years ago
to  duoer:
有QQ或者gtalk吗?
我的是 344300893
gtalk: libfetion@gmail.com

Original comment by libfet...@gmail.com on 20 Sep 2009 at 3:10

GoogleCodeExporter commented 9 years ago

Program received signal SIGSEGV, Segmentation fault.
[Switching to Thread -1208874416 (LWP 9475)]
0x080b5e89 in QAbstractItemView::verticalScrollbarAction ()
(gdb) 
(gdb) 
(gdb) bt
#0  0x080b5e89 in QAbstractItemView::verticalScrollbarAction ()
#1  0x0805be55 in QAbstractItemView::verticalScrollbarAction ()
#2  0x0805bfb4 in QAbstractItemView::verticalScrollbarAction ()
#3  0x08059fc5 in QAbstractItemView::verticalScrollbarAction ()
#4  0x0805996c in QAbstractItemView::verticalScrollbarAction ()
#5  0x005f8390 in __libc_start_main () from /lib/libc.so.6
#6  0x080595e1 in QAbstractItemView::verticalScrollbarAction ()
(gdb) (gdb) qquit

是这样操作吗?  

Original comment by duoer1...@163.com on 20 Sep 2009 at 3:25

GoogleCodeExporter commented 9 years ago
+你QQ老是提示失败,你加我吧 83707782

Original comment by duoer1...@163.com on 20 Sep 2009 at 3:30