From a877562e50c61a0b71f899cbcee5c3e093f0bac5 Mon Sep 17 00:00:00 2001 From: Patrick McDermott Date: Thu, 28 Sep 2017 16:30:04 -0400 Subject: MqTabChrome: Add zoom buttons --- diff --git a/src/tab-chrome.c b/src/tab-chrome.c index c249773..ec4bb77 100644 --- a/src/tab-chrome.c +++ b/src/tab-chrome.c @@ -301,7 +301,7 @@ uri_activate_cb(GtkEntry *entry, MqTabChrome *chrome) gtk_entry_get_text(GTK_ENTRY(entry))); } -#define BUTTON_ROWS 5 +#define BUTTON_ROWS 6 #define BUTTON_COLS 3 #define NEW_BUTTON(Y, X, ICON, TOOLTIP) \ do { \ @@ -324,20 +324,23 @@ menu_button_clicked_cb(GtkToolButton *tool_button, /* Set up the grid. */ grid = gtk_grid_new(); - NEW_BUTTON(0, 0, "document-open", "Open file"); - NEW_BUTTON(0, 1, "document-save-as", "Save page"); - NEW_BUTTON(0, 2, "mail-message-new", "E-mail link"); - NEW_BUTTON(1, 0, "edit-find", "Find"); - NEW_BUTTON(1, 1, "document-print-preview", "Print preview"); - NEW_BUTTON(1, 2, "document-print", "Print"); - NEW_BUTTON(2, 0, "bookmark-new", "Bookmarks"); - NEW_BUTTON(2, 1, "document-open-recent", "History"); - NEW_BUTTON(2, 2, "document-save", "Downloads"); - NEW_BUTTON(3, 0, "view-fullscreen", "Full screen"); - NEW_BUTTON(3, 1, "document-properties", "Developer tools"); - NEW_BUTTON(3, 2, "system-run", "Preferences"); - NEW_BUTTON(4, 0, "help-about", "About Marquee"); - NEW_BUTTON(4, 2, "application-exit", "Quit"); + NEW_BUTTON(0, 0, "zoom-out", "Zoom out"); + NEW_BUTTON(0, 1, "zoom-original", "Reset zoom"); + NEW_BUTTON(0, 2, "zoom-in", "Zoom in"); + 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"); + NEW_BUTTON(2, 0, "edit-find", "Find"); + NEW_BUTTON(2, 1, "document-print-preview", "Print preview"); + NEW_BUTTON(2, 2, "document-print", "Print"); + NEW_BUTTON(3, 0, "bookmark-new", "Bookmarks"); + NEW_BUTTON(3, 1, "document-open-recent", "History"); + NEW_BUTTON(3, 2, "document-save", "Downloads"); + NEW_BUTTON(4, 0, "view-fullscreen", "Full screen"); + NEW_BUTTON(4, 1, "document-properties", "Developer tools"); + NEW_BUTTON(4, 2, "system-run", "Preferences"); + NEW_BUTTON(5, 0, "help-about", "About Marquee"); + NEW_BUTTON(5, 2, "application-exit", "Quit"); /* Set up the popover. */ popover = gtk_popover_new(GTK_WIDGET(tool_button)); -- cgit v0.9.1