[maemo-commits] [maemo-commits] r13858 - in projects/haf/tags/hildon-theme-cacher: . 0.4.2-1 0.4.2-1/debian 0.4.2-1/src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Mon Sep 17 17:42:30 EEST 2007
- Previous message: [maemo-commits] r13857 - in projects/haf/trunk/hildon-theme-cacher: . debian src
- Next message: [maemo-commits] r13859 - projects/haf/trunk/glib/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: fherrera Date: 2007-09-17 17:42:28 +0300 (Mon, 17 Sep 2007) New Revision: 13858 Added: projects/haf/tags/hildon-theme-cacher/0.4.2-1/ projects/haf/tags/hildon-theme-cacher/0.4.2-1/ChangeLog projects/haf/tags/hildon-theme-cacher/0.4.2-1/configure.ac projects/haf/tags/hildon-theme-cacher/0.4.2-1/debian/changelog projects/haf/tags/hildon-theme-cacher/0.4.2-1/src/cacher.c Removed: projects/haf/tags/hildon-theme-cacher/0.4.2-1/ChangeLog projects/haf/tags/hildon-theme-cacher/0.4.2-1/configure.ac projects/haf/tags/hildon-theme-cacher/0.4.2-1/debian/changelog projects/haf/tags/hildon-theme-cacher/0.4.2-1/src/cacher.c Log: Tagging 0.4.2-1 Copied: projects/haf/tags/hildon-theme-cacher/0.4.2-1 (from rev 13856, projects/haf/trunk/hildon-theme-cacher) Deleted: projects/haf/tags/hildon-theme-cacher/0.4.2-1/ChangeLog =================================================================== --- projects/haf/trunk/hildon-theme-cacher/ChangeLog 2007-09-17 14:25:49 UTC (rev 13856) +++ projects/haf/tags/hildon-theme-cacher/0.4.2-1/ChangeLog 2007-09-17 14:42:28 UTC (rev 13858) @@ -1,67 +0,0 @@ -2007-05-09 Michael Dominic K. <mdk at mdk.am> - - * COPYING: - * NEWS: Updating the COPYING to talk about GPL license (instead of - LGPL). - -2007-03-05 Marius Vollmer <mvo at zagadka.de> - - [0.4.1 release, NMU] - - * scripts/hildon-theme-recache-all.in: Really change the shebang - to /bin/sh. - -2007-03-05 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> - - [0.4.0 release] - - * scripts/hildon-theme-recache-all.in: Changing the location of the - interpreter from /usr/bin/sh to /bin/sh. - - * NEWS: - * configure.ac: - * debian/changelog: Updating. - -2007-02-21 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> - - * src/cacher.c: Use proper prg name. - -2007-02-15 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> - - [0.3.0 release] - - * NEWS: - * configure.ac: - * debian/changelog: Updating. - - * src/cacher.c: Skip junk files during cache genearation. Fixes - MB#1026. - -2007-02-14 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> - - * src/cacher.c: Unset the GTK2_RC_FILES env variable before generating - the cache. Fixes the theme-trap issue. - -2006-12-08 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> - - * NEWS: Update. - -2006-12-04 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> - - [0.2.0 release] - - * configure.ac: - * debian/changelog: Updating for 0.2.0 release. - - * src/cacher.c: Make sure it works without display set. - -2006-11-27 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> - - * configure.ac: Removing the -Werror flag as it breaks on Ubuntu. - -2006-11-22 Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> - - * ./: Initially deriving from cache tool from hildon-theme-tools. - Modyfying to recursively scan all sub-directories. Adding a script to - scan everything. - Copied: projects/haf/tags/hildon-theme-cacher/0.4.2-1/ChangeLog (from rev 13857, projects/haf/trunk/hildon-theme-cacher/ChangeLog) Deleted: projects/haf/tags/hildon-theme-cacher/0.4.2-1/configure.ac =================================================================== --- projects/haf/trunk/hildon-theme-cacher/configure.ac 2007-09-17 14:25:49 UTC (rev 13856) +++ projects/haf/tags/hildon-theme-cacher/0.4.2-1/configure.ac 2007-09-17 14:42:28 UTC (rev 13858) @@ -1,24 +0,0 @@ -AC_INIT(Makefile.am) -AM_INIT_AUTOMAKE(hildon-theme-cacher, 0.4.1) -AM_CONFIG_HEADER(config.h) - -AC_CANONICAL_HOST - -AC_PROG_CC -AC_PROG_INSTALL -AC_HEADER_STDC - -CFLAGS="$CFLAGS -Wall -pedantic -Wmissing-prototypes -Wmissing-declarations" - -GTK_VERSION=2.6.4 - -PKG_CHECK_MODULES(GTK, gtk+-2.0 >= $GTK_VERSION) -AC_SUBST(GTK_LIBS) -AC_SUBST(GTK_CFLAGS) -AC_SUBST(GTK_VERSION) - -AC_OUTPUT([Makefile \ - scripts/Makefile \ - src/Makefile \ - scripts/hildon-theme-recache-all]) - Copied: projects/haf/tags/hildon-theme-cacher/0.4.2-1/configure.ac (from rev 13857, projects/haf/trunk/hildon-theme-cacher/configure.ac) Deleted: projects/haf/tags/hildon-theme-cacher/0.4.2-1/debian/changelog =================================================================== --- projects/haf/trunk/hildon-theme-cacher/debian/changelog 2007-09-17 14:25:49 UTC (rev 13856) +++ projects/haf/tags/hildon-theme-cacher/0.4.2-1/debian/changelog 2007-09-17 14:42:28 UTC (rev 13858) @@ -1,31 +0,0 @@ -hildon-theme-cacher (0.4.1-1) unstable; urgency=low - - * Fixing the broken interpreter location again. :) - - -- Marius Vollmer <mvo at zagadka.de> Mon, 5 Mar 2007 22:07:48 +0200 - -hildon-theme-cacher (0.4.0-1) unstable; urgency=low - - * Fixing the broken interpreter location - - -- Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> Mon, 05 Mar 2007 10:13:11 +0200 - -hildon-theme-cacher (0.3.0-1) unstable; urgency=low - - * Unset the GTK2_RC_FILES to avoid the 'theme trap' - * Do not generate the cache files for junk files. Fixes: MB#1026. - - -- Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> Mon, 15 Jan 2007 10:30:06 +0300 - -hildon-theme-cacher (0.2.0-1) unstable; urgency=low - - * Second release. Now works as expected. - - -- Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> Mon, 04 Dec 2006 14:30:06 +0300 - -hildon-theme-cacher (0.1.0-1) unstable; urgency=low - - * First official release. - - -- Michael Dominic Kostrzewa <michael.kostrzewa at nokia.com> Fri, 20 Nov 2006 14:55:06 +0300 - Copied: projects/haf/tags/hildon-theme-cacher/0.4.2-1/debian/changelog (from rev 13857, projects/haf/trunk/hildon-theme-cacher/debian/changelog) Deleted: projects/haf/tags/hildon-theme-cacher/0.4.2-1/src/cacher.c =================================================================== --- projects/haf/trunk/hildon-theme-cacher/src/cacher.c 2007-09-17 14:25:49 UTC (rev 13856) +++ projects/haf/tags/hildon-theme-cacher/0.4.2-1/src/cacher.c 2007-09-17 14:42:28 UTC (rev 13858) @@ -1,126 +0,0 @@ -/* - * GPL license, Copyright (c) 2006 by Nokia Corporation - * - * Authors: - * Tommi Komulainen <tommi.komulainen at nokia.com> - * Michael Dominic K. <michael.kostrzewa at nokia.com> - * - * This program is free software; you can redistribute it and/or modify it - * under the terms of the GNU General Public License as published by the - * Free Software Foundation, version 2. - * - * This program is distributed in the hope that it will be useful, but - * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY - * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License - * for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., 59 - * Temple Place - Suite 330, Boston, MA 02111-1307, USA. - * - */ - -#include <gtk/gtk.h> -#include "cacher.h" - -/* Parses (resursively) the directory and adds gtkrc matches. - * We assume everything that HAS *gtkrc* and DOESN'T HAVE *cache* - * is a valid gtkrc cache. */ -GSList* parse_dir (const gchar *dir_name, GSList *list, int level) -{ - const gchar *file_name = NULL; - GDir *dir = NULL; - - g_return_val_if_fail (dir_name != NULL, list); - - /* This is a poor-man's protection so that we don't - * go into infinite loop due to broken symlinking */ - if (level > SANITY_LEVEL) - return list; - - dir = g_dir_open (dir_name, 0, NULL); - if (dir == NULL) { - g_printerr ("WARNING: Failed to read '%s' directory!\n", dir_name); - return list; - } - - while ((file_name = g_dir_read_name (dir)) != NULL) { - gchar *path = g_build_filename (dir_name, file_name, NULL); - - if (g_file_test (path, G_FILE_TEST_IS_REGULAR) && - g_strrstr (file_name, "gtkrc") != NULL && - g_strrstr (file_name, "cache") == NULL && - file_name [0] != '.' && - g_strrstr (file_name, "~") == NULL) - list = g_slist_append (list, path); - else if (g_file_test (path, G_FILE_TEST_IS_DIR)) - list = parse_dir (path, list, level + 1); - } - - return list; -} - -/* Shows the initial copyright/info banner */ -void show_banner (void) -{ - g_print ("Theme cache tool by Tommi Komulainen and Michael Dominic Kostrzewa\n"); - g_print ("Copyright 2006 by Nokia Corporation.\n\n"); -} - -/* Show some info about basic usage of the tool */ -void show_usage (void) -{ - g_print ("Usage: %s <theme-directory>\n\n", g_get_prgname ()); - g_print ("This tool will pre-generate the cache (.cache) files for gtkrc files.\n" - "It will scan recursively the specified directory and generate the cache for ALL\n" - "the gtk rc files found.\n\n"); -} - -int main (int argc, char **argv) -{ - GtkSettings *settings; - GSList *rc_list = NULL; - GSList *iterator = NULL; - - g_set_prgname (g_basename (argv [0])); - - if (argc < 2) { - show_banner (); - show_usage (); - return 1; - } - - g_unsetenv ("DISPLAY"); - g_unsetenv ("GTK2_RC_FILES"); - - gtk_init_check (&argc, &argv); - - g_setenv ("GSCANNERCACHE_CREATE", "1", TRUE); - - /* Get the list of all gtkrc files */ - rc_list = parse_dir (argv [1], NULL, 1); - - /* Iterate through all themes and generate cache */ - iterator = rc_list; - while (iterator != NULL) { - g_print ("Generating %s.cache\n", (char *) iterator->data); - gtk_rc_parse ((char *) iterator->data); - iterator = g_slist_next (iterator); - } - - settings = g_object_new (GTK_TYPE_SETTINGS, NULL); - gtk_rc_reparse_all_for_settings (settings, TRUE); - - /* Free list */ - iterator = rc_list; - while (iterator != NULL) { - if (iterator->data != NULL) - g_free (iterator->data); - iterator = g_slist_next (iterator); - } - g_slist_free (rc_list); - - g_print ("\nDone!\n"); - - return 0; -} Copied: projects/haf/tags/hildon-theme-cacher/0.4.2-1/src/cacher.c (from rev 13857, projects/haf/trunk/hildon-theme-cacher/src/cacher.c)
- Previous message: [maemo-commits] r13857 - in projects/haf/trunk/hildon-theme-cacher: . debian src
- Next message: [maemo-commits] r13859 - projects/haf/trunk/glib/debian
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]