summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-19 18:37:53 (EST)
committer Patrick McDermott <pj@pehjota.net>2017-11-19 18:37:53 (EST)
commite540e2fc65fcbc86c21ae4251c59a88f2bfadae6 (patch)
tree01a802097e6a2cc0c14980888fedb8cb6a7247df /src
parent94588408e7f53e43af69e7a5e511bee9d015a73e (diff)
downloadmarquee-e540e2fc65fcbc86c21ae4251c59a88f2bfadae6.zip
marquee-e540e2fc65fcbc86c21ae4251c59a88f2bfadae6.tar.gz
marquee-e540e2fc65fcbc86c21ae4251c59a88f2bfadae6.tar.bz2
MqTabLabel: Make unimplemented buttons insensitive
Diffstat (limited to 'src')
-rw-r--r--src/tab-label.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tab-label.c b/src/tab-label.c
index 46abf8e..46138eb 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -125,11 +125,14 @@ create_tab_popover(GtkWidget *widget, MqTabLabel *tab_label)
CLICKED_CB(0, 0, reload_tab_clicked_cb);
/* TODO: 0, 1: Duplicate tab */
+ gtk_widget_set_sensitive(buttons[0 * BUTTON_COLS + 1], FALSE);
/* TODO: 0, 2: Move tab to new window */
+ gtk_widget_set_sensitive(buttons[0 * BUTTON_COLS + 2], FALSE);
CLICKED_CB(0, 3, close_clicked_cb);
CLICKED_CB(1, 0, new_tab_clicked_cb);
CLICKED_CB(1, 1, new_window_clicked_cb);
/* TODO: 1, 2: Undo close tab */
+ gtk_widget_set_sensitive(buttons[1 * BUTTON_COLS + 2], FALSE);
/* Set up the popover. */
tab_label->popover = gtk_popover_new(widget);