Re: [gpm] [Patch] Remove the icon attachment when showing the battery capacity warning



On Fri, 2009-05-15 at 17:28 +0100, Richard Hughes wrote:
> On Fri, May 15, 2009 at 4:34 PM, Pramod Dematagoda
> <pmd lotr gandalf gmail com> wrote:
> > But the situation is this, this notification is being shown when GNOME
> > starts loading, and in my laptop, this is when there is nothing visible
> > in the screen at all apart from the wallpaper, so the notification gets
> > attached to an icon which does not seem to exist at that time, which
> > probably explains why the notification is just seen floating instead of
> > showing up somewhere sensible. So this problem may not necessarily be
> > something wrong with notification-daemon but with the issue that GPM
> > shows the notification just too quickly to be attached to a present
> > icon. If you could suggest what would be best in this case, I'll see
> > what I can do. :)
> 
> Ohh, in that case we just need to add a delay to the icon showing up.
> There are other notifications that do this already IIRC, just search
> for g_timeout_add.
> 
> Richard.

Hello Richard,

I have tried implementing what you suggested, but I am unsure as to
where exactly I ought to stuff the g_timeout_add to, when I find one
function to set the tray icon, I find another that seems to have some
part in the fray, a few that I've found:-

1) gpm_tray_icon_init - gpm-tray-icon.c : 615

2) gpm_notify_use_status_icon - gpm-notify.c : 209

so some guidance as to what to make of this would be really helpful. :)

Thanks.

Pramod Dematagoda



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]