[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: Sun, 10 Apr 2016 09:01:33 +0000 (UTC)
commit f617ec004b9da4ce522229b7ef2662960bca8657
Author: Daniel Mustieles <daniel mustieles gmail com>
Date: Sun Apr 10 11:01:26 2016 +0200
Updated Spanish translation
platform-demos/es/es.po | 409 +++++++++++++++++++++++++++++------------------
1 files changed, 250 insertions(+), 159 deletions(-)
---
diff --git a/platform-demos/es/es.po b/platform-demos/es/es.po
index c7e1447..85d8997 100644
--- a/platform-demos/es/es.po
+++ b/platform-demos/es/es.po
@@ -5,13 +5,13 @@
# Jorge González <jorgegonz svn gnome org>, 2011.
# Nicolás Satragno <nsatragno gnome org>, 2012, 2013.
#
-# Daniel Mustieles <daniel mustieles gmail com>, 2011, 2012, 2013, 2014, 2015., 2015.
+# Daniel Mustieles <daniel mustieles gmail com>, 2011, 2012, 2013, 2014, 2015., 2016.
#
msgid ""
msgstr ""
"Project-Id-Version: gnome-devel-docs.platform-demos.master\n"
-"POT-Creation-Date: 2015-09-21 19:21+0000\n"
-"PO-Revision-Date: 2015-09-22 15:45+0200\n"
+"POT-Creation-Date: 2016-04-07 08:16+0000\n"
+"PO-Revision-Date: 2016-04-07 12:49+0200\n"
"Last-Translator: Daniel Mustieles <daniel mustieles gmail com>\n"
"Language-Team: Español; Castellano <gnome-es-list gnome org>\n"
"Language: \n"
@@ -25,7 +25,7 @@ msgstr ""
msgctxt "_"
msgid "translator-credits"
msgstr ""
-"Daniel Mustieles <daniel mustieles gmail com>, 2011 - 2015\n"
+"Daniel Mustieles <daniel mustieles gmail com>, 2011 - 2016\n"
"Nicolás Satragno <nsatragno gmail com>, 2012 - 2013\n"
"Jorge González <jorgegonz svn gnome org>, 2011"
@@ -3326,12 +3326,178 @@ msgstr ""
#. (itstool) path: page/code
#: C/aboutdialog.c.page:29
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "#include <gtk/gtk.h>\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function in which reacts to the \"response\" signal from the user in\n"
+#| " * the message dialog window.\n"
+#| " * This function is used to destroy the dialog window.\n"
+#| " */\n"
+#| "static void\n"
+#| "on_close (GtkDialog *dialog,\n"
+#| " gint response_id,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " /*This will cause the dialog to be destroyed*/\n"
+#| " gtk_widget_destroy (GTK_WIDGET (dialog));\n"
+#| "\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the response signal \"activate\" related to the SimpleAction\n"
+#| " * \"about_action\".\n"
+#| " * This function is used to cause the about dialog window to popup.\n"
+#| " */\n"
+#| "static void\n"
+#| "about_cb (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *about_dialog;\n"
+#| "\n"
+#| " about_dialog = gtk_about_dialog_new ();\n"
+#| "\n"
+#| " /* Lists of authors/ documentators to be used later, they must be initialized\n"
+#| " * in a null terminated array of strings.\n"
+#| " */\n"
+#| " const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
+#| " const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
+#| "\n"
+#| " /* We fill in the information for the about dialog */\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"
+#| " /* We do not wish to show the title, which in this case would be \n"
+#| " * \"AboutDialog Example\". We have to reset the title of the messagedialog \n"
+#| " * window after setting the program name.\n"
+#| " */\n"
+#| " gtk_window_set_title (GTK_WINDOW (about_dialog), \"\");\n"
+#| "\n"
+#| " /* To close the aboutdialog when \"close\" is clicked we connect the response \n"
+#| " * signal to on_close\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 *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), \"AboutDialog Example\");\n"
+#| " gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);\n"
+#| "\n"
+#| " /* Create a new simple action, giving it a NULL parameter type. It will \n"
+#| " * always be NULL for actions invoked from a menu. (e.g clicking on an \"ok\" \n"
+#| " * or \"cancel\" button)\n"
+#| " */\n"
+#| " about_action = g_simple_action_new (\"about\", NULL); \n"
+#| "\n"
+#| " /* Connect the \"activate\" signal to the appropriate callback function. \n"
+#| " * It will indicate that the action was just activated.\n"
+#| " */\n"
+#| " g_signal_connect (about_action, \"activate\", G_CALLBACK (about_cb), \n"
+#| " GTK_WINDOW (window));\n"
+#| "\n"
+#| " /* Adds the about_action to the overall action map. An Action map is an \n"
+#| " * interface that contains a number of named GAction instances \n"
+#| " * (such as about_action) \n"
+#| " */\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 response signal \"activate\" from the \"quit\" action \n"
+#| " * found in the function directly below.\n"
+#| " */ \n"
+#| "static void\n"
+#| "quit_cb (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GApplication *application = user_data;\n"
+#| "\n"
+#| " g_application_quit (application);\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"
+#| " GMenu *menu;\n"
+#| " GSimpleAction *quit_action;\n"
+#| "\n"
+#| " /* Initialize the GMenu, and add a menu item with label \"About\" and action \n"
+#| " * \"win.about\". Also add another menu item with label \"Quit\" and action \n"
+#| " * \"app.quit\" \n"
+#| " */\n"
+#| " menu = g_menu_new ();\n"
+#| " g_menu_append (menu, \"About\", \"win.about\");\n"
+#| " g_menu_append (menu, \"Quit\", \"app.quit\");\n"
+#| "\n"
+#| " /* Create a new simple action for the application. (In this case it is the \n"
+#| " * \"quit\" action.\n"
+#| " */\n"
+#| " quit_action = g_simple_action_new (\"quit\", NULL);\n"
+#| "\n"
+#| " /* Ensure that the menu we have just created is set for the overall application */\n"
+#| " gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (menu));\n"
+#| "\n"
+#| " g_signal_connect (quit_action, \n"
+#| " \"activate\", \n"
+#| " G_CALLBACK (quit_cb), \n"
+#| " app);\n"
+#| "\n"
+#| " g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (quit_action));\n"
+#| "\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"
"\n"
-"\n"
-"\n"
"/* Callback function in which reacts to the \"response\" signal from the user in\n"
" * the message dialog window.\n"
" * This function is used to destroy the dialog window.\n"
@@ -3341,13 +3507,10 @@ msgid ""
" gint response_id,\n"
" gpointer user_data)\n"
"{\n"
-" /*This will cause the dialog to be destroyed*/\n"
+" /* This will cause the dialog to be destroyed */\n"
" gtk_widget_destroy (GTK_WIDGET (dialog));\n"
-"\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Callback function for the response signal \"activate\" related to the SimpleAction\n"
" * \"about_action\".\n"
" * This function is used to cause the about dialog window to popup.\n"
@@ -3357,42 +3520,40 @@ msgid ""
" GVariant *parameter,\n"
" gpointer user_data)\n"
"{\n"
-" GtkWidget *about_dialog;\n"
-"\n"
-" about_dialog = gtk_about_dialog_new ();\n"
+" GtkWidget *about_dialog;\n"
"\n"
-" /* Lists of authors/ documentators to be used later, they must be initialized\n"
-" * in a null terminated array of strings.\n"
-" */\n"
-" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
-" const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
+" about_dialog = gtk_about_dialog_new ();\n"
"\n"
-" /* We fill in the information for the about dialog */\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"
-" /* We do not wish to show the title, which in this case would be \n"
-" * \"AboutDialog Example\". We have to reset the title of the messagedialog \n"
+" /* Lists of authors/ documentators to be used later, they must be initialized\n"
+" * in a null terminated array of strings.\n"
+" */\n"
+" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
+" const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
+"\n"
+" /* We fill in the information for the about dialog */\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"
+" /* We do not wish to show the title, which in this case would be\n"
+" * \"AboutDialog Example\". We have to reset the title of the messagedialog\n"
" * window after setting the program name.\n"
" */\n"
" gtk_window_set_title (GTK_WINDOW (about_dialog), \"\");\n"
"\n"
-" /* To close the aboutdialog when \"close\" is clicked we connect the response \n"
+" /* To close the aboutdialog when \"close\" is clicked we connect the response\n"
" * signal to on_close\n"
" */\n"
-" g_signal_connect (GTK_DIALOG (about_dialog), \"response\", \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"
+" gtk_widget_show (about_dialog);\n"
"}\n"
"\n"
-"\n"
-"\n"
"static void\n"
"activate (GtkApplication *app,\n"
" gpointer user_data)\n"
@@ -3406,32 +3567,30 @@ msgid ""
" gtk_window_set_title (GTK_WINDOW (window), \"AboutDialog Example\");\n"
" gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);\n"
"\n"
-" /* Create a new simple action, giving it a NULL parameter type. It will \n"
-" * always be NULL for actions invoked from a menu. (e.g clicking on an \"ok\" \n"
+" /* Create a new simple action, giving it a NULL parameter type. It will\n"
+" * always be NULL for actions invoked from a menu. (e.g clicking on an \"ok\"\n"
" * or \"cancel\" button)\n"
" */\n"
-" about_action = g_simple_action_new (\"about\", NULL); \n"
+" about_action = g_simple_action_new (\"about\", NULL);\n"
"\n"
-" /* Connect the \"activate\" signal to the appropriate callback function. \n"
+" /* Connect the \"activate\" signal to the appropriate callback function.\n"
" * It will indicate that the action was just activated.\n"
" */\n"
-" g_signal_connect (about_action, \"activate\", G_CALLBACK (about_cb), \n"
+" g_signal_connect (about_action, \"activate\", G_CALLBACK (about_cb),\n"
" GTK_WINDOW (window));\n"
"\n"
-" /* Adds the about_action to the overall action map. An Action map is an \n"
-" * interface that contains a number of named GAction instances \n"
-" * (such as about_action) \n"
+" /* Adds the about_action to the overall action map. An Action map is an\n"
+" * interface that contains a number of named GAction instances\n"
+" * (such as about_action)\n"
" */\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 response signal \"activate\" from the \"quit\" action \n"
+"/* Callback function for the response signal \"activate\" from the \"quit\" action\n"
" * found in the function directly below.\n"
-" */ \n"
+" */\n"
"static void\n"
"quit_cb (GSimpleAction *simple,\n"
" GVariant *parameter,\n"
@@ -3442,8 +3601,6 @@ msgid ""
" g_application_quit (application);\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Startup function for the menu we are creating in this sample */\n"
"static void\n"
"startup (GApplication *app,\n"
@@ -3452,15 +3609,15 @@ msgid ""
" GMenu *menu;\n"
" GSimpleAction *quit_action;\n"
"\n"
-" /* Initialize the GMenu, and add a menu item with label \"About\" and action \n"
-" * \"win.about\". Also add another menu item with label \"Quit\" and action \n"
-" * \"app.quit\" \n"
+" /* Initialize the GMenu, and add a menu item with label \"About\" and action\n"
+" * \"win.about\". Also add another menu item with label \"Quit\" and action\n"
+" * \"app.quit\"\n"
" */\n"
" menu = g_menu_new ();\n"
" g_menu_append (menu, \"About\", \"win.about\");\n"
" g_menu_append (menu, \"Quit\", \"app.quit\");\n"
"\n"
-" /* Create a new simple action for the application. (In this case it is the \n"
+" /* Create a new simple action for the application. (In this case it is the\n"
" * \"quit\" action.\n"
" */\n"
" quit_action = g_simple_action_new (\"quit\", NULL);\n"
@@ -3468,17 +3625,14 @@ msgid ""
" /* Ensure that the menu we have just created is set for the overall application */\n"
" gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (menu));\n"
"\n"
-" g_signal_connect (quit_action, \n"
-" \"activate\", \n"
-" G_CALLBACK (quit_cb), \n"
+" g_signal_connect (quit_action,\n"
+" \"activate\",\n"
+" G_CALLBACK (quit_cb),\n"
" app);\n"
"\n"
" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (quit_action));\n"
-"\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Startup function for the application */\n"
"int\n"
"main (int argc, char **argv)\n"
@@ -3498,8 +3652,6 @@ msgstr ""
"\n"
"#include <gtk/gtk.h>\n"
"\n"
-"\n"
-"\n"
"/* Callback function in which reacts to the \"response\" signal from the user in\n"
" * the message dialog window.\n"
" * This function is used to destroy the dialog window.\n"
@@ -3509,13 +3661,10 @@ msgstr ""
" gint response_id,\n"
" gpointer user_data)\n"
"{\n"
-" /*This will cause the dialog to be destroyed*/\n"
+" /* This will cause the dialog to be destroyed */\n"
" gtk_widget_destroy (GTK_WIDGET (dialog));\n"
-"\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Callback function for the response signal \"activate\" related to the SimpleAction\n"
" * \"about_action\".\n"
" * This function is used to cause the about dialog window to popup.\n"
@@ -3525,42 +3674,40 @@ msgstr ""
" GVariant *parameter,\n"
" gpointer user_data)\n"
"{\n"
-" GtkWidget *about_dialog;\n"
+" GtkWidget *about_dialog;\n"
"\n"
-" about_dialog = gtk_about_dialog_new ();\n"
-"\n"
-" /* Lists of authors/ documentators to be used later, they must be initialized\n"
-" * in a null terminated array of strings.\n"
-" */\n"
-" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
-" const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
-"\n"
-" /* We fill in the information for the about dialog */\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"
+" about_dialog = gtk_about_dialog_new ();\n"
"\n"
-" /* We do not wish to show the title, which in this case would be \n"
-" * \"AboutDialog Example\". We have to reset the title of the messagedialog \n"
+" /* Lists of authors/ documentators to be used later, they must be initialized\n"
+" * in a null terminated array of strings.\n"
+" */\n"
+" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
+" const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
+"\n"
+" /* We fill in the information for the about dialog */\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"
+" /* We do not wish to show the title, which in this case would be\n"
+" * \"AboutDialog Example\". We have to reset the title of the messagedialog\n"
" * window after setting the program name.\n"
" */\n"
" gtk_window_set_title (GTK_WINDOW (about_dialog), \"\");\n"
"\n"
-" /* To close the aboutdialog when \"close\" is clicked we connect the response \n"
+" /* To close the aboutdialog when \"close\" is clicked we connect the response\n"
" * signal to on_close\n"
" */\n"
-" g_signal_connect (GTK_DIALOG (about_dialog), \"response\", \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"
+" gtk_widget_show (about_dialog);\n"
"}\n"
"\n"
-"\n"
-"\n"
"static void\n"
"activate (GtkApplication *app,\n"
" gpointer user_data)\n"
@@ -3574,32 +3721,30 @@ msgstr ""
" gtk_window_set_title (GTK_WINDOW (window), \"AboutDialog Example\");\n"
" gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);\n"
"\n"
-" /* Create a new simple action, giving it a NULL parameter type. It will \n"
-" * always be NULL for actions invoked from a menu. (e.g clicking on an \"ok\" \n"
+" /* Create a new simple action, giving it a NULL parameter type. It will\n"
+" * always be NULL for actions invoked from a menu. (e.g clicking on an \"ok\"\n"
" * or \"cancel\" button)\n"
" */\n"
-" about_action = g_simple_action_new (\"about\", NULL); \n"
+" about_action = g_simple_action_new (\"about\", NULL);\n"
"\n"
-" /* Connect the \"activate\" signal to the appropriate callback function. \n"
+" /* Connect the \"activate\" signal to the appropriate callback function.\n"
" * It will indicate that the action was just activated.\n"
" */\n"
-" g_signal_connect (about_action, \"activate\", G_CALLBACK (about_cb), \n"
+" g_signal_connect (about_action, \"activate\", G_CALLBACK (about_cb),\n"
" GTK_WINDOW (window));\n"
"\n"
-" /* Adds the about_action to the overall action map. An Action map is an \n"
-" * interface that contains a number of named GAction instances \n"
-" * (such as about_action) \n"
+" /* Adds the about_action to the overall action map. An Action map is an\n"
+" * interface that contains a number of named GAction instances\n"
+" * (such as about_action)\n"
" */\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 response signal \"activate\" from the \"quit\" action \n"
+"/* Callback function for the response signal \"activate\" from the \"quit\" action\n"
" * found in the function directly below.\n"
-" */ \n"
+" */\n"
"static void\n"
"quit_cb (GSimpleAction *simple,\n"
" GVariant *parameter,\n"
@@ -3610,8 +3755,6 @@ msgstr ""
" g_application_quit (application);\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Startup function for the menu we are creating in this sample */\n"
"static void\n"
"startup (GApplication *app,\n"
@@ -3620,15 +3763,15 @@ msgstr ""
" GMenu *menu;\n"
" GSimpleAction *quit_action;\n"
"\n"
-" /* Initialize the GMenu, and add a menu item with label \"About\" and action \n"
-" * \"win.about\". Also add another menu item with label \"Quit\" and action \n"
-" * \"app.quit\" \n"
+" /* Initialize the GMenu, and add a menu item with label \"About\" and action\n"
+" * \"win.about\". Also add another menu item with label \"Quit\" and action\n"
+" * \"app.quit\"\n"
" */\n"
" menu = g_menu_new ();\n"
" g_menu_append (menu, \"About\", \"win.about\");\n"
" g_menu_append (menu, \"Quit\", \"app.quit\");\n"
"\n"
-" /* Create a new simple action for the application. (In this case it is the \n"
+" /* Create a new simple action for the application. (In this case it is the\n"
" * \"quit\" action.\n"
" */\n"
" quit_action = g_simple_action_new (\"quit\", NULL);\n"
@@ -3636,17 +3779,14 @@ msgstr ""
" /* Ensure that the menu we have just created is set for the overall application */\n"
" gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (menu));\n"
"\n"
-" g_signal_connect (quit_action, \n"
-" \"activate\", \n"
-" G_CALLBACK (quit_cb), \n"
+" g_signal_connect (quit_action,\n"
+" \"activate\",\n"
+" G_CALLBACK (quit_cb),\n"
" app);\n"
"\n"
" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (quit_action));\n"
-"\n"
"}\n"
"\n"
-"\n"
-"\n"
"/* Startup function for the application */\n"
"int\n"
"main (int argc, char **argv)\n"
@@ -38582,19 +38722,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/record-collection.js.page:174
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " setupDatabase: function () {\n"
-#| " this.connection = new Gda.Connection ({provider: Gda.Config.get_provider(\"SQLite\"),\n"
-#| " cnc_string:\"DB_DIR=\" + GLib.get_home_dir () +
\";DB_NAME=gnome_demo\"});\n"
-#| " this.connection.open ();\n"
-#| "\n"
-#| " try {\n"
-#| " var dm = Gda.execute_select_command (this.connection, \"select * from demo\");\n"
-#| " } catch (e) {\n"
-#| " Gda.execute_non_select_command (this.connection, \"create table demo (id integer, name
varchar(100))\");\n"
-#| " }\n"
-#| " },"
msgid ""
"\n"
" setupDatabase: function () {\n"
@@ -38699,11 +38826,6 @@ msgstr ""
#. (itstool) path: item/p
#: C/record-collection.js.page:205
-#| msgid ""
-#| "In order to run the SQL commands above we are using global GDA functions, "
-#| "<code>execute_select_command</code> and <code>execute_non_select_command</"
-#| "code>. They are simple to use, and just require two arguments: The "
-#| "<code>Connection</code> object and the SQL command to be parsed."
msgid ""
"In order to run the SQL commands above we are using the GDA connection "
"methods <code>execute_select_command</code> and "
@@ -38743,24 +38865,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/record-collection.js.page:217
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " selectData: function () {\n"
-#| " var dm = Gda.execute_select_command (this.connection, \"select * from demo order by 1, 2\");\n"
-#| " var iter = dm.create_iter ();\n"
-#| "\n"
-#| " var text = \"\";\n"
-#| "\n"
-#| " while (iter.move_next ()) {\n"
-#| " var id_field = Gda.value_stringify (iter.get_value_at (0));\n"
-#| " var name_field = Gda.value_stringify (iter.get_value_at (1));\n"
-#| "\n"
-#| " text += id_field + \"\\t=>\\t\" + name_field + '\\n';\n"
-#| " }\n"
-#| "\n"
-#| " this.text.buffer.text = text;\n"
-#| " this.count_label.label = \"<i>\" + dm.get_n_rows () + \" record(s)</i>\";\n"
-#| " },"
msgid ""
"\n"
" selectData: function () {\n"
@@ -38800,10 +38904,6 @@ msgstr ""
#. (itstool) path: item/p
#: C/record-collection.js.page:235
-#| msgid ""
-#| "Line 2: The <code>SELECT</code> command. We are using the global GDA's "
-#| "function <code>execute_select_command</code> for that. It returns a "
-#| "<code>DataModel</code> object, which is later used to retrieve the rows."
msgid ""
"Line 2: The <code>SELECT</code> command. We are using the GDA connection's "
"<code>execute_select_command</code> method for that. It returns a "
@@ -38962,15 +39062,6 @@ msgstr ""
#. (itstool) path: section/p
#: C/record-collection.js.page:274
-#| msgid ""
-#| "We have learned how to use GDA's convenience functions "
-#| "<code>execute_select_command</code> and <code>execute_non_select_command</"
-#| "code> to quickly execute SQL commands on the database. GDA allows one to "
-#| "build a SQL statement indirectly, by using its <code>SqlBuilder</code> "
-#| "object. What are the benefits of this? GDA will generate the SQL "
-#| "statement dynamically, and it will be valid for the connection provider "
-#| "used (it will use the same SQL dialect the provider uses). Let's study "
-#| "the code:"
msgid ""
"We have learned how to use the GDA connection's methods "
"<code>execute_select_command</code> and <code>execute_non_select_command</"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]