[brasero] Fix Bug 632599 - handle GtkComboBoxEntry going away
- From: Luis Medinas <lmedinas src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [brasero] Fix Bug 632599 - handle GtkComboBoxEntry going away
- Date: Thu, 21 Oct 2010 22:25:18 +0000 (UTC)
commit 376f769dcd0d2acf748f58b13e910b9f0dda732b
Author: Luis Medinas <lmedinas gnome org>
Date: Thu Oct 21 23:20:01 2010 +0100
Fix Bug 632599 - handle GtkComboBoxEntry going away
Patch by Matthias Clasen.
src/brasero-search-entry.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
---
diff --git a/src/brasero-search-entry.c b/src/brasero-search-entry.c
index 0f27653..b1c74dc 100644
--- a/src/brasero-search-entry.c
+++ b/src/brasero-search-entry.c
@@ -202,8 +202,11 @@ brasero_search_entry_init (BraseroSearchEntry *obj)
G_TYPE_STRING,
G_TYPE_STRING);
- obj->priv->combo = gtk_combo_box_entry_new_with_model (GTK_TREE_MODEL (store),
- BRASERO_SEARCH_ENTRY_DISPLAY_COL);
+ obj->priv->combo = g_object_new (GTK_TYPE_COMBO_BOX,
+ "has-entry", TRUE,
+ "model", store,
+ "entry-text-column", BRASERO_SEARCH_ENTRY_DISPLAY_COL,
+ NULL);
g_object_unref (store);
g_signal_connect (G_OBJECT (obj->priv->combo),
"changed",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]