summaryrefslogtreecommitdiff
path: root/libempathy-gtk/empathy-status-preset-dialog.c
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 /libempathy-gtk/empathy-status-preset-dialog.c
parentaed93e6bd2c1b26cf66aa1486bdf4b98ca1ef36c (diff)
EmpathyStatusPresetDialog: fix status_preset_add_combo_reset()
Diffstat (limited to 'libempathy-gtk/empathy-status-preset-dialog.c')
-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 82bc2e2d..b011b5db 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