|
1 | | -/* ev-previewer-window.c: |
| 1 | +/* ev-previewer-window.c: |
2 | 2 | * this file is part of xreader, a generic document viewer |
3 | 3 | * |
4 | 4 | * Copyright (C) 2009 Carlos Garcia Campos <carlosgc@gnome.org> |
@@ -246,7 +246,7 @@ ev_previewer_window_enumerate_finished (EvPreviewerWindow *window) |
246 | 246 | GTK_PRINT_ERROR_GENERAL, |
247 | 247 | _("The selected printer '%s' could not be found"), |
248 | 248 | gtk_print_settings_get_printer (window->print_settings)); |
249 | | - |
| 249 | + |
250 | 250 | ev_previewer_window_error_dialog_run (window, error); |
251 | 251 | g_error_free (error); |
252 | 252 | } |
@@ -291,24 +291,24 @@ static const GtkActionEntry action_entries[] = { |
291 | 291 | { "FileCloseWindow", GTK_STOCK_CLOSE, NULL, "<control>W", |
292 | 292 | NULL, |
293 | 293 | G_CALLBACK (ev_previewer_window_close) }, |
294 | | - { "GoPreviousPage", GTK_STOCK_GO_UP, N_("_Previous Page"), "<control>Page_Up", |
| 294 | + { "GoPreviousPage", "go-previous-symbolic", N_("_Previous Page"), "<control>Page_Up", |
295 | 295 | N_("Go to the previous page"), |
296 | 296 | G_CALLBACK (ev_previewer_window_previous_page) }, |
297 | | - { "GoNextPage", GTK_STOCK_GO_DOWN, N_("_Next Page"), "<control>Page_Down", |
| 297 | + { "GoNextPage", "go-next-symbolic", N_("_Next Page"), "<control>Page_Down", |
298 | 298 | N_("Go to the next page"), |
299 | 299 | G_CALLBACK (ev_previewer_window_next_page) }, |
300 | | - { "ViewZoomIn", GTK_STOCK_ZOOM_IN, NULL, "<control>plus", |
| 300 | + { "ViewZoomIn", "zoom-in-symbolic", NULL, "<control>plus", |
301 | 301 | N_("Enlarge the document"), |
302 | 302 | G_CALLBACK (ev_previewer_window_zoom_in) }, |
303 | | - { "ViewZoomOut", GTK_STOCK_ZOOM_OUT, NULL, "<control>minus", |
| 303 | + { "ViewZoomOut", "zoom-out-symbolic", NULL, "<control>minus", |
304 | 304 | N_("Shrink the document"), |
305 | 305 | G_CALLBACK (ev_previewer_window_zoom_out) }, |
306 | | - { "ViewZoomReset", GTK_STOCK_ZOOM_100, NULL, "<control>0", |
| 306 | + { "ViewZoomReset", "zoom-original-symbolic", NULL, "<control>0", |
307 | 307 | N_("Original size"), |
308 | 308 | G_CALLBACK (ev_previewer_window_zoom_reset) }, |
309 | 309 | #if GTKUNIXPRINT_ENABLED |
310 | 310 | /* translators: Print document currently shown in the Print Preview window */ |
311 | | - { "PreviewPrint", GTK_STOCK_PRINT, N_("Print"), NULL, |
| 311 | + { "PreviewPrint", "document-print-symbolic", N_("Print"), NULL, |
312 | 312 | N_("Print this document"), |
313 | 313 | G_CALLBACK (ev_previewer_window_print) } |
314 | 314 | #endif |
@@ -353,10 +353,10 @@ static const GtkActionEntry accel_entries[] = { |
353 | 353 | }; |
354 | 354 |
|
355 | 355 | static const GtkToggleActionEntry toggle_action_entries[] = { |
356 | | - { "ViewBestFit", EV_STOCK_ZOOM_PAGE, N_("_Best Fit"), NULL, |
| 356 | + { "ViewBestFit", "zoom-fit-best-symbolic", N_("_Best Fit"), NULL, |
357 | 357 | N_("Make the current document fill the window"), |
358 | 358 | G_CALLBACK (ev_previewer_window_zoom_best_fit) }, |
359 | | - { "ViewPageWidth", EV_STOCK_ZOOM_WIDTH, N_("Fit Page _Width"), NULL, |
| 359 | + { "ViewPageWidth", "view-paged-symbolic", N_("Fit Page _Width"), NULL, |
360 | 360 | N_("Make the current document fill the window width"), |
361 | 361 | G_CALLBACK (ev_previewer_window_zoom_page_width) } |
362 | 362 | }; |
@@ -592,6 +592,7 @@ ev_previewer_window_constructor (GType type, |
592 | 592 | vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, 0); |
593 | 593 |
|
594 | 594 | toolbar = gtk_ui_manager_get_widget (window->ui_manager, "/PreviewToolbar"); |
| 595 | + gtk_toolbar_set_icon_size ( GTK_TOOLBAR (toolbar), GTK_ICON_SIZE_SMALL_TOOLBAR); |
595 | 596 | gtk_box_pack_start (GTK_BOX (vbox), toolbar, FALSE, FALSE, 0); |
596 | 597 | gtk_widget_show (toolbar); |
597 | 598 |
|
|
0 commit comments