[gnome-terminal] Make terminal search work with gtk3



commit e918468af0c14863df7237bd20b499b16d0bce90
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Jan 12 15:10:20 2011 -0500

    Make terminal search work with gtk3
    
    Actually, this patch is not enough, the ui file for gtk3 must
    be different and create a GtkComboBox with has-entry = TRUE
    instead of a GtkComboBoxEntry. That will be part of a separate
    fix.

 src/terminal-search-dialog.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/terminal-search-dialog.c b/src/terminal-search-dialog.c
index 81e3317..e299ae9 100644
--- a/src/terminal-search-dialog.c
+++ b/src/terminal-search-dialog.c
@@ -108,7 +108,11 @@ terminal_search_dialog_new (GtkWindow   *parent)
   priv->store = store = gtk_list_store_new (1, G_TYPE_STRING);
   g_object_set (G_OBJECT (priv->search_entry),
 		"model", store,
+#if GTK_CHECK_VERSION (2, 91, 0)
+		"entry-text-column", 0,
+#else
 		"text-column", 0,
+#endif
 		NULL);
 
   priv->completion = completion = gtk_entry_completion_new ();



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]