pidgin: fdbe6e52: Override the probe function in the conve...
qulogic at pidgin.im
qulogic at pidgin.im
Sat Mar 3 22:56:02 EST 2012
----------------------------------------------------------------------
Revision: fdbe6e5251fddc10d70fad3419675c75f586d1a7
Parent: 9ad255c5981095cb3de15516862f5fb87d9d3db7
Author: qulogic at pidgin.im
Date: 03/03/12 03:39:34
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/fdbe6e5251fddc10d70fad3419675c75f586d1a7
Changelog:
Override the probe function in the conversation theme loader.
Changes against parent 9ad255c5981095cb3de15516862f5fb87d9d3db7
patched pidgin/gtkconv-theme-loader.c
-------------- next part --------------
============================================================
--- pidgin/gtkconv-theme-loader.c 5596b147a2d998907fcaae49bda45b02edcaee0c
+++ pidgin/gtkconv-theme-loader.c 7189a29063ccab1282b4e1cf8b8b9820628c42ad
@@ -99,6 +99,19 @@ read_info_plist(xmlnode *plist)
return info;
}
+static gboolean
+pidgin_conv_loader_probe(const gchar *dir)
+{
+ gboolean result;
+ gchar *plist_file;
+
+ plist_file = g_build_filename(dir, "Contents", "Info.plist", NULL);
+ result = g_file_test(plist_file, G_FILE_TEST_IS_REGULAR);
+ g_free(plist_file);
+
+ return result;
+}
+
static PurpleTheme *
pidgin_conv_loader_build(const gchar *dir)
{
@@ -252,6 +265,7 @@ pidgin_conv_theme_loader_class_init(Pidg
PurpleThemeLoaderClass *loader_klass = PURPLE_THEME_LOADER_CLASS(klass);
loader_klass->purple_theme_loader_build = pidgin_conv_loader_build;
+ loader_klass->probe_directory = pidgin_conv_loader_probe;
}
More information about the Commits
mailing list