pidgin: 1a580adb: Add a function for lookup of Info.plist ...
qulogic at pidgin.im
qulogic at pidgin.im
Wed Sep 21 03:07:22 EDT 2011
----------------------------------------------------------------------
Revision: 1a580adb4dc28aeda9c7c5d0ab9da6754b2fdab9
Parent: 204dcd9c030a0edd76edfc08e3b58b6b143938db
Author: qulogic at pidgin.im
Date: 09/20/11 22:54:35
Branch: im.pidgin.pidgin
URL: http://d.pidgin.im/viewmtn/revision/info/1a580adb4dc28aeda9c7c5d0ab9da6754b2fdab9
Changelog:
Add a function for lookup of Info.plist entries.
Changes against parent 204dcd9c030a0edd76edfc08e3b58b6b143938db
patched pidgin/gtkconv-theme.c
patched pidgin/gtkconv-theme.h
-------------- next part --------------
============================================================
--- pidgin/gtkconv-theme.c c6e1371f45507e86d69298b6c4038a9c97663d04
+++ pidgin/gtkconv-theme.c 3ab94a714389414d8879cd0437ed000ecdb0bebb
@@ -671,6 +671,15 @@ pidgin_conversation_theme_set_info(Pidgi
priv->info = info;
}
+const GValue *
+pidgin_conversation_theme_lookup(PidginConvTheme *theme, const char *key, gboolean specific)
+{
+ PidginConvThemePrivate *priv;
+ priv = PIDGIN_CONV_THEME_GET_PRIVATE(theme);
+
+ return get_key(priv, key, specific);
+}
+
const char *
pidgin_conversation_theme_get_template(PidginConvTheme *theme, PidginConvThemeTemplateType type)
{
============================================================
--- pidgin/gtkconv-theme.h 817461c13e03e88e6b6deea44652f99ab88a53e3
+++ pidgin/gtkconv-theme.h 0d5cb2a6ba82789478a48014031c3af478457374
@@ -110,6 +110,19 @@ void pidgin_conversation_theme_set_info(
void pidgin_conversation_theme_set_info(PidginConvTheme *theme, GHashTable *info);
/**
+ * Lookup a key in a theme
+ *
+ * @param theme The conversation theme
+ * @param key The key to find
+ * @param specific Whether to search variant-specific keys
+ *
+ * @return The key information. If @a specific is @c TRUE, then keys are first
+ * searched by variant, then by general ones. Otherwise, only general
+ * key values are returned.
+ */
+const GValue *pidgin_conversation_theme_lookup(PidginConvTheme *theme, const char *key, gboolean specific);
+
+/**
* Get the template data from a conversation theme.
*
* @param theme The conversation theme
More information about the Commits
mailing list