[Kazehakase-cvs] CVS update: kazehakase/src/prefs_ui

Back to archive index

Hiroyuki Ikezoe ikezo****@users*****
Tue Dec 5 14:26:34 JST 2006


Index: kazehakase/src/prefs_ui/prefs_history.c
diff -u kazehakase/src/prefs_ui/prefs_history.c:1.12 kazehakase/src/prefs_ui/prefs_history.c:1.13
--- kazehakase/src/prefs_ui/prefs_history.c:1.12	Sun Dec  3 15:01:00 2006
+++ kazehakase/src/prefs_ui/prefs_history.c	Tue Dec  5 14:26:34 2006
@@ -25,9 +25,8 @@
 #include <glib/gi18n.h>
 #include "kazehakase.h"
 #include "utils/gtk-utils.h"
-#if USE_HYPERESTRAIER
-#	include "kz-search.h"
-#elif USE_RAST
+#include "kz-search.h"
+#ifdef USE_RAST
 #	include "utils/rast-search.h"
 #endif
 
@@ -101,17 +100,15 @@
 cb_optimize_button_clicked (GtkButton *button, KzPrefsHistory *prefsui)
 {
 	GPid pid;
-	
-#if USE_HYPERESTRAIER
 	KzSearch *search = kz_search_new("hyperestraier");
-	gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE);
 
 	if (search)
 	{
+		gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE);
 		pid = kz_search_optimize_index(search);
 		g_object_unref(search);
 	}
-#elif USE_RAST
+#ifdef USE_RAST
 	gtk_widget_set_sensitive(GTK_WIDGET(button), FALSE);
 	pid = rast_optimize_index();
 #endif


More information about the Kazehakase-cvs mailing list
Back to archive index