From 3db33aee56176a7c75ea682ed4c896293186655a Mon Sep 17 00:00:00 2001 From: Jose Antonio Ortega Ruiz Date: Mon, 17 Mar 2008 01:28:59 +0100 Subject: GTK version check for gkt_entry_completion_set_popup_single_match() --- mixgtk/mixgtk_device.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'mixgtk') diff --git a/mixgtk/mixgtk_device.c b/mixgtk/mixgtk_device.c index 90e2ab1..d3ce934 100644 --- a/mixgtk/mixgtk_device.c +++ b/mixgtk/mixgtk_device.c @@ -1,7 +1,7 @@ /* -*-c-*- ---------------- mixgtk_device.c : * actual types for mixgtk devices * ------------------------------------------------------------------ - * Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. + * Copyright (C) 2001, 2002, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -188,7 +188,9 @@ init_input_widgets_ (void) input_list_ = gtk_list_store_new (1, G_TYPE_STRING); gtk_entry_completion_set_model (completion, GTK_TREE_MODEL (input_list_)); gtk_entry_completion_set_popup_completion (completion, TRUE); +#if GTK_CHECK_VERSION(2,8,0) gtk_entry_completion_set_popup_single_match (completion, TRUE); +#endif gtk_entry_completion_set_inline_completion (completion, FALSE); gtk_entry_completion_set_minimum_key_length (completion, 1); gtk_entry_completion_set_text_column (completion, 0); -- cgit v1.2.3