[gnome-devel-docs] Updated Greek translation
- From: Damned-Lies <translations src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Updated Greek translation
- Date: Sat, 3 Oct 2015 12:30:35 +0000 (UTC)
commit ddbb0af2087b2a660b18a6b8051dd9bd0d57c460
Author: Tom Tryfonidis <tomtryf gmail com>
Date: Sat Oct 3 12:30:26 2015 +0000
Updated Greek translation
platform-demos/el/el.po | 4736 ++++++++++++++++++++++++++++++++++++++++++-----
1 files changed, 4255 insertions(+), 481 deletions(-)
---
diff --git a/platform-demos/el/el.po b/platform-demos/el/el.po
index 1224c6f..3fc8401 100644
--- a/platform-demos/el/el.po
+++ b/platform-demos/el/el.po
@@ -7,8 +7,8 @@
msgid ""
msgstr ""
"Project-Id-Version: gnome-devel-docs master\n"
-"POT-Creation-Date: 2015-03-15 07:32+0000\n"
-"PO-Revision-Date: 2015-04-08 16:48+0200\n"
+"POT-Creation-Date: 2015-09-20 15:43+0300\n"
+"PO-Revision-Date: 2015-10-03 15:26+0300\n"
"Last-Translator: Tom Tryfonidis <tomtryf gmail com>\n"
"Language-Team: team lists gnome gr\n"
"Language: el\n"
@@ -16,7 +16,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
-"X-Generator: Poedit 1.7.5\n"
+"X-Generator: Poedit 1.8.5\n"
"X-Project-Style: gnome\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
@@ -535,7 +535,7 @@ 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 "
+"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 ""
"Ο <em>δεύτερος</em> αριθμός είναι σε ποια θέση από πάνω προς τα κάτω θα μπει το δεδομένο γραφικό στοιχείο, "
@@ -793,8 +793,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."
-msgstr "Δεύτερο, μπορούμε να ορίσουμε την ιδιότητα column_homogenous σε αληθή."
+msgid "Second, we can set the Grid's column_homogeneous property to true."
+msgstr "Δεύτερο, μπορούμε να ορίσουμε την ιδιότητα πλέγμετος column_homogenous σε αληθή."
#. (itstool) path: section/code
#: C/02_welcome_to_the_grid.js.page:209
@@ -3463,9 +3463,9 @@ msgstr "Σε αυτό το παράδειγμα χρησιμοποιήσαμε
#. (itstool) path: item/p
#: C/aboutdialog.c.page:35 C/button.c.page:34 C/combobox.c.page:35 C/dialog.c.page:34 C/entry.c.page:32
#: C/grid.c.page:32 C/GtkApplicationWindow.c.page:30 C/image.c.page:33 C/label.c.page:37
C/linkbutton.c.page:32
-#: C/messagedialog.c.page:36 C/progressbar.c.page:33 C/radiobutton.c.page:34 C/scale.c.page:34
-#: C/spinbutton.c.page:35 C/spinner.c.page:33 C/statusbar.c.page:36 C/switch.c.page:33 C/textview.c.page:36
-#: C/togglebutton.c.page:36 C/window.c.page:34
+#: C/messagedialog.c.page:36 C/progressbar.c.page:33 C/radiobutton.c.page:34 C/scale.c.page:34
C/spinbutton.c.page:35
+#: C/spinner.c.page:33 C/statusbar.c.page:36 C/switch.c.page:33 C/textview.c.page:36 C/togglebutton.c.page:36
+#: C/window.c.page:34
msgid "<link href=\"http://developer.gnome.org/gtk3/3.4/GtkApplication.html\">GtkApplication</link>"
msgstr "<link href=\"http://developer.gnome.org/gtk3/3.4/GtkApplication.html\">GtkApplication</link>"
@@ -3737,20 +3737,20 @@ msgstr "<link href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.AboutDial
#. (itstool) path: item/p
#: C/aboutdialog.js.page:32 C/button.js.page:31 C/checkbutton.js.page:138 C/comboboxtext.js.page:181
#: C/combobox.js.page:238 C/dialog.js.page:30 C/entry.js.page:30 C/grid.js.page:34
C/GtkApplicationWindow.js.page:31
-#: C/image.js.page:32 C/label.js.page:30 C/linkbutton.js.page:30 C/messagedialog.js.page:196
-#: C/progressbar.js.page:40 C/radiobutton.js.page:276 C/scale.js.page:211 C/spinbutton.js.page:202
-#: C/spinner.js.page:31 C/statusbar.js.page:223 C/switch.js.page:268 C/textview.js.page:250
-#: C/togglebutton.js.page:155 C/treeview_simple_liststore.js.page:277 C/window.js.page:39
+#: C/image.js.page:32 C/label.js.page:30 C/linkbutton.js.page:30 C/messagedialog.js.page:196
C/progressbar.js.page:40
+#: C/radiobutton.js.page:276 C/scale.js.page:211 C/spinbutton.js.page:202 C/spinner.js.page:31
+#: C/statusbar.js.page:223 C/switch.js.page:268 C/textview.js.page:250 C/togglebutton.js.page:155
+#: C/treeview_simple_liststore.js.page:277 C/window.js.page:39
msgid "<link
href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Application.html\">Gtk.Application</link>"
msgstr "<link
href=\"http://www.roojs.com/seed/gir-1.2-gtk-3.0/gjs/Gtk.Application.html\">Gtk.Application</link>"
#. (itstool) path: item/p
#: C/aboutdialog.js.page:33 C/button.js.page:32 C/checkbutton.js.page:139 C/comboboxtext.js.page:182
#: C/combobox.js.page:239 C/dialog.js.page:31 C/entry.js.page:31 C/grid.js.page:35
C/GtkApplicationWindow.js.page:32
-#: C/image.js.page:33 C/label.js.page:31 C/linkbutton.js.page:31 C/messagedialog.js.page:197
-#: C/progressbar.js.page:41 C/radiobutton.js.page:277 C/scale.js.page:212 C/spinbutton.js.page:203
-#: C/spinner.js.page:32 C/statusbar.js.page:224 C/switch.js.page:269 C/textview.js.page:251
-#: C/togglebutton.js.page:156 C/treeview_simple_liststore.js.page:278
+#: C/image.js.page:33 C/label.js.page:31 C/linkbutton.js.page:31 C/messagedialog.js.page:197
C/progressbar.js.page:41
+#: C/radiobutton.js.page:277 C/scale.js.page:212 C/spinbutton.js.page:203 C/spinner.js.page:32
+#: C/statusbar.js.page:224 C/switch.js.page:269 C/textview.js.page:251 C/togglebutton.js.page:156
+#: C/treeview_simple_liststore.js.page:278
msgid "<link
href=\"http://developer.gnome.org/gtk3/stable/GtkApplicationWindow.html\">Gtk.ApplicationWindow</link>"
msgstr "<link
href=\"http://developer.gnome.org/gtk3/stable/GtkApplicationWindow.html\">Gtk.ApplicationWindow</link>"
@@ -4015,8 +4015,8 @@ msgstr ""
#: C/paned.vala.page:33 C/progressbar.py.page:54 C/radiobutton.py.page:46 C/scale.py.page:54
#: C/scrolledwindow.js.page:33 C/scrolledwindow.py.page:42 C/spinbutton.py.page:46 C/spinner.py.page:39
#: C/statusbar.py.page:50 C/switch.py.page:42 C/textview.py.page:93 C/togglebutton.py.page:41
C/toolbar.py.page:52
-#: C/toolbar_builder.py.page:191 C/tooltip.c.page:35 C/tooltip.js.page:34 C/tooltip.py.page:56
-#: C/tooltip.vala.page:35 C/treeview_advanced_liststore.py.page:41 C/treeview_cellrenderertoggle.py.page:41
+#: C/toolbar_builder.py.page:191 C/tooltip.c.page:35 C/tooltip.js.page:34 C/tooltip.py.page:56
C/tooltip.vala.page:35
+#: C/treeview_advanced_liststore.py.page:41 C/treeview_cellrenderertoggle.py.page:41
#: C/treeview_simple_liststore.py.page:42 C/treeview_treestore.py.page:41 C/widget_drawing.py.page:35
#: C/window.py.page:60
msgid "API References"
@@ -4241,9 +4241,9 @@ msgid "Audio player"
msgstr "Αναπαραγωγός ήχου"
#. (itstool) path: credit/name
-#: C/beginner.js.page:11 C/grid.js.page:13 C/guitar-tuner.js.page:12 C/hello-world.c.page:15
-#: C/hello-world.js.page:15 C/hello-world.py.page:15 C/hello-world.vala.page:15 C/weatherApp.js.page:12
-#: C/weatherAppMain.js.page:11 C/weatherAutotools.js.page:11 C/weatherGeonames.js.page:11
+#: C/beginner.js.page:11 C/grid.js.page:13 C/guitar-tuner.js.page:12 C/hello-world.c.page:15
C/hello-world.js.page:15
+#: C/hello-world.py.page:15 C/hello-world.vala.page:15 C/weatherApp.js.page:12 C/weatherAppMain.js.page:11
+#: C/weatherAutotools.js.page:11 C/weatherGeonames.js.page:11
msgid "Susanna Huhtanen"
msgstr "Susanna Huhtanen"
@@ -4279,13 +4279,14 @@ msgstr "Μάθημα για αρχάριους και δείγματα κώδι
msgid ""
"JavaScript is one of the most popular programming languages on the web. It's not just for the web, though.
If you "
"have even a basic understanding of JavaScript, you can write full-fledged applications for GNOME. <link
href="
-"\"https://live.gnome.org/GnomeDocuments\">GNOME Documents</link> is written in JavaScript, and so is <link
href="
+"\"https://wiki.gnome.org/Apps/Documents\">GNOME Documents</link> is written in JavaScript, and so is <link
href="
"\"https://live.gnome.org/GnomeShell/Tour\">GNOME Shell</link>, the most basic part of GNOME."
msgstr ""
-"Η JavaScript είναι μία από τις πιο δημοφιλείς γλώσσες προγραμματισμού στον ιστό. Δεν είναι μόνο για τον
ιστό, "
-"όμως. Εάν έχετε ακόμα μια βασική κατανόηση της JavaScript, μπορείτε να γράψετε πλήρεις εφαρμογές για το
GNOME. "
-"<link href=\"https://live.gnome.org/GnomeDocuments\">έγγραφα GNOME</link> είναι γραμμένο σε JavaScript και
έτσι "
-"είναι το <link href=\"https://live.gnome.org/GnomeShell/Tour\">κέλυφος GNOME</link>, το πιο βασικό μέρος
του GNOME."
+"Η JavaScript είναι μία από τις πιο δημοφιλής γλώσσες προγραμματισμού για το διαδίκτυο. Δεν είναι όμως μόνο
για "
+"αυτό. Αν έχετε μια βασική κατανόηση της JavaScript, τότε μπορείτε να γράψετε μια πλήρη εφαρμογή για το
GNOME. Η "
+"εφαρμογή <link href=\"https://wiki.gnome.org/Apps/Documents\">Έγγραφα GNOME</link> είναι γραμμένη σε
JavaScript, "
+"το ίδιο και το <link href=\"https://live.gnome.org/GnomeShell/Tour\">GNOME Shell</link>, το σημαντικότερο
κομμάτι "
+"του GNOME."
#. (itstool) path: note/p
#: C/beginner.js.page:27
@@ -4943,7 +4944,7 @@ msgid ""
"\n"
" # callback function connected to the signal \"clicked\" of the button\n"
" def do_clicked(self, button):\n"
-" print \"You clicked me!\"\n"
+" print(\"You clicked me!\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -4985,7 +4986,7 @@ msgstr ""
"\n"
" # callback function connected to the signal \"clicked\" of the button\n"
" def do_clicked(self, button):\n"
-" print \"You clicked me!\"\n"
+" print(\"You clicked me!\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -5934,7 +5935,7 @@ msgstr ""
#. (itstool) path: section/title
#: C/buttonbox.py.page:36
-msgid "Uselful methods for a ButtonBox widget"
+msgid "Useful methods for a ButtonBox widget"
msgstr "Χρήσιμες μέθοδοι για ένα γραφικό στοιχείο ButtonBox"
#. (itstool) path: item/p
@@ -5974,9 +5975,9 @@ msgstr ""
#: 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>."
+"homogeneous sizing. Default value is <code>False</code>."
msgstr ""
-"Ο <code>set_child_non_homogeneous(button, is_non_homogeneous)</code> ορίζει εάν το θυγατρικό εξαιρείται από
το "
+"Το <code>set_child_non_homogeneous(button, is_non_homogeneous)</code> ορίζει εάν το θυγατρικό εξαιρείται
από το "
"ομογενές μέγεθος. Προεπιλεγμένη τιμή είναι <code>False</code>."
#. (itstool) path: item/p
@@ -6038,6 +6039,10 @@ msgid ""
"link>. You will also need GTK+ 3 including headers and pkg-config files. Linux distributions usually
abstract GTK+ "
"3 headers and pkg-config files into separate packages called <em>gtk3-devel</em>, <em>gtk3-dev</em> or
similar."
msgstr ""
+"Για να μεταγλωττιστούν τα παραδείγματα αυτά θα χρειαστείτε έναν μεταγλωττιστή της C, για παράδειγμα το
<link href="
+"\"https://gcc.gnu.org/\">gcc</link>. Θα χρειαστείτε επίσης τις κεφαλίδες και τα αρχεία pkg-config του GTK+
3. "
+"Συνήθως οι διανομές Linux χωρίζουν αυτά τα αρχεία σε διαφορετικά πακέτα με ονόματα <em>gtk3-devel</em>,
<em>gtk3-"
+"dev</em> ή κάτι παρόμοιο."
#. (itstool) path: section/title
#: C/c.page:44
@@ -6051,6 +6056,9 @@ msgid ""
"your GNOME application. GNOME also recommends a specific coding style and conventions which this section
will "
"elaborate further upon."
msgstr ""
+"Εκτός από τα προαπαιτούμενα που αναφέρθηκαν, αρκετά εργαλεία έχουν αναπτυχθεί για να σας βοηθήσουν στην
ανάπτυξη "
+"μιας εφαρμογής για το GNOME. Το GNOME συνιστά επίσης ένα συγκεκριμένο πρότυπο και στυλ για την εγγραφή
κώδικα το "
+"οποίο θα αναλυθεί και παρακάτω."
#. (itstool) path: section/title
#: C/c.page:52
@@ -6061,6 +6069,7 @@ msgstr "Προτεινόμενα εργαλεία"
#: C/c.page:56
msgid "<link href=\"https://wiki.gnome.org/Apps/Devhelp\">DevHelp</link>: An API documentation browser for
GNOME."
msgstr ""
+"<link href=\"https://wiki.gnome.org/Apps/Devhelp\">DevHelp</link>: Ένας περιηγητής τεκμηρίωσης API για το
GNOME."
#. (itstool) path: item/p
#: C/c.page:60
@@ -6069,6 +6078,9 @@ msgid ""
"example <link href=\"https://wiki.gnome.org/Apps/Builder\">Builder</link> or <link
href=\"https://wiki.gnome.org/"
"Apps/Anjuta\">Anjuta</link>."
msgstr ""
+"GNOME IDE (Ολοκληρωμένο περιβάλλον ανάπτυξης). Ένα IDE σας βοηθάει στην εγγραφή και αποσφαλμάτωση κώδικα C,
όπως "
+"για παράδειγμα το <link href=\"https://wiki.gnome.org/Apps/Builder\">Builder</link> ή το <link
href=\"https://wiki."
+"gnome.org/Apps/Anjuta\">Anjuta</link>."
#. (itstool) path: item/p
#: C/c.page:66
@@ -6082,6 +6094,9 @@ msgid ""
"wiki.gnome.org/Apps/Empathy\">Empathy</link>. If you run into problems while following the beginner
tutorials, "
"join #gnome on <em>irc.gnome.org</em>."
msgstr ""
+"Ένας πελάτης IRC, για παράδειγμα το <link href=\"https://wiki.gnome.org/Apps/Polari\">Polari</link> ή το
<link "
+"href=\"https://wiki.gnome.org/Apps/Empathy\">Empathy</link>. Αν αντιμετωπίσετε προβλήματα με την ανάγνωση
των "
+"οδηγών, συνδεθείτε στο κανάλι #gnome στο <em>irc.gnome.org</em>."
#. (itstool) path: section/title
#: C/c.page:80
@@ -6095,6 +6110,9 @@ msgid ""
"Indent_style#GNU_style\">GNU style</link> of indentation. The tutorials and code examples presented are
following "
"this convention and you are recommended to do so too."
msgstr ""
+"Οι περισσότερες εφαρμογές του έργου GNOME έχουν γραφεί σύμφωνα με τα <link
href=\"http://en.wikipedia.org/wiki/"
+"Indent_style#GNU_style\">πρότυπα του GNU</link>. Τα μαθήματα και τα παραδείγματα κώδικα αυτού του οδηγού, "
+"ακολουθούν τα πρότυτα αυτά και καλό είναι να το κάνετε και εσείς."
#. (itstool) path: section/title
#: C/c.page:89
@@ -6901,7 +6919,7 @@ 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 discrete toggle button"
msgstr "Δημιουργία γραφικών στοιχείων με ένα διακριτό κουμπί εναλλαγής"
#. (itstool) path: page/code
@@ -7251,7 +7269,7 @@ msgid ""
"\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"
+" print(\"You chose the color: \" + self.button.get_rgba().to_string())\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -7308,7 +7326,7 @@ msgstr ""
"\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"
+" print(\"You chose the color: \" + self.button.get_rgba().to_string())\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -9225,7 +9243,7 @@ msgid ""
" # if the row selected is not the first one, write its value on the\n"
" # terminal\n"
" if combo.get_active() != 0:\n"
-" print \"You chose \" + str(distros[combo.get_active()][0]) + \".\"\n"
+" print(\"You chose \" + str(distros[combo.get_active()][0]) + \".\")\n"
" return True\n"
"\n"
"\n"
@@ -9291,7 +9309,7 @@ msgstr ""
" # if the row selected is not the first one, write its value on the\n"
" # terminal\n"
" if combo.get_active() != 0:\n"
-" print \"You chose \" + str(distros[combo.get_active()][0]) + \".\"\n"
+" print(\"You chose \" + str(distros[combo.get_active()][0]) + \".\")\n"
" return True\n"
"\n"
"\n"
@@ -9421,7 +9439,7 @@ msgid ""
"\t\tcombobox.set_active (0);\n"
"\n"
"\t\t/* Connect the 'changed' signal of the combobox\n"
-"\t\t * to the signal handler (aka. callback function.\n"
+"\t\t * to the signal handler (aka. callback function).\n"
"\t\t */\n"
"\t\tcombobox.changed.connect (this.item_changed);\n"
"\n"
@@ -9501,7 +9519,7 @@ msgstr ""
"\t\tcombobox.set_active (0);\n"
"\n"
"\t\t/* Connect the 'changed' signal of the combobox\n"
-"\t\t * to the signal handler (aka. callback function.\n"
+"\t\t * to the signal handler (aka. callback function).\n"
"\t\t */\n"
"\t\tcombobox.changed.connect (this.item_changed);\n"
"\n"
@@ -9628,7 +9646,7 @@ msgid ""
" # 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"
-" print \"You chose \" + str(actions[combo.get_active()][0]) + \"\\n\"\n"
+" print(\"You chose \" + str(actions[combo.get_active()][0]) + \"\\n\")\n"
" return True\n"
"\n"
"\n"
@@ -9704,7 +9722,7 @@ msgstr ""
" # 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"
-" print \"You chose \" + str(actions[combo.get_active()][0]) + \"\\n\"\n"
+" print(\"You chose \" + str(actions[combo.get_active()][0]) + \"\\n\")\n"
" return True\n"
"\n"
"\n"
@@ -9802,7 +9820,7 @@ msgid ""
"\t\tcombobox.set_active (0);\n"
"\n"
"\t\t/* Connect the 'changed' signal of the combobox\n"
-"\t\t * to the signal handler (aka. callback function.\n"
+"\t\t * to the signal handler (aka. callback function).\n"
"\t\t */\n"
"\t\tcombobox.changed.connect (this.item_changed);\n"
"\n"
@@ -9830,8 +9848,8 @@ msgid ""
msgstr ""
"class MyWindow : Gtk.ApplicationWindow {\n"
"\n"
-"\tstring[] file = {\"Select\", \"New\", \"Open\", \"Save\"}·\n"
-"\tstring[] stock_item = {\"\",\"gtk-new\", \"gtk-open\", \"gtk-save\"}·\n"
+"\tstring[] file = {\"Select\", \"New\", \"Open\", \"Save\"};\n"
+"\tstring[] stock_item = {\"\",\"gtk-new\", \"gtk-open\", \"gtk-save\"};\n"
"\n"
"\tenum Column {\n"
"\t\tFILE,\n"
@@ -9840,69 +9858,69 @@ msgstr ""
"\n"
"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
-"\t\tObject (application: app, title: \"Welcome to GNOME\")·\n"
+"\t\tObject (application: app, title: \"Welcome to GNOME\");\n"
"\n"
-"\t\tthis.set_default_size (200, -1)·\n"
-"\t\tthis.border_width = 10·\n"
+"\t\tthis.set_default_size (200, -1);\n"
+"\t\tthis.border_width = 10;\n"
"\n"
-"\t\tGtk.ListStore liststore = new Gtk.ListStore (2, typeof (string), typeof (string))·\n"
+"\t\tGtk.ListStore liststore = new Gtk.ListStore (2, typeof (string), typeof (string));\n"
"\n"
-"\t\tfor (int i = 0· i < file.length· i++){\n"
-"\t\t\tGtk.TreeIter iter·\n"
-"\t\t\tliststore.append (out iter)·\n"
-"\t\t\tliststore.set (iter, Column.FILE, file[i])·\n"
-"\t\t\tliststore.set (iter, Column.STOCK_ITEM, stock_item[i])·\n"
+"\t\tfor (int i = 0; i < file.length; i++){\n"
+"\t\t\tGtk.TreeIter iter;\n"
+"\t\t\tliststore.append (out iter);\n"
+"\t\t\tliststore.set (iter, Column.FILE, file[i]);\n"
+"\t\t\tliststore.set (iter, Column.STOCK_ITEM, stock_item[i]);\n"
"\t\t}\n"
"\n"
-"\t\tGtk.ComboBox combobox = new Gtk.ComboBox.with_model (liststore)·\n"
+"\t\tGtk.ComboBox combobox = new Gtk.ComboBox.with_model (liststore);\n"
"\n"
"\t\t/* CellRenderers render the data. */\n"
-"\t\tGtk.CellRendererText cell = new Gtk.CellRendererText ()·\n"
-"\t\tGtk.CellRendererPixbuf cell_pb = new Gtk.CellRendererPixbuf ()·\n"
+"\t\tGtk.CellRendererText cell = new Gtk.CellRendererText ();\n"
+"\t\tGtk.CellRendererPixbuf cell_pb = new Gtk.CellRendererPixbuf ();\n"
"\t\t\n"
" /* we pack the cell into the beginning of the combobox, allocating\n"
-"\t\t * no more space than needed·\n"
-"\t\t * first the image, then the text·\n"
+"\t\t * no more space than needed;\n"
+"\t\t * first the image, then the text;\n"
"\t\t * note that it does not matter in which order they are in the model,\n"
"\t\t * the visualization is decided by the order of the cellrenderers\n"
"\t\t */\n"
-"\t\tcombobox.pack_start (cell_pb, false)·\n"
-"\t\tcombobox.pack_start (cell, false)·\n"
+"\t\tcombobox.pack_start (cell_pb, false);\n"
+"\t\tcombobox.pack_start (cell, false);\n"
"\n"
"\t\t/* associate a property of the cellrenderer to a column in the model\n"
"\t\t * used by the combobox\n"
"\t\t */\n"
-"\t\tcombobox.set_attributes (cell_pb, \"stock_id\", Column.STOCK_ITEM)·\n"
-"\t\tcombobox.set_attributes (cell, \"text\", Column.FILE)·\n"
+"\t\tcombobox.set_attributes (cell_pb, \"stock_id\", Column.STOCK_ITEM);\n"
+"\t\tcombobox.set_attributes (cell, \"text\", Column.FILE);\n"
"\n"
"\t\t/* Set the first item in the list to be selected (active). */\n"
-"\t\tcombobox.set_active (0)·\n"
+"\t\tcombobox.set_active (0);\n"
"\n"
"\t\t/* Connect the 'changed' signal of the combobox\n"
-"\t\t * to the signal handler (aka. callback function.\n"
+"\t\t * to the signal handler (aka. callback function).\n"
"\t\t */\n"
-"\t\tcombobox.changed.connect (this.item_changed)·\n"
+"\t\tcombobox.changed.connect (this.item_changed);\n"
"\n"
"\t\t/* Add the combobox to this window */\n"
-"\t\tthis.add (combobox)·\n"
-"\t\tcombobox.show ()·\n"
+"\t\tthis.add (combobox);\n"
+"\t\tcombobox.show ();\n"
"\t}\n"
"\n"
"\tvoid item_changed (Gtk.ComboBox combo) {\n"
"\t\tif (combo.get_active () !=0) {\n"
-"\t\t\tprint (\"You chose \" + file [combo.get_active ()] +\"\\n\")·\n"
+"\t\t\tprint (\"You chose \" + file [combo.get_active ()] +\"\\n\");\n"
"\t\t}\n"
"\t}\n"
"}\n"
"\n"
"class MyApplication : Gtk.Application {\n"
" protected override void activate () {\n"
-" new MyWindow (this).show ()·\n"
+" new MyWindow (this).show ();\n"
" }\n"
"}\n"
"\n"
"int main (string[] args) {\n"
-"\treturn new MyApplication ().run (args)·\n"
+"\treturn new MyApplication ().run (args);\n"
"}\n"
#. (itstool) path: item/p
@@ -10450,7 +10468,7 @@ msgid ""
" dialog.show_all()\n"
"\n"
" def on_response(self, widget, response_id):\n"
-" print \"response_id is\", 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"
@@ -10516,7 +10534,7 @@ msgstr ""
" dialog.show_all()\n"
"\n"
" def on_response(self, widget, response_id):\n"
-" print \"response_id is\", 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"
@@ -10658,7 +10676,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"
@@ -10737,7 +10755,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"
@@ -11185,7 +11203,7 @@ msgid ""
" # retrieve the content of the widget\n"
" name = entry.get_text()\n"
" # print it in a nice form in the terminal\n"
-" print \"Hello \" + name + \"!\"\n"
+" print(\"Hello \" + name + \"!\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -11229,7 +11247,7 @@ msgstr ""
" # retrieve the content of the widget\n"
" name = entry.get_text()\n"
" # print it in a nice form in the terminal\n"
-" print \"Hello \" + name + \"!\"\n"
+" print(\"Hello \" + name + \"!\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -11255,6 +11273,7 @@ msgstr "Χρήσιμες μέθοδοι για γραφικό στοιχείο
#. (itstool) path: section/p
#: C/entry.py.page:41
+#, fuzzy
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="
@@ -11263,11 +11282,11 @@ msgid ""
"(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)."
+"the user clicks an activatable icon); <code>\"icon-release\"</code> (emitted on the button release from a
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 the context menu of the entry; it can be
used "
+"to add items to it)."
msgstr ""
"Στη γραμμή 14 το σήμα <code>\"activate\"</code> συνδέεται με τη συνάρτηση επανάκλησης
<code>cb_activate()</code> "
"χρησιμοποιώντας <code><var>widget</var>.connect(<var>signal</var>, <var>callback function</var>)</code>.
Δείτε "
@@ -11484,7 +11503,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"
@@ -11536,7 +11555,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"
@@ -11802,7 +11821,7 @@ msgid ""
" # callback for new\n"
" def new_callback(self, action, parameter):\n"
" self.buffer.set_text(\"\")\n"
-" print \"New file created\"\n"
+" print(\"New file created\")\n"
"\n"
" # callback for open\n"
" def open_callback(self, action, parameter):\n"
@@ -11840,13 +11859,13 @@ msgid ""
" # 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"
+" 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"
+" 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"
+" print(\"cancelled: FileChooserAction.OPEN\")\n"
" # destroy the FileChooserDialog\n"
" dialog.destroy()\n"
"\n"
@@ -11870,7 +11889,7 @@ msgid ""
" # 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"
+" 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"
@@ -11887,7 +11906,7 @@ msgid ""
" 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"
+" print(\"cancelled: FileChooserAction.SAVE\")\n"
" # destroy the FileChooserDialog\n"
" dialog.destroy()\n"
"\n"
@@ -11916,9 +11935,9 @@ msgid ""
" False,\n"
" Gio.FileCreateFlags.NONE,\n"
" None)\n"
-" print \"saved: \" + self.file.get_path()\n"
+" print(\"saved: \" + self.file.get_path())\n"
" except GObject.GError as e:\n"
-" print \"Error: \" + e.message\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"
@@ -11928,9 +11947,9 @@ msgid ""
" False,\n"
" Gio.FileCreateFlags.NONE,\n"
" None)\n"
-" print \"saved: \" + self.file.get_path()\n"
+" print(\"saved: \" + self.file.get_path())\n"
" except GObject.GError as e:\n"
-" print \"Error: \" + e.message\n"
+" print(\"Error: \" + e.message)\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -11955,7 +11974,7 @@ msgid ""
" try:\n"
" builder.add_from_file(\"filechooserdialog.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
" menu = builder.get_object(\"appmenu\")\n"
" self.set_app_menu(menu)\n"
@@ -12020,7 +12039,7 @@ msgstr ""
" # callback for new\n"
" def new_callback(self, action, parameter):\n"
" self.buffer.set_text(\"\")\n"
-" print \"New file created\"\n"
+" print(\"New file created\")\n"
"\n"
" # callback for open\n"
" def open_callback(self, action, parameter):\n"
@@ -12058,13 +12077,13 @@ msgstr ""
" # 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"
+" 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"
+" 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"
+" print(\"cancelled: FileChooserAction.OPEN\")\n"
" # destroy the FileChooserDialog\n"
" dialog.destroy()\n"
"\n"
@@ -12088,7 +12107,7 @@ msgstr ""
" # 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"
+" 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"
@@ -12105,7 +12124,7 @@ msgstr ""
" 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"
+" print(\"cancelled: FileChooserAction.SAVE\")\n"
" # destroy the FileChooserDialog\n"
" dialog.destroy()\n"
"\n"
@@ -12134,9 +12153,9 @@ msgstr ""
" False,\n"
" Gio.FileCreateFlags.NONE,\n"
" None)\n"
-" print \"saved: \" + self.file.get_path()\n"
+" print(\"saved: \" + self.file.get_path())\n"
" except GObject.GError as e:\n"
-" print \"Error: \" + e.message\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"
@@ -12146,9 +12165,9 @@ msgstr ""
" False,\n"
" Gio.FileCreateFlags.NONE,\n"
" None)\n"
-" print \"saved: \" + self.file.get_path()\n"
+" print(\"saved: \" + self.file.get_path())\n"
" except GObject.GError as e:\n"
-" print \"Error: \" + e.message\n"
+" print(\"Error: \" + e.message)\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -12173,7 +12192,7 @@ msgstr ""
" try:\n"
" builder.add_from_file(\"filechooserdialog.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
" menu = builder.get_object(\"appmenu\")\n"
" self.set_app_menu(menu)\n"
@@ -12953,7 +12972,7 @@ msgid ""
" # 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"
+" print(\"You chose the font \" + self.font_chooser.get_font())\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -12998,7 +13017,7 @@ msgstr ""
" # 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"
+" print(\"You chose the font \" + self.font_chooser.get_font())\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -13598,15 +13617,15 @@ msgid ""
"\n"
" # callback function for \"new\"\n"
" def new_cb(self, action, parameter):\n"
-" print \"This does nothing. It is only a demonstration.\"\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"
+" 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"
+" print(\"You have quit.\")\n"
" self.quit()\n"
"\n"
"app = MyApplication()\n"
@@ -13666,15 +13685,15 @@ msgstr ""
"\n"
" # callback function for \"new\"\n"
" def new_cb(self, action, parameter):\n"
-" print \"This does nothing. It is only a demonstration.\"\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"
+" 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"
+" print(\"You have quit.\")\n"
" self.quit()\n"
"\n"
"app = MyApplication()\n"
@@ -13751,7 +13770,7 @@ msgstr ""
#: 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"
+"code>; for a list of possibilities see <link
href=\"http://developer.gnome.org/glib/unstable/glib-GVariant.html"
"\">here</link>."
msgstr ""
"όπου <code>initial_state</code> ορίζεται ως μια GVariant - για παράδειγμα
<code>Glib.Variant.new_string('start')</"
@@ -13858,8 +13877,8 @@ msgstr ""
#. (itstool) path: item/p
#: C/gmenu.py.page:70
-msgid "To remove an item from the menu, use <code>remove(postion)</code>."
-msgstr "Για την αφαίρεση ενός στοιχείου από το μενού, χρησιμοποιήστε <code>remove(postion)</code>."
+msgid "To remove an item from the menu, use <code>remove(position)</code>."
+msgstr "Για την αφαίρεση ενός στοιχείου από το μενού, χρησιμοποιήστε <code>remove(position)</code>."
#. (itstool) path: item/p
#: C/gmenu.py.page:71
@@ -16772,7 +16791,7 @@ 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 "
+"Now we have the method of playing a tune when clicking a button. Next well make the connections between
pushing a "
"button and playing the correct sound from that button."
msgstr ""
"Τώρα έχουμε τη μέθοδο αναπαραγωγής μιας μελωδίας πατώντας ένα κουμπί. Μετά γίνονται οι συνδέσεις μεταξύ
πατήματος "
@@ -18844,18 +18863,17 @@ msgstr "Hello world"
#. (itstool) path: note/p
#: C/hello-world.c.page:34
-#, fuzzy
msgid ""
"For a detailed walk-through of creating a GTK+ dialog in C, see <link
href=\"https://developer.gnome.org/gtk3/"
"stable/gtk-getting-started.html\">Getting Started with GTK+</link>"
msgstr ""
-"Μπορείτε να βρείτε ορισμούς σήματος για κάθε αντικείμενο στο <link
href=\"https://developer.gnome.org/gtk3/stable/"
-"gtkobjects.html\">αναφορά κλάσης GTK</link>."
+"Μια μια λεπτομερή αναφορά στην δημιουργία διαλόγων GTK+ σε C, δείτε το <link
href=\"https://developer.gnome.org/"
+"gtk3/stable/gtk-getting-started.html\">Getting Started with GTK+</link>"
#. (itstool) path: page/p
#: C/hello-world.c.page:38
msgid "Writing a hello world GTK+ dialog in C can be done as seen in the code sample below:"
-msgstr ""
+msgstr "Ένας διάλογος GTK+ με το μήνυμα «Γεια σου κόσμε» μπορεί να δημιουργηθεί σε C με τον παρακάτω κώδικα:"
#. (itstool) path: page/code
#: C/hello-world.c.page:39
@@ -19470,7 +19488,9 @@ msgstr "Για αυτό χρειαζόσαστε να έχετε τα παρακ
#. (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"
@@ -24250,14 +24270,14 @@ msgstr "Creative Commons Attribution-ShareAlike 3.0 Unported License"
#. (itstool) path: license/p
#: C/legal.xml:3
-#, fuzzy
msgid ""
"This work is licensed under a <_:link-1/>. As a special exception, the copyright holders give you
permission to "
"copy, modify, and distribute the example code contained in this documentation under the terms of your
choosing, "
"without restriction."
msgstr ""
-"Ως ειδική εξαίρεση, οι πνευματικοί ιδιοκτήτες σας επιτρέπουν να αντιγράψετε, να τροποποιήσετε και να
διανείμετε τα "
-"παραδείγματα κώδικα που περιλαμβάνονται σ' αυτήν την τεκμηρίωση υπό τους όρους της επιλογής σας, χωρίς
περιορισμό."
+"Αυτό το έργο έχει αδειοδοτηθεί υπό την <_:link-1/>. Ως ειδική εξαίρεση, οι πνευματικοί ιδιοκτήτες σας
επιτρέπουν "
+"να αντιγράψετε, να τροποποιήσετε και να διανείμετε τα παραδείγματα κώδικα που περιλαμβάνονται σ' αυτήν την "
+"τεκμηρίωση υπό τους όρους της επιλογής σας, χωρίς περιορισμό."
#. (itstool) path: info/desc
#: C/license.page:8
@@ -25321,7 +25341,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"
@@ -25450,87 +25470,87 @@ msgstr ""
"\n"
"\n"
"\n"
-"/* Η συνάρτηση επανάκλησης για την ενέργεια \"copy\" */\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"
+" g_print (\"\\\"Copy\\\" activated\\n\");\n"
"}\n"
"\n"
"\n"
"\n"
-"/* Η συνάρτηση επανάκλησης για την ενέργεια \"paste\" */\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"
+" g_print (\"\\\"Paste\\\" activated\\n\");\n"
"}\n"
"\n"
"\n"
"\n"
-"/* Η συνάρτηση επανάκλησης για την ενέργεια \"shape\" */\n"
+"/* Callback function for the \"shape\" action */\n"
"static void\n"
"shape_callback (GSimpleAction *simple,\n"
" GVariant *parameter,\n"
" gpointer user_data)\n"
"{\n"
-" /* Συλλέγουμε πρώτα την τιμή του στιγμιότυπου GVariant με έναν τύπο συμβολοσειράς..\n"
-" * Ο συνολικός σκοπός εδώ είναι να δει αν το σχήμα ορίζεται σε γραμμή, τρίγωνο, κλπ,\n"
-" * και να βάλει αυτήν την τιμή μέσα στην μεταβλητή \"answer\".\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"
-" /* Σημειώστε ότι ορίζουμε την κατάσταση της ενέργειας */\n"
-" g_simple_action_set_state (simple, parameter)·\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"
-"/* Η συνάρτηση επανάκλησης στην οποία κλείνει ο about_dialog που δημιουργήθηκε παρακάτω */\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"
+" gtk_widget_destroy (GTK_WIDGET (dialog));\n"
"}\n"
"\n"
"\n"
"\n"
-"/* Η συνάρτηση επανάκλησης για την ενέργεια about (δείτε το aboutdialog.c example) */\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"
+" GtkWidget *about_dialog;\n"
"\n"
-" about_dialog = gtk_about_dialog_new ()·\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"
+" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
+" const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
"\n"
-" /* Συμπληρώστε τον 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"
+" /* 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"
-" /* Το σήμα \"response\" εκπέμπεται όταν ο διάλογος δέχεται ένα συμβάν διαγραφής,\n"
-" * συνεπώς συνδέουμε αυτό το σήμα με την συνάρτηση επανάκλησης on_close \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"
+" G_CALLBACK (on_close), NULL);\n"
"\n"
-" /* Εμφάνιση του διαλόγου περί */\n"
-" gtk_widget_show (about_dialog)·\n"
+" /* Show the about dialog */\n"
+" gtk_widget_show (about_dialog);\n"
"}\n"
"\n"
"\n"
@@ -25539,224 +25559,225 @@ msgstr ""
"activate (GtkApplication *app,\n"
" gpointer user_data)\n"
"{\n"
-" GtkWidget *window·\n"
+" GtkWidget *window;\n"
"\n"
-" GSimpleAction *copy_action·\n"
-" GSimpleAction *paste_action·\n"
-" GSimpleAction *shape_action·\n"
-" GSimpleAction *about_action·\n"
+" GSimpleAction *copy_action;\n"
+" GSimpleAction *paste_action;\n"
+" GSimpleAction *shape_action;\n"
+" GSimpleAction *about_action;\n"
"\n"
-" /* Δημιουργία παραθύρου με τίτλο και προεπιλεγμένο μέγεθος */\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"
+" /* 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"
-" /* Έναρξη δημιουργίας της ενέργειας \"copy\".\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"
-" /* Συνδέθηκε με μια συνάρτηση επανάκλησης */\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"
-" /* Προστέθηκε στο παράθυρο */\n"
-" g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (copy_action))·\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"
-" /* Έναρξη δημιουργίας της κατάστασης \"paste\".\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"
-" /* Σύνδεση της ενέργειας με μια συνάρτηση επανάκλησης */\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"
-" /* Προσθήκη της στο παράθυρο */\n"
-" g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (paste_action))·\n"
-"\n"
-" /* Έναρξη δημιουργίας της ενέργειας \"shape\".\n"
-" * Σημειώστε ότι είναι μια ενέργεια χωρίς κατάσταση.\n"
-" * Πρώτα δηλώνουμε ότι ο τύπος της παραμέτρου της απλής ενέργειας είναι μια συμβολοσειρά.\n"
-" * Όταν χρησιμοποιούμε g_variant_type_new, είναι κατάλληλη η απελευθέρωση της μνήμης επιστροφής\n"
-" * μόλις έχετε τελειώσει μαζί της.\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"
-" /* παράμετροι για το g_simple_action_new_stateful είναι: (όνομα, τύπος παραμέτρου,\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"
-" /* Σύνδεση της ενέργειας με μια συνάρτηση επανάκλησης */\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"
-" /* Προσθήκη της στο παράθυρο */\n"
-" g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (shape_action))·\n"
-" g_variant_type_free (type_string)·\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"
-" /* Έναρξη δημιουργίας της ενέργειας \"about\".\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"
-" /* Σύνδεση της ενέργειας με τη συνάρτηση επανάκλησης */\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"
-" /* Προσθήκη της στο παράθυρο */\n"
-" g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (about_action))·\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"
+" gtk_widget_show_all (window);\n"
"}\n"
"\n"
"\n"
"\n"
-"/* Συνάρτηση επανάκλησης για την ενέργεια \"new\" */\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"
+" g_print (\"You clicked \\\"New\\\"\\n\");\n"
"}\n"
"\n"
"\n"
"\n"
-"/* Συνάρτηση επανάκλησης για την ενέργεια \"quit\" */\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"
+" GApplication *application = user_data;\n"
"\n"
-" g_print (\"You clicked \\\"Quit\\\"\\n\")·\n"
-" g_application_quit (application)·\n"
+" g_print (\"You clicked \\\"Quit\\\"\\n\");\n"
+" g_application_quit (application);\n"
"}\n"
"\n"
"\n"
"\n"
-"/* Συνάρτηση επανάκλησης για την ενέργεια \"state\" */\n"
+"/* Callback function for the \"state\" action */\n"
"static void\n"
"state_callback (GSimpleAction *simple,\n"
" GVariant *parameter,\n"
" gpointer user_data)\n"
"{\n"
-" /* Οι δύο πιθανότητες σε αυτήν την περίπτωση για την μεταβλητή \"answer\" είναι είτε\n"
-" * \"on\" είτε \"off\".\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"
-" /* Εμφανίζουμε την πληροφορία στον χρήστη */\n"
-" g_printf (\"State is set to %s.\\n\", answer)·\n"
-" /* Σημειώστε ότι ορίζουμε την κατάσταση της ενέργειας */\n"
-" g_simple_action_set_state (simple, parameter)·\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"
-"/* Συνάρτηση επανάκλησης για την ενέργεια \"awesome\" */\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"
-" /* Ορισμός της νέας κατάστασης για την ενέργεια.\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"
+" g_simple_action_set_state (simple, new_state);\n"
"\n"
" if (active)\n"
-" g_print (\"You unchecked \\\"Awesome\\\"\\n\")·\n"
+" g_print (\"You unchecked \\\"Awesome\\\"\\n\");\n"
" else\n"
-" g_print (\"You checked \\\"Awesome\\\"\\n\")·\n"
+" g_print (\"You checked \\\"Awesome\\\"\\n\");\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"
+" GSimpleAction *new_action;\n"
+" GSimpleAction *quit_action;\n"
+" GSimpleAction *state_action;\n"
+" GSimpleAction *awesome_action;\n"
"\n"
-" GtkBuilder *builder·\n"
+" GtkBuilder *builder;\n"
"\n"
-" GError **error·\n"
+" GError *error = NULL;\n"
"\n"
-" /* Έναρξη δημιουργίας της ενέργειας \"new\".\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"
-" /* Προστίθεται στην συνολική εφαρμογή */\n"
-" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (new_action))·\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"
-" /* Έναρξη δημιουργίας της ενέργειας \"quit\".\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"
-" /* Προστίθεται στην συνολική εφαρμογή */\n"
-" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (quit_action))·\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"
-" /*Έναρξη δημιουργίας της ενέργειας \"state\".\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"
+" 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"
-" /* Προστίθεται στην συνολική εφαρμογή */\n"
-" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (state_action))·\n"
-" g_variant_type_free (type_string2)·\n"
-"\n"
-" /* Έναρξη δημιουργίας της ενέργειας \"awesome\".\n"
-" * Σημειώστε ότι είναι μια ενέργεια χωρίς κατάσταση.\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"
-" /* Προστίθεται στην συνολική εφαρμογή */\n"
-" g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (awesome_action))·\n"
-"\n"
-" /* Ένας δομητής για να προσθέσει τη διεπαφή χρήστη που σχεδιάστηκε με GLADE στο πλέγμα: */\n"
-" builder = gtk_builder_new ()·\n"
-" /* Λήψη του αρχείου (αν είναι εκεί):\n"
-" * Σημείωση: πρέπει να βεβαιωθείτε ότι το αρχείο είναι στον τρέχοντα κατάλογο για\n"
-" * αυτήν την εργασία. Η χρησιμοποιούμενη συνάρτηση εδώ επιστρέφει μια τιμή μέσα στη μεταβλητή μας\n"
-" * \"error\" και είναι ίση με μηδέν αν βρεθεί όντως ένα σφάλμα.\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 == 0) {\n"
-" g_print (\"File not 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"
-" /* Εξαγωγή της γραμμής μενού */\n"
-" GObject *menubar = gtk_builder_get_object (builder, \"menubar\")·\n"
-" gtk_application_set_menubar (GTK_APPLICATION (app), G_MENU_MODEL (menubar))·\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"
-" /* Εξαγωγή του μενού εφαρμογών */\n"
-" GObject *appmenu = gtk_builder_get_object (builder, \"appmenu\")·\n"
-" gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (appmenu))·\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"
-"/* Έναρξη συνάρτησης για την εφαρμογή */\n"
+"/* Startup function for the application */\n"
"int\n"
"main (int argc, char **argv)\n"
"{\n"
-" GtkApplication *app·\n"
-" int status·\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"
+" 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"
+" return status;\n"
"}\n"
#. (itstool) path: item/p
@@ -25921,7 +25942,7 @@ msgid ""
" try:\n"
" builder.add_from_file(\"menubar_basis.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
"\n"
" # we use the method Gtk.Application.set_menubar(menubar) to add the menubar\n"
@@ -25961,7 +25982,7 @@ msgstr ""
" try:\n"
" builder.add_from_file(\"menubar_basis.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
"\n"
" # we use the method Gtk.Application.set_menubar(menubar) to add the menubar\n"
@@ -26195,16 +26216,16 @@ msgstr ""
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."
+"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 name."
msgstr ""
-"Τα πλήρη αρχεία του παραδείγματος περιέχουν και τις ενέργειες εφαρμογής και τις ενέργειες παραθύρου. Οι
ενέργειες "
-"παραθύρου είναι αυτές που συνήθως συμπεριλαμβάνονται στο <link xref=\"gmenu.py\">μενού εφαρμογής</link>
επίσης. "
-"Δεν είναι καλή πρακτική να συμπεριλαμβάνετε ενέργειες παραθύρου στο μενού της εφαρμογής. Για σκοπούς
επίδειξης, τα "
-"πλήρη αρχεία του παραδείγματος που ακολουθεί περιέχουν XML στο αρχείο UI που δημιουργεί το μενού εφαρμογής
που "
-"περιλαμβάνει τα στοιχεία \"New\" και \"Open\" και αυτά συνδέονται με τις ίδιες ενέργειες όπως τα στοιχεία
της "
-"γραμμής μενού του ίδιου ονόματος."
+"Τα πλήρη αρχεία του παραδείγματος περιέχουν και τις ενέργειες εφαρμογής και παραθύρου. Οι ενέργειες
παραθύρου "
+"είναι αυτές που συνήθως συμπεριλαμβάνονται στο <link xref=\"gmenu.py\">μενού εφαρμογής</link>. Δεν είναι
καλή "
+"πρακτική να συμπεριλαμβάνετε ενέργειες παραθύρου στο μενού της εφαρμογής. Για σκοπούς επίδειξης, τα πλήρη
αρχεία "
+"του παραδείγματος που ακολουθεί περιέχουν XML στο αρχείο UI που δημιουργεί το μενού εφαρμογής που
περιλαμβάνει τα "
+"στοιχεία \"New\" και \"Open\" και αυτά συνδέονται με τις ίδιες ενέργειες όπως τα στοιχεία της γραμμής μενού
του "
+"ίδιου ονόματος."
#. (itstool) path: section/title
#: C/menubar.py.page:131 C/menubar.vala.page:133
@@ -26547,15 +26568,15 @@ msgid ""
"\n"
" # callback function for copy_action\n"
" def copy_callback(self, action, parameter):\n"
-" print \"\\\"Copy\\\" activated\"\n"
+" print(\"\\\"Copy\\\" activated\")\n"
"\n"
" # callback function for paste_action\n"
" def paste_callback(self, action, parameter):\n"
-" print \"\\\"Paste\\\" activated\"\n"
+" print(\"\\\"Paste\\\" activated\")\n"
"\n"
" # callback function for shape_action\n"
" def shape_callback(self, action, parameter):\n"
-" print \"Shape is set to\", parameter.get_string()\n"
+" print(\"Shape is set to\", parameter.get_string())\n"
" # Note that we set the state of the action!\n"
" action.set_state(parameter)\n"
"\n"
@@ -26637,7 +26658,7 @@ msgid ""
" try:\n"
" builder.add_from_file(\"menubar.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
"\n"
" # we use the method Gtk.Application.set_menubar(menubar) to add the menubar\n"
@@ -26647,25 +26668,25 @@ msgid ""
"\n"
" # callback function for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\"\"\n"
+" print(\"You clicked \\\"New\\\"\")\n"
"\n"
" # callback function for quit\n"
" def quit_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Quit\\\"\"\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"
+" 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"
+" print(\"You checked \\\"Awesome\\\"\")\n"
" else:\n"
-" print \"You unchecked \\\"Awesome\\\"\"\n"
+" print(\"You unchecked \\\"Awesome\\\"\")\n"
"\n"
"\n"
"app = MyApplication()\n"
@@ -26715,15 +26736,15 @@ msgstr ""
"\n"
" # callback function for copy_action\n"
" def copy_callback(self, action, parameter):\n"
-" print \"\\\"Copy\\\" activated\"\n"
+" print(\"\\\"Copy\\\" activated\")\n"
"\n"
" # callback function for paste_action\n"
" def paste_callback(self, action, parameter):\n"
-" print \"\\\"Paste\\\" activated\"\n"
+" print(\"\\\"Paste\\\" activated\")\n"
"\n"
" # callback function for shape_action\n"
" def shape_callback(self, action, parameter):\n"
-" print \"Shape is set to\", parameter.get_string()\n"
+" print(\"Shape is set to\", parameter.get_string())\n"
" # Note that we set the state of the action!\n"
" action.set_state(parameter)\n"
"\n"
@@ -26805,7 +26826,7 @@ msgstr ""
" try:\n"
" builder.add_from_file(\"menubar.ui\")\n"
" except:\n"
-" print \"file not found\"\n"
+" print(\"file not found\")\n"
" sys.exit()\n"
"\n"
" # we use the method Gtk.Application.set_menubar(menubar) to add the menubar\n"
@@ -26815,25 +26836,25 @@ msgstr ""
"\n"
" # callback function for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\"\"\n"
+" print(\"You clicked \\\"New\\\"\")\n"
"\n"
" # callback function for quit\n"
" def quit_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Quit\\\"\"\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"
+" 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"
+" print(\"You checked \\\"Awesome\\\"\")\n"
" else:\n"
-" print \"You unchecked \\\"Awesome\\\"\"\n"
+" print(\"You unchecked \\\"Awesome\\\"\")\n"
"\n"
"\n"
"app = MyApplication()\n"
@@ -26917,7 +26938,7 @@ msgstr "Μεταφράσιμες συμβολοσειρές"
#: 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 "
+"link>, it is important that the strings in your application are translatable. To make a label translatable,
simple "
"set <code>translatable=\"yes\"</code>:"
msgstr ""
"Επειδή οι εφαρμογές GNOME μεταφράζονται σε <link href=\"http://l10n.gnome.org/languages/\">πολλές
γλώσσες</link>, "
@@ -27179,16 +27200,16 @@ msgstr ""
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."
+"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 name."
msgstr ""
-"Τα πλήρη αρχεία παραδείγματος περιέχουν αμφότερες τις ενέργειες εφαρμογής και εφαρμογές παραθύρου. Οι
ενέργειες "
-"παραθύρου είναι αυτές που συνήθως συμπεριλαμβάνονται στο <link xref=\"gmenu.vala\">μενού εφαρμογής</link>
επίσης. "
-"Δεν είναι καλή πρακτική να συμπεριλαμβάνετε ενέργειες παραθύρου στο μενού της εφαρμογής. Για σκοπούς
επίδειξης, τα "
-"πλήρη αρχεία του παραδείγματος που ακολουθεί περιέχουν XML στο αρχείο UI που δημιουργεί το μενού εφαρμογής
που "
-"περιλαμβάνει τα στοιχεία \"New\" και \"Open\" και αυτά συνδέονται με τις ίδιες ενέργειες όπως τα στοιχεία
της "
-"γραμμής μενού του ίδιου ονόματος."
+"Τα πλήρη αρχεία παραδείγματος περιέχουν αμφότερες τις ενέργειες εφαρμογής και παραθύρου. Οι ενέργειες
παραθύρου "
+"είναι αυτές που συνήθως συμπεριλαμβάνονται στο <link xref=\"gmenu.vala\">μενού εφαρμογής</link>. Δεν είναι
καλή "
+"πρακτική να συμπεριλαμβάνετε ενέργειες παραθύρου στο μενού της εφαρμογής. Για σκοπούς επίδειξης, τα πλήρη
αρχεία "
+"του παραδείγματος που ακολουθεί περιέχουν XML στο αρχείο UI που δημιουργεί το μενού εφαρμογής που
περιλαμβάνει τα "
+"στοιχεία \"New\" και \"Open\" και αυτά συνδέονται με τις ίδιες ενέργειες όπως τα στοιχεία της γραμμής μενού
του "
+"ίδιου ονόματος."
#. (itstool) path: section/title
#: C/menubar.vala.page:157
@@ -27979,7 +28000,7 @@ msgid ""
"\n"
" # callback for \"about\"\n"
" def about_callback(self, action, parameter):\n"
-" print \"You clicked \\\"About\\\"\"\n"
+" print(\"You clicked \\\"About\\\"\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -28005,10 +28026,10 @@ msgid ""
"\n"
" # callback functions for the actions related to the application\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\"\"\n"
+" print(\"You clicked \\\"New\\\"\")\n"
"\n"
" def quit_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Quit\\\"\"\n"
+" print(\"You clicked \\\"Quit\\\"\")\n"
" self.quit()\n"
"\n"
"app = MyApplication()\n"
@@ -28056,7 +28077,7 @@ msgstr ""
"\n"
" # callback for \"about\"\n"
" def about_callback(self, action, parameter):\n"
-" print \"You clicked \\\"About\\\"\"\n"
+" print(\"You clicked \\\"About\\\"\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -28082,10 +28103,10 @@ msgstr ""
"\n"
" # callback functions for the actions related to the application\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\"\"\n"
+" print(\"You clicked \\\"New\\\"\")\n"
"\n"
" def quit_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Quit\\\"\"\n"
+" print(\"You clicked \\\"Quit\\\"\")\n"
" self.quit()\n"
"\n"
"app = MyApplication()\n"
@@ -30141,13 +30162,13 @@ msgid ""
" def dialog_response(self, widget, response_id):\n"
" # if the button clicked gives response OK (-5)\n"
" if response_id == Gtk.ResponseType.OK:\n"
-" print \"*boom*\"\n"
+" print(\"*boom*\")\n"
" # if the button clicked gives response CANCEL (-6)\n"
" elif response_id == Gtk.ResponseType.CANCEL:\n"
-" print \"good choice\"\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"
+" print(\"dialog closed or cancelled\")\n"
" # finally, destroy the messagedialog\n"
" widget.destroy()\n"
"\n"
@@ -30225,13 +30246,13 @@ msgstr ""
" def dialog_response(self, widget, response_id):\n"
" # if the button clicked gives response OK (-5)\n"
" if response_id == Gtk.ResponseType.OK:\n"
-" print \"*boom*\"\n"
+" print(\"*boom*\")\n"
" # if the button clicked gives response CANCEL (-6)\n"
" elif response_id == Gtk.ResponseType.CANCEL:\n"
-" print \"good choice\"\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"
+" print(\"dialog closed or cancelled\")\n"
" # finally, destroy the messagedialog\n"
" widget.destroy()\n"
"\n"
@@ -31758,10 +31779,10 @@ msgstr "Εισαγωγή"
#: 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 "
+"demonstrates a small, but central, part of the Clutter library to create a simple but attractive image
viewing "
"program."
msgstr ""
-"Clutter είναι μια βιβλιοθήκη για δημιουργία δυναμικών διεπαφών χρήστη χρησιμοποιώντας το OpenGL για
επιτάχυνση "
+"Το Clutter είναι μια βιβλιοθήκη για δημιουργία δυναμικών διεπαφών χρήστη χρησιμοποιώντας το OpenGL για
επιτάχυνση "
"υλικού. Αυτό το παράδειγμα δείχνει ένα μικρό, αλλά κεντρικό, τμήμα της Clutter για δημιουργία ενός απλού
αλλά "
"ελκυστικού προγράμματος προβολής εικόνας."
@@ -32289,7 +32310,7 @@ 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 occurred, returns after printing an error
message."
msgstr ""
"Γραμμές 5 και 12: Αυτό ανοίγει τον κατάλογό μας ή, εάν συμβεί σφάλμα, επιστρέφει μετά την εκτύπωση ένα
μήνυμα "
"σφάλματος."
@@ -34647,14 +34668,13 @@ msgid "<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.htm
msgstr "<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Button.html\">Gtk.Button</link>"
#. (itstool) path: item/p
-#: C/radiobutton.js.page:279 C/scale.js.page:213 C/spinbutton.js.page:204 C/switch.js.page:270
-#: C/textview.js.page:253 C/togglebutton.js.page:157
+#: C/radiobutton.js.page:279 C/scale.js.page:213 C/spinbutton.js.page:204 C/switch.js.page:270
C/textview.js.page:253
+#: C/togglebutton.js.page:157
msgid "<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html\">Gtk.Grid</link>"
msgstr "<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Grid.html\">Gtk.Grid</link>"
#. (itstool) path: item/p
-#: C/radiobutton.js.page:280 C/scale.js.page:214 C/spinbutton.js.page:205 C/switch.js.page:272
-#: C/textview.js.page:254
+#: C/radiobutton.js.page:280 C/scale.js.page:214 C/spinbutton.js.page:205 C/switch.js.page:272
C/textview.js.page:254
msgid "<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Label.html\">Gtk.Label</link>"
msgstr "<link href=\"http://www.roojs.org/seed/gir-1.2-gtk-3.0/gjs/Gtk.Label.html\">Gtk.Label</link>"
@@ -34740,7 +34760,7 @@ msgid ""
" 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"
+" print(button.get_label() + \" was turned \" + state)\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -34816,7 +34836,7 @@ msgstr ""
" 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"
+" print(button.get_label() + \" was turned \" + state)\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -34876,7 +34896,7 @@ msgstr ""
#: 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 "
+"\"Button 1\")</code> (the first argument is the group of the radiobuttons, which we can get with "
"<code>get_group()</code>, the second argument is the label)."
msgstr ""
"Ακόμα ένας άλλος τρόπος να δημιουργήσουμε ένα νέο RadioButton με μια ετικέτα είναι <code>button1 =
Gtk.RadioButton."
@@ -35411,9 +35431,9 @@ msgid ""
" this.connection.open ();\n"
"\n"
" try {\n"
-" var dm = Gda.execute_select_command (this.connection, \"select * from demo\");\n"
+" var dm = this.connection.execute_select_command (\"select * from demo\");\n"
" } catch (e) {\n"
-" Gda.execute_non_select_command (this.connection, \"create table demo (id integer, name
varchar(100))\");\n"
+" this.connection.execute_non_select_command (\"create table demo (id integer, name varchar(100))\");\n"
" }\n"
" },"
msgstr ""
@@ -35424,9 +35444,9 @@ msgstr ""
" this.connection.open ();\n"
"\n"
" try {\n"
-" var dm = Gda.execute_select_command (this.connection, \"select * from demo\");\n"
+" var dm = this.connection.execute_select_command (\"select * from demo\");\n"
" } catch (e) {\n"
-" Gda.execute_non_select_command (this.connection, \"create table demo (id integer, name
varchar(100))\");\n"
+" this.connection.execute_non_select_command (\"create table demo (id integer, name varchar(100))\");\n"
" }\n"
" },"
@@ -35495,13 +35515,13 @@ 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 "
+"In order to run the SQL commands above we are using the GDA connection methods
<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."
msgstr ""
-"Για την εκτέλεση των παραπάνω εντολών SQL χρησιμοποιούμε τις γενικές συναρτήσεις GDA, "
-"<code>execute_select_command</code> και <code>execute_non_select_command</code>. Είναι απλές στη χρήση και "
-"απαιτούν μόνο δύο ορίσματα: Το αντικείμενο <code>Connection</code> και την εντολή SQL να αναλυθεί."
+"Για να εκτελέσουμε εντολές SQL στο παραπάνω παράδειγμα χρησιμοποιούμε τις μεθόδους σύνδεσης GDA "
+"<code>execute_select_command</code> και <code>execute_non_select_command</code>. Είναι εύκολες στη χρήση,
και "
+"απαιτούν μόνο δύο ορίσματα: Το αντικείμενο <code>Connection</code> και την εντολή SQL."
#. (itstool) path: section/p
#: C/record-collection.js.page:209
@@ -35530,7 +35550,7 @@ msgstr ""
msgid ""
"\n"
" selectData: function () {\n"
-" var dm = Gda.execute_select_command (this.connection, \"select * from demo order by 1, 2\");\n"
+" var dm = this.connection.execute_select_command (\"select * from demo order by 1, 2\");\n"
" var iter = dm.create_iter ();\n"
"\n"
" var text = \"\";\n"
@@ -35548,7 +35568,7 @@ msgid ""
msgstr ""
"\n"
" selectData: function () {\n"
-" var dm = Gda.execute_select_command (this.connection, \"select * from demo order by 1, 2\");\n"
+" var dm = this.connection.execute_select_command (\"select * from demo order by 1, 2\");\n"
" var iter = dm.create_iter ();\n"
"\n"
" var text = \"\";\n"
@@ -35567,12 +35587,11 @@ 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."
+"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 <code>DataModel</code> object, which is later used to retrieve the rows."
msgstr ""
-"Γραμμή 2: Η εντολή <code>SELECT</code>. Χρησιμοποιούμε τη γενική συνάρτηση του GDA
<code>execute_select_command</"
-"code> για αυτό. Επιστρέφει ένα αντικείμενο <code>DataModel</code>, που χρησιμοποιείται αργότερα για
ανάκτηση των "
-"γραμμών."
+"Γραμμή 2: Η εντολή <code>SELECT</code>. Χρησιμοποιούμε την μέθοδο σύνδεσης του GDA
<code>execute_select_command</"
+"code>. Επιστρέφει ένα αντικείμενο <code>DataModel</code>, το οποίο χρησιμοποιείτε για να ανακτηθούν οι
σειρές."
#. (itstool) path: item/p
#: C/record-collection.js.page:236
@@ -35711,17 +35730,12 @@ 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 "
+"We have learned how to use the GDA connection's methods <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:"
msgstr ""
-"Μάθαμε τη χρήση των συναρτήσεων ευκολίας του GDA <code>execute_select_command</code> και "
-"<code>execute_non_select_command</code> για γρήγορη εκτέλεση εντολών SQL στη βάση δεδομένων. Το GDA
επιτρέπει την "
-"κατασκευή μιας πρότασης SQL έμμεσα, χρησιμοποιώντας το αντικείμενο του <code>SqlBuilder</code>. Ποια είναι
τα "
-"οφέλη του; GDA θα παράξει την πρόταση SQL δυναμικά και θα επικυρωθεί για τον χρησιμοποιούμενο πάροχο
σύνδεσης (θα "
-"χρησιμοποιήσει την ίδια διάλεκτο SQL που χρησιμοποιεί ο πάροχος). Ας μελετήσουμε τον κώδικα:"
#. (itstool) path: item/p
#: C/record-collection.js.page:278
@@ -37406,7 +37420,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"
@@ -37421,13 +37435,13 @@ msgid ""
"\treturn new MyApplication ().run (args);\n"
"}\n"
msgstr ""
-"/* Αυτή είναι η εφαρμογή. */\n"
+"/* 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/* Αντικατάσταση του σήματος 'activate' της GLib.Application. */\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"
@@ -37459,7 +37473,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"
@@ -37469,7 +37483,7 @@ msgstr ""
"\t}\n"
"}\n"
"\n"
-"/* Η κύρια δημιουργεί και εκτελεί την εφαρμογή. */\n"
+"/* main creates and runs the application. */\n"
"public int main (string[] args) {\n"
"\treturn new MyApplication ().run (args);\n"
"}\n"
@@ -38172,7 +38186,7 @@ msgstr "<link href=\"http://developer.gnome.org/gtk3/unstable/GtkSeparator.html\
#. (itstool) path: info/title
#: C/separator.py.page:8
msgctxt "text"
-msgid "Seperator (Python)"
+msgid "Separator (Python)"
msgstr "Διαχωριστής (Python)"
#. (itstool) path: section/code
@@ -40546,7 +40560,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"
@@ -40649,7 +40663,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"
@@ -45214,7 +45228,7 @@ msgid ""
"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"
@@ -45248,7 +45262,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"
@@ -47237,7 +47251,7 @@ msgid ""
"\n"
" # callback method for undo\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" print(\"You clicked \\\"Undo\\\".\")\n"
"\n"
" # callback method for fullscreen / leave fullscreen\n"
" def fullscreen_callback(self, action, parameter):\n"
@@ -47280,11 +47294,11 @@ msgid ""
"\n"
" # callback method for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" # callback method for open\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -47377,7 +47391,7 @@ msgstr ""
"\n"
" # callback method for undo\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" print(\"You clicked \\\"Undo\\\".\")\n"
"\n"
" # callback method for fullscreen / leave fullscreen\n"
" def fullscreen_callback(self, action, parameter):\n"
@@ -47420,11 +47434,11 @@ msgstr ""
"\n"
" # callback method for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" # callback method for open\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -47562,7 +47576,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"
@@ -47684,10 +47698,10 @@ msgid ""
"\treturn new MyApplication ().run (args);\n"
"}\n"
msgstr ""
-"/* Αυτό είναι το παράθυρο */\n"
+"/* This is the Window */\n"
"class MyWindow : Gtk.ApplicationWindow {\n"
"\n"
-"\t/* Μεταβλητές στιγμιότυπου που ανήκει στο παράθυρο */\n"
+"\t/* Instance variables belonging to the window */\n"
"\tGtk.Toolbar toolbar;\n"
"\tGtk.ToolButton new_button;\n"
"\tGtk.ToolButton open_button;\n"
@@ -47695,7 +47709,7 @@ msgstr ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Κατασκευαστής */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar Example\");\n"
"\n"
@@ -47709,19 +47723,19 @@ msgstr ""
"\t\tgrid.attach (toolbar, 0, 0, 1, 1);\n"
"\t\ttoolbar.show ();\n"
"\n"
-"\t\t/* Δημιουργία της ενέργειας παραθύρου \"undo\" */\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/* Δημιουργία της ενέργειας παραθύρου \"fullscreen\" */\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/* Αυτή η συνάρτηση δημιουργεί την εργαλειοθήκη, τα κουμπιά εργαλείων της\n"
-"\t * και εκχωρεί τα ονόματα ενεργειών στα κουμπιά εργαλείων.*/\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"
@@ -47776,7 +47790,7 @@ msgstr ""
"\t}\n"
"}\n"
"\n"
-"/* Αυτή είναι η εφαρμογή */\n"
+"/* This is the application */\n"
"class MyApplication : Gtk.Application {\n"
"\tprotected override void activate () {\n"
"\t\tnew MyWindow (this).show ();\n"
@@ -47785,18 +47799,18 @@ msgstr ""
"\tprotected override void startup () {\n"
"\t\tbase.startup ();\n"
"\n"
-"\t\t/* Δημιουργία της ενέργειας \"new\" και προσθήκη της στην εφαρμογή*/\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/* Δημιουργία της ενέργειας \"open\", και προσθήκη της στην εφαρμογή */\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/* Μπορείτε επίσης να προσθέσετε την ενέργεια στο μενού εφαρμογών\n"
-"\t\t * αν θέλετε.\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"
@@ -47812,7 +47826,7 @@ msgstr ""
"\t}\n"
"}\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"
@@ -48451,7 +48465,7 @@ msgid ""
" try:\n"
" builder.add_from_file(\"toolbar_builder.ui\")\n"
" except:\n"
-" print \"file not found\"\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"
@@ -48476,7 +48490,7 @@ msgid ""
"\n"
" # callback for undo\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" print(\"You clicked \\\"Undo\\\".\")\n"
"\n"
" # callback for fullscreen\n"
" def fullscreen_callback(self, action, parameter):\n"
@@ -48523,11 +48537,11 @@ msgid ""
"\n"
" # callback for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" # callback for open\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -48559,7 +48573,7 @@ msgstr ""
" try:\n"
" builder.add_from_file(\"toolbar_builder.ui\")\n"
" except:\n"
-" print \"file not found\"\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"
@@ -48584,7 +48598,7 @@ msgstr ""
"\n"
" # callback for undo\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" print(\"You clicked \\\"Undo\\\".\")\n"
"\n"
" # callback for fullscreen\n"
" def fullscreen_callback(self, action, parameter):\n"
@@ -48631,11 +48645,11 @@ msgstr ""
"\n"
" # callback for new\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" # callback for open\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -48686,11 +48700,11 @@ msgstr ""
#. (itstool) path: item/p
#: C/toolbar_builder.py.page:181
msgid ""
-"<code>add_objects_from_string(filename, object_ids)</code> is the same as <code>add_from_string()</code>,
but it "
+"<code>add_objects_from_string(string, object_ids)</code> is the same as <code>add_from_string()</code>, but
it "
"loads only the objects with the ids given in the <code>object_id</code>s list."
msgstr ""
-"Η <code>add_objects_from_string(filename, object_ids)</code> είναι η ίδια με
<code>add_from_string()</code>, αλλά "
-"φορτώνει μόνο τα αντικείμενα με τις ταυτότητες που δίνονται στη λίστα <code>object_id</code>."
+"Το <code>add_objects_from_string(string, object_ids)</code> είναι ίδιο με το
<code>add_from_string()</code>, αλλά "
+"φορτώνει μόνο τα αντικείμενα με τα αναγνωριστικά που δόθηκαν στη λίστα <code>object_id</code>s."
#. (itstool) path: item/p
#: C/toolbar_builder.py.page:182
@@ -48765,7 +48779,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"
@@ -48860,16 +48874,16 @@ msgid ""
"\treturn new MyApplication ().run (args);\n"
"}\n"
msgstr ""
-"/* Αυτό είναι το παράθυρο */\n"
+"/* This is the Window */\n"
"class MyWindow : Gtk.ApplicationWindow {\n"
"\n"
-"\t/* Δηλώστε αυτά τα δύο ToolButtons, καθώς θα τα πάρετε\n"
-"\t * από το αρχείο ui (δείτε γραμμές 32 και 33), έτσι μπορούμε να τα\n"
-"\t * hide() και show() όταν χρειάζεται.*/\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/* Κατασκευαστής */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar Example\");\n"
"\n"
@@ -48878,28 +48892,28 @@ msgstr ""
"\t\tthis.add (grid);\n"
"\t\tgrid.show ();\n"
"\n"
-"\t\t/* προσθήκη της εργαλειοθήκης από το αρχείο ui */\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/* Χειρισμός της εξαίρεσης */\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/* λήψη αυτών των αντικειμένων από το αρχείο ui έτσι ώστε να μπορούμε να τα εναλλάξουμε */\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/* δημιουργία της ενέργειας παραθύρου \"undo\" */\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/* δημιουργία της ενέργειας παραθύρου \"fullscreen\" */\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"
@@ -48923,7 +48937,7 @@ msgstr ""
"\t}\n"
"}\n"
"\n"
-"/* Αυτή είναι η εφαρμογή */\n"
+"/* This is the application */\n"
"class MyApplication : Gtk.Application {\n"
"\tprotected override void activate () {\n"
"\t\tnew MyWindow (this).show ();\n"
@@ -48932,18 +48946,18 @@ msgstr ""
"\tprotected override void startup () {\n"
"\t\tbase.startup ();\n"
"\n"
-"\t\t/* Δημιουργία της ενέργειας \"new\" και προσθήκη της στις εφαρμογές */\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/* Δημιουργία της ενέργειας \"open\" και προσθήκη της στις εφαρμογές */\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/* Μπορείτε επίσης να προσθέσετε την ενέργεια στο μενού εφαρμογών\n"
-"\t\t * αν θέλετε.\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"
@@ -48959,7 +48973,7 @@ msgstr ""
"\t}\n"
"}\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"
@@ -49830,7 +49844,7 @@ msgid ""
" return True\n"
"\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" print(\"You clicked \\\"Undo\\\".\")\n"
"\n"
" def fullscreen_callback(self, action, parameter):\n"
" is_fullscreen = self.get_window().get_state(\n"
@@ -49864,10 +49878,10 @@ msgid ""
" app.add_action(open_action)\n"
"\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -49958,7 +49972,7 @@ msgstr ""
" return True\n"
"\n"
" def undo_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Undo\\\".\"\n"
+" print(\"You clicked \\\"Undo\\\".\")\n"
"\n"
" def fullscreen_callback(self, action, parameter):\n"
" is_fullscreen = self.get_window().get_state(\n"
@@ -49992,10 +50006,10 @@ msgstr ""
" app.add_action(open_action)\n"
"\n"
" def new_callback(self, action, parameter):\n"
-" print \"You clicked \\\"New\\\".\"\n"
+" print(\"You clicked \\\"New\\\".\")\n"
"\n"
" def open_callback(self, action, parameter):\n"
-" print \"You clicked \\\"Open\\\".\"\n"
+" print(\"You clicked \\\"Open\\\".\")\n"
"\n"
"app = MyApplication()\n"
"exit_status = app.run(sys.argv)\n"
@@ -50117,7 +50131,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"
@@ -50267,10 +50281,10 @@ msgid ""
"\treturn new MyApplication ().run (args);\n"
"}\n"
msgstr ""
-"/* Αυτό είναι το παράθυρο */\n"
+"/* This is the Window */\n"
"class MyWindow : Gtk.ApplicationWindow {\n"
"\n"
-"\t/* Μεταβλητές στιγμιοτύπου που ανήκουν στο παράθυρο */\n"
+"\t/* Instance variables belonging to the window */\n"
"\tGtk.Toolbar toolbar;\n"
"\tGtk.ToolButton new_button;\n"
"\tGtk.ToolButton open_button;\n"
@@ -50278,7 +50292,7 @@ msgstr ""
"\tGtk.ToolButton fullscreen_button;\n"
"\tGtk.ToolButton leave_fullscreen_button;\n"
"\n"
-"\t/* Κατασκευαστής */\n"
+"\t/* Constructor */\n"
"\tinternal MyWindow (MyApplication app) {\n"
"\t\tObject (application: app, title: \"Toolbar with Tooltips Example\");\n"
"\n"
@@ -50292,39 +50306,39 @@ msgstr ""
"\t\tgrid.attach (toolbar, 0, 0, 1, 1);\n"
"\t\ttoolbar.show ();\n"
"\n"
-"\t\t/* δημιουργία της ενέργειας παραθύρου \"undo\" */\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/* δημιουργία της ενέργειας παραθύρου \"fullscreen\" */\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/* Η συνάρτηση επανάκλησης για το σήμα query_tooltip */\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/* ορισμός του κειμένου για τη συμβουλή οθόνης */\n"
+"\t\t/* set the text for the tooltip */\n"
" \ttooltip.set_text (\"Undo your last action\");\n"
"\t\t\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/* εμφάνιση της συμβουλής οθόνης */\n"
+" \t/* show the tooltip */\n"
" \treturn true;\n"
"\t}\n"
"\n"
-"\t/* Αυτή η συνάρτηση δημιουργεί την εργαλειοθήκη, τα κουμπιά εργαλείων της,\n"
-"\t * και εκχωρεί τα ονόματα ενεργειών στα κουμπιά εργαλείων.*/\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/* συμβουλή οθόνης με κείμενο */\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"
@@ -50334,7 +50348,7 @@ msgstr ""
"\n"
"\t\topen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.OPEN);\n"
"\n"
-"\t\t/* μια συμβουλή οθόνης χρησιμοποιώντας τη γλώσσα σήμανσης Pango */\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"
@@ -50344,10 +50358,10 @@ msgstr ""
"\n"
"\t\tundo_button = new Gtk.ToolButton.from_stock (Gtk.Stock.UNDO);\n"
"\t\n"
-"\t\t/* Για να έχει μια συμβουλή οθόνης μια εικόνα, πρέπει πρώτα set_has_tooltip να είναι 'true' */\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/* Σύνδεση με το σήμα query_tooltip στην επανάκληση */\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"
@@ -50387,7 +50401,7 @@ msgstr ""
"\t}\n"
"}\n"
"\n"
-"/* Αυτή είναι η εφαρμογή */\n"
+"/* This is the application */\n"
"class MyApplication : Gtk.Application {\n"
"\tprotected override void activate () {\n"
"\t\tnew MyWindow (this).show ();\n"
@@ -50396,18 +50410,18 @@ msgstr ""
"\tprotected override void startup () {\n"
"\t\tbase.startup ();\n"
"\n"
-"\t\t/* Δημιουργία της ενέργειας \"new\" και προσθήκη της στην app*/\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/* Δημιουργία της ενέργειας \"open\" και προσθήκη της στην app */\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/* Μπορείτε επίσης να προσθέσετε την ενέργεια στο μενού app\n"
-"\t\t * αν θέλετε.\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"
@@ -50423,7 +50437,7 @@ msgstr ""
"\t}\n"
"}\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"
@@ -50573,7 +50587,7 @@ msgid ""
" 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"
+" print(\"%s has been added\" % (title))\n"
"\n"
" def remove_cb(self, button):\n"
" # if there is still an entry in the model\n"
@@ -50583,15 +50597,15 @@ msgid ""
" # 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"
+" 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"
+" 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"
+" print(\"Empty list\")\n"
"\n"
" def remove_all_cb(self, button):\n"
" # if there is still an entry in the model\n"
@@ -50601,7 +50615,7 @@ msgid ""
" 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"
+" print(\"Empty list\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -50710,7 +50724,7 @@ msgstr ""
" 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"
+" print(\"%s has been added\" % (title))\n"
"\n"
" def remove_cb(self, button):\n"
" # if there is still an entry in the model\n"
@@ -50720,15 +50734,15 @@ msgstr ""
" # 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"
+" 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"
+" 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"
+" print(\"Empty list\")\n"
"\n"
" def remove_all_cb(self, button):\n"
" # if there is still an entry in the model\n"
@@ -50738,7 +50752,7 @@ msgstr ""
" 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"
+" print(\"Empty list\")\n"
"\n"
"\n"
"class MyApplication(Gtk.Application):\n"
@@ -53676,7 +53690,7 @@ 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."
+"GNU_build_system\">the wikipedia article</link> provides a good overview on the subject."
msgstr ""
"Έχοντας περισσότερα από ένα αρχεία στον φάκελό σας κάνει τη χρήση του autotools λίγο περίπλοκο.
Χρειαζόσαστε το "
"αρχείο .desktop, autogen.sh, Makefile.am, configure.ac και ως νέο αρχείο: το αρχείο myapp.sh.in. Η
επεξεργασία του "
@@ -53936,11 +53950,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
@@ -54962,12 +54971,12 @@ msgstr "2015"
#. (itstool) path: info/desc
#: C/custom-gsource.c.page:18
msgid "Tutorial for writing a custom <code>GSource</code> implementation"
-msgstr ""
+msgstr "Μάθημα για την εγγραφή μιας προσαρμοσμένης υλοποίησης <code>GSource</code>"
#. (itstool) path: page/title
#: C/custom-gsource.c.page:23
msgid "Custom GSources"
-msgstr "Προσαρμοσμένες GSources"
+msgstr "Προσαρμοσμένα GSources"
#. (itstool) path: synopsis/title
#: C/custom-gsource.c.page:26
@@ -54981,6 +54990,9 @@ msgid ""
"<link href=\"https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#GSource\">GLib API
reference</"
"link>."
msgstr ""
+"Αυτό το κείμενο είναι ένα μάθημα για την δημιουργία ενός προσαρμοσμένου <code>GSource</code>. Αν θέλετε να
δείτε "
+"περισσότερη τεκμηρίωση, επισκεφθείτε την <link
href=\"https://developer.gnome.org/glib/stable/glib-The-Main-Event-"
+"Loop.html#GSource\">αναφορά του GLib API</link>."
#. (itstool) path: section/title
#: C/custom-gsource.c.page:37
@@ -54994,6 +55006,9 @@ msgid ""
"code></link> is an expected event with an associated callback function which will be invoked when that
event is "
"received. An event could be a timeout or data being received on a socket, for example."
msgstr ""
+"Το <link
href=\"https://developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#GSource\"><code>GSource</"
+"code></link> είναι ένα γεγονός με μια συσχετισμένη συνάρτηση επανάκλησης η οποία καλείται όταν λαμβάνεται
το "
+"γεγονός. Το γεγονός αυτό μπορεί να είναι ένα χρονικό όριο ή δεδομένα που λαμβάνονται από μια υποδοχή."
#. (itstool) path: section/p
#: C/custom-gsource.c.page:46
@@ -55001,16 +55016,17 @@ msgid ""
"GLib contains various types of <code>GSource</code>, but also allows applications to define their own,
allowing "
"custom events to be integrated into the main loop."
msgstr ""
+"Το GLib περιλαμβάνει διάφορους τύπους <code>GSource</code>, αλλά επιτρέπει επίσης της εφαρμογές να ορίσουν
τα δικά "
+"τους, επιτρέποντας προσαρμοσμένα συμβάντα να ενσωματωθούν στον κύριο βρόγχο του προγράμματος."
#. (itstool) path: section/p
#: C/custom-gsource.c.page:52
-#, fuzzy
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/stable/glib-The-Main-Event-Loop.html#GSourceFuncs\">GLib API
reference</link>."
msgstr ""
-"Μπορείτε να βρείτε ορισμούς σήματος για κάθε αντικείμενο στο <link
href=\"https://developer.gnome.org/gtk3/stable/"
-"gtkobjects.html\">αναφορά κλάσης GTK</link>."
+"Η δομή του <code>GSource</code> και των εικονικών συναρτήσεων περιγράφονται λεπτομερώς στην <link
href=\"https://"
+"developer.gnome.org/glib/stable/glib-The-Main-Event-Loop.html#GSourceFuncs\">αναφορά του GLib API</link>."
#. (itstool) path: section/title
#: C/custom-gsource.c.page:61
@@ -55044,6 +55060,9 @@ msgid ""
"followed by the private fields for the source: the queue and a function to call to free each message once
finished "
"with."
msgstr ""
+"Αρχικά, πρέπει να οριστεί μια δομή για τις ανάγκες του κώδικα. Αυτή η δομή πρέπει να περιέχει ένα
<code>GSource</"
+"code> ως γονικό, ακολουθόμενο από ιδιωτικά πεδία: την ουρά και μια συνάρτηση για να καλεστεί κάθε μήνυμα
όταν "
+"τελειώσει."
#. (itstool) path: section/code
#: C/custom-gsource.c.page:86
@@ -55066,7 +55085,7 @@ msgstr ""
#. (itstool) path: section/title
#: C/custom-gsource.c.page:95
msgid "Prepare Function"
-msgstr "Προετοιμασία συνάρτησης"
+msgstr "Συνάρτηση προετοιμασίας"
#. (itstool) path: section/p
#: C/custom-gsource.c.page:97
@@ -55075,6 +55094,9 @@ msgid ""
"dispatched. As this source is using an in-memory queue, this can be determined by checking the queue’s
length: if "
"there are elements in the queue, the source can be dispatched to handle them."
msgstr ""
+"Στη συνέχεια, πρέπει να οριστεί η συνάρτηση προετοιμασίας. Αυτή καθορίζει αν ο κώδικας είναι έτοιμος να
σταλθεί. "
+"Καθώς αυτός ο κώδικας χρησιμοποιεί μια ουρά μνήμης, η ενέργεια μπορεί να καθοριστεί ελέγχοντας το μήκος της
ουράς: "
+"αν υπάρχουν στοιχεία στην ουρά, τότε ο κώδικας μπορεί να σταλθεί για να τα διαχειριστεί."
#. (itstool) path: section/code
#: C/custom-gsource.c.page:104
@@ -55089,7 +55111,7 @@ msgstr ""
#. (itstool) path: section/title
#: C/custom-gsource.c.page:109
msgid "Check Function"
-msgstr "Check Function"
+msgstr "Συνάρτηση ελέγχου"
#. (itstool) path: section/p
#: C/custom-gsource.c.page:111
@@ -55098,11 +55120,14 @@ msgid ""
"function is not needed. Setting the field to <code>NULL</code> in <code>GSourceFuncs</code> bypasses the
check "
"function for this source type."
msgstr ""
+"Καθώς αυτή η πηγή δεν έχει καθόλου περιγραφείς αρχείων, οι συναρτήσεις προετοιμασίας και ελέγχου εκτελούν
την ίδια "
+"δουλειά, έτσι δεν είναι αναγκαία μια συνάρτηση ελέγχου. Ορίζοντας το πεδίο σε <code>NULL</code> στο "
+"<code>GSourceFuncs</code> παρακάμπτεται η συνάρτηση ελέγχου για αυτόν τον τύπο πηγής."
#. (itstool) path: section/title
#: C/custom-gsource.c.page:120
msgid "Dispatch Function"
-msgstr ""
+msgstr "Συνάρτηση αποστολής"
#. (itstool) path: section/p
#: C/custom-gsource.c.page:122
@@ -55190,6 +55215,9 @@ msgid ""
"The callback from a <code>GSource</code> does not have to have type <code>GSourceFunc</code>. It can be
whatever "
"function type is called in the source’s dispatch function, as long as that type is sufficiently documented."
msgstr ""
+"Η επανάκληση από το <code>GSource</code> δεν είναι αναγκαίο να είναι τύπου <code>GSourceFunc</code>. Μπορεί
να "
+"είναι οποιουδήποτε τύπου συνάρτηση στην πηγή της συνάρτησης επανάκλησης, εφόσον αυτός ο τύπος είναι επαρκώς
"
+"τεκμηριωμένος."
#. (itstool) path: section/p
#: C/custom-gsource.c.page:178
@@ -55198,6 +55226,9 @@ msgid ""
"its <code>GDestroyNotify</code>, a strong reference can be held to keep an object alive while the source is
still "
"alive:"
msgstr ""
+"Συνήθως, το <code>g_source_set_callback()</code> χρησιμοποιείται για να οριστεί η συνάρτηση επανάκλησης για
ένα "
+"στιγμιότυπο πηγής. Με το <code>GDestroyNotify</code> του, μια ισχυρή αναφορά μπορεί να δημιουργηθεί για να "
+"κρατήσει ζωντανό το αντικείμενο καθώς η πηγή είναι ακόμα ενεργή:"
#. (itstool) path: section/code
#: C/custom-gsource.c.page:184
@@ -55242,6 +55273,8 @@ msgid ""
"It also allows for a generic, closure-based ‘dummy’ callback, which can be used when a source needs to
exist but "
"no action needs to be performed in its callback:"
msgstr ""
+"Επιτρέπει επίσης για μια γενική, εικονική επανάκληση, η οποία μπορεί να χρησιμοποιηθεί όταν μια πηγή
χρειάζεται να "
+"τερματιστεί αλλά δεν απαιτείται να εκτελεστούν ενέργειες στην επανάκληση της:"
#. (itstool) path: section/code
#: C/custom-gsource.c.page:207
@@ -55355,13 +55388,11 @@ msgstr ""
#. (itstool) path: section/title
#: C/custom-gsource.c.page:270
-#, fuzzy
msgid "Complete Example"
-msgstr "Δείγμα πλήρους κώδικα"
+msgstr "Πλήρες παράδειγμα"
#. (itstool) path: listing/title
#: C/custom-gsource.c.page:273
-#, fuzzy
msgid "Complete Example Code"
msgstr "Δείγμα πλήρους κώδικα"
@@ -55717,6 +55748,11 @@ msgid ""
"libnice/tree/agent/component.c#n941\">component.c</link> and demonstrates a more complex use of the prepare
"
"function."
msgstr ""
+"Ο κώδικας μπορεί να είναι πιο πολύπλοκος από τα παραπάνω παραδείγματα. Στο <link
href=\"http://nice.freedesktop."
+"org/\">libnice</link>, ένα προσαρμοσμένο <code>GSource</code> χρειάζεται για να λαμβάνει μια ομάδα υποδοχών
που "
+"αλλάζει δυναμικά. Η υλοποίηση του γίνεται με το <code>ComponentSource</code> στο αρχείο <link
href=\"http://cgit."
+"freedesktop.org/libnice/libnice/tree/agent/component.c#n941\">component.c</link> και παρουσιάζει μια πιο
πολύπλοκη "
+"συνάρτηση προετοιμασίας."
#. (itstool) path: section/p
#: C/custom-gsource.c.page:293
@@ -55726,6 +55762,3744 @@ msgid ""
"c#n871\"><code>GTlsConnectionGnutlsSource</code></link> synchronizes the main thread and a TLS worker
thread which "
"performs the blocking TLS operations."
msgstr ""
+"Ένα άλλο παράδειγμα είναι ένας προσαρμοσμένος κώδικας για την επικοινωνία του GnuTLS με το GLib και την
υλοποίηση "
+"<code>GTlsConnection</code> του. Το <link
href=\"https://git.gnome.org/browse/glib-networking/tree/tls/gnutls/"
+"gtlsconnection-gnutls.c#n871\"><code>GTlsConnectionGnutlsSource</code></link> συγχρονίζει το κύριο νήμα με
ένα "
+"νήμα TLS το οποίο εκτελεί τις εργασίες του TLS."
+
+#~ 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"
+#~ " },"
+#~ msgstr ""
+#~ "\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 ""
+#~ "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."
+#~ msgstr ""
+#~ "Για την εκτέλεση των παραπάνω εντολών SQL χρησιμοποιούμε τις γενικές συναρτήσεις GDA, "
+#~ "<code>execute_select_command</code> και <code>execute_non_select_command</code>. Είναι απλές στη χρήση
και "
+#~ "απαιτούν μόνο δύο ορίσματα: Το αντικείμενο <code>Connection</code> και την εντολή SQL να αναλυθεί."
+
+#~ 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"
+#~ " },"
+#~ msgstr ""
+#~ "\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 ""
+#~ "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."
+#~ msgstr ""
+#~ "Γραμμή 2: Η εντολή <code>SELECT</code>. Χρησιμοποιούμε τη γενική συνάρτηση του GDA "
+#~ "<code>execute_select_command</code> για αυτό. Επιστρέφει ένα αντικείμενο <code>DataModel</code>, που "
+#~ "χρησιμοποιείται αργότερα για ανάκτηση των γραμμών."
+
+#~ 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:"
+#~ msgstr ""
+#~ "Μάθαμε τη χρήση των συναρτήσεων ευκολίας του GDA <code>execute_select_command</code> και "
+#~ "<code>execute_non_select_command</code> για γρήγορη εκτέλεση εντολών SQL στη βάση δεδομένων. Το GDA
επιτρέπει "
+#~ "την κατασκευή μιας πρότασης SQL έμμεσα, χρησιμοποιώντας το αντικείμενο του <code>SqlBuilder</code>. Ποια
είναι "
+#~ "τα οφέλη του; GDA θα παράξει την πρόταση SQL δυναμικά και θα επικυρωθεί για τον χρησιμοποιούμενο πάροχο "
+#~ "σύνδεσης (θα χρησιμοποιήσει την ίδια διάλεκτο SQL που χρησιμοποιεί ο πάροχος). Ας μελετήσουμε τον
κώδικα:"
+
+#~ msgid ""
+#~ "JavaScript is one of the most popular programming languages on the web. It's not just for the web,
though. If "
+#~ "you have even a basic understanding of JavaScript, you can write full-fledged applications for GNOME.
<link "
+#~ "href=\"https://live.gnome.org/GnomeDocuments\">GNOME Documents</link> is written in JavaScript, and so
is <link "
+#~ "href=\"https://live.gnome.org/GnomeShell/Tour\">GNOME Shell</link>, the most basic part of GNOME."
+#~ msgstr ""
+#~ "Η JavaScript είναι μία από τις πιο δημοφιλείς γλώσσες προγραμματισμού στον ιστό. Δεν είναι μόνο για τον
ιστό, "
+#~ "όμως. Εάν έχετε ακόμα μια βασική κατανόηση της JavaScript, μπορείτε να γράψετε πλήρεις εφαρμογές για το
GNOME. "
+#~ "<link href=\"https://live.gnome.org/GnomeDocuments\">έγγραφα GNOME</link> είναι γραμμένο σε JavaScript
και έτσι "
+#~ "είναι το <link href=\"https://live.gnome.org/GnomeShell/Tour\">κέλυφος GNOME</link>, το πιο βασικό μέρος
του "
+#~ "GNOME."
+
+#~ msgid ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ " # a window\n"
+#~ "\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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ " # a window\n"
+#~ "\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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "from gi.repository import Gdk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "\n"
+#~ "distros = [[\"Select distribution\"], [\"Fedora\"], [\"Mint\"], [\"Suse\"]]\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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\n"
+#~ " # 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\n"
+#~ " # 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"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "distros = [[\"Select distribution\"], [\"Fedora\"], [\"Mint\"], [\"Suse\"]]\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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\n"
+#~ " # 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\n"
+#~ " # 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"
+#~ "\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 ""
+#~ "/* A window in the application */\n"
+#~ "class MyWindow : Gtk.ApplicationWindow {\n"
+#~ "\n"
+#~ "\t/* An instance array of linux distributions belonging to this window. */\n"
+#~ "\tstring[] distros = {\"Select distribution\", \"Fedora\", \"Mint\", \"Suse\"};\n"
+#~ "\n"
+#~ "\t/* This enum makes the code more readable when we refer to\n"
+#~ "\t * the column as Column.DISTRO, instead of just 0.\n"
+#~ "\t */\n"
+#~ "\tenum Column {\n"
+#~ "\t\tDISTRO\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\t/* Constructor */\n"
+#~ "\tinternal MyWindow (MyApplication app) {\n"
+#~ "\t\tObject (application: app, title: \"Welcome to GNOME\");\n"
+#~ "\n"
+#~ "\t\tthis.set_default_size (200, -1);\n"
+#~ "\t\tthis.border_width = 10;\n"
+#~ "\n"
+#~ "\t\tGtk.ListStore liststore = new Gtk.ListStore (1, typeof (string));\n"
+#~ "\n"
+#~ "\t\tfor (int i = 0; i < distros.length; i++){\n"
+#~ "\t\t\tGtk.TreeIter iter;\n"
+#~ "\t\t\tliststore.append (out iter);\n"
+#~ "\t\t\tliststore.set (iter, Column.DISTRO, distros[i]);\n"
+#~ "\t\t}\n"
+#~ "\n"
+#~ "\t\tGtk.ComboBox combobox = new Gtk.ComboBox.with_model (liststore);\n"
+#~ "\t\tGtk.CellRendererText cell = new Gtk.CellRendererText ();\n"
+#~ "\t\tcombobox.pack_start (cell, false);\n"
+#~ "\n"
+#~ "\t\tcombobox.set_attributes (cell, \"text\", Column.DISTRO);\n"
+#~ "\n"
+#~ "\t\t/* Set the first item in the list to be selected (active). */\n"
+#~ "\t\tcombobox.set_active (0);\n"
+#~ "\n"
+#~ "\t\t/* Connect the 'changed' signal of the combobox\n"
+#~ "\t\t * to the signal handler (aka. callback function.\n"
+#~ "\t\t */\n"
+#~ "\t\tcombobox.changed.connect (this.item_changed);\n"
+#~ "\n"
+#~ "\t\t/* Add the combobox to this window */\n"
+#~ "\t\tthis.add (combobox);\n"
+#~ "\t\tcombobox.show ();\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\t/* Signal handler for the 'changed' signal of the combobox. */\n"
+#~ "\tvoid item_changed (Gtk.ComboBox combo) {\n"
+#~ "\t\tif (combo.get_active () !=0) {\n"
+#~ "\t\t\tprint (\"You chose \" + distros [combo.get_active ()] +\"\\n\");\n"
+#~ "\t\t}\n"
+#~ "\t}\n"
+#~ "}\n"
+#~ "\n"
+#~ "/* This is the application */\n"
+#~ "class MyApplication : Gtk.Application {\n"
+#~ "\n"
+#~ "\t/* Constructor */\n"
+#~ "\tinternal MyApplication () {\n"
+#~ "\t\tObject (application_id: \"org.example.MyApplication\");\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\t/* Override the activate signal of GLib.Application,\n"
+#~ "\t * which is inherited by Gtk.Application.\n"
+#~ "\t */\n"
+#~ "\tprotected override void activate () {\n"
+#~ "\n"
+#~ "\t\t/* Create the window of this application\n"
+#~ "\t\t * and show it.\n"
+#~ "\t\t */\n"
+#~ "\t\tnew MyWindow (this).show ();\n"
+#~ "\t}\n"
+#~ "}\n"
+#~ "\n"
+#~ "/* main creates and runs the application */\n"
+#~ "int main (string[] args) {\n"
+#~ "\treturn new MyApplication ().run (args);\n"
+#~ "}\n"
+#~ msgstr ""
+#~ "/* A window in the application */\n"
+#~ "class MyWindow : Gtk.ApplicationWindow {\n"
+#~ "\n"
+#~ "\t/* An instance array of linux distributions belonging to this window. */\n"
+#~ "\tstring[] distros = {\"Select distribution\", \"Fedora\", \"Mint\", \"Suse\"};\n"
+#~ "\n"
+#~ "\t/* This enum makes the code more readable when we refer to\n"
+#~ "\t * the column as Column.DISTRO, instead of just 0.\n"
+#~ "\t */\n"
+#~ "\tenum Column {\n"
+#~ "\t\tDISTRO\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\t/* Constructor */\n"
+#~ "\tinternal MyWindow (MyApplication app) {\n"
+#~ "\t\tObject (application: app, title: \"Welcome to GNOME\");\n"
+#~ "\n"
+#~ "\t\tthis.set_default_size (200, -1);\n"
+#~ "\t\tthis.border_width = 10;\n"
+#~ "\n"
+#~ "\t\tGtk.ListStore liststore = new Gtk.ListStore (1, typeof (string));\n"
+#~ "\n"
+#~ "\t\tfor (int i = 0; i < distros.length; i++){\n"
+#~ "\t\t\tGtk.TreeIter iter;\n"
+#~ "\t\t\tliststore.append (out iter);\n"
+#~ "\t\t\tliststore.set (iter, Column.DISTRO, distros[i]);\n"
+#~ "\t\t}\n"
+#~ "\n"
+#~ "\t\tGtk.ComboBox combobox = new Gtk.ComboBox.with_model (liststore);\n"
+#~ "\t\tGtk.CellRendererText cell = new Gtk.CellRendererText ();\n"
+#~ "\t\tcombobox.pack_start (cell, false);\n"
+#~ "\n"
+#~ "\t\tcombobox.set_attributes (cell, \"text\", Column.DISTRO);\n"
+#~ "\n"
+#~ "\t\t/* Set the first item in the list to be selected (active). */\n"
+#~ "\t\tcombobox.set_active (0);\n"
+#~ "\n"
+#~ "\t\t/* Connect the 'changed' signal of the combobox\n"
+#~ "\t\t * to the signal handler (aka. callback function.\n"
+#~ "\t\t */\n"
+#~ "\t\tcombobox.changed.connect (this.item_changed);\n"
+#~ "\n"
+#~ "\t\t/* Add the combobox to this window */\n"
+#~ "\t\tthis.add (combobox);\n"
+#~ "\t\tcombobox.show ();\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\t/* Signal handler for the 'changed' signal of the combobox. */\n"
+#~ "\tvoid item_changed (Gtk.ComboBox combo) {\n"
+#~ "\t\tif (combo.get_active () !=0) {\n"
+#~ "\t\t\tprint (\"You chose \" + distros [combo.get_active ()] +\"\\n\");\n"
+#~ "\t\t}\n"
+#~ "\t}\n"
+#~ "}\n"
+#~ "\n"
+#~ "/* This is the application */\n"
+#~ "class MyApplication : Gtk.Application {\n"
+#~ "\n"
+#~ "\t/* Constructor */\n"
+#~ "\tinternal MyApplication () {\n"
+#~ "\t\tObject (application_id: \"org.example.MyApplication\");\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\t/* Override the activate signal of GLib.Application,\n"
+#~ "\t * which is inherited by Gtk.Application.\n"
+#~ "\t */\n"
+#~ "\tprotected override void activate () {\n"
+#~ "\n"
+#~ "\t\t/* Create the window of this application\n"
+#~ "\t\t * and show it.\n"
+#~ "\t\t */\n"
+#~ "\t\tnew MyWindow (this).show ();\n"
+#~ "\t}\n"
+#~ "}\n"
+#~ "\n"
+#~ "/* main creates and runs the application */\n"
+#~ "int main (string[] args) {\n"
+#~ "\treturn new MyApplication ().run (args);\n"
+#~ "}\n"
+
+#~ 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"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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\n"
+#~ " # 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"
+#~ " print \"You chose \" + str(actions[combo.get_active()][0]) + \"\\n\"\n"
+#~ " return True\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "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"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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\n"
+#~ " # 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"
+#~ " print \"You chose \" + str(actions[combo.get_active()][0]) + \"\\n\"\n"
+#~ " return True\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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 ""
+#~ "class MyWindow : Gtk.ApplicationWindow {\n"
+#~ "\n"
+#~ "\tstring[] file = {\"Select\", \"New\", \"Open\", \"Save\"};\n"
+#~ "\tstring[] stock_item = {\"\",\"gtk-new\", \"gtk-open\", \"gtk-save\"};\n"
+#~ "\n"
+#~ "\tenum Column {\n"
+#~ "\t\tFILE,\n"
+#~ "\t\tSTOCK_ITEM\t\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\t/* Constructor */\n"
+#~ "\tinternal MyWindow (MyApplication app) {\n"
+#~ "\t\tObject (application: app, title: \"Welcome to GNOME\");\n"
+#~ "\n"
+#~ "\t\tthis.set_default_size (200, -1);\n"
+#~ "\t\tthis.border_width = 10;\n"
+#~ "\n"
+#~ "\t\tGtk.ListStore liststore = new Gtk.ListStore (2, typeof (string), typeof (string));\n"
+#~ "\n"
+#~ "\t\tfor (int i = 0; i < file.length; i++){\n"
+#~ "\t\t\tGtk.TreeIter iter;\n"
+#~ "\t\t\tliststore.append (out iter);\n"
+#~ "\t\t\tliststore.set (iter, Column.FILE, file[i]);\n"
+#~ "\t\t\tliststore.set (iter, Column.STOCK_ITEM, stock_item[i]);\n"
+#~ "\t\t}\n"
+#~ "\n"
+#~ "\t\tGtk.ComboBox combobox = new Gtk.ComboBox.with_model (liststore);\n"
+#~ "\n"
+#~ "\t\t/* CellRenderers render the data. */\n"
+#~ "\t\tGtk.CellRendererText cell = new Gtk.CellRendererText ();\n"
+#~ "\t\tGtk.CellRendererPixbuf cell_pb = new Gtk.CellRendererPixbuf ();\n"
+#~ "\t\t\n"
+#~ " /* we pack the cell into the beginning of the combobox, allocating\n"
+#~ "\t\t * no more space than needed;\n"
+#~ "\t\t * first the image, then the text;\n"
+#~ "\t\t * note that it does not matter in which order they are in the model,\n"
+#~ "\t\t * the visualization is decided by the order of the cellrenderers\n"
+#~ "\t\t */\n"
+#~ "\t\tcombobox.pack_start (cell_pb, false);\n"
+#~ "\t\tcombobox.pack_start (cell, false);\n"
+#~ "\n"
+#~ "\t\t/* associate a property of the cellrenderer to a column in the model\n"
+#~ "\t\t * used by the combobox\n"
+#~ "\t\t */\n"
+#~ "\t\tcombobox.set_attributes (cell_pb, \"stock_id\", Column.STOCK_ITEM);\n"
+#~ "\t\tcombobox.set_attributes (cell, \"text\", Column.FILE);\n"
+#~ "\n"
+#~ "\t\t/* Set the first item in the list to be selected (active). */\n"
+#~ "\t\tcombobox.set_active (0);\n"
+#~ "\n"
+#~ "\t\t/* Connect the 'changed' signal of the combobox\n"
+#~ "\t\t * to the signal handler (aka. callback function.\n"
+#~ "\t\t */\n"
+#~ "\t\tcombobox.changed.connect (this.item_changed);\n"
+#~ "\n"
+#~ "\t\t/* Add the combobox to this window */\n"
+#~ "\t\tthis.add (combobox);\n"
+#~ "\t\tcombobox.show ();\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\tvoid item_changed (Gtk.ComboBox combo) {\n"
+#~ "\t\tif (combo.get_active () !=0) {\n"
+#~ "\t\t\tprint (\"You chose \" + file [combo.get_active ()] +\"\\n\");\n"
+#~ "\t\t}\n"
+#~ "\t}\n"
+#~ "}\n"
+#~ "\n"
+#~ "class MyApplication : Gtk.Application {\n"
+#~ " protected override void activate () {\n"
+#~ " new MyWindow (this).show ();\n"
+#~ " }\n"
+#~ "}\n"
+#~ "\n"
+#~ "int main (string[] args) {\n"
+#~ "\treturn new MyApplication ().run (args);\n"
+#~ "}\n"
+#~ msgstr ""
+#~ "class MyWindow : Gtk.ApplicationWindow {\n"
+#~ "\n"
+#~ "\tstring[] file = {\"Select\", \"New\", \"Open\", \"Save\"}·\n"
+#~ "\tstring[] stock_item = {\"\",\"gtk-new\", \"gtk-open\", \"gtk-save\"}·\n"
+#~ "\n"
+#~ "\tenum Column {\n"
+#~ "\t\tFILE,\n"
+#~ "\t\tSTOCK_ITEM\t\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\t/* Constructor */\n"
+#~ "\tinternal MyWindow (MyApplication app) {\n"
+#~ "\t\tObject (application: app, title: \"Welcome to GNOME\")·\n"
+#~ "\n"
+#~ "\t\tthis.set_default_size (200, -1)·\n"
+#~ "\t\tthis.border_width = 10·\n"
+#~ "\n"
+#~ "\t\tGtk.ListStore liststore = new Gtk.ListStore (2, typeof (string), typeof (string))·\n"
+#~ "\n"
+#~ "\t\tfor (int i = 0· i < file.length· i++){\n"
+#~ "\t\t\tGtk.TreeIter iter·\n"
+#~ "\t\t\tliststore.append (out iter)·\n"
+#~ "\t\t\tliststore.set (iter, Column.FILE, file[i])·\n"
+#~ "\t\t\tliststore.set (iter, Column.STOCK_ITEM, stock_item[i])·\n"
+#~ "\t\t}\n"
+#~ "\n"
+#~ "\t\tGtk.ComboBox combobox = new Gtk.ComboBox.with_model (liststore)·\n"
+#~ "\n"
+#~ "\t\t/* CellRenderers render the data. */\n"
+#~ "\t\tGtk.CellRendererText cell = new Gtk.CellRendererText ()·\n"
+#~ "\t\tGtk.CellRendererPixbuf cell_pb = new Gtk.CellRendererPixbuf ()·\n"
+#~ "\t\t\n"
+#~ " /* we pack the cell into the beginning of the combobox, allocating\n"
+#~ "\t\t * no more space than needed·\n"
+#~ "\t\t * first the image, then the text·\n"
+#~ "\t\t * note that it does not matter in which order they are in the model,\n"
+#~ "\t\t * the visualization is decided by the order of the cellrenderers\n"
+#~ "\t\t */\n"
+#~ "\t\tcombobox.pack_start (cell_pb, false)·\n"
+#~ "\t\tcombobox.pack_start (cell, false)·\n"
+#~ "\n"
+#~ "\t\t/* associate a property of the cellrenderer to a column in the model\n"
+#~ "\t\t * used by the combobox\n"
+#~ "\t\t */\n"
+#~ "\t\tcombobox.set_attributes (cell_pb, \"stock_id\", Column.STOCK_ITEM)·\n"
+#~ "\t\tcombobox.set_attributes (cell, \"text\", Column.FILE)·\n"
+#~ "\n"
+#~ "\t\t/* Set the first item in the list to be selected (active). */\n"
+#~ "\t\tcombobox.set_active (0)·\n"
+#~ "\n"
+#~ "\t\t/* Connect the 'changed' signal of the combobox\n"
+#~ "\t\t * to the signal handler (aka. callback function.\n"
+#~ "\t\t */\n"
+#~ "\t\tcombobox.changed.connect (this.item_changed)·\n"
+#~ "\n"
+#~ "\t\t/* Add the combobox to this window */\n"
+#~ "\t\tthis.add (combobox)·\n"
+#~ "\t\tcombobox.show ()·\n"
+#~ "\t}\n"
+#~ "\n"
+#~ "\tvoid item_changed (Gtk.ComboBox combo) {\n"
+#~ "\t\tif (combo.get_active () !=0) {\n"
+#~ "\t\t\tprint (\"You chose \" + file [combo.get_active ()] +\"\\n\")·\n"
+#~ "\t\t}\n"
+#~ "\t}\n"
+#~ "}\n"
+#~ "\n"
+#~ "class MyApplication : Gtk.Application {\n"
+#~ " protected override void activate () {\n"
+#~ " new MyWindow (this).show ()·\n"
+#~ " }\n"
+#~ "}\n"
+#~ "\n"
+#~ "int main (string[] args) {\n"
+#~ "\treturn new MyApplication ().run (args)·\n"
+#~ "}\n"
+
+#~ msgid ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ " # construct a window (the parent window)\n"
+#~ "\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\n"
+#~ " # 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\n"
+#~ " # 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\n"
+#~ " # 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ " # construct a window (the parent window)\n"
+#~ "\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\n"
+#~ " # 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\n"
+#~ " # 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\n"
+#~ " # 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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"
+#~ " name = entry.get_text()\n"
+#~ " # print it in a nice form in the terminal\n"
+#~ " print \"Hello \" + name + \"!\"\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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"
+#~ " name = entry.get_text()\n"
+#~ " # print it in a nice form in the terminal\n"
+#~ " print \"Hello \" + name + \"!\"\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "from gi.repository import Gio\n"
+#~ "from gi.repository import GObject\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\n"
+#~ " def __init__(self, app):\n"
+#~ " Gtk.Window.__init__(\n"
+#~ " 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(\n"
+#~ " 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,\n"
+#~ " # (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,\n"
+#~ " # (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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "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"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\n"
+#~ " def __init__(self, app):\n"
+#~ " Gtk.Window.__init__(\n"
+#~ " 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(\n"
+#~ " 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,\n"
+#~ " # (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,\n"
+#~ " # (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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " \"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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " \"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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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 ""
+#~ "\n"
+#~ " from gi.repository import Gtk\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\n"
+#~ " def __init__(self, app):\n"
+#~ " Gtk.Window.__init__(self, title=\"GMenu Example\", application=app)\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "\n"
+#~ " from gi.repository import Gtk\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\n"
+#~ " def __init__(self, app):\n"
+#~ " Gtk.Window.__init__(self, title=\"GMenu Example\", application=app)\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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 ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\n"
+#~ " def __init__(self, app):\n"
+#~ " Gtk.Window.__init__(self, title=\"MenuBar Example\", application=app)\n"
+#~ " self.set_default_size(200, 200)\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\n"
+#~ " def __init__(self, app):\n"
+#~ " Gtk.Window.__init__(self, title=\"MenuBar Example\", application=app)\n"
+#~ " self.set_default_size(200, 200)\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "from gi.repository import GLib\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " \"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"
+#~ " print \"Shape is set to\", parameter.get_string()\n"
+#~ " # Note that we set the state of the action!\n"
+#~ " action.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(\n"
+#~ " \"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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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(\n"
+#~ " \"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(\n"
+#~ " \"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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "from gi.repository import GLib\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " \"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"
+#~ " print \"Shape is set to\", parameter.get_string()\n"
+#~ " # Note that we set the state of the action!\n"
+#~ " action.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(\n"
+#~ " \"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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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(\n"
+#~ " \"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(\n"
+#~ " \"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 Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "import sys\n"
+#~ "\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"
+#~ " print \"*boom*\"\n"
+#~ " # 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\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"
+#~ " print \"*boom*\"\n"
+#~ " # 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " 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\n"
+#~ " # is a bit flag\n"
+#~ " is_fullscreen = self.get_window().get_state(\n"
+#~ " ) & 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "from gi.repository import Gdk\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " 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\n"
+#~ " # is a bit flag\n"
+#~ " is_fullscreen = self.get_window().get_state(\n"
+#~ " ) & 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " \"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\n"
+#~ " # is a bit flag\n"
+#~ " is_fullscreen = self.get_window().get_state(\n"
+#~ " ) & 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "from gi.repository import Gdk\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " \"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\n"
+#~ " # is a bit flag\n"
+#~ " is_fullscreen = self.get_window().get_state(\n"
+#~ " ) & 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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 ""
+#~ "<code>add_objects_from_string(filename, object_ids)</code> is the same as
<code>add_from_string()</code>, but "
+#~ "it loads only the objects with the ids given in the <code>object_id</code>s list."
+#~ msgstr ""
+#~ "Η <code>add_objects_from_string(filename, object_ids)</code> είναι η ίδια με
<code>add_from_string()</code>, "
+#~ "αλλά φορτώνει μόνο τα αντικείμενα με τις ταυτότητες που δίνονται στη λίστα <code>object_id</code>."
+
+#~ msgid ""
+#~ "from gi.repository import Gtk\n"
+#~ "from gi.repository import Gdk\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\n"
+#~ " def __init__(self, app):\n"
+#~ " Gtk.Window.__init__(\n"
+#~ " 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(\n"
+#~ " 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(\n"
+#~ " ) & 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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"
+#~ msgstr ""
+#~ "from gi.repository import Gtk\n"
+#~ "from gi.repository import Gdk\n"
+#~ "from gi.repository import Gio\n"
+#~ "import sys\n"
+#~ "\n"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\n"
+#~ " def __init__(self, app):\n"
+#~ " Gtk.Window.__init__(\n"
+#~ " 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(\n"
+#~ " 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(\n"
+#~ " ) & 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"
+#~ "\n"
+#~ "class MyApplication(Gtk.Application):\n"
+#~ "\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 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"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " self.entry, self.button_add, Gtk.PositionType.RIGHT, 1, 1)\n"
+#~ " grid.attach_next_to(\n"
+#~ " self.button_remove, self.entry, Gtk.PositionType.RIGHT, 1, 1)\n"
+#~ " grid.attach_next_to(\n"
+#~ " 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\n"
+#~ " # 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"
+#~ "\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"
+#~ msgstr ""
+#~ "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"
+#~ "\n"
+#~ "class MyWindow(Gtk.ApplicationWindow):\n"
+#~ "\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(\n"
+#~ " self.entry, self.button_add, Gtk.PositionType.RIGHT, 1, 1)\n"
+#~ " grid.attach_next_to(\n"
+#~ " self.button_remove, self.entry, Gtk.PositionType.RIGHT, 1, 1)\n"
+#~ " grid.attach_next_to(\n"
+#~ " 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\n"
+#~ " # 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"
+#~ "\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 "autohen.sh"
+#~ msgstr "autohen.sh"
#~ msgctxt "text"
#~ msgid "Tutorial for beginners (C)"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]