From 54992c3d01bd58baa33320c96446c13c55329814 Mon Sep 17 00:00:00 2001 From: raveit65 Date: Fri, 12 May 2017 14:30:59 +0200 Subject: pluma-notebook.c: fix a build warning --- pluma/pluma-notebook.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pluma/pluma-notebook.c b/pluma/pluma-notebook.c index 591b6220..b8dade78 100644 --- a/pluma/pluma-notebook.c +++ b/pluma/pluma-notebook.c @@ -640,12 +640,12 @@ button_press_cb (PlumaNotebook *notebook, { if (event->type == GDK_BUTTON_PRESS) { - tab1click = gtk_notebook_get_current_page (notebook); + tab1click = gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook)); newfile = (tab_clicked == -1); } else if (event->type == GDK_2BUTTON_PRESS) { - if ((tab1click != gtk_notebook_get_current_page (notebook)) || + if ((tab1click != gtk_notebook_get_current_page (GTK_NOTEBOOK (notebook))) || (tab_clicked >= 0) || ((tab_clicked == -1) && (!newfile))) return TRUE; -- cgit v1.2.1