Enable inline completion only for gtk>=2.6.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@14593 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler
2006-08-05 21:15:22 +00:00
parent a2db583699
commit de12947c4e
2 changed files with 5 additions and 1 deletions

View File

@@ -5,7 +5,9 @@
* src/gnome-utils/dialog-account.c: Check for account type
compatibility when creating a new account. Fixes 344966.
* src/core-utils/gnc-gtk-utils.c: Unref entry completion.
* src/core-utils/gnc-gtk-utils.c: Unref entry completion, inline
completion only for gtk>=2.6.
* src/gnome-utils/dialog-account.c: I18n "Type", unref store.
2006-08-03 Andreas Köhler <andi5.py@gmx.net>

View File

@@ -171,7 +171,9 @@ gnc_cbe_add_completion (GtkComboBoxEntry *cbe)
model = gtk_combo_box_get_model(GTK_COMBO_BOX(cbe));
gtk_entry_completion_set_model(completion, model);
gtk_entry_completion_set_text_column(completion, 0);
#ifdef HAVE_GTK26
gtk_entry_completion_set_inline_completion(completion, TRUE);
#endif
gtk_entry_set_completion(entry, completion);
g_object_unref(completion);
}