[gnome-devel-docs] Updated Spanish translation
- From: Daniel Mustieles García <dmustieles src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Updated Spanish translation
- Date: Mon, 10 Mar 2014 15:44:20 +0000 (UTC)
commit 89cf5d607b4c77151f6046bc432168220326a979
Author: Daniel Mustieles <daniel mustieles gmail com>
Date: Mon Mar 10 16:44:10 2014 +0100
Updated Spanish translation
platform-demos/es/es.po | 3797 +++++++++--------------------------------------
1 files changed, 722 insertions(+), 3075 deletions(-)
---
diff --git a/platform-demos/es/es.po b/platform-demos/es/es.po
index a59320a..13bc321 100644
--- a/platform-demos/es/es.po
+++ b/platform-demos/es/es.po
@@ -9,8 +9,8 @@
msgid ""
msgstr ""
"Project-Id-Version: gnome-devel-docs.platform-demos.master\n"
-"POT-Creation-Date: 2014-02-06 08:02+0000\n"
-"PO-Revision-Date: 2014-02-06 14:11+0100\n"
+"POT-Creation-Date: 2014-03-10 07:39+0000\n"
+"PO-Revision-Date: 2014-03-10 14:20+0100\n"
"Last-Translator: Daniel Mustieles <daniel mustieles gmail com>\n"
"Language-Team: Español <gnome-es-list gnome org>\n"
"Language: \n"
@@ -161,7 +161,7 @@ msgstr "Taryn Fox"
#: C/hellognome.js.page:13 C/hello-world.c.page:16 C/hello-world.js.page:16
#: C/hello-world.py.page:16 C/hello-world.vala.page:16 C/image.c.page:14
#: C/image.js.page:13 C/image.py.page:16 C/image.vala.page:14
-#: C/label.c.page:15 C/label.js.page:14 C/label.py.page:17 C/label.py.page:22
+#: C/label.c.page:15 C/label.js.page:14 C/label.py.page:18 C/label.py.page:23
#: C/label.vala.page:14 C/linkbutton.c.page:14 C/linkbutton.js.page:14
#: C/linkbutton.py.page:15 C/linkbutton.vala.page:14 C/menubar.c.page:16
#: C/menubar.py.page:16 C/menubar.py.page:21 C/menubar.vala.page:16
@@ -2132,22 +2132,30 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:245
#, no-wrap
+#| msgid ""
+#| "\n"
+#| " // Create the radio buttons\n"
+#| " this._cookieButton = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+#| " this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
+#| " group: this._cookieButton });\n"
+#| " this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
+#| " group: this._cookieButton });\n"
msgid ""
"\n"
" // Create the radio buttons\n"
-" this._cookieButton = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+" this._cookieRadio = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
" this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
" this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
msgstr ""
"\n"
" // Create the radio buttons\n"
-" this._cookieButton = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+" this._cookieRadio = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
" this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
" this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
#. (itstool) path: section/p
#: C/03_getting_the_signal.js.page:254
@@ -2161,19 +2169,26 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:255
#, no-wrap
+#| msgid ""
+#| "\n"
+#| " // Arrange the radio buttons in their own grid\n"
+#| " this._radioGrid = new Gtk.Grid ();\n"
+#| " this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
+#| " this._radioGrid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+#| " this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
msgid ""
"\n"
" // Arrange the radio buttons in their own grid\n"
" this._radioGrid = new Gtk.Grid ();\n"
" this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
-" this._radioGrid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+" this._radioGrid.attach (this._cookieRadio, 0, 1, 1, 1);\n"
" this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
msgstr ""
"\n"
" // Arrange the radio buttons in their own grid\n"
" this._radioGrid = new Gtk.Grid ();\n"
" this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
-" this._radioGrid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+" this._radioGrid.attach (this._cookieRadio, 0, 1, 1, 1);\n"
" this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
#. (itstool) path: section/p
@@ -2239,12 +2254,26 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:279
#, no-wrap
+#| msgid ""
+#| "\n"
+#| " _getACookie: function() {\n"
+#| "\n"
+#| " // Did you select \"cookie\" instead of \"not cookie\"?\n"
+#| " if (this._cookieButton.get_active()) {\n"
+#| "\n"
+#| " // Increase the number of cookies by 1 and update the label\n"
+#| " cookies++;\n"
+#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
+#| "\n"
+#| " }\n"
+#| "\n"
+#| " }\n"
msgid ""
"\n"
" _getACookie: function() {\n"
"\n"
" // Did you select \"cookie\" instead of \"not cookie\"?\n"
-" if (this._cookieButton.get_active()) {\n"
+" if (this._cookieRadio.get_active()) {\n"
"\n"
" // Increase the number of cookies by 1 and update the label\n"
" cookies++;\n"
@@ -2258,7 +2287,7 @@ msgstr ""
" _getACookie: function() {\n"
"\n"
" // Did you select \"cookie\" instead of \"not cookie\"?\n"
-" if (this._cookieButton.get_active()) {\n"
+" if (this._cookieRadio.get_active()) {\n"
"\n"
" // Increase the number of cookies by 1 and update the label\n"
" cookies++;\n"
@@ -2837,6 +2866,117 @@ msgstr "Ejemplo de código con botón de radio"
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:363
#, no-wrap
+#| msgid ""
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "const Gtk = imports.gi.Gtk;\n"
+#| "const Lang = imports.lang;\n"
+#| "\n"
+#| "// We start out with 0 cookies\n"
+#| "var cookies = 0;\n"
+#| "\n"
+#| "const GettingTheSignal = new Lang.Class({\n"
+#| " Name: 'Getting the Signal',\n"
+#| "\n"
+#| " // Create the application itself\n"
+#| " _init: function() {\n"
+#| " this.application = new Gtk.Application();\n"
+#| "\n"
+#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
+#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
+#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
+#| " },\n"
+#| "\n"
+#| " // Callback function for 'activate' signal presents window when active\n"
+#| " _onActivate: function() {\n"
+#| " this._window.present();\n"
+#| " },\n"
+#| "\n"
+#| " // Callback function for 'startup' signal builds the UI\n"
+#| " _onStartup: function() {\n"
+#| " this._buildUI ();\n"
+#| " },\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| " // Build the application's UI\n"
+#| " _buildUI: function() {\n"
+#| "\n"
+#| " // Create the application window\n"
+#| " this._window = new Gtk.ApplicationWindow({\n"
+#| " application: this.application,\n"
+#| " window_position: Gtk.WindowPosition.CENTER,\n"
+#| " default_height: 200,\n"
+#| " default_width: 400,\n"
+#| " border_width: 20,\n"
+#| " title: \"Choose the one that says 'cookie'!\"});\n"
+#| "\n"
+#| " // Create the radio buttons\n"
+#| " this._cookieButton = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+#| " this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
+#| " group: this._cookieButton });\n"
+#| " this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
+#| " group: this._cookieButton });\n"
+#| "\n"
+#| " // Arrange the radio buttons in their own grid\n"
+#| " this._radioGrid = new Gtk.Grid ();\n"
+#| " this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
+#| " this._radioGrid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+#| " this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
+#| "\n"
+#| " // Set the button that will be at the top to be active by default\n"
+#| " this._notCookieOne.set_active (true);\n"
+#| "\n"
+#| " // Create the cookie button\n"
+#| " this._cookieButton = new Gtk.Button ({\n"
+#| " label: \"Get a cookie\" });\n"
+#| "\n"
+#| " // Connect the cookie button to the function that handles clicking it\n"
+#| " this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
+#| "\n"
+#| " // Create the label\n"
+#| " this._cookieLabel = new Gtk.Label ({\n"
+#| " label: \"Number of cookies: \" + cookies });\n"
+#| "\n"
+#| " // Create a grid to arrange everything inside\n"
+#| " this._grid = new Gtk.Grid ({\n"
+#| " halign: Gtk.Align.CENTER,\n"
+#| " valign: Gtk.Align.CENTER,\n"
+#| " row_spacing: 20 });\n"
+#| "\n"
+#| " // Put everything inside the grid\n"
+#| " this._grid.attach (this._radioGrid, 0, 0, 1, 1);\n"
+#| " this._grid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+#| " this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
+#| "\n"
+#| " // Add the grid to the window\n"
+#| " this._window.add (this._grid);\n"
+#| "\n"
+#| " // Show the window and all child widgets\n"
+#| " this._window.show_all();\n"
+#| "\n"
+#| " },\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| " _getACookie: function() {\n"
+#| "\n"
+#| " // Did you select \"cookie\" instead of \"not cookie\"?\n"
+#| " if (this._cookieButton.get_active()) {\n"
+#| "\n"
+#| " // Increase the number of cookies by 1 and update the label\n"
+#| " cookies++;\n"
+#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
+#| "\n"
+#| " }\n"
+#| "\n"
+#| " }\n"
+#| "\n"
+#| "});\n"
+#| "\n"
+#| "// Run the application\n"
+#| "let app = new GettingTheSignal ();\n"
+#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -2883,16 +3023,16 @@ msgid ""
" title: \"Choose the one that says 'cookie'!\"});\n"
"\n"
" // Create the radio buttons\n"
-" this._cookieButton = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+" this._cookieRadio = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
" this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
" this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
"\n"
" // Arrange the radio buttons in their own grid\n"
" this._radioGrid = new Gtk.Grid ();\n"
" this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
-" this._radioGrid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+" this._radioGrid.attach (this._cookieRadio, 0, 1, 1, 1);\n"
" this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
"\n"
" // Set the button that will be at the top to be active by default\n"
@@ -2933,7 +3073,7 @@ msgid ""
" _getACookie: function() {\n"
"\n"
" // Did you select \"cookie\" instead of \"not cookie\"?\n"
-" if (this._cookieButton.get_active()) {\n"
+" if (this._cookieRadio.get_active()) {\n"
"\n"
" // Increase the number of cookies by 1 and update the label\n"
" cookies++;\n"
@@ -2994,16 +3134,16 @@ msgstr ""
" title: \"Choose the one that says 'cookie'!\"});\n"
"\n"
" // Create the radio buttons\n"
-" this._cookieButton = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
+" this._cookieRadio = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
" this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
" this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-" group: this._cookieButton });\n"
+" group: this._cookieRadio });\n"
"\n"
" // Arrange the radio buttons in their own grid\n"
" this._radioGrid = new Gtk.Grid ();\n"
" this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
-" this._radioGrid.attach (this._cookieButton, 0, 1, 1, 1);\n"
+" this._radioGrid.attach (this._cookieRadio, 0, 1, 1, 1);\n"
" this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
"\n"
" // Set the button that will be at the top to be active by default\n"
@@ -3044,7 +3184,7 @@ msgstr ""
" _getACookie: function() {\n"
"\n"
" // Did you select \"cookie\" instead of \"not cookie\"?\n"
-" if (this._cookieButton.get_active()) {\n"
+" if (this._cookieRadio.get_active()) {\n"
"\n"
" // Increase the number of cookies by 1 and update the label\n"
" cookies++;\n"
@@ -3678,12 +3818,12 @@ msgstr ""
#: C/filechooserdialog.vala.page:35 C/fontchooserwidget.js.page:34
#: C/fontchooserwidget.py.page:44 C/fontchooserwidget.vala.page:34
#: C/gmenu.c.page:27 C/gmenu.js.page:25 C/gmenu.py.page:77
-#: C/gmenu.vala.page:37 C/grid.c.page:27 C/grid.js.page:29 C/grid.py.page:54
+#: C/gmenu.vala.page:34 C/grid.c.page:27 C/grid.js.page:29 C/grid.py.page:54
#: C/grid.vala.page:27 C/GtkApplicationWindow.c.page:25
#: C/GtkApplicationWindow.js.page:26 C/GtkApplicationWindow.py.page:50
#: C/GtkApplicationWindow.vala.page:26 C/image.c.page:28 C/image.js.page:27
-#: C/image.py.page:100 C/image.vala.page:27 C/label.c.page:32
-#: C/label.js.page:25 C/label.py.page:87 C/label.vala.page:26
+#: C/image.py.page:127 C/image.vala.page:27 C/label.c.page:32
+#: C/label.js.page:25 C/label.py.page:102 C/label.vala.page:26
#: C/linkbutton.c.page:27 C/linkbutton.js.page:25 C/linkbutton.py.page:44
#: C/linkbutton.vala.page:25 C/menubar.c.page:32 C/menubar.py.page:183
#: C/menubar.vala.page:187 C/menubutton.c.page:35 C/menubutton.js.page:28
@@ -4080,7 +4220,7 @@ msgstr "AboutDialog (Python)"
#: C/guitar-tuner.py.page:27 C/guitar-tuner.vala.page:25 C/image.py.page:14
#: C/image-viewer.c.page:22 C/image-viewer.cpp.page:20
#: C/image-viewer.js.page:22 C/image-viewer.py.page:22
-#: C/image-viewer.vala.page:30 C/js.page:15 C/label.py.page:15
+#: C/image-viewer.vala.page:30 C/js.page:15 C/label.py.page:16
#: C/linkbutton.py.page:13 C/magic-mirror.vala.page:22 C/menubar.py.page:19
#: C/menubutton.py.page:19 C/message-board.c.page:19
#: C/messagedialog.py.page:13 C/model-view-controller.py.page:20
@@ -4122,7 +4262,7 @@ msgstr ""
#: C/dialog.py.page:29 C/entry.py.page:34 C/filechooserdialog.py.page:52
#: C/fontchooserwidget.js.page:28 C/fontchooserwidget.py.page:30
#: C/fontchooserwidget.vala.page:28 C/gmenu.py.page:35 C/grid.py.page:36
-#: C/GtkApplicationWindow.py.page:34 C/image.py.page:33 C/label.py.page:35
+#: C/GtkApplicationWindow.py.page:34 C/image.py.page:40 C/label.py.page:36
#: C/linkbutton.py.page:29 C/menubutton.c.page:29 C/menubutton.py.page:36
#: C/messagedialog.py.page:28 C/paned.c.page:27 C/paned.js.page:27
#: C/paned.py.page:28 C/paned.vala.page:27 C/progressbar.py.page:38
@@ -4143,87 +4283,6 @@ msgstr "Código usado para generar este ejemplo"
#. (itstool) path: section/code
#: C/aboutdialog.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gio\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| "\n"
-#| " # constructor for a window (the parent window)\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"AboutDialog Example\", application=app)\n"
-#| " self.set_default_size(200, 200)\n"
-#| "\n"
-#| " # create the about_action (a Gio.SimpleAction)\n"
-#| " about_action = Gio.SimpleAction.new(\"about\", None)\n"
-#| " # connect the signal from the action to the function about_cb()\n"
-#| " about_action.connect(\"activate\", self.about_cb)\n"
-#| " # add the action to the application\n"
-#| " app.add_action(about_action)\n"
-#| "\n"
-#| " # callback function for the about_action's \"activate\" signal\n"
-#| " def about_cb(self, action, parameter):\n"
-#| " # a Gtk.AboutDialog\n"
-#| " aboutdialog = Gtk.AboutDialog()\n"
-#| "\n"
-#| " # lists of authors and documenters (will be used later)\n"
-#| " authors = [\"GNOME Documentation Team\"]\n"
-#| " documenters = [\"GNOME Documentation Team\"]\n"
-#| "\n"
-#| " # we fill in the aboutdialog\n"
-#| " aboutdialog.set_program_name(\"AboutDialog Example\")\n"
-#| " aboutdialog.set_copyright(\"Copyright \\xc2\\xa9 2012 GNOME Documentation Team\")\n"
-#| " aboutdialog.set_authors(authors)\n"
-#| " aboutdialog.set_documenters(documenters)\n"
-#| " aboutdialog.set_website(\"http://developer.gnome.org\")\n"
-#| " aboutdialog.set_website_label(\"GNOME Developer Website\")\n"
-#| "\n"
-#| " # we do not want to show the title, which by default would be \"About AboutDialog Example\"\n"
-#| " # we have to reset the title of the messagedialog window after setting the program name\n"
-#| " aboutdialog.set_title(\"\")\n"
-#| "\n"
-#| " # to close the aboutdialog when \"close\" is clicked we connect the\n"
-#| " # \"response\" signal to on_close\n"
-#| " aboutdialog.connect(\"response\", self.on_close)\n"
-#| " # show the aboutdialog\n"
-#| " aboutdialog.show()\n"
-#| "\n"
-#| " # destroy the aboutdialog\n"
-#| " def on_close(self, action, parameter):\n"
-#| " action.destroy()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def quit_cb(self, action, parameter):\n"
-#| " self.quit()\n"
-#| "\n"
-#| " def do_startup (self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # create a menu (a Gio.Menu)\n"
-#| " menu = Gio.Menu()\n"
-#| " # append a menu item with label \"About\" and action \"app.about\"\n"
-#| " menu.append (\"About\", \"app.about\")\n"
-#| " # append a menu item with label \"Quit\" and action \"app.quit\"\n"
-#| " menu.append(\"Quit\", \"app.quit\")\n"
-#| " # set menu as the menu for the application\n"
-#| " self.set_app_menu (menu)\n"
-#| "\n"
-#| " # a new simpleaction - for the application\n"
-#| " quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
-#| " quit_action.connect(\"activate\", self.quit_cb)\n"
-#| " self.add_action(quit_action)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gio\n"
@@ -4424,7 +4483,7 @@ msgstr ""
#: C/dialog.py.page:45 C/entry.py.page:60 C/filechooserdialog.py.page:69
#: C/fontchooserwidget.js.page:33 C/fontchooserwidget.py.page:43
#: C/fontchooserwidget.vala.page:33 C/gmenu.py.page:76 C/grid.py.page:53
-#: C/GtkApplicationWindow.py.page:49 C/image.py.page:99 C/label.py.page:86
+#: C/GtkApplicationWindow.py.page:49 C/image.py.page:125 C/label.py.page:101
#: C/linkbutton.py.page:43 C/menubar.py.page:182 C/menubutton.c.page:34
#: C/menubutton.py.page:52 C/messagedialog.py.page:53 C/paned.c.page:32
#: C/paned.js.page:32 C/paned.py.page:38 C/paned.vala.page:32
@@ -4650,7 +4709,7 @@ msgstr ""
"}\n"
#. (itstool) path: item/p
-#: C/aboutdialog.vala.page:38 C/gmenu.vala.page:41 C/window.vala.page:37
+#: C/aboutdialog.vala.page:38 C/gmenu.vala.page:38 C/window.vala.page:37
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Application.html\">Gtk."
"Application</link>"
@@ -4659,7 +4718,7 @@ msgstr ""
"Application</link>"
#. (itstool) path: item/p
-#: C/aboutdialog.vala.page:39 C/gmenu.vala.page:42
+#: C/aboutdialog.vala.page:39 C/gmenu.vala.page:39
#: C/GtkApplicationWindow.vala.page:31 C/label.vala.page:31
msgid ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.ApplicationWindow.html"
@@ -5604,44 +5663,6 @@ msgstr "Un widget de botón conectado a una función de retorno de llamada."
#. (itstool) path: section/code
#: C/button.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # a window\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"GNOME Button\", application=app)\n"
-#| " self.set_default_size(250, 50)\n"
-#| "\n"
-#| " # a button\n"
-#| " button = Gtk.Button()\n"
-#| " # with a label\n"
-#| " button.set_label(\"Click me\")\n"
-#| " # connect the signal \"clicked\" emitted by the button\n"
-#| " # to the callback function do_clicked\n"
-#| " button.connect(\"clicked\", self.do_clicked)\n"
-#| " # add the button to the window\n"
-#| " self.add(button)\n"
-#| "\n"
-#| " # callback function connected to the signal \"clicked\" of the button\n"
-#| " def do_clicked(self, button):\n"
-#| " print \"You clicked me!\"\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup (self):\n"
-#| " Gtk.Application.do_startup (self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -5823,9 +5844,9 @@ msgstr ""
"\">GtkButton</link>"
#. (itstool) path: item/p
-#: C/button.py.page:55 C/dialog.py.page:51 C/image.py.page:103
-#: C/label.py.page:90 C/linkbutton.py.page:46 C/messagedialog.py.page:60
-#: C/radiobutton.py.page:48 C/separator.py.page:38 C/window.py.page:64
+#: C/button.py.page:55 C/dialog.py.page:51 C/label.py.page:105
+#: C/linkbutton.py.page:46 C/messagedialog.py.page:60 C/radiobutton.py.page:48
+#: C/separator.py.page:38 C/window.py.page:64
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkWindow.html"
"\">GtkWindow</link>"
@@ -6408,149 +6429,6 @@ msgstr "Botonera (Python)"
#. (itstool) path: section/code
#: C/buttonbox.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Calculator\", application=app)\n"
-#| " self.set_default_size(350, 200)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # an entry\n"
-#| " self.entry = Gtk.Entry()\n"
-#| " # with an initial text\n"
-#| " self.entry.set_text('0')\n"
-#| " # text aligned on the right\n"
-#| " self.entry.set_alignment(1)\n"
-#| " # the text in the entry cannot be modified writing in it\n"
-#| " self.entry.set_can_focus(False)\n"
-#| "\n"
-#| " # a grid\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.set_row_spacing(5)\n"
-#| " \n"
-#| " # to attach the entry\n"
-#| " grid.attach(self.entry, 0, 0, 1, 1)\n"
-#| " \n"
-#| " # the labels for the buttons\n"
-#| " buttons = [ 7, 8, 9, '/',\n"
-#| " 4, 5, 6, '*',\n"
-#| " 1, 2, 3, '-',\n"
-#| " 'C', 0, '=', '+' ]\n"
-#| " \n"
-#| " # each row is a ButtonBox, attached to the grid \n"
-#| " for i in range(4):\n"
-#| " hbox = Gtk.ButtonBox.new(Gtk.Orientation.HORIZONTAL)\n"
-#| " hbox.set_spacing(5)\n"
-#| " grid.attach(hbox, 0, i + 1, 1, 1)\n"
-#| " # each ButtonBox has 4 buttons, connected to the callback function\n"
-#| " for j in range(4):\n"
-#| " button = Gtk.Button(label=buttons[i * 4 + j])\n"
-#| " button.set_can_focus(False)\n"
-#| " button.connect(\"clicked\", self.button_clicked)\n"
-#| " hbox.add(button)\n"
-#| " \n"
-#| " # some variables for the calculations\n"
-#| " self.first_number = 0\n"
-#| " self.second_number = 0\n"
-#| " self.counter = 0\n"
-#| " self.operation = \"\"\n"
-#| "\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # callback function for all the buttons\n"
-#| " def button_clicked(self, button):\n"
-#| " # for the operations\n"
-#| " if button.get_label() == '+':\n"
-#| " self.counter += 1 \n"
-#| " if self.counter > 1:\n"
-#| " self.do_operation()\n"
-#| " self.entry.set_text('0')\n"
-#| " self.operation = \"plus\"\n"
-#| " elif button.get_label() == '-':\n"
-#| " self.counter += 1 \n"
-#| " if self.counter > 1:\n"
-#| " self.do_operation()\n"
-#| " self.entry.set_text('0')\n"
-#| " self.operation = \"minus\"\n"
-#| " elif button.get_label() == '*':\n"
-#| " self.counter += 1 \n"
-#| " if self.counter > 1:\n"
-#| " self.do_operation()\n"
-#| " self.entry.set_text('0')\n"
-#| " self.operation = \"multiplication\"\n"
-#| " elif button.get_label() == '/':\n"
-#| " self.counter += 1 \n"
-#| " if self.counter > 1:\n"
-#| " self.do_operation()\n"
-#| " self.entry.set_text('0')\n"
-#| " self.operation = \"division\"\n"
-#| " # for =\n"
-#| " elif button.get_label() == '=':\n"
-#| " self.do_operation()\n"
-#| " self.entry.set_text(str(self.first_number))\n"
-#| " self.counter = 1\n"
-#| " # for Cancel\n"
-#| " elif button.get_label() == 'C':\n"
-#| " self.first_number = 0\n"
-#| " self.second_number = 0\n"
-#| " self.counter = 0\n"
-#| " self.entry.set_text('')\n"
-#| " self.operation = \"\"\n"
-#| " # for a digit button\n"
-#| " else:\n"
-#| " new_digit = int(button.get_label())\n"
-#| " if self.entry.get_text() == 'error':\n"
-#| " number = 0\n"
-#| " else:\n"
-#| " number = int(self.entry.get_text())\n"
-#| " number = number * 10 + new_digit \n"
-#| " if self.counter == 0:\n"
-#| " self.first_number = number\n"
-#| " else:\n"
-#| " self.second_number = number\n"
-#| " self.entry.set_text(str(number))\n"
-#| "\n"
-#| " def do_operation(self):\n"
-#| " if self.operation == \"plus\":\n"
-#| " self.first_number += self.second_number\n"
-#| " elif self.operation == \"minus\":\n"
-#| " self.first_number -= self.second_number\n"
-#| " elif self.operation == \"multiplication\":\n"
-#| " self.first_number *= self.second_number\n"
-#| " elif self.operation == \"division\":\n"
-#| " try:\n"
-#| " self.first_number /= self.second_number\n"
-#| " except ZeroDivisionError:\n"
-#| " self.first_number = 0\n"
-#| " self.second_number = 0\n"
-#| " self.counter = 0\n"
-#| " self.entry.set_text('error')\n"
-#| " self.operation = \"\"\n"
-#| " return\n"
-#| " else:\n"
-#| " self.first_number = 0\n"
-#| " self.second_number = 0\n"
-#| " self.counter = 0\n"
-#| " self.entry.set_text('error')\n"
-#| " \n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -7648,54 +7526,6 @@ msgstr "Un botón conmutador en una ventana"
#. (itstool) path: section/code
#: C/checkbutton.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # a window\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"CheckButton Example\", application=app)\n"
-#| " self.set_default_size(300, 100)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # a new checkbutton\n"
-#| " button = Gtk.CheckButton()\n"
-#| " # with a label\n"
-#| " button.set_label(\"Show Title\")\n"
-#| " # connect the signal \"toggled\" emitted by the checkbutton\n"
-#| " # with the callback function toggled_cb\n"
-#| " button.connect(\"toggled\", self.toggled_cb)\n"
-#| " # by default, the checkbutton is active\n"
-#| " button.set_active(True)\n"
-#| "\n"
-#| " # add the checkbutton to the window\n"
-#| " self.add(button)\n"
-#| "\n"
-#| " # callback function\n"
-#| " def toggled_cb(self, button):\n"
-#| " # if the togglebutton is active, set the title of the window\n"
-#| " # as \"Checkbutton Example\"\n"
-#| " if button.get_active():\n"
-#| " self.set_title(\"CheckButton Example\")\n"
-#| " # else, set it as \"\" (empty string)\n"
-#| " else:\n"
-#| " self.set_title(\"\")\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -8175,59 +8005,6 @@ msgstr "ColorButton (Python)"
#. (itstool) path: section/code
#: C/colorbutton.py.page:29
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gdk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"ColorButton\", application=app)\n"
-#| " self.set_default_size(150, 50)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # a colorbutton (which opens a dialogue window in\n"
-#| " # which we choose a color)\n"
-#| " self.button = Gtk.ColorButton()\n"
-#| " # with a default color (blue, in this instance)\n"
-#| " color = Gdk.RGBA()\n"
-#| " color.red = 0.0\n"
-#| " color.green = 0.0\n"
-#| " color.blue = 1.0\n"
-#| " color.alpha = 0.5\n"
-#| " self.button.set_rgba(color)\n"
-#| "\n"
-#| " # choosing a color in the dialogue window emits a signal\n"
-#| " self.button.connect(\"color-set\", self.on_color_chosen)\n"
-#| "\n"
-#| " # a label\n"
-#| " label = Gtk.Label()\n"
-#| " label.set_text(\"Click to choose a color\")\n"
-#| "\n"
-#| " # a grid to attach button and label\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.attach(self.button, 0, 0, 2, 1)\n"
-#| " grid.attach(label, 0, 1, 2, 1)\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # if a new color is chosen, we print it as rgb(r,g,b) in the terminal\n"
-#| " def on_color_chosen(self, user_data):\n"
-#| " print \"You chose the color: \" + self.button.get_rgba().to_string()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup (self):\n"
-#| " Gtk.Application.do_startup (self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
@@ -10334,67 +10111,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/combobox.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "distros = [[\"Select distribution\"], [\"Fedora\"], [\"Mint\"], [\"Suse\"]]\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
-#| " self.set_default_size(200, -1)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # the data in the model, of type string\n"
-#| " listmodel = Gtk.ListStore(str)\n"
-#| " # append the data in the model\n"
-#| " for i in range(len(distros)):\n"
-#| " listmodel.append(distros[i])\n"
-#| "\n"
-#| " # a combobox to see the data stored in the model\n"
-#| " combobox = Gtk.ComboBox(model=listmodel)\n"
-#| "\n"
-#| " # a cellrenderer to render the text\n"
-#| " cell = Gtk.CellRendererText()\n"
-#| "\n"
-#| " # pack the cell into the beginning of the combobox, allocating\n"
-#| " # no more space than needed\n"
-#| " combobox.pack_start(cell, False)\n"
-#| " # associate a property (\"text\") of the cellrenderer (cell) to a column (column 0)\n"
-#| " # in the model used by the combobox\n"
-#| " combobox.add_attribute(cell, \"text\", 0)\n"
-#| "\n"
-#| " # the first row is the active one by default at the beginning\n"
-#| " combobox.set_active(0)\n"
-#| "\n"
-#| " # connect the signal emitted when a row is selected to the callback function\n"
-#| " combobox.connect(\"changed\", self.on_changed)\n"
-#| "\n"
-#| " # add the combobox to the window\n"
-#| " self.add(combobox)\n"
-#| "\n"
-#| " def on_changed(self, combo):\n"
-#| " # if the row selected is not the first one, write its value on the terminal\n"
-#| " if combo.get_active() != 0:\n"
-#| " print \"You chose \" + str(distros[combo.get_active()][0]) +\".\"\n"
-#| " return True\n"
-#| "\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -10832,78 +10548,6 @@ msgstr "ComboBox (dos columnas)"
#. (itstool) path: section/code
#: C/combobox_multicolumn.py.page:29
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "actions = [[\"Select\", None],\n"
-#| " [\"New\", Gtk.STOCK_NEW],\n"
-#| " [\"Open\", Gtk.STOCK_OPEN],\n"
-#| " [\"Save\", Gtk.STOCK_SAVE]]\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
-#| " self.set_default_size(200, -1)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # the data in the model, of type string on two columns\n"
-#| " listmodel = Gtk.ListStore(str, str)\n"
-#| " # append the data\n"
-#| " for i in range(len(actions)):\n"
-#| " listmodel.append(actions[i])\n"
-#| "\n"
-#| " # a combobox to see the data stored in the model\n"
-#| " combobox = Gtk.ComboBox(model=listmodel)\n"
-#| "\n"
-#| " # cellrenderers to render the data\n"
-#| " renderer_pixbuf = Gtk.CellRendererPixbuf()\n"
-#| " renderer_text = Gtk.CellRendererText()\n"
-#| "\n"
-#| " # we pack the cell into the beginning of the combobox, allocating\n"
-#| " # no more space than needed;\n"
-#| " # first the image, then the text;\n"
-#| " # note that it does not matter in which order they are in the model,\n"
-#| " # the visualization is decided by the order of the cellrenderers\n"
-#| " combobox.pack_start(renderer_pixbuf, False)\n"
-#| " combobox.pack_start(renderer_text, False)\n"
-#| "\n"
-#| " # associate a property of the cellrenderer to a column in the model\n"
-#| " # used by the combobox\n"
-#| " combobox.add_attribute(renderer_text, \"text\", 0)\n"
-#| " combobox.add_attribute(renderer_pixbuf, \"stock_id\", 1)\n"
-#| "\n"
-#| " # the first row is the active one at the beginning\n"
-#| " combobox.set_active(0)\n"
-#| "\n"
-#| " # connect the signal emitted when a row is selected to the callback function\n"
-#| " combobox.connect(\"changed\", self.on_changed)\n"
-#| "\n"
-#| " # add the combobox to the window\n"
-#| " self.add(combobox)\n"
-#| "\n"
-#| " def on_changed(self, combo):\n"
-#| " # if the row selected is not the first one, write on the terminal\n"
-#| " # the value of the first column in the model\n"
-#| " if combo.get_active() != 0:\n"
-#| "\t\t\tprint \"You chose \" + str(actions[combo.get_active()][0]) +\"\\n\"\n"
-#| " return True\n"
-#| "\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -11778,65 +11422,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/dialog.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # construct a window (the parent window)\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"GNOME Button\", application=app)\n"
-#| " self.set_default_size(250, 50)\n"
-#| "\n"
-#| " # a button on the parent window\n"
-#| " button = Gtk.Button(\"Click me\")\n"
-#| " # connect the signal \"clicked\" of the button with the function on_button_click()\n"
-#| " button.connect(\"clicked\", self.on_button_click)\n"
-#| " # add the button to the window\n"
-#| " self.add(button)\n"
-#| "\n"
-#| " # callback function for the signal \"clicked\" of the button in the parent window\n"
-#| " def on_button_click(self, widget):\n"
-#| " # create a Gtk.Dialog\n"
-#| " dialog = Gtk.Dialog()\n"
-#| " dialog.set_title(\"A Gtk+ Dialog\")\n"
-#| " # The window defined in the constructor (self) is the parent of the dialog.\n"
-#| " # Furthermore, the dialog is on top of the parent window\n"
-#| " dialog.set_transient_for(self)\n"
-#| " # set modal true: no interaction with other windows of the application\n"
-#| " dialog.set_modal(True)\n"
-#| " # add a button to the dialog window\n"
-#| " dialog.add_button(button_text=\"OK\", response_id=Gtk.ResponseType.OK)\n"
-#| " # connect the \"response\" signal (the button has been clicked) to the function on_response()\n"
-#| " dialog.connect(\"response\", self.on_response)\n"
-#| "\n"
-#| " # get the content area of the dialog, add a label to it\n"
-#| " content_area = dialog.get_content_area()\n"
-#| " label = Gtk.Label(\"This demonstrates a dialog with a label\")\n"
-#| " content_area.add(label)\n"
-#| " # show the dialog\n"
-#| " dialog.show_all()\n"
-#| "\n"
-#| " def on_response(self, widget, response_id):\n"
-#| " print \"response_id is\", response_id\n"
-#| " # destroy the widget (the dialog) when the function on_response() is called\n"
-#| " # (that is, when the button of the dialog has been clicked)\n"
-#| " widget.destroy()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup (self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -12638,7 +12223,7 @@ msgid "Entry (Python)"
msgstr "Entry (Python)"
#. (itstool) path: credit/name
-#: C/entry.py.page:20 C/label.py.page:20 C/model-view-controller.py.page:15
+#: C/entry.py.page:20 C/label.py.page:21 C/model-view-controller.py.page:15
#: C/properties.py.page:15 C/signals-callbacks.py.page:15 C/strings.py.page:15
#: C/textview.py.page:15 C/toolbar_builder.py.page:27
msgid "Sebastian Pölsterl"
@@ -12652,46 +12237,6 @@ msgstr "Esta aplicación le saluda en la terminal con el nombre que le indique."
#. (itstool) path: section/code
#: C/entry.py.page:35
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"What is your name?\", application=app)\n"
-#| " self.set_default_size(300, 100)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # a single line entry\n"
-#| " name_box = Gtk.Entry()\n"
-#| " # emits a signal when the Enter key is pressed, connected to the\n"
-#| " # callback function cb_activate\n"
-#| " name_box.connect(\"activate\", self.cb_activate)\n"
-#| "\n"
-#| " # add the Gtk.Entry to the window\n"
-#| " self.add(name_box)\n"
-#| "\n"
-#| " # the content of the entry is used to write in the terminal\n"
-#| " def cb_activate(self, entry):\n"
-#| " # retrieve the content of the widget\n"
-#| "\t\tname = entry.get_text()\n"
-#| "\t\t# print it in a nice form in the terminal\n"
-#| "\t\tprint \"Hello \" + name + \"!\"\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -13363,216 +12908,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/filechooserdialog.py.page:53
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gdk\n"
-#| "from gi.repository import Gio\n"
-#| "from gi.repository import GObject\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"FileChooserDialog Example\", application=app)\n"
-#| " self.set_default_size(400, 400)\n"
-#| "\n"
-#| " # the actions for the window menu, connected to the callback functions\n"
-#| " new_action = Gio.SimpleAction.new(\"new\", None)\n"
-#| " new_action.connect(\"activate\", self.new_callback)\n"
-#| " self.add_action(new_action)\n"
-#| " \n"
-#| " open_action = Gio.SimpleAction.new(\"open\", None)\n"
-#| " open_action.connect(\"activate\", self.open_callback)\n"
-#| " self.add_action(open_action)\n"
-#| " \n"
-#| " save_action = Gio.SimpleAction.new(\"save\", None)\n"
-#| " save_action.connect(\"activate\", self.save_callback)\n"
-#| " self.add_action(save_action)\n"
-#| " \n"
-#| " save_as_action = Gio.SimpleAction.new(\"save-as\", None)\n"
-#| " save_as_action.connect(\"activate\", self.save_as_callback)\n"
-#| " self.add_action(save_as_action)\n"
-#| " \n"
-#| " # the file\n"
-#| " self.file = None\n"
-#| " \n"
-#| " # the textview with the buffer\n"
-#| " self.buffer = Gtk.TextBuffer()\n"
-#| " textview = Gtk.TextView(buffer=self.buffer)\n"
-#| " textview.set_wrap_mode(Gtk.WrapMode.WORD)\n"
-#| " \n"
-#| " # a scrolled window for the textview\n"
-#| " self.scrolled_window = Gtk.ScrolledWindow()\n"
-#| " self.scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)\n"
-#| " self.scrolled_window.add(textview)\n"
-#| " self.scrolled_window.set_border_width(5)\n"
-#| " \n"
-#| " # add the scrolled window to the window\n"
-#| " self.add(self.scrolled_window)\n"
-#| "\n"
-#| " # callback for new\n"
-#| " def new_callback(self, action, parameter):\n"
-#| " self.buffer.set_text(\"\")\n"
-#| " print \"New file created\"\n"
-#| " \n"
-#| " # callback for open\n"
-#| " def open_callback(self, action, parameter):\n"
-#| " # create a filechooserdialog to open: \n"
-#| " # the arguments are: title of the window, parent_window, action, (buttons, response)\n"
-#| " open_dialog = Gtk.FileChooserDialog (\"Pick a file\", self,\n"
-#| " Gtk.FileChooserAction.OPEN, \n"
-#| " (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, \n"
-#| " Gtk.STOCK_OPEN, Gtk.ResponseType.ACCEPT))\n"
-#| " \n"
-#| " # not only local files can be selected in the file selector\n"
-#| " open_dialog.set_local_only(False)\n"
-#| " # dialog always on top of the textview window\n"
-#| " open_dialog.set_modal(True)\n"
-#| " # connect the dialog with the callback function open_response_cb()\n"
-#| " open_dialog.connect(\"response\", self.open_response_cb)\n"
-#| " # show the dialog\n"
-#| " open_dialog.show()\n"
-#| "\n"
-#| " # callback function for the dialog open_dialog\n"
-#| " def open_response_cb(self, dialog, response_id):\n"
-#| " open_dialog = dialog\n"
-#| " # if response is \"ACCEPT\" (the button \"Open\" has been clicked)\n"
-#| " if response_id == Gtk.ResponseType.ACCEPT:\n"
-#| " # self.file is the file that we get from the FileChooserDialog\n"
-#| " self.file = open_dialog.get_file()\n"
-#| " # an empty string (provisionally)\n"
-#| " content = \"\"\n"
-#| " try:\n"
-#| " # load the content of the file into memory:\n"
-#| " # success is a boolean depending on the success of the operation\n"
-#| " # content is self-explanatory\n"
-#| " # etags is an entity tag (can be used to quickly determine if the\n"
-#| " # file has been modified from the version on the file system)\n"
-#| " [success, content, etags] = self.file.load_contents(None)\n"
-#| " except GObject.GError as e:\n"
-#| " print \"Error: \" + e.message\n"
-#| " # set the content as the text into the buffer\n"
-#| " self.buffer.set_text(content, len(content))\n"
-#| " print \"opened: \" + open_dialog.get_filename()\n"
-#| " # if response is \"CANCEL\" (the button \"Cancel\" has been clicked)\n"
-#| " elif response_id == Gtk.ResponseType.CANCEL:\n"
-#| " print \"cancelled: FileChooserAction.OPEN\"\n"
-#| " # destroy the FileChooserDialog\n"
-#| " dialog.destroy()\n"
-#| "\n"
-#| " # callback function for save_as\n"
-#| " def save_as_callback(self, action, parameter):\n"
-#| " # create a filechooserdialog to save: \n"
-#| " # the arguments are: title of the window, parent_window, action, (buttons, response)\n"
-#| " save_dialog = Gtk.FileChooserDialog (\"Pick a file\", self,\n"
-#| " Gtk.FileChooserAction.SAVE, \n"
-#| " (Gtk.STOCK_CANCEL, Gtk.ResponseType.CANCEL, \n"
-#| " Gtk.STOCK_SAVE, Gtk.ResponseType.ACCEPT))\n"
-#| " # the dialog will present a confirmation dialog if the user types a file name that\n"
-#| " # already exists\n"
-#| " save_dialog.set_do_overwrite_confirmation(True)\n"
-#| " # dialog always on top of the textview window\n"
-#| " save_dialog.set_modal(True)\n"
-#| " # if self.file has already been saved\n"
-#| " if self.file is not None:\n"
-#| " try:\n"
-#| " # set self.file as the current filename for the file chooser\n"
-#| " save_dialog.set_file(self.file)\n"
-#| " except GObject.GError as e:\n"
-#| " print \"Error: \" + e.message\n"
-#| " # connect the dialog to the callback function save_response_cb()\n"
-#| " save_dialog.connect(\"response\", self.save_response_cb)\n"
-#| " # show the dialog\n"
-#| " save_dialog.show()\n"
-#| " \n"
-#| " # callback function for the dialog save_dialog\n"
-#| " def save_response_cb(self, dialog, response_id):\n"
-#| " save_dialog = dialog\n"
-#| " # if response is \"ACCEPT\" (the button \"Save\" has been clicked)\n"
-#| " if response_id == Gtk.ResponseType.ACCEPT:\n"
-#| " # self.file is the currently selected file\n"
-#| " self.file = save_dialog.get_file()\n"
-#| " # save to file (see below)\n"
-#| " self.save_to_file()\n"
-#| " # if response is \"CANCEL\" (the button \"Cancel\" has been clicked)\n"
-#| " elif response_id == Gtk.ResponseType.CANCEL:\n"
-#| " print \"cancelled: FileChooserAction.SAVE\"\n"
-#| " # destroy the FileChooserDialog\n"
-#| " dialog.destroy()\n"
-#| " \n"
-#| " # callback function for save \n"
-#| " def save_callback(self, action, parameter):\n"
-#| " # if self.file is not already there\n"
-#| " if self.file is not None:\n"
-#| " self.save_to_file()\n"
-#| " # self.file is a new file\n"
-#| " else:\n"
-#| " # use save_as\n"
-#| " self.save_as_callback(action, parameter)\n"
-#| "\n"
-#| " # save_to_file\n"
-#| " def save_to_file(self):\n"
-#| " # get the content of the buffer, without hidden characters\n"
-#| " [start, end] = self.buffer.get_bounds()\n"
-#| " current_contents = self.buffer.get_text(start, end, False)\n"
-#| " # if there is some content\n"
-#| " if current_contents != \"\":\n"
-#| " # set the content as content of self.file.\n"
-#| " # arguments: contents, etags, make_backup, flags, GError\n"
-#| " try:\n"
-#| " self.file.replace_contents(current_contents,\n"
-#| " None,\n"
-#| " False,\n"
-#| " Gio.FileCreateFlags.NONE,\n"
-#| " None)\n"
-#| " print \"saved: \" + self.file.get_path()\n"
-#| " except GObject.GError as e:\n"
-#| " print \"Error: \" + e.message\n"
-#| " # if the contents are empty\n"
-#| " else:\n"
-#| " # create (if the file does not exist) or overwrite the file in readwrite mode.\n"
-#| " # arguments: etags, make_backup, flags, GError \n"
-#| " try:\n"
-#| " self.file.replace_readwrite(None,\n"
-#| " False,\n"
-#| " Gio.FileCreateFlags.NONE, \n"
-#| " None)\n"
-#| " print \"saved: \" + self.file.get_path()\n"
-#| " except GObject.GError as e:\n"
-#| " print \"Error: \" + e.message\n"
-#| " \n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # app action quit, connected to the callback function\n"
-#| " quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
-#| " quit_action.connect(\"activate\", self.quit_callback)\n"
-#| " self.add_action(quit_action)\n"
-#| "\n"
-#| " # get the menu from the ui file with a builder\n"
-#| " builder = Gtk.Builder()\n"
-#| " try:\n"
-#| " builder.add_from_file(\"filechooserdialog.ui\")\n"
-#| " except:\n"
-#| " print \"file not found\"\n"
-#| " sys.exit()\n"
-#| " menu = builder.get_object(\"appmenu\")\n"
-#| " self.set_app_menu(menu)\n"
-#| " \n"
-#| " # callback function for quit\n"
-#| " def quit_callback(self, action, parameter):\n"
-#| " self.quit()\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
@@ -14828,46 +14163,6 @@ msgstr "FontChooserWidget (Python)"
#. (itstool) path: section/code
#: C/fontchooserwidget.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"FontChooserWidget\", application=app)\n"
-#| "\n"
-#| " # a font chooser\n"
-#| " self.font_chooser = Gtk.FontChooserWidget()\n"
-#| " # a default font\n"
-#| " self.font_chooser.set_font(\"Sans\")\n"
-#| " # a text to preview the font\n"
-#| " self.font_chooser.set_preview_text(\"This is an example of preview text!\")\n"
-#| "\n"
-#| " # connect signal from the font chooser to the callback function\n"
-#| " self.font_chooser.connect(\"notify::font\", self.font_cb)\n"
-#| "\n"
-#| " # add the font chooser to the window\n"
-#| " self.add(self.font_chooser)\n"
-#| "\n"
-#| " # callback function:\n"
-#| " def font_cb(self, event, user_data):\n"
-#| " # print in the terminal\n"
-#| " print \"You chose the font \" + self.font_chooser.get_font()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -15169,11 +14464,6 @@ msgstr "Instalación manual"
#. (itstool) path: section/p
#: C/getting-ready.page:26
-#| msgid ""
-#| "If you prefer manual installation you can find the instructions for the "
-#| "various distributions in the <link href=\"http://live.gnome.org/"
-#| "DeveloperTools/Installation\">GNOME wiki</link>. Click on the image to go "
-#| "directly to the installation page for your distribution:"
msgid ""
"If you prefer manual installation you can find the instructions for the "
"various distributions in the <link href=\"https://wiki.gnome.org/Apps/"
@@ -15187,10 +14477,6 @@ msgstr ""
#. (itstool) path: item/p
#: C/getting-ready.page:31
-#| msgid ""
-#| "<link href=\"http://live.gnome.org/DeveloperTools/Installation/Ubuntu\"> "
-#| "<media type=\"image\" mime=\"image/png\" src=\"media/ubuntu.png\">Ubuntu</"
-#| "media> </link>"
msgid ""
"<link href=\"https://wiki.gnome.org/Apps/DeveloperTools/Installation/Ubuntu"
"\"> <media type=\"image\" mime=\"image/png\" src=\"media/ubuntu.png"
@@ -15202,10 +14488,6 @@ msgstr ""
#. (itstool) path: item/p
#: C/getting-ready.page:36
-#| msgid ""
-#| "<link href=\"http://live.gnome.org/DeveloperTools/Installation/Fedora\"> "
-#| "<media type=\"image\" mime=\"image/png\" src=\"media/fedora.png\">Fedora</"
-#| "media> </link>"
msgid ""
"<link href=\"https://wiki.gnome.org/Apps/DeveloperTools/Installation/Fedora"
"\"> <media type=\"image\" mime=\"image/png\" src=\"media/fedora.png"
@@ -15217,10 +14499,6 @@ msgstr ""
#. (itstool) path: item/p
#: C/getting-ready.page:41
-#| msgid ""
-#| "<link href=\"http://live.gnome.org/DeveloperTools/Installation/OpenSuSE"
-#| "\"> <media type=\"image\" mime=\"image/png\" src=\"media/opensuse.png"
-#| "\">OpenSuSE</media> </link>"
msgid ""
"<link href=\"https://wiki.gnome.org/Apps/DeveloperTools/Installation/OpenSuSE"
"\"> <media type=\"image\" mime=\"image/png\" src=\"media/opensuse.png"
@@ -15232,9 +14510,6 @@ msgstr ""
#. (itstool) path: item/p
#: C/getting-ready.page:46
-#| msgid ""
-#| "<link href=\"http://live.gnome.org/DeveloperTools/Installation\">Others</"
-#| "link>"
msgid ""
"<link href=\"https://wiki.gnome.org/Apps/DeveloperTools/Installation"
"\">Others</link>"
@@ -15310,7 +14585,7 @@ msgstr "GMenu"
#. (itstool) path: page/p
#: C/gmenu.c.page:22 C/gmenu.js.page:22 C/gmenu.py.page:30
-#: C/gmenu.vala.page:34
+#: C/gmenu.vala.page:31
msgid "A GtkApplication with a simple GMenu and SimpleActions"
msgstr "Una GtkApplication con un GMenu sencillo y SimpleActions"
@@ -15684,70 +14959,6 @@ msgstr "Una implementación sencilla de GMenu"
#. (itstool) path: section/code
#: C/gmenu.py.page:36
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " from gi.repository import Gtk\n"
-#| "from gi.repository import Gio\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"GMenu Example\", application=app)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup (self):\n"
-#| " # start the application\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # create a menu\n"
-#| " menu = Gio.Menu()\n"
-#| " # append to the menu three options\n"
-#| " menu.append(\"New\", \"app.new\")\n"
-#| " menu.append(\"About\", \"app.about\")\n"
-#| " menu.append(\"Quit\", \"app.quit\")\n"
-#| " # set the menu as menu of the application\n"
-#| " self.set_app_menu(menu)\n"
-#| "\n"
-#| " # create an action for the option \"new\" of the menu\n"
-#| " new_action = Gio.SimpleAction.new(\"new\", None)\n"
-#| " # connect it to the callback function new_cb\n"
-#| " new_action.connect(\"activate\", self.new_cb)\n"
-#| " # add the action to the application\n"
-#| " self.add_action(new_action)\n"
-#| "\n"
-#| " # option \"about\"\n"
-#| " about_action = Gio.SimpleAction.new(\"about\", None)\n"
-#| " about_action.connect(\"activate\", self.about_cb)\n"
-#| " self.add_action(about_action)\n"
-#| "\n"
-#| " # option \"quit\"\n"
-#| " quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
-#| " quit_action.connect(\"activate\", self.quit_cb)\n"
-#| " self.add_action(quit_action)\n"
-#| "\n"
-#| " # callback function for \"new\"\n"
-#| " def new_cb(self, action, parameter):\n"
-#| " print \"This does nothing. It is only a demonstration.\"\n"
-#| "\n"
-#| " # callback function for \"about\"\n"
-#| " def about_cb(self, action, parameter):\n"
-#| " print \"No AboutDialog for you. This is only a demonstration.\"\n"
-#| "\n"
-#| " # callback function for \"quit\"\n"
-#| " def quit_cb(self, action, parameter):\n"
-#| " print \"You have quit.\"\n"
-#| " self.quit()\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"\n"
" from gi.repository import Gtk\n"
@@ -16143,20 +15354,70 @@ msgstr ""
"<em style=\"strong\">Necesita ejecutar GTK+-3.4 o superior para que "
"funcione</em>"
-#. (itstool) path: note/p
-#: C/gmenu.vala.page:32
-msgid ""
-"This program will not compile with the quit action connected until <link "
-"href=\"https://bugzilla.gnome.org/show_bug.cgi?id=674090\">Bug #674090</"
-"link> is fixed. Therefore, the problematic line has been commented out."
-msgstr ""
-"Este programa no compilará con la opción de «salir» conectada hasta que se "
-"resuelva el <link href=\"https://bugzilla.gnome.org/show_bug.cgi?"
-"id=674090\">error nº 674090</link>. Por lo tanto, esa línea se ha comentado"
-
#. (itstool) path: page/code
-#: C/gmenu.vala.page:36
+#: C/gmenu.vala.page:33
#, no-wrap
+#| msgid ""
+#| "/* A window in the application. */\n"
+#| "public class Window : Gtk.ApplicationWindow {\n"
+#| "\n"
+#| "\t/* Constructor */\n"
+#| "\tpublic Window (Application app) {\n"
+#| "\t\tObject (application: app, title: \"Gmenu Example\");\n"
+#| "\n"
+#| "\t\tvar about_action = new SimpleAction (\"about\", null);\n"
+#| "\n"
+#| "\t\t/* Connect the 'activate' signal to the\n"
+#| "\t\t * signal handler (aka. callback).\n"
+#| "\t\t */\n"
+#| "\t\tabout_action.activate.connect (this.about_cb);\n"
+#| "\n"
+#| "\t\t/* Add the action to this window. */\n"
+#| "\t\tthis.add_action (about_action);\n"
+#| "\n"
+#| "\t\tthis.show ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Signal handler for 'activate' signal of the SimpleAction. */\n"
+#| "\tvoid about_cb (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\tprint (\"This does nothing. It is only a demonstration.\\n\");\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* This is the Application. */\n"
+#| "public class Application : Gtk.Application {\n"
+#| "\n"
+#| "\t/* Constructor */\n"
+#| "\tpublic Application () {\n"
+#| "\t\tObject (application_id: \"org.example.application\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Override the 'activate' signal of GLib.Application. */\n"
+#| "\tprotected override void activate () {\n"
+#| "\n"
+#| "\t\t/* Create a new window for this application. */\n"
+#| "\t\tnew Window (this);\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Override the 'startup' signal of GLib.Application. */\n"
+#| "\tprotected override void startup () {\n"
+#| "\t\tbase.startup ();\n"
+#| "\n"
+#| "\t\tvar menu = new Menu ();\n"
+#| "\t\tmenu.append (\"About\", \"win.about\");\n"
+#| "\t\tmenu.append (\"Quit\", \"app.quit\");\n"
+#| "\t\tthis.app_menu = menu;\n"
+#| "\n"
+#| "\t\tvar quit_action = new SimpleAction (\"quit\", null);\n"
+#| "\t\t//quit_action.activate.connect (this.quit);\n"
+#| "\t\tthis.add_action (quit_action);\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* main function creates Application and runs it. */\n"
+#| "int main (string[] args) {\n"
+#| "\treturn new Application ().run (args);\n"
+#| "}\n"
msgid ""
"/* A window in the application. */\n"
"public class Window : Gtk.ApplicationWindow {\n"
@@ -16209,7 +15470,7 @@ msgid ""
"\t\tthis.app_menu = menu;\n"
"\n"
"\t\tvar quit_action = new SimpleAction (\"quit\", null);\n"
-"\t\t//quit_action.activate.connect (this.quit);\n"
+"\t\tquit_action.activate.connect (this.quit);\n"
"\t\tthis.add_action (quit_action);\n"
"\t}\n"
"}\n"
@@ -16270,7 +15531,7 @@ msgstr ""
"\t\tthis.app_menu = menu;\n"
"\n"
"\t\tvar quit_action = new SimpleAction (\"quit\", null);\n"
-"\t\t//quit_action.activate.connect (this.quit);\n"
+"\t\tquit_action.activate.connect (this.quit);\n"
"\t\tthis.add_action (quit_action);\n"
"\t}\n"
"}\n"
@@ -16281,14 +15542,14 @@ msgstr ""
"}\n"
#. (itstool) path: item/p
-#: C/gmenu.vala.page:43
+#: C/gmenu.vala.page:40
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.Menu.html\">Menu</link>"
msgstr ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.Menu.html\">Menu</link>"
#. (itstool) path: item/p
-#: C/gmenu.vala.page:44
+#: C/gmenu.vala.page:41
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.Menu.append.html\">append</"
"link>"
@@ -16297,7 +15558,7 @@ msgstr ""
"link>"
#. (itstool) path: item/p
-#: C/gmenu.vala.page:45
+#: C/gmenu.vala.page:42
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.SimpleAction.html"
"\">SimpleAction</link>"
@@ -16306,7 +15567,7 @@ msgstr ""
"\">SimpleAction</link>"
#. (itstool) path: item/p
-#: C/gmenu.vala.page:46
+#: C/gmenu.vala.page:43
msgid ""
"<link href=\"http://www.valadoc.org/gio-2.0/GLib.ActionMap.add_action.html"
"\">add_action</link>"
@@ -16707,47 +15968,6 @@ msgstr "Algunas etiquetas en una rejilla."
#. (itstool) path: section/code
#: C/grid.py.page:37
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Grid Example\", application=app)\n"
-#| "\n"
-#| " # three labels\n"
-#| " label_top_left = Gtk.Label(label=\"This is Top Left\")\n"
-#| " label_top_right = Gtk.Label(label=\"This is Top Right\")\n"
-#| " label_bottom = Gtk.Label(label=\"This is Bottom\")\n"
-#| "\n"
-#| " # a grid\n"
-#| " grid = Gtk.Grid()\n"
-#| "\n"
-#| " # some space between the columns of the grid\n"
-#| " grid.set_column_spacing(20)\n"
-#| "\n"
-#| " # in the grid:\n"
-#| " # attach the first label in the top left corner\n"
-#| " grid.attach(label_top_left, 0, 0, 1, 1)\n"
-#| " # attach the second label\n"
-#| " grid.attach(label_top_right, 1, 0, 1, 1)\n"
-#| " # attach the third label below the first label\n"
-#| " grid.attach_next_to(label_bottom, label_top_left, Gtk.PositionType.BOTTOM, 2, 1)\n"
-#| "\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -16914,7 +16134,7 @@ msgstr ""
"valor predeterminado, y <code>32767</code>."
#. (itstool) path: item/p
-#: C/grid.py.page:58 C/label.py.page:89 C/separator.c.page:40
+#: C/grid.py.page:58 C/label.py.page:104 C/separator.c.page:40
#: C/separator.py.page:41 C/switch.py.page:45
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkLabel.html"
@@ -16924,7 +16144,7 @@ msgstr ""
"\">GtkLabel</link>"
#. (itstool) path: item/p
-#: C/grid.py.page:59 C/image.py.page:102 C/paned.c.page:37 C/paned.py.page:43
+#: C/grid.py.page:59 C/paned.c.page:37 C/paned.py.page:43
#: C/scrolledwindow.py.page:46
msgid ""
"<link href=\"http://developer.gnome.org/gtk3/unstable/GtkImage.html"
@@ -17279,48 +16499,18 @@ msgid "ApplicationWindow (Python)"
msgstr "ApplicationWindow (Python)"
#. (itstool) path: page/p
-#: C/GtkApplicationWindow.py.page:29 C/GtkApplicationWindow.vala.page:22
-msgid "The simplest GtkApplication Window which can support Menus."
-msgstr "La ventana de GtkApplication más sencilla que puede soportar menús."
+#: C/GtkApplicationWindow.py.page:29
+#| msgid "The simplest GtkApplication Window which can support Menus."
+msgid ""
+"The simplest GtkApplication Window which can support <link xref=\"gmenu.py\"/"
+">."
+msgstr ""
+"La ventana de GtkApplication más sencilla que puede soportar <link xref="
+"\"gmenu.py\"/>."
#. (itstool) path: section/code
#: C/GtkApplicationWindow.py.page:36
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "# a Gtk ApplicationWindow\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # constructor: the title is \"Welcome to GNOME\" and the window belongs\n"
-#| " # to the application app\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " # constructor of the Gtk Application\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " # create and activate a MyWindow, with self (the MyApplication) as\n"
-#| " # application the window belongs to.\n"
-#| " # Note that the function in C activate() becomes do_activate() in Python\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " # show the window and all its content\n"
-#| " # this line could go in the constructor of MyWindow as well\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " # start up the application\n"
-#| " # Note that the function in C startup() becomes do_startup() in Python\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "# create and run the application, exit with the value returned by\n"
-#| "# running the program\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -17436,6 +16626,11 @@ msgctxt "text"
msgid "ApplicationWindow (Vala)"
msgstr "ApplicationWindow (Vala)"
+#. (itstool) path: page/p
+#: C/GtkApplicationWindow.vala.page:22
+msgid "The simplest GtkApplication Window which can support Menus."
+msgstr "La ventana de GtkApplication más sencilla que puede soportar menús."
+
#. (itstool) path: page/code
#: C/GtkApplicationWindow.vala.page:24
#, no-wrap
@@ -23100,39 +22295,8 @@ msgid "hello-world.py"
msgstr "hola-mundo.py"
#. (itstool) path: section/code
-#: C/hello-world.py.page:102 C/label.py.page:37
+#: C/hello-world.py.page:102 C/label.py.page:38
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # constructor for a Gtk.ApplicationWindow\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
-#| " self.set_default_size(200, 100)\n"
-#| "\n"
-#| " # create a label\n"
-#| " label = Gtk.Label()\n"
-#| " # set the text of the label\n"
-#| " label.set_text(\"Hello GNOME!\")\n"
-#| " # add the label to the window\n"
-#| " self.add(label)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -23489,7 +22653,7 @@ msgstr ""
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/image.c.page:21 C/image.js.page:20 C/image.py.page:23
+#: C/image.c.page:21 C/image.js.page:20 C/image.py.page:28
#: C/image.vala.page:21
msgctxt "_"
msgid "external ref='media/image.png' md5='9416aa74d9d6a857783f7a36338e7a02'"
@@ -23502,19 +22666,19 @@ msgid "Image (C)"
msgstr "Image (C)"
#. (itstool) path: info/desc
-#: C/image.c.page:17 C/image.js.page:16 C/image.py.page:19
+#: C/image.c.page:17 C/image.js.page:16 C/image.py.page:24
#: C/image.vala.page:17
msgid "A widget displaying an image"
msgstr "Un widget que muestra una imagen"
#. (itstool) path: page/title
-#: C/image.c.page:20 C/image.js.page:19 C/image.py.page:22
+#: C/image.c.page:20 C/image.js.page:19 C/image.py.page:27
#: C/image.vala.page:20
msgid "Image"
msgstr "Image"
#. (itstool) path: page/p
-#: C/image.c.page:22 C/image.js.page:21 C/image.py.page:24
+#: C/image.c.page:22 C/image.js.page:21 C/image.py.page:29
#: C/image.vala.page:22
msgid "This GtkApplication displays an image file from the current directory."
msgstr ""
@@ -23767,26 +22931,42 @@ msgctxt "text"
msgid "Image (Python)"
msgstr "Image (Python)"
+#. (itstool) path: credit/name
+#: C/image.py.page:19
+msgid "Sindhu S"
+msgstr "Sindhu S"
+
+#. (itstool) path: credit/years
+#: C/image.py.page:21
+msgid "2014"
+msgstr "2014"
+
#. (itstool) path: note/p
-#: C/image.py.page:26
+#: C/image.py.page:31
+#| msgid ""
+#| "If the image file is not loaded successfully, the image will contain a "
+#| "\"broken image\" icon. The <file>filename.png</file> needs to be in the "
+#| "current directory for this code to work."
msgid ""
"If the image file is not loaded successfully, the image will contain a "
-"\"broken image\" icon. The <file>filename.png</file> needs to be in the "
-"current directory for this code to work."
+"\"broken image\" icon. <file>filename.png</file> needs to be in the current "
+"directory for this code to work."
msgstr ""
"Si el archivo de imagen no se carga correctamente, la imagen tendrá un icono "
"de «imagen rota». El archivo <file>nombre_archivo.png</file> debe estar en "
"la carpeta actual para que este código funcione."
#. (itstool) path: section/code
-#: C/image.py.page:35
+#: C/image.py.page:42
#, no-wrap
#| msgid ""
#| "from gi.repository import Gtk\n"
#| "import sys\n"
#| "\n"
+#| "\n"
#| "class MyWindow(Gtk.ApplicationWindow):\n"
#| " # create a window\n"
+#| "\n"
#| " def __init__(self, app):\n"
#| " Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
#| " self.set_default_size(300, 300)\n"
@@ -23798,7 +22978,9 @@ msgstr ""
#| " # add the image to the window\n"
#| " self.add(image)\n"
#| "\n"
+#| "\n"
#| "class MyApplication(Gtk.Application):\n"
+#| "\n"
#| " def __init__(self):\n"
#| " Gtk.Application.__init__(self)\n"
#| "\n"
@@ -23813,7 +22995,8 @@ msgstr ""
#| "exit_status = app.run(sys.argv)\n"
#| "sys.exit(exit_status)\n"
msgid ""
-"from gi.repository import Gtk\n"
+"\n"
+" from gi.repository import Gtk\n"
"import sys\n"
"\n"
"\n"
@@ -23847,8 +23030,11 @@ msgid ""
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
+"\n"
+" "
msgstr ""
-"from gi.repository import Gtk\n"
+"\n"
+" from gi.repository import Gtk\n"
"import sys\n"
"\n"
"\n"
@@ -23882,9 +23068,11 @@ msgstr ""
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
"sys.exit(exit_status)\n"
+"\n"
+" "
#. (itstool) path: section/p
-#: C/image.py.page:37
+#: C/image.py.page:46
msgid ""
"Another way to obtain what we have in the example is to create the image as "
"an instance of another class and add it to the instance of <code>MyWindow</"
@@ -23895,23 +23083,48 @@ msgstr ""
"code> en el método <code>do_activate(self)</code>:"
#. (itstool) path: section/code
-#: C/image.py.page:38
+#: C/image.py.page:50
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "# a class to create a window\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
+#| " self.set_default_size(300, 300)\n"
+#| "\n"
+#| "# a class to create an image\n"
+#| "class MyImage(Gtk.Image):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Image.__init__(self)\n"
+#| " self.set_from_file(\"gnome-image.png\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " # create an instance of MyWindow\n"
+#| " win = MyWindow(self)\n"
+#| " # create an instance of MyImage and add it to the window\n"
+#| " win.add(MyImage())\n"
+#| " # show the window and everything on it\n"
+#| " win.show_all()"
msgid ""
"\n"
-"# a class to create a window\n"
-"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a class to create a window\n"
+" class MyWindow(Gtk.ApplicationWindow):\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
" self.set_default_size(300, 300)\n"
"\n"
-"# a class to create an image\n"
-"class MyImage(Gtk.Image):\n"
+" # a class to create an image\n"
+" class MyImage(Gtk.Image):\n"
" def __init__(self):\n"
" Gtk.Image.__init__(self)\n"
" self.set_from_file(\"gnome-image.png\")\n"
"\n"
-"class MyApplication(Gtk.Application):\n"
+" class MyApplication(Gtk.Application):\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -23921,22 +23134,23 @@ msgid ""
" # create an instance of MyImage and add it to the window\n"
" win.add(MyImage())\n"
" # show the window and everything on it\n"
-" win.show_all()"
+" win.show_all()\n"
+" "
msgstr ""
"\n"
-"# a class to create a window\n"
-"class MyWindow(Gtk.ApplicationWindow):\n"
+" # a class to create a window\n"
+" class MyWindow(Gtk.ApplicationWindow):\n"
" def __init__(self, app):\n"
" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
" self.set_default_size(300, 300)\n"
"\n"
-"# a class to create an image\n"
-"class MyImage(Gtk.Image):\n"
+" # a class to create an image\n"
+" class MyImage(Gtk.Image):\n"
" def __init__(self):\n"
" Gtk.Image.__init__(self)\n"
" self.set_from_file(\"gnome-image.png\")\n"
"\n"
-"class MyApplication(Gtk.Application):\n"
+" class MyApplication(Gtk.Application):\n"
" def __init__(self):\n"
" Gtk.Application.__init__(self)\n"
"\n"
@@ -23946,108 +23160,111 @@ msgstr ""
" # create an instance of MyImage and add it to the window\n"
" win.add(MyImage())\n"
" # show the window and everything on it\n"
-" win.show_all()"
-
-#. (itstool) path: section/title
-#: C/image.py.page:65
-msgid "Useful methods for an Image widget"
-msgstr "Métodos útiles para un widget «Image»"
+" win.show_all()\n"
+" "
-#. (itstool) path: item/p
-#: C/image.py.page:68
+#. (itstool) path: note/p
+#: C/image.py.page:77
msgid ""
-"To set a stock icon as image, you can use <code>set_from_stock(stock_id, "
-"size)</code> where <code>stock_id</code> is a stock icon such as <code>Gtk."
-"STOCK_ABOUT</code> (more can be found at <link href=\"http://developer.gnome."
-"org/gtk3/unstable/gtk3-Stock-Items\">Stock Items</link>, with the caveat "
-"that they should be modified as above) and <code>size</code> is a stock icon "
-"size to be chosen from <code>Gtk.IconSize.INVALID, Gtk.IconSize.MENU, Gtk."
-"IconSize.SMALL_TOOLBAR, Gtk.IconSize.LARGE_TOOLBAR, Gtk.IconSize.BUTTON, Gtk."
-"IconSize.DND, Gtk.IconSize.DIALOG</code>."
+"To use this code snippet, you will need to add the code that imports "
+"<code>Gtk</code> and <code>GdkPixbuf</code> from <code>gi.repository</code> "
+"and lines that instantiate the <code>MyApplication</code> window."
msgstr ""
-"Para establecer un icono del almacén como imagen, puede usar "
-"<code>set_from_stock(id_almacén, tamaño)</code> donde <code>id_almacén</"
-"code> es un icono del almacén como <code>Gtk.STOCK_ABOUT</code> (puede "
-"encontrar más en <link href=\"http://developer.gnome.org/gtk3/unstable/gtk3-"
-"Stock-Items\">Elementos del almacén</link>, teniendo en cuenta que deben "
-"modificarse como anteriormente) y un <code>tamaño</code> de icono del "
-"almacén, que puede ser <code>Gtk.IconSize.INVALID, Gtk.IconSize.MENU, Gtk."
-"IconSize.SMALL_TOOLBAR, Gtk.IconSize.LARGE_TOOLBAR, Gtk.IconSize.BUTTON, Gtk."
-"IconSize.DND, Gtk.IconSize.DIALOG</code>."
-#. (itstool) path: item/p
-#: C/image.py.page:69
-msgid ""
-"You can also use <code>set_from_icon_name(icon_name, size)</code>, where "
-"<code>icon_name</code> is a stock icon name such as <code>\"gtk-about\"</"
-"code> (more can be found as above) and <code>size</code> is as above."
-msgstr ""
-"También puede usar <code>set_from_icon_name(nombre_icono, tamaño)</code> "
-"donde <code>nombre_icono</code> es un nombre de icono del almacén como "
-"<code>«gtk-about»</code> (puede encontrar más como se mencionó) y "
-"<code>tamaño</code> es igual que con «set_from_stock»."
+#. (itstool) path: section/title
+#: C/image.py.page:84
+msgid "Useful methods for an Image widget"
+msgstr "Métodos útiles para un widget «Image»"
#. (itstool) path: item/p
-#: C/image.py.page:70
+#: C/image.py.page:88
+#| msgid ""
+#| "To load an image over a network use <code>set_from_pixbuf(pixbuf)</code>, "
+#| "where <code>pixbuf</code> is a <link href=\"http://developer.gnome.org/"
+#| "gdk-pixbuf/unstable//index.html\">GdkPixbuf</link>."
msgid ""
"To load an image over a network use <code>set_from_pixbuf(pixbuf)</code>, "
-"where <code>pixbuf</code> is a <link href=\"http://developer.gnome.org/gdk-"
-"pixbuf/unstable//index.html\">GdkPixbuf</link>."
+"where <code>pixbuf</code> is a <link href=\"https://developer.gnome.org/gdk-"
+"pixbuf/unstable/index.html\"> GdkPixbuf</link>."
msgstr ""
"Para cargar una imagen por red, use <code>set_from_pixbuf(pixbuf)</code>, "
"donde <code>pixbuf</code> es un <link href=\"http://developer.gnome.org/gdk-"
-"pixbuf/unstable//index.html\">GdkPixbuf</link>."
+"pixbuf/unstable//index.html\"> GdkPixbuf</link>."
#. (itstool) path: item/code
-#: C/image.py.page:71
+#: C/image.py.page:92
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "from gi.repository import Gtk\n"
+#| "from gi.repository import GdkPixbuf\n"
+#| "import sys\n"
+#| "\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " # create a window\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
+#| " self.set_default_size(300, 300)\n"
+#| "\n"
+#| " # create a pixbuf from file filename=\"gnome-image.png\", with width=32\n"
+#| " # and height=64 amd boolean preserve_aspect_ratio=False.\n"
+#| " pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(\"gnome-image.png\", 64, 128, False)\n"
+#| "\n"
+#| " # create an image\n"
+#| " image = Gtk.Image()\n"
+#| " # set the content of the image as the pixbuf\n"
+#| " image.set_from_pixbuf(pixbuf)\n"
+#| " # add the image to the window\n"
+#| " self.add(image)"
msgid ""
"\n"
-"from gi.repository import Gtk\n"
-"from gi.repository import GdkPixbuf\n"
-"import sys\n"
+" from gi.repository import Gtk\n"
+" from gi.repository import GdkPixbuf\n"
+" import sys\n"
"\n"
-"class MyWindow(Gtk.ApplicationWindow):\n"
-" # create a window\n"
-" def __init__(self, app):\n"
-" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
-" self.set_default_size(300, 300)\n"
+" class MyWindow(Gtk.ApplicationWindow):\n"
+" # create a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
+" self.set_default_size(300, 300)\n"
"\n"
-" # create a pixbuf from file filename=\"gnome-image.png\", with width=32\n"
-" # and height=64 amd boolean preserve_aspect_ratio=False.\n"
-" pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(\"gnome-image.png\", 64, 128, False)\n"
+" # create a pixbuf from file filename=\"gnome-image.png\", with width=32\n"
+" # and height=64 amd boolean preserve_aspect_ratio=False.\n"
+" pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(\"gnome-image.png\", 64, 128, False)\n"
"\n"
-" # create an image\n"
-" image = Gtk.Image()\n"
-" # set the content of the image as the pixbuf\n"
-" image.set_from_pixbuf(pixbuf)\n"
-" # add the image to the window\n"
-" self.add(image)"
+" # create an image\n"
+" image = Gtk.Image()\n"
+" # set the content of the image as the pixbuf\n"
+" image.set_from_pixbuf(pixbuf)\n"
+" # add the image to the window\n"
+" self.add(image)\n"
+" "
msgstr ""
"\n"
-"from gi.repository import Gtk\n"
-"from gi.repository import GdkPixbuf\n"
-"import sys\n"
+" from gi.repository import Gtk\n"
+" from gi.repository import GdkPixbuf\n"
+" import sys\n"
"\n"
-"class MyWindow(Gtk.ApplicationWindow):\n"
-" # create a window\n"
-" def __init__(self, app):\n"
-" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
-" self.set_default_size(300, 300)\n"
+" class MyWindow(Gtk.ApplicationWindow):\n"
+" # create a window\n"
+" def __init__(self, app):\n"
+" Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
+" self.set_default_size(300, 300)\n"
"\n"
-" # create a pixbuf from file filename=\"gnome-image.png\", with width=32\n"
-" # and height=64 amd boolean preserve_aspect_ratio=False.\n"
-" pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(\"gnome-image.png\", 64, 128, False)\n"
+" # create a pixbuf from file filename=\"gnome-image.png\", with width=32\n"
+" # and height=64 amd boolean preserve_aspect_ratio=False.\n"
+" pixbuf = GdkPixbuf.Pixbuf.new_from_file_at_scale(\"gnome-image.png\", 64, 128, False)\n"
"\n"
-" # create an image\n"
-" image = Gtk.Image()\n"
-" # set the content of the image as the pixbuf\n"
-" image.set_from_pixbuf(pixbuf)\n"
-" # add the image to the window\n"
-" self.add(image)"
+" # create an image\n"
+" image = Gtk.Image()\n"
+" # set the content of the image as the pixbuf\n"
+" image.set_from_pixbuf(pixbuf)\n"
+" # add the image to the window\n"
+" self.add(image)\n"
+" "
#. (itstool) path: item/p
-#: C/image.py.page:92
+#: C/image.py.page:114
msgid ""
"If <code>preserve_aspect_ratio=True</code> we can use "
"<code>new_from_file_at_size(filename, width, height)</code>. If <code>width</"
@@ -24059,13 +23276,46 @@ msgstr ""
"restringen."
#. (itstool) path: item/p
-#: C/image.py.page:93
+#: C/image.py.page:118
+#| msgid ""
+#| "For loading from an input stream, see <code>new_from_stream()</code> and "
+#| "<code>new_from_stream_at_scale()</code> in the documentation"
msgid ""
"For loading from an input stream, see <code>new_from_stream()</code> and "
-"<code>new_from_stream_at_scale()</code> in the documentation"
+"<code>new_from_stream_at_scale()</code> in the documentation."
msgstr ""
"Para cargar de un flujo de entrada, consulte <code>new_from_stream()</code> "
-"y <code>new_from_stream_at_scale()</code> en la documentación"
+"y <code>new_from_stream_at_scale()</code> en la documentación."
+
+#. (itstool) path: item/p
+#: C/image.py.page:130
+#| msgid ""
+#| "<link href=\"http://developer.gnome.org/gtk3/unstable/GtkImage.html"
+#| "\">GtkImage</link>"
+msgid ""
+"<link href=\"https://developer.gnome.org/gtk3/unstable/GtkImage.html\"> "
+"GtkImage</link>"
+msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/unstable/GtkImage.html\"> "
+"GtkImage</link>"
+
+#. (itstool) path: item/p
+#: C/image.py.page:134
+#| msgid ""
+#| "<link href=\"http://developer.gnome.org/gtk3/unstable/GtkWindow.html"
+#| "\">GtkWindow</link>"
+msgid ""
+"<link href=\"https://developer.gnome.org/gtk3/unstable/GtkWindow.html\"> "
+"GtkWindow</link>"
+msgstr ""
+"<link href=\"https://developer.gnome.org/gtk3/unstable/GtkWindow.html\"> "
+"GtkWindow</link>"
+
+#. (itstool) path: page/section
+#: C/image.py.page:124
+#| msgid "<_:item-1/> <_:item-2/> <_:item-3/> <_:item-4/>."
+msgid "<_:title-1/> <_:p-2/> <_:list-3/> q"
+msgstr "<_:title-1/> <_:p-2/> <_:list-3/> q"
#. (itstool) path: info/title
#: C/image.vala.page:7
@@ -25527,24 +24777,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/image-viewer.js.page:162
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "\n"
-#| "function ImageViewer () {\n"
-#| " this._init ();\n"
-#| "}\n"
-#| "\n"
-#| "ImageViewer.prototype = {\n"
-#| " _init: function () {\n"
-#| " this.window = new Gtk.Window ({title: \"Image Viewer Demo\"});\n"
-#| " this.window.show ();\n"
-#| " }\n"
-#| "}\n"
-#| "\n"
-#| "Gtk.init (0, null);\n"
-#| "var iv = new ImageViewer ();\n"
-#| "Gtk.main ();"
msgid ""
"\n"
"const Gtk = imports.gi.Gtk;\n"
@@ -27451,7 +26683,7 @@ msgstr "Código de ejemplo tutoriales"
#. the file changes, the md5 hash will change to let you know you need to
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
-#: C/label.c.page:25 C/label.js.page:21 C/label.py.page:29
+#: C/label.c.page:25 C/label.js.page:21 C/label.py.page:30
#: C/label.vala.page:21
msgctxt "_"
msgid "external ref='media/label.png' md5='734975c18653d88379f983e4501c3fc0'"
@@ -27470,7 +26702,7 @@ msgstr "Un widget que muestra un texto"
#. (itstool) path: page/title
#. (itstool) path: td/p
-#: C/label.c.page:21 C/label.js.page:20 C/label.py.page:28
+#: C/label.c.page:21 C/label.js.page:20 C/label.py.page:29
#: C/label.vala.page:20 C/toolbar_builder.py.page:97
#: C/toolbar_builder.vala.page:80
msgid "Label"
@@ -27478,7 +26710,7 @@ msgstr "Etiqueta"
#. (itstool) path: td/p
#. (itstool) path: page/p
-#: C/label.c.page:26 C/label.py.page:30 C/label.vala.page:22
+#: C/label.c.page:26 C/label.py.page:31 C/label.vala.page:22
msgid "A simple label"
msgstr "Una etiqueta sencilla"
@@ -27735,18 +26967,18 @@ msgstr ""
"\">Gtk.Label</link>"
#. (itstool) path: info/title
-#: C/label.py.page:7
+#: C/label.py.page:8
msgctxt "text"
msgid "Label (Python)"
msgstr "Label (Python)"
#. (itstool) path: info/desc
-#: C/label.py.page:25
+#: C/label.py.page:26
msgid "A widget that displays a small to medium amount of text"
msgstr "Un widget que muestra una cantidad pequeña o mediana de texto"
#. (itstool) path: section/p
-#: C/label.py.page:39
+#: C/label.py.page:40
msgid ""
"Another way to obtain what we have in the example is to create the label as "
"an instance of another class and add it to the instance of <code>MyWindow</"
@@ -27756,9 +26988,45 @@ msgstr ""
"como una instancia de otra clase y añadirle la instancia de <code>MyWindow</"
"code> en el método <code>do_activate(self)</code>:"
+#. (itstool) path: note/p
+#: C/label.py.page:42
+msgid ""
+"The highlighted lines indicate code that is different from the previous "
+"snippet."
+msgstr ""
+"Las líneas de texto resaltadas indican que el código es diferente al del "
+"fragmento anterior."
+
#. (itstool) path: section/code
-#: C/label.py.page:40
+#: C/label.py.page:44
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "# a class to define a window\n"
+#| "class MyWindow(Gtk.ApplicationWindow):\n"
+#| " def __init__(self, app):\n"
+#| " Gtk.Window.__init__(self, title=\"Welcome to GNOME\", application=app)\n"
+#| " self.set_default_size(200, 100)\n"
+#| "\n"
+#| "# a class to define a label\n"
+#| "class MyLabel(Gtk.Label):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Label.__init__(self)\n"
+#| " self.set_text(\"Hello GNOME!\")\n"
+#| "\n"
+#| "class MyApplication(Gtk.Application):\n"
+#| " def __init__(self):\n"
+#| " Gtk.Application.__init__(self)\n"
+#| "\n"
+#| " def do_activate(self):\n"
+#| " # create an instance of MyWindow\n"
+#| " win = MyWindow(self)\n"
+#| " # create an instance of MyLabel\n"
+#| " label = MyLabel()\n"
+#| " # and add it to the window\n"
+#| " win.add(label)\n"
+#| " # show the window and everything on it\n"
+#| " win.show_all()"
msgid ""
"\n"
"# a class to define a window\n"
@@ -27768,10 +27036,12 @@ msgid ""
" self.set_default_size(200, 100)\n"
"\n"
"# a class to define a label\n"
+"<hi>\n"
"class MyLabel(Gtk.Label):\n"
" def __init__(self):\n"
" Gtk.Label.__init__(self)\n"
" self.set_text(\"Hello GNOME!\")\n"
+"</hi>\n"
"\n"
"class MyApplication(Gtk.Application):\n"
" def __init__(self):\n"
@@ -27780,10 +27050,15 @@ msgid ""
" def do_activate(self):\n"
" # create an instance of MyWindow\n"
" win = MyWindow(self)\n"
+"\n"
" # create an instance of MyLabel\n"
+"<hi>\n"
" label = MyLabel()\n"
+"</hi>\n"
" # and add it to the window\n"
+"<hi>\n"
" win.add(label)\n"
+"</hi>\n"
" # show the window and everything on it\n"
" win.show_all()"
msgstr ""
@@ -27795,10 +27070,12 @@ msgstr ""
" self.set_default_size(200, 100)\n"
"\n"
"# a class to define a label\n"
+"<hi>\n"
"class MyLabel(Gtk.Label):\n"
" def __init__(self):\n"
" Gtk.Label.__init__(self)\n"
" self.set_text(\"Hello GNOME!\")\n"
+"</hi>\n"
"\n"
"class MyApplication(Gtk.Application):\n"
" def __init__(self):\n"
@@ -27807,29 +27084,37 @@ msgstr ""
" def do_activate(self):\n"
" # create an instance of MyWindow\n"
" win = MyWindow(self)\n"
+"\n"
" # create an instance of MyLabel\n"
+"<hi>\n"
" label = MyLabel()\n"
+"</hi>\n"
" # and add it to the window\n"
+"<hi>\n"
" win.add(label)\n"
+"</hi>\n"
" # show the window and everything on it\n"
" win.show_all()"
#. (itstool) path: section/title
-#: C/label.py.page:70
+#: C/label.py.page:81
msgid "Useful methods for a Label widget"
msgstr "Métodos útiles para un widget «Label»"
-#. (itstool) path: section/p
-#: C/label.py.page:71
+#. (itstool) path: note/p
+#: C/label.py.page:84
+#| msgid ""
+#| "An explanation of how to deal with strings in GTK+ can be found in <link "
+#| "xref=\"strings.py\"/>."
msgid ""
-"An explanation of how to deal with strings in GTK+ can be found in <link "
+"An explanation of how to work with strings in GTK+ can be found in <link "
"xref=\"strings.py\"/>."
msgstr ""
-"Una explicación de cómo manejarse con cadenas en GTK+ puede encontrarse en "
-"la <link xref=\"strings.py\"/>."
+"Puede encontrar una explicación de cómo trabajar con cadenas en GTK+ en la "
+"<link xref=\"strings.py\"/>."
#. (itstool) path: item/p
-#: C/label.py.page:73
+#: C/label.py.page:88
msgid ""
"<code>set_line_wrap(True)</code> breaks lines if the text of the label "
"exceeds the size of the widget."
@@ -27838,7 +27123,7 @@ msgstr ""
"excede el tamaño del widget."
#. (itstool) path: item/p
-#: C/label.py.page:74
+#: C/label.py.page:89
msgid ""
"<code>set_justify(Gtk.Justification.LEFT)</code> (or <code>Gtk.Justification."
"RIGHT, Gtk.Justification.CENTER, Gtk.Justification.FILL</code>) sets the "
@@ -27851,7 +27136,7 @@ msgstr ""
"método no tiene efecto en una etiqueta de una sola línea."
#. (itstool) path: item/p
-#: C/label.py.page:75
+#: C/label.py.page:90
msgid ""
"For decorated text we can use <code>set_markup(\"text\")</code>, where <code>"
"\"text\"</code> is a text in the <link href=\"http://developer.gnome.org/"
@@ -27864,7 +27149,7 @@ msgstr ""
"link>. Un ejemplo:"
#. (itstool) path: item/code
-#: C/label.py.page:76
+#: C/label.py.page:91
#, no-wrap
msgid ""
"\n"
@@ -28328,38 +27613,6 @@ msgstr "Un botón que enlaza con una página web."
#. (itstool) path: section/code
#: C/linkbutton.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # a window\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"GNOME LinkButton\", application=app)\n"
-#| " self.set_default_size(250, 50)\n"
-#| "\n"
-#| " # a linkbutton pointing to the given URI\n"
-#| " button = Gtk.LinkButton(uri=\"http://live.gnome.org\")\n"
-#| " # with given text\n"
-#| " button.set_label(\"Link to GNOME live!\")\n"
-#| "\n"
-#| " # add the button to the window\n"
-#| " self.add(button)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup (self):\n"
-#| " Gtk.Application.do_startup (self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -29703,42 +28956,6 @@ msgstr "Añadir la barra de menú a la ventana usando «GtkBuilder»"
#. (itstool) path: section/code
#: C/menubar.py.page:49
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"MenuBar Example\", application=app)\n"
-#| " self.set_default_size(200, 200)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # a builder to add the UI designed with Glade to the grid:\n"
-#| " builder = Gtk.Builder()\n"
-#| " # get the file (if it is there)\n"
-#| " try:\n"
-#| " builder.add_from_file(\"menubar_basis.ui\")\n"
-#| " except:\n"
-#| " print \"file not found\"\n"
-#| " sys.exit()\n"
-#| "\n"
-#| " # we use the method Gtk.Application.set_menubar(menubar) to add the menubar\n"
-#| " # to the application (Note: NOT the window!)\n"
-#| " self.set_menubar(builder.get_object(\"menubar\"))\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -30383,166 +29600,6 @@ msgstr "Archivo de Python completo de este ejemplo"
#. (itstool) path: section/code
#: C/menubar.py.page:155
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import GLib\n"
-#| "from gi.repository import Gio\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"MenuBar Example\", application=app)\n"
-#| " self.set_default_size(200, 200)\n"
-#| "\n"
-#| " # action without a state created (name, parameter type)\n"
-#| " copy_action = Gio.SimpleAction.new(\"copy\", None)\n"
-#| " # connected with the callback function\n"
-#| " copy_action.connect(\"activate\", self.copy_callback)\n"
-#| " # added to the window\n"
-#| " self.add_action(copy_action)\n"
-#| "\n"
-#| " # action without a state created (name, parameter type)\n"
-#| " paste_action = Gio.SimpleAction.new(\"paste\", None)\n"
-#| " # connected with the callback function\n"
-#| " paste_action.connect(\"activate\", self.paste_callback)\n"
-#| " # added to the window\n"
-#| " self.add_action(paste_action)\n"
-#| "\n"
-#| " # action with a state created (name, parameter type, initial state)\n"
-#| " shape_action = Gio.SimpleAction.new_stateful(\"shape\", GLib.VariantType.new('s'),
GLib.Variant.new_string('line'))\n"
-#| " # connected to the callback function\n"
-#| " shape_action.connect(\"activate\", self.shape_callback)\n"
-#| " # added to the window\n"
-#| " self.add_action(shape_action)\n"
-#| "\n"
-#| " # action with a state created\n"
-#| " about_action = Gio.SimpleAction.new(\"about\", None)\n"
-#| " # action connected to the callback function\n"
-#| " about_action.connect(\"activate\", self.about_callback)\n"
-#| " # action added to the application\n"
-#| " self.add_action(about_action)\n"
-#| "\n"
-#| " # callback function for copy_action\n"
-#| " def copy_callback(self, action, parameter):\n"
-#| " print \"\\\"Copy\\\" activated\"\n"
-#| "\n"
-#| " # callback function for paste_action\n"
-#| " def paste_callback(self, action, parameter):\n"
-#| " print \"\\\"Paste\\\" activated\"\n"
-#| "\n"
-#| " # callback function for shape_action\n"
-#| " def shape_callback(self, action, parameter):\n"
-#| "\t\tprint \"Shape is set to\", parameter.get_string()\n"
-#| "\t\t# Note that we set the state of the action!\n"
-#| "\t\taction.set_state(parameter)\n"
-#| "\n"
-#| " # callback function for about (see the AboutDialog example)\n"
-#| " def about_callback(self, action, parameter):\n"
-#| " # a Gtk.AboutDialog\n"
-#| " aboutdialog = Gtk.AboutDialog()\n"
-#| "\n"
-#| " # lists of authors and documenters (will be used later)\n"
-#| " authors = [\"GNOME Documentation Team\"]\n"
-#| " documenters = [\"GNOME Documentation Team\"]\n"
-#| "\n"
-#| " # we fill in the aboutdialog\n"
-#| " aboutdialog.set_program_name(\"MenuBar Example\")\n"
-#| " aboutdialog.set_copyright(\"Copyright \\xc2\\xa9 2012 GNOME Documentation Team\")\n"
-#| " aboutdialog.set_authors(authors)\n"
-#| " aboutdialog.set_documenters(documenters)\n"
-#| " aboutdialog.set_website(\"http://developer.gnome.org\")\n"
-#| " aboutdialog.set_website_label(\"GNOME Developer Website\")\n"
-#| "\n"
-#| " # to close the aboutdialog when \"close\" is clicked we connect the\n"
-#| " # \"response\" signal to on_close\n"
-#| " aboutdialog.connect(\"response\", self.on_close)\n"
-#| " # show the aboutdialog\n"
-#| " aboutdialog.show()\n"
-#| "\n"
-#| " # a callback function to destroy the aboutdialog\n"
-#| " def on_close(self, action, parameter):\n"
-#| " action.destroy()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " # FIRST THING TO DO: do_startup()\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # action without a state created\n"
-#| " new_action = Gio.SimpleAction.new(\"new\", None)\n"
-#| " # action connected to the callback function\n"
-#| " new_action.connect(\"activate\", self.new_callback)\n"
-#| " # action added to the application\n"
-#| " self.add_action(new_action)\n"
-#| "\n"
-#| " # action without a state created\n"
-#| " quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
-#| " # action connected to the callback function\n"
-#| " quit_action.connect(\"activate\", self.quit_callback)\n"
-#| " # action added to the application\n"
-#| " self.add_action(quit_action)\n"
-#| "\n"
-#| " # action with a state created\n"
-#| " state_action = Gio.SimpleAction.new_stateful(\"state\", GLib.VariantType.new('s'),
GLib.Variant.new_string('off'))\n"
-#| " # action connected to the callback function\n"
-#| " state_action.connect(\"activate\", self.state_callback)\n"
-#| " # action added to the application\n"
-#| " self.add_action(state_action)\n"
-#| "\n"
-#| " # action with a state created\n"
-#| " awesome_action = Gio.SimpleAction.new_stateful(\"awesome\", None,
GLib.Variant.new_boolean(False))\n"
-#| " # action connected to the callback function\n"
-#| " awesome_action.connect(\"activate\", self.awesome_callback)\n"
-#| " # action added to the application\n"
-#| " self.add_action(awesome_action)\n"
-#| "\n"
-#| " # a builder to add the UI designed with Glade to the grid:\n"
-#| " builder = Gtk.Builder()\n"
-#| " # get the file (if it is there)\n"
-#| " try:\n"
-#| " builder.add_from_file(\"menubar.ui\")\n"
-#| " except:\n"
-#| " print \"file not found\"\n"
-#| " sys.exit()\n"
-#| "\n"
-#| " # we use the method Gtk.Application.set_menubar(menubar) to add the menubar\n"
-#| " # and the menu to the application (Note: NOT the window!)\n"
-#| " self.set_menubar(builder.get_object(\"menubar\"))\n"
-#| " self.set_app_menu(builder.get_object(\"appmenu\"))\n"
-#| "\n"
-#| " # callback function for new\n"
-#| " def new_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"New\\\"\"\n"
-#| "\n"
-#| " # callback function for quit\n"
-#| " def quit_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"Quit\\\"\"\n"
-#| " sys.exit()\n"
-#| "\n"
-#| " # callback function for state\n"
-#| " def state_callback(self, action, parameter):\n"
-#| " print \"State is set to\", parameter.get_string()\n"
-#| " action.set_state(parameter)\n"
-#| "\n"
-#| " # callback function for awesome\n"
-#| " def awesome_callback(self, action, parameter):\n"
-#| " action.set_state(GLib.Variant.new_boolean(not action.get_state()))\n"
-#| " if action.get_state().get_boolean() is True:\n"
-#| " print \"You checked \\\"Awesome\\\"\"\n"
-#| " else:\n"
-#| " print \"You unchecked \\\"Awesome\\\"\"\n"
-#| "\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import GLib\n"
@@ -31196,6 +30253,17 @@ msgstr ""
#. (itstool) path: item/code
#: C/menubar.vala.page:106
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "void new_cb (SimpleAction action, Variant? parameter) {\n"
+#| " print (\"You clicked \\\"New\\\"\\n\");\n"
+#| " //new MyWindow (this).show ();\n"
+#| "}\n"
+#| "\n"
+#| "void quit_cb (SimpleAction action, Variant? parameter) {\n"
+#| " print (\"You clicked \\\"Quit\\\"\\n\");\n"
+#| " //this.quit (); **Bug #674090**\n"
+#| "}"
msgid ""
"\n"
"void new_cb (SimpleAction action, Variant? parameter) {\n"
@@ -31205,7 +30273,7 @@ msgid ""
"\n"
"void quit_cb (SimpleAction action, Variant? parameter) {\n"
" print (\"You clicked \\\"Quit\\\"\\n\");\n"
-" //this.quit (); **Bug #674090**\n"
+" this.quit ();\n"
"}"
msgstr ""
"\n"
@@ -31216,7 +30284,7 @@ msgstr ""
"\n"
"void quit_cb (SimpleAction action, Variant? parameter) {\n"
" print (\"You clicked \\\"Quit\\\"\\n\");\n"
-" //this.quit (); **Bug #674090**\n"
+" this.quit ();\n"
"}"
#. (itstool) path: item/p
@@ -31290,6 +30358,106 @@ msgstr "Archivo de vala completo para este ejemplo"
#. (itstool) path: section/code
#: C/menubar.vala.page:157
#, no-wrap
+#| msgid ""
+#| "public class MyWindow : Gtk.ApplicationWindow {\n"
+#| "\n"
+#| "\t/* Callback functions for the window actions. */\n"
+#| "\tvoid copy_cb (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"\\\"Copy\\\" activated\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid paste_cb (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"\\\"Paste\\\" activated\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid shape_cb (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"shape is set to %s\\n\", parameter.get_string(null));\n"
+#| "\t\taction.set_state (parameter);\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Create the window actions. */\n"
+#| "\tconst ActionEntry[] actions = {\n"
+#| "\t\t/*{ \"action name\", cb to connect to \"activate\" signal, parameter type,\n"
+#| "\t\t initial state, cb to connect to \"change-state\" signal } */\n"
+#| "\t\t{ \"copy\", copy_cb },\n"
+#| "\t\t{ \"paste\", paste_cb },\n"
+#| "\t\t{ \"shape\", shape_cb, \"s\", \"'line'\"}\n"
+#| "\t};\n"
+#| "\n"
+#| "\tinternal MyWindow (MyApplication app) {\n"
+#| "\t\tObject (application: app, title: \"MenuBar Example\");\n"
+#| "\t\tthis.set_default_size (200, 200);\n"
+#| "\n"
+#| "\t\t/* Setup window actions. */\n"
+#| "\t\tthis.add_action_entries (actions, this);\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "class MyApplication: Gtk.Application {\n"
+#| "\tprotected override void activate () {\n"
+#| "\t\tnew MyWindow (this).show ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Callback functions for the application actions. */\n"
+#| "\tvoid new_cb (SimpleAction action, Variant? parameter) {\n"
+#| "\t\t//new MyWindow (this).show ();\n"
+#| "\t\tprint (\"You clicked \\\"New\\\"\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid quit_cb (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"You clicked \\\"Quit\\\"\\n\");\n"
+#| "\t\t//this.quit (); **Bug #674090**\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid awesome_cb (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tvar active = action.get_state ().get_boolean ();\n"
+#| "\t\taction.set_state (new Variant.boolean (!active));\n"
+#| "\t\tif (active)\n"
+#| "\t\t\tprint (\"You unchecked \\\"Awesome\\\"\\n\");\n"
+#| "\t\telse\n"
+#| "\t\t\tprint (\"You checked \\\"Awesome\\\"\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid state_cb (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"state is set to %s\\n\", parameter.get_string(null));\n"
+#| "\t\taction.set_state (parameter);\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Create the application actions. */\n"
+#| "\tconst ActionEntry[] actions = {\n"
+#| "\t\t{ \"new\", new_cb },\n"
+#| "\t\t{ \"quit\", quit_cb },\n"
+#| "\t\t{ \"awesome\", awesome_cb, null, \"false\" },\n"
+#| "\t\t{ \"state\", state_cb, \"s\", \"'off'\" }\n"
+#| "\t};\n"
+#| "\n"
+#| "\tprotected override void startup () {\n"
+#| "\t\tbase.startup ();\n"
+#| "\n"
+#| "\t\t/* Setup application actions. */\n"
+#| "\t\tthis.add_action_entries (actions, this);\n"
+#| "\n"
+#| "\t\t/* Setup menubar and app_menu. */\n"
+#| "\t\t/* Get the UI file. */\n"
+#| "\t\tvar builder = new Gtk.Builder ();\n"
+#| "\t\ttry {\n"
+#| "\t\t\tbuilder.add_from_file (\"menubar.ui\");\n"
+#| "\t\t} catch (Error e) {\n"
+#| "\t\t\terror (\"Unable to load file: %s\", e.message);\n"
+#| "\t\t}\n"
+#| "\n"
+#| "\t\t/* Get the menubar from the builder. */\n"
+#| "\t\tthis.menubar = builder.get_object (\"menubar\") as MenuModel;\n"
+#| "\n"
+#| "\t\t/* Get the app_menu from the builder. */\n"
+#| "\t\tthis.app_menu = builder.get_object (\"appmenu\") as MenuModel;\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* main creates and runs the application. */\n"
+#| "public int main (string[] args) {\n"
+#| "\treturn new MyApplication ().run (args);\n"
+#| "}\n"
msgid ""
"public class MyWindow : Gtk.ApplicationWindow {\n"
"\n"
@@ -31338,7 +30506,7 @@ msgid ""
"\n"
"\tvoid quit_cb (SimpleAction action, Variant? parameter) {\n"
"\t\tprint (\"You clicked \\\"Quit\\\"\\n\");\n"
-"\t\t//this.quit (); **Bug #674090**\n"
+"\t\tthis.quit ();\n"
"\t}\n"
"\n"
"\tvoid awesome_cb (SimpleAction action, Variant? parameter) {\n"
@@ -31438,7 +30606,7 @@ msgstr ""
"\n"
"\tvoid quit_cb (SimpleAction action, Variant? parameter) {\n"
"\t\tprint (\"You clicked \\\"Quit\\\"\\n\");\n"
-"\t\t//this.quit (); **Bug #674090**\n"
+"\t\tthis.quit ();\n"
"\t}\n"
"\n"
"\tvoid awesome_cb (SimpleAction action, Variant? parameter) {\n"
@@ -32067,79 +31235,6 @@ msgstr "Necesita ejecutar GNOME 3.6 para que el «MenuButton» funcione."
#. (itstool) path: section/code
#: C/menubutton.py.page:37
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gio\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Menubutton Example\", application=app)\n"
-#| " self.set_default_size(600, 400)\n"
-#| "\n"
-#| " grid = Gtk.Grid()\n"
-#| " \n"
-#| " # a menubutton\n"
-#| " menubutton = Gtk.MenuButton()\n"
-#| " menubutton.set_size_request(80, 35)\n"
-#| " \n"
-#| " grid.attach(menubutton, 0, 0, 1, 1)\n"
-#| " \n"
-#| " # a menu with two actions\n"
-#| " menumodel = Gio.Menu()\n"
-#| " menumodel.append(\"New\", \"app.new\")\n"
-#| " menumodel.append(\"About\", \"win.about\")\n"
-#| "\n"
-#| " # a submenu with one action for the menu\n"
-#| " submenu = Gio.Menu()\n"
-#| " submenu.append(\"Quit\", \"app.quit\")\n"
-#| " menumodel.append_submenu(\"Other\", submenu)\n"
-#| "\n"
-#| " # the menu is set as the menu of the menubutton\n"
-#| " menubutton.set_menu_model(menumodel)\n"
-#| "\n"
-#| " # the action related to the window (about)\n"
-#| " about_action = Gio.SimpleAction.new(\"about\", None)\n"
-#| " about_action.connect(\"activate\", self.about_callback)\n"
-#| " self.add_action(about_action)\n"
-#| " \n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # callback for \"about\"\n"
-#| " def about_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"About\\\"\"\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # the actions related to the application\n"
-#| " new_action = Gio.SimpleAction.new(\"new\", None)\n"
-#| " new_action.connect(\"activate\", self.new_callback)\n"
-#| " self.add_action(new_action)\n"
-#| " \n"
-#| " quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
-#| " quit_action.connect(\"activate\", self.quit_callback)\n"
-#| " self.add_action(quit_action)\n"
-#| " \n"
-#| " # callback functions for the actions related to the application\n"
-#| " def new_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"New\\\"\"\n"
-#| "\n"
-#| " def quit_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"Quit\\\"\"\n"
-#| " self.quit()\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gio\n"
@@ -34473,87 +33568,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/messagedialog.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gio\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| "\n"
-#| " # constructor for a window (the parent window) with a label\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"GMenu Example\", application=app)\n"
-#| " self.set_default_size(400, 200)\n"
-#| " label = Gtk.Label()\n"
-#| " label.set_text(\"This application goes boom!\")\n"
-#| " self.add(label)\n"
-#| "\n"
-#| " # create the message_action (a Gio.SimpleAction) - for the window\n"
-#| " message_action = Gio.SimpleAction.new(\"message\", None)\n"
-#| " # connect the signal from the action to the function message_cb()\n"
-#| " message_action.connect(\"activate\", self.message_cb)\n"
-#| " # add the action to the application\n"
-#| " app.add_action(message_action)\n"
-#| "\n"
-#| " # callback function for the signal \"activate\" from the message_action\n"
-#| " # in the menu of the parent window\n"
-#| " def message_cb(self, action, parameter):\n"
-#| " # a Gtk.MessageDialog\n"
-#| " messagedialog = Gtk.MessageDialog(parent=self,\n"
-#| " flags=Gtk.DialogFlags.MODAL,\n"
-#| " type=Gtk.MessageType.WARNING,\n"
-#| " buttons=Gtk.ButtonsType.OK_CANCEL,\n"
-#| " message_format=\"This action will cause the universe to stop
existing.\")\n"
-#| " # connect the response (of the button clicked) to the function\n"
-#| " # dialog_response()\n"
-#| " messagedialog.connect(\"response\", self.dialog_response)\n"
-#| " # show the messagedialog\n"
-#| " messagedialog.show()\n"
-#| "\n"
-#| " def dialog_response(self, widget, response_id):\n"
-#| " # if the button clicked gives response OK (-5)\n"
-#| " if response_id == Gtk.ResponseType.OK:\n"
-#| "\t\t print \"*boom*\"\n"
-#| "\t\t# if the button clicked gives response CANCEL (-6)\n"
-#| " elif response_id == Gtk.ResponseType.CANCEL:\n"
-#| " print \"good choice\"\n"
-#| " # if the messagedialog is destroyed (by pressing ESC)\n"
-#| " elif response_id == Gtk.ResponseType.DELETE_EVENT:\n"
-#| " print \"dialog closed or cancelled\"\n"
-#| " # finally, destroy the messagedialog\n"
-#| " widget.destroy()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def quit_cb(self, action, parameter):\n"
-#| " self.quit()\n"
-#| "\n"
-#| " def do_startup (self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # create a menu (a Gio.Menu)\n"
-#| " menu = Gio.Menu()\n"
-#| " # append a menu item with label \"Message\" and action \"app.message\"\n"
-#| " menu.append(\"Message\", \"app.message\")\n"
-#| " # append a menu item with label \"Quit\" and action \"app.quit\"\n"
-#| " menu.append(\"Quit\", \"app.quit\")\n"
-#| " # set menu as the menu for the application\n"
-#| " self.set_app_menu(menu)\n"
-#| "\n"
-#| " # a new simpleaction - for the application\n"
-#| " quit_action = Gio.SimpleAction.new(\"quit\", None)\n"
-#| " quit_action.connect(\"activate\", self.quit_cb)\n"
-#| " self.add_action (quit_action)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gio\n"
@@ -35798,7 +34812,7 @@ msgstr ""
"instancias <code>Gtk.TreePath</code> de todas las filas seleccionadas."
#. (itstool) path: section/title
-#: C/model-view-controller.py.page:183 C/properties.py.page:50
+#: C/model-view-controller.py.page:183 C/properties.py.page:56
#: C/signals-callbacks.py.page:45 C/strings.py.page:111
msgid "References"
msgstr "Referencias"
@@ -36147,47 +35161,6 @@ msgstr "Paned (Python)"
#. (itstool) path: section/code
#: C/paned.py.page:29
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Paned Example\", application=app)\n"
-#| " self.set_default_size(450, 350)\n"
-#| "\n"
-#| " # a new widget with two adjustable panes,\n"
-#| " # one on the left and one on the right\n"
-#| " paned = Gtk.Paned.new(Gtk.Orientation.HORIZONTAL)\n"
-#| "\n"
-#| " # two images\n"
-#| " image1 = Gtk.Image()\n"
-#| " image1.set_from_file(\"gnome-image.png\")\n"
-#| " image2 = Gtk.Image()\n"
-#| " image2.set_from_file(\"tux.png\")\n"
-#| "\n"
-#| " # add the first image to the left pane\n"
-#| " paned.add1(image1)\n"
-#| " # add the second image to the right pane\n"
-#| " paned.add2(image2)\n"
-#| "\n"
-#| " # add the panes to the window\n"
-#| " self.add(paned)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -37900,63 +36873,6 @@ msgstr "Un widget que indica el progreso de manera visual."
#. (itstool) path: section/code
#: C/progressbar.py.page:40
#, no-wrap
-#| msgid ""
-#| "from gi.repository import GLib\n"
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # a window\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"ProgressBar Example\", application=app)\n"
-#| " self.set_default_size(220, 20)\n"
-#| "\n"
-#| " # a progressbar\n"
-#| " self.progress_bar = Gtk.ProgressBar()\n"
-#| " # add the progressbar to the window\n"
-#| " self.add(self.progress_bar)\n"
-#| "\n"
-#| " # the method self.pulse is called each 100 milliseconds\n"
-#| " # and self.source_id is set to be the ID of the event source\n"
-#| " # (i.e. the bar changes position every 100 milliseconds)\n"
-#| " self.source_id = GLib.timeout_add(100, self.pulse)\n"
-#| "\n"
-#| " # event handler\n"
-#| " # any signal from the keyboard controls if the progressbar stops/starts\n"
-#| " def do_key_press_event(self, event):\n"
-#| " # if the progressbar has been stopped (therefore source_id == 0 - see\n"
-#| " # \"else\" below), turn it back on\n"
-#| " if (self.source_id == 0):\n"
-#| " self.source_id = GLib.timeout_add(100, self.pulse)\n"
-#| " # if the bar is moving, remove the source with the ID of source_id\n"
-#| " # from the main context (stop the bar) and set the source_id to 0\n"
-#| " else:\n"
-#| " GLib.source_remove(self.source_id)\n"
-#| " self.source_id = 0\n"
-#| " # stop the signal emission\n"
-#| " return True\n"
-#| "\n"
-#| " # source function\n"
-#| " # the progressbar is in \"activity mode\" when this method is called\n"
-#| " def pulse(self):\n"
-#| " self.progress_bar.pulse()\n"
-#| " # call the function again\n"
-#| " return True\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import GLib\n"
"from gi.repository import Gtk\n"
@@ -38258,26 +37174,34 @@ msgstr "Propiedades"
#. (itstool) path: section/p
#: C/properties.py.page:33
-msgid ""
-"<em>Properties</em> describe the configuration and state of widgets, and "
-"each widget has its own particular set of properties. For example, a widget "
-"such as a button or a label has the property <code>label</code> which "
-"contains the text of the widget. You can specify the name and value of any "
-"number of properties as keyword arguments when creating an instance of a "
-"widget: for example, to create a label with the text “Hello World”, an angle "
-"of 25 degrees, and aligned to the right, you can use:"
+#| msgid ""
+#| "<em>Properties</em> describe the configuration and state of widgets, and "
+#| "each widget has its own particular set of properties. For example, a "
+#| "widget such as a button or a label has the property <code>label</code> "
+#| "which contains the text of the widget. You can specify the name and value "
+#| "of any number of properties as keyword arguments when creating an "
+#| "instance of a widget: for example, to create a label with the text “Hello "
+#| "World”, an angle of 25 degrees, and aligned to the right, you can use:"
+msgid ""
+"<em>Properties</em> describe the configuration and state of widgets. Each "
+"widget has its own particular set of properties. For example, a widget such "
+"as a button has the property <code>label</code> which contains the text of "
+"the widget. You can specify the name and value of any number of properties "
+"as keyword arguments when creating an instance of a widget. For example, to "
+"create a label with the text “Hello World”, an angle of 25 degrees, and "
+"aligned to the right, you can use:"
msgstr ""
"Las <em>propiedades</em> describen la configuración y el estado de los "
"widgets, y cada widget tiene su conjunto particular de propiedades. Por "
-"ejemplo, un widget como un botón o una etiqueta tiene la propiedad «label» "
-"que contiene el texto del widget. Puede especificar el nombre y el valor de "
-"cualquier número de propiedades como argumentos de palabras clave cuando "
-"cree una instancia de un widget: por ejemplo, para crear una etiqueta "
-"alineada a la derecha con el texto «Hello World» y un ángulo de 25 grados, "
-"puede usar:"
+"ejemplo, un widget como un botón o una etiqueta tiene la propiedad "
+"<code>label</code> que contiene el texto del widget. Puede especificar el "
+"nombre y el valor de cualquier número de propiedades como argumentos de "
+"palabras clave cuando cree una instancia de un widget: por ejemplo, para "
+"crear una etiqueta alineada a la derecha con el texto «Hello World» y un "
+"ángulo de 25 grados, puede usar:"
#. (itstool) path: section/code
-#: C/properties.py.page:34
+#: C/properties.py.page:40
#, no-wrap
msgid ""
"\n"
@@ -38287,12 +37211,16 @@ msgstr ""
"label = Gtk.Label(label=\"Hello World\", angle=25, halign=Gtk.Align.END)"
#. (itstool) path: section/p
-#: C/properties.py.page:37
-msgid "which is equivalent to using:"
-msgstr "que es equivalente a usar:"
+#: C/properties.py.page:43
+msgid ""
+"Alternatively, you can define these properties separately by using the "
+"method associated with it."
+msgstr ""
+"Alternativamente, puede definir estas propiedades por separado usando el "
+"método asociado a ellas."
#. (itstool) path: section/code
-#: C/properties.py.page:38
+#: C/properties.py.page:44
#, no-wrap
msgid ""
"\n"
@@ -38308,7 +37236,7 @@ msgstr ""
"label.set_halign(Gtk.Align.END)"
#. (itstool) path: section/p
-#: C/properties.py.page:44
+#: C/properties.py.page:50
msgid ""
"Once you have created such a label, you can get the text of the label with "
"<code>label.get_label()</code>, and analogously for the other properties."
@@ -38317,7 +37245,7 @@ msgstr ""
"<code>label.get_label()</code>, y análogamente para las otras propiedades."
#. (itstool) path: section/p
-#: C/properties.py.page:46
+#: C/properties.py.page:52
msgid ""
"Instead of using getters and setters you can also get and set the properties "
"with <code>get_property(<var>\"prop-name\"</var>)</code> and "
@@ -38330,7 +37258,7 @@ msgstr ""
"code>, respectivamente."
#. (itstool) path: section/p
-#: C/properties.py.page:52
+#: C/properties.py.page:58
msgid ""
"<link href=\"http://python-gtk-3-tutorial.readthedocs.org/en/latest/basics."
"html\">Basics - Properties</link> in Python GTK+ 3 Tutorial"
@@ -39680,77 +38608,6 @@ msgstr "Tres «RadioButton». Puede ver en la terminal si están activados o no.
#. (itstool) path: section/code
#: C/radiobutton.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"RadioButton Example\", application=app)\n"
-#| " self.set_default_size(250, 100)\n"
-#| " self.set_border_width(20)\n"
-#| "\n"
-#| " # a new radiobutton with a label\n"
-#| " button1 = Gtk.RadioButton(label=\"Button 1\")\n"
-#| " # connect the signal \"toggled\" emitted by the radiobutton\n"
-#| " # with the callback function toggled_cb\n"
-#| " button1.connect(\"toggled\", self.toggled_cb)\n"
-#| "\n"
-#| " # another radiobutton, in the same group as button1\n"
-#| " button2 = Gtk.RadioButton.new_from_widget(button1)\n"
-#| " # with label \"Button 2\"\n"
-#| " button2.set_label(\"Button 2\")\n"
-#| " # connect the signal \"toggled\" emitted by the radiobutton\n"
-#| " # with the callback function toggled_cb\n"
-#| " button2.connect(\"toggled\", self.toggled_cb)\n"
-#| " # set button2 not active by default\n"
-#| " button2.set_active(False)\n"
-#| "\n"
-#| " # another radiobutton, in the same group as button1,\n"
-#| " # with label \"Button 3\"\n"
-#| " button3 = Gtk.RadioButton.new_with_label_from_widget(button1, \"Button 3\")\n"
-#| " # connect the signal \"toggled\" emitted by the radiobutton\n"
-#| " # with the callback function toggled_cb\n"
-#| " button3.connect(\"toggled\", self.toggled_cb)\n"
-#| " # set button3 not active by default\n"
-#| " button3.set_active(False)\n"
-#| "\n"
-#| " # a grid to place the buttons\n"
-#| " grid = Gtk.Grid.new()\n"
-#| " grid.attach(button1, 0, 0, 1, 1);\n"
-#| " grid.attach(button2, 0, 1, 1, 1);\n"
-#| " grid.attach(button3, 0, 2, 1, 1);\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # callback function\n"
-#| " def toggled_cb(self, button):\n"
-#| " # a string to describe the state of the button\n"
-#| " state = \"unknown\"\n"
-#| " # whenever the button is turned on, state is on\n"
-#| " if button.get_active():\n"
-#| " state = \"on\"\n"
-#| " # else state is off\n"
-#| " else:\n"
-#| " state = \"off\"\n"
-#| " # whenever the function is called (a button is turned on or off)\n"
-#| " # print on the terminal which button was turned on/off\n"
-#| " print button.get_label() + \" was turned \" + state\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -40272,31 +39129,6 @@ msgstr "Empezar examinando el esqueleto del programa:"
#. (itstool) path: section/code
#: C/record-collection.js.page:77
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Gda = imports.gi.Gda;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "function Demo () {\n"
-#| " this._init ();\n"
-#| "}\n"
-#| "\n"
-#| "Demo.prototype = {\n"
-#| "\n"
-#| " _init: function () {\n"
-#| " this.setupWindow ();\n"
-#| " this.setupDatabase ();\n"
-#| " this.selectData ();\n"
-#| " }\n"
-#| "}\n"
-#| "\n"
-#| "Gtk.init (0, null);\n"
-#| "\n"
-#| "var demo = new Demo ();\n"
-#| "\n"
-#| "Gtk.main ();"
msgid ""
"\n"
"const GLib = imports.gi.GLib;\n"
@@ -42332,78 +41164,6 @@ msgstr "Escala (Python)"
#. (itstool) path: section/code
#: C/scale.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Scale Example\", application=app)\n"
-#| " self.set_default_size(400, 300)\n"
-#| " self.set_border_width(5)\n"
-#| "\n"
-#| " # two adjustments (initial value, min value, max value,\n"
-#| " # step increment - press cursor keys to see!,\n"
-#| " # page increment - click around the handle to see!,\n"
-#| " # page size - not used here)\n"
-#| " ad1 = Gtk.Adjustment(0, 0, 100, 5, 10, 0)\n"
-#| " ad2 = Gtk.Adjustment(50, 0, 100, 5, 10, 0)\n"
-#| "\n"
-#| " # an horizontal scale\n"
-#| " self.h_scale = Gtk.Scale(orientation=Gtk.Orientation.HORIZONTAL, adjustment=ad1)\n"
-#| " # of integers (no digits)\n"
-#| " self.h_scale.set_digits(0)\n"
-#| " # that can expand horizontally if there is space in the grid (see below)\n"
-#| " self.h_scale.set_hexpand(True)\n"
-#| " # that is aligned at the top of the space allowed in the grid (see below)\n"
-#| " self.h_scale.set_valign(Gtk.Align.START)\n"
-#| "\n"
-#| " # we connect the signal \"value-changed\" emitted by the scale with the callback\n"
-#| " # function scale_moved\n"
-#| " self.h_scale.connect(\"value-changed\", self.scale_moved)\n"
-#| "\n"
-#| " # a vertical scale\n"
-#| " self.v_scale = Gtk.Scale(orientation=Gtk.Orientation.VERTICAL, adjustment=ad2)\n"
-#| " # that can expand vertically if there is space in the grid (see below)\n"
-#| " self.v_scale.set_vexpand(True)\n"
-#| "\n"
-#| " # we connect the signal \"value-changed\" emitted by the scale with the callback\n"
-#| " # function scale_moved\n"
-#| " self.v_scale.connect(\"value-changed\", self.scale_moved)\n"
-#| "\n"
-#| " # a label\n"
-#| " self.label = Gtk.Label()\n"
-#| " self.label.set_text(\"Move the scale handles...\")\n"
-#| "\n"
-#| " # a grid to attach the widgets\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.set_column_spacing(10)\n"
-#| " grid.set_column_homogeneous(True)\n"
-#| " grid.attach(self.h_scale, 0, 0, 1, 1)\n"
-#| " grid.attach_next_to(self.v_scale, self.h_scale, Gtk.PositionType.RIGHT, 1, 1)\n"
-#| " grid.attach(self.label, 0, 1, 2, 1)\n"
-#| "\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # any signal from the scales is signaled to the label the text of which is changed\n"
-#| " def scale_moved(self, event):\n"
-#| " self.label.set_text(\"Horizontal scale is \" + str(int(self.h_scale.get_value())) +\n"
-#| " \"; vertical scale is \" + str(self.v_scale.get_value()) + \".\")\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -43186,45 +41946,6 @@ msgstr "ScrolledWindow (Python)"
#. (itstool) path: section/code
#: C/scrolledwindow.py.page:29
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"ScrolledWindow Example\", application=app)\n"
-#| " self.set_default_size(200, 200)\n"
-#| "\n"
-#| " # the scrolledwindow\n"
-#| " scrolled_window = Gtk.ScrolledWindow()\n"
-#| " scrolled_window.set_border_width(10)\n"
-#| " # there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
-#| " scrolled_window.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS)\n"
-#| "\n"
-#| " # an image - slightly larger than the window...\n"
-#| " image = Gtk.Image()\n"
-#| " image.set_from_file(\"gnome-image.png\")\n"
-#| "\n"
-#| " # add the image to the scrolledwindow\n"
-#| " scrolled_window.add_with_viewport(image)\n"
-#| "\n"
-#| " # add the scrolledwindow to the window\n"
-#| " self.add(scrolled_window)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -43636,51 +42357,6 @@ msgstr "Separador (Python)"
#. (itstool) path: section/code
#: C/separator.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Separator Example\", application=app)\n"
-#| "\n"
-#| " # three labels\n"
-#| " label1 = Gtk.Label()\n"
-#| " label1.set_text(\"Below, a horizontal separator.\")\n"
-#| "\n"
-#| " label2 = Gtk.Label()\n"
-#| " label2.set_text(\"On the right, a vertical separator.\")\n"
-#| "\n"
-#| " label3 = Gtk.Label()\n"
-#| " label3.set_text(\"On the left, a vertical separator.\")\n"
-#| "\n"
-#| " # a horizontal separator\n"
-#| " hseparator = Gtk.Separator(orientation=Gtk.Orientation.HORIZONTAL)\n"
-#| " # a vertical separator\n"
-#| " vseparator = Gtk.Separator(orientation=Gtk.Orientation.VERTICAL)\n"
-#| "\n"
-#| " # a grid to attach labels and separators\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.attach(label1, 0, 0, 3, 1)\n"
-#| " grid.attach(hseparator, 0, 1, 3, 1)\n"
-#| " grid.attach(label2, 0, 2, 1, 1)\n"
-#| " grid.attach(vseparator, 1, 2, 1, 1)\n"
-#| " grid.attach(label3, 2, 2, 1, 1)\n"
-#| " grid.set_column_homogeneous(True)\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| "\twin = MyWindow(self)\n"
-#| "\twin.show_all()\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -45137,60 +43813,6 @@ msgstr "Obtener un número entero o en coma flotante del usuario."
#. (itstool) path: section/code
#: C/spinbutton.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"SpinButton Example\", application=app)\n"
-#| " self.set_default_size(210, 70)\n"
-#| " self.set_border_width(5)\n"
-#| "\n"
-#| " # an adjustment (initial value, min value, max value,\n"
-#| " # step increment - press cursor keys or +/- buttons to see!,\n"
-#| " # page increment - not used here,\n"
-#| " # page size - not used here)\n"
-#| " ad = Gtk.Adjustment(0, 0, 100, 1, 0, 0)\n"
-#| "\n"
-#| " # a spin button for integers (digits=0)\n"
-#| " self.spin = Gtk.SpinButton(adjustment=ad, climb_rate=1, digits=0)\n"
-#| " # as wide as possible\n"
-#| " self.spin.set_hexpand(True)\n"
-#| "\n"
-#| " # we connect the signal \"value-changed\" emitted by the spinbutton with the callback\n"
-#| " # function spin_selected\n"
-#| " self.spin.connect(\"value-changed\", self.spin_selected)\n"
-#| "\n"
-#| " # a label\n"
-#| " self.label = Gtk.Label()\n"
-#| " self.label.set_text(\"Choose a number\")\n"
-#| "\n"
-#| " # a grid to attach the widgets\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.attach(self.spin, 0, 0, 1, 1)\n"
-#| " grid.attach(self.label, 0, 1, 2, 1)\n"
-#| "\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # callback function: the signal of the spinbutton is used to change the text of the label\n"
-#| " def spin_selected(self, event):\n"
-#| " self.label.set_text(\"The number you selected is \" + str(self.spin.get_value_as_int()) +
\".\")\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -45927,57 +44549,6 @@ msgstr "Spinner (Python)"
#. (itstool) path: section/code
#: C/spinner.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gdk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # a window\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Spinner Example\", application=app)\n"
-#| " self.set_default_size(200, 200)\n"
-#| " self.set_border_width(30)\n"
-#| "\n"
-#| " # a spinner\n"
-#| " self.spinner = Gtk.Spinner()\n"
-#| " # that by default spins\n"
-#| " self.spinner.start()\n"
-#| " # add the spinner to the window\n"
-#| " self.add(self.spinner)\n"
-#| "\n"
-#| " # event handler\n"
-#| " # a signal from the keyboard (space) controls if the spinner stops/starts\n"
-#| " def do_key_press_event(self, event):\n"
-#| " # keyname is the symbolic name of the key value given by the event\n"
-#| " keyname = Gdk.keyval_name(event.keyval)\n"
-#| " # if it is \"space\"\n"
-#| " if keyname == \"space\":\n"
-#| " # and the spinner is active\n"
-#| " if self.spinner.get_property(\"active\"):\n"
-#| " # stop the spinner\n"
-#| " self.spinner.stop()\n"
-#| " # if the spinner is not active\n"
-#| " else:\n"
-#| " # start it again\n"
-#| " self.spinner.start()\n"
-#| " # stop the signal emission\n"
-#| " return True\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
@@ -47433,75 +46004,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/statusbar.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gdk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # a window\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"StatusBar Example\", application=app)\n"
-#| " self.set_default_size(200, 100)\n"
-#| "\n"
-#| " # a label\n"
-#| " label = Gtk.Label(label=\"Press any key or \")\n"
-#| "\n"
-#| " # a button\n"
-#| " button = Gtk.Button(label=\"click me.\")\n"
-#| " # connected to a callback\n"
-#| " button.connect(\"clicked\", self.button_clicked_cb)\n"
-#| "\n"
-#| " # the statusbar\n"
-#| " self.statusbar = Gtk.Statusbar()\n"
-#| " # its context_id - not shown in the UI but needed to uniquely identify\n"
-#| " # the source of a message\n"
-#| " self.context_id = self.statusbar.get_context_id(\"example\")\n"
-#| " # we push a message onto the statusbar's stack\n"
-#| " self.statusbar.push(self.context_id, \"Waiting for you to do something...\")\n"
-#| "\n"
-#| " # a grid to attach the widgets\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.set_column_spacing(5)\n"
-#| " grid.set_column_homogeneous(True)\n"
-#| " grid.set_row_homogeneous(True)\n"
-#| " grid.attach(label, 0, 0, 1, 1)\n"
-#| " grid.attach_next_to(button, label, Gtk.PositionType.RIGHT, 1, 1)\n"
-#| " grid.attach(self.statusbar, 0, 1, 2, 1)\n"
-#| "\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # callback function for the button clicked\n"
-#| " # if the button is clicked the event is signaled to the statusbar\n"
-#| " # onto which we push a new status\n"
-#| " def button_clicked_cb(self, button):\n"
-#| " self.statusbar.push(self.context_id, \"You clicked the button.\")\n"
-#| "\n"
-#| " # event handler\n"
-#| " def do_key_press_event(self, event):\n"
-#| " # any signal from the keyboard is signaled to the statusbar\n"
-#| " # onto which we push a new status with the symbolic name\n"
-#| " # of the key pressed\n"
-#| " self.statusbar.push(self.context_id, Gdk.keyval_name(event.keyval) +\n"
-#| " \" key was pressed.\")\n"
-#| " # stop the signal emission\n"
-#| " return True\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
@@ -48159,16 +46661,21 @@ msgstr ""
#. (itstool) path: section/p
#: C/strings.py.page:106
+#| msgid ""
+#| "With Python 3.x things are much more consistent, because PyGObject will "
+#| "automatically encode/decode to/from UTF-8 if you pass a string to a "
+#| "method or a method returns a string. Strings, or text, will always be "
+#| "represented as instances of <code>str</code> only."
msgid ""
-"With Python 3.x things are much more consistent, because PyGObject will "
+"String encoding is more consistent in Python 3.x because PyGObject will "
"automatically encode/decode to/from UTF-8 if you pass a string to a method "
"or a method returns a string. Strings, or text, will always be represented "
"as instances of <code>str</code> only."
msgstr ""
-"Con Python 3.x las cosas son mucho más consistentes, porque PyGObject "
-"automáticamente codifica/decodifica hacia/desde UTF-8 si le pasa una cadena "
-"a un método o un método devuelve una cadena. Las cadenas, o el texto, "
-"siempre se representarán sólo como instancias de <code>str</code>."
+"En Python 3.x las codificación de cadenas es más consistente, porque "
+"PyGObject automáticamente codifica/decodifica hacia/desde UTF-8 si le pasa "
+"una cadena a un método o un método devuelve una cadena. Las cadenas, o el "
+"texto, siempre se representarán sólo como instancias de <code>str</code>."
#. (itstool) path: section/p
#: C/strings.py.page:113
@@ -49434,63 +47941,6 @@ msgstr "Este interruptor hace que el título aparezca y desaparezca."
#. (itstool) path: section/code
#: C/switch.py.page:32
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # a window\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Switch Example\", application=app)\n"
-#| " self.set_default_size(300, 100)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # a switch\n"
-#| " switch = Gtk.Switch()\n"
-#| " # turned on by default\n"
-#| " switch.set_active(True)\n"
-#| " # connect the signal notify::active emitted by the switch\n"
-#| " # to the callback function activate_cb\n"
-#| " switch.connect(\"notify::active\", self.activate_cb)\n"
-#| "\n"
-#| " # a label\n"
-#| " label = Gtk.Label()\n"
-#| " label.set_text(\"Title\")\n"
-#| "\n"
-#| " # a grid to allocate the widgets\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.set_column_spacing (10);\n"
-#| " grid.attach (label, 0, 0, 1, 1);\n"
-#| " grid.attach (switch, 1, 0, 1, 1);\n"
-#| "\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # Callback function. Since the signal is notify::active\n"
-#| " # we need the argument 'active'\n"
-#| " def activate_cb(self, button, active):\n"
-#| " # if the button (i.e. the switch) is active, set the title\n"
-#| " # of the window to \"Switch Example\"\n"
-#| " if button.get_active():\n"
-#| " self.set_title(\"Switch Example\")\n"
-#| " # else, set it to \"\" (empty string)\n"
-#| " else:\n"
-#| " self.set_title(\"\")\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -50978,48 +49428,6 @@ msgstr ", aparecerá una barra de desplazamiento horizontal."
#. (itstool) path: section/code
#: C/textview.py.page:45
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"TextView Example\", application=app)\n"
-#| " self.set_default_size(300, 450)\n"
-#| "\n"
-#| " # a scrollbar for the child widget (that is going to be the textview)\n"
-#| " scrolled_window = Gtk.ScrolledWindow()\n"
-#| " scrolled_window.set_border_width(5)\n"
-#| " # we scroll only if needed\n"
-#| " scrolled_window.set_policy(Gtk.PolicyType.AUTOMATIC, Gtk.PolicyType.AUTOMATIC)\n"
-#| "\n"
-#| " # a text buffer (stores text)\n"
-#| " buffer1 = Gtk.TextBuffer()\n"
-#| "\n"
-#| " # a textview (displays the buffer)\n"
-#| " textview = Gtk.TextView(buffer=buffer1)\n"
-#| " # wrap the text, if needed, breaking lines in between words\n"
-#| " textview.set_wrap_mode(Gtk.WrapMode.WORD)\n"
-#| "\n"
-#| " # textview is scrolled\n"
-#| " scrolled_window.add(textview)\n"
-#| "\n"
-#| " self.add(scrolled_window)\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -52253,63 +50661,6 @@ msgstr "ToggleButton (Python)"
#. (itstool) path: section/code
#: C/togglebutton.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " # a window\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"ToggleButton Example\", application=app)\n"
-#| " self.set_default_size(300, 300)\n"
-#| " self.set_border_width(30)\n"
-#| "\n"
-#| " # a spinner animation\n"
-#| " self.spinner = Gtk.Spinner()\n"
-#| " # with extra horizontal space\n"
-#| " self.spinner.set_hexpand(True)\n"
-#| " # with extra vertical space\n"
-#| " self.spinner.set_vexpand(True)\n"
-#| "\n"
-#| " # a togglebutton\n"
-#| " button = Gtk.ToggleButton.new_with_label(\"Start/Stop\")\n"
-#| " # connect the signal \"toggled\" emitted by the togglebutton\n"
-#| " # when its state is changed to the callback function toggled_cb\n"
-#| " button.connect(\"toggled\", self.toggled_cb)\n"
-#| "\n"
-#| " # a grid to allocate the widgets\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.set_row_homogeneous(False);\n"
-#| " grid.set_row_spacing(15);\n"
-#| " grid.attach(self.spinner, 0, 0, 1, 1);\n"
-#| " grid.attach(button, 0, 1, 1, 1);\n"
-#| "\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # callback function for the signal \"toggled\"\n"
-#| " def toggled_cb(self, button):\n"
-#| " # if the togglebutton is active, start the spinner\n"
-#| " if button.get_active():\n"
-#| " self.spinner.start()\n"
-#| " # else, stop it\n"
-#| " else:\n"
-#| " self.spinner.stop()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -53543,139 +51894,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/toolbar.py.page:32
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gdk\n"
-#| "from gi.repository import Gio\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Toolbar Example\", application=app)\n"
-#| " self.set_default_size(400, 200)\n"
-#| "\n"
-#| " # a grid to attach the toolbar\n"
-#| " grid = Gtk.Grid()\n"
-#| "\n"
-#| " # a toolbar created in the method create_toolbar (see below)\n"
-#| " toolbar = self.create_toolbar()\n"
-#| " # with extra horizontal space\n"
-#| " toolbar.set_hexpand(True)\n"
-#| " # show the toolbar\n"
-#| " toolbar.show()\n"
-#| "\n"
-#| " # attach the toolbar to the grid\n"
-#| " grid.attach(toolbar, 0, 0, 1, 1)\n"
-#| "\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " # create the actions that control the window and connect their signal to a\n"
-#| " # callback method (see below):\n"
-#| "\n"
-#| " # undo\n"
-#| " undo_action = Gio.SimpleAction.new(\"undo\", None)\n"
-#| " undo_action.connect(\"activate\", self.undo_callback)\n"
-#| " self.add_action(undo_action)\n"
-#| "\n"
-#| " # fullscreen\n"
-#| " fullscreen_action = Gio.SimpleAction.new(\"fullscreen\", None)\n"
-#| " fullscreen_action.connect(\"activate\", self.fullscreen_callback)\n"
-#| " self.add_action(fullscreen_action)\n"
-#| "\n"
-#| " # a method to create the toolbar\n"
-#| " def create_toolbar(self):\n"
-#| " # a toolbar\n"
-#| " toolbar = Gtk.Toolbar()\n"
-#| "\n"
-#| " # which is the primary toolbar of the application\n"
-#| " toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
-#| "\n"
-#| " # create a button for the \"new\" action, with a stock image\n"
-#| " new_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW)\n"
-#| " # label is shown\n"
-#| " new_button.set_is_important(True)\n"
-#| " # insert the button at position in the toolbar\n"
-#| " toolbar.insert(new_button, 0)\n"
-#| " # show the button\n"
-#| " new_button.show()\n"
-#| " # set the name of the action associated with the button.\n"
-#| " # The action controls the application (app)\n"
-#| " new_button.set_action_name(\"app.new\")\n"
-#| "\n"
-#| " # button for the \"open\" action\n"
-#| " open_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_OPEN)\n"
-#| " open_button.set_is_important(True)\n"
-#| " toolbar.insert(open_button, 1)\n"
-#| " open_button.show()\n"
-#| " open_button.set_action_name(\"app.open\")\n"
-#| "\n"
-#| " # button for the \"undo\" action\n"
-#| " undo_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_UNDO)\n"
-#| " undo_button.set_is_important(True)\n"
-#| " toolbar.insert(undo_button, 2)\n"
-#| " undo_button.show()\n"
-#| " undo_button.set_action_name(\"win.undo\")\n"
-#| "\n"
-#| " # button for the \"fullscreen/leave fullscreen\" action\n"
-#| " self.fullscreen_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_FULLSCREEN)\n"
-#| " self.fullscreen_button.set_is_important(True)\n"
-#| " toolbar.insert(self.fullscreen_button, 3)\n"
-#| " self.fullscreen_button.set_action_name(\"win.fullscreen\")\n"
-#| "\n"
-#| " # return the complete toolbar\n"
-#| " return toolbar\n"
-#| "\n"
-#| " # callback method for undo\n"
-#| " def undo_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"Undo\\\".\"\n"
-#| "\n"
-#| " # callback method for fullscreen / leave fullscreen\n"
-#| " def fullscreen_callback(self, action, parameter):\n"
-#| " # check if the state is the same as Gdk.WindowState.FULLSCREEN, which is a bit flag\n"
-#| " is_fullscreen = self.get_window().get_state() & Gdk.WindowState.FULLSCREEN != 0\n"
-#| " if not is_fullscreen:\n"
-#| " self.fullscreen_button.set_stock_id(Gtk.STOCK_LEAVE_FULLSCREEN)\n"
-#| " self.fullscreen()\n"
-#| " else:\n"
-#| " self.fullscreen_button.set_stock_id(Gtk.STOCK_FULLSCREEN)\n"
-#| " self.unfullscreen()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # create the actions that control the window and connect their signal to a\n"
-#| " # callback method (see below):\n"
-#| "\n"
-#| " # new\n"
-#| " new_action = Gio.SimpleAction.new(\"new\", None)\n"
-#| " new_action.connect(\"activate\", self.new_callback)\n"
-#| " app.add_action(new_action)\n"
-#| "\n"
-#| " # open\n"
-#| " open_action = Gio.SimpleAction.new(\"open\", None)\n"
-#| " open_action.connect(\"activate\", self.open_callback)\n"
-#| " app.add_action(open_action)\n"
-#| "\n"
-#| " # callback method for new\n"
-#| " def new_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"New\\\".\"\n"
-#| "\n"
-#| " # callback method for open\n"
-#| " def open_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"Open\\\".\"\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
@@ -55079,107 +53297,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/toolbar_builder.py.page:166
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gdk\n"
-#| "from gi.repository import Gio\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Toolbar Example\", application=app)\n"
-#| " self.set_default_size(400, 200)\n"
-#| "\n"
-#| " # a grid to attach the toolbar (see below)\n"
-#| " grid = Gtk.Grid()\n"
-#| " self.add(grid)\n"
-#| " # we have to show the grid (and therefore the toolbar) with show(),\n"
-#| " # as show_all() would show also the buttons in the toolbar that we want to\n"
-#| " # be hidden (such as the leave_fullscreen button)\n"
-#| " grid.show()\n"
-#| "\n"
-#| " # a builder to add the UI designed with Glade to the grid:\n"
-#| " builder = Gtk.Builder()\n"
-#| " # get the file (if it is there)\n"
-#| " try:\n"
-#| " builder.add_from_file(\"toolbar_builder.ui\")\n"
-#| " except:\n"
-#| " print \"file not found\"\n"
-#| " sys.exit()\n"
-#| " # and attach it to the grid\n"
-#| " grid.attach(builder.get_object(\"toolbar\"), 0, 0, 1, 1)\n"
-#| "\n"
-#| " # two buttons that will be used later in a method\n"
-#| " self.fullscreen_button = builder.get_object(\"fullscreen_button\")\n"
-#| " self.leave_fullscreen_button = builder.get_object(\"leave_fullscreen_button\")\n"
-#| "\n"
-#| " # create the actions that control the window, connect their signal to a\n"
-#| " # callback method (see below), add the action to the window:\n"
-#| "\n"
-#| " # undo\n"
-#| " undo_action = Gio.SimpleAction.new(\"undo\", None)\n"
-#| " undo_action.connect(\"activate\", self.undo_callback)\n"
-#| " self.add_action(undo_action)\n"
-#| "\n"
-#| " # and fullscreen\n"
-#| " fullscreen_action = Gio.SimpleAction.new(\"fullscreen\", None)\n"
-#| " fullscreen_action.connect(\"activate\", self.fullscreen_callback)\n"
-#| " self.add_action(fullscreen_action)\n"
-#| "\n"
-#| " # callback for undo\n"
-#| " def undo_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"Undo\\\".\"\n"
-#| "\n"
-#| " # callback for fullscreen\n"
-#| " def fullscreen_callback(self, action, parameter):\n"
-#| " # check if the state is the same as Gdk.WindowState.FULLSCREEN, which is a bit flag\n"
-#| " is_fullscreen = self.get_window().get_state() & Gdk.WindowState.FULLSCREEN != 0\n"
-#| " if is_fullscreen:\n"
-#| " self.unfullscreen()\n"
-#| " self.leave_fullscreen_button.hide()\n"
-#| " self.fullscreen_button.show()\n"
-#| " else:\n"
-#| " self.fullscreen()\n"
-#| " self.fullscreen_button.hide()\n"
-#| " self.leave_fullscreen_button.show()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " # show the window - with show() not show_all() because that would show also\n"
-#| " # the leave_fullscreen button\n"
-#| " win.show()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " # actions that control the application: create, connect their signal to a\n"
-#| " # callback method (see below), add the action to the application\n"
-#| "\n"
-#| " # new\n"
-#| " new_action = Gio.SimpleAction.new(\"new\", None)\n"
-#| " new_action.connect(\"activate\", self.new_callback)\n"
-#| " app.add_action(new_action)\n"
-#| "\n"
-#| " # open\n"
-#| " open_action = Gio.SimpleAction.new(\"open\", None)\n"
-#| " open_action.connect(\"activate\", self.open_callback)\n"
-#| " app.add_action(open_action)\n"
-#| "\n"
-#| " # callback for new\n"
-#| " def new_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"New\\\".\"\n"
-#| "\n"
-#| " # callback for open\n"
-#| " def open_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"Open\\\".\"\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
@@ -56546,127 +54663,6 @@ msgstr "Esto construye el ejemplo de <link xref=\"toolbar.py\">Toolbar</link>."
#. (itstool) path: section/code
#: C/tooltip.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Gdk\n"
-#| "from gi.repository import Gio\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Toolbar with Tooltips Example\", application=app)\n"
-#| " self.set_default_size(400, 200)\n"
-#| "\n"
-#| " grid = Gtk.Grid()\n"
-#| "\n"
-#| " toolbar = self.create_toolbar()\n"
-#| " toolbar.set_hexpand(True)\n"
-#| " toolbar.show()\n"
-#| "\n"
-#| " grid.attach(toolbar, 0, 0, 1, 1)\n"
-#| "\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " undo_action = Gio.SimpleAction.new(\"undo\", None)\n"
-#| " undo_action.connect(\"activate\", self.undo_callback)\n"
-#| " self.add_action(undo_action)\n"
-#| "\n"
-#| " fullscreen_action = Gio.SimpleAction.new(\"fullscreen\", None)\n"
-#| " fullscreen_action.connect(\"activate\", self.fullscreen_callback)\n"
-#| " self.add_action(fullscreen_action)\n"
-#| "\n"
-#| " def create_toolbar(self):\n"
-#| " toolbar = Gtk.Toolbar()\n"
-#| " toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
-#| "\n"
-#| " # button for the \"new\" action\n"
-#| " new_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW)\n"
-#| " # with a tooltip with a given text \n"
-#| " new_button.set_tooltip_text(\"Create a new file\")\n"
-#| " new_button.set_is_important(True)\n"
-#| " toolbar.insert(new_button, 0)\n"
-#| " new_button.show()\n"
-#| " new_button.set_action_name(\"app.new\")\n"
-#| "\n"
-#| " # button for the \"open\" action\n"
-#| " open_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_OPEN)\n"
-#| " # with a tooltip with a given text in the Pango markup language \n"
-#| " open_button.set_tooltip_markup(\"Open an <i>existing</i> file\")\n"
-#| " open_button.set_is_important(True)\n"
-#| " toolbar.insert(open_button, 1)\n"
-#| " open_button.show()\n"
-#| " open_button.set_action_name(\"app.open\")\n"
-#| "\n"
-#| " # button for the \"undo\" action\n"
-#| " undo_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_UNDO)\n"
-#| " # with a tooltip with an image\n"
-#| " # set True the property \"has-tooltip\" \n"
-#| " undo_button.set_property(\"has-tooltip\", True)\n"
-#| " # connect to the callback function that for the tooltip\n"
-#| " # with the signal \"query-tooltip\"\n"
-#| " undo_button.connect(\"query-tooltip\", self.undo_tooltip_callback)\n"
-#| " undo_button.set_is_important(True)\n"
-#| " toolbar.insert(undo_button, 2)\n"
-#| " undo_button.show()\n"
-#| " undo_button.set_action_name(\"win.undo\")\n"
-#| "\n"
-#| " # button for the \"fullscreen/leave fullscreen\" action\n"
-#| " self.fullscreen_button = Gtk.ToolButton.new_from_stock(Gtk.STOCK_FULLSCREEN)\n"
-#| " self.fullscreen_button.set_is_important(True)\n"
-#| " toolbar.insert(self.fullscreen_button, 3)\n"
-#| " self.fullscreen_button.set_action_name(\"win.fullscreen\")\n"
-#| "\n"
-#| " return toolbar\n"
-#| "\n"
-#| " # the callback function for the tooltip of the \"undo\" button\n"
-#| " def undo_tooltip_callback(self, widget, x, y, keyboard_mode, tooltip):\n"
-#| " # set the text for the tooltip\n"
-#| " tooltip.set_text(\"Undo your last action\")\n"
-#| " # set an icon fot the tooltip\n"
-#| " tooltip.set_icon_from_stock(\"gtk-undo\", Gtk.IconSize.MENU)\n"
-#| " # show the tooltip\n"
-#| " return True\n"
-#| "\n"
-#| " def undo_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"Undo\\\".\"\n"
-#| "\n"
-#| " def fullscreen_callback(self, action, parameter):\n"
-#| " is_fullscreen = self.get_window().get_state() & Gdk.WindowState.FULLSCREEN != 0\n"
-#| " if not is_fullscreen:\n"
-#| " self.fullscreen_button.set_stock_id(Gtk.STOCK_LEAVE_FULLSCREEN)\n"
-#| " self.fullscreen()\n"
-#| " else:\n"
-#| " self.fullscreen_button.set_stock_id(Gtk.STOCK_FULLSCREEN)\n"
-#| " self.unfullscreen()\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| " new_action = Gio.SimpleAction.new(\"new\", None)\n"
-#| " new_action.connect(\"activate\", self.new_callback)\n"
-#| " app.add_action(new_action)\n"
-#| "\n"
-#| " open_action = Gio.SimpleAction.new(\"open\", None)\n"
-#| " open_action.connect(\"activate\", self.open_callback)\n"
-#| " app.add_action(open_action)\n"
-#| "\n"
-#| " def new_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"New\\\".\"\n"
-#| "\n"
-#| " def open_callback(self, action, parameter):\n"
-#| " print \"You clicked \\\"Open\\\".\"\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Gdk\n"
@@ -57441,136 +55437,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/treeview_advanced_liststore.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Pango\n"
-#| "import sys\n"
-#| "\n"
-#| "list_of_dvd = [[\"The Usual Suspects\"],\n"
-#| " [\"Gilda\"],\n"
-#| " [\"The Godfather\"],\n"
-#| " [\"Pulp Fiction\"],\n"
-#| " [\"Once Upon a Time in the West\"],\n"
-#| " [\"Rear Window\"]]\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"My DVDs\", application=app)\n"
-#| " self.set_default_size(250, 100)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # the data are stored in the model\n"
-#| " # create a liststore with one column\n"
-#| " self.listmodel = Gtk.ListStore(str)\n"
-#| " for i in range(len(list_of_dvd)):\n"
-#| " self.listmodel.append(list_of_dvd[i])\n"
-#| "\n"
-#| " # a treeview to see the data stored in the model\n"
-#| " view = Gtk.TreeView(model=self.listmodel)\n"
-#| "\n"
-#| " # cellrenderer for the first column\n"
-#| " cell = Gtk.CellRendererText()\n"
-#| " # the first column is created\n"
-#| " col = Gtk.TreeViewColumn(\"Title\", cell, text=0)\n"
-#| " # and it is appended to the treeview\n"
-#| " view.append_column(col)\n"
-#| "\n"
-#| " # when a row of the treeview is selected, it emits a signal\n"
-#| " self.selection = view.get_selection()\n"
-#| " self.selection.connect(\"changed\", self.on_changed)\n"
-#| "\n"
-#| " # the label we use to show the selection\n"
-#| " self.label = Gtk.Label()\n"
-#| " self.label.set_text(\"\")\n"
-#| "\n"
-#| " # a button to add new titles, connected to a callback function\n"
-#| " self.button_add = Gtk.Button(label=\"Add\")\n"
-#| " self.button_add.connect(\"clicked\", self.add_cb)\n"
-#| "\n"
-#| " # an entry to enter titles\n"
-#| " self.entry = Gtk.Entry()\n"
-#| "\n"
-#| " # a button to remove titles, connected to a callback function\n"
-#| " self.button_remove = Gtk.Button(label=\"Remove\")\n"
-#| " self.button_remove.connect(\"clicked\", self.remove_cb)\n"
-#| "\n"
-#| " # a button to remove all titles, connected to a callback function\n"
-#| " self.button_remove_all = Gtk.Button(label=\"Remove All\")\n"
-#| " self.button_remove_all.connect(\"clicked\", self.remove_all_cb)\n"
-#| "\n"
-#| " # a grid to attach the widgets\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.attach(view, 0, 0, 4, 1)\n"
-#| " grid.attach(self.label, 0, 1, 4, 1)\n"
-#| " grid.attach(self.button_add, 0, 2, 1, 1)\n"
-#| " grid.attach_next_to(self.entry, self.button_add, Gtk.PositionType.RIGHT, 1, 1)\n"
-#| " grid.attach_next_to(self.button_remove, self.entry, Gtk.PositionType.RIGHT, 1, 1)\n"
-#| " grid.attach_next_to(self.button_remove_all, self.button_remove, Gtk.PositionType.RIGHT, 1, 1)\n"
-#| "\n"
-#| " # add the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " def on_changed(self, selection):\n"
-#| " # get the model and the iterator that points at the data in the model\n"
-#| " (model, iter) = selection.get_selected()\n"
-#| " # set the label to a new value depending on the selection, if there is one\n"
-#| " if iter is not None:\n"
-#| " self.label.set_text(\"\\n %s\" %(model[iter][0]))\n"
-#| " else:\n"
-#| " self.label.set_text(\"\")\n"
-#| " return True\n"
-#| "\n"
-#| " # callback function for the \"Add\" button\n"
-#| " def add_cb(self, button):\n"
-#| " # append to the model the title that is in the entry\n"
-#| " title = self.entry.get_text()\n"
-#| " self.listmodel.append([title])\n"
-#| " # and print a message in the terminal\n"
-#| " print \"%s has been added\" %(title)\n"
-#| "\n"
-#| " def remove_cb(self, button):\n"
-#| " # if there is still an entry in the model\n"
-#| " if len(self.listmodel) != 0:\n"
-#| " # get the selection\n"
-#| " (model, iter) = self.selection.get_selected()\n"
-#| " # if there is a selection, print a message in the terminal\n"
-#| " # and remove it from the model\n"
-#| " if iter is not None:\n"
-#| " print \"%s has been removed\" %(model[iter][0])\n"
-#| " self.listmodel.remove(iter)\n"
-#| " # otherwise, ask the user to select something to remove\n"
-#| " else:\n"
-#| " print \"Select a title to remove\"\n"
-#| " # else, if there are no entries in the model, print \"Empty list\"\n"
-#| " # in the terminal\n"
-#| " else:\n"
-#| " print \"Empty list\"\n"
-#| "\n"
-#| " def remove_all_cb(self, button):\n"
-#| " # if there is still an entry in the model\n"
-#| " if len(self.listmodel) != 0:\n"
-#| " # remove all the entries in the model\n"
-#| " for i in range(len(self.listmodel)):\n"
-#| " iter = self.listmodel.get_iter(0)\n"
-#| " self.listmodel.remove(iter)\n"
-#| " # print a message in the terminal alerting that the model is empty\n"
-#| " print \"Empty list\"\n"
-#| "\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Pango\n"
@@ -57932,108 +55798,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/treeview_cellrenderertoggle.py.page:30
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Pango\n"
-#| "import sys\n"
-#| "\n"
-#| "books = [[\"Tolstoy, Leo\", [\"War and Peace\", True], [\"Anna Karenina\", False]],\n"
-#| " [\"Shakespeare, William\", [\"Hamlet\", False], [\"Macbeth\", True], [\"Othello\", False]],\n"
-#| " [\"Tolkien, J.R.R.\", [\"The Lord of the Rings\", False]]]\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Library\", application=app)\n"
-#| " self.set_default_size(250, 100)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # the data are stored in the model\n"
-#| " # create a treestore with two columns\n"
-#| " self.store = Gtk.TreeStore(str, bool)\n"
-#| " # fill in the model\n"
-#| " for i in range(len(books)):\n"
-#| " # the iter piter is returned when appending the author in the first column\n"
-#| " # and False in the second\n"
-#| " piter = self.store.append(None, [books[i][0], False])\n"
-#| " # append the books and the associated boolean value as children of the author\n"
-#| " j = 1\n"
-#| " while j < len(books[i]):\n"
-#| " self.store.append(piter, books[i][j])\n"
-#| " j += 1\n"
-#| "\n"
-#| " # the treeview shows the model\n"
-#| " # create a treeview on the model self.store\n"
-#| " view = Gtk.TreeView()\n"
-#| " view.set_model(self.store)\n"
-#| "\n"
-#| " # the cellrenderer for the first column - text\n"
-#| " renderer_books = Gtk.CellRendererText()\n"
-#| " # the first column is created\n"
-#| " column_books = Gtk.TreeViewColumn(\"Books\", renderer_books, text=0)\n"
-#| " # and it is appended to the treeview\n"
-#| " view.append_column(column_books)\n"
-#| "\n"
-#| " # the cellrenderer for the second column - boolean rendered as a toggle\n"
-#| " renderer_in_out = Gtk.CellRendererToggle()\n"
-#| " # the second column is created\n"
-#| " column_in_out = Gtk.TreeViewColumn(\"Out?\", renderer_in_out, active=1)\n"
-#| " # and it is appended to the treeview\n"
-#| " view.append_column(column_in_out)\n"
-#| " # connect the cellrenderertoggle with a callback function\n"
-#| " renderer_in_out.connect(\"toggled\", self.on_toggled)\n"
-#| "\n"
-#| " # add the treeview to the window\n"
-#| " self.add(view)\n"
-#| "\n"
-#| " # callback function for the signal emitted by the cellrenderertoggle\n"
-#| " def on_toggled(self, widget, path):\n"
-#| " # the boolean value of the selected row\n"
-#| " current_value = self.store[path][1]\n"
-#| " # change the boolean value of the selected row in the model\n"
-#| " self.store[path][1] = not current_value\n"
-#| " # new current value!\n"
-#| " current_value = not current_value\n"
-#| " # if length of the path is 1 (that is, if we are selecting an author)\n"
-#| " if len(path) == 1:\n"
-#| " # get the iter associated with the path\n"
-#| " piter = self.store.get_iter(path)\n"
-#| " # get the iter associated with its first child\n"
-#| " citer = self.store.iter_children(piter)\n"
-#| " # while there are children, change the state of their boolean value\n"
-#| " # to the value of the author\n"
-#| " while citer is not None:\n"
-#| " self.store[citer][1] = current_value\n"
-#| " citer = self.store.iter_next(citer)\n"
-#| " # if the length of the path is not 1 (that is, if we are selecting a book)\n"
-#| " elif len(path) != 1:\n"
-#| " # get the first child of the parent of the book (the first book of the author)\n"
-#| " citer = self.store.get_iter(path)\n"
-#| " piter = self.store.iter_parent(citer)\n"
-#| " citer = self.store.iter_children(piter)\n"
-#| " # check if all the children are selected\n"
-#| " all_selected = True\n"
-#| " while citer is not None:\n"
-#| " if self.store[citer][1] == False:\n"
-#| " all_selected = False\n"
-#| " break\n"
-#| " citer = self.store.iter_next(citer)\n"
-#| " # if they do, the author as well is selected; otherwise it is not\n"
-#| " self.store[piter][1] = all_selected\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Pango\n"
@@ -59474,86 +57238,6 @@ msgstr "TreeView sencillo con ListStore"
#. (itstool) path: section/code
#: C/treeview_simple_liststore.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Pango\n"
-#| "import sys\n"
-#| "\n"
-#| "columns = [\"First Name\",\n"
-#| " \"Last Name\",\n"
-#| " \"Phone Number\"]\n"
-#| "\n"
-#| "phonebook = [[\"Jurg\", \"Billeter\", \"555-0123\"],\n"
-#| " [\"Johannes\", \"Schmid\", \"555-1234\"],\n"
-#| " [\"Julita\", \"Inca\", \"555-2345\"],\n"
-#| " [\"Javier\", \"Jardon\", \"555-3456\"],\n"
-#| " [\"Jason\", \"Clinton\", \"555-4567\"],\n"
-#| " [\"Random J.\", \"Hacker\", \"555-5678\"]]\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"My Phone Book\", application=app)\n"
-#| " self.set_default_size(250, 100)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # the data in the model (three strings for each row, one for each column)\n"
-#| " listmodel = Gtk.ListStore(str, str, str)\n"
-#| " # append the values in the model\n"
-#| " for i in range(len(phonebook)):\n"
-#| " listmodel.append(phonebook[i])\n"
-#| "\n"
-#| " # a treeview to see the data stored in the model\n"
-#| " view = Gtk.TreeView(model=listmodel)\n"
-#| " # for each column\n"
-#| " for i in range(len(columns)):\n"
-#| " # cellrenderer to render the text\n"
-#| " cell = Gtk.CellRendererText()\n"
-#| " # the text in the first column should be in boldface\n"
-#| " if i == 0:\n"
-#| " cell.props.weight_set=True\n"
-#| " cell.props.weight=Pango.Weight.BOLD\n"
-#| " # the column is created\n"
-#| " col = Gtk.TreeViewColumn(columns[i], cell, text=i)\n"
-#| " # and it is appended to the treeview\n"
-#| " view.append_column(col)\n"
-#| "\n"
-#| " # when a row is selected, it emits a signal\n"
-#| " view.get_selection().connect(\"changed\", self.on_changed)\n"
-#| "\n"
-#| " # the label we use to show the selection\n"
-#| " self.label = Gtk.Label()\n"
-#| " self.label.set_text(\"\")\n"
-#| "\n"
-#| " # a grid to attach the widgets\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.attach(view, 0, 0, 1, 1)\n"
-#| " grid.attach(self.label, 0, 1, 1, 1)\n"
-#| "\n"
-#| " # attach the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " def on_changed(self, selection):\n"
-#| " # get the model and the iterator that points at the data in the model\n"
-#| " (model, iter) = selection.get_selected()\n"
-#| " # set the label to a new value depending on the selection\n"
-#| " self.label.set_text(\"\\n %s %s %s\" %(model[iter][0], model[iter][1], model[iter][2]))\n"
-#| " return True\n"
-#| "\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Pango\n"
@@ -60099,66 +57783,6 @@ msgstr "Este TreeView muestra un TreeStore"
#. (itstool) path: section/code
#: C/treeview_treestore.py.page:31
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Pango\n"
-#| "import sys\n"
-#| "\n"
-#| "books = [[\"Tolstoy, Leo\", \"War and Peace\", \"Anna Karenina\"],\n"
-#| " [\"Shakespeare, William\", \"Hamlet\", \"Macbeth\", \"Othello\"],\n"
-#| " [\"Tolkien, J.R.R.\", \"The Lord of the Rings\"]]\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"Library\", application=app)\n"
-#| " self.set_default_size(250, 100)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # the data are stored in the model\n"
-#| " # create a treestore with one column\n"
-#| " store = Gtk.TreeStore(str)\n"
-#| " for i in range(len(books)):\n"
-#| " # the iter piter is returned when appending the author\n"
-#| " piter = store.append(None, [books[i][0]])\n"
-#| " # append the books as children of the author\n"
-#| " j = 1\n"
-#| " while j < len(books[i]):\n"
-#| " store.append(piter, [books[i][j]])\n"
-#| " j += 1\n"
-#| "\n"
-#| " # the treeview shows the model\n"
-#| " # create a treeview on the model store\n"
-#| " view = Gtk.TreeView()\n"
-#| " view.set_model(store)\n"
-#| "\n"
-#| " # the cellrenderer for the column - text\n"
-#| " renderer_books = Gtk.CellRendererText()\n"
-#| " # the column is created\n"
-#| " column_books = Gtk.TreeViewColumn(\"Books by Author\", renderer_books, text=0)\n"
-#| " # and it is appended to the treeview\n"
-#| " view.append_column(column_books)\n"
-#| "\n"
-#| " # the books are sortable by author\n"
-#| " column_books.set_sort_column_id(0)\n"
-#| "\n"
-#| " # add the treeview to the window\n"
-#| " self.add(view)\n"
-#| "\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def __init__(self):\n"
-#| " Gtk.Application.__init__(self)\n"
-#| "\n"
-#| " def do_activate(self):\n"
-#| " win = MyWindow(self)\n"
-#| " win.show_all()\n"
-#| "\n"
-#| " def do_startup(self):\n"
-#| " Gtk.Application.do_startup(self)\n"
-#| "\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"from gi.repository import Pango\n"
@@ -62220,24 +59844,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/window.py.page:46
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "import sys\n"
-#| "\n"
-#| "class MyApplication(Gtk.Application):\n"
-#| " def do_activate(self):\n"
-#| " # create a Gtk Window belonging to the application itself\n"
-#| " window = Gtk.Window(application=self)\n"
-#| " # set the title\n"
-#| " window.set_title(\"Welcome to GNOME\")\n"
-#| " # show the window\n"
-#| " window.show_all()\n"
-#| "\n"
-#| "# create and run the application, exit with the value returned by\n"
-#| "# running the program\n"
-#| "app = MyApplication()\n"
-#| "exit_status = app.run(sys.argv)\n"
-#| "sys.exit(exit_status)\n"
msgid ""
"from gi.repository import Gtk\n"
"import sys\n"
@@ -62429,6 +60035,50 @@ msgstr ""
"<link href=\"http://www.valadoc.org/gtk+-3.0/Gtk.Window.window_position.html"
"\">window_position</link>"
+#~ msgid ""
+#~ "This program will not compile with the quit action connected until <link "
+#~ "href=\"https://bugzilla.gnome.org/show_bug.cgi?id=674090\">Bug #674090</"
+#~ "link> is fixed. Therefore, the problematic line has been commented out."
+#~ msgstr ""
+#~ "Este programa no compilará con la opción de «salir» conectada hasta que "
+#~ "se resuelva el <link href=\"https://bugzilla.gnome.org/show_bug.cgi?"
+#~ "id=674090\">error nº 674090</link>. Por lo tanto, esa línea se ha "
+#~ "comentado"
+
+#~ msgid ""
+#~ "To set a stock icon as image, you can use <code>set_from_stock(stock_id, "
+#~ "size)</code> where <code>stock_id</code> is a stock icon such as "
+#~ "<code>Gtk.STOCK_ABOUT</code> (more can be found at <link href=\"http://"
+#~ "developer.gnome.org/gtk3/unstable/gtk3-Stock-Items\">Stock Items</link>, "
+#~ "with the caveat that they should be modified as above) and <code>size</"
+#~ "code> is a stock icon size to be chosen from <code>Gtk.IconSize.INVALID, "
+#~ "Gtk.IconSize.MENU, Gtk.IconSize.SMALL_TOOLBAR, Gtk.IconSize."
+#~ "LARGE_TOOLBAR, Gtk.IconSize.BUTTON, Gtk.IconSize.DND, Gtk.IconSize."
+#~ "DIALOG</code>."
+#~ msgstr ""
+#~ "Para establecer un icono del almacén como imagen, puede usar "
+#~ "<code>set_from_stock(id_almacén, tamaño)</code> donde <code>id_almacén</"
+#~ "code> es un icono del almacén como <code>Gtk.STOCK_ABOUT</code> (puede "
+#~ "encontrar más en <link href=\"http://developer.gnome.org/gtk3/unstable/"
+#~ "gtk3-Stock-Items\">Elementos del almacén</link>, teniendo en cuenta que "
+#~ "deben modificarse como anteriormente) y un <code>tamaño</code> de icono "
+#~ "del almacén, que puede ser <code>Gtk.IconSize.INVALID, Gtk.IconSize.MENU, "
+#~ "Gtk.IconSize.SMALL_TOOLBAR, Gtk.IconSize.LARGE_TOOLBAR, Gtk.IconSize."
+#~ "BUTTON, Gtk.IconSize.DND, Gtk.IconSize.DIALOG</code>."
+
+#~ msgid ""
+#~ "You can also use <code>set_from_icon_name(icon_name, size)</code>, where "
+#~ "<code>icon_name</code> is a stock icon name such as <code>\"gtk-about\"</"
+#~ "code> (more can be found as above) and <code>size</code> is as above."
+#~ msgstr ""
+#~ "También puede usar <code>set_from_icon_name(nombre_icono, tamaño)</code> "
+#~ "donde <code>nombre_icono</code> es un nombre de icono del almacén como "
+#~ "<code>«gtk-about»</code> (puede encontrar más como se mencionó) y "
+#~ "<code>tamaño</code> es igual que con «set_from_stock»."
+
+#~ msgid "which is equivalent to using:"
+#~ msgstr "que es equivalente a usar:"
+
#~ msgid "Automatic installation"
#~ msgstr "Instalación automática"
@@ -62499,9 +60149,6 @@ msgstr ""
#~ msgid "Platform demos in C++"
#~ msgstr "Demostraciones de la plataforma en C++"
-#~ msgid "<_:item-1/> <_:item-2/> <_:item-3/> <_:item-4/>."
-#~ msgstr "<_:item-1/> <_:item-2/> <_:item-3/> <_:item-4/>."
-
#~ msgid "2 Guitar Tuner"
#~ msgstr "2. Afinador de guitarra"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]