| 827 prefs_status_icon_themes = gtk_list_store_new(3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); |
827 prefs_status_icon_themes = gtk_list_store_new(3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); |
| 828 |
828 |
| 829 prefs_smiley_themes = gtk_list_store_new(3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); |
829 prefs_smiley_themes = gtk_list_store_new(3, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING); |
| 830 } |
830 } |
| 831 |
831 |
| 832 /** |
832 /* |
| |
833 * prefs_theme_find_theme: |
| |
834 * @path: A directory containing a theme. The theme could be at the |
| |
835 * top level of this directory or in any subdirectory thereof. |
| |
836 * @type: The type of theme to load. The loader for this theme type |
| |
837 * will be used and this loader will determine what constitutes a |
| |
838 * "theme." |
| |
839 * |
| 833 * Attempt to load the given directory as a theme. If we are unable to |
840 * Attempt to load the given directory as a theme. If we are unable to |
| 834 * open the path as a theme then we recurse into path and attempt to |
841 * open the path as a theme then we recurse into path and attempt to |
| 835 * load each subdirectory that we encounter. |
842 * load each subdirectory that we encounter. |
| 836 * |
843 * |
| 837 * @param path A directory containing a theme. The theme could be at the |
844 * Returns: A new reference to a #PurpleTheme. |
| 838 * top level of this directory or in any subdirectory thereof. |
|
| 839 * @param type The type of theme to load. The loader for this theme type |
|
| 840 * will be used and this loader will determine what constitutes a |
|
| 841 * "theme." |
|
| 842 * |
|
| 843 * @return A new reference to a PurpleTheme. |
|
| 844 */ |
845 */ |
| 845 static PurpleTheme * |
846 static PurpleTheme * |
| 846 prefs_theme_find_theme(const gchar *path, const gchar *type) |
847 prefs_theme_find_theme(const gchar *path, const gchar *type) |
| 847 { |
848 { |
| 848 PurpleTheme *theme = purple_theme_manager_load_theme(path, type); |
849 PurpleTheme *theme = purple_theme_manager_load_theme(path, type); |