aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavyd Madeley <davyd@madeley.id.au>2009-05-28 17:51:56 +0800
committerDavyd Madeley <davyd@madeley.id.au>2009-05-28 17:51:56 +0800
commit395a0eaf7520826c13d7f4b193aa0907b54cf46a (patch)
treed3b596c9cf1d60d3dc51c107e3e6057a12d6784d
parentaed93e6bd2c1b26cf66aa1486bdf4b98ca1ef36c (diff)
downloadgsoc2013-empathy-395a0eaf7520826c13d7f4b193aa0907b54cf46a.tar
gsoc2013-empathy-395a0eaf7520826c13d7f4b193aa0907b54cf46a.tar.gz
gsoc2013-empathy-395a0eaf7520826c13d7f4b193aa0907b54cf46a.tar.bz2
gsoc2013-empathy-395a0eaf7520826c13d7f4b193aa0907b54cf46a.tar.lz
gsoc2013-empathy-395a0eaf7520826c13d7f4b193aa0907b54cf46a.tar.xz
gsoc2013-empathy-395a0eaf7520826c13d7f4b193aa0907b54cf46a.tar.zst
gsoc2013-empathy-395a0eaf7520826c13d7f4b193aa0907b54cf46a.zip
EmpathyStatusPresetDialog: fix status_preset_add_combo_reset()
-rw-r--r--libempathy-gtk/empathy-status-preset-dialog.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/libempathy-gtk/empathy-status-preset-dialog.c b/libempathy-gtk/empathy-status-preset-dialog.c
index 82bc2e2d8..b011b5db3 100644
--- a/libempathy-gtk/empathy-status-preset-dialog.c
+++ b/libempathy-gtk/empathy-status-preset-dialog.c
@@ -153,6 +153,10 @@ static void
status_preset_add_combo_reset (EmpathyStatusPresetDialog *self)
{
EmpathyStatusPresetDialogPriv *priv = GET_PRIV (self);
+ GtkWidget *entry;
+
+ entry = gtk_bin_get_child (GTK_BIN (priv->add_combobox));
+ gtk_entry_set_text (GTK_ENTRY (entry), "");
gtk_combo_box_set_active_iter (GTK_COMBO_BOX (priv->add_combobox),
&priv->selected_iter);
@@ -433,7 +437,6 @@ status_preset_dialog_add_preset (GtkWidget *widget,
empathy_status_presets_set_last (state, status);
status_preset_dialog_presets_update (self);
- status_preset_add_combo_reset (self);
/* select the added status*/
model = gtk_tree_view_get_model (GTK_TREE_VIEW (priv->presets_treeview));
@@ -465,6 +468,10 @@ status_preset_dialog_add_preset (GtkWidget *widget,
break;
}
}
+
+ if (!match) g_warning ("No match");
+
+ status_preset_add_combo_reset (self);
}
static gboolean