[maemo-commits] [maemo-commits] r13814 - in projects/haf/trunk/hildon-desktop: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Fri Sep 14 14:08:30 EEST 2007
- Previous message: [maemo-commits] r13813 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
- Next message: [maemo-commits] r13815 - in projects/haf/trunk/hildon-theme-test: . template
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: jobi Date: 2007-09-14 14:08:29 +0300 (Fri, 14 Sep 2007) New Revision: 13814 Modified: projects/haf/trunk/hildon-desktop/ChangeLog projects/haf/trunk/hildon-desktop/src/hd-app-menu-dialog.c Log: 2007-09-13 Johan Bilien <johan.bilien at nokia.com> * src/hd-app-menu-dialog.c: Fixed the leak of a string Modified: projects/haf/trunk/hildon-desktop/ChangeLog =================================================================== --- projects/haf/trunk/hildon-desktop/ChangeLog 2007-09-14 10:45:33 UTC (rev 13813) +++ projects/haf/trunk/hildon-desktop/ChangeLog 2007-09-14 11:08:29 UTC (rev 13814) @@ -1,5 +1,9 @@ 2007-09-13 Johan Bilien <johan.bilien at nokia.com> + * src/hd-app-menu-dialog.c: Fixed the leak of a string + +2007-09-13 Johan Bilien <johan.bilien at nokia.com> + * libhildondesktop/hildon-desktop-picture.c: sync with X after creating a picture Modified: projects/haf/trunk/hildon-desktop/src/hd-app-menu-dialog.c =================================================================== --- projects/haf/trunk/hildon-desktop/src/hd-app-menu-dialog.c 2007-09-14 10:45:33 UTC (rev 13813) +++ projects/haf/trunk/hildon-desktop/src/hd-app-menu-dialog.c 2007-09-14 11:08:29 UTC (rev 13814) @@ -367,6 +367,7 @@ { GtkTreeIter iter; GdkPixbuf *icon; + gchar *stripped; if (hd_app_menu_dialog_category_exists (dialog, name)) { @@ -380,11 +381,13 @@ gtk_tree_store_append (GTK_TREE_STORE (dialog->priv->model), &iter, NULL); + stripped = g_strstrip (g_strdup (name)); gtk_tree_store_set (GTK_TREE_STORE (dialog->priv->model), &iter, - TREE_MODEL_NAME, g_strstrip (g_strdup (name)), - TREE_MODEL_LOCALIZED_NAME, g_strstrip (g_strdup (name)), + TREE_MODEL_NAME, stripped, + TREE_MODEL_LOCALIZED_NAME, stripped, TREE_MODEL_ICON, icon, -1); + g_free (stripped); g_object_unref (icon); } @@ -471,6 +474,8 @@ if (response == GTK_RESPONSE_OK && GTK_IS_TREE_STORE (dialog->priv->model)) { + gchar *stripped; + if (hd_app_menu_dialog_category_exists (dialog, name)) { hildon_banner_show_information (GTK_WIDGET (dialog), @@ -479,10 +484,12 @@ continue; } + stripped = g_strstrip (g_strdup (name)); gtk_tree_store_set (GTK_TREE_STORE (dialog->priv->model), &iter, - TREE_MODEL_NAME, g_strstrip (g_strdup (name)), - TREE_MODEL_LOCALIZED_NAME, g_strstrip (g_strdup (name)), + TREE_MODEL_NAME, stripped, + TREE_MODEL_LOCALIZED_NAME, stripped, -1); + g_free (stripped); } break;
- Previous message: [maemo-commits] r13813 - in projects/haf/trunk/hildon-desktop: . libhildondesktop
- Next message: [maemo-commits] r13815 - in projects/haf/trunk/hildon-theme-test: . template
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]