Merge lp:~larsu/evince/fix-accels into lp:~ubuntu-desktop/evince/ubuntu
- fix-accels
- Merge into ubuntu
Proposed by
Lars Karlitski
Status: | Merged |
---|---|
Merged at revision: | 231 |
Proposed branch: | lp:~larsu/evince/fix-accels |
Merge into: | lp:~ubuntu-desktop/evince/ubuntu |
Diff against target: |
662 lines (+222/-276) 4 files modified
debian/patches/0001-Port-to-GMenuModel-and-add-menu-bar.patch (+35/-36) debian/patches/0002-Don-t-use-gtk_application_set_accels_for_action.patch (+186/-0) debian/patches/0002-Remove-gtk_application_set_accels_for_actions.patch (+0/-239) debian/patches/series (+1/-1) |
To merge this branch: | bzr merge lp:~larsu/evince/fix-accels |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Sebastien Bacher | Approve | ||
Review via email: mp+205637@code.launchpad.net |
Commit message
Fix gtk 3.10 menu patch and remove invalid free()
This fixes accelerators on GNOME shell and a crash when activating "Save As".
Description of the change
Fix gtk 3.10 menu patch and remove invalid free()
This fixes accelerators on GNOME shell and a crash when activating "Save As".
To post a comment you must log in.
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'debian/patches/0001-Port-to-GMenuModel-and-add-menu-bar.patch' | |||
2 | --- debian/patches/0001-Port-to-GMenuModel-and-add-menu-bar.patch 2014-02-07 16:24:37 +0000 | |||
3 | +++ debian/patches/0001-Port-to-GMenuModel-and-add-menu-bar.patch 2014-02-10 17:52:12 +0000 | |||
4 | @@ -30,8 +30,8 @@ | |||
5 | 30 | 30 | ||
6 | 31 | Index: evince-3.10.3/shell/Makefile.am | 31 | Index: evince-3.10.3/shell/Makefile.am |
7 | 32 | =================================================================== | 32 | =================================================================== |
10 | 33 | --- evince-3.10.3.orig/shell/Makefile.am 2014-02-07 16:21:43.333330333 +0000 | 33 | --- evince-3.10.3.orig/shell/Makefile.am 2014-02-10 17:35:01.074434692 +0100 |
11 | 34 | +++ evince-3.10.3/shell/Makefile.am 2014-02-07 16:21:43.317330332 +0000 | 34 | +++ evince-3.10.3/shell/Makefile.am 2014-02-10 17:35:01.050434692 +0100 |
12 | 35 | @@ -75,6 +75,8 @@ | 35 | @@ -75,6 +75,8 @@ |
13 | 36 | ev-sidebar-page.h \ | 36 | ev-sidebar-page.h \ |
14 | 37 | ev-sidebar-thumbnails.c \ | 37 | ev-sidebar-thumbnails.c \ |
15 | @@ -59,8 +59,8 @@ | |||
16 | 59 | $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir) --generate-source --c-name ev $< | 59 | $(AM_V_GEN) XMLLINT=$(XMLLINT) $(GLIB_COMPILE_RESOURCES) --target $@ --sourcedir $(srcdir) --generate-source --c-name ev $< |
17 | 60 | Index: evince-3.10.3/shell/ev-application.c | 60 | Index: evince-3.10.3/shell/ev-application.c |
18 | 61 | =================================================================== | 61 | =================================================================== |
21 | 62 | --- evince-3.10.3.orig/shell/ev-application.c 2014-02-07 16:21:43.333330333 +0000 | 62 | --- evince-3.10.3.orig/shell/ev-application.c 2014-02-10 17:35:01.074434692 +0100 |
22 | 63 | +++ evince-3.10.3/shell/ev-application.c 2014-02-07 16:21:44.000000000 +0000 | 63 | +++ evince-3.10.3/shell/ev-application.c 2014-02-10 17:35:15.000000000 +0100 |
23 | 64 | @@ -42,6 +42,9 @@ | 64 | @@ -42,6 +42,9 @@ |
24 | 65 | #include "ev-application.h" | 65 | #include "ev-application.h" |
25 | 66 | #include "ev-file-helpers.h" | 66 | #include "ev-file-helpers.h" |
26 | @@ -447,8 +447,8 @@ | |||
27 | 447 | +} | 447 | +} |
28 | 448 | Index: evince-3.10.3/shell/ev-application.h | 448 | Index: evince-3.10.3/shell/ev-application.h |
29 | 449 | =================================================================== | 449 | =================================================================== |
32 | 450 | --- evince-3.10.3.orig/shell/ev-application.h 2014-02-07 16:21:43.333330333 +0000 | 450 | --- evince-3.10.3.orig/shell/ev-application.h 2014-02-10 17:35:01.074434692 +0100 |
33 | 451 | +++ evince-3.10.3/shell/ev-application.h 2014-02-07 16:21:43.317330332 +0000 | 451 | +++ evince-3.10.3/shell/ev-application.h 2014-02-10 17:35:01.054434692 +0100 |
34 | 452 | @@ -81,6 +81,14 @@ | 452 | @@ -81,6 +81,14 @@ |
35 | 453 | GdkScreen *screen, | 453 | GdkScreen *screen, |
36 | 454 | const char *topic); | 454 | const char *topic); |
37 | @@ -466,8 +466,8 @@ | |||
38 | 466 | #endif /* !EV_APPLICATION_H */ | 466 | #endif /* !EV_APPLICATION_H */ |
39 | 467 | Index: evince-3.10.3/shell/ev-bookmarks.c | 467 | Index: evince-3.10.3/shell/ev-bookmarks.c |
40 | 468 | =================================================================== | 468 | =================================================================== |
43 | 469 | --- evince-3.10.3.orig/shell/ev-bookmarks.c 2014-02-07 16:21:43.333330333 +0000 | 469 | --- evince-3.10.3.orig/shell/ev-bookmarks.c 2014-02-10 17:35:01.074434692 +0100 |
44 | 470 | +++ evince-3.10.3/shell/ev-bookmarks.c 2014-02-07 16:21:43.317330332 +0000 | 470 | +++ evince-3.10.3/shell/ev-bookmarks.c 2014-02-10 17:35:01.054434692 +0100 |
45 | 471 | @@ -224,6 +224,14 @@ | 471 | @@ -224,6 +224,14 @@ |
46 | 472 | return g_list_copy (bookmarks->items); | 472 | return g_list_copy (bookmarks->items); |
47 | 473 | } | 473 | } |
48 | @@ -485,8 +485,8 @@ | |||
49 | 485 | EvBookmark *bookmark) | 485 | EvBookmark *bookmark) |
50 | 486 | Index: evince-3.10.3/shell/ev-bookmarks.h | 486 | Index: evince-3.10.3/shell/ev-bookmarks.h |
51 | 487 | =================================================================== | 487 | =================================================================== |
54 | 488 | --- evince-3.10.3.orig/shell/ev-bookmarks.h 2014-02-07 16:21:43.333330333 +0000 | 488 | --- evince-3.10.3.orig/shell/ev-bookmarks.h 2014-02-10 17:35:01.074434692 +0100 |
55 | 489 | +++ evince-3.10.3/shell/ev-bookmarks.h 2014-02-07 16:21:43.317330332 +0000 | 489 | +++ evince-3.10.3/shell/ev-bookmarks.h 2014-02-10 17:35:01.054434692 +0100 |
56 | 490 | @@ -43,6 +43,7 @@ | 490 | @@ -43,6 +43,7 @@ |
57 | 491 | GType ev_bookmarks_get_type (void) G_GNUC_CONST; | 491 | GType ev_bookmarks_get_type (void) G_GNUC_CONST; |
58 | 492 | EvBookmarks *ev_bookmarks_new (EvMetadata *metadata); | 492 | EvBookmarks *ev_bookmarks_new (EvMetadata *metadata); |
59 | @@ -498,7 +498,7 @@ | |||
60 | 498 | Index: evince-3.10.3/shell/ev-recent-menu-model.c | 498 | Index: evince-3.10.3/shell/ev-recent-menu-model.c |
61 | 499 | =================================================================== | 499 | =================================================================== |
62 | 500 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 500 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
64 | 501 | +++ evince-3.10.3/shell/ev-recent-menu-model.c 2014-02-07 16:21:43.321330332 +0000 | 501 | +++ evince-3.10.3/shell/ev-recent-menu-model.c 2014-02-10 17:35:01.054434692 +0100 |
65 | 502 | @@ -0,0 +1,108 @@ | 502 | @@ -0,0 +1,108 @@ |
66 | 503 | +/* | 503 | +/* |
67 | 504 | + * Copyright 2014 Canonical Ltd | 504 | + * Copyright 2014 Canonical Ltd |
68 | @@ -611,7 +611,7 @@ | |||
69 | 611 | Index: evince-3.10.3/shell/ev-recent-menu-model.h | 611 | Index: evince-3.10.3/shell/ev-recent-menu-model.h |
70 | 612 | =================================================================== | 612 | =================================================================== |
71 | 613 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 613 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
73 | 614 | +++ evince-3.10.3/shell/ev-recent-menu-model.h 2014-02-07 16:21:43.321330332 +0000 | 614 | +++ evince-3.10.3/shell/ev-recent-menu-model.h 2014-02-10 17:35:01.058434692 +0100 |
74 | 615 | @@ -0,0 +1,30 @@ | 615 | @@ -0,0 +1,30 @@ |
75 | 616 | +/* | 616 | +/* |
76 | 617 | + * Copyright 2014 Canonical Ltd | 617 | + * Copyright 2014 Canonical Ltd |
77 | @@ -645,8 +645,8 @@ | |||
78 | 645 | +#endif | 645 | +#endif |
79 | 646 | Index: evince-3.10.3/shell/ev-sidebar-bookmarks.c | 646 | Index: evince-3.10.3/shell/ev-sidebar-bookmarks.c |
80 | 647 | =================================================================== | 647 | =================================================================== |
83 | 648 | --- evince-3.10.3.orig/shell/ev-sidebar-bookmarks.c 2014-02-07 16:21:43.333330333 +0000 | 648 | --- evince-3.10.3.orig/shell/ev-sidebar-bookmarks.c 2014-02-10 17:35:01.074434692 +0100 |
84 | 649 | +++ evince-3.10.3/shell/ev-sidebar-bookmarks.c 2014-02-07 16:21:43.321330332 +0000 | 649 | +++ evince-3.10.3/shell/ev-sidebar-bookmarks.c 2014-02-10 17:35:01.058434692 +0100 |
85 | 650 | @@ -40,11 +40,6 @@ | 650 | @@ -40,11 +40,6 @@ |
86 | 651 | N_COLUMNS | 651 | N_COLUMNS |
87 | 652 | }; | 652 | }; |
88 | @@ -716,8 +716,8 @@ | |||
89 | 716 | GtkWidget * | 716 | GtkWidget * |
90 | 717 | Index: evince-3.10.3/shell/ev-toolbar.c | 717 | Index: evince-3.10.3/shell/ev-toolbar.c |
91 | 718 | =================================================================== | 718 | =================================================================== |
94 | 719 | --- evince-3.10.3.orig/shell/ev-toolbar.c 2014-02-07 16:21:43.333330333 +0000 | 719 | --- evince-3.10.3.orig/shell/ev-toolbar.c 2014-02-10 17:35:01.074434692 +0100 |
95 | 720 | +++ evince-3.10.3/shell/ev-toolbar.c 2014-02-07 16:21:43.321330332 +0000 | 720 | +++ evince-3.10.3/shell/ev-toolbar.c 2014-02-10 17:35:01.058434692 +0100 |
96 | 721 | @@ -24,9 +24,12 @@ | 721 | @@ -24,9 +24,12 @@ |
97 | 722 | 722 | ||
98 | 723 | #include "ev-toolbar.h" | 723 | #include "ev-toolbar.h" |
99 | @@ -984,8 +984,8 @@ | |||
100 | 984 | static void | 984 | static void |
101 | 985 | Index: evince-3.10.3/shell/ev-utils.c | 985 | Index: evince-3.10.3/shell/ev-utils.c |
102 | 986 | =================================================================== | 986 | =================================================================== |
105 | 987 | --- evince-3.10.3.orig/shell/ev-utils.c 2014-02-07 16:21:43.333330333 +0000 | 987 | --- evince-3.10.3.orig/shell/ev-utils.c 2014-02-10 17:35:01.074434692 +0100 |
106 | 988 | +++ evince-3.10.3/shell/ev-utils.c 2014-02-07 16:21:43.321330332 +0000 | 988 | +++ evince-3.10.3/shell/ev-utils.c 2014-02-10 17:35:39.610433331 +0100 |
107 | 989 | @@ -22,6 +22,7 @@ | 989 | @@ -22,6 +22,7 @@ |
108 | 990 | 990 | ||
109 | 991 | #include "ev-utils.h" | 991 | #include "ev-utils.h" |
110 | @@ -994,7 +994,7 @@ | |||
111 | 994 | 994 | ||
112 | 995 | #include <string.h> | 995 | #include <string.h> |
113 | 996 | #include <math.h> | 996 | #include <math.h> |
115 | 997 | @@ -391,3 +392,91 @@ | 997 | @@ -391,3 +392,90 @@ |
116 | 998 | g_slist_free (pixbuf_formats); | 998 | g_slist_free (pixbuf_formats); |
117 | 999 | return NULL; | 999 | return NULL; |
118 | 1000 | } | 1000 | } |
119 | @@ -1084,12 +1084,11 @@ | |||
120 | 1084 | + } | 1084 | + } |
121 | 1085 | + | 1085 | + |
122 | 1086 | + g_free (folder_uri); | 1086 | + g_free (folder_uri); |
123 | 1087 | + g_free (parent_uri); | ||
124 | 1088 | +} | 1087 | +} |
125 | 1089 | Index: evince-3.10.3/shell/ev-utils.h | 1088 | Index: evince-3.10.3/shell/ev-utils.h |
126 | 1090 | =================================================================== | 1089 | =================================================================== |
129 | 1091 | --- evince-3.10.3.orig/shell/ev-utils.h 2014-02-07 16:21:43.333330333 +0000 | 1090 | --- evince-3.10.3.orig/shell/ev-utils.h 2014-02-10 17:35:01.074434692 +0100 |
130 | 1092 | +++ evince-3.10.3/shell/ev-utils.h 2014-02-07 16:21:43.321330332 +0000 | 1091 | +++ evince-3.10.3/shell/ev-utils.h 2014-02-10 17:35:01.058434692 +0100 |
131 | 1093 | @@ -42,6 +42,13 @@ | 1092 | @@ -42,6 +42,13 @@ |
132 | 1094 | void file_chooser_dialog_add_writable_pixbuf_formats (GtkFileChooser *chooser); | 1093 | void file_chooser_dialog_add_writable_pixbuf_formats (GtkFileChooser *chooser); |
133 | 1095 | GdkPixbufFormat* get_gdk_pixbuf_format_by_extension (const gchar *uri); | 1094 | GdkPixbufFormat* get_gdk_pixbuf_format_by_extension (const gchar *uri); |
134 | @@ -1106,8 +1105,8 @@ | |||
135 | 1106 | #endif /* __EV_VIEW_H__ */ | 1105 | #endif /* __EV_VIEW_H__ */ |
136 | 1107 | Index: evince-3.10.3/shell/ev-window.c | 1106 | Index: evince-3.10.3/shell/ev-window.c |
137 | 1108 | =================================================================== | 1107 | =================================================================== |
140 | 1109 | --- evince-3.10.3.orig/shell/ev-window.c 2014-02-07 16:21:43.333330333 +0000 | 1108 | --- evince-3.10.3.orig/shell/ev-window.c 2014-02-10 17:35:01.074434692 +0100 |
141 | 1110 | +++ evince-3.10.3/shell/ev-window.c 2014-02-07 16:21:43.325330332 +0000 | 1109 | +++ evince-3.10.3/shell/ev-window.c 2014-02-10 17:35:01.066434692 +0100 |
142 | 1111 | @@ -87,10 +87,10 @@ | 1110 | @@ -87,10 +87,10 @@ |
143 | 1112 | #include "ev-print-operation.h" | 1111 | #include "ev-print-operation.h" |
144 | 1113 | #include "ev-progress-message-area.h" | 1112 | #include "ev-progress-message-area.h" |
145 | @@ -3382,8 +3381,8 @@ | |||
146 | 3382 | +} | 3381 | +} |
147 | 3383 | Index: evince-3.10.3/shell/ev-window.h | 3382 | Index: evince-3.10.3/shell/ev-window.h |
148 | 3384 | =================================================================== | 3383 | =================================================================== |
151 | 3385 | --- evince-3.10.3.orig/shell/ev-window.h 2014-02-07 16:21:43.333330333 +0000 | 3384 | --- evince-3.10.3.orig/shell/ev-window.h 2014-02-10 17:35:01.074434692 +0100 |
152 | 3386 | +++ evince-3.10.3/shell/ev-window.h 2014-02-07 16:21:43.325330332 +0000 | 3385 | +++ evince-3.10.3/shell/ev-window.h 2014-02-10 17:35:01.066434692 +0100 |
153 | 3387 | @@ -89,7 +89,7 @@ | 3386 | @@ -89,7 +89,7 @@ |
154 | 3388 | GtkUIManager *ev_window_get_ui_manager (EvWindow *ev_window); | 3387 | GtkUIManager *ev_window_get_ui_manager (EvWindow *ev_window); |
155 | 3389 | GtkActionGroup *ev_window_get_main_action_group (EvWindow *ev_window); | 3388 | GtkActionGroup *ev_window_get_main_action_group (EvWindow *ev_window); |
156 | @@ -3395,8 +3394,8 @@ | |||
157 | 3395 | 3394 | ||
158 | 3396 | Index: evince-3.10.3/shell/evince-appmenu.ui | 3395 | Index: evince-3.10.3/shell/evince-appmenu.ui |
159 | 3397 | =================================================================== | 3396 | =================================================================== |
162 | 3398 | --- evince-3.10.3.orig/shell/evince-appmenu.ui 2014-02-07 16:21:43.333330333 +0000 | 3397 | --- evince-3.10.3.orig/shell/evince-appmenu.ui 2014-02-10 17:35:01.074434692 +0100 |
163 | 3399 | +++ evince-3.10.3/shell/evince-appmenu.ui 2014-02-07 16:21:43.325330332 +0000 | 3398 | +++ evince-3.10.3/shell/evince-appmenu.ui 2014-02-10 17:35:01.066434692 +0100 |
164 | 3400 | @@ -20,6 +20,16 @@ | 3399 | @@ -20,6 +20,16 @@ |
165 | 3401 | <menu id="appmenu"> | 3400 | <menu id="appmenu"> |
166 | 3402 | <section> | 3401 | <section> |
167 | @@ -3416,8 +3415,8 @@ | |||
168 | 3416 | <attribute name="accel">F1</attribute> | 3415 | <attribute name="accel">F1</attribute> |
169 | 3417 | Index: evince-3.10.3/shell/evince-ui.xml | 3416 | Index: evince-3.10.3/shell/evince-ui.xml |
170 | 3418 | =================================================================== | 3417 | =================================================================== |
173 | 3419 | --- evince-3.10.3.orig/shell/evince-ui.xml 2014-02-07 16:21:43.333330333 +0000 | 3418 | --- evince-3.10.3.orig/shell/evince-ui.xml 2014-02-10 17:35:01.074434692 +0100 |
174 | 3420 | +++ evince-3.10.3/shell/evince-ui.xml 2014-02-07 16:21:43.329330332 +0000 | 3419 | +++ evince-3.10.3/shell/evince-ui.xml 2014-02-10 17:35:01.066434692 +0100 |
175 | 3421 | @@ -1,70 +1,10 @@ | 3420 | @@ -1,70 +1,10 @@ |
176 | 3422 | <ui> | 3421 | <ui> |
177 | 3423 | - <popup name="ActionMenu" accelerators="true"> | 3422 | - <popup name="ActionMenu" accelerators="true"> |
178 | @@ -3531,8 +3530,8 @@ | |||
179 | 3531 | </ui> | 3530 | </ui> |
180 | 3532 | Index: evince-3.10.3/shell/evince.gresource.xml | 3531 | Index: evince-3.10.3/shell/evince.gresource.xml |
181 | 3533 | =================================================================== | 3532 | =================================================================== |
184 | 3534 | --- evince-3.10.3.orig/shell/evince.gresource.xml 2014-02-07 16:21:43.333330333 +0000 | 3533 | --- evince-3.10.3.orig/shell/evince.gresource.xml 2014-02-10 17:35:01.074434692 +0100 |
185 | 3535 | +++ evince-3.10.3/shell/evince.gresource.xml 2014-02-07 16:21:43.329330332 +0000 | 3534 | +++ evince-3.10.3/shell/evince.gresource.xml 2014-02-10 17:35:01.066434692 +0100 |
186 | 3536 | @@ -19,6 +19,7 @@ | 3535 | @@ -19,6 +19,7 @@ |
187 | 3537 | <gresource prefix="/org/gnome/evince/shell"> | 3536 | <gresource prefix="/org/gnome/evince/shell"> |
188 | 3538 | <file alias="ui/evince.xml" compressed="true" preprocess="xml-stripblanks">evince-ui.xml</file> | 3537 | <file alias="ui/evince.xml" compressed="true" preprocess="xml-stripblanks">evince-ui.xml</file> |
189 | @@ -3545,7 +3544,7 @@ | |||
190 | 3545 | Index: evince-3.10.3/shell/menus.ui | 3544 | Index: evince-3.10.3/shell/menus.ui |
191 | 3546 | =================================================================== | 3545 | =================================================================== |
192 | 3547 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 3546 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
194 | 3548 | +++ evince-3.10.3/shell/menus.ui 2014-02-07 16:21:44.000000000 +0000 | 3547 | +++ evince-3.10.3/shell/menus.ui 2014-02-10 17:35:15.000000000 +0100 |
195 | 3549 | @@ -0,0 +1,188 @@ | 3548 | @@ -0,0 +1,188 @@ |
196 | 3550 | +<?xml version="1.0" encoding="UTF-8"?> | 3549 | +<?xml version="1.0" encoding="UTF-8"?> |
197 | 3551 | +<!-- | 3550 | +<!-- |
198 | @@ -3738,7 +3737,7 @@ | |||
199 | 3738 | Index: evince-3.10.3/shell/traditional-menus.ui | 3737 | Index: evince-3.10.3/shell/traditional-menus.ui |
200 | 3739 | =================================================================== | 3738 | =================================================================== |
201 | 3740 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 | 3739 | --- /dev/null 1970-01-01 00:00:00.000000000 +0000 |
203 | 3741 | +++ evince-3.10.3/shell/traditional-menus.ui 2014-02-07 16:23:52.237334214 +0000 | 3740 | +++ evince-3.10.3/shell/traditional-menus.ui 2014-02-10 17:35:01.066434692 +0100 |
204 | 3742 | @@ -0,0 +1,230 @@ | 3741 | @@ -0,0 +1,230 @@ |
205 | 3743 | +<?xml version="1.0" encoding="UTF-8"?> | 3742 | +<?xml version="1.0" encoding="UTF-8"?> |
206 | 3744 | +<!-- | 3743 | +<!-- |
207 | @@ -3972,8 +3971,8 @@ | |||
208 | 3972 | +</interface> | 3971 | +</interface> |
209 | 3973 | Index: evince-3.10.3/po/POTFILES.in | 3972 | Index: evince-3.10.3/po/POTFILES.in |
210 | 3974 | =================================================================== | 3973 | =================================================================== |
213 | 3975 | --- evince-3.10.3.orig/po/POTFILES.in 2014-02-07 16:21:43.333330333 +0000 | 3974 | --- evince-3.10.3.orig/po/POTFILES.in 2014-02-10 17:35:01.074434692 +0100 |
214 | 3976 | +++ evince-3.10.3/po/POTFILES.in 2014-02-07 16:21:43.329330332 +0000 | 3975 | +++ evince-3.10.3/po/POTFILES.in 2014-02-10 17:35:01.066434692 +0100 |
215 | 3977 | @@ -56,3 +56,6 @@ | 3976 | @@ -56,3 +56,6 @@ |
216 | 3978 | shell/ev-window-title.c | 3977 | shell/ev-window-title.c |
217 | 3979 | shell/main.c | 3978 | shell/main.c |
218 | 3980 | 3979 | ||
219 | === added file 'debian/patches/0002-Don-t-use-gtk_application_set_accels_for_action.patch' | |||
220 | --- debian/patches/0002-Don-t-use-gtk_application_set_accels_for_action.patch 1970-01-01 00:00:00 +0000 | |||
221 | +++ debian/patches/0002-Don-t-use-gtk_application_set_accels_for_action.patch 2014-02-10 17:52:12 +0000 | |||
222 | @@ -0,0 +1,186 @@ | |||
223 | 1 | From 6781213261c36f4f6c417b06da630a49484faab4 Mon Sep 17 00:00:00 2001 | ||
224 | 2 | From: Lars Uebernickel <lars.uebernickel@canonical.com> | ||
225 | 3 | Date: Mon, 10 Feb 2014 18:13:56 +0100 | ||
226 | 4 | Subject: [PATCH] Don't use gtk_application_set_accels_for_action() | ||
227 | 5 | |||
228 | 6 | Gtk 3.10 doesn't have this function. Change that to use | ||
229 | 7 | gtk_application_add_accelerator. Also add the accelerators to menus.xml | ||
230 | 8 | so that they show up in the UI. (It should be enough to only add them to | ||
231 | 9 | menus.xml, but gtk doesn't seem to pick those up. It's not worth fixing | ||
232 | 10 | that bug as the accelerator handling is revamped in 3.12 and the this | ||
233 | 11 | workaround works fine.) | ||
234 | 12 | --- | ||
235 | 13 | shell/ev-application.c | 2 +- | ||
236 | 14 | shell/menus.ui | 22 ++++++++++++++++++++++ | ||
237 | 15 | 2 files changed, 23 insertions(+), 1 deletion(-) | ||
238 | 16 | |||
239 | 17 | diff --git a/shell/ev-application.c b/shell/ev-application.c | ||
240 | 18 | index e2d87af..2c4b7b3 100644 | ||
241 | 19 | --- a/shell/ev-application.c | ||
242 | 20 | +++ b/shell/ev-application.c | ||
243 | 21 | @@ -1176,7 +1176,7 @@ ev_application_startup (GApplication *gapplication) | ||
244 | 22 | it = action_accels; | ||
245 | 23 | while (it[0]) | ||
246 | 24 | { | ||
247 | 25 | - gtk_application_set_accels_for_action (GTK_APPLICATION (application), it[0], &it[1]); | ||
248 | 26 | + gtk_application_add_accelerator (GTK_APPLICATION (application), it[1], it[0], NULL); | ||
249 | 27 | it += g_strv_length ((gchar **) it) + 1; | ||
250 | 28 | } | ||
251 | 29 | } | ||
252 | 30 | diff --git a/shell/menus.ui b/shell/menus.ui | ||
253 | 31 | index c3006f8..1d9a32e 100644 | ||
254 | 32 | --- a/shell/menus.ui | ||
255 | 33 | +++ b/shell/menus.ui | ||
256 | 34 | @@ -23,6 +23,7 @@ | ||
257 | 35 | <item> | ||
258 | 36 | <attribute name="label" translatable="yes">_Open</attribute> | ||
259 | 37 | <attribute name="action">app.open</attribute> | ||
260 | 38 | + <attribute name="accel"><Ctrl>O</attribute> | ||
261 | 39 | </item> | ||
262 | 40 | </section> | ||
263 | 41 | <section> | ||
264 | 42 | @@ -33,6 +34,7 @@ | ||
265 | 43 | <item> | ||
266 | 44 | <attribute name="label" translatable="yes">_Help</attribute> | ||
267 | 45 | <attribute name="action">app.help</attribute> | ||
268 | 46 | + <attribute name="accel">F1</attribute> | ||
269 | 47 | </item> | ||
270 | 48 | </section> | ||
271 | 49 | </menu> | ||
272 | 50 | @@ -52,36 +54,43 @@ | ||
273 | 51 | <item> | ||
274 | 52 | <attribute name="label" translatable="yes">Side _Pane</attribute> | ||
275 | 53 | <attribute name="action">win.show-side-pane</attribute> | ||
276 | 54 | + <attribute name="accel">F9</attribute> | ||
277 | 55 | </item> | ||
278 | 56 | </section> | ||
279 | 57 | <section> | ||
280 | 58 | <item> | ||
281 | 59 | <attribute name="label" translatable="yes">_Fullscreen</attribute> | ||
282 | 60 | <attribute name="action">win.fullscreen</attribute> | ||
283 | 61 | + <attribute name="accel">F11</attribute> | ||
284 | 62 | </item> | ||
285 | 63 | <item> | ||
286 | 64 | <attribute name="label" translatable="yes">Pre_sentation</attribute> | ||
287 | 65 | <attribute name="action">win.presentation</attribute> | ||
288 | 66 | + <attribute name="accel">F5</attribute> | ||
289 | 67 | </item> | ||
290 | 68 | </section> | ||
291 | 69 | <section> | ||
292 | 70 | <item> | ||
293 | 71 | <attribute name="label" translatable="yes">Rotate _Left</attribute> | ||
294 | 72 | <attribute name="action">win.rotate-left</attribute> | ||
295 | 73 | + <attribute name="accel"><Ctrl>Left</attribute> | ||
296 | 74 | </item> | ||
297 | 75 | <item> | ||
298 | 76 | <attribute name="label" translatable="yes">Rotate _Right</attribute> | ||
299 | 77 | <attribute name="action">win.rotate-right</attribute> | ||
300 | 78 | + <attribute name="accel"><Ctrl>Right</attribute> | ||
301 | 79 | </item> | ||
302 | 80 | </section> | ||
303 | 81 | <section> | ||
304 | 82 | <item> | ||
305 | 83 | <attribute name="label" translatable="yes">Zoom _In</attribute> | ||
306 | 84 | <attribute name="action">win.zoom-in</attribute> | ||
307 | 85 | + <attribute name="accel"><Ctrl>plus</attribute> | ||
308 | 86 | </item> | ||
309 | 87 | <item> | ||
310 | 88 | <attribute name="label" translatable="yes">Zoom _Out</attribute> | ||
311 | 89 | <attribute name="action">win.zoom-out</attribute> | ||
312 | 90 | + <attribute name="accel"><Ctrl>minus</attribute> | ||
313 | 91 | </item> | ||
314 | 92 | </section> | ||
315 | 93 | <section> | ||
316 | 94 | @@ -92,12 +101,14 @@ | ||
317 | 95 | <item> | ||
318 | 96 | <attribute name="label" translatable="yes">_Inverted Colors</attribute> | ||
319 | 97 | <attribute name="action">win.inverted-colors</attribute> | ||
320 | 98 | + <attribute name="accel"><Ctrl>I</attribute> | ||
321 | 99 | </item> | ||
322 | 100 | </section> | ||
323 | 101 | <section> | ||
324 | 102 | <item> | ||
325 | 103 | <attribute name="label" translatable="yes">_Reload</attribute> | ||
326 | 104 | <attribute name="action">win.reload</attribute> | ||
327 | 105 | + <attribute name="accel"><Ctrl>R</attribute> | ||
328 | 106 | </item> | ||
329 | 107 | </section> | ||
330 | 108 | </menu> | ||
331 | 109 | @@ -107,10 +118,12 @@ | ||
332 | 110 | <item> | ||
333 | 111 | <attribute name="label" translatable="yes">_Open…</attribute> | ||
334 | 112 | <attribute name="action">app.open</attribute> | ||
335 | 113 | + <attribute name="accel"><Ctrl>O</attribute> | ||
336 | 114 | </item> | ||
337 | 115 | <item> | ||
338 | 116 | <attribute name="label" translatable="yes">Op_en a Copy</attribute> | ||
339 | 117 | <attribute name="action">win.open-copy</attribute> | ||
340 | 118 | + <attribute name="accel"><Ctrl>N</attribute> | ||
341 | 119 | </item> | ||
342 | 120 | <item> | ||
343 | 121 | <attribute name="label" translatable="yes">_Recent</attribute> | ||
344 | 122 | @@ -120,6 +133,7 @@ | ||
345 | 123 | <item> | ||
346 | 124 | <attribute name="label" translatable="yes">_Save a Copy…</attribute> | ||
347 | 125 | <attribute name="action">win.save-copy</attribute> | ||
348 | 126 | + <attribute name="accel"><Ctrl>S</attribute> | ||
349 | 127 | </item> | ||
350 | 128 | <item> | ||
351 | 129 | <attribute name="label" translatable="yes">Send _To…</attribute> | ||
352 | 130 | @@ -132,22 +146,26 @@ | ||
353 | 131 | <item> | ||
354 | 132 | <attribute name="label" translatable="yes">_Print…</attribute> | ||
355 | 133 | <attribute name="action">win.print</attribute> | ||
356 | 134 | + <attribute name="accel"><Ctrl>P</attribute> | ||
357 | 135 | </item> | ||
358 | 136 | </section> | ||
359 | 137 | <section> | ||
360 | 138 | <item> | ||
361 | 139 | <attribute name="label" translatable="yes">P_roperties…</attribute> | ||
362 | 140 | <attribute name="action">win.show-properties</attribute> | ||
363 | 141 | + <attribute name="accel"><Alt>Return</attribute> | ||
364 | 142 | </item> | ||
365 | 143 | </section> | ||
366 | 144 | <section> | ||
367 | 145 | <item> | ||
368 | 146 | <attribute name="label" translatable="yes">_Copy</attribute> | ||
369 | 147 | <attribute name="action">win.copy</attribute> | ||
370 | 148 | + <attribute name="accel"><Ctrl>C</attribute> | ||
371 | 149 | </item> | ||
372 | 150 | <item> | ||
373 | 151 | <attribute name="label" translatable="yes">Select _All</attribute> | ||
374 | 152 | <attribute name="action">win.select-all</attribute> | ||
375 | 153 | + <attribute name="accel"><Ctrl>A</attribute> | ||
376 | 154 | </item> | ||
377 | 155 | </section> | ||
378 | 156 | <section> | ||
379 | 157 | @@ -160,22 +178,26 @@ | ||
380 | 158 | <item> | ||
381 | 159 | <attribute name="label" translatable="yes">_First Page</attribute> | ||
382 | 160 | <attribute name="action">win.go-first-page</attribute> | ||
383 | 161 | + <attribute name="accel"><Ctrl>Home</attribute> | ||
384 | 162 | </item> | ||
385 | 163 | <item> | ||
386 | 164 | <attribute name="label" translatable="yes">_Last Page</attribute> | ||
387 | 165 | <attribute name="action">win.go-last-page</attribute> | ||
388 | 166 | + <attribute name="accel"><Ctrl>End</attribute> | ||
389 | 167 | </item> | ||
390 | 168 | </section> | ||
391 | 169 | <section id="bookmarks"> | ||
392 | 170 | <item> | ||
393 | 171 | <attribute name="label" translatable="yes">_Add Bookmark</attribute> | ||
394 | 172 | <attribute name="action">win.add-bookmark</attribute> | ||
395 | 173 | + <attribute name="accel"><Ctrl>D</attribute> | ||
396 | 174 | </item> | ||
397 | 175 | </section> | ||
398 | 176 | <section> | ||
399 | 177 | <item> | ||
400 | 178 | <attribute name="label" translatable="yes">_Close</attribute> | ||
401 | 179 | <attribute name="action">win.close</attribute> | ||
402 | 180 | + <attribute name="accel"><Ctrl>W</attribute> | ||
403 | 181 | </item> | ||
404 | 182 | </section> | ||
405 | 183 | <section> | ||
406 | 184 | -- | ||
407 | 185 | 1.9.rc1 | ||
408 | 186 | |||
409 | 0 | 187 | ||
410 | === removed file 'debian/patches/0002-Remove-gtk_application_set_accels_for_actions.patch' | |||
411 | --- debian/patches/0002-Remove-gtk_application_set_accels_for_actions.patch 2014-02-07 14:03:40 +0000 | |||
412 | +++ debian/patches/0002-Remove-gtk_application_set_accels_for_actions.patch 1970-01-01 00:00:00 +0000 | |||
413 | @@ -1,239 +0,0 @@ | |||
414 | 1 | From 0720979bf347d25bb9a3ff1fc0660e3ca6dcb259 Mon Sep 17 00:00:00 2001 | ||
415 | 2 | From: Lars Uebernickel <lars.uebernickel@canonical.com> | ||
416 | 3 | Date: Mon, 3 Feb 2014 11:50:56 +0000 | ||
417 | 4 | Subject: [PATCH 2/2] Remove gtk_application_set_accels_for_actions() | ||
418 | 5 | |||
419 | 6 | To make evince build with gtk+ 3.10. | ||
420 | 7 | --- | ||
421 | 8 | shell/ev-application.c | 45 --------------------------------------------- | ||
422 | 9 | 1 file changed, 45 deletions(-) | ||
423 | 10 | |||
424 | 11 | Index: evince-3.10.3/shell/ev-application.c | ||
425 | 12 | =================================================================== | ||
426 | 13 | --- evince-3.10.3.orig/shell/ev-application.c 2014-02-07 14:01:07.235558100 +0000 | ||
427 | 14 | +++ evince-3.10.3/shell/ev-application.c 2014-02-07 14:01:07.231558100 +0000 | ||
428 | 15 | @@ -1104,47 +1104,9 @@ | ||
429 | 16 | { "help", app_help_cb, NULL, NULL, NULL }, | ||
430 | 17 | }; | ||
431 | 18 | |||
432 | 19 | - const gchar *action_accels[] = { | ||
433 | 20 | - "app.open", "<Ctrl>O", NULL, | ||
434 | 21 | - "win.open-copy", "<Ctrl>N", NULL, | ||
435 | 22 | - "win.save-copy", "<Ctrl>S", NULL, | ||
436 | 23 | - "win.print", "<Ctrl>P", NULL, | ||
437 | 24 | - "win.copy", "<Ctrl>C", "<Ctrl>Insert", NULL, | ||
438 | 25 | - "win.select-all", "<Ctrl>A", NULL, | ||
439 | 26 | - "win.save-settings", "<Ctrl>T", NULL, | ||
440 | 27 | - "win.go-first-page", "<Ctrl>Home", NULL, | ||
441 | 28 | - "win.go-last-page", "<Ctrl>End", NULL, | ||
442 | 29 | - "win.add-bookmark", "<Ctrl>D", NULL, | ||
443 | 30 | - "win.close", "<Ctrl>W", NULL, | ||
444 | 31 | - "win.escape", "Escape", NULL, | ||
445 | 32 | - "win.find", "<Ctrl>F", "slash", NULL, | ||
446 | 33 | - "win.find-next", "<Ctrl>G", NULL, | ||
447 | 34 | - "win.find-previous", "<Ctrl><Shift>G", NULL, | ||
448 | 35 | - "win.select-page", "<Ctrl>L", NULL, | ||
449 | 36 | - "win.go-backward", "<Shift>Page_Up", NULL, | ||
450 | 37 | - "win.go-forward", "<Shift>Page_Down", NULL, | ||
451 | 38 | - "win.go-next-page", "n", NULL, | ||
452 | 39 | - "win.go-previous-page", "p", NULL, | ||
453 | 40 | - "win.sizing-mode::fit-page", "f", NULL, | ||
454 | 41 | - "win.sizing-mode::fit-width", "w", NULL, | ||
455 | 42 | - "win.open-menu", "F10", NULL, | ||
456 | 43 | - "win.caret-navigation", "F7", NULL, | ||
457 | 44 | - "win.zoom-in", "plus", "<Ctrl>plus", "KP_Add", "<Ctrl>KP_Add", NULL, | ||
458 | 45 | - "win.zoom-out", "minus", "<Ctrl>minus", "KP_Subtract", "<Ctrl>KP_Subtract", NULL, | ||
459 | 46 | - "win.show-side-pane", "F9", NULL, | ||
460 | 47 | - "win.fullscreen", "F11", NULL, | ||
461 | 48 | - "win.presentation", "F5", NULL, | ||
462 | 49 | - "win.rotate-left", "<Ctrl>Left", NULL, | ||
463 | 50 | - "win.rotate-right", "<Ctrl>Right", NULL, | ||
464 | 51 | - "win.inverted-colors", "<Ctrl>I", NULL, | ||
465 | 52 | - "win.reload", "<Ctrl>R", NULL, | ||
466 | 53 | - NULL | ||
467 | 54 | - }; | ||
468 | 55 | - | ||
469 | 56 | EvApplication *application = EV_APPLICATION (gapplication); | ||
470 | 57 | GtkBuilder *builder; | ||
471 | 58 | GError *error = NULL; | ||
472 | 59 | - const gchar **it; | ||
473 | 60 | |||
474 | 61 | G_APPLICATION_CLASS (ev_application_parent_class)->startup (gapplication); | ||
475 | 62 | |||
476 | 63 | @@ -1184,18 +1146,15 @@ | ||
477 | 64 | gtk_builder_add_from_resource (builder, "/org/gnome/evince/shell/ui/menus.ui", &error); | ||
478 | 65 | g_assert_no_error (error); | ||
479 | 66 | |||
480 | 67 | + gtk_application_add_accelerator (GTK_APPLICATION (application), "<Ctrl>F", "win.find", NULL); | ||
481 | 68 | + | ||
482 | 69 | gtk_application_set_app_menu (GTK_APPLICATION (application), | ||
483 | 70 | G_MENU_MODEL (gtk_builder_get_object (builder, "appmenu"))); | ||
484 | 71 | } | ||
485 | 72 | |||
486 | 73 | - g_object_unref (builder); | ||
487 | 74 | + gtk_application_add_accelerator (GTK_APPLICATION (application), "F7", "win.caret-navigation", NULL); | ||
488 | 75 | |||
489 | 76 | - it = action_accels; | ||
490 | 77 | - while (it[0]) | ||
491 | 78 | - { | ||
492 | 79 | - gtk_application_set_accels_for_action (GTK_APPLICATION (application), it[0], &it[1]); | ||
493 | 80 | - it += g_strv_length ((gchar **) it) + 1; | ||
494 | 81 | - } | ||
495 | 82 | + g_object_unref (builder); | ||
496 | 83 | } | ||
497 | 84 | |||
498 | 85 | static void | ||
499 | 86 | Index: evince-3.10.3/shell/menus.ui | ||
500 | 87 | =================================================================== | ||
501 | 88 | --- evince-3.10.3.orig/shell/menus.ui 2014-02-07 14:01:07.235558100 +0000 | ||
502 | 89 | +++ evince-3.10.3/shell/menus.ui 2014-02-07 14:02:04.683556047 +0000 | ||
503 | 90 | @@ -23,6 +23,7 @@ | ||
504 | 91 | <item> | ||
505 | 92 | <attribute name="label" translatable="yes">_Open</attribute> | ||
506 | 93 | <attribute name="action">app.open</attribute> | ||
507 | 94 | + <attribute name="accel"><Ctrl>O</attribute> | ||
508 | 95 | </item> | ||
509 | 96 | </section> | ||
510 | 97 | <section> | ||
511 | 98 | @@ -33,6 +34,7 @@ | ||
512 | 99 | <item> | ||
513 | 100 | <attribute name="label" translatable="yes">_Help</attribute> | ||
514 | 101 | <attribute name="action">app.help</attribute> | ||
515 | 102 | + <attribute name="accel">F1</attribute> | ||
516 | 103 | </item> | ||
517 | 104 | </section> | ||
518 | 105 | </menu> | ||
519 | 106 | @@ -52,36 +54,43 @@ | ||
520 | 107 | <item> | ||
521 | 108 | <attribute name="label" translatable="yes">Side _Pane</attribute> | ||
522 | 109 | <attribute name="action">win.show-side-pane</attribute> | ||
523 | 110 | + <attribute name="accel">F9</attribute> | ||
524 | 111 | </item> | ||
525 | 112 | </section> | ||
526 | 113 | <section> | ||
527 | 114 | <item> | ||
528 | 115 | <attribute name="label" translatable="yes">_Fullscreen</attribute> | ||
529 | 116 | <attribute name="action">win.fullscreen</attribute> | ||
530 | 117 | + <attribute name="accel">F11</attribute> | ||
531 | 118 | </item> | ||
532 | 119 | <item> | ||
533 | 120 | <attribute name="label" translatable="yes">Pre_sentation</attribute> | ||
534 | 121 | <attribute name="action">win.presentation</attribute> | ||
535 | 122 | + <attribute name="accel">F5</attribute> | ||
536 | 123 | </item> | ||
537 | 124 | </section> | ||
538 | 125 | <section> | ||
539 | 126 | <item> | ||
540 | 127 | <attribute name="label" translatable="yes">Rotate _Left</attribute> | ||
541 | 128 | <attribute name="action">win.rotate-left</attribute> | ||
542 | 129 | + <attribute name="accel"><Ctrl>Left</attribute> | ||
543 | 130 | </item> | ||
544 | 131 | <item> | ||
545 | 132 | <attribute name="label" translatable="yes">Rotate _Right</attribute> | ||
546 | 133 | <attribute name="action">win.rotate-right</attribute> | ||
547 | 134 | + <attribute name="accel"><Ctrl>Right</attribute> | ||
548 | 135 | </item> | ||
549 | 136 | </section> | ||
550 | 137 | <section> | ||
551 | 138 | <item> | ||
552 | 139 | <attribute name="label" translatable="yes">Zoom _In</attribute> | ||
553 | 140 | <attribute name="action">win.zoom-in</attribute> | ||
554 | 141 | + <attribute name="accel"><Ctrl>plus</attribute> | ||
555 | 142 | </item> | ||
556 | 143 | <item> | ||
557 | 144 | <attribute name="label" translatable="yes">Zoom _Out</attribute> | ||
558 | 145 | <attribute name="action">win.zoom-out</attribute> | ||
559 | 146 | + <attribute name="accel"><Ctrl>minus</attribute> | ||
560 | 147 | </item> | ||
561 | 148 | </section> | ||
562 | 149 | <section> | ||
563 | 150 | @@ -92,12 +101,14 @@ | ||
564 | 151 | <item> | ||
565 | 152 | <attribute name="label" translatable="yes">_Inverted Colors</attribute> | ||
566 | 153 | <attribute name="action">win.inverted-colors</attribute> | ||
567 | 154 | + <attribute name="accel"><Ctrl>I</attribute> | ||
568 | 155 | </item> | ||
569 | 156 | </section> | ||
570 | 157 | <section> | ||
571 | 158 | <item> | ||
572 | 159 | <attribute name="label" translatable="yes">_Reload</attribute> | ||
573 | 160 | <attribute name="action">win.reload</attribute> | ||
574 | 161 | + <attribute name="accel"><Ctrl>R</attribute> | ||
575 | 162 | </item> | ||
576 | 163 | </section> | ||
577 | 164 | </menu> | ||
578 | 165 | @@ -107,10 +118,12 @@ | ||
579 | 166 | <item> | ||
580 | 167 | <attribute name="label" translatable="yes">_Open…</attribute> | ||
581 | 168 | <attribute name="action">app.open</attribute> | ||
582 | 169 | + <attribute name="accel"><Ctrl>O</attribute> | ||
583 | 170 | </item> | ||
584 | 171 | <item> | ||
585 | 172 | <attribute name="label" translatable="yes">Op_en a Copy</attribute> | ||
586 | 173 | <attribute name="action">win.open-copy</attribute> | ||
587 | 174 | + <attribute name="accel"><Ctrl>N</attribute> | ||
588 | 175 | </item> | ||
589 | 176 | <item> | ||
590 | 177 | <attribute name="label" translatable="yes">_Recent</attribute> | ||
591 | 178 | @@ -120,6 +133,7 @@ | ||
592 | 179 | <item> | ||
593 | 180 | <attribute name="label" translatable="yes">_Save a Copy…</attribute> | ||
594 | 181 | <attribute name="action">win.save-copy</attribute> | ||
595 | 182 | + <attribute name="accel"><Ctrl>S</attribute> | ||
596 | 183 | </item> | ||
597 | 184 | <item> | ||
598 | 185 | <attribute name="label" translatable="yes">Send _To…</attribute> | ||
599 | 186 | @@ -132,22 +146,26 @@ | ||
600 | 187 | <item> | ||
601 | 188 | <attribute name="label" translatable="yes">_Print…</attribute> | ||
602 | 189 | <attribute name="action">win.print</attribute> | ||
603 | 190 | + <attribute name="accel"><Ctrl>P</attribute> | ||
604 | 191 | </item> | ||
605 | 192 | </section> | ||
606 | 193 | <section> | ||
607 | 194 | <item> | ||
608 | 195 | <attribute name="label" translatable="yes">P_roperties…</attribute> | ||
609 | 196 | <attribute name="action">win.show-properties</attribute> | ||
610 | 197 | + <attribute name="accel"><Alt>Return</attribute> | ||
611 | 198 | </item> | ||
612 | 199 | </section> | ||
613 | 200 | <section> | ||
614 | 201 | <item> | ||
615 | 202 | <attribute name="label" translatable="yes">_Copy</attribute> | ||
616 | 203 | <attribute name="action">win.copy</attribute> | ||
617 | 204 | + <attribute name="accel"><Ctrl>C</attribute> | ||
618 | 205 | </item> | ||
619 | 206 | <item> | ||
620 | 207 | <attribute name="label" translatable="yes">Select _All</attribute> | ||
621 | 208 | <attribute name="action">win.select-all</attribute> | ||
622 | 209 | + <attribute name="accel"><Ctrl>A</attribute> | ||
623 | 210 | </item> | ||
624 | 211 | </section> | ||
625 | 212 | <section> | ||
626 | 213 | @@ -160,22 +178,26 @@ | ||
627 | 214 | <item> | ||
628 | 215 | <attribute name="label" translatable="yes">_First Page</attribute> | ||
629 | 216 | <attribute name="action">win.go-first-page</attribute> | ||
630 | 217 | + <attribute name="accel"><Ctrl>Home</attribute> | ||
631 | 218 | </item> | ||
632 | 219 | <item> | ||
633 | 220 | <attribute name="label" translatable="yes">_Last Page</attribute> | ||
634 | 221 | <attribute name="action">win.go-last-page</attribute> | ||
635 | 222 | + <attribute name="accel"><Ctrl>End</attribute> | ||
636 | 223 | </item> | ||
637 | 224 | </section> | ||
638 | 225 | <section id="bookmarks"> | ||
639 | 226 | <item> | ||
640 | 227 | <attribute name="label" translatable="yes">_Add Bookmark</attribute> | ||
641 | 228 | <attribute name="action">win.add-bookmark</attribute> | ||
642 | 229 | + <attribute name="accel"><Ctrl>D</attribute> | ||
643 | 230 | </item> | ||
644 | 231 | </section> | ||
645 | 232 | <section> | ||
646 | 233 | <item> | ||
647 | 234 | <attribute name="label" translatable="yes">_Close</attribute> | ||
648 | 235 | <attribute name="action">win.close</attribute> | ||
649 | 236 | + <attribute name="accel"><Ctrl>W</attribute> | ||
650 | 237 | </item> | ||
651 | 238 | </section> | ||
652 | 239 | <section> | ||
653 | 240 | 0 | ||
654 | === modified file 'debian/patches/series' | |||
655 | --- debian/patches/series 2014-02-04 15:40:21 +0000 | |||
656 | +++ debian/patches/series 2014-02-10 17:52:12 +0000 | |||
657 | @@ -1,4 +1,4 @@ | |||
658 | 1 | 11_grip_gestures.patch | 1 | 11_grip_gestures.patch |
659 | 2 | git_Don-t-allow-Send-To-when-there-is-no-mail-client-ava.patch | 2 | git_Don-t-allow-Send-To-when-there-is-no-mail-client-ava.patch |
660 | 3 | 0001-Port-to-GMenuModel-and-add-menu-bar.patch | 3 | 0001-Port-to-GMenuModel-and-add-menu-bar.patch |
662 | 4 | 0002-Remove-gtk_application_set_accels_for_actions.patch | 4 | 0002-Don-t-use-gtk_application_set_accels_for_action.patch |
thanks!