diff options
-rw-r--r-- | configure.in | 28 | ||||
-rw-r--r-- | src/gui/gui.h | 22 | ||||
-rw-r--r-- | weechat/configure.in | 28 | ||||
-rw-r--r-- | weechat/src/gui/gui.h | 22 |
4 files changed, 30 insertions, 70 deletions
diff --git a/configure.in b/configure.in index e60f6e298..da64b3d4d 100644 --- a/configure.in +++ b/configure.in @@ -61,29 +61,21 @@ RUBY_CFLAGS= enable_debug=no DEBUG_CFLAGS= - AM_CONDITIONAL(GUI_CURSES, test "$enable_curses" = "yes") AM_CONDITIONAL(GUI_GTK, test "$enable_gtk" = "yes") AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes") -#if test "x$enable_gtk" = "xyes" ; then -# AM_PATH_GTK_2_0(2.0.0, havegtk=yes, havegtk=no) -# if test "$havegtk" = no; then -# enable_gtk="no" -# echo -# echo Cannot find Gtk+\! Not building Gtk+ interface... -# echo -# fi -#fi - -CURSES_LIBS=-lcurses - -GTK_CFLAGS=`pkg-config --cflags gtk+-2.0` -GTK_LIBS=`pkg-config --libs gtk+-2.0` +if test "x$enable_curses" = "xyes" ; then + CURSES_LIBS=-lcurses + AC_SUBST(CURSES_LIBS) +fi -AC_SUBST(CURSES_LIBS) -AC_SUBST(GTK_CFLAGS) -AC_SUBST(GTK_LIBS) +if test "x$enable_gtk" = "xyes" ; then + GTK_CFLAGS=`pkg-config --cflags gtk+-2.0` + GTK_LIBS=`pkg-config --libs gtk+-2.0` + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) +fi CFLAGS="-Wall -W -pipe -O2" diff --git a/src/gui/gui.h b/src/gui/gui.h index b1584f05e..0604f0877 100644 --- a/src/gui/gui.h +++ b/src/gui/gui.h @@ -65,13 +65,6 @@ #define WIN_IS_CHANNEL(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_CHANNEL)) #define WIN_IS_PRIVATE(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_PRIVATE)) -#ifdef WEE_CURSES - //#define WIN_HAS_NICKLIST(window) (window->win_nick) -#endif -#ifdef WEE_GTK - //#define WIN_HAS_NICKLIST(window) (window->textbuffer_nicklist) -#endif - #define MSG_TYPE_TIME 0 #define MSG_TYPE_NICK 1 #define MSG_TYPE_INFO 2 @@ -149,16 +142,11 @@ struct t_gui_window void *win_input; /* input window */ /* windows for Curses GUI */ - //GtkWidget *textview_chat; /* textview widget for chat */ - //GtkTextBuffer *textbuffer_chat; /* textbuffer widget for chat */ - //GtkTextTag *texttag_chat; /* texttag widget for chat */ - //GtkWidget *textview_nicklist; /* textview widget for nicklist */ - //GtkTextBuffer *textbuffer_nicklist; /* textbuffer widget for nicklist */ - void *textview_chat; /* textview widget for chat */ - void *textbuffer_chat; /* textbuffer widget for chat */ - void *texttag_chat; /* texttag widget for chat */ - void *textview_nicklist; /* textview widget for nicklist */ - void *textbuffer_nicklist; /* textbuffer widget for nicklist */ + void *textview_chat; /* textview widget for chat */ + void *textbuffer_chat; /* textbuffer widget for chat */ + void *texttag_chat; /* texttag widget for chat */ + void *textview_nicklist; /* textview widget for nicklist */ + void *textbuffer_nicklist; /* textbuffer widget for nicklist */ /* windows for Curses GUI */ /* TODO: declare Qt window */ diff --git a/weechat/configure.in b/weechat/configure.in index e60f6e298..da64b3d4d 100644 --- a/weechat/configure.in +++ b/weechat/configure.in @@ -61,29 +61,21 @@ RUBY_CFLAGS= enable_debug=no DEBUG_CFLAGS= - AM_CONDITIONAL(GUI_CURSES, test "$enable_curses" = "yes") AM_CONDITIONAL(GUI_GTK, test "$enable_gtk" = "yes") AM_CONDITIONAL(GUI_QT, test "$enable_qt" = "yes") -#if test "x$enable_gtk" = "xyes" ; then -# AM_PATH_GTK_2_0(2.0.0, havegtk=yes, havegtk=no) -# if test "$havegtk" = no; then -# enable_gtk="no" -# echo -# echo Cannot find Gtk+\! Not building Gtk+ interface... -# echo -# fi -#fi - -CURSES_LIBS=-lcurses - -GTK_CFLAGS=`pkg-config --cflags gtk+-2.0` -GTK_LIBS=`pkg-config --libs gtk+-2.0` +if test "x$enable_curses" = "xyes" ; then + CURSES_LIBS=-lcurses + AC_SUBST(CURSES_LIBS) +fi -AC_SUBST(CURSES_LIBS) -AC_SUBST(GTK_CFLAGS) -AC_SUBST(GTK_LIBS) +if test "x$enable_gtk" = "xyes" ; then + GTK_CFLAGS=`pkg-config --cflags gtk+-2.0` + GTK_LIBS=`pkg-config --libs gtk+-2.0` + AC_SUBST(GTK_CFLAGS) + AC_SUBST(GTK_LIBS) +fi CFLAGS="-Wall -W -pipe -O2" diff --git a/weechat/src/gui/gui.h b/weechat/src/gui/gui.h index b1584f05e..0604f0877 100644 --- a/weechat/src/gui/gui.h +++ b/weechat/src/gui/gui.h @@ -65,13 +65,6 @@ #define WIN_IS_CHANNEL(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_CHANNEL)) #define WIN_IS_PRIVATE(window) (CHANNEL(window) && (CHANNEL(window)->type == CHAT_PRIVATE)) -#ifdef WEE_CURSES - //#define WIN_HAS_NICKLIST(window) (window->win_nick) -#endif -#ifdef WEE_GTK - //#define WIN_HAS_NICKLIST(window) (window->textbuffer_nicklist) -#endif - #define MSG_TYPE_TIME 0 #define MSG_TYPE_NICK 1 #define MSG_TYPE_INFO 2 @@ -149,16 +142,11 @@ struct t_gui_window void *win_input; /* input window */ /* windows for Curses GUI */ - //GtkWidget *textview_chat; /* textview widget for chat */ - //GtkTextBuffer *textbuffer_chat; /* textbuffer widget for chat */ - //GtkTextTag *texttag_chat; /* texttag widget for chat */ - //GtkWidget *textview_nicklist; /* textview widget for nicklist */ - //GtkTextBuffer *textbuffer_nicklist; /* textbuffer widget for nicklist */ - void *textview_chat; /* textview widget for chat */ - void *textbuffer_chat; /* textbuffer widget for chat */ - void *texttag_chat; /* texttag widget for chat */ - void *textview_nicklist; /* textview widget for nicklist */ - void *textbuffer_nicklist; /* textbuffer widget for nicklist */ + void *textview_chat; /* textview widget for chat */ + void *textbuffer_chat; /* textbuffer widget for chat */ + void *texttag_chat; /* texttag widget for chat */ + void *textview_nicklist; /* textview widget for nicklist */ + void *textbuffer_nicklist; /* textbuffer widget for nicklist */ /* windows for Curses GUI */ /* TODO: declare Qt window */ |