diff options
author | Patrick McDermott <pj@pehjota.net> | 2017-11-19 17:20:07 (EST) |
---|---|---|
committer | Patrick McDermott <pj@pehjota.net> | 2017-11-19 17:20:07 (EST) |
commit | 328c6aece0f6d6e6fbca6ffca51ee07ba3b782a7 (patch) | |
tree | 85c8960e6c7a054460ef84d3df39ac8b03d51775 /src/toolbars/navigation | |
parent | bc7c25ce729a04cae04656b66fd8b4976947dcf1 (diff) | |
download | marquee-328c6aece0f6d6e6fbca6ffca51ee07ba3b782a7.zip marquee-328c6aece0f6d6e6fbca6ffca51ee07ba3b782a7.tar.gz marquee-328c6aece0f6d6e6fbca6ffca51ee07ba3b782a7.tar.bz2 |
MqMainMenu: Shorten NEW_BUTTON macro name to NEW_BTN
Diffstat (limited to 'src/toolbars/navigation')
-rw-r--r-- | src/toolbars/navigation/main-menu.c | 28 |
1 files changed, 14 insertions, 14 deletions
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) \ |