分页: 1 / 1

HOWTO: Flashing taskbar in Gnome (use with GAIM)

发表于 : 2005-06-11 22:23
freeflying
A long wanted feature in gnome is flashing taskbars, to use with programs such as GAIM for new IM notification and others. The code has been submitted in a gnome bugzilla and was submitted into the gnome cvs so I patched the current version of libwnck to handle the flashing taskbar.

To get the patched version of libwnck:

Code:
wget http://z.narutochaos.com/ubuntu/libwnck ... 1_i386.deb
This downloads the patched libwnck.

Code:
sudo dpkg -i libwnck16_2.10.0-0ubuntu1_i386.deb
This installs the patched version.

Code:
sudo echo libwnck16 hold | sudo dpkg --set-selections
The command keeps apt-get from overwriting it.

Code:
killall gnome-panel
This command closes the gnome panels and they automatically restart.

After this, your taskbar should flash when the window manager is sent the urgent hint.

To get GAIM to use flashing taskbar notification:

Start up GAIM and click Tools and then Preferences. Then click on the "Plugins" preference and check the checkbox beside the Message Notification plugin. After that there should be a Message Notification preference entry under the parent "Plugins". Click on that and it should give a list of options for the Message Notification plugin. Check the box for "set window manager "URGENT" hint and configure the rest of the options to your liking. Now, when you recieve a new message, your taskbar will flash to notify you.

发表于 : 2005-06-15 22:11
stormelf
闪烁任务栏是gnome中一个被大家期待已久的特性,它可以被用于诸如GAIM这样的程序的消息提醒或者别的用途。有关的代码已经被提交到一个gnome bugzilla并且被加入到了gnome的cvs中,因此,我给当前版本的libwnck打了补丁,来处理闪烁任务栏。
请用如下方式来获得libwnck打过补丁后的版本:

代码: 全选

wget http://z.narutochaos.com/ubuntu/libwnck16_2.10.0-0ubuntu1_i386.deb
这将下载打过补丁后的libwnck版本。

代码: 全选

sudo dpkg -i libwnck16_2.10.0-0ubuntu1_i386.deb
这将安装打过补丁后的版本

代码: 全选

sudo echo libwnck16 hold | sudo dpkg --set-selections
这条命令将防止apt-get覆盖它。

代码: 全选

killall gnome-panel
这条命令将关闭所有gnome面板并自动重启它们。 
完了之后,您的任务栏将在窗口管理器收到紧急提示的时候闪烁。
为了让GAIM可以使用闪烁任务栏提示,
请启动GAIM,单击工具菜单下的首选项(Preferences),然后点击插件,选中消息通知插件。之后应该在插件的下面出现“消息提醒”的项,点击该项,你应该可以看到一个选项的列表。选中”设置窗口管理器’紧急‘提示“ 复选框,并根据您自己的喜好设置其他选项。现在,当你收到一条新消息的时候,您的任务栏将闪烁以通知您。

发表于 : 2005-07-18 14:46
oneleaf