Mercurial > pidgin
view src/gtknotify.h @ 12184:5cd2294127e8
[gaim-migrate @ 14486]
SF Patch #1363103, Casey Harkins
'From the wiki:
"Crash when Message Notification plugin is set to use
the Urgent hint, when a message is queued by the new
queuing code."
XGetWMHints() is returning NULL on the hidden
conversation window which holds the "queued" conversations.
The man page says:
"The XGetWMHints function reads the window manager
hints and returns NULL if no WM_HINTS property was set
on the window or returns a pointer to a XWMHints
structure if it succeeds."
This patch allocates it if its NULL. This might not be
necessary, as setting the URGENT hint on an unmapped
window is not really going to do anything.
Probably too much explanation for a 2 line patch. :-)'
committer: Tailor Script <tailor@pidgin.im>
author | Richard Laager <rlaager@wiktel.com> |
---|---|
date | Tue, 22 Nov 2005 00:18:28 +0000 |
parents | db62420a53a2 |
children |
line wrap: on
line source
/** * @file gtknotify.h GTK+ Notification API * @ingroup gtkui * * gaim * * Gaim is the legal property of its developers, whose names are too numerous * to list here. Please refer to the COPYRIGHT file distributed with this * source distribution. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #ifndef _GAIM_GTKNOTIFY_H_ #define _GAIM_GTKNOTIFY_H_ #include "notify.h" /** * Returns the UI operations structure for GTK+ notification functions. * * @return The GTK+ UI notify operations structure. */ GaimNotifyUiOps *gaim_gtk_notify_get_ui_ops(void); #endif /* _GAIM_GTKNOTIFY_H_ */