[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: Thu, 23 Apr 2015 09:16:53 +0000 (UTC)
commit 0f29db42ba377e5edb50abc837dc7f095bef0e7e
Author: Daniel Mustieles <daniel mustieles gmail com>
Date: Thu Apr 23 11:16:50 2015 +0200
Updated Spanish translation
platform-demos/es/es.po | 1213 +++++++++++++++++++++++++++++++++++++++++++++--
1 files changed, 1163 insertions(+), 50 deletions(-)
---
diff --git a/platform-demos/es/es.po b/platform-demos/es/es.po
index c847d33..f3b7015 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: 2015-03-02 07:42+0000\n"
-"PO-Revision-Date: 2015-03-02 19:18+0100\n"
+"POT-Creation-Date: 2015-04-23 07:00+0000\n"
+"PO-Revision-Date: 2015-04-23 11:12+0200\n"
"Last-Translator: Daniel Mustieles <daniel mustieles gmail com>\n"
"Language-Team: Español; Castellano <gnome-es-list gnome org>\n"
"Language: \n"
@@ -613,8 +613,12 @@ msgstr ""
#. (itstool) path: item/p
#: C/02_welcome_to_the_grid.js.page:128
+#| msgid ""
+#| "The <em>second</em> number is what top-to-botton position to put a given "
+#| "widget in, starting from 0. The Label goes beneath the Image, so we give "
+#| "the Image a 0 and the Label a 1 here."
msgid ""
-"The <em>second</em> number is what top-to-botton position to put a given "
+"The <em>second</em> number is what top-to-bottom position to put a given "
"widget in, starting from 0. The Label goes beneath the Image, so we give the "
"Image a 0 and the Label a 1 here."
msgstr ""
@@ -902,7 +906,8 @@ msgstr ""
#. (itstool) path: section/p
#: C/02_welcome_to_the_grid.js.page:208
-msgid "Second, we can set the Grid's column_homogenous property to true."
+#| msgid "Second, we can set the Grid's column_homogenous property to true."
+msgid "Second, we can set the Grid's column_homogeneous property to true."
msgstr ""
"Segundo, se puede establecer la propiedad «column_homogenous» de la rejilla "
"a «true»."
@@ -6426,8 +6431,9 @@ msgstr ""
#. (itstool) path: section/title
#: C/buttonbox.py.page:36
-msgid "Uselful methods for a ButtonBox widget"
-msgstr "Métodos útiles para un widget botonera"
+#| msgid "Uselful methods for a ButtonBox widget"
+msgid "Useful methods for a ButtonBox widget"
+msgstr "Métodos útiles para un widget ButtonBox"
#. (itstool) path: item/p
#: C/buttonbox.py.page:38
@@ -6474,9 +6480,13 @@ msgstr ""
#. (itstool) path: item/p
#: C/buttonbox.py.page:40
+#| msgid ""
+#| "<code>set_child_non_homogeneous(button, is_non_homogeneous)</code> sets "
+#| "whether the child is exempted from homogeous sizing. Default value is "
+#| "<code>False</code>."
msgid ""
"<code>set_child_non_homogeneous(button, is_non_homogeneous)</code> sets "
-"whether the child is exempted from homogeous sizing. Default value is "
+"whether the child is exempted from homogeneous sizing. Default value is "
"<code>False</code>."
msgstr ""
"<code>set_child_non_homogeneous(botón, es_heterogéneo)</code> establece si "
@@ -7513,7 +7523,8 @@ msgstr "CheckButton (Vala)"
#. (itstool) path: info/desc
#: C/checkbutton.vala.page:18
-msgid "Create widgets with a disrete toggle button"
+#| msgid "Create widgets with a disrete toggle button"
+msgid "Create widgets with a discrete toggle button"
msgstr "Crear widgets con un botón conmutador discreto"
#. (itstool) path: page/code
@@ -11471,6 +11482,85 @@ msgstr ""
#. (itstool) path: page/code
#: C/dialog.vala.page:25
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "/* A window in the application. */\n"
+#| "public class MyWindow : Gtk.ApplicationWindow {\n"
+#| "\n"
+#| "\t/* Constructor */\n"
+#| "\tinternal MyWindow (MyApplication app) {\n"
+#| "\t\tObject (application: app, title: \"GNOME Button\");\n"
+#| "\n"
+#| "\t\tthis.window_position = Gtk.WindowPosition.CENTER;\n"
+#| "\t\tthis.set_default_size (250,50);\n"
+#| "\n"
+#| "\t\tvar button = new Gtk.Button.with_label (\"Click Me\");\n"
+#| "\n"
+#| "\t\t/* Connect the button's \"clicked\" signal to\n"
+#| "\t\t * the signal handler (aka. this.callback function).\n"
+#| "\t\t */\n"
+#| "\t\tbutton.clicked.connect (this.on_button_click);\n"
+#| "\n"
+#| "\t\t/* Add the button to this window and show it. */\n"
+#| "\t\tthis.add (button);\n"
+#| "\t\tbutton.show ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* The signal handler for the buttons 'clicked' signal. */\n"
+#| "\tvoid on_button_click (Gtk.Button button) {\n"
+#| "\t\tvar dialog = new Gtk.Dialog.with_buttons (\"A Gtk+ Dialog\", this,\n"
+#| " Gtk.DialogFlags.MODAL,\n"
+#| " Gtk.Stock.OK,\n"
+#| " Gtk.ResponseType.OK, null);\n"
+#| "\n"
+#| "\t\tvar content_area = dialog.get_content_area ();\n"
+#| "\t\tvar label = new Gtk.Label (\"This demonstrates a dialog with a label\");\n"
+#| "\n"
+#| "\t\tcontent_area.add (label);\n"
+#| "\n"
+#| "\t\t/* Connect the 'response' signal of the dialog\n"
+#| "\t\t * the signal handler. It is emitted when the dialog's\n"
+#| "\t\t * OK button is clicked.\n"
+#| "\t\t */\n"
+#| "\t\tdialog.response.connect (on_response);\n"
+#| "\n"
+#| "\t\t/* Show the dialog and all the widgets. */\n"
+#| "\t\tdialog.show_all ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Signal handler for the 'response' signal of the dialog. */\n"
+#| " void on_response (Gtk.Dialog dialog, int response_id) {\n"
+#| "\n"
+#| " /* To see the int value of the ResponseType. This is only\n"
+#| "\t\t * for demonstration purposes.*/\n"
+#| " print (\"response is %d\\n\", response_id);\n"
+#| "\n"
+#| "\t\t/* This causes the dialog to be destroyed. */\n"
+#| " dialog.destroy ();\n"
+#| " }\n"
+#| "\n"
+#| "}\n"
+#| "\n"
+#| "/* This is the application. */\n"
+#| "public class MyApplication : Gtk.Application {\n"
+#| "\n"
+#| "\t/* The constructore of the application. */\n"
+#| "\tinternal MyApplication () {\n"
+#| "\t\tObject (application_id: \"org.example.MyApplication\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Override the 'activate' signal of GLib.Application. */\n"
+#| "\tprotected override void activate () {\n"
+#| "\n"
+#| "\t\t/* Create a window for the this application and show it. */\n"
+#| "\t\tnew MyWindow (this).show ();\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* The main function creates and runs the application. */\n"
+#| "public int main (string[] args) {\n"
+#| "\treturn new MyApplication ().run (args);\n"
+#| "}\n"
msgid ""
"\n"
"/* A window in the application. */\n"
@@ -11533,7 +11623,7 @@ msgid ""
"/* This is the application. */\n"
"public class MyApplication : Gtk.Application {\n"
"\n"
-"\t/* The constructore of the application. */\n"
+"\t/* The constructor of the application. */\n"
"\tinternal MyApplication () {\n"
"\t\tObject (application_id: \"org.example.MyApplication\");\n"
"\t}\n"
@@ -11612,7 +11702,7 @@ msgstr ""
"/* This is the application. */\n"
"public class MyApplication : Gtk.Application {\n"
"\n"
-"\t/* The constructore of the application. */\n"
+"\t/* The constructor of the application. */\n"
"\tinternal MyApplication () {\n"
"\t\tObject (application_id: \"org.example.MyApplication\");\n"
"\t}\n"
@@ -12152,6 +12242,25 @@ msgstr "Métodos útiles para un widget «Entry»"
#. (itstool) path: section/p
#: C/entry.py.page:41
+#| msgid ""
+#| "In line 14 the signal <code>\"activate\"</code> is connected to the "
+#| "callback function <code>cb_activate()</code> using <code><var>widget</"
+#| "var>.connect(<var>signal</var>, <var>callback function</var>)</code>. See "
+#| "<link xref=\"signals-callbacks.py\"/> for a more detailed explanation. "
+#| "Some of the signals that a Gtk.Entry widget can emit are: <code>\"activate"
+#| "\"</code> (emitted when the user activates the Entry key); <code>"
+#| "\"backspace\"</code> (emitted when the user activates the Backspace or "
+#| "Shift-Backspace keys); <code>\"copy-clipboard\"</code> (Ctrl-c and Ctrl-"
+#| "Insert); <code>\"paste-clipboard\"</code> (Ctrl-v and Shift-Insert); "
+#| "<code>\"delete-from-cursor\"</code> (Delete, for deleting a character; "
+#| "Ctrl-Delete, for deleting a word); <code>\"icon-press\"</code> (emitted "
+#| "when the user clicks an activable icon); <code>\"icon-release\"</code> "
+#| "(emitted on the button release from a mouse click over an activable "
+#| "icon); <code>\"insert-at-cursor\"</code> (emitted when the user initiates "
+#| "the insertion of a fixed string at the cursor); <code>\"move-cursor\"</"
+#| "code> (emitted when the user initiates a cursor movement); <code>"
+#| "\"populate-popup\"</code> (emitted before showing the context menu of the "
+#| "entry; it can be used to add items to it)."
msgid ""
"In line 14 the signal <code>\"activate\"</code> is connected to the callback "
"function <code>cb_activate()</code> using <code><var>widget</var>."
@@ -12163,9 +12272,9 @@ msgid ""
"<code>\"copy-clipboard\"</code> (Ctrl-c and Ctrl-Insert); <code>\"paste-"
"clipboard\"</code> (Ctrl-v and Shift-Insert); <code>\"delete-from-cursor\"</"
"code> (Delete, for deleting a character; Ctrl-Delete, for deleting a word); "
-"<code>\"icon-press\"</code> (emitted when the user clicks an activable "
+"<code>\"icon-press\"</code> (emitted when the user clicks an activatable "
"icon); <code>\"icon-release\"</code> (emitted on the button release from a "
-"mouse click over an activable icon); <code>\"insert-at-cursor\"</code> "
+"mouse click over an activatable icon); <code>\"insert-at-cursor\"</code> "
"(emitted when the user initiates the insertion of a fixed string at the "
"cursor); <code>\"move-cursor\"</code> (emitted when the user initiates a "
"cursor movement); <code>\"populate-popup\"</code> (emitted before showing "
@@ -12385,6 +12494,58 @@ msgstr "Entry (Vala)"
#. (itstool) path: page/code
#: C/entry.vala.page:25
#, no-wrap
+#| msgid ""
+#| "/* A window in the application. */\n"
+#| "class MyWindow : Gtk.ApplicationWindow {\n"
+#| "\n"
+#| "\t/* Constructor */\n"
+#| "\tinternal MyWindow (MyApplication app) {\n"
+#| "\t\tObject (application: app, title: \"What is your name?\");\n"
+#| "\n"
+#| "\t\tvar name_box = new Gtk.Entry ();\n"
+#| "\n"
+#| "\t\t/* Connect to the signal handler. */\n"
+#| "\t\tname_box.activate.connect (this.on_activate);\n"
+#| "\t\tname_box.show ();\n"
+#| "\n"
+#| "\t\tthis.set_default_size (300, 100);\n"
+#| "\t\tthis.border_width = 10;\n"
+#| "\n"
+#| "\t\t/* Add the name_box to this window. */\n"
+#| "\t\tthis.add (name_box);\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Signal handler (aka. callback function) for the 'activate'\n"
+#| "\t * signal of a Gtk.Entry.\n"
+#| "\t */\n"
+#| "\tvoid on_activate (Gtk.Entry entry) {\n"
+#| "\t\tname = entry.get_text ();\n"
+#| "\t\tprint (\"\\nHello \" + name + \"!\\n\\n\");\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* This is the application. */\n"
+#| "class MyApplication : Gtk.Application {\n"
+#| "\n"
+#| "\t/* Constructor for the application. */\n"
+#| "\tinternal MyApplication () {\n"
+#| "\t\tObject (application_id: \"org.example.MyApplication\");\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\t * and show it. */\n"
+#| "\t\tnew MyWindow (this).show ();\n"
+#| "\t}\n"
+#| "\n"
+#| "}\n"
+#| "\n"
+#| "/* The main function creats and runs the application. */\n"
+#| "int main (string[] args) {\n"
+#| "\treturn new MyApplication ().run (args);\n"
+#| "}\n"
msgid ""
"/* A window in the application. */\n"
"class MyWindow : Gtk.ApplicationWindow {\n"
@@ -12433,7 +12594,7 @@ msgid ""
"\n"
"}\n"
"\n"
-"/* The main function creats and runs the application. */\n"
+"/* The main function creates and runs the application. */\n"
"int main (string[] args) {\n"
"\treturn new MyApplication ().run (args);\n"
"}\n"
@@ -12485,7 +12646,7 @@ msgstr ""
"\n"
"}\n"
"\n"
-"/* The main function creats and runs the application. */\n"
+"/* The main function creates and runs the application. */\n"
"int main (string[] args) {\n"
"\treturn new MyApplication ().run (args);\n"
"}\n"
@@ -14838,9 +14999,14 @@ msgstr ""
#. (itstool) path: item/p
#: C/gmenu.py.page:54
+#| msgid ""
+#| "where <code>initial_state</code> is defined as a GVariant - for instance "
+#| "<code>Glib.Variant.new_string('start')</code>; for a list of possiblities "
+#| "see <link href=\"http://developer.gnome.org/glib/unstable/glib-GVariant."
+#| "html\">here</link>."
msgid ""
"where <code>initial_state</code> is defined as a GVariant - for instance "
-"<code>Glib.Variant.new_string('start')</code>; for a list of possiblities "
+"<code>Glib.Variant.new_string('start')</code>; for a list of possibilities "
"see <link href=\"http://developer.gnome.org/glib/unstable/glib-GVariant.html"
"\">here</link>."
msgstr ""
@@ -14966,7 +15132,8 @@ msgstr ""
#. (itstool) path: item/p
#: C/gmenu.py.page:70
-msgid "To remove an item from the menu, use <code>remove(postion)</code>."
+#| msgid "To remove an item from the menu, use <code>remove(postion)</code>."
+msgid "To remove an item from the menu, use <code>remove(position)</code>."
msgstr "Para eliminar un elemento del menú, use <code>remove(posición)</code>."
#. (itstool) path: item/p
@@ -18244,9 +18411,13 @@ msgstr ""
#. (itstool) path: section/p
#: C/guitar-tuner.js.page:124
+#| msgid ""
+#| "Now we have the method of playing a tune when clicking a button. Next "
+#| "well make the conncetions between pushing a button and playing the "
+#| "correct sound from that button."
msgid ""
"Now we have the method of playing a tune when clicking a button. Next well "
-"make the conncetions between pushing a button and playing the correct sound "
+"make the connections between pushing a button and playing the correct sound "
"from that button."
msgstr ""
"Ahora ya funciona el método para reproducir un sonido cuando se pulsa un "
@@ -21281,8 +21452,10 @@ msgstr "Para esto deberá tener los siguientes archivos:"
#. (itstool) path: section/title
#. (itstool) path: item/p
+#. (itstool) path: section/p
#: C/hello-world.js.page:155 C/hello-world.py.page:135
#: C/hello-world.vala.page:112 C/weatherAutotools.js.page:40
+#: C/weatherAutotools.js.page:138
msgid "autogen.sh"
msgstr "autogen.sh"
@@ -27490,6 +27663,321 @@ msgstr ""
#. (itstool) path: page/code
#: C/menubar.c.page:31
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "#include <gtk/gtk.h>\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the \"copy\" action */\n"
+#| "static void\n"
+#| "copy_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " g_print (\"\\\"Copy\\\" activated\\n\");\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the \"paste\" action */\n"
+#| "static void\n"
+#| "paste_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " g_print (\"\\\"Paste\\\" activated\\n\");\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the \"shape\" action */\n"
+#| "static void\n"
+#| "shape_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " /* We first gather the value of the GVariant instance with a string type.\n"
+#| " * The overall goal here is to see if shape is set to line, triangle, etc,\n"
+#| " * and put that value within the variable \"answer\".\n"
+#| " */\n"
+#| " const gchar *answer = g_variant_get_string (parameter, NULL);\n"
+#| " g_printf (\"Shape is set to %s.\\n\", answer);\n"
+#| " /* Note that we set the state of the action */\n"
+#| " g_simple_action_set_state (simple, parameter);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function in which closes the about_dialog created below */\n"
+#| "static void\n"
+#| "on_close (GtkDialog *dialog,\n"
+#| " gint response_id,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " gtk_widget_destroy (GTK_WIDGET (dialog));\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the about action (see aboutdialog.c example) */\n"
+#| "static void\n"
+#| "about_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *about_dialog;\n"
+#| "\n"
+#| " about_dialog = gtk_about_dialog_new ();\n"
+#| "\n"
+#| " const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
+#| " const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
+#| "\n"
+#| " /* Fill in the about_dialog with the desired information */\n"
+#| " gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG (about_dialog), \"AboutDialog Example\");\n"
+#| " gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about_dialog), \"Copyright \\xc2\\xa9 2012 GNOME
Documentation Team\");\n"
+#| " gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about_dialog), authors);\n"
+#| " gtk_about_dialog_set_documenters (GTK_ABOUT_DIALOG (about_dialog), documenters);\n"
+#| " gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (about_dialog), \"GNOME Developer Website\");\n"
+#| " gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about_dialog), \"http://developer.gnome.org\");\n"
+#| "\n"
+#| " /* The \"response\" signal is emitted when the dialog receives a delete event,\n"
+#| " * therefore we connect that signal to the on_close callback function\n"
+#| " * created above.\n"
+#| " */\n"
+#| " g_signal_connect (GTK_DIALOG (about_dialog), \"response\",\n"
+#| " G_CALLBACK (on_close), NULL);\n"
+#| "\n"
+#| " /* Show the about dialog */\n"
+#| " gtk_widget_show (about_dialog);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "static void\n"
+#| "activate (GtkApplication *app,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *window;\n"
+#| "\n"
+#| " GSimpleAction *copy_action;\n"
+#| " GSimpleAction *paste_action;\n"
+#| " GSimpleAction *shape_action;\n"
+#| " GSimpleAction *about_action;\n"
+#| "\n"
+#| " /* Create a window with a title and a default size */\n"
+#| " window = gtk_application_window_new (app);\n"
+#| " gtk_window_set_title (GTK_WINDOW (window), \"MenuBar Example\");\n"
+#| " gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);\n"
+#| "\n"
+#| " /* Begin creating the \"copy\" action.\n"
+#| " * Note that it is an action without a state.\n"
+#| " */\n"
+#| " copy_action = g_simple_action_new (\"copy\", NULL);\n"
+#| " /* Connected to a callback function */\n"
+#| " g_signal_connect (copy_action, \"activate\", G_CALLBACK (copy_callback),\n"
+#| " GTK_WINDOW (window));\n"
+#| " /* Added to the window */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (copy_action));\n"
+#| "\n"
+#| " /* Begin creating the \"paste\" action.\n"
+#| " * Note that it is an action without a state.\n"
+#| " */\n"
+#| " paste_action = g_simple_action_new (\"paste\", NULL);\n"
+#| " /* Connect the action to a callback function */\n"
+#| " g_signal_connect (paste_action, \"activate\", G_CALLBACK (paste_callback),\n"
+#| " GTK_WINDOW (window));\n"
+#| " /* Add it to the window */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (paste_action));\n"
+#| "\n"
+#| " /* Begin creating the \"shape\" action.\n"
+#| " * Note that it is an action with a state.\n"
+#| " * First we state that the parameter type of the simple action is a string.\n"
+#| " * When using g_variant_type_new, it is appropriate to free the return value\n"
+#| " * once you're done with it.\n"
+#| " */\n"
+#| " GVariantType *type_string = g_variant_type_new (\"s\");\n"
+#| " /* parameters for the g_simple_action_new_stateful are: (name, parameter type,\n"
+#| " * initial state).\n"
+#| " */\n"
+#| " shape_action = g_simple_action_new_stateful (\"shape\", type_string,\n"
+#| " g_variant_new_string (\"line\"));\n"
+#| " /* Connect the action to a callback function */\n"
+#| " g_signal_connect (shape_action, \"activate\", G_CALLBACK (shape_callback),\n"
+#| " GTK_WINDOW (window));\n"
+#| " /* Add it to the window */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (shape_action));\n"
+#| " g_variant_type_free (type_string);\n"
+#| "\n"
+#| " /* Begin creating the \"about\" action.\n"
+#| " * Note that it is an action without a state.\n"
+#| " */\n"
+#| " about_action = g_simple_action_new (\"about\", NULL);\n"
+#| " /* Connect the action to a callback function */\n"
+#| " g_signal_connect (about_action, \"activate\", G_CALLBACK (about_callback),\n"
+#| " GTK_WINDOW (window));\n"
+#| " /* Add it to the window */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (about_action));\n"
+#| "\n"
+#| " gtk_widget_show_all (window);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the \"new\" action */\n"
+#| "static void\n"
+#| "new_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " g_print (\"You clicked \\\"New\\\"\\n\");\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the \"quit\" action */\n"
+#| "static void\n"
+#| "quit_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GApplication *application = user_data;\n"
+#| "\n"
+#| " g_print (\"You clicked \\\"Quit\\\"\\n\");\n"
+#| " g_application_quit (application);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the \"state\" action */\n"
+#| "static void\n"
+#| "state_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " /* The two possibilies in this case for the \"answer\" variable are either\n"
+#| " * \"on\" or \"off\".\n"
+#| " */\n"
+#| " const gchar *answer = g_variant_get_string (parameter, NULL);\n"
+#| " /* We print the information to the user */\n"
+#| " g_printf (\"State is set to %s.\\n\", answer);\n"
+#| " /* Note that we set the state of the action */\n"
+#| " g_simple_action_set_state (simple, parameter);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the \"awesome\" action */\n"
+#| "static void\n"
+#| "awesome_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GVariant *action_state = g_action_get_state (G_ACTION (simple));\n"
+#| " gboolean active = g_variant_get_boolean (action_state);\n"
+#| " GVariant *new_state = g_variant_new_boolean (!active);\n"
+#| " /* Set the new state for the action.\n"
+#| " * (Keeps track of whether it was last checked or unchecked).\n"
+#| " */\n"
+#| " g_simple_action_set_state (simple, new_state);\n"
+#| "\n"
+#| " if (active)\n"
+#| " g_print (\"You unchecked \\\"Awesome\\\"\\n\");\n"
+#| " else\n"
+#| " g_print (\"You checked \\\"Awesome\\\"\\n\");\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Startup function for the menu we are creating in this sample */\n"
+#| "static void\n"
+#| "startup (GApplication *app,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " /* Initialize variables */\n"
+#| " GSimpleAction *new_action;\n"
+#| " GSimpleAction *quit_action;\n"
+#| " GSimpleAction *state_action;\n"
+#| " GSimpleAction *awesome_action;\n"
+#| "\n"
+#| " GtkBuilder *builder;\n"
+#| "\n"
+#| " GError *error = NULL;\n"
+#| "\n"
+#| " /* Begin creating the \"new\" action.\n"
+#| " * Note that it is an action without a state.\n"
+#| " */\n"
+#| " new_action = g_simple_action_new (\"new\", NULL);\n"
+#| " g_signal_connect (new_action, \"activate\", G_CALLBACK (new_callback), app);\n"
+#| " /* It is added to the overall application */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (new_action));\n"
+#| "\n"
+#| " /* Begin creating the \"quit\" action.\n"
+#| " * Note that it is an action without a state.\n"
+#| " */\n"
+#| " quit_action = g_simple_action_new (\"quit\", NULL);\n"
+#| " g_signal_connect (quit_action, \"activate\", G_CALLBACK (quit_callback), app);\n"
+#| " /* It is added to the overall application */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (quit_action));\n"
+#| "\n"
+#| " /* Begin creating the \"state\" action.\n"
+#| " * Note that it is an action with a state.\n"
+#| " */\n"
+#| " GVariantType *type_string2 = g_variant_type_new (\"s\");\n"
+#| " state_action = g_simple_action_new_stateful (\"state\", type_string2,\n"
+#| " g_variant_new_string (\"off\"));\n"
+#| " g_signal_connect (state_action, \"activate\", G_CALLBACK (state_callback), app);\n"
+#| " /* It is added to the overall application */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (state_action));\n"
+#| " g_variant_type_free (type_string2);\n"
+#| "\n"
+#| " /* Begin creating the \"awesome\" action.\n"
+#| " * Note that it is an action with a state.\n"
+#| " */\n"
+#| " awesome_action = g_simple_action_new_stateful (\"awesome\", NULL, g_variant_new_boolean (FALSE));\n"
+#| " g_signal_connect (awesome_action, \"activate\", G_CALLBACK (awesome_callback), app);\n"
+#| " /* It is added to the overall application */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (awesome_action));\n"
+#| "\n"
+#| " /* A builder to add the User Interface designed with GLADE to the grid: */\n"
+#| " builder = gtk_builder_new ();\n"
+#| " /* Get the file (if it is there):\n"
+#| " * Note: you must make sure that the file is in the current directory for\n"
+#| " * this to work. The function used here returns a non-null value within\n"
+#| " * our variable \"error\" if an error is indeed found.\n"
+#| " */\n"
+#| " gtk_builder_add_from_file (builder, \"menubar.ui\", &error);\n"
+#| " if (error != NULL) {\n"
+#| " g_print (\"%s\\n\", error->message);\n"
+#| " g_error_free (error);\n"
+#| " }\n"
+#| "\n"
+#| " /* Extract the menubar */\n"
+#| " GObject *menubar = gtk_builder_get_object (builder, \"menubar\");\n"
+#| " gtk_application_set_menubar (GTK_APPLICATION (app), G_MENU_MODEL (menubar));\n"
+#| "\n"
+#| " /* Extract the appmenu */\n"
+#| " GObject *appmenu = gtk_builder_get_object (builder, \"appmenu\");\n"
+#| " gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (appmenu));\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Startup function for the application */\n"
+#| "int\n"
+#| "main (int argc, char **argv)\n"
+#| "{\n"
+#| " GtkApplication *app;\n"
+#| " int status;\n"
+#| "\n"
+#| " app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+#| " g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+#| " g_signal_connect (app, \"startup\", G_CALLBACK (startup), NULL);\n"
+#| " status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+#| " g_object_unref (app);\n"
+#| "\n"
+#| " return status;\n"
+#| "}\n"
msgid ""
"\n"
"#include <gtk/gtk.h>\n"
@@ -27682,7 +28170,7 @@ msgid ""
" GVariant *parameter,\n"
" gpointer user_data)\n"
"{\n"
-" /* The two possibilies in this case for the \"answer\" variable are either\n"
+" /* The two possibilities in this case for the \"answer\" variable are either\n"
" * \"on\" or \"off\".\n"
" */\n"
" const gchar *answer = g_variant_get_string (parameter, NULL);\n"
@@ -27997,7 +28485,7 @@ msgstr ""
" GVariant *parameter,\n"
" gpointer user_data)\n"
"{\n"
-" /* The two possibilies in this case for the \"answer\" variable are either\n"
+" /* The two possibilities in this case for the \"answer\" variable are either\n"
" * \"on\" or \"off\".\n"
" */\n"
" const gchar *answer = g_variant_get_string (parameter, NULL);\n"
@@ -28594,11 +29082,20 @@ msgstr ""
#. (itstool) path: section/p
#: C/menubar.py.page:127
+#| msgid ""
+#| "The complete example files contain both application actions and window "
+#| "actions. The window actions are the ones usually included in the <link "
+#| "xref=\"gmenu.py\">application menu</link> also. It is not good practice "
+#| "to include window actions in the applcation menu. For demonstration "
+#| "purposes, the complete example files which follow include XML in the UI "
+#| "file which creates the application menu which includes a \"New\" and "
+#| "\"Open\" item, and these are hooked up to the same actions as the menubar "
+#| "items of the same name."
msgid ""
"The complete example files contain both application actions and window "
"actions. The window actions are the ones usually included in the <link xref="
"\"gmenu.py\">application menu</link> also. It is not good practice to "
-"include window actions in the applcation menu. For demonstration purposes, "
+"include window actions in the application menu. For demonstration purposes, "
"the complete example files which follow include XML in the UI file which "
"creates the application menu which includes a \"New\" and \"Open\" item, and "
"these are hooked up to the same actions as the menubar items of the same "
@@ -29339,10 +29836,15 @@ msgstr "Cadenas traducibles"
#. (itstool) path: section/p
#: C/menubar.py.page:175 C/menubar.vala.page:180
+#| msgid ""
+#| "Since GNOME applications are being translated into <link href=\"http://"
+#| "l10n.gnome.org/languages/\">many languages</link>, it is important that "
+#| "the strings in your application are translable. To make a label "
+#| "translatable, simple set <code>translatable=\"yes\"</code>:"
msgid ""
"Since GNOME applications are being translated into <link href=\"http://l10n."
"gnome.org/languages/\">many languages</link>, it is important that the "
-"strings in your application are translable. To make a label translatable, "
+"strings in your application are translatable. To make a label translatable, "
"simple set <code>translatable=\"yes\"</code>:"
msgstr ""
"Dado que las aplicaciones de GNOME se traducen a <link href=\"http://l10n."
@@ -29637,11 +30139,20 @@ msgstr ""
#. (itstool) path: section/p
#: C/menubar.vala.page:146
+#| msgid ""
+#| "The complete example files contain both application actions and window "
+#| "applications. The window actions are the ones usually included in the "
+#| "<link xref=\"gmenu.vala\">application menu</link> also. It is not good "
+#| "practice to include window actions in the applcation menu. For "
+#| "demonstration purposes, the complete example files which follow include "
+#| "XML in the UI file which creates the application menu which includes a "
+#| "\"New\" and \"Open\" item, and these are hooked up to the same actions as "
+#| "the menubar items of the same name."
msgid ""
"The complete example files contain both application actions and window "
"applications. The window actions are the ones usually included in the <link "
"xref=\"gmenu.vala\">application menu</link> also. It is not good practice to "
-"include window actions in the applcation menu. For demonstration purposes, "
+"include window actions in the application menu. For demonstration purposes, "
"the complete example files which follow include XML in the UI file which "
"creates the application menu which includes a \"New\" and \"Open\" item, and "
"these are hooked up to the same actions as the menubar items of the same "
@@ -34658,9 +35169,14 @@ msgstr "Introducción"
#. (itstool) path: section/p
#: C/photo-wall.c.page:43
+#| msgid ""
+#| "Clutter is a library for creating dynamic user interfaces using OpenGL "
+#| "for hardware acceleration. This example demonstates a small, but central, "
+#| "part of the Clutter library to create a simple but attractive image "
+#| "viewing program."
msgid ""
"Clutter is a library for creating dynamic user interfaces using OpenGL for "
-"hardware acceleration. This example demonstates a small, but central, part "
+"hardware acceleration. This example demonstrates a small, but central, part "
"of the Clutter library to create a simple but attractive image viewing "
"program."
msgstr ""
@@ -35238,8 +35754,11 @@ msgstr ""
#. (itstool) path: item/p
#: C/photo-wall.c.page:279
+#| msgid ""
+#| "Lines 5 and 12: This opens our directory or, if an error occured, returns "
+#| "after printing an error message."
msgid ""
-"Lines 5 and 12: This opens our directory or, if an error occured, returns "
+"Lines 5 and 12: This opens our directory or, if an error occurred, returns "
"after printing an error message."
msgstr ""
"Líneas 5 y 12: esto abre la carpeta o, si ocurre un error, termina después "
@@ -38003,10 +38522,15 @@ msgstr ""
#. (itstool) path: section/p
#: C/radiobutton.py.page:42
+#| msgid ""
+#| "Yet another way to create a new RadioButton with a label is <code>button1 "
+#| "= Gtk.RadioButton.new_with_label(None, \"Button 1\")</code> (the first "
+#| "arguement is the group of the radiobuttons, which we can get with "
+#| "<code>get_group()</code>, the second argument is the label)."
msgid ""
"Yet another way to create a new RadioButton with a label is <code>button1 = "
"Gtk.RadioButton.new_with_label(None, \"Button 1\")</code> (the first "
-"arguement is the group of the radiobuttons, which we can get with "
+"argument is the group of the radiobuttons, which we can get with "
"<code>get_group()</code>, the second argument is the label)."
msgstr ""
"Otra manera de crear un «RadioButton» nuevo con una etiqueta es "
@@ -40685,6 +41209,59 @@ msgstr "Escala (Vala)"
#. (itstool) path: page/code
#: C/scale.vala.page:27
#, no-wrap
+#| msgid ""
+#| "/* This is the application. */\n"
+#| "public class MyApplication : Gtk.Application {\n"
+#| "\tGtk.Scale h_scale;\n"
+#| "\tGtk.Scale v_scale;\n"
+#| "\tGtk.Label label;\n"
+#| "\n"
+#| "\t/* Override the 'activate' signal of GLib.Application. */\n"
+#| "\tprotected override void activate () {\n"
+#| "\t\tvar window = new Gtk.ApplicationWindow (this);\n"
+#| "\t\twindow.title = \"Scale Example\";\n"
+#| "\t\twindow.set_default_size (400, 300);\n"
+#| "\t\twindow.set_border_width (5);\n"
+#| "\n"
+#| "\t\th_scale = new Gtk.Scale.with_range (Gtk.Orientation.HORIZONTAL, 0.0, 100.0, 5.0);\n"
+#| "\t\th_scale.set_digits (0); //number of decimal places displayed\n"
+#| "\t\th_scale.set_valign (Gtk.Align.START); //horizontal alignment\n"
+#| "\n"
+#| "\t\tvar adjustment = new Gtk.Adjustment (42.0, 0.0, 100.0, 5.0, 10.0, 0.0);\n"
+#| "\t\tv_scale = new Gtk.Scale (Gtk.Orientation.VERTICAL, adjustment);\n"
+#| "\t\tv_scale.set_vexpand(true);\n"
+#| "\n"
+#| "\t\tlabel = new Gtk.Label (\"Move the scale handles...\");\n"
+#| "\n"
+#| "\t\tvar grid = new Gtk.Grid ();\n"
+#| "\t\tgrid.set_column_spacing (10); //amount of space between columns\n"
+#| "\t\tgrid.set_column_homogeneous (true); //all columns same width\n"
+#| "\t\tgrid.attach (h_scale, 0, 0, 1, 1);\n"
+#| "\t\tgrid.attach_next_to (v_scale, h_scale, Gtk.PositionType.RIGHT, 1, 1);\n"
+#| "\t\tgrid.attach (label, 0, 1, 2, 1);\n"
+#| "\n"
+#| "\t\th_scale.value_changed.connect (scale_moved);\n"
+#| "\t\tv_scale.value_changed.connect (scale_moved);\n"
+#| "\n"
+#| "\t\twindow.add (grid);\n"
+#| "\t\twindow.show_all ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Callback function for \"value-changed\" signal.\n"
+#| "\t * The paramter refers to the scale which emitted the signal.\n"
+#| "\t * Since we are accessing the values of not one, but two scales,\n"
+#| "\t * we made the ranges instance variables, and ignore the\n"
+#| "\t * parameter.\n"
+#| "\t */\n"
+#| "\tvoid scale_moved (Gtk.Range range) {\n"
+#| "\t\tlabel.set_text (\"Horizontal scale is %.1f; vertical scale is %.1f.\".printf (h_scale.get_value (),
v_scale.get_value ()));\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 ""
"/* This is the application. */\n"
"public class MyApplication : Gtk.Application {\n"
@@ -40724,7 +41301,7 @@ msgid ""
"\t}\n"
"\n"
"\t/* Callback function for \"value-changed\" signal.\n"
-"\t * The paramter refers to the scale which emitted the signal.\n"
+"\t * The parameter refers to the scale which emitted the signal.\n"
"\t * Since we are accessing the values of not one, but two scales,\n"
"\t * we made the ranges instance variables, and ignore the\n"
"\t * parameter.\n"
@@ -40777,7 +41354,7 @@ msgstr ""
"\t}\n"
"\n"
"\t/* Callback function for \"value-changed\" signal.\n"
-"\t * The paramter refers to the scale which emitted the signal.\n"
+"\t * The parameter refers to the scale which emitted the signal.\n"
"\t * Since we are accessing the values of not one, but two scales,\n"
"\t * we made the ranges instance variables, and ignore the\n"
"\t * parameter.\n"
@@ -41548,8 +42125,10 @@ msgstr ""
#. (itstool) path: info/title
#: C/separator.py.page:8
+#| msgctxt "text"
+#| msgid "Seperator (Python)"
msgctxt "text"
-msgid "Seperator (Python)"
+msgid "Separator (Python)"
msgstr "Separador (Python)"
#. (itstool) path: section/code
@@ -44076,6 +44655,109 @@ msgstr ""
#. (itstool) path: page/code
#: C/statusbar.c.page:30
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "#include <gtk/gtk.h>\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/*Callback function in which pushes an item onto the statusbar*/\n"
+#| "static void \n"
+#| "push_item (GtkWidget *widget,\n"
+#| " gpointer data)\n"
+#| "{\n"
+#| " GtkWidget *status_bar = data;\n"
+#| "\n"
+#| " /*Create a context id, which is used to uniquely identify \n"
+#| " *the source of a message*/\n"
+#| " guint context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (status_bar), \n"
+#| " \"Statusbar example\");\n"
+#| "\n"
+#| " /*Count is used to keep track of the amount of items \n"
+#| " the user is pushing/popping*/\n"
+#| " static int count = 1;\n"
+#| " char hold_output[20];\n"
+#| " \n"
+#| " /*This is a safer form of the standard sprintf () function. The output is \n"
+#| " gauranteed in this case to not exceed 20 characters, and the result is stored \n"
+#| " into the 'hold_output' variable*/\n"
+#| " g_snprintf (hold_output, 20, \"Item %d\", count++);\n"
+#| " gtk_statusbar_push (GTK_STATUSBAR (status_bar), \n"
+#| " context_id, \n"
+#| " hold_output);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/*Callback function that is used to pop an item off the statusbar*/\n"
+#| "static void \n"
+#| "pop_item (GtkWidget *widget,\n"
+#| " gpointer data )\n"
+#| "{\n"
+#| " GtkWidget *status_bar = data;\n"
+#| " guint context_id = gtk_statusbar_get_context_id (GTK_STATUSBAR (status_bar), \n"
+#| " \"Statusbar example\");\n"
+#| "\n"
+#| " gtk_statusbar_pop (GTK_STATUSBAR (status_bar), context_id);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "static void\n"
+#| "activate (GtkApplication *app,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *grid;\n"
+#| " GtkWidget *window;\n"
+#| " GtkWidget *status_bar;\n"
+#| " GtkWidget *pop_button;\n"
+#| " GtkWidget *push_button;\n"
+#| "\n"
+#| " /*Create a window with a title, border width, and a default size**/\n"
+#| " window = gtk_application_window_new (app);\n"
+#| " gtk_window_set_default_size (GTK_WINDOW (window), 220, 100);\n"
+#| " gtk_window_set_title (GTK_WINDOW (window), \"Statusbar Example\");\n"
+#| " gtk_container_set_border_width (GTK_CONTAINER(window), 10);\n"
+#| " \n"
+#| " /*Create the status bar, which is held in the global variable*/\n"
+#| " status_bar = gtk_statusbar_new (); \n"
+#| " \n"
+#| " /*Create the buttons with labels*/\n"
+#| " push_button = gtk_button_new_with_label (\"push item\");\n"
+#| " pop_button = gtk_button_new_with_label (\"pop last item\");\n"
+#| " \n"
+#| " /*Create the grid, and attach the buttons/statusbar accordingly*/\n"
+#| " grid = gtk_grid_new ();\n"
+#| " gtk_grid_attach (GTK_GRID (grid), push_button, 0,1,1,1);\n"
+#| " gtk_grid_attach (GTK_GRID (grid), pop_button, 0,2,1,1);\n"
+#| " gtk_grid_attach (GTK_GRID (grid), status_bar, 0,3,1,1);\n"
+#| " \n"
+#| " /*Connecting the clicked signals to the corresponding callback functions*/\n"
+#| " g_signal_connect (GTK_BUTTON (push_button), \"clicked\", \n"
+#| " G_CALLBACK (push_item), status_bar);\n"
+#| " g_signal_connect (GTK_BUTTON (pop_button), \"clicked\", \n"
+#| " G_CALLBACK (pop_item), status_bar);\n"
+#| " \n"
+#| " /*Attach the grid holding the child widgets onto the window, and show all*/\n"
+#| " gtk_container_add (GTK_CONTAINER (window), grid);\n"
+#| " gtk_widget_show_all (window);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "int\n"
+#| "main (int argc, char **argv)\n"
+#| "{\n"
+#| " GtkApplication *app;\n"
+#| " int status;\n"
+#| "\n"
+#| " app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+#| " g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+#| " status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+#| " g_object_unref (app);\n"
+#| "\n"
+#| " return status;\n"
+#| "}\n"
msgid ""
"\n"
"#include <gtk/gtk.h>\n"
@@ -44100,7 +44782,7 @@ msgid ""
" char hold_output[20];\n"
" \n"
" /*This is a safer form of the standard sprintf () function. The output is \n"
-" gauranteed in this case to not exceed 20 characters, and the result is stored \n"
+" guaranteed in this case to not exceed 20 characters, and the result is stored\n"
" into the 'hold_output' variable*/\n"
" g_snprintf (hold_output, 20, \"Item %d\", count++);\n"
" gtk_statusbar_push (GTK_STATUSBAR (status_bar), \n"
@@ -44203,7 +44885,7 @@ msgstr ""
" char hold_output[20];\n"
" \n"
" /*This is a safer form of the standard sprintf () function. The output is \n"
-" gauranteed in this case to not exceed 20 characters, and the result is stored \n"
+" guaranteed in this case to not exceed 20 characters, and the result is stored\n"
" into the 'hold_output' variable*/\n"
" g_snprintf (hold_output, 20, \"Item %d\", count++);\n"
" gtk_statusbar_push (GTK_STATUSBAR (status_bar), \n"
@@ -49060,12 +49742,46 @@ msgstr ""
#. (itstool) path: page/code
#: C/textview.vala.page:30
#, no-wrap
+#| msgid ""
+#| "/* This is the application. */\n"
+#| "public class MyApplication : Gtk.Application {\n"
+#| "\t/* Override the 'activate' signal of GLib.Application. */\n"
+#| "\tprotected override void activate () {\n"
+#| "\t\t/* Create the window of this applicationt. */\n"
+#| "\t\tnew MyWindow (this).show_all ();\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* This is the window. */\n"
+#| "class MyWindow: Gtk.ApplicationWindow {\n"
+#| "\tinternal MyWindow (MyApplication app) {\n"
+#| "\t\tObject (application: app, title: \"TextView Example\");\n"
+#| "\t\tthis.set_default_size (220, 200);\n"
+#| "\n"
+#| "\t\tvar buffer = new Gtk.TextBuffer (null); //stores text to be displayed\n"
+#| "\t\tvar textview = new Gtk.TextView.with_buffer (buffer); //displays TextBuffer\n"
+#| "\t\ttextview.set_wrap_mode (Gtk.WrapMode.WORD); //sets line wrapping\n"
+#| "\n"
+#| "\t\tvar scrolled_window = new Gtk.ScrolledWindow (null, null);\n"
+#| "\t\tscrolled_window.set_policy (Gtk.PolicyType.AUTOMATIC,\n"
+#| "\t\t Gtk.PolicyType.AUTOMATIC);\n"
+#| "\n"
+#| "\t\tscrolled_window.add (textview);\n"
+#| "\t\tscrolled_window.set_border_width (5);\n"
+#| "\n"
+#| "\t\tthis.add (scrolled_window);\n"
+#| "\t}\n"
+#| "}\n"
+#| "/* main creates and runs the application. */\n"
+#| "public int main (string[] args) {\n"
+#| "\treturn new MyApplication ().run (args);\n"
+#| "}\n"
msgid ""
"/* This is the application. */\n"
"public class MyApplication : Gtk.Application {\n"
"\t/* Override the 'activate' signal of GLib.Application. */\n"
"\tprotected override void activate () {\n"
-"\t\t/* Create the window of this applicationt. */\n"
+"\t\t/* Create the window of this application. */\n"
"\t\tnew MyWindow (this).show_all ();\n"
"\t}\n"
"}\n"
@@ -49099,7 +49815,7 @@ msgstr ""
"public class MyApplication : Gtk.Application {\n"
"\t/* Override the 'activate' signal of GLib.Application. */\n"
"\tprotected override void activate () {\n"
-"\t\t/* Create the window of this applicationt. */\n"
+"\t\t/* Create the window of this application. */\n"
"\t\tnew MyWindow (this).show_all ();\n"
"\t}\n"
"}\n"
@@ -51527,6 +52243,139 @@ msgstr "Barra de herramientas (Vala)"
#. (itstool) path: page/code
#: C/toolbar.vala.page:28
#, no-wrap
+#| msgid ""
+#| "/* This is the Window */\n"
+#| "class MyWindow : Gtk.ApplicationWindow {\n"
+#| "\n"
+#| "\t/* Instance variables belonging to the window */\n"
+#| "\tGtk.Toolbar toolbar;\n"
+#| "\tGtk.ToolButton new_button;\n"
+#| "\tGtk.ToolButton open_button;\n"
+#| "\tGtk.ToolButton undo_button;\n"
+#| "\tGtk.ToolButton fullscreen_button;\n"
+#| "\tGtk.ToolButton leave_fullscreen_button;\n"
+#| "\n"
+#| "\t/* Contstructor */\n"
+#| "\tinternal MyWindow (MyApplication app) {\n"
+#| "\t\tObject (application: app, title: \"Toolbar Example\");\n"
+#| "\n"
+#| "\t\tthis.set_default_size (400, 200);\n"
+#| "\t\tvar grid = new Gtk.Grid ();\n"
+#| "\t\tthis.add (grid);\n"
+#| "\t\tgrid.show ();\n"
+#| "\n"
+#| "\t\tcreate_toolbar ();\n"
+#| "\t\ttoolbar.set_hexpand (true);\n"
+#| "\t\tgrid.attach (toolbar, 0, 0, 1, 1);\n"
+#| "\t\ttoolbar.show ();\n"
+#| "\n"
+#| "\t\t/* create the \"undo\" window action action */\n"
+#| "\t\tvar undo_action = new SimpleAction (\"undo\", null);\n"
+#| "\t\tundo_action.activate.connect (undo_callback);\n"
+#| "\t\tthis.add_action (undo_action);\n"
+#| "\n"
+#| "\t\t/* create the \"fullscreen\" window action */\n"
+#| "\t\tvar fullscreen_action = new SimpleAction (\"fullscreen\", null);\n"
+#| "\t\tfullscreen_action.activate.connect (fullscreen_callback);\n"
+#| "\t\tthis.add_action (fullscreen_action);\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* This function creates the toolbar, its ToolButtons,\n"
+#| "\t * and assigns the actions names to the ToolButtons.*/\n"
+#| "\tvoid create_toolbar () {\n"
+#| "\t\ttoolbar = new Gtk.Toolbar ();\n"
+#| "\t\ttoolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+#| "\n"
+#| "\t\tnew_button = new Gtk.ToolButton.from_stock (Gtk.Stock.NEW);\n"
+#| "\t\tnew_button.is_important = true; //decides whether to show the label\n"
+#| "\t\ttoolbar.add (new_button);\n"
+#| "\t\tnew_button.show ();\n"
+#| "\t\tnew_button.action_name = \"app.new\";\n"
+#| "\n"
+#| "\t\topen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.OPEN);\n"
+#| "\t\topen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (open_button);\n"
+#| "\t\topen_button.show ();\n"
+#| "\t\topen_button.action_name = \"app.open\";\n"
+#| "\n"
+#| "\t\tundo_button = new Gtk.ToolButton.from_stock (Gtk.Stock.UNDO);\n"
+#| "\t\tundo_button.is_important = true;\n"
+#| "\t\ttoolbar.add (undo_button);\n"
+#| "\t\tundo_button.show ();\n"
+#| "\t\tundo_button.action_name = \"win.undo\";\n"
+#| "\n"
+#| "\t\tfullscreen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.FULLSCREEN);\n"
+#| "\t\tfullscreen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (fullscreen_button);\n"
+#| "\t\tfullscreen_button.show ();\n"
+#| "\t\tfullscreen_button.action_name = \"win.fullscreen\";\n"
+#| "\n"
+#| "\t\tleave_fullscreen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.LEAVE_FULLSCREEN)\n"
+#| ";\n"
+#| "\t\tleave_fullscreen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (leave_fullscreen_button);\n"
+#| "\n"
+#| "\t\tleave_fullscreen_button.action_name = \"win.fullscreen\";\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid undo_callback (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\t\tprint (\"You clicked \\\"Undo\\\".\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid fullscreen_callback (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\tif ((this.get_window ().get_state () & Gdk.WindowState.FULLSCREEN) != 0) {\n"
+#| "\t\t\tthis.unfullscreen ();\n"
+#| "\t\t\tleave_fullscreen_button.hide ();\n"
+#| "\t\t\tfullscreen_button.show ();\n"
+#| "\t\t}\n"
+#| "\t\telse {\n"
+#| "\t\t\tthis.fullscreen ();\n"
+#| "\t\t\tfullscreen_button.hide ();\n"
+#| "\t\t\tleave_fullscreen_button.show ();\n"
+#| "\t\t}\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* This is the application */\n"
+#| "class MyApplication : Gtk.Application {\n"
+#| "\tprotected override void activate () {\n"
+#| "\t\tnew MyWindow (this).show ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\tprotected override void startup () {\n"
+#| "\t\tbase.startup ();\n"
+#| "\n"
+#| "\t\t/* Create the \"new\" action and add it to the app*/\n"
+#| "\t\tvar new_action = new SimpleAction (\"new\", null);\n"
+#| "\t\tnew_action.activate.connect (new_callback);\n"
+#| "\t\tthis.add_action (new_action);\n"
+#| "\n"
+#| "\t\t/* Create the \"open\" action, and add it to the app */\n"
+#| "\t\tvar open_action = new SimpleAction (\"open\", null);\n"
+#| "\t\topen_action.activate.connect (open_callback);\n"
+#| "\t\tthis.add_action (open_action);\n"
+#| "\n"
+#| "\t\t/* You could also add the action to the app menu\n"
+#| "\t\t * if you wanted to.\n"
+#| "\t\t */\n"
+#| "\t\t//var menu = new Menu ();\n"
+#| "\t\t//menu.append (\"New\", \"app.new\");\n"
+#| "\t\t//this.app_menu = menu;\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid new_callback (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"You clicked \\\"New\\\".\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid open_callback (SimpleAction action, Variant? parameter) {\n"
+#| "\t\t\tprint (\"You clicked \\\"Open\\\".\\n\");\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* The main function creates the application and runs it. */\n"
+#| "int main (string[] args) {\n"
+#| "\treturn new MyApplication ().run (args);\n"
+#| "}\n"
msgid ""
"/* This is the Window */\n"
"class MyWindow : Gtk.ApplicationWindow {\n"
@@ -51539,7 +52388,7 @@ msgid ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar Example\");\n"
"\n"
@@ -51672,7 +52521,7 @@ msgstr ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar Example\");\n"
"\n"
@@ -52840,6 +53689,110 @@ msgstr ""
#. (itstool) path: page/code
#: C/toolbar_builder.vala.page:145
#, no-wrap
+#| msgid ""
+#| "/* This is the Window */\n"
+#| "class MyWindow : Gtk.ApplicationWindow {\n"
+#| "\n"
+#| "\t/* Declare these two ToolButtons, as we will get them\n"
+#| "\t * from the ui file (see lines 32 and 33), so we can\n"
+#| "\t * hide() and show() them as needed.*/\n"
+#| "\tGtk.ToolButton fullscreen_button;\n"
+#| "\tGtk.ToolButton leave_fullscreen_button;\n"
+#| "\n"
+#| "\t/* Contstructor */\n"
+#| "\tinternal MyWindow (MyApplication app) {\n"
+#| "\t\tObject (application: app, title: \"Toolbar Example\");\n"
+#| "\n"
+#| "\t\tthis.set_default_size (400, 200);\n"
+#| "\t\tvar grid = new Gtk.Grid ();\n"
+#| "\t\tthis.add (grid);\n"
+#| "\t\tgrid.show ();\n"
+#| "\n"
+#| "\t\t/* add the toolbar from the ui file */\n"
+#| "\t\tvar builder = new Gtk.Builder ();\n"
+#| "\t\ttry {\n"
+#| "\t\t\tbuilder.add_from_file (\"toolbar_builder.ui\");\n"
+#| "\t\t}\n"
+#| "\t\t/* Handle the exception */\n"
+#| "\t\tcatch (Error e) {\n"
+#| "\t\t\terror (\"Unable to load file: %s\", e.message);\n"
+#| "\t\t}\n"
+#| "\n"
+#| "\t\tgrid.attach (builder.get_object (\"toolbar\") as Gtk.Toolbar, 0, 0, 1, 1);\n"
+#| "\n"
+#| "\t\t/* get these objects from the ui file so we can toggle between them */\n"
+#| "\t\tfullscreen_button = builder.get_object (\"fullscreen_button\") as Gtk.ToolButton;\n"
+#| "\t\tleave_fullscreen_button = builder.get_object (\"leave_fullscreen_button\") as Gtk.ToolButton;\n"
+#| "\n"
+#| "\t\t/* create the \"undo\" window action action */\n"
+#| "\t\tvar undo_action = new SimpleAction (\"undo\", null);\n"
+#| "\t\tundo_action.activate.connect (undo_callback);\n"
+#| "\t\tthis.add_action (undo_action);\n"
+#| "\n"
+#| "\t\t/* create the \"fullscreen\" window action */\n"
+#| "\t\tvar fullscreen_action = new SimpleAction (\"fullscreen\", null);\n"
+#| "\t\tfullscreen_action.activate.connect (fullscreen_callback);\n"
+#| "\t\tthis.add_action (fullscreen_action);\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid undo_callback (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\t\tprint (\"You clicked \\\"Undo\\\".\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid fullscreen_callback (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\tif ((this.get_window ().get_state () & Gdk.WindowState.FULLSCREEN) != 0) {\n"
+#| "\t\t\tthis.unfullscreen ();\n"
+#| "\t\t\tleave_fullscreen_button.hide ();\n"
+#| "\t\t\tfullscreen_button.show ();\n"
+#| "\t\t}\n"
+#| "\t\telse {\n"
+#| "\t\t\tthis.fullscreen ();\n"
+#| "\t\t\tfullscreen_button.hide ();\n"
+#| "\t\t\tleave_fullscreen_button.show ();\n"
+#| "\t\t}\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* This is the application */\n"
+#| "class MyApplication : Gtk.Application {\n"
+#| "\tprotected override void activate () {\n"
+#| "\t\tnew MyWindow (this).show ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\tprotected override void startup () {\n"
+#| "\t\tbase.startup ();\n"
+#| "\n"
+#| "\t\t/* Create the \"new\" action and add it to the app*/\n"
+#| "\t\tvar new_action = new SimpleAction (\"new\", null);\n"
+#| "\t\tnew_action.activate.connect (new_callback);\n"
+#| "\t\tthis.add_action (new_action);\n"
+#| "\n"
+#| "\t\t/* Create the \"open\" action, and add it to the app */\n"
+#| "\t\tvar open_action = new SimpleAction (\"open\", null);\n"
+#| "\t\topen_action.activate.connect (open_callback);\n"
+#| "\t\tthis.add_action (open_action);\n"
+#| "\n"
+#| "\t\t/* You could also add the action to the app menu\n"
+#| "\t\t * if you wanted to.\n"
+#| "\t\t */\n"
+#| "\t\t//var menu = new Menu ();\n"
+#| "\t\t//menu.append (\"New\", \"app.new\");\n"
+#| "\t\t//this.app_menu = menu;\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid new_callback (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"You clicked \\\"New\\\".\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid open_callback (SimpleAction action, Variant? parameter) {\n"
+#| "\t\t\tprint (\"You clicked \\\"Open\\\".\\n\");\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* The main function creates the application and runs it. */\n"
+#| "int main (string[] args) {\n"
+#| "\treturn new MyApplication ().run (args);\n"
+#| "}\n"
msgid ""
"/* This is the Window */\n"
"class MyWindow : Gtk.ApplicationWindow {\n"
@@ -52850,7 +53803,7 @@ msgid ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar Example\");\n"
"\n"
@@ -52954,7 +53907,7 @@ msgstr ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar Example\");\n"
"\n"
@@ -54238,6 +55191,167 @@ msgstr ""
#. (itstool) path: section/code
#: C/tooltip.vala.page:31
#, no-wrap
+#| msgid ""
+#| "/* This is the Window */\n"
+#| "class MyWindow : Gtk.ApplicationWindow {\n"
+#| "\n"
+#| "\t/* Instance variables belonging to the window */\n"
+#| "\tGtk.Toolbar toolbar;\n"
+#| "\tGtk.ToolButton new_button;\n"
+#| "\tGtk.ToolButton open_button;\n"
+#| "\tGtk.ToolButton undo_button;\n"
+#| "\tGtk.ToolButton fullscreen_button;\n"
+#| "\tGtk.ToolButton leave_fullscreen_button;\n"
+#| "\n"
+#| "\t/* Contstructor */\n"
+#| "\tinternal MyWindow (MyApplication app) {\n"
+#| "\t\tObject (application: app, title: \"Toolbar with Tooltips Example\");\n"
+#| "\n"
+#| "\t\tthis.set_default_size (400, 200);\n"
+#| "\t\tvar grid = new Gtk.Grid ();\n"
+#| "\t\tthis.add (grid);\n"
+#| "\t\tgrid.show ();\n"
+#| "\n"
+#| "\t\tcreate_toolbar ();\n"
+#| "\t\ttoolbar.set_hexpand (true);\n"
+#| "\t\tgrid.attach (toolbar, 0, 0, 1, 1);\n"
+#| "\t\ttoolbar.show ();\n"
+#| "\n"
+#| "\t\t/* create the \"undo\" window action action */\n"
+#| "\t\tvar undo_action = new SimpleAction (\"undo\", null);\n"
+#| "\t\tundo_action.activate.connect (undo_callback);\n"
+#| "\t\tthis.add_action (undo_action);\n"
+#| "\n"
+#| "\t\t/* create the \"fullscreen\" window action */\n"
+#| "\t\tvar fullscreen_action = new SimpleAction (\"fullscreen\", null);\n"
+#| "\t\tfullscreen_action.activate.connect (fullscreen_callback);\n"
+#| "\t\tthis.add_action (fullscreen_action);\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Callback for query_tooltip signal */\n"
+#| "\tbool undo_tooltip_callback (int x, int y, bool keyboard_tooltip, Gtk.Tooltip tooltip) {\n"
+#| "\n"
+#| "\t\t/* set the text for the tooltip */\n"
+#| " \ttooltip.set_text (\"Undo your last action\");\n"
+#| "\t\t\n"
+#| "\t\t/* set an icon fot the tooltip */\n"
+#| "\t\ttooltip.set_icon_from_stock(\"gtk-undo\", Gtk.IconSize.MENU);\n"
+#| "\n"
+#| " \t/* show the tooltip */\n"
+#| " \treturn true;\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* This function creates the toolbar, its ToolButtons,\n"
+#| "\t * and assigns the actions names to the ToolButtons.*/\n"
+#| "\tvoid create_toolbar () {\n"
+#| "\t\ttoolbar = new Gtk.Toolbar ();\n"
+#| "\t\ttoolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+#| "\n"
+#| "\t\tnew_button = new Gtk.ToolButton.from_stock (Gtk.Stock.NEW);\n"
+#| "\n"
+#| "\t\t/* tooltip with text */\n"
+#| "\t\tnew_button.set_tooltip_text (\"Create a new file\");\n"
+#| "\n"
+#| "\t\tnew_button.is_important = true; //decides whether to show the label\n"
+#| "\t\ttoolbar.add (new_button);\n"
+#| "\t\tnew_button.show ();\n"
+#| "\t\tnew_button.action_name = \"app.new\";\n"
+#| "\n"
+#| "\t\topen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.OPEN);\n"
+#| "\n"
+#| "\t\t/* a tooltip using Pango markup language */\n"
+#| "\t\topen_button.set_tooltip_markup (\"Open an <i>existing</i> file\");\n"
+#| "\n"
+#| "\t\topen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (open_button);\n"
+#| "\t\topen_button.show ();\n"
+#| "\t\topen_button.action_name = \"app.open\";\n"
+#| "\n"
+#| "\t\tundo_button = new Gtk.ToolButton.from_stock (Gtk.Stock.UNDO);\n"
+#| "\t\n"
+#| "\t\t/* For a tooltip to have an image, first we must set_has_tooltip to be 'true' */\t\n"
+#| "\t\t(undo_button as Gtk.Widget).set_has_tooltip (true);\n"
+#| "\n"
+#| "\t\t/* Connect the query_tooltip signal to the callback */\n"
+#| "\t\tundo_button.query_tooltip.connect (undo_tooltip_callback);\n"
+#| "\t\n"
+#| "\t\tundo_button.is_important = true;\n"
+#| "\t\ttoolbar.add (undo_button);\n"
+#| "\t\tundo_button.show ();\n"
+#| "\t\tundo_button.action_name = \"win.undo\";\n"
+#| "\n"
+#| "\t\tfullscreen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.FULLSCREEN);\n"
+#| "\t\tfullscreen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (fullscreen_button);\n"
+#| "\t\tfullscreen_button.show ();\n"
+#| "\t\tfullscreen_button.action_name = \"win.fullscreen\";\n"
+#| "\n"
+#| "\t\tleave_fullscreen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.LEAVE_FULLSCREEN)\n"
+#| ";\n"
+#| "\t\tleave_fullscreen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (leave_fullscreen_button);\n"
+#| "\n"
+#| "\t\tleave_fullscreen_button.action_name = \"win.fullscreen\";\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid undo_callback (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\t\tprint (\"You clicked \\\"Undo\\\".\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid fullscreen_callback (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\tif ((this.get_window ().get_state () & Gdk.WindowState.FULLSCREEN) != 0) {\n"
+#| "\t\t\tthis.unfullscreen ();\n"
+#| "\t\t\tleave_fullscreen_button.hide ();\n"
+#| "\t\t\tfullscreen_button.show ();\n"
+#| "\t\t}\n"
+#| "\t\telse {\n"
+#| "\t\t\tthis.fullscreen ();\n"
+#| "\t\t\tfullscreen_button.hide ();\n"
+#| "\t\t\tleave_fullscreen_button.show ();\n"
+#| "\t\t}\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* This is the application */\n"
+#| "class MyApplication : Gtk.Application {\n"
+#| "\tprotected override void activate () {\n"
+#| "\t\tnew MyWindow (this).show ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\tprotected override void startup () {\n"
+#| "\t\tbase.startup ();\n"
+#| "\n"
+#| "\t\t/* Create the \"new\" action and add it to the app*/\n"
+#| "\t\tvar new_action = new SimpleAction (\"new\", null);\n"
+#| "\t\tnew_action.activate.connect (new_callback);\n"
+#| "\t\tthis.add_action (new_action);\n"
+#| "\n"
+#| "\t\t/* Create the \"open\" action, and add it to the app */\n"
+#| "\t\tvar open_action = new SimpleAction (\"open\", null);\n"
+#| "\t\topen_action.activate.connect (open_callback);\n"
+#| "\t\tthis.add_action (open_action);\n"
+#| "\n"
+#| "\t\t/* You could also add the action to the app menu\n"
+#| "\t\t * if you wanted to.\n"
+#| "\t\t */\n"
+#| "\t\t//var menu = new Menu ();\n"
+#| "\t\t//menu.append (\"New\", \"app.new\");\n"
+#| "\t\t//this.app_menu = menu;\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid new_callback (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"You clicked \\\"New\\\".\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid open_callback (SimpleAction action, Variant? parameter) {\n"
+#| "\t\t\tprint (\"You clicked \\\"Open\\\".\\n\");\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* The main function creates the application and runs it. */\n"
+#| "int main (string[] args) {\n"
+#| "\treturn new MyApplication ().run (args);\n"
+#| "}\n"
msgid ""
"/* This is the Window */\n"
"class MyWindow : Gtk.ApplicationWindow {\n"
@@ -54250,7 +55364,7 @@ msgid ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar with Tooltips Example\");\n"
"\n"
@@ -54411,7 +55525,7 @@ msgstr ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Contstructor */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar with Tooltips Example\");\n"
"\n"
@@ -58049,13 +59163,20 @@ msgstr "Autotools y archivos necesarios"
#. (itstool) path: section/p
#: C/weatherAutotools.js.page:33
+#| msgid ""
+#| "Having more than one file in your folder makes using autotools a bit "
+#| "tricky. You need the .desktop file, autogen.sh, Makefile.am, configure.ac "
+#| "and as a new file: myapp.sh.in file. Hacking the autotools file is a "
+#| "complicated field. More information can be found in many different "
+#| "sources, <link href=\"http://en.wikipedia.org/wiki/GNU_build_system\">the "
+#| "wikipedia article</link> provides a good overwiev on the subject."
msgid ""
"Having more than one file in your folder makes using autotools a bit tricky. "
"You need the .desktop file, autogen.sh, Makefile.am, configure.ac and as a "
"new file: myapp.sh.in file. Hacking the autotools file is a complicated "
"field. More information can be found in many different sources, <link href="
"\"http://en.wikipedia.org/wiki/GNU_build_system\">the wikipedia article</"
-"link> provides a good overwiev on the subject."
+"link> provides a good overview on the subject."
msgstr ""
"Tener más de un archivo en la carpeta complica un poco el uso de autotools. "
"Necesita los archivos .desktop, autogen.sh, Makefile.am, configure.ac y un "
@@ -58324,11 +59445,6 @@ msgstr ""
"AC_CONFIG_FILES(Makefile)\n"
"AC_OUTPUT"
-#. (itstool) path: section/p
-#: C/weatherAutotools.js.page:138
-msgid "autohen.sh"
-msgstr "autohen.sh"
-
#. (itstool) path: section/code
#: C/weatherAutotools.js.page:139
#, no-wrap
@@ -59476,10 +60592,6 @@ msgstr ""
#. (itstool) path: section/p
#: C/custom-gsource.c.page:52
-#| msgid ""
-#| "You can find signal definitions for any object in the <link href="
-#| "\"https://developer.gnome.org/gtk3/stable/gtkobjects.html\">GTK class "
-#| "reference</link>."
msgid ""
"The structure of a <code>GSource</code> and its virtual functions are "
"documented in detail in the <link href=\"https://developer.gnome.org/glib/"
@@ -59588,7 +60700,6 @@ msgstr ""
#. (itstool) path: section/title
#: C/custom-gsource.c.page:109
-#| msgid "CheckButton"
msgid "Check Function"
msgstr "Función de comprobación"
@@ -60265,7 +61376,6 @@ msgstr ""
#. (itstool) path: section/title
#: C/custom-gsource.c.page:282
-#| msgid "Furthermore:"
msgid "Further Examples"
msgstr "Ejemplos adicionales"
@@ -60305,6 +61415,9 @@ msgstr ""
"link> sincroniza el hilo principal y un hilo trabajador TLS que realiza las "
"operaciones de bloqueo de TLS."
+#~ msgid "autohen.sh"
+#~ msgstr "autohen.sh"
+
#~ msgctxt "text"
#~ msgid "Tutorial for beginners (C)"
#~ msgstr "Tutorial para principiantes (C)"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]