[gnome-color-manager] trivial: fix the calibrate profile chooser combo box
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-color-manager] trivial: fix the calibrate profile chooser combo box
- Date: Tue, 22 Feb 2011 10:52:42 +0000 (UTC)
commit 7da817620116060f75e2cb5fbe121696ce38e863
Author: Richard Hughes <richard hughsie com>
Date: Thu Feb 3 20:18:01 2011 +0000
trivial: fix the calibrate profile chooser combo box
src/gcm-calibrate-dialog.c | 8 +-------
1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/src/gcm-calibrate-dialog.c b/src/gcm-calibrate-dialog.c
index 37b18de..5bb20b2 100644
--- a/src/gcm-calibrate-dialog.c
+++ b/src/gcm-calibrate-dialog.c
@@ -637,16 +637,10 @@ static void
gcm_calibrate_dialog_setup_combo_simple_text (GtkWidget *combo_box)
{
GtkCellRenderer *cell;
- GtkListStore *store;
-
- store = gtk_list_store_new (1, G_TYPE_STRING);
- gtk_combo_box_set_model (GTK_COMBO_BOX (combo_box), GTK_TREE_MODEL (store));
- g_object_unref (store);
-
cell = gtk_cell_renderer_text_new ();
gtk_cell_layout_pack_start (GTK_CELL_LAYOUT (combo_box), cell, TRUE);
gtk_cell_layout_set_attributes (GTK_CELL_LAYOUT (combo_box), cell,
- "text", 0,
+ "text", 1,
NULL);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]