From 328c6aece0f6d6e6fbca6ffca51ee07ba3b782a7 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Sun, 19 Nov 2017 17:20:07 -0500 Subject: MqMainMenu: Shorten NEW_BUTTON macro name to NEW_BTN --- (limited to 'src/toolbars/navigation') diff --git a/src/toolbars/navigation/main-menu.c b/src/toolbars/navigation/main-menu.c index fdc6d7e..668111d 100644 --- a/src/toolbars/navigation/main-menu.c +++ b/src/toolbars/navigation/main-menu.c @@ -293,7 +293,7 @@ create_zoom_buttons(MqMainMenu *main_menu) #define BUTTON_ROWS 3 #define BUTTON_COLS 3 -#define NEW_BUTTON(Y, X, ICON, TOOLTIP) \ +#define NEW_BTN(Y, X, ICON, TOOLTIP) \ G_STMT_START { \ buttons[Y * BUTTON_COLS + X] = gtk_button_new_from_icon_name(\ ICON, GTK_ICON_SIZE_BUTTON); \ @@ -325,20 +325,20 @@ create_main_grid(MqMainMenu *main_menu) gtk_grid_set_row_homogeneous(GTK_GRID(grid), TRUE); gtk_grid_set_column_homogeneous(GTK_GRID(grid), TRUE); - /* Y, X, ICON, TOOLTIP */ - NEW_BUTTON(0, 0, "window-new", "New window"); - NEW_BUTTON(0, 1, "edit-find", "Find"); - NEW_BUTTON(0, 2, "view-fullscreen", "Full screen"); + /* Y, X, ICON, TOOLTIP */ + NEW_BTN(0, 0, "window-new", "New window"); + NEW_BTN(0, 1, "edit-find", "Find"); + NEW_BTN(0, 2, "view-fullscreen", "Full screen"); - /* Y, X, ICON, TOOLTIP */ - NEW_BUTTON(1, 0, "document-open", "Open file"); - NEW_BUTTON(1, 1, "document-save-as", "Save page"); - NEW_BUTTON(1, 2, "mail-message-new", "E-mail link"); + /* Y, X, ICON, TOOLTIP */ + NEW_BTN(1, 0, "document-open", "Open file"); + NEW_BTN(1, 1, "document-save-as", "Save page"); + NEW_BTN(1, 2, "mail-message-new", "E-mail link"); - /* Y, X, ICON, TOOLTIP */ - NEW_BUTTON(2, 0, "document-print-preview", "Print preview"); - NEW_BUTTON(2, 1, "document-print", "Print"); - NEW_BUTTON(2, 2, "preferences-system", "Inspector"); + /* Y, X, ICON, TOOLTIP */ + NEW_BTN(2, 0, "document-print-preview", "Print preview"); + NEW_BTN(2, 1, "document-print", "Print"); + NEW_BTN(2, 2, "preferences-system", "Inspector"); /* Y, X, CB */ CLICKED_CB(0, 0, new_window_clicked_cb); @@ -363,7 +363,7 @@ create_main_grid(MqMainMenu *main_menu) #undef BUTTON_ROWS #undef BUTTON_COLS -#undef NEW_BUTTON +#undef NEW_BTN #undef CLICKED_CB #define NEW_BUTTON(ID, ICON, LABEL, TOOLTIP) \ -- cgit v0.9.1