summaryrefslogtreecommitdiff
path: root/src/capplet/mate-notification-properties.c
diff options
context:
space:
mode:
authorSteve Zesch <[email protected]>2013-01-20 14:00:54 -0500
committerSteve Zesch <[email protected]>2013-01-20 14:00:54 -0500
commit276eae936334c109ffa6b2e3199f97b1885dfa62 (patch)
tree4a2fa58f85b799ec8e2c63012244b1a015877220 /src/capplet/mate-notification-properties.c
parent4a1eb4d4d53baf0c34d1c7ecf8cce1a74a93db50 (diff)
parent61d109a6e5794cf393d1f9d5bebda10f8efce902 (diff)
downloadmate-notification-daemon-276eae936334c109ffa6b2e3199f97b1885dfa62.tar.bz2
mate-notification-daemon-276eae936334c109ffa6b2e3199f97b1885dfa62.tar.xz
Merged.
Diffstat (limited to 'src/capplet/mate-notification-properties.c')
-rw-r--r--src/capplet/mate-notification-properties.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/capplet/mate-notification-properties.c b/src/capplet/mate-notification-properties.c
index ee0d521..034db8b 100644
--- a/src/capplet/mate-notification-properties.c
+++ b/src/capplet/mate-notification-properties.c
@@ -23,7 +23,7 @@
#include <glib/gi18n.h>
#include <glib.h>
-#include <glib/gprintf.h>
+#include <gmodule.h>
#include <gtk/gtk.h>
#include <gdk/gdk.h>
#include <gio/gio.h>
@@ -293,7 +293,7 @@ static gchar* get_theme_name(const gchar* filename)
{
/* TODO: Remove magic numbers. Strip "lib" and ".so" */
gchar* result = g_strdup(filename + 3);
- result[strlen(result) - 3] = '\0';
+ result[strlen(result) - strlen("." G_MODULE_SUFFIX)] = '\0';
return result;
}
@@ -317,7 +317,7 @@ static void notification_properties_dialog_setup_themes(NotificationAppletDialog
{
while ((filename = g_dir_read_name(dir)))
{
- if (g_str_has_prefix(filename, "lib") && g_str_has_suffix(filename, ".so"))
+ if (g_str_has_suffix(filename, "." G_MODULE_SUFFIX))
{
theme_name = get_theme_name(filename);