[gnome-devel-docs] Update Korean translation
- From: Translations User D-L <translations src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-devel-docs] Update Korean translation
- Date: Sat, 2 Mar 2019 10:35:58 +0000 (UTC)
commit 8db8b7ec64dc25cc7a6f72d020de62b0eaf60a58
Author: Seong-ho Cho <shcho gnome org>
Date: Sat Mar 2 10:35:37 2019 +0000
Update Korean translation
platform-demos/ko/ko.po | 5410 ++++++++++-------------------------------------
1 file changed, 1103 insertions(+), 4307 deletions(-)
---
diff --git a/platform-demos/ko/ko.po b/platform-demos/ko/ko.po
index 12d8a682..aa504d49 100644
--- a/platform-demos/ko/ko.po
+++ b/platform-demos/ko/ko.po
@@ -1,13 +1,13 @@
# Korean translation for gnome-devel-docs.
# Copyright (C) 2016 gnome-devel-docs's COPYRIGHT HOLDER
# This file is distributed under the same license as the gnome-devel-docs package.
-# Seong-ho Cho <shcho gnome org>, 2017, 2018.
+# Seong-ho Cho <shcho gnome org>, 2017-2019.
#
msgid ""
msgstr ""
"Project-Id-Version: gnome-devel-docs master\n"
-"POT-Creation-Date: 2018-07-07 08:43+0000\n"
-"PO-Revision-Date: 2018-09-01 21:36+0900\n"
+"POT-Creation-Date: 2019-02-03 09:39+0000\n"
+"PO-Revision-Date: 2019-02-27 23:07+0900\n"
"Last-Translator: Seong-ho Cho <shcho gnome org>\n"
"Language-Team: Korean <gnome-kr googlegroups com>\n"
"Language: ko\n"
@@ -20,7 +20,7 @@ msgstr ""
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
-msgstr "조성호 <shcho gnome org>, 2017, 2018"
+msgstr "조성호 <shcho gnome org>, 2017-2019."
#. (itstool) path: credit/name
#: C/02_welcome_to_the_grid.js.page:15 C/03_getting_the_signal.js.page:16 C/aboutdialog.js.page:12
@@ -155,12 +155,6 @@ msgstr "GTK+ 도구함의 위젯을 찾아보기 전에, 우선 프로그램에
#. (itstool) path: section/code
#: C/02_welcome_to_the_grid.js.page:43
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
@@ -193,26 +187,6 @@ msgstr "말 나온 김에:"
#. (itstool) path: section/code
#: C/02_welcome_to_the_grid.js.page:51
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
msgid ""
"\n"
"class WelcomeToTheGrid {\n"
@@ -273,17 +247,6 @@ msgstr "다시 말해, 이 부분을 막 갖다 붙여넣긴 했지만, 이 프
#. (itstool) path: section/code
#: C/02_welcome_to_the_grid.js.page:75
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " border_width: 10,\n"
-#| " title: \"Welcome to the Grid\"});\n"
msgid ""
"\n"
" // Build the application's UI\n"
@@ -489,20 +452,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/02_welcome_to_the_grid.js.page:130
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new WelcomeToTheGrid ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"\n"
" // Add the grid to the window\n"
@@ -1017,93 +966,6 @@ msgstr "완전한 코드 예제"
#. (itstool) path: section/code
#: C/02_welcome_to_the_grid.js.page:275
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const WelcomeToTheGrid = new Lang.Class({\n"
-#| " Name: 'Welcome to the Grid',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " border_width: 10,\n"
-#| " title: \"Welcome to the Grid\"});\n"
-#| "\n"
-#| " // Create the Grid\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " // column_homogeneous: true,\n"
-#| " // column_spacing: 20,\n"
-#| " row_spacing: 20 });\n"
-#| "\n"
-#| " // Create an image\n"
-#| " this._image = new Gtk.Image ({ file: \"gnome-image.png\" });\n"
-#| "\n"
-#| " // Create a second image using a stock icon\n"
-#| " this._icon = new Gtk.Image ({ stock: 'gtk-about' });\n"
-#| "\n"
-#| " // Create a label\n"
-#| " this._label = new Gtk.Label ({\n"
-#| " label: \"Welcome to GNOME, too!\",\n"
-#| " /* margin_top: 20 */ });\n"
-#| "\n"
-#| " /* Create a second label\n"
-#| " this._labelTwo = new Gtk.Label ({\n"
-#| " label: \"The cake is a pie.\" }); */\n"
-#| "\n"
-#| " /* Create a button\n"
-#| " this._button = new Gtk.Button ({\n"
-#| " label: \"Welcome to GNOME, too!\"}); */\n"
-#| "\n"
-#| " // Attach the images and button to the grid\n"
-#| " this._grid.attach (this._image, 0, 0, 2, 1);\n"
-#| " this._grid.attach (this._icon, 0, 1, 1, 1);\n"
-#| " this._grid.attach (this._label, 1, 1, 1, 1);\n"
-#| "\n"
-#| " // this._grid.attach (this._label, 0, 1, 1, 1);\n"
-#| " // this._grid.attach (this._labelTwo, 1, 1, 1, 1);\n"
-#| "\n"
-#| " // this._grid.attach (this._button, 1, 1, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new WelcomeToTheGrid ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -1367,37 +1229,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:42
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "// We start out with 0 cookies\n"
-#| "var cookies = 0;\n"
-#| "\n"
-#| "const GettingTheSignal = new Lang.Class({\n"
-#| " Name: 'Getting the Signal',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
@@ -1483,10 +1314,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:78
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
msgid ""
"\n"
" // Build the application's UI\n"
@@ -1567,13 +1394,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:102
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Create the cookie button\n"
-#| " this._cookieButton = new Gtk.Button ({ label: \"Get a cookie\" });\n"
-#| "\n"
-#| " // Connect the cookie button to the function that handles clicking it\n"
-#| " this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
msgid ""
"\n"
" // Create the cookie button\n"
@@ -1604,25 +1424,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:110
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Create a grid to arrange everything inside\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " row_spacing: 20 });\n"
-#| "\n"
-#| " // Put everything inside the grid\n"
-#| " this._grid.attach (this._cookieButton, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._cookieLabel, 0, 1, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| "\n"
-#| " },\n"
msgid ""
"\n"
" // Create a grid to arrange everything inside\n"
@@ -1687,17 +1488,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:131
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " _getACookie: function() {\n"
-#| "\n"
-#| " // Increase the number of cookies by 1 and update the label\n"
-#| " cookies++;\n"
-#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
msgid ""
"\n"
" _getACookie: function() {\n"
@@ -1824,10 +1614,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:168
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Connect the switch to the function that handles it\n"
-#| " this._cookieSwitch.connect ('notify::active', Lang.bind (this, this._cookieDispenser));\n"
msgid ""
"\n"
" // Connect the switch to the function that handles it\n"
@@ -1946,20 +1732,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:207
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " _getACookie: function() {\n"
-#| "\n"
-#| " // Is the cookie dispenser turned on?\n"
-#| " if (this._cookieSwitch.get_active()) {\n"
-#| "\n"
-#| " // Increase the number of cookies by 1 and update the label\n"
-#| " cookies++;\n"
-#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " }\n"
msgid ""
"\n"
" _getACookie() {\n"
@@ -2159,20 +1931,6 @@ msgstr "그리고 과자 단추를 선택했는지 확인하도록 _getACookie
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:278
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " _getACookie: function() {\n"
-#| "\n"
-#| " // Did you select \"cookie\" instead of \"not cookie\"?\n"
-#| " if (this._cookieRadio.get_active()) {\n"
-#| "\n"
-#| " // Increase the number of cookies by 1 and update the label\n"
-#| " cookies++;\n"
-#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " }\n"
msgid ""
"\n"
" _getACookie() {\n"
@@ -2294,20 +2052,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:318
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " _getACookie: function() {\n"
-#| "\n"
-#| " // Did you spell \"cookie\" correctly?\n"
-#| " if ((this._spellCookie.get_text()).toLowerCase() == \"cookie\") {\n"
-#| "\n"
-#| " // Increase the number of cookies by 1 and update the label\n"
-#| " cookies++;\n"
-#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " }\n"
msgid ""
"\n"
" _getACookie() {\n"
@@ -2364,93 +2108,6 @@ msgstr "단추 코드 예제"
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:350
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "// We start out with 0 cookies\n"
-#| "var cookies = 0;\n"
-#| "\n"
-#| "const GettingTheSignal = new Lang.Class({\n"
-#| " Name: 'Getting the Signal',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 200,\n"
-#| " default_width: 400,\n"
-#| " title: \"Click the button to get a cookie!\"});\n"
-#| "\n"
-#| " // Create the label\n"
-#| " this._cookieLabel = new Gtk.Label ({\n"
-#| " label: \"Number of cookies: \" + cookies });\n"
-#| "\n"
-#| " // Create the cookie button\n"
-#| " this._cookieButton = new Gtk.Button ({ label: \"Get a cookie\" });\n"
-#| "\n"
-#| " // Connect the cookie button to the function that handles clicking it\n"
-#| " this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
-#| "\n"
-#| " // Create a grid to arrange everything inside\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " row_spacing: 20 });\n"
-#| "\n"
-#| " // Put everything inside the grid\n"
-#| " this._grid.attach (this._cookieButton, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._cookieLabel, 0, 1, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _getACookie: function() {\n"
-#| "\n"
-#| " // Increase the number of cookies by 1 and update the label\n"
-#| " cookies++;\n"
-#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new GettingTheSignal ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -2624,116 +2281,6 @@ msgstr "스위치 코드 예제"
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:356
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "// We start out with 0 cookies\n"
-#| "var cookies = 0;\n"
-#| "\n"
-#| "const GettingTheSignal = new Lang.Class({\n"
-#| " Name: 'Getting the Signal',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 200,\n"
-#| " default_width: 400,\n"
-#| " title: \"Click the button to get a cookie!\"});\n"
-#| "\n"
-#| " // Create the label\n"
-#| " this._cookieLabel = new Gtk.Label ({\n"
-#| " label: \"Number of cookies: \" + cookies });\n"
-#| "\n"
-#| " // Create the cookie button\n"
-#| " this._cookieButton = new Gtk.Button ({\n"
-#| " label: \"Get a cookie\" });\n"
-#| "\n"
-#| " // Connect the cookie button to the function that handles clicking it\n"
-#| " this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
-#| "\n"
-#| " // Create the switch that controls whether or not you can win\n"
-#| " this._cookieSwitch = new Gtk.Switch ();\n"
-#| "\n"
-#| " // Create the label to go with the switch\n"
-#| " this._switchLabel = new Gtk.Label ({\n"
-#| " label: \"Cookie dispenser\" });\n"
-#| "\n"
-#| " // Create a grid for the switch and its label\n"
-#| " this._switchGrid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER });\n"
-#| "\n"
-#| " // Put the switch and its label inside that grid\n"
-#| " this._switchGrid.attach (this._switchLabel, 0, 0, 1, 1);\n"
-#| " this._switchGrid.attach (this._cookieSwitch, 1, 0, 1, 1);\n"
-#| "\n"
-#| " // Create a grid to arrange everything else inside\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " row_spacing: 20 });\n"
-#| "\n"
-#| " // Put everything inside the grid\n"
-#| " this._grid.attach (this._cookieButton, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._switchGrid, 0, 1, 1, 1);\n"
-#| " this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _getACookie: function() {\n"
-#| "\n"
-#| " // Is the cookie dispenser turned on?\n"
-#| " if (this._cookieSwitch.get_active()) {\n"
-#| "\n"
-#| " // Increase the number of cookies by 1 and update the label\n"
-#| " cookies++;\n"
-#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new GettingTheSignal ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -2953,117 +2500,6 @@ msgstr "RadioButton 코드 예제"
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:362
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "// We start out with 0 cookies\n"
-#| "var cookies = 0;\n"
-#| "\n"
-#| "const GettingTheSignal = new Lang.Class({\n"
-#| " Name: 'Getting the Signal',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 200,\n"
-#| " default_width: 400,\n"
-#| " border_width: 20,\n"
-#| " title: \"Choose the one that says 'cookie'!\"});\n"
-#| "\n"
-#| " // Create the radio buttons\n"
-#| " this._cookieRadio = new Gtk.RadioButton ({ label: \"Cookie\" });\n"
-#| " this._notCookieOne = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-#| " group: this._cookieRadio });\n"
-#| " this._notCookieTwo = new Gtk.RadioButton ({ label: \"Not cookie\",\n"
-#| " group: this._cookieRadio });\n"
-#| "\n"
-#| " // Arrange the radio buttons in their own grid\n"
-#| " this._radioGrid = new Gtk.Grid ();\n"
-#| " this._radioGrid.attach (this._notCookieOne, 0, 0, 1, 1);\n"
-#| " this._radioGrid.attach (this._cookieRadio, 0, 1, 1, 1);\n"
-#| " this._radioGrid.attach (this._notCookieTwo, 0, 2, 1, 1);\n"
-#| "\n"
-#| " // Set the button that will be at the top to be active by default\n"
-#| " this._notCookieOne.set_active (true);\n"
-#| "\n"
-#| " // Create the cookie button\n"
-#| " this._cookieButton = new Gtk.Button ({\n"
-#| " label: \"Get a cookie\" });\n"
-#| "\n"
-#| " // Connect the cookie button to the function that handles clicking it\n"
-#| " this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
-#| "\n"
-#| " // Create the label\n"
-#| " this._cookieLabel = new Gtk.Label ({\n"
-#| " label: \"Number of cookies: \" + cookies });\n"
-#| "\n"
-#| " // Create a grid to arrange everything inside\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " row_spacing: 20 });\n"
-#| "\n"
-#| " // Put everything inside the grid\n"
-#| " this._grid.attach (this._radioGrid, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._cookieButton, 0, 1, 1, 1);\n"
-#| " this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _getACookie: function() {\n"
-#| "\n"
-#| " // Did you select \"cookie\" instead of \"not cookie\"?\n"
-#| " if (this._cookieRadio.get_active()) {\n"
-#| "\n"
-#| " // Increase the number of cookies by 1 and update the label\n"
-#| " cookies++;\n"
-#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new GettingTheSignal ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -3285,104 +2721,6 @@ msgstr "Entry 코드 예제"
#. (itstool) path: section/code
#: C/03_getting_the_signal.js.page:368
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "// We start out with 0 cookies\n"
-#| "var cookies = 0;\n"
-#| "\n"
-#| "const GettingTheSignal = new Lang.Class({\n"
-#| " Name: 'Getting the Signal',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 200,\n"
-#| " default_width: 400,\n"
-#| " border_width: 20,\n"
-#| " title: \"Spell 'cookie' to get a cookie!\"});\n"
-#| "\n"
-#| " // Create the text entry field\n"
-#| " this._spellCookie = new Gtk.Entry ();\n"
-#| "\n"
-#| " // Create the cookie button\n"
-#| " this._cookieButton = new Gtk.Button ({\n"
-#| " label: \"Get a cookie\" });\n"
-#| "\n"
-#| " // Connect the cookie button to the function that handles clicking it\n"
-#| " this._cookieButton.connect ('clicked', Lang.bind (this, this._getACookie));\n"
-#| "\n"
-#| " // Create the label\n"
-#| " this._cookieLabel = new Gtk.Label ({\n"
-#| " label: \"Number of cookies: \" + cookies });\n"
-#| "\n"
-#| " // Create a grid to arrange everything inside\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " row_spacing: 20 });\n"
-#| "\n"
-#| " // Put everything inside the grid\n"
-#| " this._grid.attach (this._spellCookie, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._cookieButton, 0, 1, 1, 1);\n"
-#| " this._grid.attach (this._cookieLabel, 0, 2, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _getACookie: function() {\n"
-#| "\n"
-#| " // Did you spell \"cookie\" correctly?\n"
-#| " if ((this._spellCookie.get_text()).toLowerCase() == \"cookie\") {\n"
-#| "\n"
-#| " // Increase the number of cookies by 1 and update the label\n"
-#| " cookies++;\n"
-#| " this._cookieLabel.set_label (\"Number of cookies: \" + cookies);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new GettingTheSignal ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -3618,6 +2956,160 @@ msgstr "<em style=\"bold\">이 코드를 동작하려면 Gtk 3.4 이상이 필
#. (itstool) path: page/code
#: C/aboutdialog.c.page:29
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "#include <gtk/gtk.h>\n"
+#| "\n"
+#| "/* Callback function in which reacts to the \"response\" signal from the user in\n"
+#| " * the message dialog window.\n"
+#| " * This function is used to destroy the dialog window.\n"
+#| " */\n"
+#| "static void\n"
+#| "on_close (GtkDialog *dialog,\n"
+#| " gint response_id,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " /* This will cause the dialog to be destroyed */\n"
+#| " gtk_widget_destroy (GTK_WIDGET (dialog));\n"
+#| "}\n"
+#| "\n"
+#| "/* Callback function for the response signal \"activate\" related to the SimpleAction\n"
+#| " * \"about_action\".\n"
+#| " * This function is used to cause the about dialog window to popup.\n"
+#| " */\n"
+#| "static void\n"
+#| "about_cb (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *about_dialog;\n"
+#| "\n"
+#| " about_dialog = gtk_about_dialog_new ();\n"
+#| "\n"
+#| " /* Lists of authors/ documentators to be used later, they must be initialized\n"
+#| " * in a null terminated array of strings.\n"
+#| " */\n"
+#| " const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
+#| " const gchar *documenters[] = {\"GNOME Documentation Team\", NULL};\n"
+#| "\n"
+#| " /* We fill in the information for the about dialog */\n"
+#| " gtk_about_dialog_set_program_name (GTK_ABOUT_DIALOG (about_dialog), \"AboutDialog Example\");\n"
+#| " gtk_about_dialog_set_copyright (GTK_ABOUT_DIALOG (about_dialog), \"Copyright \\xc2\\xa9 2012 GNOME
Documentation Team\");\n"
+#| " gtk_about_dialog_set_authors (GTK_ABOUT_DIALOG (about_dialog), authors);\n"
+#| " gtk_about_dialog_set_documenters (GTK_ABOUT_DIALOG (about_dialog), documenters);\n"
+#| " gtk_about_dialog_set_website_label (GTK_ABOUT_DIALOG (about_dialog), \"GNOME Developer Website\");\n"
+#| " gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about_dialog), \"http://developer.gnome.org\");\n"
+#| "\n"
+#| " /* We do not wish to show the title, which in this case would be\n"
+#| " * \"AboutDialog Example\". We have to reset the title of the messagedialog\n"
+#| " * window after setting the program name.\n"
+#| " */\n"
+#| " gtk_window_set_title (GTK_WINDOW (about_dialog), \"\");\n"
+#| "\n"
+#| " /* To close the aboutdialog when \"close\" is clicked we connect the response\n"
+#| " * signal to on_close\n"
+#| " */\n"
+#| " g_signal_connect (GTK_DIALOG (about_dialog), \"response\",\n"
+#| " G_CALLBACK (on_close), NULL);\n"
+#| "\n"
+#| " /* Show the about dialog */\n"
+#| " gtk_widget_show (about_dialog);\n"
+#| "}\n"
+#| "\n"
+#| "static void\n"
+#| "activate (GtkApplication *app,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *window;\n"
+#| "\n"
+#| " GSimpleAction *about_action;\n"
+#| "\n"
+#| " /* Create a window with a title and a default size */\n"
+#| " window = gtk_application_window_new (app);\n"
+#| " gtk_window_set_title (GTK_WINDOW (window), \"AboutDialog Example\");\n"
+#| " gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);\n"
+#| "\n"
+#| " /* Create a new simple action, giving it a NULL parameter type. It will\n"
+#| " * always be NULL for actions invoked from a menu. (e.g clicking on an \"ok\"\n"
+#| " * or \"cancel\" button)\n"
+#| " */\n"
+#| " about_action = g_simple_action_new (\"about\", NULL);\n"
+#| "\n"
+#| " /* Connect the \"activate\" signal to the appropriate callback function.\n"
+#| " * It will indicate that the action was just activated.\n"
+#| " */\n"
+#| " g_signal_connect (about_action, \"activate\", G_CALLBACK (about_cb),\n"
+#| " GTK_WINDOW (window));\n"
+#| "\n"
+#| " /* Adds the about_action to the overall action map. An Action map is an\n"
+#| " * interface that contains a number of named GAction instances\n"
+#| " * (such as about_action)\n"
+#| " */\n"
+#| " g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (about_action));\n"
+#| "\n"
+#| " gtk_widget_show_all (window);\n"
+#| "}\n"
+#| "\n"
+#| "/* Callback function for the response signal \"activate\" from the \"quit\" action\n"
+#| " * found in the function directly below.\n"
+#| " */\n"
+#| "static void\n"
+#| "quit_cb (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GApplication *application = user_data;\n"
+#| "\n"
+#| " g_application_quit (application);\n"
+#| "}\n"
+#| "\n"
+#| "/* Startup function for the menu we are creating in this sample */\n"
+#| "static void\n"
+#| "startup (GApplication *app,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GMenu *menu;\n"
+#| " GSimpleAction *quit_action;\n"
+#| "\n"
+#| " /* Initialize the GMenu, and add a menu item with label \"About\" and action\n"
+#| " * \"win.about\". Also add another menu item with label \"Quit\" and action\n"
+#| " * \"app.quit\"\n"
+#| " */\n"
+#| " menu = g_menu_new ();\n"
+#| " g_menu_append (menu, \"About\", \"win.about\");\n"
+#| " g_menu_append (menu, \"Quit\", \"app.quit\");\n"
+#| "\n"
+#| " /* Create a new simple action for the application. (In this case it is the\n"
+#| " * \"quit\" action.\n"
+#| " */\n"
+#| " quit_action = g_simple_action_new (\"quit\", NULL);\n"
+#| "\n"
+#| " /* Ensure that the menu we have just created is set for the overall application */\n"
+#| " gtk_application_set_app_menu (GTK_APPLICATION (app), G_MENU_MODEL (menu));\n"
+#| "\n"
+#| " g_signal_connect (quit_action,\n"
+#| " \"activate\",\n"
+#| " G_CALLBACK (quit_cb),\n"
+#| " app);\n"
+#| "\n"
+#| " g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (quit_action));\n"
+#| "}\n"
+#| "\n"
+#| "/* Startup function for the application */\n"
+#| "int\n"
+#| "main (int argc, char **argv)\n"
+#| "{\n"
+#| " GtkApplication *app;\n"
+#| " int status;\n"
+#| "\n"
+#| " app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+#| " g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+#| " g_signal_connect (app, \"startup\", G_CALLBACK (startup), NULL);\n"
+#| " status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+#| " g_object_unref (app);\n"
+#| "\n"
+#| " return status;\n"
+#| "}\n"
msgid ""
"\n"
"#include <gtk/gtk.h>\n"
@@ -3648,7 +3140,7 @@ msgid ""
"\n"
" about_dialog = gtk_about_dialog_new ();\n"
"\n"
-" /* Lists of authors/ documentators to be used later, they must be initialized\n"
+" /* Lists of authors/ documenters to be used later, they must be initialized\n"
" * in a null terminated array of strings.\n"
" */\n"
" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
@@ -3802,7 +3294,7 @@ msgstr ""
"\n"
" about_dialog = gtk_about_dialog_new ();\n"
"\n"
-" /* Lists of authors/ documentators to be used later, they must be initialized\n"
+" /* Lists of authors/ documenters to be used later, they must be initialized\n"
" * in a null terminated array of strings.\n"
" */\n"
" const gchar *authors[] = {\"GNOME Documentation Team\", NULL};\n"
@@ -4014,109 +3506,6 @@ msgstr ""
#. (itstool) path: page/code
#: C/aboutdialog.js.page:24
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const AboutDialogExample = new Lang.Class({\n"
-#| " Name: 'AboutDialog Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jsaboutdialog',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal creates the menu and builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._initMenus();\n"
-#| " this._buildUI();\n"
-#| " },\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function(){\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"AboutDialog Example\",\n"
-#| " default_height: 250,\n"
-#| " default_width: 350 });\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " // Create the application menu\n"
-#| " _initMenus: function() {\n"
-#| " let menu = new Gio.Menu();\n"
-#| " menu.append(\"About\", 'app.about');\n"
-#| " menu.append(\"Quit\",'app.quit');\n"
-#| " this.application.set_app_menu(menu);\n"
-#| "\n"
-#| " // Create the \"About\" menu option and have it call the _showAbout() function\n"
-#| " let aboutAction = new Gio.SimpleAction({ name: 'about' });\n"
-#| " aboutAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._showAbout();\n"
-#| " }));\n"
-#| " this.application.add_action(aboutAction);\n"
-#| "\n"
-#| " // Create the \"Quit\" menu option and have it close the window\n"
-#| " let quitAction = new Gio.SimpleAction ({ name: 'quit' });\n"
-#| " quitAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._window.destroy();\n"
-#| " }));\n"
-#| " this.application.add_action(quitAction);\n"
-#| " },\n"
-#| "\n"
-#| " _showAbout: function() {\n"
-#| "\n"
-#| " // String arrays of the names of the people involved in the project\n"
-#| " var authors = [\"GNOME Documentation Team\"];\n"
-#| " var documenters = [\"GNOME Documentation Team\"];\n"
-#| "\n"
-#| " // Create the About dialog\n"
-#| " let aboutDialog = new Gtk.AboutDialog({ title: \"AboutDialog Example\",\n"
-#| " program_name: \"GtkApplication Example\",\n"
-#| " copyright: \"Copyright \\xa9 2012 GNOME Documentation
Team\",\n"
-#| " authors: authors,\n"
-#| " documenters: documenters,\n"
-#| " website: \"http://developer.gnome.org\",\n"
-#| " website_label: \"GNOME Developer Website\" });\n"
-#| "\n"
-#| " // Attach the About dialog to the window\n"
-#| " aboutDialog.modal = true;\n"
-#| " aboutDialog.transient_for = this._window;\n"
-#| "\n"
-#| " // Show the About dialog\n"
-#| " aboutDialog.show();\n"
-#| "\n"
-#| " // Connect the Close button to the destroy signal for the dialog\n"
-#| " aboutDialog.connect('response', function() {\n"
-#| " aboutDialog.destroy();\n"
-#| " });\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new AboutDialogExample();\n"
-#| "app.application.run(ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -5353,70 +4742,6 @@ msgstr "단추를 누르면 레이블을 바꾸는 단추 위젯입니다."
#. (itstool) path: page/code
#: C/button.js.page:25
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const ButtonExample = new Lang.Class ({\n"
-#| " Name: 'Button Example',\n"
-#| "\n"
-#| " /* Create the application itself\n"
-#| " This boilerplate code is needed to build any GTK+ application. */\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jsbutton',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal initializes menus and builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position:
Gtk.WindowPosition.CENTER,\n"
-#| " title: \"GNOME Button\",\n"
-#| " default_height: 50,\n"
-#| " default_width: 250 });\n"
-#| "\n"
-#| " // Create the button\n"
-#| " this.Button = new Gtk.Button ({label: \"Click Me\"});\n"
-#| " this._window.add (this.Button);\n"
-#| "\n"
-#| " // Bind it to a function that says what to do when the button is clicked\n"
-#| " this.Button.connect (\"clicked\", Lang.bind(this, this._clickHandler));\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " // Here's the function that says what happens when the button is clicked\n"
-#| " _clickHandler: function () {\n"
-#| " this.Button.set_label (\"Clicked!\");\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new ButtonExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -5884,34 +5209,36 @@ msgstr "계산기 - 단추는 수평 ButtonBox에 둘러싸여있습니다."
#| msgid ""
#| "#!/usr/bin/gjs\n"
#| "\n"
+#| "imports.gi.versions.Gtk = '3.0';\n"
+#| "\n"
#| "const GObject = imports.gi.GObject;\n"
#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
#| "\n"
-#| "const ButtonBoxExample = new Lang.Class ({\n"
-#| " Name: 'ButtonBox Example',\n"
+#| "class ButtonBoxExample {\n"
#| "\n"
#| " // Create the application itthis\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application({ application_id: 'org.example.jsbuttonbox' });\n"
+#| " constructor() {\n"
+#| " this.application = new Gtk.Application({\n"
+#| " application_id: 'org.example.jsbuttonbox'\n"
+#| " });\n"
#| "\n"
#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
+#| " this.application.connect('activate', this._onActivate.bind(this));\n"
+#| " this.application.connect('startup', this._onStartup.bind(this));\n"
+#| " }\n"
#| "\n"
#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
+#| " _onActivate() {\n"
#| " this.window.present();\n"
-#| " },\n"
+#| " }\n"
#| "\n"
#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
+#| " _onStartup() {\n"
+#| " this._buildUI();\n"
+#| " }\n"
#| "\n"
#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
+#| " _buildUI() {\n"
#| " // Create the application window\n"
#| " this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
#| " window_position: Gtk.WindowPosition.CENTER,\n"
@@ -5937,17 +5264,17 @@ msgstr "계산기 - 단추는 수평 ButtonBox에 둘러싸여있습니다."
#| " this.buttons = [ 7, 8, 9, '/', 4, 5, 6, '*', 1, 2, 3, '-', 'C', 0, '=', '+' ];\n"
#| " \n"
#| " // each row is a ButtonBox, attached to the grid \n"
-#| " for (i = 0; i < 4; i++) {\n"
+#| " for (let i = 0; i < 4; i++) {\n"
#| " this.hbox = Gtk.ButtonBox.new(Gtk.Orientation.HORIZONTAL);\n"
#| " this.hbox.set_spacing(5);\n"
#| " this.grid.attach(this.hbox, 0, i + 1, 1, 1);\n"
#| " // each ButtonBox has 4 buttons, connected to the callback function\n"
-#| " for (j= 0; j < 4; j++) {\n"
+#| " for (let j= 0; j < 4; j++) {\n"
#| " this.button = new Gtk.Button();\n"
#| " this.buttonLabel = (this.buttons[i * 4 + j].toString());\n"
#| " this.button.set_label(this.buttonLabel);\n"
#| " this.button.set_can_focus(false);\n"
-#| " this.button.connect(\"clicked\", Lang.bind(this, this._buttonClicked, this.button));\n"
+#| " this.button.connect(\"clicked\", this._buttonClicked.bind(this));\n"
#| " this.hbox.add(this.button);\n"
#| " }\n"
#| " }\n"
@@ -5961,10 +5288,10 @@ msgstr "계산기 - 단추는 수평 ButtonBox에 둘러싸여있습니다."
#| " // add the grid to the window\n"
#| " this.window.add(this.grid);\n"
#| " this.window.show_all();\n"
-#| " },\n"
+#| " }\n"
#| "\n"
#| " // callback function for all the buttons\n"
-#| " _buttonClicked: function(button) {\n"
+#| " _buttonClicked(button) {\n"
#| " this.button = button;\n"
#| " // for the operations\n"
#| " if (this.button.get_label() == '+') {\n"
@@ -6029,9 +5356,9 @@ msgstr "계산기 - 단추는 수평 ButtonBox에 둘러싸여있습니다."
#| " this.secondNumber = this.number;\n"
#| " this.entry.set_text(this.number.toString());\n"
#| " }\n"
-#| " },\n"
+#| " }\n"
#| "\n"
-#| " _doOperation: function() {\n"
+#| " _doOperation() {\n"
#| " if (this.operation == \"plus\") {\n"
#| " this.firstNumber += this.secondNumber;\n"
#| " } else if (this.operation == \"minus\") {\n"
@@ -6057,7 +5384,7 @@ msgstr "계산기 - 단추는 수평 ButtonBox에 둘러싸여있습니다."
#| " this.entry.set_text(\"error\");\n"
#| " }\n"
#| " }\n"
-#| "});\n"
+#| "};\n"
#| "\n"
#| "// Run the application\n"
#| "let app = new ButtonBoxExample();\n"
@@ -6072,7 +5399,7 @@ msgid ""
"\n"
"class ButtonBoxExample {\n"
"\n"
-" // Create the application itthis\n"
+" // Create the application itself\n"
" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsbuttonbox'\n"
@@ -6255,7 +5582,7 @@ msgstr ""
"\n"
"class ButtonBoxExample {\n"
"\n"
-" // Create the application itthis\n"
+" // Create the application itself\n"
" constructor() {\n"
" this.application = new Gtk.Application({\n"
" application_id: 'org.example.jsbuttonbox'\n"
@@ -7135,13 +6462,6 @@ msgstr "가져올 라이브러리"
#. (itstool) path: section/code
#: C/checkbutton.js.page:29
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
@@ -7180,32 +6500,6 @@ msgstr "프로그램 창 만들기"
#. (itstool) path: section/code
#: C/checkbutton.js.page:42
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "const CheckButtonExample = new Lang.Class({\n"
-#| " Name: 'CheckButton Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jscheckbutton',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
msgid ""
"\n"
"class CheckButtonExample {\n"
@@ -7268,19 +6562,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/checkbutton.js.page:67
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 100,\n"
-#| " default_width: 300,\n"
-#| " border_width: 10,\n"
-#| " title: \"CheckButton Example\"});\n"
msgid ""
"\n"
" // Build the application's UI\n"
@@ -7326,17 +6607,6 @@ msgstr "확인 단추 만들기"
#. (itstool) path: section/code
#: C/checkbutton.js.page:85
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Create the check button\n"
-#| " this._button = new Gtk.CheckButton ({label: \"Show Title\"});\n"
-#| " this._window.add (this._button);\n"
-#| "\n"
-#| " // Have the check button be checked by default\n"
-#| " this._button.set_active (true);\n"
-#| "\n"
-#| " // Connect the button to a function that does something when it's toggled\n"
-#| " this._button.connect (\"toggled\", Lang.bind (this, this._toggledCB));\n"
msgid ""
"\n"
" // Create the check button\n"
@@ -7376,11 +6646,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/checkbutton.js.page:97
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
msgid ""
"\n"
" // Show the window and all child widgets\n"
@@ -7408,19 +6673,6 @@ msgstr "확인 단추 상태 전환을 처리하는 함수입니다"
#. (itstool) path: section/code
#: C/checkbutton.js.page:107
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " _toggledCB: function () {\n"
-#| "\n"
-#| " // Make the window title appear or disappear when the checkbox is toggled\n"
-#| " if (this._button.get_active() == true)\n"
-#| " this._window.set_title (\"CheckButton Example\");\n"
-#| " else\n"
-#| " this._window.set_title (\"\");\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
msgid ""
"\n"
" _toggledCB() {\n"
@@ -7482,83 +6734,6 @@ msgstr "마지막으로 완성본 CheckButtonExample 클래스의 새 인스턴
#. (itstool) path: section/code
#: C/checkbutton.js.page:131
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const CheckButtonExample = new Lang.Class({\n"
-#| " Name: 'CheckButton Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jscheckbutton',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 100,\n"
-#| " default_width: 300,\n"
-#| " border_width: 10,\n"
-#| " title: \"CheckButton Example\"});\n"
-#| "\n"
-#| " // Create the check button\n"
-#| " this._button = new Gtk.CheckButton ({label: \"Show Title\"});\n"
-#| " this._window.add (this._button);\n"
-#| "\n"
-#| " // Have the check button be checked by default\n"
-#| " this._button.set_active (true);\n"
-#| "\n"
-#| " // Connect the button to a function that does something when it's toggled\n"
-#| " this._button.connect (\"toggled\", Lang.bind (this, this._toggledCB));\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _toggledCB: function () {\n"
-#| "\n"
-#| " // Make the window title appear or disappear when the checkbox is toggled\n"
-#| " if (this._button.get_active() == true)\n"
-#| " this._window.set_title (\"CheckButton Example\");\n"
-#| " else\n"
-#| " this._window.set_title (\"\");\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new CheckButtonExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -8024,74 +7199,6 @@ msgstr "ColorButton은 색상 선택 대화 상자를 실행하고 선택한 색
#. (itstool) path: section/code
#: C/colorbutton.js.page:29
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gdk = imports.gi.Gdk;\n"
-#| "const GObject = imports.gi.GObject;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const ColorbuttonExample = new Lang.Class ({\n"
-#| " Name: 'Colorbutton Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({ application_id: 'org.example.jscolorbutton' });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
-#| " this.window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"ColorButton\",\n"
-#| " default_width: 150,\n"
-#| " default_height: 50,\n"
-#| " border_width: 10 });\n"
-#| "\n"
-#| " this.button = new Gtk.ColorButton();\n"
-#| " this.color = new Gdk.RGBA();\n"
-#| " this.color.red = 0.0;\n"
-#| " this.color.green = 0.0;\n"
-#| " this.color.blue = 1.0;\n"
-#| " this.color.alpha = 0.5;\n"
-#| " this.button.set_rgba(this.color);\n"
-#| " this.button.connect(\"color-set\", Lang.bind(this, this.onColorChosen));\n"
-#| " this.label = new Gtk.Label();\n"
-#| " this.label.set_text(\"Click to choose a color\");\n"
-#| "\n"
-#| " let grid = new Gtk.Grid();\n"
-#| " grid.attach(this.button, 0, 0, 2, 1);\n"
-#| " grid.attach(this.label, 0, 1, 2, 1);\n"
-#| " this.window.add(grid);\n"
-#| " this.window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " onColorChosen: function() {\n"
-#| " let colorName = this.color.to_string();\n"
-#| " this.label.set_text(\"You chose the color \" + colorName);\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new ColorbuttonExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -8930,111 +8037,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/comboboxtext.js.page:172
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const ComboBoxTextExample = new Lang.Class ({\n"
-#| " Name: 'ComboBoxText Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jscomboboxtext'});\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Welcome to GNOME\",\n"
-#| " default_width: 200,\n"
-#| " border_width: 10 });\n"
-#| "\n"
-#| " // Create the combobox\n"
-#| " this._comboBoxText = new Gtk.ComboBoxText();\n"
-#| "\n"
-#| " // Populate the combobox\n"
-#| " let distros = [\"Select distribution\", \"Fedora\", \"Mint\", \"Suse\"];\n"
-#| " for (let i = 0; i < distros.length; i++)\n"
-#| " this._comboBoxText.append_text (distros[i]);\n"
-#| " this._comboBoxText.set_active (0);\n"
-#| "\n"
-#| " // Connect the combobox's 'changed' signal to our callback function\n"
-#| " this._comboBoxText.connect ('changed', Lang.bind (this, this._onComboChanged));\n"
-#| "\n"
-#| " // Add the combobox to the window\n"
-#| " this._window.add (this._comboBoxText);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _onComboChanged: function () {\n"
-#| "\n"
-#| " // The responses we'll use for our messagedialog\n"
-#| " let responses = [\"\",\n"
-#| " \"Fedora is a community distro sponsored by Red Hat.\",\n"
-#| " \"Mint is a popular distro based on Ubuntu.\",\n"
-#| " \"SUSE is a name shared by two separate distros.\"];\n"
-#| "\n"
-#| " // Which combobox item is active?\n"
-#| " let activeItem = this._comboBoxText.get_active();\n"
-#| "\n"
-#| " // No messagedialog if you chose \"Select distribution\"\n"
-#| " if (activeItem != 0) {\n"
-#| " this._popUp = new Gtk.MessageDialog ({\n"
-#| " transient_for: this._window,\n"
-#| " modal: true,\n"
-#| " buttons: Gtk.ButtonsType.OK,\n"
-#| " message_type: Gtk.MessageType.INFO,\n"
-#| " text: responses[activeItem]});\n"
-#| "\n"
-#| " // Connect the OK button to a handler function\n"
-#| " this._popUp.connect ('response', Lang.bind (this, this._onDialogResponse));\n"
-#| "\n"
-#| " // Show the messagedialog\n"
-#| " this._popUp.show();\n"
-#| " }\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _onDialogResponse: function () {\n"
-#| "\n"
-#| " this._popUp.destroy ();\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new ComboBoxTextExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -9497,13 +8499,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/combobox.js.page:34
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const GObject = imports.gi.GObject;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
@@ -9524,30 +8519,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/combobox.js.page:47
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "const ComboBoxExample = new Lang.Class ({\n"
-#| " Name: 'ComboBox Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jscombobox'});\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
msgid ""
"\n"
"class ComboBoxExample {\n"
@@ -9608,18 +8579,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/combobox.js.page:71
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Welcome to GNOME\",\n"
-#| " default_width: 200,\n"
-#| " border_width: 10 });\n"
msgid ""
"\n"
" // Build the application's UI\n"
@@ -9862,13 +8821,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/combobox.js.page:149
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Set the first row in the combobox to be active on startup\n"
-#| " this._comboBox.set_active (0);\n"
-#| "\n"
-#| " // Connect the combobox's 'changed' signal to our callback function\n"
-#| " this._comboBox.connect ('changed', Lang.bind (this, this._onComboChanged));\n"
msgid ""
"\n"
" // Set the first row in the combobox to be active on startup\n"
@@ -9899,14 +8851,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/combobox.js.page:158
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Add the combobox to the window\n"
-#| " this._window.add (this._comboBox);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
msgid ""
"\n"
" // Add the combobox to the window\n"
@@ -9932,15 +8876,6 @@ msgstr "마지막으로 ComboBox를 창에 추가하고, 창에 창 자신과
#. (itstool) path: section/code
#: C/combobox.js.page:171
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " _selected: function () {\n"
-#| "\n"
-#| " // The silly pseudohaiku that we'll use for our messagedialog\n"
-#| " let haiku = [\"\",\n"
-#| " \"You ask for the new\\nwith no thought for the aged\\nlike fallen leaves trod.\",\n"
-#| " \"Like a simple clam\\nrevealing a lustrous pearl\\nit opens for you.\",\n"
-#| " \"A moment in time\\na memory on the breeze\\nthese things can't be saved.\"];\n"
msgid ""
"\n"
" _selected() {\n"
@@ -9974,28 +8909,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/combobox.js.page:182
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Which combobox item is active?\n"
-#| " let activeItem = this._comboBox.get_active();\n"
-#| "\n"
-#| " // No messagedialog if you choose \"Select\"\n"
-#| " if (activeItem != 0) {\n"
-#| " this._popUp = new Gtk.MessageDialog ({\n"
-#| " transient_for: this._window,\n"
-#| " modal: true,\n"
-#| " buttons: Gtk.ButtonsType.OK,\n"
-#| " message_type: Gtk.MessageType.INFO,\n"
-#| " text: haiku[activeItem]});\n"
-#| "\n"
-#| " // Connect the OK button to a handler function\n"
-#| " this._popUp.connect ('response', Lang.bind (this, this._onDialogResponse));\n"
-#| "\n"
-#| " // Show the messagedialog\n"
-#| " this._popUp.show();\n"
-#| " }\n"
-#| "\n"
-#| " },\n"
msgid ""
"\n"
" // Which combobox item is active?\n"
@@ -10064,15 +8977,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/combobox.js.page:208
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " _onDialogResponse: function () {\n"
-#| "\n"
-#| " this._popUp.destroy ();\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
msgid ""
"\n"
" _onDialogResponse() {\n"
@@ -10114,143 +9018,6 @@ msgstr "끝으로, ComboBoxExample 클래스의 새 인스턴스를 만들고요
#. (itstool) path: section/code
#: C/combobox.js.page:229
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const GObject = imports.gi.GObject;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const ComboBoxExample = new Lang.Class ({\n"
-#| " Name: 'ComboBox Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jscombobox'});\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Welcome to GNOME\",\n"
-#| " default_width: 200,\n"
-#| " border_width: 10 });\n"
-#| "\n"
-#| " // Create the liststore to put our options in\n"
-#| " this._listStore = new Gtk.ListStore();\n"
-#| " this._listStore.set_column_types ([\n"
-#| " GObject.TYPE_STRING,\n"
-#| " GObject.TYPE_STRING]);\n"
-#| "\n"
-#| " // This array holds our list of options and their icons\n"
-#| " let options = [{ name: \"Select\" },\n"
-#| " { name: \"New\", icon: Gtk.STOCK_NEW },\n"
-#| " { name: \"Open\", icon: Gtk.STOCK_OPEN },\n"
-#| " { name: \"Save\", icon: Gtk.STOCK_SAVE }];\n"
-#| "\n"
-#| " // Put the options in the liststore\n"
-#| " for (let i = 0; i < options.length; i++ ) {\n"
-#| " let option = options[i];\n"
-#| " let iter = this._listStore.append();\n"
-#| " this._listStore.set (iter, [0], [option.name]);\n"
-#| " if ('icon' in option)\n"
-#| " this._listStore.set (iter, [1], [option.icon]);\n"
-#| " }\n"
-#| "\n"
-#| " // Create the combobox\n"
-#| " this._comboBox = new Gtk.ComboBox({\n"
-#| " model: this._listStore});\n"
-#| "\n"
-#| " // Create some cellrenderers for the items in each column\n"
-#| " let rendererPixbuf = new Gtk.CellRendererPixbuf();\n"
-#| " let rendererText = new Gtk.CellRendererText();\n"
-#| "\n"
-#| " // Pack the renderers into the combobox in the order we want to see\n"
-#| " this._comboBox.pack_start (rendererPixbuf, false);\n"
-#| " this._comboBox.pack_start (rendererText, false);\n"
-#| "\n"
-#| " // Set the renderers to use the information from our liststore\n"
-#| " this._comboBox.add_attribute (rendererText, \"text\", 0);\n"
-#| " this._comboBox.add_attribute (rendererPixbuf, \"stock_id\", 1);\n"
-#| "\n"
-#| " // Set the first row in the combobox to be active on startup\n"
-#| " this._comboBox.set_active (0);\n"
-#| "\n"
-#| " // Connect the combobox's 'changed' signal to our callback function\n"
-#| " this._comboBox.connect ('changed', Lang.bind (this, this._onComboChanged));\n"
-#| "\n"
-#| " // Add the combobox to the window\n"
-#| " this._window.add (this._comboBox);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _onComboChanged: function () {\n"
-#| "\n"
-#| " // The silly pseudohaiku that we'll use for our messagedialog\n"
-#| " let haiku = [\"\",\n"
-#| " \"You ask for the new\\nwith no thought for the aged\\nlike fallen leaves trod.\",\n"
-#| " \"Like a simple clam\\nrevealing a lustrous pearl\\nit opens for you.\",\n"
-#| " \"A moment in time\\na memory on the breeze\\nthese things can't be saved.\"];\n"
-#| "\n"
-#| " // Which combobox item is active?\n"
-#| " let activeItem = this._comboBox.get_active();\n"
-#| "\n"
-#| " // No messagedialog if you choose \"Select\"\n"
-#| " if (activeItem != 0) {\n"
-#| " this._popUp = new Gtk.MessageDialog ({\n"
-#| " transient_for: this._window,\n"
-#| " modal: true,\n"
-#| " buttons: Gtk.ButtonsType.OK,\n"
-#| " message_type: Gtk.MessageType.INFO,\n"
-#| " text: haiku[activeItem]});\n"
-#| "\n"
-#| " // Connect the OK button to a handler function\n"
-#| " this._popUp.connect ('response', Lang.bind (this, this._onDialogResponse));\n"
-#| "\n"
-#| " // Show the messagedialog\n"
-#| " this._popUp.show();\n"
-#| " }\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _onDialogResponse: function () {\n"
-#| "\n"
-#| " this._popUp.destroy ();\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new ComboBoxExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -11593,94 +10360,6 @@ msgstr ""
#. (itstool) path: page/code
#: C/dialog.js.page:25
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const DialogExample = new Lang.Class ({\n"
-#| " Name: 'Dialog Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jsdialog',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Gtk.Dialog Example\",\n"
-#| " default_height: 50,\n"
-#| " default_width: 250 });\n"
-#| "\n"
-#| " // Create a button\n"
-#| " this._button = new Gtk.Button ({label: \"Click Me\"});\n"
-#| " this._window.add (this._button);\n"
-#| "\n"
-#| " // Bind it to the function that creates the dialog\n"
-#| " this._button.connect (\"clicked\", Lang.bind(this, this._createDialog));\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " _createDialog: function () {\n"
-#| "\n"
-#| " // Create the dialog\n"
-#| " this._dialog = new Gtk.Dialog ({ transient_for: this._window,\n"
-#| " modal: true,\n"
-#| " title: \"A Gtk+ dialog\" });\n"
-#| "\n"
-#| " // Create the dialog's content area, which contains a message\n"
-#| " this._contentArea = this._dialog.get_content_area();\n"
-#| " this._message = new Gtk.Label ({label: \"This demonstrates a dialog with a label\"});\n"
-#| " this._contentArea.add (this._message);\n"
-#| "\n"
-#| " // Create the dialog's action area, which contains a stock OK button\n"
-#| " this._actionArea = this._dialog.get_action_area();\n"
-#| " this._OKButton = Gtk.Button.new_from_stock (Gtk.STOCK_OK);\n"
-#| " this._actionArea.add (this._OKButton);\n"
-#| "\n"
-#| " // Connect the button to the function that handles what it does\n"
-#| " this._OKButton.connect (\"clicked\", Lang.bind (this, this._OKHandler));\n"
-#| "\n"
-#| " this._dialog.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " _OKHandler: function (dialog, response_id) {\n"
-#| "\n"
-#| " // Destroy the dialog\n"
-#| " this._dialog.destroy();\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new DialogExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -12425,93 +11104,6 @@ msgstr "이 프로그램은 별도로 띄우는 창에 이름을 붙여 인사
#. (itstool) path: page/code
#: C/entry.js.page:25
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const EntryExample = new Lang.Class({\n"
-#| " Name: 'Entry Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jsentry',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 100,\n"
-#| " default_width: 300,\n"
-#| " border_width: 10,\n"
-#| " title: \"What is your name?\"});\n"
-#| "\n"
-#| " // Create the text entry box\n"
-#| " this.entry = new Gtk.Entry ();\n"
-#| " this._window.add(this.entry);\n"
-#| "\n"
-#| " // Connect the text entry box to a function that responds to what you type in\n"
-#| " this.entry.connect(\"activate\", Lang.bind (this, this._hello));\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _hello: function() {\n"
-#| "\n"
-#| " // Create a popup dialog to greet the person who types in their name\n"
-#| " this._greeter = new Gtk.MessageDialog ({\n"
-#| " transient_for: this._window,\n"
-#| " modal: true,\n"
-#| " text: \"Hello, \" + this.entry.get_text() + \"!\",\n"
-#| " message_type: Gtk.MessageType.OTHER,\n"
-#| " buttons: Gtk.ButtonsType.OK,\n"
-#| " });\n"
-#| "\n"
-#| " // Show the popup dialog\n"
-#| " this._greeter.show();\n"
-#| "\n"
-#| " // Bind the OK button to the function that closes the popup\n"
-#| " this._greeter.connect (\"response\", Lang.bind(this, this._okClicked));\n"
-#| " },\n"
-#| "\n"
-#| " _okClicked: function () {\n"
-#| " this._greeter.destroy();\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new EntryExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -14330,33 +12922,32 @@ msgstr "콜백 함수와 사용하는 FontChooserWidget입니다."
#| msgid ""
#| "//!/usr/bin/gjs\n"
#| "\n"
+#| "imports.gi.versions.Gtk = '3.0';\n"
#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
#| "\n"
-#| "const FontChooserWidgetExample = new Lang.Class ({\n"
-#| " Name: 'Font Chooser Widget Example',\n"
+#| "class FontChooserWidgetExample {\n"
#| "\n"
#| " // Create the application itthis\n"
-#| " _init: function () {\n"
+#| " constructor() {\n"
#| " this.application = new Gtk.Application({ application_id: 'org.example.fontchooserwidget' });\n"
#| "\n"
#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
+#| " this.application.connect('activate', this._onActivate.bind(this));\n"
+#| " this.application.connect('startup', this._onStartup.bind(this));\n"
+#| " }\n"
#| "\n"
#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
+#| " _onActivate() {\n"
#| " this.window.present();\n"
-#| " },\n"
+#| " }\n"
#| "\n"
#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
+#| " _onStartup() {\n"
+#| " this._buildUI();\n"
+#| " }\n"
#| "\n"
#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
+#| " _buildUI() {\n"
#| " // Create the application window\n"
#| " this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
#| " window_position: Gtk.WindowPosition.CENTER,\n"
@@ -14372,19 +12963,19 @@ msgstr "콜백 함수와 사용하는 FontChooserWidget입니다."
#| " this.fontChooser.set_preview_text(\"This is an example of preview text!\");\n"
#| "\n"
#| " // connect signal from the font chooser to the callback function\n"
-#| " this.fontChooser.connect(\"notify::font\", Lang.bind(this, this._fontCb));\n"
+#| " this.fontChooser.connect(\"notify::font\", this._fontCb.bind(this));\n"
#| "\n"
#| " // add the font chooser to the window\n"
#| " this.window.add(this.fontChooser);\n"
#| " this.window.show_all();\n"
-#| " },\n"
+#| " }\n"
#| "\n"
#| " // callback function:\n"
-#| " _fontCb: function() {\n"
+#| " _fontCb() {\n"
#| " // print in the terminal\n"
#| " print(\"You chose the font \" + this.fontChooser.get_font());\n"
#| " }\n"
-#| "});\n"
+#| "};\n"
#| "\n"
#| "// Run the application\n"
#| "let app = new FontChooserWidgetExample();\n"
@@ -14397,7 +12988,7 @@ msgid ""
"\n"
"class FontChooserWidgetExample {\n"
"\n"
-" // Create the application itthis\n"
+" // Create the application itself\n"
" constructor() {\n"
" this.application = new Gtk.Application({ application_id: 'org.example.fontchooserwidget' });\n"
"\n"
@@ -14458,7 +13049,7 @@ msgstr ""
"\n"
"class FontChooserWidgetExample {\n"
"\n"
-" // Create the application itthis\n"
+" // Create the application itself\n"
" constructor() {\n"
" this.application = new Gtk.Application({ application_id: 'org.example.fontchooserwidget' });\n"
"\n"
@@ -14936,96 +13527,6 @@ msgstr ""
#. (itstool) path: page/code
#: C/gmenu.js.page:25
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const Application = new Lang.Class ({\n"
-#| " Name: 'Application',\n"
-#| "\n"
-#| " //create the application\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.myapp',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " //connect to 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " //create the UI (in this case it's just the ApplicationWindow\n"
-#| " _buildUI: function() {\n"
-#| " this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Welcome to GNOME\" });\n"
-#| "\n"
-#| " //uncommenting the line below will change the window size\n"
-#| " //this._window.set_default_size(600, 400);\n"
-#| "\n"
-#| " //show the window and all child widgets (none in this case)\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " _showNew: function() {\n"
-#| " print (\"This doesn't do anything. It is only a demonstration.\");\n"
-#| " },\n"
-#| "\n"
-#| " _showAbout: function() {\n"
-#| " print (\"No AboutDialog here. This is only a demonstration.\");\n"
-#| " },\n"
-#| "\n"
-#| " //create the menu items and connect the signals to the callback functions.\n"
-#| " _initMenus: function() {\n"
-#| " let menu = new Gio.Menu();\n"
-#| " menu.append(\"New\",'app.new');\n"
-#| " menu.append(\"About\", 'app.about');\n"
-#| " menu.append(\"Quit\",'app.quit');\n"
-#| " this.application.set_app_menu(menu);\n"
-#| "\n"
-#| " let newAction = new Gio.SimpleAction ({ name: 'new' });\n"
-#| " newAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._showNew();\n"
-#| " }));\n"
-#| " this.application.add_action(newAction);\n"
-#| "\n"
-#| " let aboutAction = new Gio.SimpleAction ({ name: 'about' });\n"
-#| " aboutAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._showAbout();\n"
-#| " }));\n"
-#| " this.application.add_action(aboutAction);\n"
-#| "\n"
-#| " let quitAction = new Gio.SimpleAction ({ name: 'quit' });\n"
-#| " quitAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._window.destroy();\n"
-#| " }));\n"
-#| " this.application.add_action(quitAction);\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'activate' signal\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'startup' signal\n"
-#| " _onStartup: function() {\n"
-#| " //You must call _initMenus() before calling _buildUI().\n"
-#| " this._initMenus();\n"
-#| " this._buildUI();\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "//run the application\n"
-#| "let app = new Application ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -15902,79 +14403,6 @@ msgstr "단추 위젯은 배치를 다루는 격자의 진행 표시에 연결
#. (itstool) path: page/code
#: C/grid.js.page:29
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const GridExample = new Lang.Class ({\n"
-#| " Name: 'Grid Example',\n"
-#| "\n"
-#| " /* Create the application itself\n"
-#| " This boilerplate code is needed to build any GTK+ application. */\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jsgrid',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal initializes menus and builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Grid Example\"});\n"
-#| "\n"
-#| " // Create the grid\n"
-#| " this.Grid = new Gtk.Grid ();\n"
-#| "\n"
-#| " // Create the widgets inside the grid\n"
-#| " this.progressBar = new Gtk.ProgressBar ();\n"
-#| " this.Button = new Gtk.Button ({ label: \"Button\" });\n"
-#| " this.Button.connect (\"clicked\", Lang.bind(this, this._clickHandler));\n"
-#| "\n"
-#| " // Assemble the grid\n"
-#| " this._window.add (this.Grid);\n"
-#| " this.Grid.attach (this.Button, 1, 1, 1, 1);\n"
-#| " this.Grid.attach_next_to (this.progressBar, this.Button, Gtk.PositionType.BOTTOM, 1, 1);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " // Here's the function that says what happens when the button is clicked\n"
-#| " _clickHandler: function () {\n"
-#| " this.progressBar.pulse ();\n"
-#| " }\n"
-#| "\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new GridExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -16533,57 +14961,6 @@ msgstr "Menu를 지원하는 간단한 GtkApplicationWindow 입니다."
#. (itstool) path: page/code
#: C/GtkApplicationWindow.js.page:25
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const Application = new Lang.Class ({\n"
-#| " Name: 'Application',\n"
-#| "\n"
-#| " //create the application\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.myapp',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " //connect to 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " //create the UI (in this case it's just the ApplicationWindow\n"
-#| " _buildUI: function () {\n"
-#| " this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Welcome to GNOME\" });\n"
-#| "\n"
-#| " //uncommenting the line below will change the window size\n"
-#| " //this._window.set_default_size(600, 400);\n"
-#| "\n"
-#| " //show the window and all child widgets (none in this case)\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'activate' signal\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'startup' signal\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "//run the application\n"
-#| "let app = new Application ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
@@ -18311,7 +16688,7 @@ msgstr ""
"조율음의 재생 시간 제한을 처리할 Mainloop 생성자를 임포팅하겠습니다."
#. (itstool) path: section/title
-#: C/guitar-tuner.js.page:64 C/hello-world.js.page:59 C/hello-world.py.page:52 C/hello-world.vala.page:44
+#: C/guitar-tuner.js.page:64 C/hello-world.js.page:61 C/hello-world.py.page:52 C/hello-world.vala.page:44
#: C/weatherAppMain.js.page:49
msgid "Creating the main window for the application"
msgstr "프로그램 메인 창 만들기"
@@ -19822,36 +18199,6 @@ msgstr "HTML, CSS, JavaScript 기본 코드가 몇개 있습니다. 어디서
#. (itstool) path: section/code
#: C/hellognome.js.page:32
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "<!DOCTYPE html>\n"
-#| "<html>\n"
-#| " <head>\n"
-#| " <title>Hello, GNOME!</title>\n"
-#| "\n"
-#| " <!-- Use JavaScript to show a greeting when someone clicks the button -->\n"
-#| " <script type=\"application/javascript\">\n"
-#| " function greeting () {\n"
-#| " document.getElementById (\"greeting\").innerHTML = (\"O hai!\");\n"
-#| " }\n"
-#| " </script>\n"
-#| "\n"
-#| " <!-- Very basic CSS style using the GNOME font -->\n"
-#| " <style type=\"text/css\">\n"
-#| " body {\n"
-#| " font-face: Cantarell, sans-serif;\n"
-#| " text-align: center; }\n"
-#| " </style>\n"
-#| "\n"
-#| " </head>\n"
-#| " <body>\n"
-#| " <br /> <br />\n"
-#| " <button type=\"button\" onclick=\"greeting()\">Hello, GNOME!</button>\n"
-#| "\n"
-#| " <!-- Empty H1 element gets filled in when the button is clicked -->\n"
-#| " <h1 id=\"greeting\"></h1>\n"
-#| " </body>\n"
-#| "</html>\n"
msgid ""
"\n"
"<!DOCTYPE html>\n"
@@ -20001,12 +18348,6 @@ msgstr "그 다음 우리가 가져올 라이브러리를 그놈에게 알려야
#. (itstool) path: section/code
#: C/hellognome.js.page:85
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "const Webkit = imports.gi.WebKit;\n"
msgid ""
"\n"
"const GLib = imports.gi.GLib;\n"
@@ -20058,7 +18399,6 @@ msgstr "이제 프로그램 그 자체를 만들어보죠:"
#. (itstool) path: section/code
#: C/hellognome.js.page:98
#, no-wrap
-#| msgid "1. Hello, GNOME!"
msgid ""
"\n"
"class HelloGNOME {\n"
@@ -20078,26 +18418,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/hellognome.js.page:103
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
msgid ""
"\n"
" // Create the application itself\n"
@@ -20200,18 +18520,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/hellognome.js.page:133
#, no-wrap
-#| msgid ""
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({\n"
-#| " application: this.application,\n"
-#| " title: \"Welcome to GNOME\",\n"
-#| " default_height: 200,\n"
-#| " default_width: 400,\n"
-#| " window_position: Gtk.WindowPosition.CENTER });\n"
msgid ""
"\n"
" // Build the application's UI\n"
@@ -20435,66 +18743,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/hellognome.js.page:199
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "const Webkit = imports.gi.WebKit;\n"
-#| "\n"
-#| "const HelloGNOME = new Lang.Class ({\n"
-#| " Name: 'Hello GNOME',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ();\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({\n"
-#| " application: this.application,\n"
-#| " title: \"Welcome to GNOME\",\n"
-#| " default_height: 200,\n"
-#| " default_width: 400,\n"
-#| " window_position: Gtk.WindowPosition.CENTER });\n"
-#| "\n"
-#| " // Create a webview to show the web app\n"
-#| " this._webView = new Webkit.WebView ();\n"
-#| "\n"
-#| " // Put the web app into the webview\n"
-#| " this._webView.load_uri (GLib.filename_to_uri (GLib.get_current_dir() +\n"
-#| " \"/hellognome.html\", null));\n"
-#| "\n"
-#| " // Put the webview into the window\n"
-#| " this._window.add (this._webView);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new HelloGNOME ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -20815,15 +19063,25 @@ msgstr ""
#. (itstool) path: section/code
#: C/hello-world.js.page:54
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "#!/usr/bin/gjs\n"
+#| "\n"
+#| "imports.gi.versions.Gtk = '3.0';\n"
+#| "const Gtk = imports.gi.Gtk;\n"
msgid ""
"const Lang = imports.lang;\n"
+"\n"
+"imports.gi.versions.Gtk = '3.0'\n"
"const Gtk = imports.gi.Gtk;"
msgstr ""
"const Lang = imports.lang;\n"
+"\n"
+"imports.gi.versions.Gtk = '3.0'\n"
"const Gtk = imports.gi.Gtk;"
#. (itstool) path: section/p
-#: C/hello-world.js.page:56 C/hello-world.py.page:49
+#: C/hello-world.js.page:58 C/hello-world.py.page:49
msgid ""
"In order for our script to work with GNOME, we need to import GNOME libraries via GObject Introspection.
Here we "
"import the language bindings and GTK+, the library which contains the graphical widgets used to make GNOME "
@@ -20833,7 +19091,7 @@ msgstr ""
"서 우리는 언어 바인딩과 그놈 프로그램을 만들 때 그래픽 위젯이 들어있는 GTK+ 라이브러리를 임포팅합니다."
#. (itstool) path: section/code
-#: C/hello-world.js.page:60
+#: C/hello-world.js.page:62
#, no-wrap
msgid ""
"const Application = new Lang.Class({\n"
@@ -20899,7 +19157,7 @@ msgstr ""
"});\n"
#. (itstool) path: section/p
-#: C/hello-world.js.page:92
+#: C/hello-world.js.page:94
msgid ""
"GtkApplication initializes GTK+. It also connects the <gui>x</gui> button that's automatically generated
along "
"with the window to the \"destroy\" signal."
@@ -20908,7 +19166,7 @@ msgstr ""
"합니다."
#. (itstool) path: section/p
-#: C/hello-world.js.page:93
+#: C/hello-world.js.page:95
msgid ""
"We can start building our first window. We do this by creating a variable called <var>_window</var> and
assigning "
"it a new Gtk.ApplicationWindow."
@@ -20916,7 +19174,7 @@ msgstr ""
"첫 창 만들기로 시작하겠습니다. <var>_window</var> 변수를 만들고 Gtk.ApplicationWindow 새 객체를 할당하겠습니다."
#. (itstool) path: section/p
-#: C/hello-world.js.page:94 C/hello-world.py.page:73
+#: C/hello-world.js.page:96 C/hello-world.py.page:73
msgid ""
"We give the window a property called <var>title</var>. The title can be any string you want it to be. To be
on the "
"safe side, it's best to stick to UTF-8 encoding."
@@ -20925,19 +19183,19 @@ msgstr ""
"작성하시는게 좋습니다."
#. (itstool) path: section/p
-#: C/hello-world.js.page:95 C/hello-world.py.page:74 C/hello-world.vala.page:57
+#: C/hello-world.js.page:97 C/hello-world.py.page:74 C/hello-world.vala.page:57
msgid ""
"Now we have a window which has a title and a working \"close\" button. Let's add the actual \"Hello World\"
text."
msgstr ""
"이제 제목과 동작하는 \"닫기\" 단추가 붙은 창을 만들었습니다. 이제 실제 \"Hello World\" 문구를 찍어보겠습니다."
#. (itstool) path: section/title
-#: C/hello-world.js.page:98 C/hello-world.py.page:77 C/hello-world.vala.page:60
+#: C/hello-world.js.page:100 C/hello-world.py.page:77 C/hello-world.vala.page:60
msgid "Label for the window"
msgstr "창 레이블"
#. (itstool) path: section/code
-#: C/hello-world.js.page:99
+#: C/hello-world.js.page:101
#, no-wrap
msgid ""
"// Add a label widget to your window\n"
@@ -20951,7 +19209,7 @@ msgstr ""
"this._window.set_default_size(200, 200);"
#. (itstool) path: section/p
-#: C/hello-world.js.page:104
+#: C/hello-world.js.page:106
msgid ""
"A text label is one of the GTK+ widgets we can use, on account of having imported the GTK+ library. To use
it, we "
"create a new variable called label, and assign it a new Gtk.Label. Then we give it properties inside the
curly "
@@ -20963,7 +19221,7 @@ msgstr ""
"블 값을 유지할 문장을 설정합니다. 마지막으로 프로그램을 만들고 실행하겠습니다:"
#. (itstool) path: section/code
-#: C/hello-world.js.page:106
+#: C/hello-world.js.page:108
#, no-wrap
msgid ""
"//run the application\n"
@@ -20975,7 +19233,7 @@ msgstr ""
"app.application.run(ARGV);"
#. (itstool) path: section/p
-#: C/hello-world.js.page:110 C/hello-world.py.page:97 C/hello-world.vala.page:71
+#: C/hello-world.js.page:112 C/hello-world.py.page:97 C/hello-world.vala.page:71
msgid ""
"Gtk.ApplicationWindow can only hold one widget at a time. To construct more elaborate programs you need to
create "
"a holder widget like Gtk.Grid inside the window, and then add all the other widgets to it."
@@ -20984,57 +19242,55 @@ msgstr ""
"젯을 창 안에 만들어 넣고 그 안에 위젯을 추가해야합니다."
#. (itstool) path: section/title
-#: C/hello-world.js.page:114
+#: C/hello-world.js.page:116
msgid "hello-world.js"
msgstr "hello-world.js"
#. (itstool) path: section/p
-#: C/hello-world.js.page:115 C/hello-world.py.page:102 C/hello-world.vala.page:76
+#: C/hello-world.js.page:117 C/hello-world.py.page:102 C/hello-world.vala.page:76
msgid "The complete file:"
msgstr "완전한 파일 내용:"
#. (itstool) path: section/code
-#: C/hello-world.js.page:116
+#: C/hello-world.js.page:118
#, no-wrap
#| msgid ""
#| "#!/usr/bin/gjs\n"
#| "\n"
-#| "const Lang = imports.lang;\n"
+#| "imports.gi.versions.Gtk = '3.0'\n"
#| "const Gtk = imports.gi.Gtk;\n"
#| "\n"
-#| "const Application = new Lang.Class({\n"
-#| " //A Class requires an explicit Name parameter. This is the Class Name.\n"
-#| " Name: 'Application',\n"
+#| "class Application {\n"
#| "\n"
#| " //create the application\n"
-#| " _init: function() {\n"
+#| " constructor() {\n"
#| " this.application = new Gtk.Application();\n"
#| "\n"
#| " //connect to 'activate' and 'startup' signals to handlers.\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
+#| " this.application.connect('activate', this._onActivate.bind(this));\n"
+#| " this.application.connect('startup', this._onStartup.bind(this));\n"
+#| " }\n"
#| "\n"
#| " //create the UI\n"
-#| " _buildUI: function() {\n"
+#| " _buildUI() {\n"
#| " this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
#| " title: \"Hello World!\" });\n"
#| " this._window.set_default_size(200, 200);\n"
#| " this.label = new Gtk.Label({ label: \"Hello World\" });\n"
#| " this._window.add(this.label);\n"
-#| " },\n"
+#| " }\n"
#| "\n"
#| " //handler for 'activate' signal\n"
-#| " _onActivate: function() {\n"
+#| " _onActivate() {\n"
#| " //show the window and all child widgets\n"
#| " this._window.show_all();\n"
-#| " },\n"
+#| " }\n"
#| "\n"
#| " //handler for 'startup' signal\n"
-#| " _onStartup: function() {\n"
+#| " _onStartup() {\n"
#| " this._buildUI();\n"
#| " }\n"
-#| "});\n"
+#| "};\n"
#| "\n"
#| "//run the application\n"
#| "let app = new Application();\n"
@@ -21042,6 +19298,8 @@ msgstr "완전한 파일 내용:"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
+"const Lang = imports.lang;\n"
+"\n"
"imports.gi.versions.Gtk = '3.0'\n"
"const Gtk = imports.gi.Gtk;\n"
"\n"
@@ -21083,6 +19341,8 @@ msgid ""
msgstr ""
"#!/usr/bin/gjs\n"
"\n"
+"const Lang = imports.lang;\n"
+"\n"
"imports.gi.versions.Gtk = '3.0'\n"
"const Gtk = imports.gi.Gtk;\n"
"\n"
@@ -21123,12 +19383,12 @@ msgstr ""
"app.application.run(ARGV);\n"
#. (itstool) path: section/title
-#: C/hello-world.js.page:119 C/hello-world.py.page:106 C/hello-world.vala.page:80
+#: C/hello-world.js.page:121 C/hello-world.py.page:106 C/hello-world.vala.page:80
msgid "Running the application from terminal"
msgstr "터미널에서 프로그램 실행"
#. (itstool) path: section/p
-#: C/hello-world.js.page:120
+#: C/hello-world.js.page:122
msgid ""
"To run this application, first save it as hello-world.js. Then open Terminal, go to the folder where your "
"application is stored and run:"
@@ -21137,18 +19397,18 @@ msgstr ""
"더로 이동한 다음 실행하십시오:"
#. (itstool) path: section/screen
-#: C/hello-world.js.page:121
+#: C/hello-world.js.page:123
#, no-wrap
msgid "<output style=\"prompt\">$ </output><input>gjs hello-world.js</input>"
msgstr "<output style=\"prompt\">$ </output><input>gjs hello-world.js</input>"
#. (itstool) path: section/title
-#: C/hello-world.js.page:127 C/hello-world.py.page:112 C/hello-world.vala.page:89
+#: C/hello-world.js.page:129 C/hello-world.py.page:112 C/hello-world.vala.page:89
msgid "The <file>.desktop.in</file> file"
msgstr "<file>.desktop.in</file> 파일"
#. (itstool) path: section/p
-#: C/hello-world.js.page:128 C/hello-world.py.page:113 C/hello-world.vala.page:90
+#: C/hello-world.js.page:130 C/hello-world.py.page:113 C/hello-world.vala.page:90
msgid ""
"Running applications from the Terminal is useful at the beginning of the application making process. To
have fully "
"working <link href=\"https://developer.gnome.org/integration-guide/stable/mime.html.en\">application
integration</"
@@ -21165,7 +19425,7 @@ msgstr ""
"<file>.desktop</file> 파일을 만듭니다."
#. (itstool) path: note/p
-#: C/hello-world.js.page:131
+#: C/hello-world.js.page:133
msgid ""
"Before continuing, resave <file>hello-world.js</file> as <file>hello-world</file>. Then run this in the
command "
"line:"
@@ -21174,18 +19434,18 @@ msgstr ""
"다음 명령을 실행하십시오:"
#. (itstool) path: note/screen
-#: C/hello-world.js.page:132
+#: C/hello-world.js.page:134
#, no-wrap
msgid "<output style=\"prompt\">$ </output><input>chmod +x hello-world</input>"
msgstr "<output style=\"prompt\">$ </output><input>chmod +x hello-world</input>"
#. (itstool) path: section/p
-#: C/hello-world.js.page:135 C/hello-world.py.page:115 C/hello-world.vala.page:92
+#: C/hello-world.js.page:137 C/hello-world.py.page:115 C/hello-world.vala.page:92
msgid "The example shows you the minimum requirements for a <code>.desktop.in</code> file."
msgstr "예제에서는 <code>.desktop.in</code> 파일에서 최소한 필요한 내용을 보여줍니다."
#. (itstool) path: section/code
-#: C/hello-world.js.page:136 C/hello-world.py.page:116 C/hello-world.vala.page:93
+#: C/hello-world.js.page:138 C/hello-world.py.page:116 C/hello-world.vala.page:93
#, no-wrap
msgid ""
"[Desktop Entry]\n"
@@ -21213,39 +19473,43 @@ msgstr ""
"Categories=GNOME;GTK;Utility;\n"
#. (itstool) path: section/p
-#: C/hello-world.js.page:138 C/hello-world.py.page:118 C/hello-world.vala.page:95
-msgid "Now let's go through some parts of the <code>.desktop.in</code> file."
-msgstr "이제 <code>.desktop.in</code> 파일 부분으로 들어가보겠습니다."
+#: C/hello-world.js.page:140
+msgid ""
+"Save this as <file>hello-world.desktop.in</file>. Now let's go through some parts of the
<code>.desktop.in</code> "
+"file."
+msgstr ""
+"이 내용을 <file>hello-world.desktop.in</file> 파일로 저장하십시오. 이제 <code>.desktop.in</code> 파일 부분으로 들"
+"어가보겠습니다."
#. (itstool) path: item/title
#. (itstool) path: td/p
-#: C/hello-world.js.page:140 C/hello-world.py.page:120 C/hello-world.vala.page:97
C/toolbar_builder.py.page:95
+#: C/hello-world.js.page:142 C/hello-world.py.page:120 C/hello-world.vala.page:97
C/toolbar_builder.py.page:95
#: C/toolbar_builder.vala.page:78
msgid "Name"
msgstr "Name"
#. (itstool) path: item/p
-#: C/hello-world.js.page:140 C/hello-world.py.page:120 C/hello-world.vala.page:97
+#: C/hello-world.js.page:142 C/hello-world.py.page:120 C/hello-world.vala.page:97
msgid "The application name."
msgstr "프로그램 이름입니다."
#. (itstool) path: item/title
-#: C/hello-world.js.page:141 C/hello-world.py.page:121 C/hello-world.vala.page:98
+#: C/hello-world.js.page:143 C/hello-world.py.page:121 C/hello-world.vala.page:98
msgid "Comment"
msgstr "Comment"
#. (itstool) path: item/p
-#: C/hello-world.js.page:141 C/hello-world.py.page:121 C/hello-world.vala.page:98
+#: C/hello-world.js.page:143 C/hello-world.py.page:121 C/hello-world.vala.page:98
msgid "A short description of the application."
msgstr "프로그램의 간단한 설명입니다."
#. (itstool) path: item/title
-#: C/hello-world.js.page:142 C/hello-world.py.page:122 C/hello-world.vala.page:99
+#: C/hello-world.js.page:144 C/hello-world.py.page:122 C/hello-world.vala.page:99
msgid "Exec"
msgstr "Exec"
#. (itstool) path: item/p
-#: C/hello-world.js.page:142 C/hello-world.py.page:122 C/hello-world.vala.page:99
+#: C/hello-world.js.page:144 C/hello-world.py.page:122 C/hello-world.vala.page:99
msgid ""
"Specifies a command to execute when you choose the application from the menu. In this example exec just
tells "
"where to find the <file>hello-world</file> file and the file takes care of the rest."
@@ -21254,17 +19518,17 @@ msgstr ""
"지 알려주며 파일을 다루는 방식은 나머지 부분에서 다룹니다."
#. (itstool) path: item/title
-#: C/hello-world.js.page:143 C/hello-world.py.page:123 C/hello-world.vala.page:100
+#: C/hello-world.js.page:145 C/hello-world.py.page:123 C/hello-world.vala.page:100
msgid "Terminal"
msgstr "Terminal"
#. (itstool) path: item/p
-#: C/hello-world.js.page:143 C/hello-world.py.page:123 C/hello-world.vala.page:100
+#: C/hello-world.js.page:145 C/hello-world.py.page:123 C/hello-world.vala.page:100
msgid "Specifies whether the command in the Exec key runs in a terminal window."
msgstr "Exec 키의 명령을 터미널 창에서 실행할 지 여부를 지정합니다."
#. (itstool) path: section/p
-#: C/hello-world.js.page:146 C/hello-world.py.page:126 C/hello-world.vala.page:103
+#: C/hello-world.js.page:148 C/hello-world.py.page:126 C/hello-world.vala.page:103
msgid ""
"To put your application into the appropriate category, you need to add the necessary categories to the
Categories "
"line. More information on the different categories can be found in the <link
href=\"http://standards.freedesktop."
@@ -21274,7 +19538,7 @@ msgstr ""
"는 <link href=\"http://standards.freedesktop.org/menu-spec/latest/apa.html\">메뉴 명세</link>에 있습니다."
#. (itstool) path: section/p
-#: C/hello-world.js.page:147 C/hello-world.py.page:127 C/hello-world.vala.page:104
+#: C/hello-world.js.page:149 C/hello-world.py.page:127 C/hello-world.vala.page:104
msgid ""
"In this example we use an existing icon. For a custom icon you need to have a .svg file of your icon,
stored in "
"<file>/usr/share/icons/hicolor/scalable/apps</file>. Write the name of your icon file to the .desktop.in
file, on "
@@ -21289,12 +19553,12 @@ msgstr ""
"icon-theme-spec</link>에 있습니다."
#. (itstool) path: section/title
-#: C/hello-world.js.page:150 C/hello-world.py.page:130 C/hello-world.vala.page:107
+#: C/hello-world.js.page:152 C/hello-world.py.page:130 C/hello-world.vala.page:107
msgid "The build system"
msgstr "빌드 시스템"
#. (itstool) path: section/p
-#: C/hello-world.js.page:151 C/hello-world.py.page:131 C/hello-world.vala.page:108
+#: C/hello-world.js.page:153 C/hello-world.py.page:131 C/hello-world.vala.page:108
msgid ""
"To make your application truly a part of the GNOME 3 system you need to install it with the help of
autotools. The "
"autotools build will install all the necessary files to all the right places."
@@ -21303,20 +19567,20 @@ msgstr ""
"올바른 경로에 설치합니다."
#. (itstool) path: section/p
-#: C/hello-world.js.page:152 C/hello-world.py.page:132 C/hello-world.vala.page:109
+#: C/hello-world.js.page:154 C/hello-world.py.page:132 C/hello-world.vala.page:109
msgid "For this you need to have the following files:"
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/hello-world.js.page:157 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"
#. (itstool) path: section/code
-#: C/hello-world.js.page:156 C/hello-world.py.page:136 C/hello-world.vala.page:113
+#: C/hello-world.js.page:158 C/hello-world.py.page:136 C/hello-world.vala.page:113
#, no-wrap
msgid ""
"#!/bin/sh\n"
@@ -21358,12 +19622,12 @@ msgstr ""
"fi\n"
#. (itstool) path: section/p
-#: C/hello-world.js.page:158 C/hello-world.py.page:138 C/hello-world.vala.page:115
+#: C/hello-world.js.page:160 C/hello-world.py.page:138 C/hello-world.vala.page:115
msgid "After the <file>autogen.sh</file> file is ready and saved, run:"
msgstr "<file>autogen.sh</file> 파일을 준비했고 저장하고 나면, 다음을 실행하십시오:"
#. (itstool) path: section/screen
-#: C/hello-world.js.page:159 C/hello-world.py.page:139 C/hello-world.vala.page:116
+#: C/hello-world.js.page:161 C/hello-world.py.page:139 C/hello-world.vala.page:116
#, no-wrap
msgid "<output style=\"prompt\">$ </output><input>chmod +x autogen.sh</input>"
msgstr "<output style=\"prompt\">$ </output><input>chmod +x autogen.sh</input>"
@@ -21371,13 +19635,13 @@ msgstr "<output style=\"prompt\">$ </output><input>chmod +x autogen.sh</input>"
#. (itstool) path: section/title
#. (itstool) path: item/p
#. (itstool) path: section/p
-#: C/hello-world.js.page:163 C/hello-world.py.page:143 C/hello-world.vala.page:120
C/weatherAutotools.js.page:38
+#: C/hello-world.js.page:165 C/hello-world.py.page:143 C/hello-world.vala.page:120
C/weatherAutotools.js.page:38
#: C/weatherAutotools.js.page:64
msgid "Makefile.am"
msgstr "Makefile.am"
#. (itstool) path: section/code
-#: C/hello-world.js.page:164
+#: C/hello-world.js.page:166
#, no-wrap
msgid ""
"# The actual runnable program is set to the SCRIPTS primitive.\n"
@@ -21407,13 +19671,13 @@ msgstr ""
#. (itstool) path: section/title
#. (itstool) path: item/p
#. (itstool) path: section/p
-#: C/hello-world.js.page:168 C/hello-world.py.page:148 C/hello-world.vala.page:125
C/weatherAutotools.js.page:39
+#: C/hello-world.js.page:170 C/hello-world.py.page:148 C/hello-world.vala.page:125
C/weatherAutotools.js.page:39
#: C/weatherAutotools.js.page:131
msgid "configure.ac"
msgstr "configure.ac"
#. (itstool) path: section/code
-#: C/hello-world.js.page:169 C/hello-world.py.page:149
+#: C/hello-world.js.page:171 C/hello-world.py.page:149
#, no-wrap
msgid ""
"# This file is processed by autoconf to create a configure script\n"
@@ -21429,38 +19693,41 @@ msgstr ""
"AC_OUTPUT\n"
#. (itstool) path: section/title
-#: C/hello-world.js.page:173 C/hello-world.py.page:153 C/hello-world.vala.page:130
+#: C/hello-world.js.page:175 C/hello-world.py.page:153 C/hello-world.vala.page:130
msgid "README"
msgstr "README"
#. (itstool) path: section/p
-#: C/hello-world.js.page:174 C/hello-world.py.page:154 C/hello-world.vala.page:131
+#: C/hello-world.js.page:176 C/hello-world.py.page:154 C/hello-world.vala.page:131
msgid "Information users should read first. This file can be blank."
msgstr "사용자가 우선 읽어야 할 내용입니다. 이 파일은 비워둘 수 있습니다."
#. (itstool) path: section/p
-#: C/hello-world.js.page:176 C/hello-world.py.page:156
+#: C/hello-world.js.page:178
msgid ""
"When you have the <file>hello-world</file>, <file>hello-world.desktop.in</file>, <file>Makefile.am</file>, "
-"<file>configure.ac</file> and <file>autogen.sh</file> files with correct information and rights, the
<file>README</"
-"file> file can include the following instructions:"
+"<file>configure.ac</file> and <file>autogen.sh</file> files with correct information and permissions,
create a "
+"<file>README</file> file with installation instructions. Below is a sample of what suitable README
instructions "
+"may look like:"
msgstr ""
-"올바른 내용을 넣고 권한을 설정한 <file>hello-world</file>, <file>hello-world.desktop.in</file>, <file>Makefile.am</"
-"file>, <file>configure.ac</file>, <file>autogen.sh</file> 파일을 갖췄다면, <file>README</file> 파일에 다음 내용을 "
-"넣을 수 있습니다:"
+"올바른 정보와 권한을 설정한 <file>hello-world</file>, <file>hello-world.desktop.in</file>, <file>Makefile.am</"
+"file>, <file>configure.ac</file>, <file>autogen.sh</file> 파일을 갖추고 나면, <file>README</file> 파일을 만들어 설"
+"치 방법을 적어 넣으십시오. README에 적당한 절차 내용을 넣은 예제를 아래에 보여드리겠습니다:"
# 전 세계 사람이 볼 README 파일이므로 굳이 번역하지 않아도 된다. 역자 주.
#. (itstool) path: section/code
-#: C/hello-world.js.page:177 C/hello-world.py.page:157
+#: C/hello-world.js.page:179
#, no-wrap
msgid ""
-"To build and install this program:\n"
+"To build and install this program, run these commands from a terminal:\n"
"\n"
-"./autogen.sh --prefix=/home/your_username/.local\n"
+"./autogen.sh --prefix=/home/$USER/.local\n"
"make install\n"
"\n"
"-------------\n"
-"Running the first line above creates the following files:\n"
+"When running the first command $USER will be replaced by your username.\n"
+"\n"
+"Running the first command above creates the following files:\n"
"\n"
"aclocal.m4\n"
"autom4te.cache\n"
@@ -21490,13 +19757,15 @@ msgid ""
"\n"
"This will create hello-world-1.0.tar.xz\n"
msgstr ""
-"To build and install this program:\n"
+"이 프로그램을 빌드하고 설치하려면, 아래 명령을 터미널에서 실행하십시오:\n"
"\n"
-"./autogen.sh --prefix=/home/your_username/.local\n"
+"./autogen.sh --prefix=/home/$USER/.local\n"
"make install\n"
"\n"
"-------------\n"
-"Running the first line above creates the following files:\n"
+"처음 명령을 실행할 때 $USER 는 사용자 이름으로 바뀝니다.\n"
+"\n"
+"위 처음 명령을 실행하면 아래 파일을 만듭니다:\n"
"\n"
"aclocal.m4\n"
"autom4te.cache\n"
@@ -21509,22 +19778,22 @@ msgstr ""
"Makefile.in\n"
"Makefile\n"
"\n"
-"Running \"make install\", installs the application in /home/your_username/.local/bin\n"
-"and installs the hello-world.desktop file in /home/your_username/.local/share/applications\n"
+"\"make install\"을 실행하면, /home/your_username/.local/bin 경로에 프로그램을 설치하며\n"
+"/home/your_username/.local/share/applications 경로에 hello-world.desktop 파일을 설치합니다\n"
"\n"
-"You can now run the application by typing \"Hello World\" in the Overview.\n"
+"이제 개요에서 \"Hello World\"를 입력하면 프로그램을 실행할 수 있습니다.\n"
"\n"
"----------------\n"
-"To uninstall, type:\n"
+"설치한 프로그램을 제거하려면:\n"
"\n"
"make uninstall\n"
"\n"
"----------------\n"
-"To create a tarball type:\n"
+"타르볼 파일을 만들려면:\n"
"\n"
"make distcheck\n"
"\n"
-"This will create hello-world-1.0.tar.xz\n"
+"위 명령은 hello-world-1.0.tar.xz 파일을 만듭니다\n"
#. (itstool) path: info/title
#: C/hello-world.py.page:9
@@ -21751,6 +20020,11 @@ msgstr ""
msgid "<output style=\"prompt\">$ </output><input>python hello-world.py</input>"
msgstr "<output style=\"prompt\">$ </output><input>python hello-world.py</input>"
+#. (itstool) path: section/p
+#: C/hello-world.py.page:118 C/hello-world.vala.page:95
+msgid "Now let's go through some parts of the <code>.desktop.in</code> file."
+msgstr "이제 <code>.desktop.in</code> 파일 부분으로 들어가보겠습니다."
+
#. (itstool) path: section/code
#: C/hello-world.py.page:144
#, no-wrap
@@ -21779,6 +20053,94 @@ msgstr ""
"desktop_DATA = \\\n"
"\thello-world.desktop\n"
+#. (itstool) path: section/p
+#: C/hello-world.py.page:156
+msgid ""
+"When you have the <file>hello-world</file>, <file>hello-world.desktop.in</file>, <file>Makefile.am</file>, "
+"<file>configure.ac</file> and <file>autogen.sh</file> files with correct information and rights, the
<file>README</"
+"file> file can include the following instructions:"
+msgstr ""
+"올바른 내용을 넣고 권한을 설정한 <file>hello-world</file>, <file>hello-world.desktop.in</file>, <file>Makefile.am</"
+"file>, <file>configure.ac</file>, <file>autogen.sh</file> 파일을 갖췄다면, <file>README</file> 파일에 다음 내용을 "
+"넣을 수 있습니다:"
+
+# 전 세계 사람이 볼 README 파일이므로 굳이 번역하지 않아도 된다. 역자 주.
+#. (itstool) path: section/code
+#: C/hello-world.py.page:157
+#, no-wrap
+msgid ""
+"To build and install this program:\n"
+"\n"
+"./autogen.sh --prefix=/home/your_username/.local\n"
+"make install\n"
+"\n"
+"-------------\n"
+"Running the first line above creates the following files:\n"
+"\n"
+"aclocal.m4\n"
+"autom4te.cache\n"
+"config.log\n"
+"config.status\n"
+"configure\n"
+"hello-world.desktop\n"
+"install-sh\n"
+"missing\n"
+"Makefile.in\n"
+"Makefile\n"
+"\n"
+"Running \"make install\", installs the application in /home/your_username/.local/bin\n"
+"and installs the hello-world.desktop file in /home/your_username/.local/share/applications\n"
+"\n"
+"You can now run the application by typing \"Hello World\" in the Overview.\n"
+"\n"
+"----------------\n"
+"To uninstall, type:\n"
+"\n"
+"make uninstall\n"
+"\n"
+"----------------\n"
+"To create a tarball type:\n"
+"\n"
+"make distcheck\n"
+"\n"
+"This will create hello-world-1.0.tar.xz\n"
+msgstr ""
+"To build and install this program:\n"
+"\n"
+"./autogen.sh --prefix=/home/your_username/.local\n"
+"make install\n"
+"\n"
+"-------------\n"
+"Running the first line above creates the following files:\n"
+"\n"
+"aclocal.m4\n"
+"autom4te.cache\n"
+"config.log\n"
+"config.status\n"
+"configure\n"
+"hello-world.desktop\n"
+"install-sh\n"
+"missing\n"
+"Makefile.in\n"
+"Makefile\n"
+"\n"
+"Running \"make install\", installs the application in /home/your_username/.local/bin\n"
+"and installs the hello-world.desktop file in /home/your_username/.local/share/applications\n"
+"\n"
+"You can now run the application by typing \"Hello World\" in the Overview.\n"
+"\n"
+"----------------\n"
+"To uninstall, type:\n"
+"\n"
+"make uninstall\n"
+"\n"
+"----------------\n"
+"To create a tarball type:\n"
+"\n"
+"make distcheck\n"
+"\n"
+"This will create hello-world-1.0.tar.xz\n"
+
#. (itstool) path: info/title
#: C/hello-world.vala.page:9
msgctxt "text"
@@ -22215,67 +20577,6 @@ msgstr "Image (JavaScript)"
#. (itstool) path: page/code
#: C/image.js.page:27
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const LabelExample = new Lang.Class ({\n"
-#| " Name: 'Label Example',\n"
-#| "\n"
-#| " /* Create the application itself\n"
-#| " This boilerplate code is needed to build any GTK+ application. */\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jslabel',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal initializes menus and builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position:
Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Welcome to GNOME\",\n"
-#| " default_height: 100,\n"
-#| " default_width: 200 });\n"
-#| "\n"
-#| " // Create the label\n"
-#| " this.label = new Gtk.Label ({label: \"Hello GNOME!\"});\n"
-#| " this._window.add (this.label);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " }\n"
-#| "\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new LabelExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -25699,67 +24000,6 @@ msgstr "친근한 메시지를 나타내는 레이블입니다."
#. (itstool) path: page/code
#: C/label.js.page:25
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const LabelExample = new Lang.Class ({\n"
-#| " Name: 'Label Example',\n"
-#| "\n"
-#| " /* Create the application itself\n"
-#| " This boilerplate code is needed to build any GTK+ application. */\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jslabel',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal initializes menus and builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position:
Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Welcome to GNOME\",\n"
-#| " default_height: 100,\n"
-#| " default_width: 200 });\n"
-#| "\n"
-#| " // Create the label\n"
-#| " this.label = new Gtk.Label ({label: \"Hello GNOME!\"});\n"
-#| " this._window.add (this.label);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " }\n"
-#| "\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new LabelExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -26022,12 +24262,6 @@ msgstr ""
#. (itstool) path: item/code
#: C/label.py.page:92
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "label.set_markup(\"Text can be <small>small</small>, <big>big</big>, \"\n"
-#| " \"<b>bold</b>, <i>italic</i> and even point to somewhere \"\n"
-#| " \"in the <a href=\\\"http://www.gtk.org\\\" \"\n"
-#| " \"title=\\\"Click to find out more\\\">internets</a>.\")"
msgid ""
"\n"
"label.set_markup(\"Text can be <small>small</small>, <big>big</big>, \"\n"
@@ -26346,62 +24580,6 @@ msgstr "live.gnome.org에 연결한 단추입니다."
#. (itstool) path: page/code
#: C/linkbutton.js.page:25
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const LinkButtonExample = new Lang.Class ({\n"
-#| " Name: 'LinkButton Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jslinkbutton',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal initializes menus and builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"GNOME LinkButton\",\n"
-#| " default_height: 50,\n"
-#| " default_width: 250 });\n"
-#| "\n"
-#| " // Create the LinkButton and have it link to live.gnome.org\n"
-#| " this.LinkButton = new Gtk.LinkButton ({label: \"Link to GNOME live!\",\n"
-#| " uri: \"http://live.gnome.org\"});\n"
-#| " this._window.add (this.LinkButton);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new LinkButtonExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -29594,113 +27772,6 @@ msgstr "Anna Zacchi"
#. (itstool) path: page/code
#: C/menubutton.js.page:28
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const Application = new Lang.Class ({\n"
-#| " Name: 'Application',\n"
-#| "\n"
-#| " //create the application\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application ({ application_id: 'org.example.myapp',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE });\n"
-#| "\n"
-#| " //connect to 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " //create the UI (in this case it's just the ApplicationWindow)\n"
-#| " _buildUI: function() {\n"
-#| " this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"MenuButton Example\" });\n"
-#| " this._window.set_default_size(600, 400);\n"
-#| " this.grid = new Gtk.Grid();\n"
-#| " this._window.add(this.grid);\n"
-#| "\n"
-#| "\n"
-#| " this._menuButton = new Gtk.MenuButton();\n"
-#| " this.grid.attach(this._menuButton, 0, 0, 1, 1 );\n"
-#| " this.menu = new Gtk.Menu.new_from_model(this.menuModel);\n"
-#| "\n"
-#| " this.menu.show();\n"
-#| " this._menuButton.set_menu_model (this.menuModel);\n"
-#| " this._menuButton.set_size_request(80, 35);\n"
-#| " this._menuButton.show();\n"
-#| "\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| " _showNew: function() {\n"
-#| " print(\"You clicked \\\"New\\\"\");\n"
-#| " },\n"
-#| "\n"
-#| " _showAbout: function() {\n"
-#| " print(\"You clicked \\\"About\\\"\");\n"
-#| " },\n"
-#| "\n"
-#| " //create the menu items and connect the signals to the callback functions.\n"
-#| " _initMenus: function() {\n"
-#| " let newAction = new Gio.SimpleAction({ name: 'new' });\n"
-#| " newAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._showNew();\n"
-#| " }));\n"
-#| " this.application.add_action(newAction);\n"
-#| "\n"
-#| " let aboutAction = new Gio.SimpleAction({ name: 'about' });\n"
-#| " aboutAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._showAbout();\n"
-#| " }));\n"
-#| " this.application.add_action(aboutAction);\n"
-#| "\n"
-#| " let quitAction = new Gio.SimpleAction({ name: 'quit' });\n"
-#| " quitAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._window.destroy();\n"
-#| " }));\n"
-#| " this.application.add_action(quitAction);\n"
-#| "\n"
-#| " this.menuModel = new Gio.Menu();\n"
-#| "\n"
-#| " this.menuItemNew = Gio.MenuItem.new(\"New\", 'app.new');\n"
-#| " this.menuItemAbout = Gio.MenuItem.new(\"About\", 'app.about');\n"
-#| " this.fileMenuItem = Gio.MenuItem.new(\"Other\", null);\n"
-#| "\n"
-#| " this.menuModel.append_item(this.menuItemNew);\n"
-#| " this.menuModel.append_item(this.menuItemAbout);\n"
-#| "\n"
-#| " //submenu\n"
-#| " this.subMenu = new Gio.Menu();\n"
-#| " this.fileMenuItem.set_submenu(this.subMenu);\n"
-#| " this.menuItemQuit = Gio.MenuItem.new(\"Quit\", 'app.quit');\n"
-#| " this.subMenu.append_item(this.menuItemQuit);\n"
-#| " this.menuModel.append_item(this.fileMenuItem);\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'activate' signal\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'startup' signal\n"
-#| " _onStartup: function() {\n"
-#| " //You must call _initMenus() before calling _buildUI().\n"
-#| " this._initMenus();\n"
-#| " this._buildUI();\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "//run the application\n"
-#| "let app = new Application();\n"
-#| "app.application.run(ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -31796,129 +29867,6 @@ msgstr "마지막으로 작성을 끝낸 MessageDialogExample 클래스의 새
#. (itstool) path: section/code
#: C/messagedialog.js.page:185
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const MessageDialogExample = new Lang.Class ({\n"
-#| " Name: 'MessageDialog Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jsmessagedialog',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal initializes menus and builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._initMenus();\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Gtk.MessageDialog Example\",\n"
-#| " default_height: 200,\n"
-#| " default_width: 400 });\n"
-#| "\n"
-#| " // Create a silly warning message and add it to the window\n"
-#| " this.warningLabel = new Gtk.Label ({\n"
-#| " label: \"This application goes boom! (Not really.)\"});\n"
-#| " this._window.add (this.warningLabel);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application menu, including the button that calls the dialog\n"
-#| " _initMenus: function() {\n"
-#| " let menu = new Gio.Menu();\n"
-#| " menu.append(\"Message\",'app.message');\n"
-#| " menu.append(\"Quit\",'app.quit');\n"
-#| " this.application.set_app_menu(menu);\n"
-#| "\n"
-#| " // This pops up a MessageDialog when \"Message\" is clicked in the menu\n"
-#| " let messageAction = new Gio.SimpleAction ({ name: 'message' });\n"
-#| " messageAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._showMessageDialog();\n"
-#| " }));\n"
-#| " this.application.add_action(messageAction);\n"
-#| "\n"
-#| " // This closes the window when \"Quit\" is clicked in the menu\n"
-#| " let quitAction = new Gio.SimpleAction ({ name: 'quit' });\n"
-#| " quitAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._window.destroy();\n"
-#| " }));\n"
-#| " this.application.add_action(quitAction);\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _showMessageDialog: function () {\n"
-#| "\n"
-#| " // Create a modal MessageDialog whose parent is the window\n"
-#| " this._messageDialog = new Gtk.MessageDialog ({\n"
-#| " transient_for: this._window,\n"
-#| " modal: true,\n"
-#| " buttons: Gtk.ButtonsType.OK_CANCEL,\n"
-#| " message_type: Gtk.MessageType.WARNING,\n"
-#| " text: \"This action will cause the universe to stop existing.\" });\n"
-#| "\n"
-#| " this._messageDialog.connect ('response', Lang.bind(this, this._response_cb));\n"
-#| " this._messageDialog.show();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Callback function (aka signal handler) for the response signal\n"
-#| " _response_cb: function (messagedialog, response_id) {\n"
-#| "\n"
-#| " // A simple switch that changes the main window's label\n"
-#| " switch (response_id) {\n"
-#| " case Gtk.ResponseType.OK:\n"
-#| " this.warningLabel.set_label (\"*BOOM*\\n\");\n"
-#| " break;\n"
-#| " case Gtk.ResponseType.CANCEL:\n"
-#| " this.warningLabel.set_label (\"Good choice!\\n\");\n"
-#| " break;\n"
-#| " case Gtk.ResponseType.DELETE_EVENT:\n"
-#| " this.warningLabel.set_label (\"Dialog closed or cancelled.\\n\");\n"
-#| " break;\n"
-#| " }\n"
-#| "\n"
-#| " this._messageDialog.destroy();\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new MessageDialogExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -33367,68 +31315,6 @@ msgstr "Paned (JavaScript)"
#. (itstool) path: section/code
#: C/paned.js.page:29
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const PanedExample = new Lang.Class ({\n"
-#| " Name: 'Paned Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application({ application_id: 'org.example.panedexample' });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
-#| " this.window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| " // Create the application window\n"
-#| " this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Paned Window Example\",\n"
-#| " default_width: 450,\n"
-#| " default_height: 350,\n"
-#| " border_width: 10 });\n"
-#| "\n"
-#| " // a new widget with two adjustable panes,\n"
-#| " // one on the left and one on the right\n"
-#| " this.paned = Gtk.Paned.new(Gtk.Orientation.HORIZONTAL);\n"
-#| "\n"
-#| " // two images\n"
-#| " this.image1 = new Gtk.Image();\n"
-#| " this.image1.set_from_file(\"gnome-image.png\");\n"
-#| " this.image2 = new Gtk.Image();\n"
-#| " this.image2.set_from_file(\"tux.png\");\n"
-#| "\n"
-#| " // add the first image to the left pane\n"
-#| " this.paned.add1(this.image1);\n"
-#| " // add the second image to the right pane\n"
-#| " this.paned.add2(this.image2)\n"
-#| "\n"
-#| " // add the panes to the window\n"
-#| " this.window.add(this.paned)\n"
-#| " this.window.show_all();\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new PanedExample();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -34931,88 +32817,6 @@ msgstr "이 ProgressBar는 어떤 키든 눌렀을 때 동작을 멈추거나
#. (itstool) path: page/code
#: C/progressbar.js.page:34
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const ProgressBarExample = new Lang.Class({\n"
-#| " Name: 'ProgressBar Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jsprogressbar',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 20,\n"
-#| " default_width: 220,\n"
-#| " title: \"ProgressBar Example\"});\n"
-#| "\n"
-#| " // Create the progress bar\n"
-#| " this.progressBar = new Gtk.ProgressBar ();\n"
-#| " this._window.add(this.progressBar);\n"
-#| "\n"
-#| " // Start the function that pulses the bar every 100 milliseconds\n"
-#| " this.sourceID = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 100, Lang.bind(this, this._barPulse));\n"
-#| "\n"
-#| " // Connect a keypress event to the function that toggles the bar to start or stop pulsing\n"
-#| " this._window.connect(\"key-press-event\", Lang.bind(this, this._onKeyPress));\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Pulse the progressbar (unless it has been disabled by a keypress)\n"
-#| " _barPulse: function() {\n"
-#| " this.progressBar.pulse();\n"
-#| " return true;\n"
-#| " },\n"
-#| "\n"
-#| " // Start or stop the progressbar when a key is pressed\n"
-#| " _onKeyPress: function() {\n"
-#| " if (this.sourceID == 0)\n"
-#| " this.sourceID = GLib.timeout_add(GLib.PRIORITY_DEFAULT, 100, Lang.bind(this,
this._barPulse));\n"
-#| " else {\n"
-#| " GLib.source_remove(this.sourceID);\n"
-#| " this.sourceID = 0;\n"
-#| " }\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new ProgressBarExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -35482,8 +33286,8 @@ msgid ""
msgstr ""
"<em>속성</em>은 설정과 위젯 상태를 설명합니다. 각 위젯에는 몇가지 특별한 속성 모음이 있습니다. 예를 들어 단추 같은 "
"위젯에는 위젯 텍스트를 넣을 수 있는 <code>label</code> 속성이 있습니다. 위젯 인스턴스를 만들 때 키워드 인자로 여러"
-"가지 프로퍼티의 이름과 값을 지정할 수 있습니다. 예를 들어, “Hello world” 레이블을 25도 기울여서 오른쪽 정렬 상태"
-"로 만들려면:"
+"가지 프로퍼티의 이름과 값을 지정할 수 있습니다. 예를 들어, “Hello world” 레이블을 25도 기울여서 오른쪽 정렬 상태로 "
+"만들려면:"
#. (itstool) path: section/code
#: C/properties.py.page:41
@@ -36399,195 +34203,6 @@ msgstr "마지막으로, 마무리 지은 RadioButtonExample 클래스의 새
#. (itstool) path: section/code
#: C/radiobutton.js.page:270
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const RadioButtonExample = new Lang.Class({\n"
-#| " Name: 'RadioButton Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jsradiobutton',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " border_width: 20,\n"
-#| " title: \"Travel Planning\"});\n"
-#| "\n"
-#| " // Create a label for the first group of buttons\n"
-#| " this._placeLabel = new Gtk.Label ({label: \"Where would you like to travel to?\"});\n"
-#| "\n"
-#| " // Create three radio buttons three different ways\n"
-#| " this._place1 = new Gtk.RadioButton ({label: \"The Beach\"});\n"
-#| "\n"
-#| " this._place2 = Gtk.RadioButton.new_from_widget (this._place1);\n"
-#| " this._place2.set_label (\"The Moon\");\n"
-#| "\n"
-#| " this._place3 = Gtk.RadioButton.new_with_label_from_widget (this._place1, \"Antarctica\");\n"
-#| " // this._place3.set_active (true);\n"
-#| "\n"
-#| " // Create a label for the second group of buttons\n"
-#| " this._thingLabel = new Gtk.Label ({label: \"And what would you like to bring?\" });\n"
-#| "\n"
-#| " // Create three more radio buttons\n"
-#| " this._thing1 = new Gtk.RadioButton ({label: \"Penguins\" });\n"
-#| " this._thing2 = new Gtk.RadioButton ({label: \"Sunscreen\", group: this._thing1 });\n"
-#| " this._thing3 = new Gtk.RadioButton ({label: \"A spacesuit\", group: this._thing1 });\n"
-#| "\n"
-#| " // Create a stock OK button\n"
-#| " this._okButton = new Gtk.Button ({\n"
-#| " label: 'gtk-ok',\n"
-#| " use_stock: 'true',\n"
-#| " halign: Gtk.Align.END });\n"
-#| "\n"
-#| " // Connect the button to the function which handles clicking it\n"
-#| " this._okButton.connect ('clicked', Lang.bind (this, this._okClicked));\n"
-#| "\n"
-#| " // Create a grid to put the \"place\" items in\n"
-#| " this._places = new Gtk.Grid ();\n"
-#| "\n"
-#| " // Attach the \"place\" items to the grid\n"
-#| " this._places.attach (this._placeLabel, 0, 0, 1, 1);\n"
-#| " this._places.attach (this._place1, 0, 1, 1, 1);\n"
-#| " this._places.attach (this._place2, 0, 2, 1, 1);\n"
-#| " this._places.attach (this._place3, 0, 3, 1, 1);\n"
-#| "\n"
-#| " // Create a grid to put the \"thing\" items in\n"
-#| " this._things = new Gtk.Grid ({ margin_top: 50 });\n"
-#| "\n"
-#| " // Attach the \"thing\" items to the grid\n"
-#| " this._things.attach (this._thingLabel, 0, 0, 1, 1);\n"
-#| " this._things.attach (this._thing1, 0, 1, 1, 1);\n"
-#| " this._things.attach (this._thing2, 0, 2, 1, 1);\n"
-#| " this._things.attach (this._thing3, 0, 3, 1, 1);\n"
-#| "\n"
-#| " // Create a grid to put everything in\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " margin_left: 40,\n"
-#| " margin_right: 50 });\n"
-#| "\n"
-#| " // Attach everything to the grid\n"
-#| " this._grid.attach (this._places, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._things, 0, 1, 1, 1);\n"
-#| " this._grid.attach (this._okButton, 0, 2, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _okClicked: function () {\n"
-#| "\n"
-#| " // Create a popup that shows a silly message\n"
-#| " this._travel = new Gtk.MessageDialog ({\n"
-#| " transient_for: this._window,\n"
-#| " modal: true,\n"
-#| " message_type: Gtk.MessageType.OTHER,\n"
-#| " buttons: Gtk.ButtonsType.OK,\n"
-#| " text: this._messageText() });\n"
-#| "\n"
-#| " // Show the popup\n"
-#| " this._travel.show();\n"
-#| "\n"
-#| " // Bind the OK button to the function that closes the popup\n"
-#| " this._travel.connect (\"response\", Lang.bind (this, this._clearTravelPopUp));\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _messageText: function() {\n"
-#| "\n"
-#| " // Create a silly message for the popup depending on what you selected\n"
-#| " var stringMessage = \"\";\n"
-#| "\n"
-#| " if (this._place1.get_active()) {\n"
-#| "\n"
-#| " if (this._thing1.get_active())\n"
-#| " stringMessage = \"Penguins love the beach, too!\";\n"
-#| "\n"
-#| " else if (this._thing2.get_active())\n"
-#| " stringMessage = \"Make sure to put on that sunscreen!\";\n"
-#| "\n"
-#| " else stringMessage = \"Are you going to the beach in space?\";\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " else if (this._place2.get_active()) {\n"
-#| "\n"
-#| " if (this._thing1.get_active())\n"
-#| " stringMessage = \"The penguins will take over the moon!\";\n"
-#| "\n"
-#| " else if (this._thing2.get_active())\n"
-#| " stringMessage = \"A lack of sunscreen will be the least of your problems!\";\n"
-#| "\n"
-#| " else stringMessage = \"You'll probably want a spaceship, too!\";\n"
-#| " }\n"
-#| "\n"
-#| " else if (this._place3.get_active()) {\n"
-#| "\n"
-#| " if (this._thing1.get_active())\n"
-#| " stringMessage = \"The penguins will be happy to be back home!\";\n"
-#| "\n"
-#| " else if (this._thing2.get_active())\n"
-#| " stringMessage = \"Antarctic sunbathing may be hazardous to your health!\";\n"
-#| "\n"
-#| " else stringMessage = \"Try bringing a parka instead!\";\n"
-#| " }\n"
-#| "\n"
-#| " return stringMessage;\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _clearTravelPopUp: function () {\n"
-#| "\n"
-#| " this._travel.destroy();\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new RadioButtonExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -38239,6 +35854,164 @@ msgstr "Scale 손잡이를 잡고 끌어봅시다!"
#. (itstool) path: page/code
#: C/scale.c.page:28
#, no-wrap
+#| msgid ""
+#| "\n"
+#| "#include <gtk/gtk.h>\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* This is the callback function. \n"
+#| " * It is a handler function which reacts to the signal. \n"
+#| " * In this case, it will notify the user the value of their scale as a label.\n"
+#| " */\n"
+#| "static void\n"
+#| "hscale_moved (GtkRange *range,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *label = user_data;\n"
+#| "\n"
+#| " /* Get the value of the range, and convert it into a string which will be\n"
+#| " * used as a new label for the horizontal scale.\n"
+#| " * %.0f - stands for a double that will have 0 decimal places.\n"
+#| " */\n"
+#| " gdouble pos = gtk_range_get_value (range);\n"
+#| " /* Note: Using g_strdup_printf returns a string that must be freed. \n"
+#| " * (In which is done below)\n"
+#| " */\n"
+#| " gchar *str = g_strdup_printf (\"Horizontal scale is %.0f\", pos);\n"
+#| " gtk_label_set_text (GTK_LABEL (label), str);\n"
+#| "\n"
+#| " g_free(str);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* This is the second callback function. It is a handler function which \n"
+#| " * reacts to the signal. It does the same thing as the function above, except with\n"
+#| " * the vertical scale.\n"
+#| " */\n"
+#| "vscale_moved (GtkRange *range,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *label = user_data;\n"
+#| " \n"
+#| " gdouble pos = gtk_range_get_value (range);\n"
+#| " /* %.1f - stands for a double that will have 1 decimal place */\n"
+#| " gchar *str = g_strdup_printf (\"Vertical scale is %.1f\", pos);\n"
+#| " gtk_label_set_text (GTK_LABEL (label), str);\n"
+#| "\n"
+#| " \n"
+#| " g_free (str);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "static void\n"
+#| "activate (GtkApplication *app,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " /* Declare variables */\n"
+#| " GtkWidget *window;\n"
+#| " GtkWidget *h_scale;\n"
+#| " GtkWidget *v_scale;\n"
+#| " GtkWidget *hlabel;\n"
+#| " GtkWidget *vlabel;\n"
+#| " GtkWidget *grid;\n"
+#| "\n"
+#| " /* The Adjustment object represents a value \n"
+#| " * which has an associated lower and upper bound.\n"
+#| " */\n"
+#| " GtkAdjustment *hadjustment;\n"
+#| " GtkAdjustment *vadjustment;\n"
+#| "\n"
+#| " /* Create a window with a title and a default size */\n"
+#| " window = gtk_application_window_new (app);\n"
+#| " gtk_window_set_title (GTK_WINDOW (window), \"Scale Example\");\n"
+#| " gtk_window_set_default_size (GTK_WINDOW (window), 400, 300);\n"
+#| " gtk_container_set_border_width (GTK_CONTAINER (window), 5);\n"
+#| "\n"
+#| " /* Two labels to be shown in the window */\n"
+#| " hlabel = gtk_label_new (\"Move the scale handle...\");\n"
+#| " vlabel = gtk_label_new (\"Move the scale handle...\");\n"
+#| "\n"
+#| " \n"
+#| " /* gtk_adjustment_new takes six parameters, three of which \n"
+#| " * may be difficult to understand:\n"
+#| " * step increment- move the handle with the arrow keys on your keyboard to see.\n"
+#| " * page increment - move the handle by clicking away from it \n"
+#| " * on the scale to see.\n"
+#| " * page size - not used here.\n"
+#| " */\n"
+#| " hadjustment = gtk_adjustment_new (0, 0, 100, 5, 10, 0);\n"
+#| " vadjustment = gtk_adjustment_new (50, 0, 100, 5, 10, 0); \n"
+#| "\n"
+#| " /* Create the Horizontal scale, making sure the \n"
+#| " * digits used have no decimals.\n"
+#| " */\n"
+#| " h_scale = gtk_scale_new (GTK_ORIENTATION_HORIZONTAL, hadjustment);\n"
+#| " gtk_scale_set_digits (GTK_SCALE (h_scale), 0); \n"
+#| "\n"
+#| " /* Allow it to expand horizontally (if there's space), and \n"
+#| " * set the vertical alignment\n"
+#| " */\n"
+#| " gtk_widget_set_hexpand (h_scale, TRUE);\n"
+#| " gtk_widget_set_valign (h_scale, GTK_ALIGN_START);\n"
+#| " \n"
+#| " /* Connecting the \"value-changed\" signal for the horizontal scale \n"
+#| " * to the appropriate callback function. \n"
+#| " * take note that GtkRange is part of GtkScale's Object Hierarchy.\n"
+#| " */\n"
+#| " g_signal_connect (h_scale, \n"
+#| " \"value-changed\", \n"
+#| " G_CALLBACK (hscale_moved), \n"
+#| " hlabel);\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| " /* Create the Vertical scale. This time, we will see what happens \n"
+#| " * when the digits arent initially set.\n"
+#| " */\n"
+#| " v_scale = gtk_scale_new (GTK_ORIENTATION_VERTICAL, vadjustment);\n"
+#| " gtk_widget_set_vexpand (v_scale, TRUE);\n"
+#| "\n"
+#| " /* Connecting the \"value-changed\" signal for the vertical scale to \n"
+#| " * the appropriate callback function.\n"
+#| " */\n"
+#| " g_signal_connect (v_scale, \n"
+#| " \"value-changed\", \n"
+#| " G_CALLBACK (vscale_moved), \n"
+#| " vlabel);\n"
+#| "\n"
+#| " /* Create a grid and arrange everything accordingly */\n"
+#| " grid = gtk_grid_new ();\n"
+#| " gtk_grid_set_column_spacing (GTK_GRID (grid), 10);\n"
+#| " gtk_grid_set_column_homogeneous (GTK_GRID (grid), TRUE);\n"
+#| " gtk_grid_attach (GTK_GRID (grid), h_scale, 0, 0, 1, 1);\n"
+#| " gtk_grid_attach (GTK_GRID (grid), v_scale, 1, 0, 1, 1);\n"
+#| " gtk_grid_attach (GTK_GRID (grid), hlabel, 0, 1, 1, 1);\n"
+#| " gtk_grid_attach (GTK_GRID (grid), vlabel, 1, 1, 1, 1);\n"
+#| " \n"
+#| "\n"
+#| " gtk_container_add (GTK_CONTAINER (window), grid);\n"
+#| "\n"
+#| " gtk_widget_show_all (window);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "int\n"
+#| "main (int argc, char **argv)\n"
+#| "{\n"
+#| " GtkApplication *app;\n"
+#| " int status;\n"
+#| "\n"
+#| " app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+#| " g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+#| " status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+#| " g_object_unref (app);\n"
+#| "\n"
+#| " return status;\n"
+#| "}\n"
msgid ""
"\n"
"#include <gtk/gtk.h>\n"
@@ -38354,7 +36127,7 @@ msgid ""
"\n"
"\n"
" /* Create the Vertical scale. This time, we will see what happens \n"
-" * when the digits arent initially set.\n"
+" * when the digits aren't initially set.\n"
" */\n"
" v_scale = gtk_scale_new (GTK_ORIENTATION_VERTICAL, vadjustment);\n"
" gtk_widget_set_vexpand (v_scale, TRUE);\n"
@@ -38512,7 +36285,7 @@ msgstr ""
"\n"
"\n"
" /* Create the Vertical scale. This time, we will see what happens \n"
-" * when the digits arent initially set.\n"
+" * when the digits aren't initially set.\n"
" */\n"
" v_scale = gtk_scale_new (GTK_ORIENTATION_VERTICAL, vadjustment);\n"
" gtk_widget_set_vexpand (v_scale, TRUE);\n"
@@ -39040,135 +36813,6 @@ msgstr "마지막으로, 마무리한 ScaleExample 클래스의 새 인스턴스
#. (itstool) path: section/code
#: C/scale.js.page:204
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const ScaleExample = new Lang.Class({\n"
-#| " Name: 'Scale Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jsscale'\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " border_width: 20,\n"
-#| " title: \"Birds on a Floe\"});\n"
-#| "\n"
-#| " // Create the horizontal scale\n"
-#| " this._hScale = Gtk.Scale.new_with_range (Gtk.Orientation.HORIZONTAL, 0.0, 100.0, 5.0);\n"
-#| " this._hScale.set_valign (Gtk.Align.START);\n"
-#| " this._hScale.set_value (50);\n"
-#| " this._hScale.set_digits (0);\n"
-#| " // this._hScale.set_draw_value (false);\n"
-#| "\n"
-#| " // Create a master adjustment to use for the vertical (or any other) scale\n"
-#| " this._adjustment = new Gtk.Adjustment ({\n"
-#| " value: 95,\n"
-#| " lower: 0,\n"
-#| " upper: 100,\n"
-#| " step_increment: 5,\n"
-#| " page_increment: 10 });\n"
-#| "\n"
-#| " // Create a vertical scale using the adjustment we just made\n"
-#| " this._vScale = new Gtk.Scale ({\n"
-#| " orientation: Gtk.Orientation.VERTICAL,\n"
-#| " adjustment: this._adjustment,\n"
-#| " digits: 0,\n"
-#| " // draw_value: false,\n"
-#| " margin_left: 10 });\n"
-#| "\n"
-#| " // Create the label that shows the product of the two values\n"
-#| " this._product = (this._hScale.get_value() * this._vScale.get_value());\n"
-#| " this._label = new Gtk.Label ({\n"
-#| " label: (String(this._product) + \" penguins on the iceberg.\"),\n"
-#| " height_request: 200,\n"
-#| " width_request: 200,\n"
-#| " wrap: true});\n"
-#| "\n"
-#| " // Connect the two scales to functions which recalculate the label\n"
-#| " this._hScale.connect (\"value-changed\", Lang.bind (this, this._recalc));\n"
-#| " this._vScale.connect (\"value-changed\", Lang.bind (this, this._recalc));\n"
-#| "\n"
-#| " // Create a grid to arrange things in\n"
-#| " this._UIGrid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " margin_top: 20,\n"
-#| " margin_left: 20});\n"
-#| "\n"
-#| " // Attach everything to the grid\n"
-#| " this._UIGrid.attach (this._label, 0, 0, 1, 1);\n"
-#| " this._UIGrid.attach (this._hScale, 0, 1, 1, 1);\n"
-#| " this._UIGrid.attach (this._vScale, 1, 0, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._UIGrid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _recalc: function() {\n"
-#| "\n"
-#| " // Figure out what the product of the two scales' values is\n"
-#| " var product = (this._hScale.get_value() * this._vScale.get_value());\n"
-#| "\n"
-#| " // Create a blank comment line in case there isn't a silly comment to make\n"
-#| " var comment = \"\";\n"
-#| "\n"
-#| " // Make a silly comment based on the number of penguins\n"
-#| " if (product > 9000) {\n"
-#| " comment = \"It's over 9000!\";\n"
-#| " }\n"
-#| " else if (product < 1000 && product > 0) {\n"
-#| " comment = \"They're getting lonely.\";\n"
-#| " }\n"
-#| " else if (product == 0) {\n"
-#| " comment = \"They're all gone ...\";\n"
-#| " }\n"
-#| " else comment = \"\";\n"
-#| "\n"
-#| " // Set ._label's new text\n"
-#| " this._label.set_label (String (product) + \" penguins on the iceberg. \" + comment);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new ScaleExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -39893,65 +37537,6 @@ msgstr "스크롤 창에 이미지를 나타냅니다."
#. (itstool) path: page/code
#: C/scrolledwindow.c.page:28
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "#include <gtk/gtk.h>\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| "static void\n"
-#| "activate (GtkApplication *app,\n"
-#| " gpointer user_data)\n"
-#| "{\n"
-#| " /* Declare variables */\n"
-#| " GtkWidget *window;\n"
-#| " GtkWidget *scrolled_window;\n"
-#| " GtkWidget *image;\n"
-#| "\n"
-#| " /* Create a window with a title, and a default size */\n"
-#| " window = gtk_application_window_new (app);\n"
-#| " gtk_window_set_title (GTK_WINDOW (window), \"ScrolledWindow Example\");\n"
-#| " gtk_window_set_default_size (GTK_WINDOW (window), 220, 200);\n"
-#| "\n"
-#| " /* Create the scrolled window. Usually NULL is passed for both parameters so\n"
-#| " * that it creates the horizontal/vertical adjustments automatically. Setting\n"
-#| " * the scrollbar policy to automatic allows the scrollbars to only show up\n"
-#| " * when needed.\n"
-#| " */\n"
-#| " scrolled_window = gtk_scrolled_window_new (NULL, NULL);\n"
-#| " /* Set the border width */\n"
-#| " gtk_container_set_border_width (GTK_CONTAINER (scrolled_window), 10);\n"
-#| " /* Extract our desired image from a file that we have */\n"
-#| " image = gtk_image_new_from_file (\"gnome-image.png\");\n"
-#| " /* And add it to the scrolled window */\n"
-#| " gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (scrolled_window), image);\n"
-#| " /* Set the policy of the horizontal and vertical scrollbars to automatic.\n"
-#| " * What this means is that the scrollbars are only present if needed.\n"
-#| " */\n"
-#| " gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (scrolled_window),\n"
-#| " GTK_POLICY_AUTOMATIC,\n"
-#| " GTK_POLICY_AUTOMATIC);\n"
-#| "\n"
-#| " gtk_container_add (GTK_CONTAINER (window), scrolled_window);\n"
-#| "\n"
-#| " gtk_widget_show_all (window);\n"
-#| "}\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| "int\n"
-#| "main (int argc, char **argv)\n"
-#| "{\n"
-#| " GtkApplication *app;\n"
-#| " int status;\n"
-#| "\n"
-#| " app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
-#| " g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
-#| " status = g_application_run (G_APPLICATION (app), argc, argv);\n"
-#| " g_object_unref (app);\n"
-#| "\n"
-#| " return status;\n"
-#| "}\n"
msgid ""
"\n"
"#include <gtk/gtk.h>\n"
@@ -40089,65 +37674,6 @@ msgstr "ScrolledWindow (JavaScript)"
#. (itstool) path: section/code
#: C/scrolledwindow.js.page:29
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const GObject = imports.gi.GObject;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const ScrolledWindowExample = new Lang.Class ({\n"
-#| " Name: 'ScrolledWindow Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application({ application_id: 'org.example.jscrolledwindow' });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
-#| " this.window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| " // Create the application window\n"
-#| " this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"ScrolledWindow Example\",\n"
-#| " default_width: 200,\n"
-#| " default_height: 200,\n"
-#| " border_width: 10 });\n"
-#| " // the scrolledwindow\n"
-#| " this.scrolledWindow = new Gtk.ScrolledWindow();\n"
-#| " this.scrolledWindow.set_border_width(10);\n"
-#| " // there is always the scrollbar (otherwise: AUTOMATIC - only if needed - or NEVER)\n"
-#| " this.scrolledWindow.set_policy(Gtk.PolicyType.ALWAYS, Gtk.PolicyType.ALWAYS);\n"
-#| " // an image - slightly larger than the window\n"
-#| " this.image = new Gtk.Image();\n"
-#| " this.image.set_from_file(\"gnome-image.png\");\n"
-#| "\n"
-#| " // add the image to the scrolledwindow\n"
-#| " this.scrolledWindow.add_with_viewport(this.image);\n"
-#| "\n"
-#| " // add the scrolledwindow to the window\n"
-#| " this.window.add(this.scrolledWindow);\n"
-#| " this.window.show_all();\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new ScrolledWindowExample();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -41751,120 +39277,6 @@ msgstr "마지막으로 마무리한 SpinButtonExample 클래스의 새 인스
#. (itstool) path: section/code
#: C/spinbutton.js.page:195
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const SpinButtonExample = new Lang.Class({\n"
-#| " Name: 'SpinButton Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jsspinbutton'\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " border_width: 20,\n"
-#| " title: \"Kitten Feeder\"});\n"
-#| "\n"
-#| " // Create the first spinbutton using a function\n"
-#| " this._kittens = Gtk.SpinButton.new_with_range (1, 9001, 1);\n"
-#| " this._kittens.connect (\"value-changed\", Lang.bind (this, this._newValue));\n"
-#| "\n"
-#| " // Create an adjustment to use for the second spinbutton\n"
-#| " this._adjustment = new Gtk.Adjustment ({\n"
-#| " value: 1,\n"
-#| " lower: 0,\n"
-#| " upper: 9001,\n"
-#| " step_increment: 1,\n"
-#| " page_increment: 10 });\n"
-#| "\n"
-#| " // Create the second spinbutton\n"
-#| " this._tuna = new Gtk.SpinButton ({ adjustment: this._adjustment });\n"
-#| " this._tuna.connect (\"value-changed\", Lang.bind (this, this._newValue));\n"
-#| "\n"
-#| " // this._tuna.set_digits (1);\n"
-#| " // this._tuna.set_wrap (true);\n"
-#| "\n"
-#| " // Create the text labels to go with the spinbuttons\n"
-#| " this._startLabel = new Gtk.Label ({ label: \"There are \" });\n"
-#| " this._kittenLabel = new Gtk.Label ({ label: \" kitten(s), and \"});\n"
-#| " this._tunaLabel = new Gtk.Label ({ label: \" can(s) of tuna.\"});\n"
-#| " this.perKitten = Math.floor((this._tuna.get_value() / this._kittens.get_value()));\n"
-#| " this._lastLabel = new Gtk.Label ({\n"
-#| " label: \"That's \" + this.perKitten + \" can(s) of tuna per kitten.\" });\n"
-#| "\n"
-#| " // Create a grid to put the spinbuttons and their labels in\n"
-#| " this._spinGrid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " margin_bottom: 20 });\n"
-#| "\n"
-#| " // Attach everything to the grid\n"
-#| " this._spinGrid.attach (this._startLabel, 0, 0, 1, 1);\n"
-#| " this._spinGrid.attach (this._kittens, 1, 0, 1, 1);\n"
-#| " this._spinGrid.attach (this._kittenLabel, 2, 0, 1, 1);\n"
-#| " this._spinGrid.attach (this._tuna, 3, 0, 1, 1);\n"
-#| " this._spinGrid.attach (this._tunaLabel, 4, 0, 1, 1);\n"
-#| "\n"
-#| " // Create a main grid to hold it and the last label\n"
-#| " this._mainGrid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER });\n"
-#| "\n"
-#| " // Attach the smaller grid and the last label to the main grid\n"
-#| " this._mainGrid.attach (this._spinGrid, 0, 0, 1, 1);\n"
-#| " this._mainGrid.attach (this._lastLabel, 0, 1, 1, 1);\n"
-#| "\n"
-#| " // Add the main grid to the window\n"
-#| " this._window.add (this._mainGrid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _newValue: function () {\n"
-#| "\n"
-#| " // Update the label which shows how many cans there are per kitten\n"
-#| " this.perKitten = Math.floor((this._tuna.get_value() / this._kittens.get_value()))\n"
-#| " this._lastLabel.set_label (\"That's \" + this.perKitten + \" can(s) of tuna per kitten.\");\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new SpinButtonExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -42606,87 +40018,6 @@ msgstr "Spinner (JavaScript)"
#. (itstool) path: page/code
#: C/spinner.js.page:25
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Gdk = imports.gi.Gdk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const SpinnerExample = new Lang.Class ({\n"
-#| " Name: 'Spinner Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jsspinner',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Spinner Example\",\n"
-#| " default_height: 200,\n"
-#| " default_width: 200,\n"
-#| " border_width: 30 });\n"
-#| "\n"
-#| " // Create a spinner which starts spinning automatically\n"
-#| " this._spinner = new Gtk.Spinner ({active: true});\n"
-#| " this._window.add (this._spinner);\n"
-#| "\n"
-#| " // Connect a keypress event to the function that makes it start or stop spinning\n"
-#| " this._window.connect(\"key-press-event\", Lang.bind(this, this._onKeyPress));\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _onKeyPress: function(widget, event) {\n"
-#| "\n"
-#| " // Get the value of the key that was pressed\n"
-#| " let keyval = event.get_keyval()[1];\n"
-#| "\n"
-#| " // If it was the spacebar, toggle the spinner to start or stop\n"
-#| " if (keyval == Gdk.KEY_space) {\n"
-#| " if (this._spinner.active == true)\n"
-#| " this._spinner.stop();\n"
-#| " else\n"
-#| " this._spinner.start();\n"
-#| " }\n"
-#| " }\n"
-#| "\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new SpinnerExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -43876,157 +41207,6 @@ msgstr "마지막으로, StatusbarExample 클래스에서 새 인스턴스를
#. (itstool) path: section/code
#: C/statusbar.js.page:217
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const StatusbarExample = new Lang.Class({\n"
-#| " Name: 'Statusbar Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jsstatusbar',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 120,\n"
-#| " default_width: 300,\n"
-#| " title: \"Button Clicker\"});\n"
-#| "\n"
-#| " // Create a paned interface\n"
-#| " this._panes = new Gtk.Paned ({\n"
-#| " orientation: Gtk.Orientation.VERTICAL });\n"
-#| "\n"
-#| " // Create the main button\n"
-#| " this._clickMe = new Gtk.Button ({\n"
-#| " label: \"Click Me!\" });\n"
-#| " this._clickMe.connect (\"clicked\", Lang.bind (this, this._clicked));\n"
-#| "\n"
-#| " // Create the back button\n"
-#| " this._backButton = new Gtk.Button ({\n"
-#| " label: \"gtk-go-back\",\n"
-#| " use_stock: true });\n"
-#| " this._backButton.connect (\"clicked\", Lang.bind (this, this._back));\n"
-#| "\n"
-#| " // Create the clear button\n"
-#| " this._clearButton = new Gtk.Button ({\n"
-#| " label: \"gtk-clear\",\n"
-#| " use_stock: true });\n"
-#| " this._clearButton.connect (\"clicked\", Lang.bind (this, this._clear));\n"
-#| "\n"
-#| " // Put the buttons in a grid\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER });\n"
-#| " this._grid.attach (this._backButton, 0, 0, 1, 1);\n"
-#| " this._grid.attach_next_to (this._clickMe, this._backButton, Gtk.PositionType.RIGHT, 1, 1);\n"
-#| " this._grid.attach_next_to (this._clearButton, this._clickMe, Gtk.PositionType.RIGHT, 1, 1);\n"
-#| "\n"
-#| " // Put the grid in a large frame that fills most of the window\n"
-#| " this._topFrame = new Gtk.Frame ({\n"
-#| " border_width: 20,\n"
-#| " height_request: 90,\n"
-#| " width_request: 300});\n"
-#| " this._topFrame.add (this._grid);\n"
-#| "\n"
-#| " // Create the statusbar\n"
-#| " this._statusbar = new Gtk.Statusbar();\n"
-#| "\n"
-#| " // Keep track of the number of times the button has been clicked\n"
-#| " this.Clicks = 0;\n"
-#| " this.ContextID = this._statusbar.get_context_id (\"Number of Clicks\");\n"
-#| "\n"
-#| " // Give the statusbar an initial message\n"
-#| " this._statusbar.push (this.ContextID, \"Number of clicks: \" + this.Clicks);\n"
-#| "\n"
-#| " // Put the statusbar in its own frame at the bottom\n"
-#| " this._barFrame = new Gtk.Frame ({\n"
-#| " height_request: 30 });\n"
-#| " this._barFrame.add (this._statusbar);\n"
-#| "\n"
-#| " // Assemble the frames into the paned interface\n"
-#| " this._panes.pack1 (this._topFrame, true, false);\n"
-#| " this._panes.pack2 (this._barFrame, false, false);\n"
-#| "\n"
-#| " // Put the panes into the window\n"
-#| " this._window.add (this._panes);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _clicked: function() {\n"
-#| "\n"
-#| " // Increment the number of clicks by 1\n"
-#| " this.Clicks++;\n"
-#| "\n"
-#| " // Update the statusbar with the new number of clicks\n"
-#| " this._statusbar.push (this.ContextID, \"Number of clicks: \" + this.Clicks);\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _back: function () {\n"
-#| "\n"
-#| " // If there have been any clicks, decrement by 1 and remove last statusbar update\n"
-#| " if (this.Clicks > 0 ) {\n"
-#| " this.Clicks--;\n"
-#| " this._statusbar.pop (this.ContextID);\n"
-#| " };\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _clear: function () {\n"
-#| "\n"
-#| " // Reset the number of clicks\n"
-#| " this.Clicks = 0;\n"
-#| "\n"
-#| " // Wipe out all the messages pushed to the statusbar\n"
-#| " this._statusbar.remove_all (this.ContextID);\n"
-#| "\n"
-#| " // Reset the statusbar's message\n"
-#| " this._statusbar.push (this.ContextID, \"Number of clicks: \" + this.Clicks);\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new StatusbarExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -45768,186 +42948,6 @@ msgstr "마지막으로, 마무리한 SwitchExample 클래스의 새 인스턴
#. (itstool) path: section/code
#: C/switch.js.page:260
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const SwitchExample = new Lang.Class({\n"
-#| " Name: 'Switch Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jsswitch'\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal creates the menu and builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._initMenus();\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " border_width: 20,\n"
-#| " title: \"Animal Creator\"});\n"
-#| "\n"
-#| " // Create the image widget and set its default picture\n"
-#| " this._image = new Gtk.Image ({file: \"redfox.png\"});\n"
-#| "\n"
-#| " // Create a label for the first switch\n"
-#| " this._flyLabel = new Gtk.Label ({\n"
-#| " label: \"Make it fly\",\n"
-#| " margin_right: 30});\n"
-#| "\n"
-#| " // Create the first switch and set its default position\n"
-#| " this._flySwitch = new Gtk.Switch ({active: false});\n"
-#| " this._flySwitch.connect ('notify::active', Lang.bind (this, this._switchFlip));\n"
-#| "\n"
-#| " // Create a label for the second switch\n"
-#| " this._birdLabel = new Gtk.Label ({\n"
-#| " label: \"Make it a bird\",\n"
-#| " margin_right: 30});\n"
-#| "\n"
-#| " // Create the second switch\n"
-#| " this._birdSwitch = new Gtk.Switch ({active: false});\n"
-#| " this._birdSwitch.connect ('notify::active', Lang.bind (this, this._switchFlip));\n"
-#| "\n"
-#| " // Create a grid for the labels and switches beneath the picture\n"
-#| " this._UIGrid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER,\n"
-#| " margin_top: 20});\n"
-#| "\n"
-#| " // Attach the labels and switches to that grid\n"
-#| " this._UIGrid.attach (this._flyLabel, 0, 0, 1, 1);\n"
-#| " this._UIGrid.attach (this._flySwitch, 1, 0, 1, 1);\n"
-#| " this._UIGrid.attach (this._birdLabel, 0, 1, 1, 1);\n"
-#| " this._UIGrid.attach (this._birdSwitch, 1, 1, 1, 1);\n"
-#| "\n"
-#| " // Create a master grid to put both the UI and the picture into\n"
-#| " this._mainGrid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER });\n"
-#| "\n"
-#| " // Attach the picture and the UI grid to the master grid\n"
-#| " this._mainGrid.attach (this._image, 0, 0, 1, 1);\n"
-#| " this._mainGrid.attach (this._UIGrid, 0, 1, 1, 1);\n"
-#| "\n"
-#| " // Add the master grid to the window\n"
-#| " this._window.add (this._mainGrid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _switchFlip: function() {\n"
-#| "\n"
-#| " // Change the picture depending on which switches are flipped\n"
-#| " if (this._flySwitch.get_active()) {\n"
-#| "\n"
-#| " if (this._birdSwitch.get_active()) this._image.set_from_file (\"muteswan.png\");\n"
-#| "\n"
-#| " else this._image.set_from_file (\"fruitbat.png\");\n"
-#| " }\n"
-#| "\n"
-#| " else {\n"
-#| "\n"
-#| " if (this._birdSwitch.get_active()) this._image.set_from_file (\"gentoopenguin.png\");\n"
-#| "\n"
-#| " else this._image.set_from_file (\"redfox.png\");\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _initMenus: function() {\n"
-#| "\n"
-#| " // Build the application's menu so we can have an \"About\" button\n"
-#| " let menu = new Gio.Menu();\n"
-#| " menu.append(\"About\", 'app.about');\n"
-#| " menu.append(\"Quit\",'app.quit');\n"
-#| " this.application.set_app_menu(menu);\n"
-#| "\n"
-#| " // Bind the \"About\" button to the _showAbout() function\n"
-#| " let aboutAction = new Gio.SimpleAction ({ name: 'about' });\n"
-#| " aboutAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._showAbout();\n"
-#| " }));\n"
-#| " this.application.add_action(aboutAction);\n"
-#| "\n"
-#| " // Bind the \"Quit\" button to the function that closes the window\n"
-#| " let quitAction = new Gio.SimpleAction ({ name: 'quit' });\n"
-#| " quitAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._window.destroy();\n"
-#| " }));\n"
-#| " this.application.add_action(quitAction);\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _showAbout: function () {\n"
-#| "\n"
-#| " // String arrays of the names of the people involved in the project\n"
-#| " var artists = ['Rob Lee http://en.wikipedia.org/wiki/File:Fuzzy_Freddy.png', 'Ken Funakoshi
http://en.wikipedia.org/wiki/File:Pygoscelis_papua_-Nagasaki_Penguin_Aquarium_-swimming_underwater-8a.png',
'Shek Graham http://www.flickr.com/photos/shekgraham/127431519/in/photostream/', 'Mindaugas Urbonas
http://commons.wikimedia.org/wiki/File:Mute_Swan-Mindaugas_Urbonas.png'];\n"
-#| " var authors = [\"GNOME Documentation Team\"];\n"
-#| " var documenters = [\"GNOME Documentation Team\"];\n"
-#| "\n"
-#| " // Create the About dialog\n"
-#| " let aboutDialog = new Gtk.AboutDialog({\n"
-#| " title: \"AboutDialog Example\",\n"
-#| " program_name: \"Animal Creator\",\n"
-#| " copyright: \"Copyright \\xa9 2012 GNOME Documentation Team\\n\\nRed fox photo licensed CC-By
by Rob Lee\\nGentoo penguin photo licensed CC-By-SA by Ken Funakoshi\\nFruit bat photo licensed CC-By by Shek
Graham\\nMute swan photo licensed CC-By-SA by Mindaugas Urbonas\\nLinks to the originals are available under
Credits.\\n\\nHave you hugged a penguin today?\",\n"
-#| " artists: artists,\n"
-#| " authors: authors,\n"
-#| " documenters: documenters,\n"
-#| " website: \"http://developer.gnome.org\",\n"
-#| " website_label: \"GNOME Developer Website\" });\n"
-#| "\n"
-#| " // Attach the About dialog to the window\n"
-#| " aboutDialog.modal = true;\n"
-#| " aboutDialog.transient_for = this._window;\n"
-#| "\n"
-#| " // Show the About dialog\n"
-#| " aboutDialog.show();\n"
-#| "\n"
-#| " // Connect the Close button to the destroy signal for the dialog\n"
-#| " aboutDialog.connect('response', function() {\n"
-#| " aboutDialog.destroy();\n"
-#| " });\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new SwitchExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -47319,161 +44319,6 @@ msgstr "마지막으로 마무리한 TextViewExample 클래스의 새 인스턴
#. (itstool) path: section/code
#: C/textview.js.page:244
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const TextViewExample = new Lang.Class ({\n"
-#| " Name: 'TextView Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.jstextview' });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function () {\n"
-#| " this._window.present ();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow ({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Talk to a Penguin\",\n"
-#| " default_height: 400,\n"
-#| " default_width: 440,\n"
-#| " border_width: 20 });\n"
-#| "\n"
-#| " // Create a label for the penguin to talk to you\n"
-#| " this._penguin = new Gtk.Label ({\n"
-#| " height_request: 180,\n"
-#| " width_request: 400,\n"
-#| " label: \"Squaaaak?\",\n"
-#| " wrap: true });\n"
-#| "\n"
-#| " // Create a textview for you to talk to the penguin\n"
-#| " this.buffer = new Gtk.TextBuffer();\n"
-#| " this._textView = new Gtk.TextView ({\n"
-#| " buffer: this.buffer,\n"
-#| " editable: true,\n"
-#| " wrap_mode: Gtk.WrapMode.WORD });\n"
-#| "\n"
-#| " // Create a \"scrolled window\" to put your textview in so it will scroll\n"
-#| " this._scrolled = new Gtk.ScrolledWindow ({\n"
-#| " hscrollbar_policy: Gtk.PolicyType.AUTOMATIC,\n"
-#| " vscrollbar_policy: Gtk.PolicyType.AUTOMATIC,\n"
-#| " shadow_type: Gtk.ShadowType.ETCHED_IN,\n"
-#| " height_request: 180,\n"
-#| " width_request: 400, });\n"
-#| "\n"
-#| " // Put the textview into the scrolled window\n"
-#| " this._scrolled.add_with_viewport (this._textView);\n"
-#| "\n"
-#| " // Create a grid to organize them in\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER });\n"
-#| "\n"
-#| " // Put the label and textview in the grid one on top of the other\n"
-#| " this._grid.attach (this._penguin, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._scrolled, 0, 1, 1, 1);\n"
-#| "\n"
-#| " // Create a button to send your message to the penguin\n"
-#| " this._send = new Gtk.Button ({\n"
-#| " halign: Gtk.Align.END,\n"
-#| " margin_top: 20,\n"
-#| " label: \"Send\" });\n"
-#| " this._send.connect ('clicked', Lang.bind (this, this._chat));\n"
-#| "\n"
-#| " // Create a grid that will have the other grid on top and the button on bottom\n"
-#| " this._mainGrid = new Gtk.Grid ({\n"
-#| " halign: Gtk.Align.CENTER,\n"
-#| " valign: Gtk.Align.CENTER });\n"
-#| "\n"
-#| " // Add the other grid and the button to the main grid\n"
-#| " this._mainGrid.attach (this._grid, 0, 0, 1, 1);\n"
-#| " this._mainGrid.attach (this._send, 0, 1, 1, 1);\n"
-#| "\n"
-#| " // Attach the main grid to the window\n"
-#| " this._window.add (this._mainGrid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _chat: function () {\n"
-#| "\n"
-#| " // Create a random number to determine what the penguin says\n"
-#| " this.number = Math.floor ((Math.random() * 3) + 1);\n"
-#| "\n"
-#| " // Did you actually say anything?\n"
-#| " if (this.buffer.text) {\n"
-#| "\n"
-#| " // Did you mention fish?\n"
-#| " if (this.buffer.text.match (/fish/gi)) {\n"
-#| "\n"
-#| " // Have the penguin squaak about fish\n"
-#| " if (this.number == 1)\n"
-#| " this._penguin.set_label (\"FISH!\");\n"
-#| "\n"
-#| " else if (this.number == 2)\n"
-#| " this._penguin.set_label (\"Fish fish fish fish. Fish!\");\n"
-#| "\n"
-#| " else\n"
-#| " this._penguin.set_label (\"Fish? Fish fish fish. Fish fish. FISH!\");\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " // I guess you didn't mention fish\n"
-#| " else {\n"
-#| "\n"
-#| " // Have the penguin talk about penguinny stuff\n"
-#| " if (this.number == 1)\n"
-#| " this._penguin.set_label (\"SQUAAK!\");\n"
-#| "\n"
-#| " else if (this.number == 2)\n"
-#| " this._penguin.set_label (\"Ork ork ork ork squaak. Squaak squaak! *waves
flippers*\");\n"
-#| "\n"
-#| " else\n"
-#| " this._penguin.set_label (\"Ork ork ork ork ork?\");\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| " // Clear the buffer\n"
-#| " this.buffer.text = \"\";\n"
-#| "\n"
-#| " // Give focus back to the textview so you don't have to click it again\n"
-#| " this._textView.has_focus = true;\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new TextViewExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -48769,89 +45614,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/togglebutton.js.page:149
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const ToggleButtonExample = new Lang.Class({\n"
-#| " Name: 'ToggleButton Example',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jstogglebutton',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 300,\n"
-#| " default_width: 300,\n"
-#| " border_width: 30,\n"
-#| " title: \"ToggleButton Example\"});\n"
-#| "\n"
-#| " // Create the spinner that the button stops and starts\n"
-#| " this._spinner = new Gtk.Spinner ({hexpand: true, vexpand: true});\n"
-#| "\n"
-#| " // Create the togglebutton that starts and stops the spinner\n"
-#| " this._toggleButton = new Gtk.ToggleButton ({label: \"Start/Stop\"});\n"
-#| " this._toggleButton.connect ('toggled', Lang.bind (this, this._onToggle));\n"
-#| "\n"
-#| " // Create a grid and put everything in it\n"
-#| " this._grid = new Gtk.Grid ({\n"
-#| " row_homogeneous: false,\n"
-#| " row_spacing: 15});\n"
-#| " this._grid.attach (this._spinner, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._toggleButton, 0, 1, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _onToggle: function() {\n"
-#| "\n"
-#| " // Start or stop the spinner\n"
-#| " if (this._toggleButton.get_active ())\n"
-#| " this._spinner.start ();\n"
-#| " else this._spinner.stop ();\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new ToggleButtonExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -49814,178 +46576,6 @@ msgstr "SimpleAction(창과 앱)을 활용하는 예제입니다. 앱 동작은
#. (itstool) path: page/code
#: C/toolbar.js.page:26
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gdk = imports.gi.Gdk;\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const Application = new Lang.Class({\n"
-#| " Name: 'Application',\n"
-#| "\n"
-#| " //create the application\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.myapp',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " //connect to 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " //create the UI (in this case it's just the ApplicationWindow\n"
-#| " _buildUI: function() {\n"
-#| " this._window = new Gtk.ApplicationWindow({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Toolbar Example\",\n"
-#| " default_height: 200,\n"
-#| " default_width: 400 });\n"
-#| "\n"
-#| " this._grid = new Gtk.Grid();\n"
-#| " this._window.add(this._grid);\n"
-#| " this._grid.show();\n"
-#| "\n"
-#| " this._createToolbar();\n"
-#| " this._toolbar.set_hexpand(true);\n"
-#| " this._grid.attach(this._toolbar, 0, 0, 1, 1);\n"
-#| "\n"
-#| " //show the toolbar and window\n"
-#| " this._toolbar.show();\n"
-#| " this._window.show();\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'activate' signal\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'startup' signal\n"
-#| " _onStartup: function() {\n"
-#| " this._initMenus();\n"
-#| " this._buildUI();\n"
-#| " },\n"
-#| "\n"
-#| " //create the toolbar, its toolbuttons and their actions\n"
-#| " _createToolbar: function() {\n"
-#| "\n"
-#| " this._toolbar = new Gtk.Toolbar();\n"
-#| " this._toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
-#| "\n"
-#| " //create the \"New\" ToolButton and its SimpleAction.\n"
-#| " //Using actions allows you to add them to the app menu\n"
-#| " //without duplicating code.\n"
-#| " let newAction = new Gio.SimpleAction({ name: 'new'});\n"
-#| " newAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._newCB();\n"
-#| " }));\n"
-#| " this.application.add_action(newAction);//note: this action is added to the app\n"
-#| "\n"
-#| " this._newButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_NEW);\n"
-#| " this._newButton.is_important = true;\n"
-#| " this._toolbar.add(this._newButton);\n"
-#| " this._newButton.show();\n"
-#| " this._newButton.action_name = \"app.new\";\n"
-#| "\n"
-#| " //create the \"Open\" ToolButton and its SimpleAction\n"
-#| " let openAction = new Gio.SimpleAction({ name: 'open'});\n"
-#| " openAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._openCB();\n"
-#| " }));\n"
-#| " this.application.add_action(openAction);\n"
-#| "\n"
-#| " this._openButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_OPEN);\n"
-#| " this._openButton.is_important = true;\n"
-#| " this._toolbar.add(this._openButton);\n"
-#| " this._openButton.show();\n"
-#| " this._openButton.action_name = \"app.open\";\n"
-#| "\n"
-#| " //create the \"Undo\" ToolButton and its SimpleAction\n"
-#| " let undoAction = new Gio.SimpleAction({ name: 'undo'});\n"
-#| " undoAction.connect('activate', Lang.bind (this,\n"
-#| " function() {\n"
-#| " this._undoCB();\n"
-#| " }));\n"
-#| " this._window.add_action(undoAction);//note this action is added to the window\n"
-#| "\n"
-#| " this._undoButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_UNDO);\n"
-#| " this._undoButton.is_important = true;\n"
-#| " this._toolbar.add(this._undoButton);\n"
-#| " this._undoButton.show();\n"
-#| " this._undoButton.action_name = \"win.undo\";\n"
-#| "\n"
-#| " //create the \"Fullscreen\" ToolButton and its SimpleAction\n"
-#| " let fullscreenToggleAction = new Gio.SimpleAction ({ name: 'fullscreenToggle' });\n"
-#| " fullscreenToggleAction.connect ('activate', Lang.bind (this,\n"
-#| " function () {\n"
-#| " this._fullscreenToggleCB();\n"
-#| " }));\n"
-#| " this._window.add_action(fullscreenToggleAction);\n"
-#| "\n"
-#| " this._fullscreenButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_FULLSCREEN);\n"
-#| " this._fullscreenButton.is_important = true;\n"
-#| " this._toolbar.add(this._fullscreenButton);\n"
-#| " this._fullscreenButton.show();\n"
-#| " this._fullscreenButton.action_name = \"win.fullscreenToggle\";\n"
-#| "\n"
-#| " //create the \"leaveFullscreen\" ToolButton, and set the action name to
\"win.fullscreenToggle\"\n"
-#| " this._leaveFullscreenButton = new Gtk.ToolButton.new_from_stock(Gtk.STOCK_LEAVE_FULLSCREEN);\n"
-#| " this._leaveFullscreenButton.is_important = true;\n"
-#| " this._toolbar.add(this._leaveFullscreenButton);\n"
-#| " this._leaveFullscreenButton.action_name = \"win.fullscreenToggle\";\n"
-#| " },\n"
-#| "\n"
-#| " _initMenus: function () {\n"
-#| " let menu = new Gio.Menu();\n"
-#| " menu.append(\"New\", 'app.new');\n"
-#| " menu.append(\"Open\", 'app.open');\n"
-#| " menu.append(\"Quit\", 'app.quit');\n"
-#| "\n"
-#| " this.application.set_app_menu(menu);\n"
-#| "\n"
-#| " let quitAction = new Gio.SimpleAction({name: 'quit' });\n"
-#| " quitAction.connect('activate', Lang.bind(this,\n"
-#| " function() {\n"
-#| " this._window.destroy();\n"
-#| " }));\n"
-#| " this.application.add_action(quitAction);\n"
-#| " },\n"
-#| "\n"
-#| " _newCB: function() {\n"
-#| " print(\"You clicked 'New'.\");\n"
-#| " },\n"
-#| "\n"
-#| " _openCB: function() {\n"
-#| " print(\"You clicked 'Open'.\");\n"
-#| " },\n"
-#| "\n"
-#| " _undoCB:function () {\n"
-#| " print (\"You clicked 'Undo'.\");\n"
-#| " },\n"
-#| "\n"
-#| " _fullscreenToggleCB: function() {\n"
-#| " if ((this._window.get_window().get_state() & Gdk.WindowState.FULLSCREEN) != 0 ) {\n"
-#| " this._window.unfullscreen();\n"
-#| " this._leaveFullscreenButton.hide();\n"
-#| " this._fullscreenButton.show();\n"
-#| " }\n"
-#| " else {\n"
-#| " this._window.fullscreen();\n"
-#| " this._fullscreenButton.hide();\n"
-#| " this._leaveFullscreenButton.show();\n"
-#| " }\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "//run the application\n"
-#| "let app = new Application();\n"
-#| "app.application.run(ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -52188,6 +48778,191 @@ msgstr "이 예제는 <link xref=\"toolbar.c\">도구 모음</link> 예제로
#. (itstool) path: section/code
#: C/tooltip.c.page:31
#, no-wrap
+#| msgid ""
+#| "#include <gtk/gtk.h>\n"
+#| "\n"
+#| "static gboolean \n"
+#| "undo_tooltip_callback (GtkStatusIcon *status_icon,\n"
+#| " gint x,\n"
+#| " gint y,\n"
+#| " gboolean keyboard_mode,\n"
+#| " GtkTooltip *tooltip,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " /* set the text for the tooltip */\n"
+#| " gtk_tooltip_set_text (tooltip, \"Undo your last action\");\n"
+#| " \n"
+#| " /* set an icon fot the tooltip */\n"
+#| " gtk_tooltip_set_icon_from_stock(tooltip, \"gtk-undo\", GTK_ICON_SIZE_MENU);\n"
+#| "\n"
+#| " /* show the tooltip */\n"
+#| " return TRUE;\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "static void\n"
+#| "undo_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " g_print (\"You clicked \\\"Undo\\\".\\n\");\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "static void\n"
+#| "activate (GtkApplication *app,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GtkWidget *grid;\n"
+#| " GtkWidget *window;\n"
+#| " GtkWidget *toolbar;\n"
+#| "\n"
+#| " GtkToolItem *new_button;\n"
+#| " GtkToolItem *open_button;\n"
+#| " GtkToolItem *undo_button;\n"
+#| "\n"
+#| " GtkStyleContext *style_context;\n"
+#| "\n"
+#| " GSimpleAction *undo_action;\n"
+#| "\n"
+#| " window = gtk_application_window_new (app);\n"
+#| " gtk_window_set_title (GTK_WINDOW (window), \"Toolbar with Tooltips Example\");\n"
+#| " gtk_window_set_default_size (GTK_WINDOW (window), 400, 200);\n"
+#| "\n"
+#| " /* Here we begin to create the toolbar */\n"
+#| " toolbar = gtk_toolbar_new ();\n"
+#| "\n"
+#| " /* Set the toolbar to be the primary toolbar of the application */\n"
+#| " style_context = gtk_widget_get_style_context (toolbar);\n"
+#| " gtk_style_context_add_class (style_context, GTK_STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+#| "\n"
+#| " /* Create a button for the \"new\" action, with a stock image */\n"
+#| " new_button = gtk_tool_button_new_from_stock (GTK_STOCK_NEW);\n"
+#| " gtk_tool_item_set_is_important (new_button, TRUE);\n"
+#| " gtk_toolbar_insert (GTK_TOOLBAR (toolbar), new_button, 0);\n"
+#| " gtk_widget_show (GTK_WIDGET (new_button));\n"
+#| "\n"
+#| " /* Set the action name for the \"new\" action. We use \"app.new\" to\n"
+#| " * indicate that the action controls the application.\n"
+#| " */\n"
+#| " gtk_actionable_set_action_name (GTK_ACTIONABLE (new_button), \"app.new\");\n"
+#| "\n"
+#| " /*******************************\n"
+#| " * Tooltip for the New ToolItem:\n"
+#| " * a tooltip with text\n"
+#| " *******************************/\n"
+#| " gtk_tool_item_set_tooltip_text (new_button, \"Create a new file\"); \n"
+#| "\n"
+#| " /* \"Open\" */\n"
+#| " open_button = gtk_tool_button_new_from_stock (GTK_STOCK_OPEN);\n"
+#| " gtk_tool_item_set_is_important (open_button, TRUE);\n"
+#| " gtk_toolbar_insert (GTK_TOOLBAR (toolbar), open_button, 1);\n"
+#| " gtk_widget_show (GTK_WIDGET (open_button));\n"
+#| " gtk_actionable_set_action_name (GTK_ACTIONABLE (open_button), \"app.open\");\n"
+#| "\n"
+#| " /*******************************\n"
+#| " * Tooltip for the Open ToolItem:\n"
+#| " * a tooltip using Pango markup \n"
+#| " * language\n"
+#| " *******************************/\n"
+#| " gtk_tool_item_set_tooltip_text (open_button, \"Open an <i>existing</i> file\");\n"
+#| "\n"
+#| " /* \"Undo\" */\n"
+#| " undo_button = gtk_tool_button_new_from_stock (GTK_STOCK_UNDO);\n"
+#| " gtk_tool_item_set_is_important (undo_button, TRUE);\n"
+#| " gtk_toolbar_insert (GTK_TOOLBAR (toolbar), undo_button, 2);\n"
+#| " gtk_widget_show (GTK_WIDGET (undo_button));\n"
+#| "\n"
+#| " /* In this case, we use \"win.undo\" to indicate that\n"
+#| " * the action controls only the window\n"
+#| " */\n"
+#| " gtk_actionable_set_action_name (GTK_ACTIONABLE (undo_button), \"win.undo\");\n"
+#| "\n"
+#| " /*******************************\n"
+#| " * Tooltip for the Undo ToolItem:\n"
+#| " * a tooltip with an image\n"
+#| " *******************************/\n"
+#| " gtk_widget_set_has_tooltip (GTK_WIDGET (undo_button), TRUE);\n"
+#| "\n"
+#| " // Next, we connect the query_tooltip signal\n"
+#| " g_signal_connect (undo_button, \"query-tooltip\", G_CALLBACK (undo_tooltip_callback), NULL);\n"
+#| "\n"
+#| " gtk_widget_set_hexpand (toolbar, TRUE);\n"
+#| " gtk_widget_show (toolbar);\n"
+#| "\n"
+#| " grid = gtk_grid_new ();\n"
+#| " gtk_grid_attach (GTK_GRID (grid), toolbar, 0, 0, 1, 1);\n"
+#| " gtk_container_add (GTK_CONTAINER (window), GTK_WIDGET (grid));\n"
+#| " gtk_widget_show (GTK_WIDGET (grid));\n"
+#| "\n"
+#| " /* Use the action names to create the actions that control the window, and\n"
+#| " * connect them to the appropriate callbackfunctions.\n"
+#| " */\n"
+#| " undo_action = g_simple_action_new (\"undo\", NULL);\n"
+#| " g_signal_connect (undo_action, \"activate\", G_CALLBACK (undo_callback),\n"
+#| " GTK_WINDOW (window));\n"
+#| " g_action_map_add_action (G_ACTION_MAP (window), G_ACTION (undo_action));\n"
+#| "\n"
+#| " gtk_widget_show (window);\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the new action */\n"
+#| "static void\n"
+#| "new_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " g_print (\"You clicked \\\"New\\\".\\n\");\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "/* Callback function for the open action */\n"
+#| "static void\n"
+#| "open_callback (GSimpleAction *simple,\n"
+#| " GVariant *parameter,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " g_print (\"You clicked \\\"Open\\\".\\n\");\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "/* In this function, we create the actions in which control the window, and\n"
+#| " * connect their signals to the appropriate callback function.\n"
+#| " */\n"
+#| "static void\n"
+#| "startup (GApplication *app,\n"
+#| " gpointer user_data)\n"
+#| "{\n"
+#| " GSimpleAction *new_action;\n"
+#| " GSimpleAction *open_action;\n"
+#| "\n"
+#| " new_action = g_simple_action_new (\"new\", NULL);\n"
+#| " g_signal_connect (new_action, \"activate\", G_CALLBACK (new_callback), app);\n"
+#| " g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (new_action));\n"
+#| "\n"
+#| " open_action = g_simple_action_new (\"open\", NULL);\n"
+#| " g_signal_connect (open_action, \"activate\", G_CALLBACK (open_callback), app);\n"
+#| " g_action_map_add_action (G_ACTION_MAP (app), G_ACTION (open_action));\n"
+#| "}\n"
+#| "\n"
+#| "\n"
+#| "\n"
+#| "/* Startup function for the application */\n"
+#| "int\n"
+#| "main (int argc, char **argv)\n"
+#| "{\n"
+#| " GtkApplication *app;\n"
+#| " int status;\n"
+#| "\n"
+#| " app = gtk_application_new (\"org.gtk.example\", G_APPLICATION_FLAGS_NONE);\n"
+#| " g_signal_connect (app, \"activate\", G_CALLBACK (activate), NULL);\n"
+#| " g_signal_connect (app, \"startup\", G_CALLBACK (startup), NULL);\n"
+#| " status = g_application_run (G_APPLICATION (app), argc, argv);\n"
+#| " g_object_unref (app);\n"
+#| "\n"
+#| " return status;\n"
+#| "}\n"
msgid ""
"#include <gtk/gtk.h>\n"
"\n"
@@ -52202,7 +48977,7 @@ msgid ""
" /* set the text for the tooltip */\n"
" gtk_tooltip_set_text (tooltip, \"Undo your last action\");\n"
" \n"
-" /* set an icon fot the tooltip */\n"
+" /* set an icon for the tooltip */\n"
" gtk_tooltip_set_icon_from_stock(tooltip, \"gtk-undo\", GTK_ICON_SIZE_MENU);\n"
"\n"
" /* show the tooltip */\n"
@@ -52387,7 +49162,7 @@ msgstr ""
" /* set the text for the tooltip */\n"
" gtk_tooltip_set_text (tooltip, \"Undo your last action\");\n"
" \n"
-" /* set an icon fot the tooltip */\n"
+" /* set an icon for the tooltip */\n"
" gtk_tooltip_set_icon_from_stock(tooltip, \"gtk-undo\", GTK_ICON_SIZE_MENU);\n"
"\n"
" /* show the tooltip */\n"
@@ -52591,44 +49366,48 @@ msgstr "이 예제는 <link xref=\"toolbar.js\">도구 모음</link> 예제로
#| msgid ""
#| "//!/usr/bin/gjs\n"
#| "\n"
+#| "imports.gi.versions.Gdk = '3.0';\n"
+#| "imports.gi.versions.Gtk = '3.0';\n"
+#| "\n"
#| "const Gdk = imports.gi.Gdk;\n"
#| "const GLib = imports.gi.GLib;\n"
#| "const Gio = imports.gi.Gio;\n"
#| "const Gtk = imports.gi.Gtk; \n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const TooltipExample = new Lang.Class ({\n"
-#| " Name: 'Tooltip Example',\n"
#| "\n"
+#| "class TooltipExample {\n"
#| " // Create the application \n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({ application_id: 'org.example.jstooltip' });\n"
+#| " constructor() {\n"
+#| " this.application = new Gtk.Application({\n"
+#| " application_id: 'org.example.jstooltip'\n"
+#| " });\n"
#| "\n"
#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
+#| " this.application.connect('activate', this._onActivate.bind(this));\n"
+#| " this.application.connect('startup', this._onStartup.bind(this));\n"
+#| " }\n"
#| "\n"
#| " // Callback function for 'activate' signal presents windows when active\n"
-#| " _onActivate: function() {\n"
+#| " _onActivate() {\n"
#| " this.window.present();\n"
-#| " },\n"
+#| " }\n"
#| "\n"
#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function () {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
+#| " _onStartup() {\n"
+#| " this._buildUI();\n"
+#| " }\n"
#| "\n"
#| " // Build the application's UI\n"
-#| " _buildUI: function () {\n"
+#| " _buildUI() {\n"
#| "\n"
#| " // Create the application window\n"
-#| " this.window = new Gtk.ApplicationWindow ({ application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " title: \"Toolbar with Tooltips Example\",\n"
-#| " default_width: 400,\n"
-#| " default_height: 200,\n"
-#| " border_width: 10 });\n"
+#| " this.window = new Gtk.ApplicationWindow({\n"
+#| " application: this.application,\n"
+#| " window_position: Gtk.WindowPosition.CENTER,\n"
+#| " title: \"Toolbar with Tooltips Example\",\n"
+#| " default_width: 400,\n"
+#| " default_height: 200,\n"
+#| " border_width: 10\n"
+#| " });\n"
#| "\n"
#| " this.grid = new Gtk.Grid();\n"
#| "\n"
@@ -52641,25 +49420,26 @@ msgstr "이 예제는 <link xref=\"toolbar.js\">도구 모음</link> 예제로
#| " this.window.add(this.grid);\n"
#| "\n"
#| " this._newAction = new Gio.SimpleAction({ name: \"new\" });\n"
-#| " this._newAction.connect(\"activate\", Lang.bind(this, this._newCallback));\n"
+#| " this._newAction.connect(\"activate\", this._newCallback.bind(this));\n"
#| " this.window.add_action(this._newAction);\n"
#| "\n"
#| " this._openAction = new Gio.SimpleAction({ name: \"open\" });\n"
-#| " this._openAction.connect(\"activate\", Lang.bind(this, this._openCallback));\n"
+#| " this._openAction.connect(\"activate\", this._openCallback.bind(this));\n"
#| " this.window.add_action(this._openAction);\n"
#| "\n"
#| " this._undoAction = new Gio.SimpleAction({ name: \"undo\" });\n"
-#| " this._undoAction.connect(\"activate\", Lang.bind(this, this._undoCallback));\n"
+#| " this._undoAction.connect(\"activate\", this._undoCallback.bind(this));\n"
#| " this.window.add_action(this._undoAction);\n"
#| "\n"
#| " this._fullScreenAction = new Gio.SimpleAction({ name: \"fullscreenToggle\" });\n"
-#| " this._fullScreenAction.connect(\"activate\", Lang.bind(this, this._fullScreenCallback));\n"
+#| " this._fullScreenAction.connect(\"activate\",\n"
+#| " this._fullScreenCallback.bind(this));\n"
#| " this.window.add_action(this._fullScreenAction);\n"
#| "\n"
#| " this.window.show_all();\n"
-#| " },\n"
+#| " }\n"
#| "\n"
-#| " _createToolbar: function(){\n"
+#| " _createToolbar() {\n"
#| " this.toolbar = new Gtk.Toolbar();\n"
#| " this.toolbar.get_style_context().add_class(Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
#| "\n"
@@ -52688,7 +49468,7 @@ msgstr "이 예제는 <link xref=\"toolbar.js\">도구 모음</link> 예제로
#| " this.undoButton.set_property(\"has-tooltip\", true);\n"
#| " // connect to the callback function that for the tooltip\n"
#| " // with the signal \"query-tooltip\"\n"
-#| " this.undoButton.connect(\"query-tooltip\", Lang.bind(this, this._undoTooltipCallback));\n"
+#| " this.undoButton.connect(\"query-tooltip\", this._undoTooltipCallback.bind(this));\n"
#| " this.undoButton.set_is_important(true);\n"
#| " this.toolbar.insert(this.undoButton, 2);\n"
#| " this.undoButton.show();\n"
@@ -52701,31 +49481,31 @@ msgstr "이 예제는 <link xref=\"toolbar.js\">도구 모음</link> 예제로
#| " this.fullscreenButton.set_action_name(\"win.fullscreenToggle\");\n"
#| "\n"
#| " return this.toolbar;\n"
-#| " },\n"
+#| " }\n"
#| "\n"
-#| " _newCallback: function(action, parameter) {\n"
+#| " _newCallback(action, parameter) {\n"
#| " print(\"You clicked \\\"New\\\".\");\n"
-#| " },\n"
+#| " }\n"
#| "\n"
-#| " _openCallback: function(action, parameter) {\n"
+#| " _openCallback(action, parameter) {\n"
#| " print(\"You clicked \\\"Open\\\".\");\n"
-#| " },\n"
+#| " }\n"
#| "\n"
#| " // the callback function for the tooltip of the \"undo\" button\n"
-#| " _undoTooltipCallback: function(widget, x, y, keyboard_mode, tooltip) {\n"
+#| " _undoTooltipCallback(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.STOCK_UNDO, Gtk.IconSize.MENU);\n"
#| " // show the tooltip\n"
#| " return true;\n"
-#| " },\n"
+#| " }\n"
#| "\n"
-#| " _undoCallback: function(action, parameter) {\n"
+#| " _undoCallback(action, parameter) {\n"
#| " print(\"You clicked \\\"Undo\\\".\");\n"
-#| " },\n"
+#| " }\n"
#| "\n"
-#| " _fullScreenCallback: function() {\n"
+#| " _fullScreenCallback() {\n"
#| " if ((this.window.get_window().get_state() & Gdk.WindowState.FULLSCREEN) != 0 ){\n"
#| " this.fullscreenButton.set_stock_id(Gtk.STOCK_FULLSCREEN);\n"
#| " this.fullscreenButton.set_tooltip_text(\"Make your window fullscreen\");\n"
@@ -52736,7 +49516,7 @@ msgstr "이 예제는 <link xref=\"toolbar.js\">도구 모음</link> 예제로
#| " this.window.fullscreen();\n"
#| " }\n"
#| " }\n"
-#| "});\n"
+#| "};\n"
#| "\n"
#| "// Run the application\n"
#| "let app = new TooltipExample ();\n"
@@ -52873,7 +49653,7 @@ msgid ""
" _undoTooltipCallback(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"
+" // set an icon for the tooltip\n"
" tooltip.set_icon_from_stock(Gtk.STOCK_UNDO, Gtk.IconSize.MENU);\n"
" // show the tooltip\n"
" return true;\n"
@@ -53031,7 +49811,7 @@ msgstr ""
" _undoTooltipCallback(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"
+" // set an icon for the tooltip\n"
" tooltip.set_icon_from_stock(Gtk.STOCK_UNDO, Gtk.IconSize.MENU);\n"
" // show the tooltip\n"
" return true;\n"
@@ -53087,6 +49867,134 @@ msgstr "이 예제는 <link xref=\"toolbar.py\">도구 모음</link> 예제로
#. (itstool) path: section/code
#: C/tooltip.py.page:32
#, no-wrap
+#| msgid ""
+#| "from gi.repository import Gtk\n"
+#| "from gi.repository import Gdk\n"
+#| "from gi.repository import Gio\n"
+#| "import sys\n"
+#| "\n"
+#| "\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 Gdk\n"
@@ -53167,7 +50075,7 @@ msgid ""
" 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"
+" # set an icon for the tooltip\n"
" tooltip.set_icon_from_stock(\"gtk-undo\", Gtk.IconSize.MENU)\n"
" # show the tooltip\n"
" return True\n"
@@ -53295,7 +50203,7 @@ msgstr ""
" 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"
+" # set an icon for the tooltip\n"
" tooltip.set_icon_from_stock(\"gtk-undo\", Gtk.IconSize.MENU)\n"
" # show the tooltip\n"
" return True\n"
@@ -53442,6 +50350,167 @@ msgstr "이 예제는 <link xref=\"toolbar.vala\">도구 모음</link> 예제로
#. (itstool) path: section/code
#: C/tooltip.vala.page:31
#, no-wrap
+#| msgid ""
+#| "/* This is the Window */\n"
+#| "class MyWindow : Gtk.ApplicationWindow {\n"
+#| "\n"
+#| "\t/* Instance variables belonging to the window */\n"
+#| "\tGtk.Toolbar toolbar;\n"
+#| "\tGtk.ToolButton new_button;\n"
+#| "\tGtk.ToolButton open_button;\n"
+#| "\tGtk.ToolButton undo_button;\n"
+#| "\tGtk.ToolButton fullscreen_button;\n"
+#| "\tGtk.ToolButton leave_fullscreen_button;\n"
+#| "\n"
+#| "\t/* Constructor */\n"
+#| "\tinternal MyWindow (MyApplication app) {\n"
+#| "\t\tObject (application: app, title: \"Toolbar with Tooltips Example\");\n"
+#| "\n"
+#| "\t\tthis.set_default_size (400, 200);\n"
+#| "\t\tvar grid = new Gtk.Grid ();\n"
+#| "\t\tthis.add (grid);\n"
+#| "\t\tgrid.show ();\n"
+#| "\n"
+#| "\t\tcreate_toolbar ();\n"
+#| "\t\ttoolbar.set_hexpand (true);\n"
+#| "\t\tgrid.attach (toolbar, 0, 0, 1, 1);\n"
+#| "\t\ttoolbar.show ();\n"
+#| "\n"
+#| "\t\t/* create the \"undo\" window action action */\n"
+#| "\t\tvar undo_action = new SimpleAction (\"undo\", null);\n"
+#| "\t\tundo_action.activate.connect (undo_callback);\n"
+#| "\t\tthis.add_action (undo_action);\n"
+#| "\n"
+#| "\t\t/* create the \"fullscreen\" window action */\n"
+#| "\t\tvar fullscreen_action = new SimpleAction (\"fullscreen\", null);\n"
+#| "\t\tfullscreen_action.activate.connect (fullscreen_callback);\n"
+#| "\t\tthis.add_action (fullscreen_action);\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* Callback for query_tooltip signal */\n"
+#| "\tbool undo_tooltip_callback (int x, int y, bool keyboard_tooltip, Gtk.Tooltip tooltip) {\n"
+#| "\n"
+#| "\t\t/* set the text for the tooltip */\n"
+#| " \ttooltip.set_text (\"Undo your last action\");\n"
+#| "\t\t\n"
+#| "\t\t/* set an icon fot the tooltip */\n"
+#| "\t\ttooltip.set_icon_from_stock(\"gtk-undo\", Gtk.IconSize.MENU);\n"
+#| "\n"
+#| " \t/* show the tooltip */\n"
+#| " \treturn true;\n"
+#| "\t}\n"
+#| "\n"
+#| "\t/* This function creates the toolbar, its ToolButtons,\n"
+#| "\t * and assigns the actions names to the ToolButtons.*/\n"
+#| "\tvoid create_toolbar () {\n"
+#| "\t\ttoolbar = new Gtk.Toolbar ();\n"
+#| "\t\ttoolbar.get_style_context ().add_class (Gtk.STYLE_CLASS_PRIMARY_TOOLBAR);\n"
+#| "\n"
+#| "\t\tnew_button = new Gtk.ToolButton.from_stock (Gtk.Stock.NEW);\n"
+#| "\n"
+#| "\t\t/* tooltip with text */\n"
+#| "\t\tnew_button.set_tooltip_text (\"Create a new file\");\n"
+#| "\n"
+#| "\t\tnew_button.is_important = true; //decides whether to show the label\n"
+#| "\t\ttoolbar.add (new_button);\n"
+#| "\t\tnew_button.show ();\n"
+#| "\t\tnew_button.action_name = \"app.new\";\n"
+#| "\n"
+#| "\t\topen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.OPEN);\n"
+#| "\n"
+#| "\t\t/* a tooltip using Pango markup language */\n"
+#| "\t\topen_button.set_tooltip_markup (\"Open an <i>existing</i> file\");\n"
+#| "\n"
+#| "\t\topen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (open_button);\n"
+#| "\t\topen_button.show ();\n"
+#| "\t\topen_button.action_name = \"app.open\";\n"
+#| "\n"
+#| "\t\tundo_button = new Gtk.ToolButton.from_stock (Gtk.Stock.UNDO);\n"
+#| "\t\n"
+#| "\t\t/* For a tooltip to have an image, first we must set_has_tooltip to be 'true' */\t\n"
+#| "\t\t(undo_button as Gtk.Widget).set_has_tooltip (true);\n"
+#| "\n"
+#| "\t\t/* Connect the query_tooltip signal to the callback */\n"
+#| "\t\tundo_button.query_tooltip.connect (undo_tooltip_callback);\n"
+#| "\t\n"
+#| "\t\tundo_button.is_important = true;\n"
+#| "\t\ttoolbar.add (undo_button);\n"
+#| "\t\tundo_button.show ();\n"
+#| "\t\tundo_button.action_name = \"win.undo\";\n"
+#| "\n"
+#| "\t\tfullscreen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.FULLSCREEN);\n"
+#| "\t\tfullscreen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (fullscreen_button);\n"
+#| "\t\tfullscreen_button.show ();\n"
+#| "\t\tfullscreen_button.action_name = \"win.fullscreen\";\n"
+#| "\n"
+#| "\t\tleave_fullscreen_button = new Gtk.ToolButton.from_stock (Gtk.Stock.LEAVE_FULLSCREEN)\n"
+#| ";\n"
+#| "\t\tleave_fullscreen_button.is_important = true;\n"
+#| "\t\ttoolbar.add (leave_fullscreen_button);\n"
+#| "\n"
+#| "\t\tleave_fullscreen_button.action_name = \"win.fullscreen\";\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid undo_callback (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\t\tprint (\"You clicked \\\"Undo\\\".\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid fullscreen_callback (SimpleAction simple, Variant? parameter) {\n"
+#| "\t\tif ((this.get_window ().get_state () & Gdk.WindowState.FULLSCREEN) != 0) {\n"
+#| "\t\t\tthis.unfullscreen ();\n"
+#| "\t\t\tleave_fullscreen_button.hide ();\n"
+#| "\t\t\tfullscreen_button.show ();\n"
+#| "\t\t}\n"
+#| "\t\telse {\n"
+#| "\t\t\tthis.fullscreen ();\n"
+#| "\t\t\tfullscreen_button.hide ();\n"
+#| "\t\t\tleave_fullscreen_button.show ();\n"
+#| "\t\t}\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* This is the application */\n"
+#| "class MyApplication : Gtk.Application {\n"
+#| "\tprotected override void activate () {\n"
+#| "\t\tnew MyWindow (this).show ();\n"
+#| "\t}\n"
+#| "\n"
+#| "\tprotected override void startup () {\n"
+#| "\t\tbase.startup ();\n"
+#| "\n"
+#| "\t\t/* Create the \"new\" action and add it to the app*/\n"
+#| "\t\tvar new_action = new SimpleAction (\"new\", null);\n"
+#| "\t\tnew_action.activate.connect (new_callback);\n"
+#| "\t\tthis.add_action (new_action);\n"
+#| "\n"
+#| "\t\t/* Create the \"open\" action, and add it to the app */\n"
+#| "\t\tvar open_action = new SimpleAction (\"open\", null);\n"
+#| "\t\topen_action.activate.connect (open_callback);\n"
+#| "\t\tthis.add_action (open_action);\n"
+#| "\n"
+#| "\t\t/* You could also add the action to the app menu\n"
+#| "\t\t * if you wanted to.\n"
+#| "\t\t */\n"
+#| "\t\t//var menu = new Menu ();\n"
+#| "\t\t//menu.append (\"New\", \"app.new\");\n"
+#| "\t\t//this.app_menu = menu;\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid new_callback (SimpleAction action, Variant? parameter) {\n"
+#| "\t\tprint (\"You clicked \\\"New\\\".\\n\");\n"
+#| "\t}\n"
+#| "\n"
+#| "\tvoid open_callback (SimpleAction action, Variant? parameter) {\n"
+#| "\t\t\tprint (\"You clicked \\\"Open\\\".\\n\");\n"
+#| "\t}\n"
+#| "}\n"
+#| "\n"
+#| "/* The main function creates the application and runs it. */\n"
+#| "int main (string[] args) {\n"
+#| "\treturn new MyApplication ().run (args);\n"
+#| "}\n"
msgid ""
"/* This is the Window */\n"
"class MyWindow : Gtk.ApplicationWindow {\n"
@@ -53485,7 +50554,7 @@ msgid ""
"\t\t/* set the text for the tooltip */\n"
" \ttooltip.set_text (\"Undo your last action\");\n"
"\t\t\n"
-"\t\t/* set an icon fot the tooltip */\n"
+"\t\t/* set an icon for the tooltip */\n"
"\t\ttooltip.set_icon_from_stock(\"gtk-undo\", Gtk.IconSize.MENU);\n"
"\n"
" \t/* show the tooltip */\n"
@@ -53646,7 +50715,7 @@ msgstr ""
"\t\t/* set the text for the tooltip */\n"
" \ttooltip.set_text (\"Undo your last action\");\n"
"\t\t\n"
-"\t\t/* set an icon fot the tooltip */\n"
+"\t\t/* set an icon for the tooltip */\n"
"\t\ttooltip.set_icon_from_stock(\"gtk-undo\", Gtk.IconSize.MENU);\n"
"\n"
" \t/* show the tooltip */\n"
@@ -55117,158 +52186,6 @@ msgstr "마지막으로 TreeViewExample 클래스의 새 인스턴스를 만들
#. (itstool) path: section/code
#: C/treeview_simple_liststore.js.page:268
#, no-wrap
-#| msgid ""
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const GObject = imports.gi.GObject;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "const Pango = imports.gi.Pango;\n"
-#| "\n"
-#| "const TreeViewExample = new Lang.Class({\n"
-#| " Name: 'TreeView Example with Simple ListStore',\n"
-#| "\n"
-#| " // Create the application itself\n"
-#| " _init: function() {\n"
-#| " this.application = new Gtk.Application({\n"
-#| " application_id: 'org.example.jstreeviewsimpleliststore'\n"
-#| " });\n"
-#| "\n"
-#| " // Connect 'activate' and 'startup' signals to the callback functions\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " this.application.connect('startup', Lang.bind(this, this._onStartup));\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'activate' signal presents window when active\n"
-#| " _onActivate: function() {\n"
-#| " this._window.present();\n"
-#| " },\n"
-#| "\n"
-#| " // Callback function for 'startup' signal builds the UI\n"
-#| " _onStartup: function() {\n"
-#| " this._buildUI ();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " // Build the application's UI\n"
-#| " _buildUI: function() {\n"
-#| "\n"
-#| " // Create the application window\n"
-#| " this._window = new Gtk.ApplicationWindow({\n"
-#| " application: this.application,\n"
-#| " window_position: Gtk.WindowPosition.CENTER,\n"
-#| " default_height: 250,\n"
-#| " default_width: 100,\n"
-#| " border_width: 20,\n"
-#| " title: \"My Phone Book\"});\n"
-#| "\n"
-#| " // Create the underlying liststore for the phonebook\n"
-#| " this._listStore = new Gtk.ListStore ();\n"
-#| " this._listStore.set_column_types ([\n"
-#| " GObject.TYPE_STRING,\n"
-#| " GObject.TYPE_STRING,\n"
-#| " GObject.TYPE_STRING,\n"
-#| " GObject.TYPE_STRING]);\n"
-#| "\n"
-#| " // Data to go in the phonebook\n"
-#| " let phonebook =\n"
-#| " [{ name: \"Jurg\", surname: \"Billeter\", phone: \"555-0123\",\n"
-#| " description: \"A friendly person.\"},\n"
-#| " { name: \"Johannes\", surname: \"Schmid\", phone: \"555-1234\",\n"
-#| " description: \"Easy phone number to remember.\"},\n"
-#| " { name: \"Julita\", surname: \"Inca\", phone: \"555-2345\",\n"
-#| " description: \"Another friendly person.\"},\n"
-#| " { name: \"Javier\", surname: \"Jardon\", phone: \"555-3456\",\n"
-#| " description: \"Bring fish for his penguins.\"},\n"
-#| " { name: \"Jason\", surname: \"Clinton\", phone: \"555-4567\",\n"
-#| " description: \"His cake's not a lie.\"},\n"
-#| " { name: \"Random J.\", surname: \"Hacker\", phone: \"555-5678\",\n"
-#| " description: \"Very random!\"}];\n"
-#| "\n"
-#| " // Put the data in the phonebook\n"
-#| " for (let i = 0; i < phonebook.length; i++ ) {\n"
-#| " let contact = phonebook [i];\n"
-#| " this._listStore.set (this._listStore.append(), [0, 1, 2, 3],\n"
-#| " [contact.name, contact.surname, contact.phone, contact.description]);\n"
-#| " }\n"
-#| "\n"
-#| " // Create the treeview\n"
-#| " this._treeView = new Gtk.TreeView ({\n"
-#| " expand: true,\n"
-#| " model: this._listStore });\n"
-#| "\n"
-#| " // Create the columns for the address book\n"
-#| " let firstName = new Gtk.TreeViewColumn ({ title: \"First Name\" });\n"
-#| " let lastName = new Gtk.TreeViewColumn ({ title: \"Last Name\" });\n"
-#| " let phone = new Gtk.TreeViewColumn ({ title: \"Phone Number\" });\n"
-#| "\n"
-#| " // Create a cell renderer for when bold text is needed\n"
-#| " let bold = new Gtk.CellRendererText ({\n"
-#| " weight: Pango.Weight.BOLD });\n"
-#| "\n"
-#| " // Create a cell renderer for normal text\n"
-#| " let normal = new Gtk.CellRendererText ();\n"
-#| "\n"
-#| " // Pack the cell renderers into the columns\n"
-#| " firstName.pack_start (bold, true);\n"
-#| " lastName.pack_start (normal, true);\n"
-#| " phone.pack_start (normal, true);\n"
-#| "\n"
-#| " // Set each column to pull text from the TreeView's model\n"
-#| " firstName.add_attribute (bold, \"text\", 0);\n"
-#| " lastName.add_attribute (normal, \"text\", 1);\n"
-#| " phone.add_attribute (normal, \"text\", 2);\n"
-#| "\n"
-#| " // Insert the columns into the treeview\n"
-#| " this._treeView.insert_column (firstName, 0);\n"
-#| " this._treeView.insert_column (lastName, 1);\n"
-#| " this._treeView.insert_column (phone, 2);\n"
-#| "\n"
-#| " // Create the label that shows details for the name you select\n"
-#| " this._label = new Gtk.Label ({ label: \"\" });\n"
-#| "\n"
-#| " // Get which item is selected\n"
-#| " this.selection = this._treeView.get_selection();\n"
-#| "\n"
-#| " // When something new is selected, call _on_changed\n"
-#| " this.selection.connect ('changed', Lang.bind (this, this._onSelectionChanged));\n"
-#| "\n"
-#| " // Create a grid to organize everything in\n"
-#| " this._grid = new Gtk.Grid;\n"
-#| "\n"
-#| " // Attach the treeview and label to the grid\n"
-#| " this._grid.attach (this._treeView, 0, 0, 1, 1);\n"
-#| " this._grid.attach (this._label, 0, 1, 1, 1);\n"
-#| "\n"
-#| " // Add the grid to the window\n"
-#| " this._window.add (this._grid);\n"
-#| "\n"
-#| " // Show the window and all child widgets\n"
-#| " this._window.show_all();\n"
-#| " },\n"
-#| "\n"
-#| "\n"
-#| "\n"
-#| " _onSelectionChanged: function () {\n"
-#| "\n"
-#| " // Grab a treeiter pointing to the current selection\n"
-#| " let [ isSelected, model, iter ] = this.selection.get_selected();\n"
-#| "\n"
-#| " // Set the label to read off the values stored in the current selection\n"
-#| " this._label.set_label (\"\\n\" +\n"
-#| " this._listStore.get_value (iter, 0) + \" \" +\n"
-#| " this._listStore.get_value (iter, 1) + \" \" +\n"
-#| " this._listStore.get_value (iter, 2) + \"\\n\" +\n"
-#| " this._listStore.get_value (iter, 3));\n"
-#| "\n"
-#| " }\n"
-#| "\n"
-#| "});\n"
-#| "\n"
-#| "// Run the application\n"
-#| "let app = new TreeViewExample ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"#!/usr/bin/gjs\n"
"\n"
@@ -55604,91 +52521,6 @@ msgstr ""
#. (itstool) path: section/code
#: C/treeview_simple_liststore.py.page:32
#, no-wrap
-#| msgid ""
-#| "from gi.repository import Gtk\n"
-#| "from gi.repository import Pango\n"
-#| "import sys\n"
-#| "\n"
-#| "columns = [\"First Name\",\n"
-#| " \"Last Name\",\n"
-#| " \"Phone Number\"]\n"
-#| "\n"
-#| "phonebook = [[\"Jurg\", \"Billeter\", \"555-0123\"],\n"
-#| " [\"Johannes\", \"Schmid\", \"555-1234\"],\n"
-#| " [\"Julita\", \"Inca\", \"555-2345\"],\n"
-#| " [\"Javier\", \"Jardon\", \"555-3456\"],\n"
-#| " [\"Jason\", \"Clinton\", \"555-4567\"],\n"
-#| " [\"Random J.\", \"Hacker\", \"555-5678\"]]\n"
-#| "\n"
-#| "\n"
-#| "class MyWindow(Gtk.ApplicationWindow):\n"
-#| "\n"
-#| " def __init__(self, app):\n"
-#| " Gtk.Window.__init__(self, title=\"My Phone Book\", application=app)\n"
-#| " self.set_default_size(250, 100)\n"
-#| " self.set_border_width(10)\n"
-#| "\n"
-#| " # the data in the model (three strings for each row, one for each\n"
-#| " # column)\n"
-#| " listmodel = Gtk.ListStore(str, str, str)\n"
-#| " # append the values in the model\n"
-#| " for i in range(len(phonebook)):\n"
-#| " listmodel.append(phonebook[i])\n"
-#| "\n"
-#| " # a treeview to see the data stored in the model\n"
-#| " view = Gtk.TreeView(model=listmodel)\n"
-#| " # for each column\n"
-#| " for i in range(len(columns)):\n"
-#| " # cellrenderer to render the text\n"
-#| " cell = Gtk.CellRendererText()\n"
-#| " # the text in the first column should be in boldface\n"
-#| " if i == 0:\n"
-#| " cell.props.weight_set = True\n"
-#| " cell.props.weight = Pango.Weight.BOLD\n"
-#| " # the column is created\n"
-#| " col = Gtk.TreeViewColumn(columns[i], cell, text=i)\n"
-#| " # and it is appended to the treeview\n"
-#| " view.append_column(col)\n"
-#| "\n"
-#| " # when a row is selected, it emits a signal\n"
-#| " view.get_selection().connect(\"changed\", self.on_changed)\n"
-#| "\n"
-#| " # the label we use to show the selection\n"
-#| " self.label = Gtk.Label()\n"
-#| " self.label.set_text(\"\")\n"
-#| "\n"
-#| " # a grid to attach the widgets\n"
-#| " grid = Gtk.Grid()\n"
-#| " grid.attach(view, 0, 0, 1, 1)\n"
-#| " grid.attach(self.label, 0, 1, 1, 1)\n"
-#| "\n"
-#| " # attach the grid to the window\n"
-#| " self.add(grid)\n"
-#| "\n"
-#| " def on_changed(self, selection):\n"
-#| " # get the model and the iterator that points at the data in the model\n"
-#| " (model, iter) = selection.get_selected()\n"
-#| " # set the label to a new value depending on the selection\n"
-#| " self.label.set_text(\"\\n %s %s %s\" %\n"
-#| " (model[iter][0], model[iter][1], model[iter][2]))\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 ""
"from gi.repository import Gtk\n"
"from gi.repository import Pango\n"
@@ -57178,11 +54010,12 @@ 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 overview 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 새 파일이 필요합니다. autotool 파일을 뜯는건 좀 복잡합니다. 자세한 내용은 여러 곳에서 찾아볼 수 있는데, "
-"<link href=\"http://en.wikipedia.org/wiki/GNU_build_system\">위키피디아</link> 글이 주제를 살펴보기에 좋습니다."
+"autotools로 폴더에 여러 파일을 넣는건 조금 어렵습니다. .desktop 파일, autogen.sh, Makefile.am, configure.ac, 새 "
+"myapp.sh.in 파일이 필요합니다. autotool 파일을 뜯어보는건 좀 복잡한 부분입니다. 자세한 내용은 여러 곳에서 찾아볼 "
+"수 있는데, <link href=\"http://en.wikipedia.org/wiki/GNU_build_system\">위키피디아 글</link>이 내용을 살펴보기에 좋"
+"습니다."
#. (itstool) path: item/p
#. (itstool) path: section/p
@@ -57414,7 +54247,7 @@ msgid ""
"useful you need to install the icons in correct places and that is done by the install-icons: bit"
msgstr ""
"#icons in the application 주석 다음에는 프로그램에서 활용할 아이콘이 있습니다. 이 항목을 쓸 수 있으려면 아이콘을 올"
-"바른 위치에 설치해야 하는데, 이 과정은 install-icons: 부분에서 처리할 수 있습니다."
+"바른 위치에 설치해야 하는데, 이 과정은 install-icons: 부분에서 처리할 수 있습니다"
#. (itstool) path: section/code
#: C/weatherAutotools.js.page:132
@@ -57472,7 +54305,7 @@ msgid ""
"application #the application icon"
msgstr ""
"autotools를 활용하면 .desktop 파일과 Makefile.am 파일을 약간 바꿔야합니다. desktop 파일에는 Icon=weather-icon으로 "
-"아이콘 이름을 바꿔주십시오. Makefile.am 파일에는 #the application icon을 적고 그 아래에 다음 두 줄을 넣으십시오."
+"아이콘 이름을 바꿔주십시오. Makefile.am 파일에는 #the application icon을 적고 그 아래에 다음 두 줄을 넣으십시오"
#. (itstool) path: section/p
#: C/weatherAutotools.js.page:148
@@ -58142,50 +54975,6 @@ msgstr "GMenu 지원 기능이 필요하면 <link xref=\"GtkApplicationWindow.js
#. (itstool) path: page/code
#: C/window.js.page:33
#, no-wrap
-#| msgid ""
-#| "\n"
-#| "#!/usr/bin/gjs\n"
-#| "\n"
-#| "const Gio = imports.gi.Gio;\n"
-#| "const GLib = imports.gi.GLib;\n"
-#| "const Gtk = imports.gi.Gtk;\n"
-#| "const Lang = imports.lang;\n"
-#| "\n"
-#| "const Application = new Lang.Class ({\n"
-#| " Name: 'Application',\n"
-#| "\n"
-#| " //create the application\n"
-#| " _init: function () {\n"
-#| " this.application = new Gtk.Application ({\n"
-#| " application_id: 'org.example.myapp',\n"
-#| " flags: Gio.ApplicationFlags.FLAGS_NONE\n"
-#| " });\n"
-#| "\n"
-#| " this.application.connect('activate', Lang.bind(this, this._onActivate));\n"
-#| " },\n"
-#| "\n"
-#| " //callback function for 'activate' signal\n"
-#| " _onActivate: function () {\n"
-#| "\n"
-#| " MyWindow = new Gtk.Window({type: Gtk.WindowType.TOPLEVEL});\n"
-#| " MyWindow.title = \"Welcome to GNOME\";\n"
-#| "\n"
-#| " /* Here are a few ways we can customize our window.\n"
-#| " Try uncommenting them or changing their values! */\n"
-#| " //MyWindow.set_default_size (400,200);\n"
-#| " //MyWindow.set_has_resize_grip (false);\n"
-#| " //MyWindow.set_opacity (0.5);\n"
-#| " //MyWindow.maximize ();\n"
-#| "\n"
-#| " //show the window and all child widgets (none in this case)\n"
-#| " MyWindow.show_all();\n"
-#| " this.application.add_window(MyWindow);\n"
-#| " }\n"
-#| "});\n"
-#| "\n"
-#| "//run the application\n"
-#| "let app = new Application ();\n"
-#| "app.application.run (ARGV);\n"
msgid ""
"\n"
"#!/usr/bin/gjs\n"
@@ -59295,6 +56084,13 @@ msgstr ""
"c#n871\"><code>GTlsConnectionGnutlsSource</code></link>는 메인 스레드와 TLS 처리 블로킹을 수행하는 TLS 워커 스레드"
"를 동기화합니다."
+#~ msgid ""
+#~ "const Lang = imports.lang;\n"
+#~ "const Gtk = imports.gi.Gtk;"
+#~ msgstr ""
+#~ "const Lang = imports.lang;\n"
+#~ "const Gtk = imports.gi.Gtk;"
+
#~ msgid ""
#~ "\n"
#~ "const WelcomeToTheGrid = new Lang.Class({\n"
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]