From 48d0b09b8db17f698eb4627981ec2a98bad5f515 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Mon, 23 Oct 2017 06:12:44 -0400 Subject: mq_window_[gs]et_current_tab(): Remove functions --- (limited to 'src') diff --git a/src/window.c b/src/window.c index 325184f..a1acd33 100644 --- a/src/window.c +++ b/src/window.c @@ -37,7 +37,6 @@ struct _MqWindow { MqConfig *config; GtkWidget *notebook; MqTabPage *root_tab; - guint current_tab; gboolean fullscreen; }; @@ -352,19 +351,6 @@ mq_window_toggle_fullscreen(MqWindow *window) } } -void -mq_window_set_current_tab(MqWindow *window, guint tab) -{ - window->current_tab = tab; - gtk_notebook_set_current_page(GTK_NOTEBOOK(window->notebook), tab - 1); -} - -guint -mq_window_get_current_tab(MqWindow *window) -{ - return window->current_tab; -} - guint mq_window_get_num_tabs(MqWindow *window) { diff --git a/src/window.h b/src/window.h index 8fe2fb0..a32e550 100644 --- a/src/window.h +++ b/src/window.h @@ -61,12 +61,6 @@ mq_window_get_application(MqWindow *window); void mq_window_toggle_fullscreen(MqWindow *window); -void -mq_window_set_current_tab(MqWindow *window, guint tab); - -guint -mq_window_get_current_tab(MqWindow *window); - guint mq_window_get_num_tabs(MqWindow *window); -- cgit v0.9.1