grim/guifications2

Gave priority to use_gtk instead of a background image
org.guifications.gf2
2008-12-27, Gary Kramlich
82f5c1e7c1d0
Gave priority to use_gtk instead of a background image
--- a/ChangeLog Thu Mar 27 02:53:05 2008 -0400
+++ b/ChangeLog Sat Dec 27 04:15:37 2008 -0500
@@ -4,6 +4,7 @@
grimmy.
* Memory leak fixes
* Added a new notification "new-emails" for handling multiple new emails.
+ * Gave priority to use_gtk over a background image in themes.
Version 2.16 12/16/07:
* Really fixed the G_GNUC_NULL_TERMINATED errors on non-Windows platforms.
--- a/src/gf_notification.c Thu Mar 27 02:53:05 2008 -0400
+++ b/src/gf_notification.c Sat Dec 27 04:15:37 2008 -0500
@@ -95,17 +95,22 @@
if(data)
notification->use_gtk = atoi(data);
- data = xmlnode_get_attrib(node, "background");
- if(data)
- notification->background = g_strdup(data);
+ /* if we're supposed to use the gtktheme, look for the width and height
+ * attributes. If not, look for the background attribute.
+ */
+ if(notification->use_gtk) {
+ data = xmlnode_get_attrib(node, "width");
+ if(data)
+ notification->width = atoi(data);
- data = xmlnode_get_attrib(node, "width");
- if(data)
- notification->width = atoi(data);
-
- data = xmlnode_get_attrib(node, "height");
- if(data)
- notification->height = atoi(data);
+ data = xmlnode_get_attrib(node, "height");
+ if(data)
+ notification->height = atoi(data);
+ } else {
+ data = xmlnode_get_attrib(node, "background");
+ if(data)
+ notification->background = g_strdup(data);
+ }
data = xmlnode_get_attrib(node, "alias");
if(data)