summaryrefslogtreecommitdiff
path: root/pluma/pluma-notebook.c
diff options
context:
space:
mode:
Diffstat (limited to 'pluma/pluma-notebook.c')
-rw-r--r--pluma/pluma-notebook.c4
1 files 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;