From d1e8108e044be8a3f2a9f7b64b5b71e8e4e92c6f Mon Sep 17 00:00:00 2001
From: Patrick McDermott <pj@pehjota.net>
Date: Wed, 01 Nov 2017 17:01:16 -0400
Subject: 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) \
     ^
---
(limited to 'src')

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
--
cgit v0.9.1