Add conditional compilation for gtk+ 2.6.
authorHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sat, 7 Oct 2006 15:35:53 +0000 (15:35 +0000)
committerHong Jen Yee (PCMan) <pcman.tw@gmail.com>
Sat, 7 Oct 2006 15:35:53 +0000 (15:35 +0000)
src/gtk-run.c

index bddebc3..7115f29 100644 (file)
@@ -34,7 +34,9 @@ static gboolean setup_auto_complete( gpointer entry )
     GtkEntryCompletion* comp = gtk_entry_completion_new();
     gtk_entry_completion_set_minimum_key_length( comp, 2 );
     gtk_entry_completion_set_inline_completion( comp, TRUE );
+#if GTK_CHECK_VERSION( 2, 8, 0 )
     gtk_entry_completion_set_popup_set_width( comp, TRUE );
+#endif
     gtk_entry_completion_set_popup_single_match( comp, FALSE );
      store = gtk_list_store_new( 1, G_TYPE_STRING );