summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPatrick McDermott <pj@pehjota.net>2017-09-28 16:30:04 (EDT)
committer Patrick McDermott <pj@pehjota.net>2017-09-28 16:30:04 (EDT)
commita877562e50c61a0b71f899cbcee5c3e093f0bac5 (patch)
tree0ad02fff7a81158fa0409d00510729049cea387a /src
parentf04c3324843280d9f0a59814e91bfbc61d0ed878 (diff)
downloadmarquee-a877562e50c61a0b71f899cbcee5c3e093f0bac5.zip
marquee-a877562e50c61a0b71f899cbcee5c3e093f0bac5.tar.gz
marquee-a877562e50c61a0b71f899cbcee5c3e093f0bac5.tar.bz2
MqTabChrome: Add zoom buttons
Diffstat (limited to 'src')
-rw-r--r--src/tab-chrome.c33
1 files changed, 18 insertions, 15 deletions
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));