summaryrefslogtreecommitdiffstats
path: root/src/tab-label.c
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-11-01 17:01:16 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-11-01 17:01:16 (EDT)
commitd1e8108e044be8a3f2a9f7b64b5b71e8e4e92c6f (patch)
tree8e071b66621697b23a7e506769ac727aad7e9df0 /src/tab-label.c
parent080dba1a541b0518225dea0f646f01b32d19054e (diff)
downloadmarquee-d1e8108e044be8a3f2a9f7b64b5b71e8e4e92c6f.zip
marquee-d1e8108e044be8a3f2a9f7b64b5b71e8e4e92c6f.tar.gz
marquee-d1e8108e044be8a3f2a9f7b64b5b71e8e4e92c6f.tar.bz2
src/tab-label.c: Delete old unused macro
This was used when the tab tree was in the label popover. Fixes: CC src/marquee-tab-label.o src/tab-label.c:103:0: warning: macro "NEW_TOGGLE" is not used [-Wunused-macros] #define NEW_TOGGLE(Y, X, ICON, TOOLTIP) \ ^
Diffstat (limited to 'src/tab-label.c')
-rw-r--r--src/tab-label.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/src/tab-label.c b/src/tab-label.c
index 3f57fb6..5e7cc32 100644
--- a/src/tab-label.c
+++ b/src/tab-label.c
@@ -100,18 +100,6 @@ new_window_clicked_cb(GtkWidget G_GNUC_UNUSED *button, MqTabLabel *tab_label)
gtk_grid_attach(GTK_GRID(button_grid), \
buttons[Y * BUTTON_COLS + X], X, Y, 1, 1); \
} G_STMT_END
-#define NEW_TOGGLE(Y, X, ICON, TOOLTIP) \
- G_STMT_START { \
- buttons[Y * BUTTON_COLS + X] = gtk_toggle_button_new(); \
- gtk_button_set_image(GTK_BUTTON(buttons[Y * BUTTON_COLS + X]), \
- gtk_image_new_from_icon_name(ICON, \
- GTK_ICON_SIZE_BUTTON)); \
- gtk_widget_set_tooltip_text(buttons[Y * BUTTON_COLS + X], \
- TOOLTIP); \
- gtk_widget_set_can_focus(buttons[Y * BUTTON_COLS + X], FALSE); \
- gtk_grid_attach(GTK_GRID(button_grid), \
- buttons[Y * BUTTON_COLS + X], X, Y, 1, 1); \
- } G_STMT_END
#define CLICKED_CB(Y, X, CB) \
g_signal_connect(buttons[Y * BUTTON_COLS + X], "clicked", CB, tab_label)
@@ -153,7 +141,6 @@ create_tab_popover(GtkWidget *widget, MqTabLabel *tab_label)
#undef BUTTON_ROWS
#undef BUTTON_COLS
#undef NEW_BUTTON
-#undef NEW_TOGGLE
#undef CLICKED_CB
static gboolean