[maemo-commits] [maemo-commits] r13769 - in projects/haf/trunk/hildon-desktop: . src
From: subversion at stage.maemo.org subversion at stage.maemo.orgDate: Wed Sep 12 11:17:31 EEST 2007
- Previous message: [maemo-commits] r13768 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r13770 - in projects/haf/trunk/hildon-theme-layout-4: . data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Author: jobi Date: 2007-09-12 11:17:29 +0300 (Wed, 12 Sep 2007) New Revision: 13769 Modified: projects/haf/trunk/hildon-desktop/ChangeLog projects/haf/trunk/hildon-desktop/src/hd-app-menu-dialog.c Log: 2007-09-12 Johan Bilien <johan.bilien at nokia.com> * src/hd-app-menu-settings-dialog.c: - strip the Category names from trailing and leading white spaces. Fixes: NB#68981 Modified: projects/haf/trunk/hildon-desktop/ChangeLog =================================================================== --- projects/haf/trunk/hildon-desktop/ChangeLog 2007-09-12 08:14:43 UTC (rev 13768) +++ projects/haf/trunk/hildon-desktop/ChangeLog 2007-09-12 08:17:29 UTC (rev 13769) @@ -1,5 +1,11 @@ 2007-09-12 Johan Bilien <johan.bilien at nokia.com> + * src/hd-app-menu-settings-dialog.c: + - strip the Category names from trailing and leading white spaces. + Fixes: NB#68981 + +2007-09-12 Johan Bilien <johan.bilien at nokia.com> + * libhildondesktop/hildon-home-area.c (hildon_home_area_place.c): treat the case where a widget previously placed has not been allocated a size yet. 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-12 08:14:43 UTC (rev 13768) +++ projects/haf/trunk/hildon-desktop/src/hd-app-menu-dialog.c 2007-09-12 08:17:29 UTC (rev 13769) @@ -260,10 +260,13 @@ hd_app_menu_dialog_entry_changed (GtkEntry *entry, GtkWidget *button) { const gchar *name; + gchar *stripped; name = gtk_entry_get_text (entry); + stripped = g_strstrip (g_strdup (name)); - gtk_widget_set_sensitive (button, g_utf8_strlen (name, -1) != 0); + gtk_widget_set_sensitive (button, g_utf8_strlen (stripped, -1) != 0); + g_free (stripped); } static gboolean @@ -378,8 +381,8 @@ gtk_tree_store_append (GTK_TREE_STORE (dialog->priv->model), &iter, NULL); gtk_tree_store_set (GTK_TREE_STORE (dialog->priv->model), &iter, - TREE_MODEL_NAME, g_strdup (name), - TREE_MODEL_LOCALIZED_NAME, g_strdup (name), + TREE_MODEL_NAME, g_strstrip (g_strdup (name)), + TREE_MODEL_LOCALIZED_NAME, g_strstrip (g_strdup (name)), TREE_MODEL_ICON, icon, -1); @@ -477,8 +480,8 @@ } gtk_tree_store_set (GTK_TREE_STORE (dialog->priv->model), &iter, - TREE_MODEL_NAME, name, - TREE_MODEL_LOCALIZED_NAME, name, + TREE_MODEL_NAME, g_strstrip (g_strdup (name)), + TREE_MODEL_LOCALIZED_NAME, g_strstrip (g_strdup (name)), -1); }
- Previous message: [maemo-commits] r13768 - projects/haf/hafbuildbot
- Next message: [maemo-commits] r13770 - in projects/haf/trunk/hildon-theme-layout-4: . data
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]