Merge lp:~artem-anufrij/scratch/Bugfix-1386443 into lp:~elementary-apps/scratch/scratch
- Bugfix-1386443
- Merge into scratch
Proposed by
Artem Anufrij
Status: | Merged | ||||
---|---|---|---|---|---|
Approved by: | Danielle Foré | ||||
Approved revision: | 1401 | ||||
Merged at revision: | 1399 | ||||
Proposed branch: | lp:~artem-anufrij/scratch/Bugfix-1386443 | ||||
Merge into: | lp:~elementary-apps/scratch/scratch | ||||
Diff against target: |
381 lines (+74/-74) 2 files modified
plugins/pastebin/pastebin_dialog.vala (+57/-57) src/MainWindow.vala (+17/-17) |
||||
To merge this branch: | bzr merge lp:~artem-anufrij/scratch/Bugfix-1386443 | ||||
Related bugs: |
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Danielle Foré | Needs Fixing | ||
Review via email: mp+240054@code.launchpad.net |
Commit message
Gtk.Stock replaced with named icons
Description of the change
Gtk.Stock replaced with named icons
To post a comment you must log in.
- 1399. By artem-anufrij
-
clipboard-icon
Revision history for this message
Danielle Foré (danrabbit) wrote : | # |
Revision history for this message
Danielle Foré (danrabbit) wrote : | # |
in plugins/
Revision history for this message
Danielle Foré (danrabbit) wrote : | # |
Gtk.Stock.Quit -> application-exit
Gtk.Stock.
Gtk.Stock.
review:
Needs Fixing
Revision history for this message
Artem Anufrij (artem-anufrij) wrote : | # |
Daniel,
done...
Revision history for this message
Danielle Foré (danrabbit) wrote : | # |
please revert changing from spaces to tabs
review:
Needs Fixing
Preview Diff
[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1 | === modified file 'plugins/pastebin/pastebin_dialog.vala' | |||
2 | --- plugins/pastebin/pastebin_dialog.vala 2014-06-25 10:20:01 +0000 | |||
3 | +++ plugins/pastebin/pastebin_dialog.vala 2014-10-29 21:26:30 +0000 | |||
4 | @@ -1,21 +1,21 @@ | |||
5 | 1 | // -*- Mode: vala; indent-tabs-mode: nil; tab-width: 4 -*- | 1 | // -*- Mode: vala; indent-tabs-mode: nil; tab-width: 4 -*- |
6 | 2 | /*** | 2 | /*** |
7 | 3 | BEGIN LICENSE | 3 | BEGIN LICENSE |
9 | 4 | 4 | ||
10 | 5 | Copyright (C) 2011-2012 Giulio Collura <random.cpp@gmail.com> | 5 | Copyright (C) 2011-2012 Giulio Collura <random.cpp@gmail.com> |
13 | 6 | This program is free software: you can redistribute it and/or modify it | 6 | This program is free software: you can redistribute it and/or modify it |
14 | 7 | under the terms of the GNU Lesser General Public License version 3, as published | 7 | under the terms of the GNU Lesser General Public License version 3, as published |
15 | 8 | by the Free Software Foundation. | 8 | by the Free Software Foundation. |
20 | 9 | 9 | ||
21 | 10 | This program is distributed in the hope that it will be useful, but | 10 | This program is distributed in the hope that it will be useful, but |
22 | 11 | WITHOUT ANY WARRANTY; without even the implied warranties of | 11 | WITHOUT ANY WARRANTY; without even the implied warranties of |
23 | 12 | MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR | 12 | MERCHANTABILITY, SATISFACTORY QUALITY, or FITNESS FOR A PARTICULAR |
24 | 13 | PURPOSE. See the GNU General Public License for more details. | 13 | PURPOSE. See the GNU General Public License for more details. |
30 | 14 | 14 | ||
31 | 15 | You should have received a copy of the GNU General Public License along | 15 | You should have received a copy of the GNU General Public License along |
32 | 16 | with this program. If not, see <http://www.gnu.org/licenses/> | 16 | with this program. If not, see <http://www.gnu.org/licenses/> |
33 | 17 | 17 | ||
34 | 18 | END LICENSE | 18 | END LICENSE |
35 | 19 | ***/ | 19 | ***/ |
36 | 20 | 20 | ||
37 | 21 | using Gtk; | 21 | using Gtk; |
38 | @@ -25,7 +25,7 @@ | |||
39 | 25 | namespace Scratch.Dialogs { | 25 | namespace Scratch.Dialogs { |
40 | 26 | 26 | ||
41 | 27 | public class PasteBinDialog : Granite.Widgets.LightWindow { | 27 | public class PasteBinDialog : Granite.Widgets.LightWindow { |
43 | 28 | 28 | ||
44 | 29 | public string[,] languages = { | 29 | public string[,] languages = { |
45 | 30 | //if default, code, desc, scratch-equivalent | 30 | //if default, code, desc, scratch-equivalent |
46 | 31 | {"n", "4cs", "4CS", ""}, | 31 | {"n", "4cs", "4CS", ""}, |
47 | @@ -228,16 +228,16 @@ | |||
48 | 228 | {"n", "yaml", "YAML", ""}, | 228 | {"n", "yaml", "YAML", ""}, |
49 | 229 | {"n", "z80", "Z80 Assembler", ""}, | 229 | {"n", "z80", "Z80 Assembler", ""}, |
50 | 230 | {"n", "zxbasic", "ZXBasic", ""} }; | 230 | {"n", "zxbasic", "ZXBasic", ""} }; |
52 | 231 | 231 | ||
53 | 232 | private Scratch.Services.Document doc; | 232 | private Scratch.Services.Document doc; |
55 | 233 | 233 | ||
56 | 234 | private Box content; | 234 | private Box content; |
57 | 235 | private Box padding; | 235 | private Box padding; |
58 | 236 | 236 | ||
59 | 237 | private Entry name_entry; | 237 | private Entry name_entry; |
60 | 238 | private ComboBoxText expiry_combo; | 238 | private ComboBoxText expiry_combo; |
61 | 239 | private CheckButton private_check; | 239 | private CheckButton private_check; |
63 | 240 | 240 | ||
64 | 241 | private ComboBoxText format_combo; | 241 | private ComboBoxText format_combo; |
65 | 242 | private Window format_others_win; | 242 | private Window format_others_win; |
66 | 243 | private TreeView format_others_view; | 243 | private TreeView format_others_view; |
67 | @@ -245,15 +245,15 @@ | |||
68 | 245 | 245 | ||
69 | 246 | private Button send_button; | 246 | private Button send_button; |
70 | 247 | 247 | ||
72 | 248 | 248 | ||
73 | 249 | public PasteBinDialog (Gtk.Window? parent, Scratch.Services.Document doc) { | 249 | public PasteBinDialog (Gtk.Window? parent, Scratch.Services.Document doc) { |
76 | 250 | this.doc = doc; | 250 | this.doc = doc; |
77 | 251 | 251 | ||
78 | 252 | if (parent != null) | 252 | if (parent != null) |
79 | 253 | this.set_transient_for (parent); | 253 | this.set_transient_for (parent); |
80 | 254 | this.title = _("Share via PasteBin"); | 254 | this.title = _("Share via PasteBin"); |
81 | 255 | this.type_hint = Gdk.WindowTypeHint.DIALOG; | 255 | this.type_hint = Gdk.WindowTypeHint.DIALOG; |
83 | 256 | 256 | ||
84 | 257 | create_dialog (); | 257 | create_dialog (); |
85 | 258 | 258 | ||
86 | 259 | send_button.clicked.connect (send_button_clicked); | 259 | send_button.clicked.connect (send_button_clicked); |
87 | @@ -279,26 +279,26 @@ | |||
88 | 279 | format_combo = new ComboBoxText(); | 279 | format_combo = new ComboBoxText(); |
89 | 280 | var format_button = new Button.with_label (_("Others...")); | 280 | var format_button = new Button.with_label (_("Others...")); |
90 | 281 | format_button.clicked.connect (format_button_clicked); | 281 | format_button.clicked.connect (format_button_clicked); |
92 | 282 | 282 | ||
93 | 283 | //populate combo box | 283 | //populate combo box |
94 | 284 | var sel_lang = doc.get_language_id (); | 284 | var sel_lang = doc.get_language_id (); |
95 | 285 | for (var i=0; i < languages.length[0]; i++) { | 285 | for (var i=0; i < languages.length[0]; i++) { |
97 | 286 | 286 | ||
98 | 287 | //insert all languages that are in the scratch combo, and also those that are marked with "y" | 287 | //insert all languages that are in the scratch combo, and also those that are marked with "y" |
99 | 288 | if ( (languages[i, 3] != "") || (languages[i, 0] == "y")) format_combo.append (languages[i, 1], languages[i, 2]); | 288 | if ( (languages[i, 3] != "") || (languages[i, 0] == "y")) format_combo.append (languages[i, 1], languages[i, 2]); |
100 | 289 | //if the inserted language is selected in scratch combo, select it as default | 289 | //if the inserted language is selected in scratch combo, select it as default |
101 | 290 | if ( languages[i, 3] == sel_lang ) format_combo.set_active_id(languages[i, 1]); | 290 | if ( languages[i, 3] == sel_lang ) format_combo.set_active_id(languages[i, 1]); |
102 | 291 | } | 291 | } |
104 | 292 | 292 | ||
105 | 293 | //if no language is selected, select text as default | 293 | //if no language is selected, select text as default |
106 | 294 | if (format_combo.get_active_id() == null) format_combo.set_active_id("text"); | 294 | if (format_combo.get_active_id() == null) format_combo.set_active_id("text"); |
109 | 295 | 295 | ||
110 | 296 | 296 | ||
111 | 297 | var format_box = new Box (Gtk.Orientation.HORIZONTAL, 28); | 297 | var format_box = new Box (Gtk.Orientation.HORIZONTAL, 28); |
112 | 298 | format_box.pack_start (format_label); | 298 | format_box.pack_start (format_label); |
113 | 299 | format_box.pack_start (format_combo); | 299 | format_box.pack_start (format_combo); |
114 | 300 | format_box.pack_start (format_button); | 300 | format_box.pack_start (format_button); |
116 | 301 | 301 | ||
117 | 302 | 302 | ||
118 | 303 | expiry_combo = new ComboBoxText (); | 303 | expiry_combo = new ComboBoxText (); |
119 | 304 | populate_expiry_combo (); | 304 | populate_expiry_combo (); |
120 | @@ -329,77 +329,77 @@ | |||
121 | 329 | read_settings (); | 329 | read_settings (); |
122 | 330 | 330 | ||
123 | 331 | show_all (); | 331 | show_all (); |
125 | 332 | 332 | ||
126 | 333 | send_button.grab_focus (); | 333 | send_button.grab_focus (); |
127 | 334 | 334 | ||
128 | 335 | } | 335 | } |
129 | 336 | 336 | ||
130 | 337 | 337 | ||
131 | 338 | private void format_button_clicked() { | 338 | private void format_button_clicked() { |
133 | 339 | 339 | ||
134 | 340 | format_others_win = new Window(); | 340 | format_others_win = new Window(); |
135 | 341 | format_others_win.set_modal(true); | 341 | format_others_win.set_modal(true); |
136 | 342 | format_others_win.set_title(_("Other formats")); | 342 | format_others_win.set_title(_("Other formats")); |
137 | 343 | format_others_win.set_default_size (250, 300); | 343 | format_others_win.set_default_size (250, 300); |
139 | 344 | 344 | ||
140 | 345 | format_others_view = new TreeView(); | 345 | format_others_view = new TreeView(); |
141 | 346 | format_others_view.set_headers_visible(false); | 346 | format_others_view.set_headers_visible(false); |
142 | 347 | format_store = new ListStore (2, typeof (string), typeof (string)); | 347 | format_store = new ListStore (2, typeof (string), typeof (string)); |
143 | 348 | format_others_view.set_model (format_store); | 348 | format_others_view.set_model (format_store); |
145 | 349 | format_others_view.insert_column_with_attributes (-1, "Language", new CellRendererText (), "text", 0); | 349 | format_others_view.insert_column_with_attributes (-1, "Language", new CellRendererText (), "text", 0); |
146 | 350 | 350 | ||
147 | 351 | TreeIter iter; | 351 | TreeIter iter; |
149 | 352 | for (var i=0; i < languages.length[0]; i++) { | 352 | for (var i=0; i < languages.length[0]; i++) { |
150 | 353 | format_store.append (out iter); | 353 | format_store.append (out iter); |
151 | 354 | format_store.set (iter, 0, languages[i, 2], 1, languages[i, 1]); | 354 | format_store.set (iter, 0, languages[i, 2], 1, languages[i, 1]); |
152 | 355 | } | 355 | } |
153 | 356 | 356 | ||
154 | 357 | var format_others_scroll = new ScrolledWindow(null, null); | 357 | var format_others_scroll = new ScrolledWindow(null, null); |
155 | 358 | format_others_scroll.add(format_others_view); | 358 | format_others_scroll.add(format_others_view); |
160 | 359 | 359 | ||
161 | 360 | var format_others_ok = new Button.from_stock ("gtk-ok"); | 360 | var format_others_ok = new Button.from_icon_name ("dialog-ok", IconSize.BUTTON); |
162 | 361 | format_others_ok.clicked.connect (format_others_ok_clicked); | 361 | format_others_ok.clicked.connect (format_others_ok_clicked); |
163 | 362 | var format_others_cancel = new Button.from_stock ("gtk-cancel"); | 362 | var format_others_cancel = new Button.from_icon_name ("dialog-cancel", IconSize.BUTTON); |
164 | 363 | format_others_cancel.clicked.connect (format_others_cancel_clicked); | 363 | format_others_cancel.clicked.connect (format_others_cancel_clicked); |
165 | 364 | var format_others_buttons = new ButtonBox (Orientation.HORIZONTAL); | 364 | var format_others_buttons = new ButtonBox (Orientation.HORIZONTAL); |
166 | 365 | format_others_buttons.set_layout (ButtonBoxStyle.CENTER); | 365 | format_others_buttons.set_layout (ButtonBoxStyle.CENTER); |
167 | 366 | format_others_buttons.pack_start (format_others_cancel); | 366 | format_others_buttons.pack_start (format_others_cancel); |
168 | 367 | format_others_buttons.pack_start (format_others_ok); | 367 | format_others_buttons.pack_start (format_others_ok); |
170 | 368 | 368 | ||
171 | 369 | var format_others_box = new Box (Gtk.Orientation.VERTICAL, 10); | 369 | var format_others_box = new Box (Gtk.Orientation.VERTICAL, 10); |
172 | 370 | format_others_box.pack_start (format_others_scroll); | 370 | format_others_box.pack_start (format_others_scroll); |
175 | 371 | format_others_box.pack_start (format_others_buttons); | 371 | format_others_box.pack_start (format_others_buttons); |
176 | 372 | 372 | ||
177 | 373 | format_others_win.add (format_others_box); | 373 | format_others_win.add (format_others_box); |
178 | 374 | format_others_win.show_all(); | 374 | format_others_win.show_all(); |
180 | 375 | 375 | ||
181 | 376 | } | 376 | } |
183 | 377 | 377 | ||
184 | 378 | private void format_others_cancel_clicked() { | 378 | private void format_others_cancel_clicked() { |
185 | 379 | format_others_win.destroy(); | 379 | format_others_win.destroy(); |
186 | 380 | } | 380 | } |
187 | 381 | 381 | ||
188 | 382 | private void format_others_ok_clicked() { | 382 | private void format_others_ok_clicked() { |
190 | 383 | 383 | ||
191 | 384 | var selection = format_others_view.get_selection (); | 384 | var selection = format_others_view.get_selection (); |
192 | 385 | TreeIter iter; | 385 | TreeIter iter; |
193 | 386 | if (selection.get_selected (null, out iter) == true) { | 386 | if (selection.get_selected (null, out iter) == true) { |
195 | 387 | 387 | ||
196 | 388 | Value lang_name; | 388 | Value lang_name; |
198 | 389 | Value lang_code; | 389 | Value lang_code; |
199 | 390 | format_store.get_value(iter, 0, out lang_name); | 390 | format_store.get_value(iter, 0, out lang_name); |
200 | 391 | format_store.get_value(iter, 1, out lang_code); | 391 | format_store.get_value(iter, 1, out lang_code); |
202 | 392 | 392 | ||
203 | 393 | format_combo.append ((string) lang_code, (string) lang_name); | 393 | format_combo.append ((string) lang_code, (string) lang_name); |
204 | 394 | format_combo.set_active_id((string) lang_code); | 394 | format_combo.set_active_id((string) lang_code); |
206 | 395 | 395 | ||
207 | 396 | } | 396 | } |
209 | 397 | 397 | ||
210 | 398 | format_others_win.destroy(); | 398 | format_others_win.destroy(); |
212 | 399 | 399 | ||
213 | 400 | } | 400 | } |
214 | 401 | 401 | ||
216 | 402 | 402 | ||
217 | 403 | private static Alignment wrap_alignment (Widget widget, int top, int right, | 403 | private static Alignment wrap_alignment (Widget widget, int top, int right, |
218 | 404 | int bottom, int left) { | 404 | int bottom, int left) { |
219 | 405 | 405 | ||
220 | @@ -408,7 +408,7 @@ | |||
221 | 408 | alignment.right_padding = right; | 408 | alignment.right_padding = right; |
222 | 409 | alignment.bottom_padding = bottom; | 409 | alignment.bottom_padding = bottom; |
223 | 410 | alignment.left_padding = left; | 410 | alignment.left_padding = left; |
225 | 411 | 411 | ||
226 | 412 | alignment.add(widget); | 412 | alignment.add(widget); |
227 | 413 | return alignment; | 413 | return alignment; |
228 | 414 | 414 | ||
229 | @@ -450,17 +450,17 @@ | |||
230 | 450 | spinner.hide (); | 450 | spinner.hide (); |
231 | 451 | 451 | ||
232 | 452 | var box = new Box (Gtk.Orientation.VERTICAL, 10); | 452 | var box = new Box (Gtk.Orientation.VERTICAL, 10); |
234 | 453 | 453 | ||
235 | 454 | if (submit_result == 0) { | 454 | if (submit_result == 0) { |
237 | 455 | 455 | ||
238 | 456 | //paste successfully | 456 | //paste successfully |
239 | 457 | var link_button = new LinkButton (link); | 457 | var link_button = new LinkButton (link); |
240 | 458 | box.pack_start (link_button, false, true, 25); | 458 | box.pack_start (link_button, false, true, 25); |
241 | 459 | } else { | 459 | } else { |
243 | 460 | 460 | ||
244 | 461 | //paste error | 461 | //paste error |
245 | 462 | var error_desc = new StringBuilder(); | 462 | var error_desc = new StringBuilder(); |
247 | 463 | 463 | ||
248 | 464 | switch(submit_result) { | 464 | switch(submit_result) { |
249 | 465 | case 2: | 465 | case 2: |
250 | 466 | error_desc.append("The text is void!"); | 466 | error_desc.append("The text is void!"); |
251 | @@ -469,11 +469,11 @@ | |||
252 | 469 | case 3: | 469 | case 3: |
253 | 470 | error_desc.append("The text format doesn't exist"); | 470 | error_desc.append("The text format doesn't exist"); |
254 | 471 | break; | 471 | break; |
256 | 472 | 472 | ||
257 | 473 | default: | 473 | default: |
259 | 474 | error_desc.append("An error occured"); | 474 | error_desc.append("An error occured"); |
260 | 475 | break; | 475 | break; |
262 | 476 | 476 | ||
263 | 477 | } | 477 | } |
264 | 478 | 478 | ||
265 | 479 | error_desc.append("\n" + "The text was sent"); | 479 | error_desc.append("\n" + "The text was sent"); |
266 | @@ -518,4 +518,4 @@ | |||
267 | 518 | 518 | ||
268 | 519 | } | 519 | } |
269 | 520 | 520 | ||
271 | 521 | } | 521 | } |
272 | 522 | \ No newline at end of file | 522 | \ No newline at end of file |
273 | 523 | 523 | ||
274 | === modified file 'src/MainWindow.vala' | |||
275 | --- src/MainWindow.vala 2014-10-26 08:26:36 +0000 | |||
276 | +++ src/MainWindow.vala 2014-10-29 21:26:30 +0000 | |||
277 | @@ -713,23 +713,23 @@ | |||
278 | 713 | 713 | ||
279 | 714 | // Actions array | 714 | // Actions array |
280 | 715 | static const Gtk.ActionEntry[] main_entries = { | 715 | static const Gtk.ActionEntry[] main_entries = { |
282 | 716 | { "Fetch", Gtk.Stock.FIND, | 716 | { "Fetch", "edit-find", |
283 | 717 | /* label, accelerator */ N_("Find…"), "<Control>f", | 717 | /* label, accelerator */ N_("Find…"), "<Control>f", |
284 | 718 | /* tooltip */ N_("Find…"), | 718 | /* tooltip */ N_("Find…"), |
285 | 719 | action_fetch }, | 719 | action_fetch }, |
287 | 720 | { "ShowGoTo", Gtk.Stock.OK, | 720 | { "ShowGoTo", "dialog-ok", |
288 | 721 | /* label, accelerator */ N_("Go to line…"), "<Control>i", | 721 | /* label, accelerator */ N_("Go to line…"), "<Control>i", |
289 | 722 | /* tooltip */ N_("Go to line…"), | 722 | /* tooltip */ N_("Go to line…"), |
290 | 723 | action_go_to }, | 723 | action_go_to }, |
292 | 724 | { "Quit", Gtk.Stock.QUIT, | 724 | { "Quit", "application-exit", |
293 | 725 | /* label, accelerator */ N_("Quit"), "<Control>q", | 725 | /* label, accelerator */ N_("Quit"), "<Control>q", |
294 | 726 | /* tooltip */ N_("Quit"), | 726 | /* tooltip */ N_("Quit"), |
295 | 727 | action_quit }, | 727 | action_quit }, |
297 | 728 | { "CloseTab", Gtk.Stock.CLOSE, | 728 | { "CloseTab", "window-close", |
298 | 729 | /* label, accelerator */ N_("Close"), "<Control>w", | 729 | /* label, accelerator */ N_("Close"), "<Control>w", |
299 | 730 | /* tooltip */ N_("Close"), | 730 | /* tooltip */ N_("Close"), |
300 | 731 | action_close_tab }, | 731 | action_close_tab }, |
302 | 732 | { "ShowReplace", Gtk.Stock.OK, | 732 | { "ShowReplace", "dialog-ok", |
303 | 733 | /* label, accelerator */ N_("Replace"), "<Control>r", | 733 | /* label, accelerator */ N_("Replace"), "<Control>r", |
304 | 734 | /* tooltip */ N_("Replace"), | 734 | /* tooltip */ N_("Replace"), |
305 | 735 | action_fetch }, | 735 | action_fetch }, |
306 | @@ -737,27 +737,27 @@ | |||
307 | 737 | /* label, accelerator */ N_("Reopen closed document"), "<Control><Shift>t", | 737 | /* label, accelerator */ N_("Reopen closed document"), "<Control><Shift>t", |
308 | 738 | /* tooltip */ N_("Open last closed document in a new tab"), | 738 | /* tooltip */ N_("Open last closed document in a new tab"), |
309 | 739 | action_restore_tab }, | 739 | action_restore_tab }, |
311 | 740 | { "NewTab", Gtk.Stock.NEW, | 740 | { "NewTab", "add", |
312 | 741 | /* label, accelerator */ N_("Add New Tab"), "<Control>n", | 741 | /* label, accelerator */ N_("Add New Tab"), "<Control>n", |
313 | 742 | /* tooltip */ N_("Add a new tab"), | 742 | /* tooltip */ N_("Add a new tab"), |
314 | 743 | action_new_tab }, | 743 | action_new_tab }, |
316 | 744 | { "NewView", Gtk.Stock.NEW, | 744 | { "NewView", "add", |
317 | 745 | /* label, accelerator */ N_("Add New View"), "F3", | 745 | /* label, accelerator */ N_("Add New View"), "F3", |
318 | 746 | /* tooltip */ N_("Add a new view"), | 746 | /* tooltip */ N_("Add a new view"), |
319 | 747 | action_new_view }, | 747 | action_new_view }, |
321 | 748 | { "RemoveView", Gtk.Stock.CLOSE, | 748 | { "RemoveView", "window-close", |
322 | 749 | /* label, accelerator */ N_("Remove Current View"), null, | 749 | /* label, accelerator */ N_("Remove Current View"), null, |
323 | 750 | /* tooltip */ N_("Remove this view"), | 750 | /* tooltip */ N_("Remove this view"), |
324 | 751 | action_remove_view }, | 751 | action_remove_view }, |
326 | 752 | { "Undo", Gtk.Stock.UNDO, | 752 | { "Undo", "edit-undo", |
327 | 753 | /* label, accelerator */ N_("Undo"), "<Control>z", | 753 | /* label, accelerator */ N_("Undo"), "<Control>z", |
328 | 754 | /* tooltip */ N_("Undo the last action"), | 754 | /* tooltip */ N_("Undo the last action"), |
329 | 755 | action_undo }, | 755 | action_undo }, |
331 | 756 | { "Redo", Gtk.Stock.REDO, | 756 | { "Redo", "edit-redo", |
332 | 757 | /* label, accelerator */ N_("Redo"), "<Control><shift>z", | 757 | /* label, accelerator */ N_("Redo"), "<Control><shift>z", |
333 | 758 | /* tooltip */ N_("Redo the last undone action"), | 758 | /* tooltip */ N_("Redo the last undone action"), |
334 | 759 | action_redo }, | 759 | action_redo }, |
336 | 760 | { "Revert", Gtk.Stock.REVERT_TO_SAVED, | 760 | { "Revert", "document-revert", |
337 | 761 | /* label, accelerator */ N_("Revert"), "<Control><shift>o", | 761 | /* label, accelerator */ N_("Revert"), "<Control><shift>o", |
338 | 762 | /* tooltip */ N_("Restore this file"), | 762 | /* tooltip */ N_("Restore this file"), |
339 | 763 | action_revert }, | 763 | action_revert }, |
340 | @@ -765,19 +765,19 @@ | |||
341 | 765 | /* label, accelerator */ N_("Duplicate selected strings"), "<Control>d", | 765 | /* label, accelerator */ N_("Duplicate selected strings"), "<Control>d", |
342 | 766 | /* tooltip */ N_("Duplicate selected strings"), | 766 | /* tooltip */ N_("Duplicate selected strings"), |
343 | 767 | action_duplicate }, | 767 | action_duplicate }, |
345 | 768 | { "Open", Gtk.Stock.OPEN, | 768 | { "Open", "document-open", |
346 | 769 | /* label, accelerator */ N_("Open"), "<Control>o", | 769 | /* label, accelerator */ N_("Open"), "<Control>o", |
347 | 770 | /* tooltip */ N_("Open a file"), | 770 | /* tooltip */ N_("Open a file"), |
348 | 771 | action_open }, | 771 | action_open }, |
350 | 772 | { "Clipboard", Gtk.Stock.OPEN, | 772 | { "Clipboard", "edit-paste", |
351 | 773 | /* label, accelerator */ N_("Clipboard"), null, | 773 | /* label, accelerator */ N_("Clipboard"), null, |
352 | 774 | /* tooltip */ N_("New file from Clipboard"), | 774 | /* tooltip */ N_("New file from Clipboard"), |
353 | 775 | action_new_tab_from_clipboard }, | 775 | action_new_tab_from_clipboard }, |
355 | 776 | { "SaveFile", Gtk.Stock.SAVE, | 776 | { "SaveFile", "document-save", |
356 | 777 | /* label, accelerator */ N_("Save"), "<Control>s", | 777 | /* label, accelerator */ N_("Save"), "<Control>s", |
357 | 778 | /* tooltip */ N_("Save this file"), | 778 | /* tooltip */ N_("Save this file"), |
358 | 779 | action_save }, | 779 | action_save }, |
360 | 780 | { "SaveFileAs", Gtk.Stock.SAVE_AS, | 780 | { "SaveFileAs", "document-save-as", |
361 | 781 | /* label, accelerator */ N_("Save As…"), "<Control><shift>s", | 781 | /* label, accelerator */ N_("Save As…"), "<Control><shift>s", |
362 | 782 | /* tooltip */ N_("Save this file with a different name"), | 782 | /* tooltip */ N_("Save this file with a different name"), |
363 | 783 | action_save_as }, | 783 | action_save_as }, |
364 | @@ -785,7 +785,7 @@ | |||
365 | 785 | /* label, accelerator */ N_("Templates"), null, | 785 | /* label, accelerator */ N_("Templates"), null, |
366 | 786 | /* tooltip */ N_("Project templates"), | 786 | /* tooltip */ N_("Project templates"), |
367 | 787 | action_templates }, | 787 | action_templates }, |
369 | 788 | { "Preferences", Gtk.Stock.PREFERENCES, | 788 | { "Preferences", "preferences-desktop", |
370 | 789 | /* label, accelerator */ N_("Preferences"), null, | 789 | /* label, accelerator */ N_("Preferences"), null, |
371 | 790 | /* tooltip */ N_("Change Scratch settings"), | 790 | /* tooltip */ N_("Change Scratch settings"), |
372 | 791 | action_preferences }, | 791 | action_preferences }, |
373 | @@ -810,7 +810,7 @@ | |||
374 | 810 | }; | 810 | }; |
375 | 811 | 811 | ||
376 | 812 | static const Gtk.ToggleActionEntry[] toggle_entries = { | 812 | static const Gtk.ToggleActionEntry[] toggle_entries = { |
378 | 813 | { "Fullscreen", Gtk.Stock.FULLSCREEN, | 813 | { "Fullscreen", "view-fullscreen", |
379 | 814 | /* label, accelerator */ N_("Fullscreen"), "F11", | 814 | /* label, accelerator */ N_("Fullscreen"), "F11", |
380 | 815 | /* tooltip */ N_("Fullscreen"), | 815 | /* tooltip */ N_("Fullscreen"), |
381 | 816 | action_fullscreen } | 816 | action_fullscreen } |
There are still two stock items in the pastebin plugin on lines 360 and 362