[gedit/libgpe] Try to fix the build with GeditSpinner instead of GtkSpinner once again.
- From: Steve Frécinaux <sfre src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [gedit/libgpe] Try to fix the build with GeditSpinner instead of GtkSpinner once again.
- Date: Wed, 4 Nov 2009 20:07:02 +0000 (UTC)
commit b86dd2db8dac4fb5c29246787307c59c74bb61e3
Author: Steve Frécinaux <code istique net>
Date: Wed Nov 4 20:48:45 2009 +0100
Try to fix the build with GeditSpinner instead of GtkSpinner once again.
This also reverts commit e50df2bed0afcdafa6be198948594d02584f255b.
configure.ac | 1 +
gedit/gedit-notebook.c | 8 ++++----
2 files changed, 5 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index 2ba8ae9..45ea0e5 100644
--- a/configure.ac
+++ b/configure.ac
@@ -275,6 +275,7 @@ else
fi
AM_CONDITIONAL(BUILD_SPINNER, test "$gtkatleast" = "no")
+AC_DEFINE_UNQUOTED(BUILD_SPINNER,"$BUILD_SPINNER",[Define if GeditSpinner should be used instead of using GtkSpinner])
if test "$platform_osx" = "no" &&
test "$os_win32" = no; then
diff --git a/gedit/gedit-notebook.c b/gedit/gedit-notebook.c
index b0fc2fb..cc6ee88 100644
--- a/gedit/gedit-notebook.c
+++ b/gedit/gedit-notebook.c
@@ -47,7 +47,7 @@
#include "gedit-marshal.h"
#include "gedit-window.h"
-#ifdef BUILD_SPINNER
+#if BUILD_SPINNER
#include "gedit-spinner.h"
#endif
@@ -826,7 +826,7 @@ sync_name (GeditTab *tab, GParamSpec *pspec, GtkWidget *hbox)
gtk_widget_hide (GTK_WIDGET (icon));
gtk_widget_show (spinner);
-#ifdef BUILD_SPINNER
+#if BUILD_SPINNER
gedit_spinner_start (GEDIT_SPINNER (spinner));
#else
gtk_spinner_start (GTK_SPINNER (spinner));
@@ -845,7 +845,7 @@ sync_name (GeditTab *tab, GParamSpec *pspec, GtkWidget *hbox)
gtk_widget_show (GTK_WIDGET (icon));
gtk_widget_hide (spinner);
-#ifdef BUILD_SPINNER
+#if BUILD_SPINNER
gedit_spinner_stop (GEDIT_SPINNER (spinner));
#else
gtk_spinner_stop (GTK_SPINNER (spinner));
@@ -919,7 +919,7 @@ build_tab_label (GeditNotebook *nb,
tab);
/* setup spinner */
-#ifdef BUILD_SPINNER
+#if BUILD_SPINNER
spinner = gedit_spinner_new ();
gedit_spinner_set_size (GEDIT_SPINNER (spinner), GTK_ICON_SIZE_MENU);
#else
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]