nabi is not visible in notification area

Bug #444167 reported by Bugbear5
28
This bug affects 4 people
Affects Status Importance Assigned to Milestone
nabi (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Binary package hint: nabi

I'm using ubuntu 9.10 beta(up-to-date) and nabi 0.99-3

nabi is not visible in notification area. Please see the screenshot.

http://dl.getdropbox.com/u/558613/screenshot1.png

This is first boot time screenshot. gtk theme is not applied on the program. In Jaunty, nabi is visible on notification area, and gtk theme is applied. Please see the next screenshot.

http://dl.getdropbox.com/u/558613/screenshot2.png

This is what I expected to happen. I kill and rerun nabi, bug is not occured.

I don't know what happens, but I think there are problem in new ubuntu splash.

ProblemType: Bug
Architecture: i386
Date: Tue Oct 6 09:49:55 2009
DistroRelease: Ubuntu 9.10
Package: nabi 0.99.3-1
ProcEnviron:
 LANG=ko_KR.UTF-8
 SHELL=/bin/bash
ProcVersionSignature: Ubuntu 2.6.31-11.38-generic
SourcePackage: nabi
Uname: Linux 2.6.31-11-generic i686

Revision history for this message
Bugbear5 (bugbear5) wrote :
Revision history for this message
Alexander Eberspächer (alex-eb) wrote :

I can confirm this bug. Exactly the same behaviour here - including the fact that killing nabi and restarting it resolves the issue.

Revision history for this message
dalfland (dalfland) wrote :

Just upgraded to 9.10 today. This hasn't been fixed.

Revision history for this message
Soo-Hyun Choi (s.choi) wrote :

I can confirm this bug, too. Exactly same behaviour like the people here. I had to kill nabi and re-run to see it in the gnome panel. Otherwise, it is looking ugly by hanging around the gnome desktop. I have played around by modifying "/etc/X11/xinit/xinput.d/nabi" and "~/.nabi/config" without success.

Revision history for this message
Soo-Hyun Choi (s.choi) wrote :

Sorry, I have missed the information about my system. I am running Ubuntu 9.10 amd64 server edition (Linux 2.6.31-14-server), and the version of nabi that I'm using is 0.99.3-1. I've tried to install the latest one (nabi-0.99.4.tar.gz), but it wasn't helpful, either. :(

Revision history for this message
MoonKyu Song (lanterrt) wrote :

I did some experiments with nabi and notification applet. When I remove notification area from panel, it shows palette window even though I re-run the applet, it doesn't be embedded even though others are embedded correctly.

So, I did add some messages in nabi source to check what happens, and it seems that it doesn't receive any ClientMessage from root window. And there is other codes who does register filter and change event mask for receiving events.

It does call gdk_window_set_events(root_window, GDK_PROPERTY_CHANGE_MASK).

When I changed it to followings.

mask = gdk_window_get_events(nabi->root_window) | GDK_PROPERTY_CHANGE_MASK;
gdk_window_set_events(nabi->root_window, mask);

Then it works well. According to the manual of gdk_window_set_events(), it shouldn't disable ClientMessage because it doesn't have proper mask for ClientMessage. And also there is description, it will let it receive ClientMessage always whatever supplied mask is.

Revision history for this message
MoonKyu Song (lanterrt) wrote :

I referred the URL http://developer.gnome.org/doc/GGAD/sec-gdkevent.html.
And the description is following which is located on top of Table 3. Event Masks.

Selection, client, drag-and-drop, and delete events have no masks, because they are automatically selected (Xlib selects them for all windows).

Revision history for this message
Soo-Hyun Choi (s.choi) wrote :

How to fix this bug: (Thanks to MoonKyu Song)

0) Remove any previous "nabi" installation by doing "sudo aptitude remove nabi".

1) Download the latest nabi from http://kldp.net/frs/download.php/5287/nabi-0.99.4.tar.gz
2) Untar and unzip
3) Change "src/ui.c" as described below.

    $> vi src/ui.c +1052

    then, add/amend as the below:
    (I am going to modify "install_event_filter()" method in src/ui.c)

    int event_mask = gdk_window_get_events(nabi->root_window) | GDK_PROPERTY_CHANGE_MASK;
    //gdk_window_set_events(nabi->root_window, GDK_PROPERTY_CHANGE_MASK);
    gdk_window_set_events(nabi->root_window, event_mask);

4) then, configure and install

    $> ./configure && make
    $> sudo make install

    when configure, you may need to install "libgtk2.0-dev" and "libhangul-dev".
    this can be done by:

    $> sudo aptitude install libgtk2.0-dev libhangul-dev

As MoonKyu pointed out as the above, the bug was due to the fact that nabi accidently(?) disables a ClientMessage.

Revision history for this message
dalfland (dalfland) wrote :

Works like a charm!!!
thanks Soo-Hyun

Revision history for this message
Alexander Eberspächer (alex-eb) wrote :

Unfortunately, this didn't work for me.

Here is my install_event_filter():

static void
install_event_filter(GtkWidget *widget)
{
    GdkScreen *screen;

    int event_mask = gdk_window_get_events(nabi->root_window) | GDK_PROPERTY_CHANGE_MASK; // new, idea from launchpad

    screen = gdk_drawable_get_screen(GDK_DRAWABLE(widget->window));
    nabi->root_window = gdk_screen_get_root_window(screen);
    //gdk_window_set_events(nabi->root_window, GDK_PROPERTY_CHANGE_MASK);
    gdk_window_set_events(nabi->root_window, event_mask); // idea from lanchpad
    gdk_window_add_filter(nabi->root_window, root_window_event_filter, NULL);
}

Any ideas?

Revision history for this message
Soo-Hyun Choi (s.choi) wrote :

AlexE,

You should put "int event_mask...." after "nabi->root_winwow...." statement, something like the below.

static void
install_event_filter(GtkWidget *widget)
{
    GdkScreen *screen;

    screen = gdk_drawable_get_screen(GDK_DRAWABLE(widget->window));
    nabi->root_window = gdk_screen_get_root_window(screen);
    int event_mask = gdk_window_get_events(nabi->root_window) | GDK_PROPERTY_CHANGE_MASK;
    gdk_window_set_events(nabi->root_window, event_mask);
    gdk_window_add_filter(nabi->root_window, root_window_event_filter, NULL);
}

Revision history for this message
Bugbear5 (bugbear5) wrote :

Guys, I made a nabi package for this bug fix.

http://pds17.egloos.com/pds/200911/06/58/nabi_0.99.4-1_i386.deb
http://pds16.egloos.com/pds/200911/06/58/nabi_0.99.4-1_amd64.deb

Soo-Hyun Choi 's patch did work! Thanks!

Now nabi is visible in notification area quite well.

Thanks Guys : )

Revision history for this message
Alexander Eberspächer (alex-eb) wrote :

Thanks, Soo-Hyun (수현 in Hangul?)! Works.

Revision history for this message
Soo-Hyun Choi (s.choi) wrote :

Hi,

We now have an official patch released by nabi development team:
http://kldp.net/tracker/download.php/275/100275/305368/453/nabi-tray-bug.diff

If you can't open the above URL, please take the attachment.

Cheers,
Soo-Hyun

Revision history for this message
Choe Hwanjin (choe-hwanjin) wrote :

The new bug fixed version 0.99.6 has been released.

You can download it here:
http://kldp.net/frs/download.php/5440/nabi-0.99.6.tar.gz

Revision history for this message
Alexander Eberspächer (alex-eb) wrote :

I changed the status to "Confirmed". I suppose that's the right status because so far, the patch has not been made available in the repositories.

Changed in nabi (Ubuntu):
status: New → Confirmed
Revision history for this message
Kevin (kevinshlee) wrote :

I'm wondering when I can get the fixed one from the repository.

Revision history for this message
Soo-Hyun Choi (s.choi) wrote :

The nabi dev team has updated the source code recently - you can download the latest tarball at http://kldp.net/frs/download.php/5440/nabi-0.99.6.tar.gz (this should be working fine). However, I am not sure when they will release/update the deb package in Ubuntu. In fact, I am not sure who is in charge of updating nabi package for Ubuntu.

Please report any problem directly to their project homepage at http://kldp.net/projects/nabi/ (more precisely here - http://kldp.net/projects/nabi/bugs).

Revision history for this message
Changwoo Ryu (cwryu) wrote :

0.99.6 has been in Debian/Ubuntu long ago. Yeah usually no one cares about it when it's fixed.

Changed in nabi (Ubuntu):
status: Confirmed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.