summary refs log tree commit diff stats
path: root/src/fe-gtk/maingui.c
diff options
context:
space:
mode:
authorBerke Viktor <bviktor@hexchat.org>2012-07-21 14:26:19 +0200
committerBerke Viktor <bviktor@hexchat.org>2012-07-21 14:26:19 +0200
commite7f723539d39f20092aabfb5b51826807e016fe3 (patch)
tree88c887012ba3fbf1b9b9c1208453a98568cbad3b /src/fe-gtk/maingui.c
parent4cae471af3a4d8e9c7457f76186da809879f566f (diff)
Some aid for compiler warnings
Diffstat (limited to 'src/fe-gtk/maingui.c')
-rw-r--r--src/fe-gtk/maingui.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/fe-gtk/maingui.c b/src/fe-gtk/maingui.c
index 307420f4..32fa83cb 100644
--- a/src/fe-gtk/maingui.c
+++ b/src/fe-gtk/maingui.c
@@ -54,6 +54,7 @@
 #include "../common/modes.h"
 #include "../common/url.h"
 #include "../common/util.h"
+#include "../common/text.h"
 
 #include "fe-gtk.h"
 #include "banlist.h"
@@ -2801,7 +2802,10 @@ mg_inputbox_rightclick (GtkEntry *entry, GtkWidget *menu)
 static void
 mg_create_entry (session *sess, GtkWidget *box)
 {
-	GtkWidget *sw, *hbox, *but, *entry;
+	GtkWidget *hbox, *but, *entry;
+#ifdef USE_GTKSPELL
+	GtkWidget *sw;
+#endif
 	session_gui *gui = sess->gui;
 
 	hbox = gtk_hbox_new (FALSE, 0);
@@ -3695,7 +3699,9 @@ mg_drag_motion_cb (GtkWidget *widget, GdkDragContext *context, int x, int y, gui
 	GdkGCValues val;
 	int half, width, height;
 	int ox, oy;
+#if 0
 	GtkPaned *paned;
+#endif
 	GdkDrawable *draw;
 
 	/* ignore file drops */