[gtranslator] Fix crash when there is no profile. Pointed by Jonh Wendell.
- From: Ignacio Casal Quinteiro <icq src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtranslator] Fix crash when there is no profile. Pointed by Jonh Wendell.
- Date: Fri, 19 Feb 2010 13:54:06 +0000 (UTC)
commit 2c251e2de46d60c6c92eea396372fb0b9deb4f17
Author: Ignacio Casal Quinteiro <icq gnome org>
Date: Fri Feb 19 14:53:26 2010 +0100
Fix crash when there is no profile. Pointed by Jonh Wendell.
src/gtr-window.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/gtr-window.c b/src/gtr-window.c
index 3d52a7c..0037f3a 100644
--- a/src/gtr-window.c
+++ b/src/gtr-window.c
@@ -1467,6 +1467,8 @@ fill_profile_combo (GtrWindow *window)
{
name = _("No profile");
+ menu_item = gtk_menu_item_new_with_label (name);
+
g_object_set_data (G_OBJECT (menu_item), PROFILE_DATA, NULL);
gtr_status_combo_box_add_item (GTR_STATUS_COMBO_BOX (window->priv->profile_combo),
GTK_MENU_ITEM (menu_item),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]