diff src/preferences.c @ 2431:1f5389d824df

Fix compile warnings Fix compile warnings introduced in commit 2afb371
author Colin Clark <cclark@mcb.net>
date Wed, 11 Jan 2017 13:21:10 +0000
parents 3d6f45f1bdf4
children e133f99b6331
line wrap: on
line diff
--- a/src/preferences.c	Wed Jan 11 10:48:30 2017 +0000
+++ b/src/preferences.c	Wed Jan 11 13:21:10 2017 +0000
@@ -408,7 +408,7 @@
 
 static void config_window_help_cb(GtkWidget *widget, gpointer data)
 {
-	GtkWidget *notebook = GTK_NOTEBOOK(data);
+	GtkWidget *notebook = data;
 	gint i;
 
 	static gchar *html_section[] =
@@ -424,7 +424,7 @@
 	"GuideOptionsBehavior.html"
 	};
 
-	i = gtk_notebook_get_current_page(notebook);
+	i = gtk_notebook_get_current_page(GTK_NOTEBOOK(notebook));
 	help_window_show(html_section[i]);
 }