Compare commits

...

199 Commits

Author SHA1 Message Date
Sabri Ünal
1b15f9401e Update Turkish translation 2024-07-29 20:40:28 +00:00
Daniel
0f2d0b107c Updated Spanish translation 2024-06-26 14:13:41 +02:00
Sabri Ünal
eb150285d5 Update Turkish translation 2024-03-28 14:36:36 +00:00
Baurzhan Muftakhidinov
0c953a4a78 Update Kazakh translation 2024-03-08 05:55:41 +00:00
Andre Klapper
eca9ec777c DOAP: Replace defunct mailing list with GNOME Discourse URL
Also comment tvb as maintainer because pre-commit check says:
Invalid gnome:userid property (tvb is not a member of the gnomecvs group)
2024-01-12 09:06:27 +01:00
Sabri Ünal
7f3c0ce1af Update Turkish translation 2023-10-29 11:23:33 +00:00
Florentina Mușat
9d40daf16a Update Romanian translation 2023-10-21 13:29:31 +00:00
Sabri Ünal
f665d1e2d1 Update Turkish translation 2023-10-16 13:21:02 +00:00
Daniel Mustieles
508379bd4a Updated Spanish translation 2023-09-21 11:30:44 +02:00
Daniel Rusek
c91a7d323c Update Czech translation 2023-09-07 23:12:30 +00:00
Sabri Ünal
15fb026463 Update Turkish translation 2023-08-11 11:27:22 +00:00
Luming Zh
501aae6800 Update Chinese (China) translation 2023-08-11 01:03:22 +00:00
Daniel Mustieles
f0b23aecaf Updated Spanish translation 2023-07-19 16:09:40 +02:00
Asier Sarasua Garmendia
62122a144f Update Basque translation 2023-04-09 05:51:12 +00:00
Andre Klapper
fb66dc9129 desktop: Remove obsolete Bugzilla entries 2023-03-04 17:12:35 +01:00
Aurimas Černius
dbb6d7daa2 Update Lithuanian translation 2023-02-26 20:55:21 +00:00
Jürgen Benvenuti
c1952e05df Update German translation 2023-02-01 09:32:36 +00:00
Zurab Kargareteli
1fbca367cf Update Georgian translation 2022-10-01 10:10:41 +00:00
Matt Turner
fa7224e48e build: Use GNOME module post_install() 2022-09-26 20:20:53 +00:00
Мирослав Николић
a873cf985a Update Serbian translation 2022-09-25 07:46:25 +00:00
Matej Urbančič
83227a7826 Update Slovenian translation 2022-09-22 20:52:04 +00:00
Enrico Nicoletto
bc0a099360 Update Brazilian Portuguese translation 2022-09-10 12:42:56 +00:00
Sabri Ünal
8fda8dfc2c Update Turkish translation 2022-09-03 06:04:30 +00:00
Balázs Úr
43a3ebbc77 Update Hungarian translation 2022-09-01 23:23:40 +00:00
Luna Jernberg
34e82ccc35 Update Swedish translation 2022-09-01 17:00:23 +00:00
Piotr Drąg
1f8ff4d35e Update Polish translation 2022-08-14 15:54:25 +02:00
Aleksandr Melman
21e7cd6cf0 Update Russian translation 2022-08-13 11:29:47 +00:00
Hugo Carvalho
a5a27dc96f Update Portuguese translation 2022-08-12 11:21:53 +00:00
Yuri Chornoivan
e2d223ba98 Update Ukrainian translation 2022-08-11 05:54:30 +00:00
Kukuh Syafaat
e0f81371fd Update Indonesian translation 2022-08-11 04:19:53 +00:00
Piotr Drąg
e8df54bcdc Update POTFILES.in 2022-08-10 23:32:52 +02:00
Juan Pablo Ugarte
b3823efd0a Rolling last release! 2022-08-10 16:24:25 -04:00
Juan Pablo Ugarte
3970e9706c GladeWindow: Remove survey
We do not need to run the survey anymore since there is not plan for further development.
2022-08-10 16:24:25 -04:00
Juan Pablo Ugarte
2a6f53bdc5 Remove Guido memorial 2022-08-10 16:24:25 -04:00
Juan Pablo Ugarte
3f3b6bb456 Tests: fix regression in toplevel-order 2022-08-10 16:24:25 -04:00
Марко Костић
690e264da4 Update Serbian translation 2022-08-06 14:30:09 +00:00
Asier Sarasua Garmendia
5bead2812d Update Basque translation 2022-07-31 16:51:29 +00:00
Nart Tlisha
705d06cbf8 Update Abkhazian translation 2022-07-28 19:03:46 +00:00
Zurab Kargareteli
0f4a490653 Update Georgian translation 2022-07-26 06:43:04 +00:00
Zurab Kargareteli
bf4e8ff8aa Update Georgian translation 2022-07-26 06:42:08 +00:00
Nart Tlisha
60e1440215 Add Abkhazian translation 2022-07-25 13:53:26 +00:00
Emin Tufan Çetin
69f8a2c744 Update Turkish translation 2022-07-22 14:40:18 +00:00
Zurab Kargareteli
5c96e5a504 Add Georgian translation 2022-07-17 17:46:30 +00:00
Kukuh Syafaat
38e162b957 Update Indonesian translation 2022-07-10 09:38:08 +00:00
Piotr Drąg
8518979622 Update Polish translation 2022-06-12 14:58:21 +02:00
Yuri Chornoivan
4a8822c3bc Update Ukrainian translation 2022-06-03 06:25:58 +00:00
Irénée THIRION
21e0820f14 Update French translation 2022-05-24 09:34:33 +00:00
Daniel Mustieles
6fca410949 Updated Spanish translation 2022-05-19 10:24:28 +02:00
Charles Monzat
4154a7cb70 Update French translation 2022-05-02 11:19:17 +00:00
Luming Zh
89ef7392de Update Chinese (China) translation 2022-04-25 16:46:02 +00:00
Aleksandr Melman
1773b184fc Update Russian translation 2022-04-24 16:42:24 +00:00
Hugo Carvalho
b13ee97b63 Update Portuguese translation 2022-04-22 18:13:37 +00:00
Rafael Fontenelle
fca50e9c4f Update Brazilian Portuguese translation 2022-04-21 22:18:42 +00:00
Yuri Chornoivan
99adde9366 Update Ukrainian translation 2022-04-21 14:32:35 +00:00
crvi
07bc78354b GladeAttributes: 'Clear' action now clears only selected attributes
'Clear' action in "Setup Text Attributes" dialog now clears only
selected attributes, rather than the previous behaviour of clearing all
attributes.
2022-04-21 13:43:08 +00:00
Sabri Ünal
31909a3c8c Add new menu entry: User Manuel 2022-04-21 10:41:16 -03:00
Caolán McNamara
fbebfdbf0d sync draw-indicator on setting xalign
so for GtkCheckButtons/GtkRadioButtons the label is shown in glade's
inline preview with the same alignment that GTK will use when really
renderering it

https://gitlab.gnome.org/GNOME/glade/-/issues/502
2022-04-21 10:31:12 -03:00
Osamu Aoki
49c570076f Drop unused definition
Signed-off-by: Osamu Aoki <osamu@debian.org>
2022-04-21 12:53:35 +00:00
Osamu Aoki
308c5bf0a3 Drop overzealous check using only the first child
This fixes issue #499 and #509

* Can't add GtkHeaderBar to window with existing widgets / containers
* Cannot add GtkBox or other widgets inside a GtkPopoverMenu

Please note:

bin_child = gtk_bin_get_child (GTK_BIN (container))) was getting the
first child only.  Checking if the first child is placeholder causes
false positives.

glade_util_count_placeholders (gwidget) recursively checks placeholder.

Signed-off-by: Osamu Aoki <osamu@debian.org>
2022-04-21 12:53:35 +00:00
Mike Gilbert
efdd5338b0 Remove duplicate entry for 'da' from help/LINGUAS 2022-04-21 12:44:27 +00:00
Mike Gilbert
6da47128e8 meson: i18n.merge_file() does not take a positional argument 2022-04-21 12:44:27 +00:00
Marek Černocký
8d52d1ec3c Updated Czech translation 2022-03-21 14:55:20 +01:00
Sergej A
ce2b1d4d49 Update Russian translation 2022-03-18 21:32:04 +00:00
Anders Jonsson
9015b90ca7 Update Swedish translation 2022-03-12 11:41:15 +00:00
Boyuan Yang
662de4d5f4 Update Chinese (China) translation 2022-01-31 03:35:59 +00:00
Alan Mortensen
1c710c6ab3 Updated Danish translation 2022-01-26 18:13:53 +01:00
Kukuh Syafaat
09c6d3a0fb Update Indonesian translation 2021-12-22 09:10:24 +00:00
Quentin PAGÈS
f717236c2a Update Occitan translation 2021-12-02 20:35:32 +00:00
Hugo Carvalho
f7349aeb9b Update Portuguese translation 2021-11-19 17:54:55 +00:00
Quentin PAGÈS
2e85a7157c Update Occitan translation 2021-11-10 18:43:34 +00:00
Andre Klapper
6a9a8a94ce Fix broken markup in Basque help translation 2021-10-10 19:30:53 +02:00
Asier Sarasua Garmendia
4d0f844298 Update Basque translation 2021-10-10 08:02:37 +00:00
Ask Hjorth Larsen
9381e38e1a Updated Danish translation 2021-09-17 15:28:22 +02:00
Daniel Mustieles
ad1ec23572 Updated Spanish translation 2021-09-15 08:28:20 +02:00
Andika Triwidada
74b7bfe4f1 Update Indonesian translation 2021-09-07 05:27:04 +00:00
Asier Sarasua Garmendia
5e46bd65ab Update Basque translation 2021-08-21 08:43:13 +00:00
Anders Jonsson
9c625a3a18 Update Swedish translation 2021-08-11 23:20:39 +00:00
Jordi Mas
ac548b066a Update Catalan translation 2021-08-11 15:23:22 +02:00
Peter Maatman
9db1fba1fa GladeProject: Segfault in gnome-builder when widget doesn't have a name 2021-07-13 12:17:51 +00:00
Jonathan Paugh
46b000c70f Allow xsltproc to download files
These files are required to build the man pages; unfortunately, xsltproc
does not appear to cache these files, so this may not be the best
solution.
2021-07-12 12:53:08 +00:00
Jonathan Paugh
01aaf9fe92 Add required dependencies to the README
Both the gettext package and the itstools package are required to run
ninja install without errors
2021-07-12 12:53:08 +00:00
Jonathan Paugh
4560bd511a Update Markdown formatting in CONTRIBUTING.md 2021-07-09 22:02:06 +00:00
jmoorecec
c120bb6000 Output .glade files saved in Windows containing Pixbuf widgets with relative paths to image files e.g. ui_graphics/background.png were changed from forward-slash (/) to backslash (\) due to use of GTK macro. E.g. ui_graphics\background.png Then, when the Glade file was loaded in Linux, the Pixbuf widget relative path did not work anymore b/c backslash (\) was not understood. Forward slashes (/) are always understood, so changed always use forward slashes. 2021-07-09 21:13:01 +00:00
Marco Trevisan (Treviño)
eb0429d318 tests: Do not create a file icon when no filename is provided
This would fail otherwise as GFileIcon requires a GFile parameter on
construction.
2021-07-09 21:08:35 +00:00
Marco Trevisan (Treviño)
6cf1d3e11d plugins: Define an invalid but non-null file path as script path
This is following the gjs applications behaviors, setting a valid string
as the script path that will be shown in JS stack traces, even though
won't load a real file through g_file_new_for_commandline_arg()
2021-07-09 21:08:35 +00:00
Boyuan Yang
d145028626 Update Chinese (China) translation 2021-07-09 20:49:48 +00:00
Alexey Rubtsov
ae48095061 Update Russian translation 2021-06-28 10:54:34 +00:00
Jordi Mas
231ca8068f Update Catalan translation 2021-05-28 22:27:27 +02:00
Daniel Mustieles
40b4351a4d Updated Spanish translation 2021-05-10 13:32:59 +02:00
Jordi Mas
a0509db844 Update Catalan translation 2021-05-02 08:10:25 +02:00
Pawan Chitrakar
86b45d9adb Update Nepali translation 2021-04-21 02:27:06 +00:00
Anders Jonsson
3eb08a3904 Update Swedish translation 2021-03-27 20:31:37 +00:00
Hugo Carvalho
3edeee7d5e Update Portuguese translation 2021-03-26 12:55:52 +00:00
Milo Casagrande
d318114420 Update Italian translation 2021-03-15 16:36:31 +00:00
Мирослав Николић
6020649cdc Update Serbian translation 2021-03-06 19:25:42 +00:00
Changwoo Ryu
872dedcbf5 Update Korean translation 2021-03-06 18:13:14 +00:00
Mario Blättermann
3844d403bb Update German translation 2021-03-06 17:32:59 +00:00
Piotr Drąg
04f6d7fe99 Update Polish translation 2021-02-28 14:15:39 +01:00
Charles Monzat
a3b13f5458 Update French translation 2021-02-28 09:49:34 +00:00
Fran Dieguez
4359963d46 Update Galician translation 2021-02-23 23:51:28 +00:00
Emin Tufan Çetin
6c789cd57b Update Turkish translation 2021-02-22 08:16:18 +00:00
Aurimas Černius
6a5faf57df Updated Lithuanian translation 2021-02-21 22:01:46 +02:00
Asier Sarasua Garmendia
847209db15 Update Basque translation 2021-02-20 12:14:36 +00:00
Balázs Úr
0b87230d32 Update Hungarian translation
(cherry picked from commit 94ae2ecab7980a7c499a5e38508036c4f35a74c7)
2021-02-19 23:50:31 +00:00
Zander Brown
23ac766e49 Update British English translation 2021-02-19 14:21:46 +00:00
Rafael Fontenelle
e028153105 Update Brazilian Portuguese translation 2021-02-15 10:16:02 +00:00
Luna Jernberg
f986003817 Update Swedish translation 2021-02-05 23:27:11 +00:00
Kukuh Syafaat
f9cd16ffed Update Indonesian translation 2021-02-02 12:13:51 +00:00
Rafael Fontenelle
c5b99615a9 Update Brazilian Portuguese translation 2021-01-30 23:36:35 +00:00
Matej Urbančič
5bd0787d07 Update Slovenian translation 2021-01-27 20:26:54 +00:00
Matej Urbančič
9709f5f320 Update Slovenian translation 2021-01-27 20:25:14 +00:00
Мирослав Николић
770579f507 Update Serbian translation
(cherry picked from commit 8eb3dec340331b1adf43257ca8146cf8175f6637)
2021-01-23 13:13:21 +00:00
Marek Černocký
a6d131796c Updated Czech translation 2021-01-15 23:09:49 +01:00
Jordi Mas
26bf4c847b Update Catalan translation 2021-01-08 14:49:28 +01:00
Jordi Mas
cdd5538efb Update Catalan translation 2021-01-06 15:58:06 +01:00
Jordi Mas
28ad16ae1c Update Catalan translation 2021-01-03 22:39:57 +01:00
Jordi Mas
effb44c75f Update Catalan translation 2020-12-29 22:05:22 +01:00
Philipp Kiemle
6939ddc7fc Update German translation 2020-12-28 11:32:43 +00:00
Jordi Mas i Hernandez
678e596cb8 Update Catalan translation 2020-12-22 13:00:25 +00:00
Daniel Mustieles
36604cfab8 Updated Spanish translation 2020-12-15 10:27:40 +01:00
Florentina Mușat
6758eaeae2 Update Romanian translation 2020-12-12 18:19:30 +00:00
Daniel Mustieles
8247c1dfa4 Updated Spanish translation 2020-12-02 14:15:50 +01:00
Marek Černocký
e51be8b658 Updated Czech translation 2020-11-28 16:56:27 +01:00
Jordi Mas
89b7a97ecc Update Catalan translation 2020-11-24 13:12:33 +01:00
Juan Pablo Ugarte
4e5cb4c390 GladeWindow: move main menu separator before preferences item
Closes issue #373 "Move separator in hamburger menu one up, to be consistent with other GNOME applications"
2020-11-20 19:31:00 -03:00
Jan Alexander Steffens (heftig)
ba3bc86d54 Python plugin: Fix build against Python 3.9
This basically reverts 6f4fb5672f41201a20e0f879a7d7d7b96f045425,
returning to Meson's `python` module, since the `python-3.8-embed`
dependency obviously only works with Python 3.8.

We're using the `embed` kwarg which was added in Meson 0.53.0, so we
need to bump the minimum `meson_version`.
2020-11-09 17:38:55 +00:00
Pablo Barciela
7ff26ad6bf glade-button-editor: make translatable by default when label is toggled
Fixes https://gitlab.gnome.org/GNOME/glade/-/issues/491
2020-10-27 01:34:37 +01:00
Juan Pablo Ugarte
9411afdbdd Revert "GladeWidget: unset parent and object on rebuild"
This reverts commit 9e66cdfb97a89952e2a58fa702f1841dc302479a.
2020-10-23 18:18:24 -03:00
Juan Pablo Ugarte
cfef90c25b Revert "GladeWidget: fix rebuild() function"
This reverts commit 9827ed69e62475e1fd540ae2a450d6e87d94aab4.
2020-10-23 17:41:45 -03:00
Juan Pablo Ugarte
9827ed69e6 GladeWidget: fix rebuild() function
Remove object from project before extracting children since we clear up
GladeWidget back references for internal children.

Fix issue #484 "Crash with GtkRecentChooserDialog"
2020-10-23 17:02:23 -03:00
Juan Pablo Ugarte
af5e94df9f GladeWindow: disable survey if there is no TLS support
Closses issue #371 "Glade user survey not working (TLS error)"
2020-10-21 21:43:44 -03:00
Juan Pablo Ugarte
81f96c2fb1 Fix maybe uninitialized warnings 2020-10-16 18:22:10 -03:00
Juan Pablo Ugarte
9c09fec141 GladeModelData: remove use of idle functions
Idle functions where causing a crash and do not seem to be needed
anymore since calling them directly seems to work just fine.

Fix issue #194 "Using List Store can result in program crash."
2020-10-14 21:08:18 -03:00
Juan Pablo Ugarte
70a9d4c29f GladeEditorProperty: properly show parentless objects in chooser
Closes issue #53 "Can't choose a FileChooserDialog for a FileChooserButton"
2020-10-14 18:56:41 -03:00
Juan Pablo Ugarte
b4f12e7361 GladeUtil: add guard to glade_util_get_file_mtime()
Closes issue #98
2020-10-09 17:42:30 -03:00
Juan Pablo Ugarte
825d7fb741 GladeUtils: make message dialog text selectable
Closes issue #355 "Make notification text selectable"
2020-10-09 17:11:21 -03:00
Juan Pablo Ugarte
20142e2ad1 Fix windows build on msys
Use -Wl,--export-all-symbols and -Wl,--no-undefined to export
symbols on mingw

GladeApp: use PACKAGE_NAME instead of PACKAGE

Remove copyright symbol from resource files to avoid weird UTF error
building with mingw on msys
2020-10-09 17:11:16 -03:00
Juan Pablo Ugarte
9f4097cd74 GladePropertyDef: do not use setlocale in glade_dtostr()
Windows does not have setlocale() function
2020-10-09 17:09:38 -03:00
Jordi Mas
24aef4fcd7 Update Catalan translation 2020-10-08 16:53:33 +02:00
Juan Pablo Ugarte
7ecce9ea23 Docs: add doc about registering custom types at runtime.
Closes issue #360 "No examples in documentation on using custom catalogues with gtkBuilder"
2020-10-05 21:10:22 -03:00
Juan Pablo Ugarte
a5ac6a9a2a GladeProperty: make i18n_translatable false by default
Only string properties should be translatable by default.

Fix issue #406 "AtkObject::accessible-role should not be translatable"
2020-10-05 20:34:21 -03:00
Juan Pablo Ugarte
767f953294 Fix tests. 2020-10-02 16:47:56 -03:00
Juan Pablo Ugarte
29f75feef7 GladeGtk*: always use connect_object() for parse-finished signal
This ensures the signal will get disconnected if object is finalized.
2020-10-02 16:19:25 -03:00
Juan Pablo Ugarte
7acdd3c6f6 GladeGtkBox: fix glade_gtk_box_post_create
Some widgets with contruct properties like GtkMessageDialog get
rebuilt right after they are created on project loading so we need
to check glade_project_is_loading() intead of GLADE_CREATE_LOAD
and use the object ad the connect data to make sure it gets disconected
if it was the object being rebuilt

Fix issue #479 "Glade 3.36.0 segfaults when opening a file"
2020-10-02 16:18:25 -03:00
Juan Pablo Ugarte
9e66cdfb97 GladeWidget: unset parent and object on rebuild
We need to make sure internal widgets parent and object are unset
while rebuilding to avoid having a GladeWidget with a dead object.
2020-10-02 16:04:51 -03:00
Juan Pablo Ugarte
32e123859d GladeGtkScrolledWindow: fix add_verify()
Respect user_feedback parameter in glade_gtk_scrolled_window_add_child_verify()
2020-09-30 20:06:13 -03:00
Juan Pablo Ugarte
e5b891d5cf GladeGtkWidget: special case GtkScrolledWindow remove parent action
Make sure you can not remove parent if the grand parent is a scrolled window
and the child is not scrollable.

Fix issue #471 "XML not updated after adding element"
2020-09-30 20:06:01 -03:00
Milo Casagrande
3f8275ad80 Update Italian translation
(cherry picked from commit 08ca3fcb736826ccc2a3299a180236c936794d2e)
2020-09-28 10:03:46 +00:00
Juan Pablo Ugarte
f553b839bd GladeGtkLabel: fix color attributes handling
Properly load/save pango color attributes

Fix issue #474 "GtkLabel: setup text attribute issues"
2020-09-25 19:20:46 -03:00
Juan Pablo Ugarte
df807dd151 GladePropertyDef: cleanup color type handling
Cleanup PangoColor and GdkColor handling in make_string_from_gvalue and
make_gvalue_from_string functions.
2020-09-25 19:20:46 -03:00
Juan Pablo Ugarte
8e38e9a5c8 CONTRIBUTING.md: update coding style link 2020-09-25 19:20:46 -03:00
Juan Pablo Ugarte
eec1ef3e71 GladeProjectProperties: fix target version loading
Make sure target version combo gets updated on project load.

Fix issue #480 "version field not always updated in XML"
2020-09-25 16:41:01 -03:00
Juan Pablo Ugarte
c84932343f GladeUtils: fix glade_utils_get_pointer()
Use default pointer device instead of device from current event
since a paste can be triggered by the keyboard.

This fix issue pasing widget with ctrl+v in GtkGrid
2020-09-25 16:31:27 -03:00
Juan Pablo Ugarte
29d16f4b29 GladeProject: cleanup glade_project_command_paste() 2020-09-25 16:31:27 -03:00
Juan Pablo Ugarte
ccd09e9d86 GladeCommand: adjust Box and Grid size automatically
Adjust container size in create and paste command.

Properly fix issue #470 "Widgets of type need placeholders to add children"
2020-09-25 16:31:27 -03:00
Balázs Úr
fe428062ac Update Hungarian translation 2020-09-23 15:48:37 +00:00
Juan Pablo Ugarte
48d6b070d7 Headers cleanup
Add missing copyright notes
2020-09-21 10:00:24 -03:00
Juan Pablo Ugarte
89bf07f696 GladeGtkGrid: fix tests
Fix glade_gtk_grid_add_child() return after adding child to avoid
adding it more than once.
2020-09-19 14:30:27 -03:00
Piotr Drąg
cadacf6b8e Update Polish translation 2020-09-19 12:55:34 +02:00
Yuri Chornoivan
2ca05370ed Update Ukrainian translation 2020-09-19 09:21:28 +00:00
Asier Sarasua Garmendia
679e2fc140 Update Basque translation
(cherry picked from commit c2758d916def9ddef4bc6258aaba6d57331cfb52)
2020-09-19 07:33:06 +00:00
Juan Pablo Ugarte
9b2dcabc01 GladeGtkWidget: Fix add scrolled window issue
Apply packing properties to scrolled window instead of viewport
2020-09-18 22:27:37 -03:00
Juan Pablo Ugarte
f46fa6d9b3 GladeGtkGrid: improve _add() method
Add child to the first placeholder
2020-09-18 21:38:15 -03:00
Juan Pablo Ugarte
060ed58729 GladePopup: improve paste and add here actions
Support adding widgets to GtkBox and GtkGrid even if there are no placeholders

Fix issue #470 "Widgets of type need placeholders to add children"
2020-09-18 21:38:15 -03:00
Juan Pablo Ugarte
a72c4fca91 GladePopup: special case add to box/grid
Increase size of grid/box if there is no space to add a widget in the container

Fix issue #470 "Widgets of type need placeholders to add children"
2020-09-18 21:38:15 -03:00
Juan Pablo Ugarte
5781798ea5 GladeCommand: use glade_widget_get_display_name()
Use display name for messages
2020-09-18 21:38:15 -03:00
Juan Pablo Ugarte
3efb36627f Revert "GtkBox, GtkGrid: support adding widgets even if there is no placeholder"
This reverts commit 3b94aec9d8733ab991d22cf447850c2cf6339fdd.
2020-09-18 21:38:15 -03:00
Fran Dieguez
66950d47f0 Update Galician translation
(cherry picked from commit 5a6ea0dc7c8425345d9cfc30cf8072eedbf3390d)
2020-09-18 23:20:03 +00:00
Juan Pablo Ugarte
d09d5690a1 GladeWindow: use VCS version in development series
Closes issue #472 "gnome-nightly: About dialog should display git commit rev"
2020-09-17 19:35:38 -03:00
Juan Pablo Ugarte
0066ee41bd GladeGtkWidget: add viewport on add scrolled window action
Add a viewport for non scrollable widget when adding a
scrolled window parent.

Fix issue #471 "XML not updated after adding element"
2020-09-16 20:11:10 -03:00
Juan Pablo Ugarte
068528e6ba gtk catalog: add GtkTable to deprecated group 2020-09-16 19:48:20 -03:00
Juan Pablo Ugarte
74760ea31e GladeGtkContainer: improve add-verify
Inform the user it has to increase the size of the container if there is
no more placeholders in it.

Special case GtkBin since Windows can hace a placeholder in the titlebar.
2020-09-16 19:40:30 -03:00
Juan Pablo Ugarte
3b94aec9d8 GtkBox, GtkGrid: support adding widgets even if there is no placeholder
To make things easier you can always add a widget to a box or grid even if
there is no more placeholders.
Adding a widget will automatically increase the box size number or
the grid column count.

Fix issue #470 "Widgets of type need placeholders to add children"
2020-09-16 18:54:08 -03:00
Stephan Woidowski
558a92d60c Update German translation
(cherry picked from commit 30a63acd2254c6ad3d6b0f70a4a5aa4dbf5551f0)
2020-09-15 07:18:20 +00:00
Marek Černocký
9e814e2227 Updated Czech translation 2020-09-15 07:43:30 +02:00
Anders Jonsson
6feebc4654 Update Swedish translation
(cherry picked from commit 920297f03af23cc123b8f772914b5b8e56a81570)
2020-09-14 12:29:26 +00:00
Rafael Fontenelle
e6da9a7ede Update Brazilian Portuguese translation
(cherry picked from commit 4142b6c78e61c9d283ca1db8d2dfc9618876fc3c)
2020-09-14 10:55:17 +00:00
Aurimas Černius
0f1c2db23e Updated Lithuanian translation 2020-09-13 20:09:03 +03:00
Emin Tufan Çetin
49e91c0a4b Update Turkish translation 2020-09-13 11:21:43 +00:00
Kukuh Syafaat
37a2b62f5b Update Indonesian translation
(cherry picked from commit c68d6c88a1fb736309afc9a9b88db007cc3821ea)
2020-09-13 08:10:18 +00:00
Yuri Chornoivan
bcd0d1cd1c Update Ukrainian translation
(cherry picked from commit b3bf5b39b7c920a6abc843085710dafada5ff20e)
2020-09-13 05:51:10 +00:00
Juan Pablo Ugarte
4449499b98 Bump version to devel 2020-09-12 20:15:23 -03:00
Juan Pablo Ugarte
b19d006fff Rolling 3.38 2020-09-12 20:13:58 -03:00
Juan Pablo Ugarte
8258b4fb8f GladeWindow: Add Guido Macchi memorial
Guido was a beloved professor at Rosario National university
who passed away last december.

This is a small recognition in his memory.
2020-09-12 19:28:44 -03:00
Rafael Fontenelle
b11c24a671 Update Brazilian Portuguese translation
(cherry picked from commit aa70e86a18885df251552d84f5b3ed545341ce16)
2020-09-12 21:09:55 +00:00
Baurzhan Muftakhidinov
9a4293194e Update Kazakh translation
(cherry picked from commit 95f29fd6fda9580099884fb979f9dea9d049e7c1)
2020-09-12 13:57:01 +00:00
Ask Hjorth Larsen
75a7631c66 Updated Danish translation 2020-09-12 01:11:22 +02:00
Juan Pablo Ugarte
e490acdc50 Bump glib version dependency 2020-09-09 18:35:56 -03:00
Marek Černocký
9b3a74c3dc Updated Czech help translation 2020-09-09 21:52:15 +02:00
Marek Černocký
f49ebb12fc Updated Czech translation 2020-09-09 09:30:22 +02:00
Tim Sabsch
f13ff85c5c Update German translation
(cherry picked from commit 3a4a0c2488f21979a5e32becfe87b580e543b35d)
2020-09-08 18:21:58 +00:00
Mario Blättermann
489e0e0306 Update German translation
(cherry picked from commit dce9287ebe9530aba386ae9854304f61f4f94656)
2020-09-07 18:08:35 +00:00
Jordi Mas
5f1705b9d5 Update Catalan translation 2020-09-07 16:13:32 +02:00
Gil Forcada
2d29cacb08 Update Catalan translation
(cherry picked from commit e2865e629a95d1722007cfc4385f3a644a687af5)
2020-09-07 10:28:28 +00:00
Balázs Úr
0b9b0f0f40 Update Hungarian translation 2020-09-06 23:06:31 +00:00
Piotr Drąg
04c2340aad Update Polish translation 2020-09-06 16:13:57 +02:00
Ask Hjorth Larsen
8069cc6988 Updated Danish translation 2020-09-06 14:05:40 +02:00
Claude Paroz
34aaeabb0f Update French translation 2020-09-06 11:39:49 +02:00
Anders Jonsson
6454c8f969 Update Swedish translation
(cherry picked from commit df88ff54a2ceb40572adef928baa302b44f01a90)
2020-09-05 10:14:46 +00:00
236 changed files with 81264 additions and 71848 deletions

View File

@ -1,56 +1,61 @@
Glade official git repository is hosted by the GNOME foundation at
gitlab.gnome.org
Mailing List
~~~~~~~~~~~~
Glade discussion takes place on glade-devel-list@gnome.org
To subscribe or to consult archives visit
https://mail.gnome.org/mailman/listinfo/glade-devel-list
Maintainer
============
Glade is looking for a new maintainer, if you are interested please contact us
on gitlab.
GitLab
~~~~~~~~
========
Glade bugs are tracked at
https://gitlab.gnome.org/GNOME/glade
GIT
~~~
===
You can browse the source code at https://gitlab.gnome.org/GNOME/glade
To check out a copy of Glade you can use the following command:
git clone https://gitlab.gnome.org/GNOME/glade.git
Patches
~~~~~~~
=======
Patches must be in the unified format (diff -u) and must include a
ChangeLog entry. Please send all patches to bugzilla.
It is better to use git format-patch command
```
git format-patch HEAD^
```
Coding Style
~~~~~~~~~~~~
Code in Glade should follow the GNOME Programming Guidelines
(http://developer.gnome.org/doc/guides/programming-guidelines/),
basically this means being consistent with the sorrounding code.
============
Code in Glade should follow the GNU style of GNOME Programming Guidelines
(https://developer.gnome.org/programming-guidelines/stable/c-coding-style.html.en),
basically this means being consistent with the surrounding code.
The only exception is that we prefer having braces always on a new line
e.g.:
```
if (...)
{
...
}
```
Note however that a lot of the current codebase still uses the following
style:
```
if (...) {
...
}
```
Over time we'll migrate to the preferred form.
@ -58,11 +63,11 @@ Naming conventions:
- function names should be lowercase and prefixed with the
file name (or, if the function is static and the name too long,
with an abbreviation), e.g:
glade_project_window_my_function ()
gpw_my_loooooooooong_named_fuction ()
`glade_project_window_my_function ()`
`gpw_my_loooooooooong_named_fuction ()`
- variable names should be lowercase and be short but self explanatory;
if you need more than one word use an underscore, e.g:
my_variable
`my_variable`
Also try to order your functions so that prototypes are not needed.

100
NEWS
View File

@ -1,49 +1,105 @@
============
Glade 3.37.0
Glade 3.40.0
============
- Remove survey
- Add user manual menu item (Sabri Ünal)
- 'Clear' action in "Setup Text Attributes" dialog now clears only selected attributes (crvi)
- Fix issue #502 sync draw-indicator on setting xalign (Caolán McNamara)
- Fix issue #499 and #509 "Drop overzealous check using only the first child"
- Fix Segfault in gnome-builder when widget doesn't have a name (Peter Maatman)
- Fix issue #373 "Move separator in hamburger menu one up, to be consistent with other GNOME applications"
- Fix build against Python 3.9
- Fix issue #484 "Crash with GtkRecentChooserDialog"
- Fix issue #194 "Using List Store can result in program crash."
- Fix issue #53 "Can't choose a FileChooserDialog for a FileChooserButton"
- Fix issue #98 #491
- Fix issue #355 "Make notification text selectable"
- Fix windows build on msys
- Fix issue #360 "No examples in documentation on using custom catalogues with gtkBuilder"
- Fix issue #406 "AtkObject::accessible-role should not be translatable"
- Fix issue #479 "Glade 3.36.0 segfaults when opening a file"
- Fix issue #471 "XML not updated after adding element"
- Fix issue #474 "GtkLabel: setup text attribute issues"
- Fix issue #480 "version field not always updated in XML"
- Fix issue pasing widget with ctrl+v in GtkGrid
- Fix issue #470 "Widgets of type need placeholders to add children"
- Fix issue #472 "gnome-nightly: About dialog should display git commit rev"
============
Glade 3.38.0
============
- Build: Remove autotools (Iñigo Martínez)
- Plugins: Added GJS plugin for JavaScript objects support (NEW gjs-1.0 dependency)
- Issue #433: Implement survey using new backend at surveys.gnome.org
- Bump GTK dependency and toolkit target to 3.24
- Webkit plugin: bump dependency to 2.28
- Build: use gtk-mac-integration only when creating bundle (Tom Schoonjans)
- Ignore locale when saving numeric values (Alberto Fanjul)
- Remove config for external builds (Alberto Fanjul)
- Associate application/x-gtk-builder with glade's .desktop file (Caolán McNamara)
- GladeProjectProperties: improve toolkit target version selection
- Python plugin: fix linking error
- Plugins: Added GJS plugin for JavaScript objects support
- Tests: add python and javascript test case
- gtk: Add GtkScrolledWindow propagate-natural-width property (Corentin Noël)
- GladeScrolledWindowEditor: Squeeze width/height properties in two columns
- Gtk plugin: add missing displayable values
- Webkit2gtk plugin: add missing displayable values and sandbox web view
- Load template files as new GTypes and add them to "User templates" widget group automatically without the need of a catalog
- Added JavaScript widget support
- Use version data from gir to improve deprecation/target tests
- Implement survey using new backend at surveys.gnome.org
- Keep survey state in config file
- Associate with application/x-gtk-builder (Caolán McNamara)
- Project properties dialog improvements. (Use headerbar, stack and stach switcher, add warnings textview)
- Improve toolkit target version selection in project properties dialog
- Improve treemodel char data type handling
- Remove autotools (Iñigo Martínez)
- New gjs-1.0 1.64 dependency
- Bump Gtk dependency to 3.24
- Bump webkit2gtk dependency to 2.28
- Fixed all compiler/gir warnings
- Issue #385: GtkCellRendererText causes deprecated warnings for ghost properties
- Issue #444: show-emoji-icon is missing "minimum version"/since constraint
- Issue #367: Glade removes double/triple slashes from URLs
- Issue #452: GtkComboBox cell renderers editor is too hard to discover
- Issue #363: Toplevel windows are leaked when closing a project
- Issue #462: Crash when creating a new GtkAssistant and pressing it
- Issue #463: Specify file on command line
- Issue #461: Glade resets number of rows and columns in GtkGrid
- Issue #460: 3.37.0: test suite fails because glade uses incorrectly asserts in test units
- Issue #412: Fix inconsistent "top-level", "top level", "toplevel" spelling in translatable strings
- Issue #281: GladeProperty: Do not replace - with _
- Issue #389: GladeProject: show message on invalid GtkBuilder file
- Issue #446: GladeGtkListBox: fix size request issue
- Issue #432: GladeStandarStock, GladeStandarStockImage: fix get_type() functions for introspection
- dtd: Make init-function an element, not an attribute (Adrien Plazas)
- Issue #447: GladeGtkWindow: Fix CSD support
- Issue #456: Utils: use g_param_spec_uchar() for uchar types
- Gtk plugin / GladeDataModel: Improve treemodel char data type handling
- Issue #459: Gtk catalog: add GtkRecentChooserMenu to Display group
- Fixed all compiler/gir warnings
- Issue #433: Implement survey using new backend at surveys.gnome.org
- Build: use gtk-mac-integration only when creating bundle (Tom Schoonjans)
- Ignore locale when saving numeric values (Alberto Fanjul)
- Remove config for external builds (Alberto Fanjul)
- Python plugin: fix linking error
- Tests: add python and javascript test case
- gtk: Add GtkScrolledWindow propagate-natural-width property (Corentin Noël)
- GladeScrolledWindowEditor: Squeeze width/height properties in two columns
- Gtk plugin: add missing displayable values
- Webkit2gtk plugin: add missing displayable values and sandbox web view
- dtd: Make init-function an element, not an attribute (Adrien Plazas)
Added/updated translations
- ca, courtesy of Gil Forcada
- ca, courtesy of Miquel-Àngel Burgos i Fradeja
- cs, courtesy of Marek Černocký
- da, courtesy of Ask Hjorth Larsen
- da, courtesy of Last-Translator: scootergrisen
- de, courtesy of Tim Sabsch
- en_GB, courtesy of Bruce Cowan
- es, courtesy of Daniel Mustieles
- fr, courtesy of Charles Monzat
- eu, courtesy of Asier Sarasua Garmendia
- fr, courtesy of Thibault Martin
- gl, courtesy of Fran Dieguez
- hi, courtesy of Last-Translator:Sunny Sharma
- hu, courtesy of Balázs Úr
- id, courtesy of Kukuh Syafaat
- kk, courtesy of Baurzhan Muftakhidinov
- ko, courtesy of Changwoo Ryu
- lt, courtesy of Aurimas Černius
- pl, courtesy of Piotr Drąg
- pt_BR, courtesy of Rafael Fontenelle
- ro, courtesy of Florentina Mușat
- sl, courtesy of Matej Urbančič
- sv, courtesy of Anders Jonsson
- tr, courtesy of Emin Tufan Çetin
- uk, courtesy of Yuri Chornoivan
- zh_CN, courtesy of Mandy Wang
============
Glade 3.36.0

View File

@ -7,9 +7,15 @@ User interface designer for Gtk+ and GNOME
Mailing Lists:
* <glade-users-list@gnome.org> - About using Glade to build applications.
* <glade-devel-list@gnome.org> - About the development of Glade itself.
Both users and devel mailing list have been archived, you can find the archives at
* https://mail.gnome.org/archives/glade-users-list/
* https://mail.gnome.org/archives/glade-devel-list/
## Development status
Glade is not being actively developed or maintained anymore.
If you are interested in becoming a maintainer please contact us on gitlab.
## General Information
@ -23,8 +29,7 @@ define a new GtkWidget derived object class using Gtk+ new template feature.
By using GtkBuilder, Glade XML files can be used in numerous programming
languages including C, C++, C#, Vala, Java, Perl, Python, and others.
This version of Glade targets GTK 3
This version of Glade targets GTK 3
If you need to work with GTK 2, you can still use Glade 3.8
([more information](http://blogs.gnome.org/tvb/2011/01/15/the-glade-dl/))
@ -49,17 +54,19 @@ Requirements
Optional dependencies:
* glib-networking plugins for TLS support (Needed for survey)
* libwebkit2gtk-4.0 - For Webkit plugin
* python-gi - For Python plugin
* libgjs - For JavaScript plugin
* gettext, itstool - For translation support
Download sources from git and build using meson/ninja
# Install dependencies, for example in debian
sudo apt install gcc meson libgtk-3-dev libxml2-dev libgirepository1.0-dev xsltproc
sudo apt install gcc meson libgtk-3-dev libxml2-dev libgirepository1.0-dev xsltproc gettext itstool
# Optional dependencies
sudo apt install libgjs-dev libwebkit2gtk-4.0-dev python-gi-dev
sudo apt install libgjs-dev libwebkit2gtk-4.0-dev python-gi-dev glib-networking
# Clone the source repository or download tarball
git clone https://gitlab.gnome.org/GNOME/glade.git

View File

@ -2,7 +2,6 @@ desktop_conf = configuration_data()
desktop_conf.set('VERSION', glade_version)
i18n.merge_file(
'desktop',
type: 'desktop',
input: configure_file(
input: 'org.gnome.Glade.desktop.in.in',
@ -18,7 +17,6 @@ i18n.merge_file(
appdata = glade_name + '.appdata.xml'
i18n.merge_file(
'appdata',
input: 'org.gnome.Glade.appdata.xml.in',
output: '@BASENAME@',
po_dir: po_dir,

View File

@ -49,12 +49,49 @@
<project_group>GNOME</project_group>
<translation type="gettext">glade</translation>
<releases>
<release version="3.37.0" date="2020-07-13" type="development">
<release version="3.40.0" date="2022-08-10">
<description>
<p>Glade 3.37.0 Development release!</p>
<p>Last Release!
Glade is not being actively developed or maintained anymore.
If you are interested in becoming a maintainer please contact us on gitlab.
</p>
<ul>
<li>Remove survey</li>
<li>Add user manual menu item (Sabri Ünal)</li>
<li>'Clear' action in "Setup Text Attributes" dialog now clears only selected attributes (crvi)</li>
<li>Fix windows build on msys</li>
<li>Fix build against Python 3.9</li>
<li>Fix issue pasing widget with ctrl+v in GtkGrid</li>
<li>Several bug fixes</li>
</ul>
</description>
<issues>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/502">Fix issue #502 sync draw-indicator on setting xalign (Caolán McNamara)</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/499">Fix issue #499 and #509 "Drop overzealous check using only the first child"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/385">Fix Segfault in gnome-builder when widget doesn't have a name (Peter Maatman)</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/373">Fix issue #373 "Move separator in hamburger menu one up, to be consistent with other GNOME applications"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/484">Fix issue #484 "Crash with GtkRecentChooserDialog"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/194">Fix issue #194 "Using List Store can result in program crash."</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/53">Fix issue #53 "Can't choose a FileChooserDialog for a FileChooserButton"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/98">Fix issue #98 #491</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/355">Fix issue #355 "Make notification text selectable"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/360">Fix issue #360 "No examples in documentation on using custom catalogues with gtkBuilder"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/406">Fix issue #406 "AtkObject::accessible-role should not be translatable"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/479">Fix issue #479 "Glade 3.36.0 segfaults when opening a file"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/471">Fix issue #471 "XML not updated after adding element"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/474">Fix issue #474 "GtkLabel: setup text attribute issues"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/480">Fix issue #480 "version field not always updated in XML"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/470">Fix issue #470 "Widgets of type need placeholders to add children"</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/472">Fix issue #472 "gnome-nightly: About dialog should display git commit rev"</issue>
</issues>
</release>
<release version="3.38.0" date="2020-09-12">
<description>
<p>Glade 3.38.0 release!</p>
<ul>
<li>Load template files as new GTypes and add them to "User templates" widget group automatically without the need of a catalog</li>
<li>Added JavaScript widget support</li>
<li>Use version data from gir to improve deprecation/target tests</li>
<li>Implement survey using new backend at surveys.gnome.org</li>
<li>Keep survey state in config file</li>
<li>Associate with application/x-gtk-builder (Caolán McNamara)</li>
@ -69,6 +106,9 @@
</ul>
</description>
<issues>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/385">Issue #385: GtkCellRendererText causes deprecated warnings for ghost properties</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/444">Issue #444: show-emoji-icon is missing "minimum version"/since constraint</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/367">Issue #367: Glade removes double/triple slashes from URLs</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/452">Issue #452: GtkComboBox cell renderers editor is too hard to discover</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/363">Issue #363: Toplevel windows are leaked when closing a project</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/462">Issue #462: Crash when creating a new GtkAssistant and pressing it</issue>

View File

@ -13,7 +13,3 @@ Icon=org.gnome.Glade
Categories=GNOME;GTK;Development;GUIDesigner;
MimeType=application/x-gtk-builder;application/x-glade;
X-GNOME-DocPath=glade/glade.xml
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=glade
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-Bugzilla-Component=general

View File

@ -35,6 +35,20 @@ some basic examples and describe a wealth of options that can be used to
enhance UI editing and workaround exceptions.
</para>
<para>
Keep in mind you need to take extra steps to ensure GtkBuilder can pick up your
new object types at runtime. Ussualy all you need is to link your executable
with your widget library assuming it has properly named get_type() functions.
<![CDATA[GtkWindow -> gtk_window_get_type
GtkHBox -> gtk_hbox_get_type
GtkUIManager -> gtk_ui_manager_get_type
GWeatherLocation -> gweather_location_get_type]]>
If not you can always register your widgets with the type system with g_type_ensure ()
</para>
<para>
The catalog file starts by specifying the name of the catalog and the plugin
library to use, the following examples assume you have a namespace "Foo" and

View File

@ -9,20 +9,20 @@
<description>Glade is a RAD tool to enable quick and easy development of user interfaces for the GTK+ 3 toolkit and the GNOME desktop environment.</description>
<shortdesc xml:lang="en">User Interface Builder for GTK+ applications</shortdesc>
<homepage rdf:resource="http://glade.gnome.org/" />
<mailing-list rdf:resource="http://lists.ximian.com/mailman/listinfo/glade-devel" />
<download-page rdf:resource="http://download.gnome.org/sources/glade/" />
<developer-forum rdf:resource="https://discourse.gnome.org/tag/glade" />
<download-page rdf:resource="https://download.gnome.org/sources/glade/" />
<bug-database rdf:resource="https://gitlab.gnome.org/GNOME/glade/issues" />
<category rdf:resource="http://api.gnome.org/doap-extensions#apps" />
<programming-language>C</programming-language>
<maintainer>
<!-- <maintainer>
<foaf:Person>
<foaf:name>Tristan Van Berkom</foaf:name>
<foaf:mbox rdf:resource="mailto:tristan.van.berkom@gmail.com" />
<gnome:userid>tvb</gnome:userid>
</foaf:Person>
</maintainer>
</maintainer> -->
<maintainer>
<foaf:Person>
<foaf:name>Juan Pablo Ugarte</foaf:name>

View File

@ -1,3 +1,27 @@
/*
* glade-clipboard.h
*
* Copyright (C) 2005 The GNOME Foundation.
*
* Author(s):
* Tristan Van Berkom <tvb@gnome.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#ifndef __GLADE_ACCUMULATORS_H__
#define __GLADE_ACCUMULATORS_H__

View File

@ -178,10 +178,10 @@ build_package_paths (void)
# endif
if (!pixmaps_dir)
pixmaps_dir = g_build_filename (prefix, "share", PACKAGE, "pixmaps", NULL);
pixmaps_dir = g_build_filename (prefix, "share", PACKAGE_NAME, "pixmaps", NULL);
catalogs_dir = g_build_filename (prefix, "share", PACKAGE, "catalogs", NULL);
modules_dir = g_build_filename (prefix, "lib", PACKAGE, "modules", NULL);
catalogs_dir = g_build_filename (prefix, "share", PACKAGE_NAME, "catalogs", NULL);
modules_dir = g_build_filename (prefix, "lib", PACKAGE_NAME, "modules", NULL);
locale_dir = g_build_filename (prefix, "share", "locale", NULL);
bin_dir = g_build_filename (prefix, "bin", NULL);
lib_dir = g_build_filename (prefix, "lib", NULL);

View File

@ -1,4 +1,3 @@
/*
* Copyright (C) 2006-2016 Juan Pablo Ugarte.
*

View File

@ -18,6 +18,7 @@
* Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*/
#ifndef __GLADE_BASE_EDITOR_H__
#define __GLADE_BASE_EDITOR_H__

View File

@ -1,3 +1,27 @@
/*
* glade-clipboard.c - An object for handling Cut/Copy/Paste.
*
* Copyright (C) 2005 The GNOME Foundation.
*
* Author(s):
* Tristan Van Berkom <tvb@gnome.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#ifndef __GLADE_BUILTINS_H__
#define __GLADE_BUILTINS_H__

View File

@ -769,7 +769,7 @@ glade_catalog_load_all (void)
/* First load catalogs from user specified directories ... */
if ((search_path = g_getenv (GLADE_ENV_CATALOG_PATH)) != NULL)
{
g_auto(GStrv) split;
g_auto(GStrv) split = NULL;
if ((split = g_strsplit (search_path, ":", 0)) != NULL)
{

View File

@ -1,3 +1,27 @@
/*
* glade-clipboard.h
*
* Copyright (C) 2001 The GNOME Foundation.
*
* Author(s):
* Archit Baweja <bighead@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#ifndef __GLADE_CLIPBOARD_H__
#define __GLADE_CLIPBOARD_H__

View File

@ -19,6 +19,7 @@
* Joaquín Cuenca Abela <e98cuenc@yahoo.com>
* Archit Baweja <bighead@users.sourceforge.net>
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
@ -426,12 +427,12 @@ glade_command_property_enabled_collapse (GladeCommand *this_cmd,
this_priv->description =
g_strdup_printf (_("Enabling property %s on widget %s"),
glade_property_def_get_name (pdef),
glade_widget_get_name (widget));
glade_widget_get_display_name (widget));
else
this_priv->description =
g_strdup_printf (_("Disabling property %s on widget %s"),
glade_property_def_get_name (pdef),
glade_widget_get_name (widget));
glade_widget_get_display_name (widget));
}
/**
@ -484,12 +485,12 @@ glade_command_set_property_enabled (GladeProperty *property,
cmd_priv->description =
g_strdup_printf (_("Enabling property %s on widget %s"),
glade_property_def_get_name (pdef),
glade_widget_get_name (widget));
glade_widget_get_display_name (widget));
else
cmd_priv->description =
g_strdup_printf (_("Disabling property %s on widget %s"),
glade_property_def_get_name (pdef),
glade_widget_get_name (widget));
glade_widget_get_display_name (widget));
glade_command_check_group (GLADE_COMMAND (me));
@ -567,7 +568,7 @@ glade_command_set_property_execute (GladeCommand *cmd)
g_print ("Setting %s property of %s to %s (sumode: %d)\n",
glade_property_def_id (pdef),
glade_widget_get_name (widget),
glade_widget_get_display_name (widget),
str, glade_property_superuser ());
g_free (str);
@ -796,13 +797,13 @@ glade_command_set_property_description (GladeCommandSetProperty *me)
{
description = g_strdup_printf (_("Setting %s of %s"),
glade_property_def_get_name (pdef),
glade_widget_get_name (widget));
glade_widget_get_display_name (widget));
}
else
{
description = g_strdup_printf (_("Setting %s of %s to %s"),
glade_property_def_get_name (pdef),
glade_widget_get_name (widget),
glade_widget_get_display_name (widget),
value_name);
}
g_free (value_name);
@ -1223,7 +1224,7 @@ glade_command_add (GList *widgets,
priv->description =
g_strdup_printf (_("Add %s"), g_list_length (widgets) == 1 ?
glade_widget_get_name (widget) : _("multiple"));
glade_widget_get_display_name (widget) : _("multiple"));
for (list = widgets; list && list->data; list = list->next)
{
@ -1378,9 +1379,9 @@ glade_command_remove (GList *widgets)
glade_util_ui_message (glade_app_get_window (),
GLADE_UI_WARN, NULL,
_("%s is locked by %s, edit %s first."),
glade_widget_get_name (widget),
glade_widget_get_name (lock),
glade_widget_get_name (lock));
glade_widget_get_display_name (widget),
glade_widget_get_display_name (lock),
glade_widget_get_display_name (lock));
return;
}
}
@ -1396,7 +1397,7 @@ glade_command_remove (GList *widgets)
if (g_list_length (widgets) == 1)
glade_command_push_group (_("Remove %s"),
glade_widget_get_name (GLADE_WIDGET (widgets->data)));
glade_widget_get_display_name (GLADE_WIDGET (widgets->data)));
else
glade_command_push_group (_("Remove multiple"));
@ -1492,8 +1493,8 @@ glade_command_add_execute (GladeCommandAddRemove *me)
GLADE_NOTE (COMMANDS,
g_print ("Adding widget '%s' to parent '%s' "
"(from clipboard: %s, props recorded: %s, have placeholder: %s, child_type: %s)\n",
glade_widget_get_name (cdata->widget),
cdata->parent ? glade_widget_get_name (cdata->parent) : "(none)",
glade_widget_get_display_name (cdata->widget),
cdata->parent ? glade_widget_get_display_name (cdata->parent) : "(none)",
me->from_clipboard ? "yes" : "no",
cdata->props_recorded ? "yes" : "no",
cdata->placeholder ? "yes" : "no",
@ -1585,8 +1586,8 @@ glade_command_add_execute (GladeCommandAddRemove *me)
GLADE_NOTE (COMMANDS,
g_print ("Recorded properties for adding widget '%s' to parent '%s' (special child: %s)\n",
glade_widget_get_name (cdata->widget),
cdata->parent ? glade_widget_get_name (cdata->parent) : "(none)",
glade_widget_get_display_name (cdata->widget),
cdata->parent ? glade_widget_get_display_name (cdata->parent) : "(none)",
cdata->special_type));
/* Mark the properties as recorded */
@ -1631,8 +1632,8 @@ glade_command_remove_execute (GladeCommandAddRemove *me)
GLADE_NOTE (COMMANDS,
g_print ("Removing widget '%s' from parent '%s' "
"(from clipboard: %s, props recorded: %s, have placeholder: %s, child_type: %s)\n",
glade_widget_get_name (cdata->widget),
cdata->parent ? glade_widget_get_name (cdata->parent) : "(none)",
glade_widget_get_display_name (cdata->widget),
cdata->parent ? glade_widget_get_display_name (cdata->parent) : "(none)",
me->from_clipboard ? "yes" : "no",
cdata->props_recorded ? "yes" : "no",
cdata->placeholder ? "yes" : "no",
@ -1653,8 +1654,8 @@ glade_command_remove_execute (GladeCommandAddRemove *me)
GLADE_NOTE (COMMANDS,
g_print ("Recorded properties for removing widget '%s' from parent '%s' (special child: %s)\n",
glade_widget_get_name (cdata->widget),
cdata->parent ? glade_widget_get_name (cdata->parent) : "(none)",
glade_widget_get_display_name (cdata->widget),
cdata->parent ? glade_widget_get_display_name (cdata->parent) : "(none)",
cdata->special_type));
/* Mark the properties as recorded */
@ -1757,6 +1758,42 @@ glade_command_add_remove_collapse (GladeCommand *this_cmd,
g_return_if_reached ();
}
static void
adjust_container_size (GladeWidget *parent, gint children)
{
gint placeholders;
GObject *gparent;
if (!parent)
return;
placeholders = glade_util_count_placeholders (parent);
gparent = glade_widget_get_object (parent);
if ((GTK_IS_BOX (gparent) || GTK_IS_GRID (gparent)) && placeholders < children)
{
children -= placeholders;
if (GTK_IS_BOX (gparent))
{
GladeProperty *prop = glade_widget_get_property (parent, "size");
gint size;
glade_property_get (prop, &size);
glade_command_set_property (prop, size + children);
}
else
{
GladeProperty *row = glade_widget_get_property (parent, "n-rows");
gint ncol, nrow;
glade_widget_property_get (parent, "n-columns", &ncol);
glade_property_get (row, &nrow);
glade_command_set_property (row, nrow + (children / ncol) + ((children % ncol) ? 1 : 0));
}
}
}
/******************************************************************************
*
* The following are command aliases. Their implementations are the actual
@ -1782,8 +1819,8 @@ glade_command_create (GladeWidgetAdaptor *adaptor,
GladePlaceholder *placeholder,
GladeProject *project)
{
GList widgets = { NULL, };
GladeWidget *widget;
GList *widgets = NULL;
g_return_val_if_fail (GLADE_IS_WIDGET_ADAPTOR (adaptor), NULL);
g_return_val_if_fail (GLADE_IS_PROJECT (project), NULL);
@ -1804,13 +1841,12 @@ glade_command_create (GladeWidgetAdaptor *adaptor,
return NULL;
}
widgets = g_list_prepend (widgets, widget);
glade_command_push_group (_("Create %s"), glade_widget_get_name (widget));
glade_command_add (widgets, parent, placeholder, project, FALSE);
widgets.data = widget;
glade_command_push_group (_("Create %s"), glade_widget_get_display_name (widget));
adjust_container_size (parent, 1);
glade_command_add (&widgets, parent, placeholder, project, FALSE);
glade_command_pop_group ();
g_list_free (widgets);
/* Make selection change immediately when a widget is created */
glade_project_selection_changed (project);
@ -1833,7 +1869,7 @@ glade_command_delete (GList *widgets)
widget = widgets->data;
glade_command_push_group (_("Delete %s"),
g_list_length (widgets) == 1 ?
glade_widget_get_name (widget) : _("multiple"));
glade_widget_get_display_name (widget) : _("multiple"));
glade_command_remove (widgets);
glade_command_pop_group ();
}
@ -1859,7 +1895,7 @@ glade_command_cut (GList *widgets)
widget = widgets->data;
glade_command_push_group (_("Cut %s"),
g_list_length (widgets) == 1 ?
glade_widget_get_name (widget) : _("multiple"));
glade_widget_get_display_name (widget) : _("multiple"));
glade_command_remove (widgets);
glade_command_pop_group ();
@ -1947,6 +1983,7 @@ glade_command_paste (GList *widgets,
GList *list, *copied_widgets = NULL;
GladeWidget *copied_widget = NULL;
gboolean exact;
gint len;
g_return_if_fail (widgets != NULL);
@ -1960,10 +1997,9 @@ glade_command_paste (GList *widgets,
copied_widgets = g_list_prepend (copied_widgets, copied_widget);
}
glade_command_push_group (_("Paste %s"),
g_list_length (widgets) == 1 ?
glade_widget_get_name (copied_widget) : _("multiple"));
len = g_list_length (widgets);
glade_command_push_group (_("Paste %s"), len == 1 ? glade_widget_get_display_name (copied_widget) : _("multiple"));
adjust_container_size (parent, len);
glade_command_add (copied_widgets, parent, placeholder, project, TRUE);
glade_command_pop_group ();
@ -2004,8 +2040,8 @@ glade_command_dnd (GList *widgets,
glade_command_push_group (_("Drag %s and Drop to %s"),
g_list_length (widgets) == 1 ?
glade_widget_get_name (widget) : _("multiple"),
parent ? glade_widget_get_name (parent) : _("root"));
glade_widget_get_display_name (widget) : _("multiple"),
parent ? glade_widget_get_display_name (parent) : _("root"));
glade_command_remove (widgets);
glade_command_add (widgets, parent, placeholder, project, TRUE);
glade_command_pop_group ();
@ -2458,8 +2494,8 @@ glade_command_lock_widget (GladeWidget *widget, GladeWidget *locked)
priv->project = glade_widget_get_project (widget);
priv->description =
g_strdup_printf (_("Locking %s by widget %s"),
glade_widget_get_name (locked),
glade_widget_get_name (widget));
glade_widget_get_display_name (locked),
glade_widget_get_display_name (widget));
glade_command_check_group (cmd);
@ -2502,7 +2538,7 @@ glade_command_unlock_widget (GladeWidget *widget)
priv = glade_command_get_instance_private (cmd);
priv->project = glade_widget_get_project (widget);
priv->description =
g_strdup_printf (_("Unlocking %s"), glade_widget_get_name (widget));
g_strdup_printf (_("Unlocking %s"), glade_widget_get_display_name (widget));
glade_command_check_group (cmd);
@ -3001,10 +3037,10 @@ gcp_template_description_new (GladeCommand *cmd)
if (new_template == NULL && old_template != NULL)
return g_strdup_printf (_("Unsetting widget '%s' as template"),
glade_widget_get_name (GLADE_WIDGET (old_template)));
glade_widget_get_display_name (GLADE_WIDGET (old_template)));
else if (new_template != NULL)
return g_strdup_printf (_("Setting widget '%s' as template"),
glade_widget_get_name (GLADE_WIDGET (new_template)));
glade_widget_get_display_name (GLADE_WIDGET (new_template)));
else
return g_strdup (_("Unsetting template"));
}

View File

@ -1,3 +1,25 @@
/*
* Copyright (C) 2002 Joaquín Cuenca Abela
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Joaquín Cuenca Abela <e98cuenc@yahoo.com>
* Archit Baweja <bighead@users.sourceforge.net>
*/
#ifndef __GLADE_COMMAND_H__
#define __GLADE_COMMAND_H__

View File

@ -1,3 +1,24 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
*/
#ifndef __GLADE_CURSOR_H__
#define __GLADE_CURSOR_H__

View File

@ -1,3 +1,24 @@
/*
* Copyright (C) 2003 Joaquin Cuenca Abela
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Joaquin Cuenca Abela <e98cuenc@yahoo.com>
*/
#ifndef __GLADE_DEBUG_H__
#define __GLADE_DEBUG_H__

View File

@ -1,5 +1,5 @@
/*
* glade-name-context.c
* glade-displayable-values.c
*
* Copyright (C) 2008 Tristan Van Berkom.
*
@ -21,6 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@ -1,3 +1,27 @@
/*
* glade-displayable-values.h
*
* Copyright (C) 2008 Tristan Van Berkom.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __GLADE_DISAPLAYABLE_VALUES_H__
#define __GLADE_DISAPLAYABLE_VALUES_H__

View File

@ -21,6 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@ -1,3 +1,27 @@
/*
* glade-editable.h
*
* Copyright (C) 2008 Tristan Van Berkom.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __GLADE_EDITABLE_H__
#define __GLADE_EDITABLE_H__

View File

@ -204,9 +204,7 @@ glade_editor_property_commit_common (GladeEditorProperty *eprop,
if (glade_property_def_get_construct_only (priv->property_def))
{
gboolean focus_set = FALSE;
gtk_container_foreach (GTK_CONTAINER (priv->input),
deepest_child_grab_focus,
&focus_set);
deepest_child_grab_focus (priv->input, &focus_set);
}
}
@ -2951,7 +2949,7 @@ glade_eprop_object_populate_view_real (GtkTreeStore *model,
widget_name = glade_widget_get_display_name (widget);
if (parentless)
good_type = good_type && !GLADE_WIDGET_ADAPTOR_IS_TOPLEVEL (adaptor);
good_type = good_type && GLADE_WIDGET_ADAPTOR_IS_TOPLEVEL (adaptor);
if (good_type || has_decendant)
{

View File

@ -1,3 +1,24 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_EDITOR_PROPERTY_H__
#define __GLADE_EDITOR_PROPERTY_H__

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_EDITOR_SKELETON_H__
#define __GLADE_EDITOR_SKELETON_H__

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_EDITOR_BUTTON_H_
#define _GLADE_EDITOR_BUTTON_H_

View File

@ -20,7 +20,6 @@
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@ -1,3 +1,25 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_EDITOR_H__
#define __GLADE_EDITOR_H__

View File

@ -21,6 +21,7 @@
* Tristan Van Berkom <tvb@gnome.org>
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@ -1,3 +1,27 @@
/*
* glade-name-context.c
*
* Copyright (C) 2008 Tristan Van Berkom.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*
*/
#ifndef __GLADE_NAME_CONTEXT_H__
#define __GLADE_NAME_CONTEXT_H__

View File

@ -24,6 +24,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
*/
#include "config.h"

View File

@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
*/
#ifndef __GLADE_PLACEHOLDER_H__
#define __GLADE_PLACEHOLDER_H__

View File

@ -68,9 +68,10 @@ glade_popup_widget_add_cb (GtkMenuItem *item, RootAddData *data)
{
g_return_if_fail (data->adaptor != NULL);
if (glade_command_create (data->adaptor, data->parent,
data->placeholder, data->project))
if (glade_command_create (data->adaptor,
data->parent,
data->placeholder,
data->project))
glade_project_set_add_item (data->project, NULL);
}

View File

@ -1,3 +1,25 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_POPUP_H__
#define __GLADE_POPUP_H__

View File

@ -20,6 +20,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include <config.h>
#include "glade-previewer.h"

View File

@ -1,6 +1,6 @@
#include <winver.h>
GLADE_ICON ICON "../data/icons/glade.ico"
GLADE_ICON ICON "@SOURCE_ROOT@/data/icons/glade.ico"
VS_VERSION_INFO VERSIONINFO
FILEVERSION @GLADE_MAJOR_VERSION@,@GLADE_MINOR_VERSION@,@GLADE_MICRO_VERSION@,0
@ -15,7 +15,7 @@ VS_VERSION_INFO VERSIONINFO
VALUE "CompanyName", "The GNOME Foundation"
VALUE "FileDescription", "Glade Interface Designer @GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@"
VALUE "FileVersion", "@GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@.0"
VALUE "LegalCopyright", "Copyright © 2007 The GNOME Foundation"
VALUE "LegalCopyright", "Copyright 2007 The GNOME Foundation"
VALUE "OriginalFilename", "glade-previewer.exe"
VALUE "ProductName", "Glade Interface Designer"
VALUE "ProductVersion", "@GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@.0"

View File

@ -129,7 +129,7 @@ typedef struct
GtkWidget *css_filechooser;
GtkWidget *css_checkbutton;
GHashTable *target_radios;
GHashTable *target_combos;
/* License */
GtkComboBox *license_comboboxtext;
@ -169,7 +169,7 @@ glade_project_properties_init (GladeProjectProperties *properties)
{
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(properties);
priv->target_radios = g_hash_table_new_full (g_str_hash, g_str_equal,
priv->target_combos = g_hash_table_new_full (g_str_hash, g_str_equal,
g_free, NULL);
gtk_widget_init_template (GTK_WIDGET (properties));
@ -262,7 +262,7 @@ glade_project_properties_finalize (GObject *object)
GladeProjectProperties *properties = GLADE_PROJECT_PROPERTIES (object);
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(properties);
g_hash_table_destroy (priv->target_radios);
g_hash_table_destroy (priv->target_combos);
G_OBJECT_CLASS (glade_project_properties_parent_class)->finalize (object);
}
@ -289,7 +289,7 @@ combobox_populate_from_catalog (GladeProjectProperties *properties,
version->major,
version->minor);
gtk_combo_box_text_insert_text (GTK_COMBO_BOX_TEXT(combobox), position, name);
gtk_combo_box_text_insert (GTK_COMBO_BOX_TEXT(combobox), position, name, name);
if (major == version->major && minor == version->minor)
gtk_combo_box_set_active (GTK_COMBO_BOX(combobox), position);
@ -299,7 +299,7 @@ combobox_populate_from_catalog (GladeProjectProperties *properties,
(gchar *) glade_catalog_get_name (catalog));
}
g_hash_table_insert (priv->target_radios,
g_hash_table_insert (priv->target_combos,
g_strdup (glade_catalog_get_name (catalog)),
combobox);
}
@ -1107,19 +1107,19 @@ project_targets_changed (GladeProject *project,
GladeCatalog *catalog = list->data;
GtkComboBox *combobox;
gint minor, major;
const gchar *name;
/* Skip if theres only one option */
if (g_list_length (glade_catalog_get_targets (catalog)) <= 1)
continue;
/* Fetch the version for this project */
glade_project_get_target_version (priv->project,
glade_catalog_get_name (catalog),
&major, &minor);
name = glade_catalog_get_name (catalog);
glade_project_get_target_version (priv->project, name, &major, &minor);
/* Fetch the radios for this catalog */
if (priv->target_radios &&
(combobox = g_hash_table_lookup (priv->target_radios, glade_catalog_get_name (catalog))) != NULL)
if (priv->target_combos &&
(combobox = g_hash_table_lookup (priv->target_combos, name)) != NULL)
{
g_autofree gchar *id = NULL;
id = g_strdup_printf ("%d.%d", major, minor);

View File

@ -3661,10 +3661,12 @@ glade_project_get_widget_by_name (GladeProject *project, const gchar *name)
for (list = project->priv->objects; list; list = list->next)
{
GladeWidget *widget;
gchar *widget_name;
widget = glade_widget_get_from_gobject (list->data);
widget_name = glade_widget_get_name (widget);
if (strcmp (glade_widget_get_name (widget), name) == 0)
if (g_strcmp0 (widget_name, name) == 0)
return widget;
}
@ -5318,8 +5320,7 @@ glade_project_command_paste (GladeProject *project,
{
GladeClipboard *clipboard;
GList *list;
GladeWidget *widget = NULL, *parent;
gint placeholder_relations = 0;
GladeWidget *widget = NULL, *parent = NULL;
g_return_if_fail (GLADE_IS_PROJECT (project));
@ -5339,8 +5340,10 @@ glade_project_command_paste (GladeProject *project,
/* If there is a selection, paste in to the selected widget, otherwise
* paste into the placeholder's parent, or at the toplevel
*/
parent = list ? glade_widget_get_from_gobject (list->data) :
(placeholder) ? glade_placeholder_get_parent (placeholder) : NULL;
if (list)
parent = glade_widget_get_from_gobject (list->data);
else if (placeholder)
parent = glade_placeholder_get_parent (placeholder);
widget = glade_clipboard_widgets (clipboard) ? glade_clipboard_widgets (clipboard)->data : NULL;
@ -5393,51 +5396,6 @@ glade_project_command_paste (GladeProject *project,
}
}
/* Check that we have compatible heirarchies */
for (list = glade_clipboard_widgets (clipboard); list && list->data; list = list->next)
{
widget = list->data;
if (!GLADE_WIDGET_ADAPTOR_IS_TOPLEVEL (glade_widget_get_adaptor (widget)) && parent)
{
/* Count placeholder relations
*/
if (glade_widget_placeholder_relation (parent, widget))
placeholder_relations++;
}
}
g_assert (widget);
/* A GladeWidget that doesnt use placeholders can only paste one
* at a time
*
* XXX: Not sure if this has to be true.
*/
if (GTK_IS_WIDGET (glade_widget_get_object (widget)) &&
parent && !GLADE_WIDGET_ADAPTOR_USE_PLACEHOLDERS (glade_widget_get_adaptor (parent)) &&
g_list_length (glade_clipboard_widgets (clipboard)) != 1)
{
glade_util_ui_message (glade_app_get_window (),
GLADE_UI_INFO, NULL,
_("Only one widget can be pasted at a "
"time to this container"));
return;
}
/* Check that enough placeholders are available */
if (parent &&
GLADE_WIDGET_ADAPTOR_USE_PLACEHOLDERS (glade_widget_get_adaptor (parent)) &&
glade_util_count_placeholders (parent) < placeholder_relations)
{
glade_util_ui_message (glade_app_get_window (),
GLADE_UI_INFO, NULL,
_("Insufficient amount of placeholders in "
"target container"));
return;
}
glade_command_paste (glade_clipboard_widgets (clipboard), parent, placeholder, project);
}

View File

@ -1,3 +1,26 @@
/*
* Copyright (C) 2001 Ximian, Inc.
* Copyright (C) 2008 Tristan Van Berkom
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_PROJECT_H__
#define __GLADE_PROJECT_H__

View File

@ -38,7 +38,6 @@
#include <string.h>
#include <stdlib.h>
#include <glib/gi18n-lib.h>
#include <locale.h>
#include "glade.h"
#include "glade-widget.h"
@ -458,34 +457,32 @@ glade_property_def_make_string_from_objects (GladePropertyDef *
return string;
}
static locale_t
get_C_locale (void)
{
static gsize initialized = FALSE;
static locale_t C_locale = NULL;
if (g_once_init_enter (&initialized))
{
C_locale = newlocale (LC_ALL_MASK, "C", NULL);
g_once_init_leave (&initialized, TRUE);
}
return C_locale;
}
static gchar *
glade_dtostr (double number, gdouble epsilon)
{
char *str = g_malloc (G_ASCII_DTOSTR_BUF_SIZE);
char *str = g_malloc (G_ASCII_DTOSTR_BUF_SIZE + 1);
char real_number[G_ASCII_DTOSTR_BUF_SIZE + 1];
const gchar *decimal = NULL;
int i;
for (i = 0; i <= 20; i++)
g_ascii_dtostr (str, G_ASCII_DTOSTR_BUF_SIZE, number);
g_ascii_dtostr (real_number, G_ASCII_DTOSTR_BUF_SIZE, number);
decimal = g_strstr_len (real_number, G_ASCII_DTOSTR_BUF_SIZE, ".");
if (!decimal)
return str;
decimal++;
for (i = 1; i <= 20; i++)
{
gint len = (decimal - real_number) + i;
double rounded;
locale_t old_locale;
old_locale = uselocale (get_C_locale ());
snprintf (str, G_ASCII_DTOSTR_BUF_SIZE, "%.*f", i, number);
uselocale (old_locale);
/* add up to i decimal points */
str[len] = real_number[len];
str[len+1] = '\0';
rounded = g_ascii_strtod (str, NULL);
if (ABS (rounded - number) <= epsilon)
@ -503,15 +500,10 @@ glade_dtostr (double number, gdouble epsilon)
* Returns: A newly allocated string representation of @value
*/
gchar *
glade_property_def_make_string_from_gvalue (GladePropertyDef *
property_def,
const GValue * value)
glade_property_def_make_string_from_gvalue (GladePropertyDef *property_def,
const GValue *value)
{
gchar *string = NULL, **strv;
GObject *object;
GdkColor *color;
GdkRGBA *rgba;
GList *objects;
gchar *string = NULL;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY (property_def->pspec))
@ -551,20 +543,26 @@ glade_property_def_make_string_from_gvalue (GladePropertyDef *
{
if (property_def->pspec->value_type == GDK_TYPE_COLOR)
{
color = g_value_get_boxed (value);
GdkColor *color = g_value_get_boxed (value);
if (color)
string = g_strdup_printf ("#%04x%04x%04x",
color->red, color->green, color->blue);
}
else if (property_def->pspec->value_type == GDK_TYPE_RGBA)
{
rgba = g_value_get_boxed (value);
GdkRGBA *rgba = g_value_get_boxed (value);
if (rgba)
string = gdk_rgba_to_string (rgba);
}
else if (property_def->pspec->value_type == PANGO_TYPE_COLOR)
{
PangoColor *color = g_value_get_boxed (value);
if (color)
string = pango_color_to_string (color);
}
else if (property_def->pspec->value_type == G_TYPE_STRV)
{
strv = g_value_get_boxed (value);
gchar **strv = g_value_get_boxed (value);
if (strv)
string = g_strjoinv ("\n", strv);
}
@ -614,13 +612,13 @@ glade_property_def_make_string_from_gvalue (GladePropertyDef *
}
else if (G_IS_PARAM_SPEC_OBJECT (property_def->pspec))
{
object = g_value_get_object (value);
GObject *object = g_value_get_object (value);
string =
glade_property_def_make_string_from_object (property_def, object);
}
else if (GLADE_IS_PARAM_SPEC_OBJECTS (property_def->pspec))
{
objects = g_value_get_boxed (value);
GList *objects = g_value_get_boxed (value);
string =
glade_property_def_make_string_from_objects (property_def,
objects);
@ -841,13 +839,11 @@ glade_property_def_make_objects_from_string (GladePropertyDef *
*/
GValue *
glade_property_def_make_gvalue_from_string (GladePropertyDef *property_def,
const gchar *string,
GladeProject *project)
const gchar *string,
GladeProject *project)
{
GValue *value = g_new0 (GValue, 1);
gchar **strv;
GdkColor color = { 0, };
GdkRGBA rgba = { 0, };
g_value_init (value, property_def->pspec->value_type);
@ -894,6 +890,7 @@ glade_property_def_make_gvalue_from_string (GladePropertyDef *property_def,
{
if (property_def->pspec->value_type == GDK_TYPE_COLOR)
{
GdkColor color;
if (gdk_color_parse (string, &color))
g_value_set_boxed (value, &color);
else
@ -901,11 +898,20 @@ glade_property_def_make_gvalue_from_string (GladePropertyDef *property_def,
}
else if (property_def->pspec->value_type == GDK_TYPE_RGBA)
{
GdkRGBA rgba;
if (gdk_rgba_parse (&rgba, string))
g_value_set_boxed (value, &rgba);
else
g_warning ("could not parse rgba colour name `%s'", string);
}
else if (property_def->pspec->value_type == PANGO_TYPE_COLOR)
{
PangoColor color;
if (pango_color_parse (&color, string))
g_value_set_boxed (value, &color);
else
g_warning ("could not parse pango color name `%s'", string);
}
else if (property_def->pspec->value_type == G_TYPE_STRV)
{
strv = g_strsplit (string, "\n", 0);

View File

@ -1,3 +1,25 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
* Tristan Van Berkom <tristan.van.berkom@gmail.com>
*/
#ifndef __GLADE_PROPERTY_DEF_H__
#define __GLADE_PROPERTY_DEF_H__

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_PROPERTY_LABEL_H__
#define __GLADE_PROPERTY_LABEL_H__

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_PROPERTY_SHELL_H__
#define __GLADE_PROPERTY_SHELL_H__

View File

@ -639,11 +639,21 @@ glade_property_init (GladeProperty *property)
property->priv->precision = 2;
property->priv->enabled = TRUE;
property->priv->sensitive = TRUE;
property->priv->i18n_translatable = TRUE;
property->priv->i18n_translatable = FALSE;
property->priv->i18n_comment = NULL;
property->priv->sync_tolerance = 1;
}
static void
glade_property_constructed (GObject *object)
{
GladeProperty *property = GLADE_PROPERTY (object);
GParamSpec *pspec = glade_property_def_get_pspec (property->priv->def);
/* Only string properties are translatable */
glade_property_i18n_set_translatable (property, G_IS_PARAM_SPEC_STRING (pspec));
}
static void
glade_property_class_init (GladePropertyClass * prop_class)
{
@ -652,6 +662,7 @@ glade_property_class_init (GladePropertyClass * prop_class)
/* GObjectClass */
object_class->set_property = glade_property_set_real_property;
object_class->get_property = glade_property_get_real_property;
object_class->constructed = glade_property_constructed;
object_class->finalize = glade_property_finalize;
/* Class methods */
@ -701,7 +712,7 @@ glade_property_class_init (GladePropertyClass * prop_class)
g_param_spec_boolean ("i18n-translatable",
_("Translatable"),
_("Whether this property is translatable"),
TRUE,
FALSE,
G_PARAM_READWRITE);
properties[PROP_STATE] =
@ -773,8 +784,9 @@ glade_property_new (GladePropertyDef *def,
g_return_val_if_fail (GLADE_IS_PROPERTY_DEF (def), NULL);
property = (GladeProperty *) g_object_new (GLADE_TYPE_PROPERTY, NULL);
property->priv->def = def;
property = (GladeProperty *) g_object_new (GLADE_TYPE_PROPERTY,
"class", def,
NULL);
property->priv->widget = widget;
property->priv->value = value;

View File

@ -1,3 +1,26 @@
/*
* Copyright (C) 2001 Ximian, Inc.
* Copyright (C) 2006 The GNOME Foundation.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_PROPERTY_H__
#define __GLADE_PROPERTY_H__

View File

@ -20,7 +20,6 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#include <config.h>
#include "glade-signal-def.h"
#include "glade-widget-adaptor.h"

View File

@ -19,6 +19,7 @@
* Shane Butler <shane_b@users.sourceforge.net>
* Joaquin Cuenca Abela <e98cuenc@yahoo.com>
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@ -1,3 +1,25 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Shane Butler <shane_b@users.sourceforge.net>
* Joaquin Cuenca Abela <e98cuenc@yahoo.com>
*/
#ifndef __GLADE_SIGNAL_EDITOR_H__
#define __GLADE_SIGNAL_EDITOR_H__

View File

@ -1,5 +1,6 @@
/*
* glade-signal-model.c
*
* Copyright (C) Johannes Schmid 2010 <jhs@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it
@ -16,6 +17,7 @@
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif

View File

@ -1,5 +1,6 @@
/*
* glade-signal-model.h
*
* Copyright (C) Johannes Schmid 2010 <jhs@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it

View File

@ -1,3 +1,25 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
* Paolo Borelli <pborelli@katamail.com>
*/
#ifndef __GLADE_SIGNAL_H__
#define __GLADE_SIGNAL_H__

View File

@ -190,6 +190,13 @@ _glade_util_dialog_set_hig (GtkDialog *dialog)
gtk_box_set_spacing (GTK_BOX (action_area), 6);
}
static void
glade_util_ui_message_foreach (GtkWidget *widget, gpointer data)
{
if (GTK_IS_LABEL (widget))
gtk_label_set_selectable (GTK_LABEL (widget), TRUE);
}
/**
* glade_util_ui_message:
* @parent: a #GtkWindow cast as a #GtkWidget
@ -270,7 +277,11 @@ glade_util_ui_message (GtkWidget *parent,
dialog = gtk_message_dialog_new (GTK_WINDOW (parent),
GTK_DIALOG_DESTROY_WITH_PARENT,
message_type, buttons_type, NULL);
/* Make labels selectable */
gtk_container_forall (GTK_CONTAINER (gtk_message_dialog_get_message_area (GTK_MESSAGE_DIALOG (dialog))),
glade_util_ui_message_foreach, NULL);
gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog), string);
if (widget)
@ -1165,15 +1176,15 @@ glade_util_search_devhelp (const gchar *book,
GtkWidget *
glade_util_get_placeholder_from_pointer (GtkContainer *container)
{
GdkDeviceManager *manager;
GdkDisplay *display;
GdkDevice *device;
GdkWindow *window;
GdkSeat *seat;
if (((display = gtk_widget_get_display (GTK_WIDGET (container))) ||
(display = gdk_display_get_default ())) &&
(manager = gdk_display_get_device_manager (display)) &&
(device = gdk_device_manager_get_client_pointer (manager)) &&
(seat = gdk_display_get_default_seat (display)) &&
(device = gdk_seat_get_pointer (seat)) &&
(window = gdk_device_get_window_at_position (device, NULL, NULL)))
{
gpointer widget;
@ -1269,6 +1280,8 @@ glade_util_get_file_mtime (const gchar *filename, GError **error)
struct stat info;
gint retval;
g_return_val_if_fail (filename, 0);
retval = g_stat (filename, &info);
if (retval != 0)
@ -2069,10 +2082,14 @@ glade_utils_get_pointer (GtkWidget *widget,
if (!device)
{
GdkEvent *event = gtk_get_current_event ();
GdkDisplay *dsp;
GdkSeat *seat;
device = gdk_event_get_device (event);
gdk_event_free (event);
if (((dsp = gtk_widget_get_display (widget)) ||
(dsp = gdk_display_get_default ())) &&
(seat = gdk_display_get_default_seat (dsp)) &&
(device = gdk_seat_get_pointer (seat)))
window = gdk_device_get_window_at_position (device, NULL, NULL);
}
g_return_if_fail (GDK_IS_DEVICE (device));
@ -2166,7 +2183,7 @@ _glade_util_file_get_relative_path (GFile *target, GFile *source)
relative_path = g_file_get_relative_path (target, source);
g_string_append (relpath, "..");
g_string_append_c (relpath, G_DIR_SEPARATOR);
g_string_append_c (relpath, '/');
g_object_unref (old_target);
}

View File

@ -1,3 +1,24 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
*/
#ifndef __GLADE_UTILS_H__
#define __GLADE_UTILS_H__

View File

@ -1,3 +1,24 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_WIDGET_ADAPTOR_H_
#define _GLADE_WIDGET_ADAPTOR_H_

View File

@ -1,3 +1,28 @@
/*
* Copyright (C) 2008 Tristan Van Berkom
* Copyright (C) 2004 Joaquin Cuenca Abela
* Copyright (C) 2001, 2002, 2003 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Joaquin Cuenca Abela <e98cuenc@yahoo.com>
* Chema Celorio <chema@celorio.com>
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_WIDGET_H__
#define __GLADE_WIDGET_H__

View File

@ -6,7 +6,7 @@
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the

View File

@ -1,4 +1,27 @@
/* TODO : s/glade_xml_get_/glade_xml_node_get/g */
/*
* glade-xml-utils.c - This functions are based on gnome-print/libgpa/gpa-xml.c
* which were in turn based on gnumeric/xml-io.c
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Daniel Veillard <Daniel.Veillard@w3.org>
* Miguel de Icaza <miguel@gnu.org>
* Chema Celorio <chema@gnome.org>
*/
#ifndef __GLADE_XML_UTILS_H__
#define __GLADE_XML_UTILS_H__

View File

@ -18,6 +18,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __GLADE_H__
#define __GLADE_H__

View File

@ -17,7 +17,7 @@ VS_VERSION_INFO VERSIONINFO
VALUE "FileDescription", "Glade Interface Designer @GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@"
VALUE "FileVersion", "@GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@.0"
VALUE "InternalName", "libgladeui-1-@GLADE_CURRENT_MINUS_AGE@"
VALUE "LegalCopyright", "Copyright © 2007 The GNOME Foundation"
VALUE "LegalCopyright", "Copyright 2007 The GNOME Foundation"
VALUE "OriginalFilename", "libgladeui-1-@GLADE_CURRENT_MINUS_AGE@.dll"
VALUE "ProductName", "Glade Interface Designer"
VALUE "ProductVersion", "@GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@"

View File

@ -23,7 +23,7 @@
/*
* Icon Naming Specification: http://standards.freedesktop.org/icon-naming-spec
*
*/
*/
#include <glib/gi18n-lib.h>

View File

@ -184,8 +184,8 @@ endif
if glade_system == 'windows'
rc = configure_file(
input: 'glade.rc.in',
output: '@BASELINE@',
input: 'gladeui.rc.in',
output: 'gladeui.rc',
configuration: rc_conf,
)
@ -193,8 +193,8 @@ if glade_system == 'windows'
ldflags += cc.get_supported_link_arguments([
# gmodule-export-2.0 on windows does not include -export-dynamic flag
'-export-dynamic',
'-no-undefined',
'-Wl,--export-all-symbols',
'-Wl,--no-undefined',
])
endif
@ -264,7 +264,7 @@ ldflags = []
if glade_system == 'windows'
rc = configure_file(
input: 'glade-previewer.rc.in',
output: '@BASELINE@',
output: 'glade-previewer.rc',
configuration: rc_conf,
)

View File

@ -1,6 +1,5 @@
# please keep this list sorted alphabetically
#
da
bg
ca
cs

File diff suppressed because it is too large Load Diff

View File

@ -2,13 +2,13 @@
# Copyright (C) 2009 glade3's COPYRIGHT HOLDER
# This file is distributed under the same license as the glade3 package.
#
# Marek Černocký <marek@manet.cz>, 2009, 2013, 2016, 2017, 2019.
# Marek Černocký <marek@manet.cz>, 2009, 2013, 2016, 2017, 2019, 2020.
#
msgid ""
msgstr ""
"Project-Id-Version: glade3 gnome-2-28\n"
"POT-Creation-Date: 2019-04-06 09:52+0000\n"
"PO-Revision-Date: 2019-04-10 16:09+0200\n"
"Project-Id-Version: glade3\n"
"POT-Creation-Date: 2020-06-22 15:48+0000\n"
"PO-Revision-Date: 2020-09-09 19:49+0200\n"
"Last-Translator: Marek Černocký <marek@manet.cz>\n"
"Language-Team: Czech <gnome-cs-list@gnome.org>\n"
"Language: cs\n"
@ -169,12 +169,12 @@ msgstr "Ohlasy"
#: C/index.docbook:136
msgid ""
"To report a bug or make a suggestion regarding the Glade application or this "
"manual, follow the directions in the <ulink url=\"help:gnome-feedback\" type="
"\"help\">GNOME Feedback Page</ulink>."
"manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\">GNOME Issue Tracker</ulink>."
msgstr ""
"Pokud chcete oznámit chybu nebo navrhnout vylepšení vztahující se k aplikaci "
"Glade nebo k této příručce, postupujte dle instrukcí na <ulink url=\"help:"
"gnome-feedback\" type=\"help\">stránce s ohlasy ke GNOME</ulink>."
"Glade nebo této příručce, navštivte <ulink url=\"https://gitlab.gnome.org/"
"GNOME/glade/issues/\">Systém pro sledování problémů GNOME</ulink>."
#. (itstool) path: article/indexterm
#: C/index.docbook:144
@ -259,11 +259,11 @@ msgstr "Nabídka <guimenu>Aplikace</guimenu>"
#. (itstool) path: listitem/para
#: C/index.docbook:181
msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade "
"Interface Designer</guimenuitem> </menuchoice>."
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
msgstr ""
"Zvolte <menuchoice><guisubmenu>Programování</guisubmenu> "
"<guimenuitem>Návrhář rozhraní Glade</guimenuitem></menuchoice>."
"Zvolte <menuchoice><guisubmenu>Programování</guisubmenu> <guimenuitem>Glade"
"</guimenuitem></menuchoice>."
#. (itstool) path: varlistentry/term
#: C/index.docbook:189
@ -314,12 +314,12 @@ msgstr ""
#: C/index.docbook:205
msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Shows the<application>Glade</"
"></imageobject> <textobject><phrase>Shows the <application>Glade</"
"application> window.</phrase></textobject>"
msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Ukazuje okno aplikace "
"<application>Glade</application>.</phrase></textobject>"
"></imageobject> <textobject><phrase>Ukazuje okno aplikace <application>Glade"
"</application>.</phrase></textobject>"
#. (itstool) path: sect2/para
#: C/index.docbook:212
@ -564,8 +564,8 @@ msgstr "Režim umisťování ovládacího prvku"
msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-"
"level widgets, and so on. After you place a widget, the mode returns to "
"pointer-plus-cross. You can then place the widget inside containers, "
"toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode."
msgstr ""
"Do režimu umisťování ovládacího prvku se přepnete po vybraní ovládacího "
@ -576,16 +576,16 @@ msgstr ""
#. (itstool) path: varlistentry/term
#: C/index.docbook:335
msgid "Top-level placement mode"
msgid "Toplevel placement mode"
msgstr "Režim umisťování v nejvyšší úrovni"
#. (itstool) path: listitem/para
#: C/index.docbook:337
msgid ""
"To use top level placement mode, select a defined top-level widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in "
"To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on "
"your desktop. You can then edit the widget. After you select a top-level "
"your desktop. You can then edit the widget. After you select a toplevel "
"widget, the mode returns to selection mode."
msgstr ""
"Do režimu umisťování v nejvyšší úrovni se přepnete výběrem ovládacího prvku "

View File

@ -6,15 +6,16 @@
msgid ""
msgstr ""
"Project-Id-Version: glade master\n"
"POT-Creation-Date: 2020-03-10 14:06+0000\n"
"PO-Revision-Date: 2020-03-17 09:22+0200\n"
"Last-Translator: scootergrisen\n"
"POT-Creation-Date: 2021-05-02 06:11+0000\n"
"PO-Revision-Date: 2022-01-23 14:11+0100\n"
"Last-Translator: Alan Mortensen <alanmortensen.am@gmail.com>\n"
"Language-Team: Danish <dansk@dansk-gruppen.dk>\n"
"Language: da\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Poedit 2.3\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
@ -61,8 +62,8 @@ msgid ""
"geddes@gmail.com</email></address> </affiliation>"
msgstr ""
"<firstname>Vincent</firstname> <surname>Geddes</surname> <affiliation> "
"<orgname>GNOME-dokumentationsprojektet</orgname> "
"<address><email>vincent.geddes@gmail.com</email></address> </affiliation>"
"<orgname>GNOME-dokumentationsprojektet</orgname> <address><email>vincent."
"geddes@gmail.com</email></address> </affiliation>"
#. (itstool) path: authorgroup/author
#: C/index.docbook:52
@ -93,8 +94,8 @@ msgid ""
"<revnumber>Glade Manual 3.0</revnumber> <date>5 December 2006</date> <_:"
"revdescription-1/>"
msgstr ""
"<revnumber>Manual til Glade 3.0</revnumber> <date>5. december 2006</date> "
"<_:revdescription-1/>"
"<revnumber>Manual til Glade 3.0</revnumber> <date>5. december 2006</date> <_:"
"revdescription-1/>"
#. (itstool) path: revdescription/para
#: C/index.docbook:95 C/index.docbook:103 C/index.docbook:111
@ -107,8 +108,8 @@ msgid ""
"<revnumber>Glade Manual 2.1;</revnumber> <date>17 June 2004</date> <_:"
"revdescription-1/>"
msgstr ""
"<revnumber>Manual til Glade 2.1;</revnumber> <date>17. juni 2004</date> "
"<_:revdescription-1/>"
"<revnumber>Manual til Glade 2.1;</revnumber> <date>17. juni 2004</date> <_:"
"revdescription-1/>"
#. (itstool) path: revhistory/revision
#: C/index.docbook:99
@ -116,8 +117,8 @@ msgid ""
"<revnumber>Glade User Manual 2.0</revnumber> <date>25 February 2004</date> "
"<_:revdescription-1/>"
msgstr ""
"<revnumber>Brugermanual til Glade 2.0</revnumber> <date>25. februar "
"2004</date> <_:revdescription-1/>"
"<revnumber>Brugermanual til Glade 2.0</revnumber> <date>25. februar 2004</"
"date> <_:revdescription-1/>"
#. (itstool) path: revhistory/revision
#: C/index.docbook:107
@ -125,8 +126,8 @@ msgid ""
"<revnumber>Glade User Manual 1.2</revnumber> <date>10 Feb 2004</date> <_:"
"revdescription-1/>"
msgstr ""
"<revnumber>Brugermanual til Glade 1.2</revnumber> <date>10. februar "
"2004</date> <_:revdescription-1/>"
"<revnumber>Brugermanual til Glade 1.2</revnumber> <date>10. februar 2004</"
"date> <_:revdescription-1/>"
#. (itstool) path: revdescription/para
#: C/index.docbook:119 C/index.docbook:127
@ -139,8 +140,8 @@ msgid ""
"<revnumber>Glade User Manual 1.1</revnumber> <date>30 Mar 2002</date> <_:"
"revdescription-1/>"
msgstr ""
"<revnumber>Brugermanual til Glade 1.1</revnumber> <date>30. marts "
"2002</date> <_:revdescription-1/>"
"<revnumber>Brugermanual til Glade 1.1</revnumber> <date>30. marts 2002</"
"date> <_:revdescription-1/>"
#. (itstool) path: revhistory/revision
#: C/index.docbook:123
@ -168,10 +169,9 @@ msgid ""
"manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\">GNOME Issue Tracker</ulink>."
msgstr ""
"Rapportér en fejl eller kom med et forslag til programmet "
"Glade eller manualen ved at besøge <ulink "
"url=\"https://gitlab.gnome.org/GNOME/glade/issues/\">GNOME Issue "
"Tracker</ulink>."
"Rapportér en fejl eller kom med et forslag til programmet Glade eller "
"manualen ved at besøge <ulink url=\"https://gitlab.gnome.org/GNOME/glade/"
"issues/\">GNOME Issue Tracker</ulink>."
#. (itstool) path: article/indexterm
#: C/index.docbook:144
@ -195,9 +195,9 @@ msgid ""
"create and edit user interface designs for <application>GTK+</application> "
"applications."
msgstr ""
"Grænsefladedesigneren <application>Glade</application> giver dig "
"mulighed for at oprette og redigere brugergrænsefladedesign til "
"<application>GTK+</application>-programmer."
"Grænsefladedesigneren <application>Glade</application> giver dig mulighed "
"for at oprette og redigere brugergrænsefladedesign til <application>GTK+</"
"application>-programmer."
#. (itstool) path: sect1/para
#: C/index.docbook:158
@ -210,12 +210,12 @@ msgid ""
"connections between widgets and application source code."
msgstr ""
"GTK+-biblioteket giver en omfattende samling af byggesten til "
"brugergrænseflader såsom tekstbokse, dialogetiketter, "
"talindtastninger, afkrydsningsbokse og menuer. Byggestenene kaldes "
"<emphasis>kontroller</emphasis>. Du kan bruge Glade til at placere kontroller i en "
"grafisk brugerflade. Glade giver dig mulighed for at ændre kontrollernes layout "
"og egenskaber. Du kan også bruge Glade til at "
"tilføje forbindelser mellem kontrollerne og programmets kildekode."
"brugergrænseflader såsom tekstbokse, dialogetiketter, talindtastninger, "
"afkrydsningsbokse og menuer. Byggestenene kaldes <emphasis>kontroller</"
"emphasis>. Du kan bruge Glade til at placere kontroller i en grafisk "
"brugerflade. Glade giver dig mulighed for at ændre kontrollernes layout og "
"egenskaber. Du kan også bruge Glade til at tilføje forbindelser mellem "
"kontrollerne og programmets kildekode."
#. (itstool) path: sect1/para
#: C/index.docbook:164
@ -252,11 +252,11 @@ msgstr "Menuen <guimenu>Programmer</guimenu>"
#. (itstool) path: listitem/para
#: C/index.docbook:181
msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade "
"Interface Designer</guimenuitem> </menuchoice>."
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
msgstr ""
"Vælg <menuchoice> <guisubmenu>Programmering</guisubmenu> "
"<guimenuitem>Glade</guimenuitem> </menuchoice>."
"Vælg <menuchoice> <guisubmenu>Programmering</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
#. (itstool) path: varlistentry/term
#: C/index.docbook:189
@ -282,7 +282,8 @@ msgstr "Når du starter <application>Glade</application>"
msgid ""
"When you start <application>Glade</application>, the following window is "
"displayed."
msgstr "Når du starter <application>Glade</application>, vises følgende vindue."
msgstr ""
"Når du starter <application>Glade</application>, vises følgende vindue."
#. (itstool) path: figure/title
#: C/index.docbook:203
@ -304,18 +305,19 @@ msgstr "[billedet er indsendt]"
#: C/index.docbook:205
msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Shows the<application>Glade</"
"></imageobject> <textobject><phrase>Shows the <application>Glade</"
"application> window.</phrase></textobject>"
msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" "
"format=\"PNG\"/></imageobject> <textobject><phrase>Viser "
"vinduet <application>Glade</application>.</phrase></textobject>"
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Viser vinduet <application>Glade</"
"application>.</phrase></textobject>"
#. (itstool) path: sect2/para
#: C/index.docbook:212
msgid ""
"The <application>Glade</application> window contains the following elements:"
msgstr "Vinduet <application>Glade</application> indeholder følgende elementer:"
msgstr ""
"Vinduet <application>Glade</application> indeholder følgende elementer:"
#. (itstool) path: varlistentry/term
#: C/index.docbook:215
@ -376,7 +378,8 @@ msgstr "Inspektør"
#. (itstool) path: listitem/para
#: C/index.docbook:237
msgid "The inspector displays information about the widgets in a project."
msgstr "Inspektøren viser information om de kontroller som findes i et projekt."
msgstr ""
"Inspektøren viser information om de kontroller som findes i et projekt."
#. (itstool) path: varlistentry/term
#: C/index.docbook:240
@ -389,8 +392,8 @@ msgid ""
"The property editor is used to manipulate the properties of widgets, as well "
"as adding connections to source code."
msgstr ""
"Egenskabsredigeringen bruges til at manipulere kontrollernes egenskaber "
"samt at tilføje forbindelser til kildekode."
"Egenskabsredigeringen bruges til at manipulere kontrollernes egenskaber samt "
"at tilføje forbindelser til kildekode."
#. (itstool) path: varlistentry/term
#: C/index.docbook:245
@ -423,9 +426,9 @@ msgid ""
"guimenu><guimenuitem>New</guimenuitem></menuchoice>. The application "
"displays a new blank project in the <application>Glade</application> window."
msgstr ""
"Opret et nyt projekt ved at vælge <menuchoice><guimenu>Fil</guimenu><guimenu"
"item>Ny</guimenuitem></menuchoice>. Programmet viser et nyt tomt projekt i "
"vinduet <application>Glade</application>."
"Opret et nyt projekt ved at vælge <menuchoice><guimenu>Fil</"
"guimenu><guimenuitem>Ny</guimenuitem></menuchoice>. Programmet viser et nyt "
"tomt projekt i vinduet <application>Glade</application>."
#. (itstool) path: sect2/title
#: C/index.docbook:266
@ -439,9 +442,9 @@ msgid ""
"guimenu><guimenuitem>Open</guimenuitem></menuchoice>. The application "
"displays the project in the <application>Glade</application> window."
msgstr ""
"Åbn et eksisterende projekt ved at vælge <menuchoice><guimenu>Fil</guimenu><"
"guimenuitem>Åbn</guimenuitem></menuchoice>. Programmet viser projektet i "
"vinduet <application>Glade</application>."
"Åbn et eksisterende projekt ved at vælge <menuchoice><guimenu>Fil</"
"guimenu><guimenuitem>Åbn</guimenuitem></menuchoice>. Programmet viser "
"projektet i vinduet <application>Glade</application>."
#. (itstool) path: sect2/title
#: C/index.docbook:272
@ -460,8 +463,9 @@ msgid ""
"<menuchoice><guimenu>File</guimenu><guimenuitem>Save</guimenuitem></"
"menuchoice>."
msgstr ""
"For at gemme ændringerne til en eksisterende projektfil vælges <menuchoi"
"ce><guimenu>Fil</guimenu><guimenuitem>Gem</guimenuitem></menuchoice>."
"For at gemme ændringerne til en eksisterende projektfil vælges "
"<menuchoice><guimenu>Fil</guimenu><guimenuitem>Gem</guimenuitem></"
"menuchoice>."
#. (itstool) path: listitem/para
#: C/index.docbook:277
@ -510,11 +514,11 @@ msgid ""
"use the <guilabel>Properties</guilabel> window to edit the properties of the "
"widgets."
msgstr ""
"For at bruge markeringstilstand klikkes på pilen "
"<guilabel>Vælger</guilabel>. Markøren skifter til en pil for at "
"indikere at markeringstilstand er aktiv. I denne tilstand kan du bruge musen "
"til at vælge kontroller i dit projekt. Du kan så bruge "
"vinduet <guilabel>Egenskaber</guilabel> til at redigere kontrollernes egenskaber."
"For at bruge markeringstilstand klikkes på pilen <guilabel>Vælger</"
"guilabel>. Markøren skifter til en pil for at indikere at markeringstilstand "
"er aktiv. I denne tilstand kan du bruge musen til at vælge kontroller i dit "
"projekt. Du kan så bruge vinduet <guilabel>Egenskaber</guilabel> til at "
"redigere kontrollernes egenskaber."
#. (itstool) path: listitem/para
#: C/index.docbook:306
@ -522,9 +526,8 @@ msgid ""
"You can also use the widget context menu to select a widget. Right-click on "
"a widget to open the widget context menu."
msgstr ""
"Du kan også bruge kontrollens genvejsmenu til at "
"vælge en kontrol. Højreklik på en kontrol for at åbne "
"kontrollens genvejsmenu."
"Du kan også bruge kontrollens genvejsmenu til at vælge en kontrol. Højreklik "
"på en kontrol for at åbne kontrollens genvejsmenu."
#. (itstool) path: listitem/para
#: C/index.docbook:307
@ -535,11 +538,11 @@ msgid ""
"guilabel> arrow or another widget in the <guilabel>Palette</guilabel> to "
"return to normal mode."
msgstr ""
"Du kan tilføje adskillige kontroller af en bestemt type fra "
"<guilabel>Palet</guilabel> til dit projekt ved at holde tasten "
"<keycap>Control</keycap> nede når du vælger en kontrol. Du skal "
"klikke på pilen <guilabel>Vælger</guilabel> eller en anden kontrol i "
"<guilabel>Palet</guilabel> for at vende tilbage til normal tilstand."
"Du kan tilføje adskillige kontroller af en bestemt type fra <guilabel>Palet</"
"guilabel> til dit projekt ved at holde tasten <keycap>Control</keycap> nede "
"når du vælger en kontrol. Du skal klikke på pilen <guilabel>Vælger</"
"guilabel> eller en anden kontrol i <guilabel>Palet</guilabel> for at vende "
"tilbage til normal tilstand."
#. (itstool) path: varlistentry/term
#: C/index.docbook:318
@ -551,36 +554,35 @@ msgstr "Kontrolplaceringstilstand"
msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-"
"level widgets, and so on. After you place a widget, the mode returns to "
"pointer-plus-cross. You can then place the widget inside containers, "
"toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode."
msgstr ""
"For at bruge kontrolplaceringstilstand vælges en kontrol i "
"vinduet <guilabel>Palet</guilabel>. Når du vælger de fleste kontroller, så "
"ændres markøren til et markør-plus-kryds. Du kan så placere kontrollen "
"i beholdere, topniveaukontroller osv. Når du har placeret en kontrol "
"vender tilstanden tilbage til markeringstilstand."
"For at bruge kontrolplaceringstilstand vælges en kontrol i vinduet "
"<guilabel>Palet</guilabel>. Når du vælger de fleste kontroller, så ændres "
"markøren til et markør-plus-kryds. Du kan så placere kontrollen i beholdere, "
"topniveaukontroller osv. Når du har placeret en kontrol, vender tilstanden "
"tilbage til markeringstilstand."
#. (itstool) path: varlistentry/term
#: C/index.docbook:335
msgid "Top-level placement mode"
msgid "Toplevel placement mode"
msgstr "Topniveauplaceringstilstand"
#. (itstool) path: listitem/para
#: C/index.docbook:337
msgid ""
"To use top level placement mode, select a defined top-level widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in "
"To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on "
"your desktop. You can then edit the widget. After you select a top-level "
"your desktop. You can then edit the widget. After you select a toplevel "
"widget, the mode returns to selection mode."
msgstr ""
"For at bruge topniveauplaceringstilstand vælges en defineret "
"topniveaukontrol i vinduet <guilabel>Palet</guilabel>. Når du vælger en "
"topniveaukontrol i vinduet <guilabel>Palet</guilabel>, så vises kontrollen "
"straks på dit skrivebord. Du kan så redigere kontrollen. "
"Når du har valgt en topniveaukontrol, så vender tilstanden tilbage til "
"markeringstilstand."
"straks på dit skrivebord. Du kan så redigere kontrollen. Når du har valgt en "
"topniveaukontrol, så vender tilstanden tilbage til markeringstilstand."
#. (itstool) path: sect2/title
#: C/index.docbook:354
@ -667,10 +669,9 @@ msgid ""
"be added or deleted later."
msgstr ""
"Du kan indlejre bokse for at oprette komplekse layoutstrukturer. Når du "
"opretter vandrette og lodrette bokse, så spørger "
"<application>Glade</application> dig om hvor mange rækker og kolonner der "
"skal oprettes til at starte med, selvom rækker og kolonner let kan tilføjes "
"eller slettes senere."
"opretter vandrette og lodrette bokse, så spørger <application>Glade</"
"application> dig om hvor mange rækker og kolonner der skal oprettes til at "
"starte med, selvom rækker og kolonner let kan tilføjes eller slettes senere."
#. (itstool) path: sect2/para
#: C/index.docbook:379
@ -685,9 +686,9 @@ msgstr ""
"Når du har oprettet alle de bokse du har brug for, så kan du tilføje "
"bestemte kontroller såsom etiketter, knapper og mere komplekse kontroller i "
"boksene. Bemærk at <application>Glade</application> pakker kontroller i "
"layoutet hvilket fjerner en masse kedeligt arbejde. Brugen af "
"bokse giver vinduer mulighed for at rumme etiketter med forskellig størrelse "
"forskellige sprog når programmet er lokaliseret."
"layoutet hvilket fjerner en masse kedeligt arbejde. Brugen af bokse giver "
"vinduer mulighed for at rumme etiketter med forskellig størrelse "
"forskellige sprog når programmet er lokaliseret."
#. (itstool) path: sect2/title
#: C/index.docbook:387
@ -718,8 +719,8 @@ msgid ""
"menuchoice>. The original widget remains attached to the parent."
msgstr ""
"For at kopiere en kontrol til udklipsholderen vælges kontrollen og så vælges "
"<menuchoice> <guimenu>Redigér</guimenu> <guisubmenu>Kopiér</guisubmenu> "
"</menuchoice>. Den oprindelige kontrol bliver ved med at være tilknyttet "
"<menuchoice> <guimenu>Redigér</guimenu> <guisubmenu>Kopiér</guisubmenu> </"
"menuchoice>. Den oprindelige kontrol bliver ved med at være tilknyttet "
"ophavskomponenten."
#. (itstool) path: sect2/title
@ -735,8 +736,8 @@ msgid ""
"menuchoice>."
msgstr ""
"For at indsætte en kontrol, som findes i udklipsholderen, i dit projekt "
"vælges <menuchoice> <guimenu>Redigér</guimenu> "
"<guisubmenu>Indsæt</guisubmenu> </menuchoice>."
"vælges <menuchoice> <guimenu>Redigér</guimenu> <guisubmenu>Indsæt</"
"guisubmenu> </menuchoice>."
#. (itstool) path: sect2/para
#: C/index.docbook:420
@ -750,10 +751,10 @@ msgid ""
msgstr ""
"Alle kontroller skal have et unikt navn i <application>Glade</application>. "
"Hvis du klipper en kontrol og så indsætter kontrollen i dit projekt, så "
"beholder kontrollen og alle kontrollens underkomponenter deres "
"oprindelige navne. Hvis du kopierer en kontrol eller indsætter kontrollen "
"adskillige gange i dit projekt, så genererer "
"<application>Glade</application> nye navne til kontrollerens kopier."
"beholder kontrollen og alle kontrollens underkomponenter deres oprindelige "
"navne. Hvis du kopierer en kontrol eller indsætter kontrollen adskillige "
"gange i dit projekt, så genererer <application>Glade</application> nye navne "
"til kontrollerens kopier."
#. (itstool) path: sect2/title
#: C/index.docbook:429
@ -785,7 +786,8 @@ msgid ""
msgstr ""
"Egenskabsredigeringen bruges til at redigere egenskaberne i den valgte "
"kontrol. For at ændre en egenskab i en kontrol vælges kontrollen og så "
"indtastes den fornødne værdi i et af felterne med egenskaber i vinduet Egenskaber."
"indtastes den fornødne værdi i et af felterne med egenskaber i vinduet "
"Egenskaber."
#. (itstool) path: sect1/title
#: C/index.docbook:454
@ -799,10 +801,9 @@ msgid ""
"To find more information about Glade, please visit the <ulink url=\"http://"
"glade.gnome.org\" type=\"http\">Glade Web site</ulink>."
msgstr ""
"Glade vedligeholdes af Glade-udviklerne og frivillige fra "
"GNOME-fællesskabet. For at finde mere information om Glade, besøg "
"venligst <ulink url=\"http://glade.gnome.org\" type=\"http\">Glade-"
"webstedet</ulink>."
"Glade vedligeholdes af Glade-udviklerne og frivillige fra GNOME-"
"fællesskabet. For at finde mere information om Glade, besøg venligst <ulink "
"url=\"http://glade.gnome.org\" type=\"http\">Glade-webstedet</ulink>."
#. (itstool) path: sect1/para
#: C/index.docbook:459
@ -811,10 +812,9 @@ msgid ""
"manual, you can submit them using <ulink url=\"https://gitlab.gnome.org/"
"GNOME/glade/issues/\" type=\"http\">our issue tracking system</ulink>."
msgstr ""
"Rapportér en fejl eller kom med et forslag til programmet eller "
"manualen ved at indsende dem med <ulink "
"url=\"https://gitlab.gnome.org/GNOME/glade/issues/\" type=\"http\">vores issue-"
"sporingssystem</ulink>."
"Rapportér en fejl eller kom med et forslag til programmet eller manualen ved "
"at indsende dem med <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\" type=\"http\">vores issue-sporingssystem</ulink>."
#. (itstool) path: sect1/para
#: C/index.docbook:466
@ -826,11 +826,11 @@ msgid ""
"might also want to browse the list archives, available via these same links."
msgstr ""
"En anden fremragende kilde med information er Glades mailinglister til "
"<ulink url=\"http://lists.ximian.com/mailman/listinfo/glade-users\" "
"type=\"http\">bruger</ulink> og <ulink "
"url=\"http://lists.ximian.com/mailman/listinfo/glade-devel\" "
"type=\"http\">udvikler</ulink>. Udover at abonnere kan du også gennemse "
"listernes arkiver som er tilgængelige via de samme links."
"<ulink url=\"http://lists.ximian.com/mailman/listinfo/glade-users\" type="
"\"http\">bruger</ulink> og <ulink url=\"http://lists.ximian.com/mailman/"
"listinfo/glade-devel\" type=\"http\">udvikler</ulink>. Udover at abonnere "
"kan du også gennemse listernes arkiver som er tilgængelige via de samme "
"links."
#. (itstool) path: sect1/para
#: C/index.docbook:476
@ -844,8 +844,8 @@ msgstr ""
"Dette program distribueres under betingelserne i GNU General Public License "
"som udgivet af the Free Software Foundation; enten version 2 af denne licens "
"eller (efter eget valg) enhver senere version. En kopi af denne licens kan "
"ses på <ulink url=\"help:gpl\" type=\"help\">link</ulink>, eller i filen COPYING "
"inkluderet med kildekoden for dette program."
"ses på <ulink url=\"help:gpl\" type=\"help\">link</ulink>, eller i filen "
"COPYING inkluderet med kildekoden for dette program."
#. (itstool) path: para/ulink
#: C/legal.xml:9

View File

@ -1,19 +1,20 @@
# German translation of the Glade3 manual.
# Mario Blättermann <mario.blaettermann@gmail.com>, 2009, 2013, 2016-2019.
# Mario Reyer <gnome-de@reyer.de>, 2010.
#
# Mario Blättermann <mario.blaettermann@gmail.com>, 2009, 2013, 2016-2019, 2021.
# Mario Reyer <gnome-de@reyer.de>, 2010.
msgid ""
msgstr ""
"Project-Id-Version: glade3-help\n"
"POT-Creation-Date: 2019-04-06 09:57+0000\n"
"PO-Revision-Date: 2019-04-07 17:21+0200\n"
"POT-Creation-Date: 2020-06-22 15:48+0000\n"
"PO-Revision-Date: 2021-03-04 18:52+0100\n"
"Last-Translator: Mario Blättermann <mario.blaettermann@gmail.com>\n"
"Language-Team: German <gnome-de@gnome.org>\n"
"Language: de\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2.1\n"
"X-Generator: Lokalize 20.12.2\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
@ -165,15 +166,19 @@ msgstr "Rückmeldungen"
#. (itstool) path: legalnotice/para
#: C/index.docbook:136
#| msgid ""
#| "To report a bug or make a suggestion regarding the Glade application or "
#| "this manual, follow the directions in the <ulink url=\"help:gnome-feedback"
#| "\" type=\"help\">GNOME Feedback Page</ulink>."
msgid ""
"To report a bug or make a suggestion regarding the Glade application or this "
"manual, follow the directions in the <ulink url=\"help:gnome-feedback\" type="
"\"help\">GNOME Feedback Page</ulink>."
"manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\">GNOME Issue Tracker</ulink>."
msgstr ""
"Um Fehler zu melden oder einen Vorschlag zur Anwendung <application>Glade</"
"application> oder zu diesem Handbuch zu machen, folgen Sie den Anweisungen "
"auf der <ulink url=\"help:gnome-feedback\" type=\"help\">GNOME-Seite für "
"Rückmeldungen</ulink>."
"application> oder zu diesem Handbuch zu machen, besuchen Sie das <ulink"
" url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\">GNOME Fehlererfassungssystem</ulink>."
#. (itstool) path: article/indexterm
#: C/index.docbook:144
@ -256,12 +261,15 @@ msgstr "Menü <guimenu>Anwendungen</guimenu>"
#. (itstool) path: listitem/para
#: C/index.docbook:181
#| msgid ""
#| "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> "
#| "<guimenuitem>Glade Interface Designer</guimenuitem> </menuchoice>."
msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade "
"Interface Designer</guimenuitem> </menuchoice>."
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
msgstr ""
"Wählen Sie <menuchoice><guisubmenu>Entwicklung</"
"guisubmenu><guimenuitem>Glade Oberflächenentwicklung</guimenuitem></"
"guisubmenu><guimenuitem>Glade</guimenuitem></"
"menuchoice>."
#. (itstool) path: varlistentry/term
@ -311,9 +319,13 @@ msgstr "translated'"
#. (itstool) path: screenshot/mediaobject
#: C/index.docbook:205
#| msgid ""
#| "<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG"
#| "\"/></imageobject> <textobject><phrase>Shows the<application>Glade</"
#| "application> window.</phrase></textobject>"
msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Shows the<application>Glade</"
"></imageobject> <textobject><phrase>Shows the <application>Glade</"
"application> window.</phrase></textobject>"
msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
@ -565,11 +577,17 @@ msgstr "Widget-Platzierungsmodus"
#. (itstool) path: listitem/para
#: C/index.docbook:320
#| msgid ""
#| "To use widget placement mode, select a widget in the <guilabel>Palette</"
#| "guilabel> window. When you select most widgets, the pointer changes to a "
#| "pointer-plus-cross. You can then place the widget inside containers, top-"
#| "level widgets, and so on. After you place a widget, the mode returns to "
#| "selection mode."
msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-"
"level widgets, and so on. After you place a widget, the mode returns to "
"pointer-plus-cross. You can then place the widget inside containers, "
"toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode."
msgstr ""
"Zum Benutzen des Platzierungsmodus wählen Sie ein Widget aus der "
@ -581,16 +599,23 @@ msgstr ""
#. (itstool) path: varlistentry/term
#: C/index.docbook:335
msgid "Top-level placement mode"
#| msgid "Top-level placement mode"
msgid "Toplevel placement mode"
msgstr "Platzierungsmodus in der obersten Ebene"
#. (itstool) path: listitem/para
#: C/index.docbook:337
#| msgid ""
#| "To use top level placement mode, select a defined top-level widget in the "
#| "<guilabel>Palette</guilabel> window. When you select a top-level widget "
#| "in the <guilabel>Palette</guilabel> window, the widget appears "
#| "immediately on your desktop. You can then edit the widget. After you "
#| "select a top-level widget, the mode returns to selection mode."
msgid ""
"To use top level placement mode, select a defined top-level widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in "
"To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on "
"your desktop. You can then edit the widget. After you select a top-level "
"your desktop. You can then edit the widget. After you select a toplevel "
"widget, the mode returns to selection mode."
msgstr ""
"Zum Benutzen des Platzierungsmodus in der obersten Ebene wählen Sie ein "
@ -827,15 +852,19 @@ msgstr ""
#. (itstool) path: sect1/para
#: C/index.docbook:459
#| msgid ""
#| "To report a bug or make a suggestion regarding this application or this "
#| "manual, you can submit them using <ulink url=\"http://bugzilla.gnome.org/"
#| "enter_bug.cgi?product=glade3\" type=\"http\">bugzilla</ulink>."
msgid ""
"To report a bug or make a suggestion regarding this application or this "
"manual, you can submit them using <ulink url=\"http://bugzilla.gnome.org/"
"enter_bug.cgi?product=glade3\" type=\"http\">bugzilla</ulink>."
"manual, you can submit them using <ulink url=\"https://gitlab.gnome.org/"
"GNOME/glade/issues/\" type=\"http\">our issue tracking system</ulink>."
msgstr ""
"Um einen Fehler zu melden oder einen Vorschlag zu dieser Anwendung oder zu "
"diesem Handbuch zu machen, benutzen Sie bitte das<ulink url=\"http://"
"bugzilla.gnome.org/enter_bug.cgi?product=glade3\" type=\"http\">Bugzilla-"
"Fehlererfassungssystem</ulink>."
"diesem Handbuch zu machen, benutzen Sie bitte <ulink"
" url=\"https://gitlab.gnome.org/"
"GNOME/glade/issues/\" type=\"http\">unser Fehlererfassungssystem</ulink>."
#. (itstool) path: sect1/para
#: C/index.docbook:466

View File

@ -2,27 +2,27 @@
# Jorge González <jorgegonz@svn.gnome.org>, 2007, 2008.
# spanish translation for glade3 manual
# traducción al español del manual de glade3
# Daniel Mustieles <daniel.mustieles@gmail.com>, 2012-2020.
# Daniel Mustieles <daniel.mustieles@gmail.com>, 2012-2021.
#
msgid ""
msgstr ""
"Project-Id-Version: glade3.help.HEAD\n"
"POT-Creation-Date: 2020-01-02 22:42+0000\n"
"PO-Revision-Date: 2020-01-07 13:09+0100\n"
"POT-Creation-Date: 2020-06-22 15:48+0000\n"
"PO-Revision-Date: 2021-05-10 11:56+0200\n"
"Last-Translator: Daniel Mustieles <daniel.mustieles@gmail.com>\n"
"Language-Team: Spanish - Spain <gnome-es-list@gnome.org>\n"
"Language: es_ES\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Gtranslator 3.34.0\n"
"X-Generator: Gtranslator 40.0\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
msgstr ""
"Daniel Mustieles <daniel.mustieles@gmail.com>, 2012 - 2020\n"
"Daniel Mustieles <daniel.mustieles@gmail.com>, 2012 - 2021\n"
"Jorge González <jorgegonz@svn.gnome.org>, 2007-2008"
#. (itstool) path: articleinfo/title
@ -167,10 +167,6 @@ msgstr "Comentarios"
#. (itstool) path: legalnotice/para
#: C/index.docbook:136
#| msgid ""
#| "To report a bug or make a suggestion regarding this application or this "
#| "manual, you can submit them using <ulink url=\"https://gitlab.gnome.org/"
#| "GNOME/glade/issues/\" type=\"http\">our issue tracking system</ulink>."
msgid ""
"To report a bug or make a suggestion regarding the Glade application or this "
"manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
@ -259,13 +255,15 @@ msgstr "Menú <guimenu>Aplicaciones</guimenu>"
#. (itstool) path: listitem/para
#: C/index.docbook:181
#| msgid ""
#| "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> "
#| "<guimenuitem>Glade Interface Designer</guimenuitem> </menuchoice>."
msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade "
"Interface Designer</guimenuitem> </menuchoice>."
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
msgstr ""
"Elija <menuchoice><guisubmenu>Programación</"
"guisubmenu><guimenuitem>Diseñador de interfaces Glade</guimenuitem></"
"menuchoice>."
"Elija <menuchoice><guisubmenu>Programación</guisubmenu><guimenuitem>Glade</"
"guimenuitem></menuchoice>."
#. (itstool) path: varlistentry/term
#: C/index.docbook:189
@ -314,9 +312,13 @@ msgstr ""
#. (itstool) path: screenshot/mediaobject
#: C/index.docbook:205
#| msgid ""
#| "<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG"
#| "\"/></imageobject> <textobject><phrase>Shows the<application>Glade</"
#| "application> window.</phrase></textobject>"
msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Shows the<application>Glade</"
"></imageobject> <textobject><phrase>Shows the <application>Glade</"
"application> window.</phrase></textobject>"
msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
@ -568,11 +570,17 @@ msgstr "Modo de emplazamiento de widgets"
#. (itstool) path: listitem/para
#: C/index.docbook:320
#| msgid ""
#| "To use widget placement mode, select a widget in the <guilabel>Palette</"
#| "guilabel> window. When you select most widgets, the pointer changes to a "
#| "pointer-plus-cross. You can then place the widget inside containers, top-"
#| "level widgets, and so on. After you place a widget, the mode returns to "
#| "selection mode."
msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-"
"level widgets, and so on. After you place a widget, the mode returns to "
"pointer-plus-cross. You can then place the widget inside containers, "
"toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode."
msgstr ""
"Para usar el modo de emplazamiento de widgets, seleccione un widget de la "
@ -583,16 +591,23 @@ msgstr ""
#. (itstool) path: varlistentry/term
#: C/index.docbook:335
msgid "Top-level placement mode"
#| msgid "Top-level placement mode"
msgid "Toplevel placement mode"
msgstr "Modo de emplazamiento de nivel superior"
#. (itstool) path: listitem/para
#: C/index.docbook:337
#| msgid ""
#| "To use top level placement mode, select a defined top-level widget in the "
#| "<guilabel>Palette</guilabel> window. When you select a top-level widget "
#| "in the <guilabel>Palette</guilabel> window, the widget appears "
#| "immediately on your desktop. You can then edit the widget. After you "
#| "select a top-level widget, the mode returns to selection mode."
msgid ""
"To use top level placement mode, select a defined top-level widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in "
"To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on "
"your desktop. You can then edit the widget. After you select a top-level "
"your desktop. You can then edit the widget. After you select a toplevel "
"widget, the mode returns to selection mode."
msgstr ""
"Para usar el modo de emplazamiento de nivel superior, seleccione un widget "

File diff suppressed because it is too large Load Diff

View File

@ -1,14 +1,14 @@
# Hungarian translation for glade-help.
# Copyright (C) 2014, 2016, 2017, 2018, 2019 Free Software Foundation, Inc.
# Copyright (C) 2014, 2016, 2017, 2018, 2019, 2021 Free Software Foundation, Inc.
# This file is distributed under the same license as the glade package.
#
# Balázs Úr <ur.balazs at fsf dot hu>, 2014, 2017, 2018, 2019.
# Balázs Úr <ur.balazs at fsf dot hu>, 2014, 2017, 2018, 2019, 2021.
# Gábor Kelemen <kelemeng at gnome dot hu>, 2016.
msgid ""
msgstr ""
"Project-Id-Version: glade master\n"
"POT-Creation-Date: 2019-04-07 15:23+0000\n"
"PO-Revision-Date: 2019-04-07 22:04+0100\n"
"POT-Creation-Date: 2020-09-04 05:03+0000\n"
"PO-Revision-Date: 2021-02-20 00:49+0100\n"
"Last-Translator: Balázs Úr <ur.balazs at fsf dot hu>\n"
"Language-Team: Hungarian <gnome-hu-list at gnome dot org>\n"
"Language: hu\n"
@ -16,14 +16,14 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
"X-Generator: Lokalize 2.0\n"
"X-Generator: Lokalize 19.12.3\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
msgstr ""
"Meskó Balázs <mesko.balazs at fsf dot hu>, 2011.\n"
"Úr Balázs <ur.balazs at fsf dot hu>, 2014, 2017, 2018, 2019."
"Úr Balázs <ur.balazs at fsf dot hu>, 2014, 2017, 2018, 2019, 2021."
#. (itstool) path: articleinfo/title
#: C/index.docbook:17
@ -168,14 +168,19 @@ msgstr "Visszajelzés"
#. (itstool) path: legalnotice/para
#: C/index.docbook:136
#| msgid ""
#| "To report a bug or make a suggestion regarding this application or this "
#| "manual, you can submit them using <ulink url=\"https://gitlab.gnome.org/"
#| "GNOME/glade/issues/\" type=\"http\">our issue tracking system</ulink>."
msgid ""
"To report a bug or make a suggestion regarding the Glade application or this "
"manual, follow the directions in the <ulink url=\"help:gnome-feedback\" type="
"\"help\">GNOME Feedback Page</ulink>."
"manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\">GNOME Issue Tracker</ulink>."
msgstr ""
"Egy hiba bejelentéséhez vagy a Glade alkalmazással, illetve ezzel a "
"kézikönyvvel kapcsolatos javaslat tételéhez kövesse a <ulink url=\"help:"
"gnome-feedback\" type=\"help\">GNOME visszajelzés oldal</ulink> útmutatásait."
"Ha hibát szeretne bejelenti, vagy javaslata van a Glade alkalmazással vagy a"
" kézikönyvvel kapcsolatban, akkor azt a <ulink"
" url=\"https://gitlab.gnome.org/GNOME/glade/issues/\">GNOME hibakövető</ulink"
"> segítségével teheti meg."
#. (itstool) path: article/indexterm
#: C/index.docbook:144
@ -257,12 +262,15 @@ msgstr "<guimenu>Alkalmazások</guimenu> menü"
#. (itstool) path: listitem/para
#: C/index.docbook:181
#| msgid ""
#| "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> "
#| "<guimenuitem>Glade Interface Designer</guimenuitem> </menuchoice>."
msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade "
"Interface Designer</guimenuitem> </menuchoice>."
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
msgstr ""
"Válassza a <menuchoice> <guisubmenu>Programozás</guisubmenu> "
"<guimenuitem>Glade felülettervezőt</guimenuitem> </menuchoice>."
"Válassza a <menuchoice> <guisubmenu>Programozás</guisubmenu> <guimenuitem"
">Glade</guimenuitem> </menuchoice> menüpontot."
#. (itstool) path: varlistentry/term
#: C/index.docbook:189
@ -304,10 +312,6 @@ msgstr "A <application>Glade</application> ablaka"
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
#: C/index.docbook:206
#| msgctxt "_"
#| msgid ""
#| "external ref='figures/main-window.png' "
#| "md5='bf5cf7830cf0b9a3c901ad6c13eddbff'"
msgctxt "_"
msgid ""
"external ref='figures/main-window.png' md5='5425da019396c13dbe8deb80303673ba'"
@ -316,9 +320,13 @@ msgstr ""
#. (itstool) path: screenshot/mediaobject
#: C/index.docbook:205
#| msgid ""
#| "<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG"
#| "\"/></imageobject> <textobject><phrase>Shows the<application>Glade</"
#| "application> window.</phrase></textobject>"
msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Shows the<application>Glade</"
"></imageobject> <textobject><phrase>Shows the <application>Glade</"
"application> window.</phrase></textobject>"
msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
@ -565,31 +573,44 @@ msgstr "Felületi elem elhelyezési mód"
#. (itstool) path: listitem/para
#: C/index.docbook:320
#| msgid ""
#| "To use widget placement mode, select a widget in the <guilabel>Palette</"
#| "guilabel> window. When you select most widgets, the pointer changes to a "
#| "pointer-plus-cross. You can then place the widget inside containers, top-"
#| "level widgets, and so on. After you place a widget, the mode returns to "
#| "selection mode."
msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-"
"level widgets, and so on. After you place a widget, the mode returns to "
"pointer-plus-cross. You can then place the widget inside containers, "
"toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode."
msgstr ""
"A felületi elem elhelyezési mód használatához válasszon egy felületi elemet "
"a <guilabel>Palette</guilabel> ablakból. Ekkor az egérmutató is megváltozik. "
"a <guilabel>Paletta</guilabel> ablakból. Ekkor az egérmutató is megváltozik. "
"A felületi elemet konténerbe helyezheti, vagy felsőszintű ablakra teheti és "
"így tovább. Miután elhelyezte a felületi elemet, a program újra kiválasztási "
"módba kerül."
#. (itstool) path: varlistentry/term
#: C/index.docbook:335
msgid "Top-level placement mode"
#| msgid "Top-level placement mode"
msgid "Toplevel placement mode"
msgstr "Felsőszintű elhelyezési mód"
#. (itstool) path: listitem/para
#: C/index.docbook:337
#| msgid ""
#| "To use top level placement mode, select a defined top-level widget in the "
#| "<guilabel>Palette</guilabel> window. When you select a top-level widget "
#| "in the <guilabel>Palette</guilabel> window, the widget appears "
#| "immediately on your desktop. You can then edit the widget. After you "
#| "select a top-level widget, the mode returns to selection mode."
msgid ""
"To use top level placement mode, select a defined top-level widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in "
"To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on "
"your desktop. You can then edit the widget. After you select a top-level "
"your desktop. You can then edit the widget. After you select a toplevel "
"widget, the mode returns to selection mode."
msgstr ""
"A felsőszintű elhelyezési mód használatához válasszon egy felsőszintűnek "

View File

@ -1,25 +1,28 @@
# Indonesian translation for glade.
# Copyright (C) 2016 glade's COPYRIGHT HOLDER
# This file is distributed under the same license as the glade package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
# Kukuh Syafaat <syafaatkukuh@gmail.com>, 2016.
# Andika Triwidada <andika@gmail.com>, 2021.
#
msgid ""
msgstr ""
"Project-Id-Version: glade master\n"
"POT-Creation-Date: 2019-04-06 09:52+0000\n"
"PO-Revision-Date: 2019-11-11 22:25+0700\n"
"POT-Creation-Date: 2020-06-22 15:48+0000\n"
"PO-Revision-Date: 2021-09-07 12:19+0700\n"
"Last-Translator: Andika Triwidada <andika@gmail.com>\n"
"Language-Team: Indonesian <gnome-l10n-id@googlegroups.com>\n"
"Language: id\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.2.4\n"
"X-Generator: Poedit 2.4.3\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
msgid "translator-credits"
msgstr "Kukuh Syafaat <syafaatkukuh@gmail.com>, 2016."
msgstr ""
"Kukuh Syafaat <syafaatkukuh@gmail.com>, 2016.\n"
"Andika Triwidada <andika@gmail.com>, 2021."
#. (itstool) path: articleinfo/title
#: C/index.docbook:17
@ -154,7 +157,7 @@ msgstr ""
#. (itstool) path: articleinfo/releaseinfo
#: C/index.docbook:133
msgid "This manual describes version 3.1.0 of Glade."
msgstr "Panduan ini menjelaskan versi 3.1.0 dari Glade"
msgstr "Panduan ini menjelaskan versi 3.1.0 dari Glade."
#. (itstool) path: legalnotice/title
#: C/index.docbook:135
@ -165,12 +168,12 @@ msgstr "Umpan Balik"
#: C/index.docbook:136
msgid ""
"To report a bug or make a suggestion regarding the Glade application or this "
"manual, follow the directions in the <ulink url=\"help:gnome-feedback\" type="
"\"help\">GNOME Feedback Page</ulink>."
"manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\">GNOME Issue Tracker</ulink>."
msgstr ""
"Untuk melaporkan kutu atau membuat saran mengenai aplikasi Glade atau "
"panduan ini, ikuti petunjuk pada <ulink url=\"help:gnome-feedback\" type="
"\"help\">Laman Umpan Balik GNOME</ulink>."
"panduan ini, kunjungi <ulink url=\"https://gitlab.gnome.org/GNOME/glade/"
"issues/\">Pelacakan Masalah GNOME</ulink>."
#. (itstool) path: article/indexterm
#: C/index.docbook:144
@ -251,11 +254,11 @@ msgstr "Menu <guimenu>Aplikasi</guimenu>"
#. (itstool) path: listitem/para
#: C/index.docbook:181
msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade "
"Interface Designer</guimenuitem> </menuchoice>."
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
msgstr ""
"Pilih <menuchoice> <guisubmenu>Pemrograman</guisubmenu> "
"<guimenuitem>Desainer Antarmuka Glade</guimenuitem> </menuchoice>."
"Pilih <menuchoice> <guisubmenu>Pemrograman</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
#. (itstool) path: varlistentry/term
#: C/index.docbook:189
@ -296,10 +299,6 @@ msgstr "Jendela <application>Glade</application>"
#. update your localized copy. The msgstr is not used at all. Set it to
#. whatever you like once you have updated your copy of the file.
#: C/index.docbook:206
#| msgctxt "_"
#| msgid ""
#| "external ref='figures/main-window.png' "
#| "md5='0ab7dd8af6d049544c81748e72064941'"
msgctxt "_"
msgid ""
"external ref='figures/main-window.png' md5='5425da019396c13dbe8deb80303673ba'"
@ -310,11 +309,11 @@ msgstr ""
#: C/index.docbook:205
msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Shows the<application>Glade</"
"></imageobject> <textobject><phrase>Shows the <application>Glade</"
"application> window.</phrase></textobject>"
msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Tampilkan jendela<application>Glade</"
"></imageobject> <textobject><phrase>Menunjukkan jendela <application>Glade</"
"application>.</phrase></textobject>"
#. (itstool) path: sect2/para
@ -559,36 +558,36 @@ msgstr "Mode penempatan widget"
msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-"
"level widgets, and so on. After you place a widget, the mode returns to "
"pointer-plus-cross. You can then place the widget inside containers, "
"toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode."
msgstr ""
"Untuk menggunakan mode penempatan widget, pilih widget pada jendela "
"<guilabel>Palet</guilabel>. Bila Anda memilih widget, pointer berubah ke "
"pointer-tambah-silangf. Anda kemudian dapat menempatkan widget didalam "
"wadah, widget tingkat-atas, dan sebagainya. Setelah Anda menempatkan sebuah "
"widget, mode akan kembali ke mode seleksi."
"pointer-tambah-silang. Anda kemudian dapat menempatkan widget di dalam "
"wadah, widget tingkat-puncak, dan sebagainya. Setelah Anda menempatkan "
"sebuah widget, mode akan kembali ke mode seleksi."
#. (itstool) path: varlistentry/term
#: C/index.docbook:335
msgid "Top-level placement mode"
msgstr "Mode penempatan tingkat-atas"
msgid "Toplevel placement mode"
msgstr "Mode penempatan tingkat-puncak"
#. (itstool) path: listitem/para
#: C/index.docbook:337
msgid ""
"To use top level placement mode, select a defined top-level widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in "
"To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on "
"your desktop. You can then edit the widget. After you select a top-level "
"your desktop. You can then edit the widget. After you select a toplevel "
"widget, the mode returns to selection mode."
msgstr ""
"Untuk menggunakan mode penempatan tingkat-atas, pilih widget tingkat-atas "
"yang didefinisikan dalam jendela <application>Palet</application>. Bila Anda "
"memilih widget tingkat-atas pada jendela <application>Palet</application>, "
"widget akan segera muncul di destop Anda. Anda kemudian dapat menyunting "
"widget. Setelah Anda memilih widget tingkat-atas, mode akan kembali ke mode "
"seleksi."
"Untuk menggunakan mode penempatan tingkat-puncak, pilih widget tingkat-"
"puncak yang didefinisikan dalam jendela <application>Palet</application>. "
"Bila Anda memilih widget tingkat-puncak pada jendela <application>Palet</"
"application>, widget akan segera muncul di desktop Anda. Anda kemudian dapat "
"menyunting widget. Setelah Anda memilih widget tingkat-puncak, mode akan "
"kembali ke mode seleksi."
#. (itstool) path: sect2/title
#: C/index.docbook:354
@ -602,9 +601,9 @@ msgid ""
"project window. You can choose the following widget containers from the "
"<guilabel>Palette</guilabel> window:"
msgstr ""
"Anda dapat menggunakan wadah widget, atau kotak, untuk tata letak dan "
"mengatur widget pada jendela proyek Anda. Anda dapat memilih wadah widget "
"berikut dari jendela <guilabel>Palet</guilabel>."
"Anda dapat menggunakan wadah widget, atau kotak, untuk mengatur tata letak "
"dan mengorganisasi widget pada jendela proyek Anda. Anda dapat memilih wadah "
"widget berikut dari jendela <guilabel>Palet</guilabel>:"
#. (itstool) path: listitem/para
#: C/index.docbook:360

Binary file not shown.

Before

Width:  |  Height:  |  Size: 51 KiB

After

Width:  |  Height:  |  Size: 45 KiB

View File

@ -7,8 +7,8 @@
msgid ""
msgstr ""
"Project-Id-Version: glade-help\n"
"POT-Creation-Date: 2020-05-15 03:01+0000\n"
"PO-Revision-Date: 2020-05-17 10:49+0200\n"
"POT-Creation-Date: 2020-09-04 05:03+0000\n"
"PO-Revision-Date: 2020-09-06 15:55+0200\n"
"Last-Translator: Piotr Drąg <piotrdrag@gmail.com>\n"
"Language-Team: Polish <community-poland@mozilla.org>\n"
"Language: pl\n"
@ -257,12 +257,11 @@ msgstr "Menu <guimenu>Programy</guimenu>"
#. (itstool) path: listitem/para
#: C/index.docbook:181
msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade "
"Interface Designer</guimenuitem> </menuchoice>."
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
msgstr ""
"Wybierz <menuchoice> <guisubmenu>Programowanie</guisubmenu> "
"<guimenuitem>Narzędzi do projektowania interfejsów Glade</guimenuitem> </"
"menuchoice>."
"<guimenuitem>Glade</guimenuitem> </menuchoice>."
#. (itstool) path: varlistentry/term
#: C/index.docbook:189
@ -563,8 +562,8 @@ msgstr "Tryb rozmieszczania widżetów"
msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-"
"level widgets, and so on. After you place a widget, the mode returns to "
"pointer-plus-cross. You can then place the widget inside containers, "
"toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode."
msgstr ""
"Aby użyć trybu rozmieszczania widżetów, wybierz widżet w oknie "
@ -575,16 +574,16 @@ msgstr ""
#. (itstool) path: varlistentry/term
#: C/index.docbook:335
msgid "Top-level placement mode"
msgid "Toplevel placement mode"
msgstr "Tryb rozmieszczania najwyższego poziomu"
#. (itstool) path: listitem/para
#: C/index.docbook:337
msgid ""
"To use top level placement mode, select a defined top-level widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in "
"To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on "
"your desktop. You can then edit the widget. After you select a top-level "
"your desktop. You can then edit the widget. After you select a toplevel "
"widget, the mode returns to selection mode."
msgstr ""
"Aby użyć trybu rozmieszczania najwyższego poziomu, wybierz określony widżet "

View File

@ -3,15 +3,15 @@
# This file is distributed under the same license as the glade package.
# Joao Emanuel <joaoemanuel1981@gmail.com>, 2007.
# Enrico Nicoletto <liverig@gmail.com>, 2013.
# Rafael Fontenelle <rafaelff@gnome.org>, 2017-2019.
# Rafael Fontenelle <rafaelff@gnome.org>, 2017-2020.
#
msgid ""
msgstr ""
"Project-Id-Version: glade master\n"
"Report-Msgid-Bugs-To: https://bugzilla.gnome.org/enter_bug.cgi?"
"product=glade&keywords=I18N+L10N&component=general\n"
"POT-Creation-Date: 2019-11-11 15:28+0000\n"
"PO-Revision-Date: 2019-12-14 16:04-0300\n"
"POT-Creation-Date: 2020-09-04 05:03+0000\n"
"PO-Revision-Date: 2020-09-12 18:06-0300\n"
"Last-Translator: Rafael Fontenelle <rafaelff@gnome.org>\n"
"Language-Team: Brazilian Portuguese <gnome-pt_br-list@gnome.org>\n"
"Language: pt_BR\n"
@ -19,7 +19,7 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n > 1)\n"
"X-Generator: Gtranslator 3.32.0\n"
"X-Generator: Gtranslator 3.38.0\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_"
@ -171,14 +171,18 @@ msgstr "Comentários"
#. (itstool) path: legalnotice/para
#: C/index.docbook:136
#| msgid ""
#| "To report a bug or make a suggestion regarding this application or this "
#| "manual, you can submit them using <ulink url=\"https://gitlab.gnome.org/"
#| "GNOME/glade/issues/\" type=\"http\">our issue tracking system</ulink>."
msgid ""
"To report a bug or make a suggestion regarding the Glade application or this "
"manual, follow the directions in the <ulink url=\"help:gnome-feedback\" type="
"\"help\">GNOME Feedback Page</ulink>."
"manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\">GNOME Issue Tracker</ulink>."
msgstr ""
"Para relatar um erro ou fazer uma sugestão sobre a aplicação Glade ou seu "
"manual, siga os passos na <ulink url=\"help:gnome-feedback\" type=\"help"
"\">Página de comentários (feedback) do GNOME</ulink>."
"Para relatar um erro ou fazer uma sugestão relacionada ao aplicativo Glade "
"ou a este manual, visite o <ulink url=\"https://gitlab.gnome.org/GNOME/glade/"
"issues/\">rastreador de problemas do GNOME</ulink>."
#. (itstool) path: article/indexterm
#: C/index.docbook:144
@ -259,12 +263,15 @@ msgstr "Menu <guimenu>Aplicações</guimenu>"
#. (itstool) path: listitem/para
#: C/index.docbook:181
#| msgid ""
#| "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> "
#| "<guimenuitem>Glade Interface Designer</guimenuitem> </menuchoice>."
msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade "
"Interface Designer</guimenuitem> </menuchoice>."
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"guimenuitem> </menuchoice>."
msgstr ""
"Vá até <menuchoice> <guisubmenu>Programação</guisubmenu> "
"<guimenuitem>Construtor de interfaces Glade</guimenuitem> </menuchoice>."
"Escolha <menuchoice> <guisubmenu>Programação</guisubmenu> "
"<guimenuitem>Glade</guimenuitem> </menuchoice>."
#. (itstool) path: varlistentry/term
#: C/index.docbook:189
@ -314,9 +321,13 @@ msgstr ""
#. (itstool) path: screenshot/mediaobject
#: C/index.docbook:205
#| msgid ""
#| "<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG"
#| "\"/></imageobject> <textobject><phrase>Shows the<application>Glade</"
#| "application> window.</phrase></textobject>"
msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
"></imageobject> <textobject><phrase>Shows the<application>Glade</"
"></imageobject> <textobject><phrase>Shows the <application>Glade</"
"application> window.</phrase></textobject>"
msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
@ -563,11 +574,17 @@ msgstr "Modo de posicionamento do widget"
#. (itstool) path: listitem/para
#: C/index.docbook:320
#| msgid ""
#| "To use widget placement mode, select a widget in the <guilabel>Palette</"
#| "guilabel> window. When you select most widgets, the pointer changes to a "
#| "pointer-plus-cross. You can then place the widget inside containers, top-"
#| "level widgets, and so on. After you place a widget, the mode returns to "
#| "selection mode."
msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-"
"level widgets, and so on. After you place a widget, the mode returns to "
"pointer-plus-cross. You can then place the widget inside containers, "
"toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode."
msgstr ""
"Para usar o modo de colocação do widget, selecione um widget na janela "
@ -578,16 +595,23 @@ msgstr ""
#. (itstool) path: varlistentry/term
#: C/index.docbook:335
msgid "Top-level placement mode"
#| msgid "Top-level placement mode"
msgid "Toplevel placement mode"
msgstr "Modo de posicionamento do nível superior"
#. (itstool) path: listitem/para
#: C/index.docbook:337
#| msgid ""
#| "To use top level placement mode, select a defined top-level widget in the "
#| "<guilabel>Palette</guilabel> window. When you select a top-level widget "
#| "in the <guilabel>Palette</guilabel> window, the widget appears "
#| "immediately on your desktop. You can then edit the widget. After you "
#| "select a top-level widget, the mode returns to selection mode."
msgid ""
"To use top level placement mode, select a defined top-level widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in "
"To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on "
"your desktop. You can then edit the widget. After you select a top-level "
"your desktop. You can then edit the widget. After you select a toplevel "
"widget, the mode returns to selection mode."
msgstr ""
"Para usar o modo de colocação de nível superior, selecione um determinado "
@ -821,10 +845,6 @@ msgstr ""
#. (itstool) path: sect1/para
#: C/index.docbook:459
#| msgid ""
#| "To report a bug or make a suggestion regarding this application or this "
#| "manual, you can submit them using <ulink url=\"http://bugzilla.gnome.org/"
#| "enter_bug.cgi?product=glade3\" type=\"http\">bugzilla</ulink>."
msgid ""
"To report a bug or make a suggestion regarding this application or this "
"manual, you can submit them using <ulink url=\"https://gitlab.gnome.org/"
@ -975,6 +995,15 @@ msgstr ""
"DA LICENÇA DE DOCUMENTAÇÃO LIVRE GNU COM O ENTENDIMENTO ADICIONAL DE QUE: <_:"
"orderedlist-1/>"
#~ msgid ""
#~ "To report a bug or make a suggestion regarding the Glade application or "
#~ "this manual, follow the directions in the <ulink url=\"help:gnome-feedback"
#~ "\" type=\"help\">GNOME Feedback Page</ulink>."
#~ msgstr ""
#~ "Para relatar um erro ou fazer uma sugestão sobre a aplicação Glade ou seu "
#~ "manual, siga os passos na <ulink url=\"help:gnome-feedback\" type=\"help"
#~ "\">Página de comentários (feedback) do GNOME</ulink>."
#~ msgid "2006"
#~ msgstr "2006"

File diff suppressed because it is too large Load Diff

View File

@ -4,7 +4,6 @@ assert(xsltproc.found(), 'xsltproc is required for man pages generation')
xsltproc_cmd = [
xsltproc,
'--output', '@OUTPUT@',
'--nonet',
'--stringparam', 'man.output.quietly', '1',
'--stringparam', 'funcsynopsis.style', 'ansi',
'--stringparam', 'man.th.extra1.suppress', '1',

View File

@ -8,10 +8,10 @@
# version will always know they are on a development release.
project(
'glade', 'c',
version: '3.37.0',
version: '3.40.0',
license: 'GPL2',
default_options: 'buildtype=debugoptimized',
meson_version: '>= 0.49.0',
meson_version: '>= 0.57.0',
)
glade_name = meson.project_name()
@ -49,8 +49,8 @@ gladeui_libname = '@0@-@1@'.format(gladeui_name, gladeui_version)
# Reference: http://www.gnu.org/software/libtool/manual/libtool.html#Versioning
gladeui_revision = 0
gladeui_current = 12
gladeui_age = 0
gladeui_current = 14
gladeui_age = 1
gladeui_current_minus_age = gladeui_current - gladeui_age
gladeui_libversion = '@0@.@1@.@2@'.format(gladeui_current_minus_age, gladeui_age, gladeui_revision)
@ -65,6 +65,8 @@ glade_unstable = glade_minor_version.is_odd()
gnome = import('gnome')
i18n = import('i18n')
pkg = import('pkgconfig')
# NOTE: On windows we only target MSYS2/mingw
windows = import('windows')
source_root = meson.current_source_dir()
@ -110,7 +112,8 @@ endif
add_project_arguments(common_flags, language: 'c')
# Check required libraries
glib_dep = dependency('glib-2.0', version: '>= 2.53.2')
glib_dep = dependency('glib-2.0', version: '>= 2.64.0')
gio_dep = dependency('gio-2.0', version: '>= 2.64.0')
gmodule_dep = dependency('gmodule-2.0')
gmodule_export_dep = dependency('gmodule-export-2.0')
gtk_dep = dependency('gtk+-3.0', version: '>= 3.24.0')
@ -150,7 +153,7 @@ pygobject_version = '3.8.0'
pygobject_dep = dependency('pygobject-3.0', version: '>= ' + pygobject_version, required: get_option('python'))
have_python = pygobject_dep.found()
if have_python
python_dep = dependency('python-3.8-embed', version: '>= 3.8')
python_dep = import('python').find_installation().dependency(embed: true)
version_array = pygobject_version.split('.')
config_h.set('PYGOBJECT_REQUIRED_MAJOR', version_array[0].to_int())
@ -181,6 +184,7 @@ if glade_system == 'windows'
rc_conf.set('GLADE_MINOR_VERSION', glade_minor_version)
rc_conf.set('GLADE_MICRO_VERSION', glade_micro_version)
rc_conf.set('GLADE_CURRENT_MINUS_AGE', gladeui_current_minus_age)
rc_conf.set('SOURCE_ROOT', source_root)
endif
subdir('po')
@ -206,11 +210,21 @@ configure_file(
configuration: config_h,
)
meson.add_install_script(
'meson_post_install.py',
glade_datadir,
gnome.post_install(
gtk_update_icon_cache: true,
)
tls_backend_support_src = '''
#include <stdio.h>
#include <gio/gio.h>
int main(int argc, char **argv)
{
printf ("%s\n", g_tls_backend_supports_tls (g_tls_backend_get_default ()) ? "true" : "false");
return 0;
}
'''
tls_backend_support = cc.run(tls_backend_support_src, dependencies: gio_dep).stdout()
output = '\nConfiguration:\n\n'
output += '\tCompiler: ' + cc.get_id() + '\n'
output += '\tSource code location: ' + source_root + '\n'
@ -222,5 +236,6 @@ output += '\tGladeui Catalog: ' + enable_gladeui.to_string() + '\n'
output += '\tWebKit2GTK+ Catalog: ' + have_webkit2gtk.to_string() + '\n'
output += '\tIntrospection Data: ' + enable_introspection.to_string() + '\n\n'
output += '\tBuild Reference Manual: ' + enable_gtk_doc.to_string() + '\n'
output += '\tBuild Manual Pages: ' + enable_man.to_string()
output += '\tBuild Manual Pages: ' + enable_man.to_string() + '\n'
output += '\tTLS backend support: ' + tls_backend_support
message(output)

View File

@ -1,12 +0,0 @@
#!/usr/bin/env python3
import os
import subprocess
import sys
if not os.environ.get('DESTDIR'):
prefix = os.environ['MESON_INSTALL_PREFIX']
icondir = os.path.join(prefix, sys.argv[1], 'icons', 'hicolor')
print('Update icon cache...')
subprocess.call(['gtk-update-icon-cache', '-f', '-t', icondir])

View File

@ -93,7 +93,7 @@ glade_gjs_init (const gchar *name)
/* Importing the module will create all the GTypes so that glade can use them at runtime */
retval = gjs_context_eval (gjs_context_get_current (),
import_sentence, -1, NULL,
import_sentence, -1, "<glade-gjs>",
&exit_status,
&error);
if (!retval && error)

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_ABOUT_DIALOG_EDITOR_H_
#define _GLADE_ABOUT_DIALOG_EDITOR_H_

View File

@ -1,3 +1,24 @@
/*
* Copyright (C) 2008 Tristan Van Berkom
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_ACCELS_H__
#define __GLADE_ACCELS_H__

View File

@ -18,6 +18,7 @@
* Authors:
* Matthias Clasen <mclasen@redhat.com>
*/
#ifndef _GLADE_ACTION_BAR_EDITOR_H_
#define _GLADE_ACTION_BAR_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_ACTION_EDITOR_H_
#define _GLADE_ACTION_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_ACTIVATABLE_EDITOR_H_
#define _GLADE_ACTIVATABLE_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_APP_CHOOSER_BUTTON_EDITOR_H_
#define _GLADE_APP_CHOOSER_BUTTON_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_APP_CHOOSER_WIDGET_EDITOR_H_
#define _GLADE_APP_CHOOSER_WIDGET_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_ARROW_EDITOR_H_
#define _GLADE_ARROW_EDITOR_H_

View File

@ -33,6 +33,11 @@
#define GLADE_RESPONSE_CLEAR 42
typedef struct {
GladeEditorProperty *eprop;
GtkWidget *tree_view;
} GladeEditorPropertyData;
static GList *
glade_attr_list_copy (GList *attrs)
{
@ -129,6 +134,11 @@ enum
NUM_COLUMNS
};
typedef enum
{
ROW_RESET_MODE = 0,
ROW_APPEND_MODE
} RowSetMode;
typedef enum
{
@ -201,14 +211,17 @@ get_enum_model_for_combo (PangoAttrType type)
}
static gboolean
append_empty_row (GtkListStore *store, PangoAttrType type)
set_empty_row_internal (GtkTreeModel *model, PangoAttrType type, GtkTreeIter *current_iter)
{
const gchar *name = NULL;
guint spin_digits = 0;
GtkAdjustment *adjustment = NULL;
GtkListStore *model = get_enum_model_for_combo (type);
GtkTreeIter iter;
AttrEditType edit_type = EDIT_INVALID;
GtkListStore *store = GTK_LIST_STORE (model);
RowSetMode mode;
mode = (current_iter ? ROW_RESET_MODE : ROW_APPEND_MODE);
switch (type)
{
@ -313,31 +326,56 @@ append_empty_row (GtkListStore *store, PangoAttrType type)
if (name)
{
gtk_list_store_append (store, &iter);
if (mode == ROW_RESET_MODE)
iter = *current_iter;
if (mode == ROW_APPEND_MODE)
{
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
COLUMN_TOGGLE_ACTIVE, FALSE,
COLUMN_SPIN_ACTIVE, FALSE,
COLUMN_COMBO_ACTIVE, FALSE,
COLUMN_BUTTON_ACTIVE, FALSE, -1);
gtk_list_store_set (store, &iter,
COLUMN_NAME, name,
COLUMN_TYPE, type,
COLUMN_EDIT_TYPE, edit_type,
ACTIVATE_COLUMN_FROM_TYPE (edit_type), TRUE, -1);
}
gtk_list_store_set (store, &iter,
COLUMN_TOGGLE_ACTIVE, FALSE,
COLUMN_SPIN_ACTIVE, FALSE,
COLUMN_COMBO_ACTIVE, FALSE,
COLUMN_BUTTON_ACTIVE, FALSE, -1);
gtk_list_store_set (store, &iter,
COLUMN_NAME, name,
COLUMN_TYPE, type,
COLUMN_EDIT_TYPE, edit_type,
COLUMN_NAME_WEIGHT, PANGO_WEIGHT_NORMAL,
COLUMN_TEXT, _("<Enter Value>"),
COLUMN_TEXT_STYLE, PANGO_STYLE_ITALIC,
COLUMN_TEXT_FG, "Grey",
COLUMN_COMBO_MODEL, model,
COLUMN_COMBO_MODEL, get_enum_model_for_combo (type),
COLUMN_TOGGLE_DOWN, FALSE,
COLUMN_SPIN_DIGITS, spin_digits,
COLUMN_SPIN_ADJUSTMENT, adjustment,
ACTIVATE_COLUMN_FROM_TYPE (edit_type), TRUE, -1);
COLUMN_SPIN_ADJUSTMENT, adjustment, -1);
return TRUE;
}
return FALSE;
}
static gboolean
append_empty_row (GtkTreeModel *model, PangoAttrType type)
{
return set_empty_row_internal (model, type, NULL);
}
static gboolean
clear_modified_row (GtkTreeModel *model, GtkTreeIter *iter)
{
PangoAttrType type;
gtk_tree_model_get (model, iter,
COLUMN_TYPE, &type, -1);
return set_empty_row_internal (model, type, iter);
}
static gboolean
is_empty_row (GtkTreeModel *model, GtkTreeIter *iter)
{
@ -707,7 +745,8 @@ value_icon_activate (GtkCellRendererToggle *cell_renderer,
GtkTreeIter iter;
PangoAttrType type;
AttrEditType edit_type;
GdkRGBA color = {0,};
PangoColor color;
GdkRGBA rgba;
gchar *text = NULL, *new_text;
/* Find type etc */
@ -726,25 +765,25 @@ value_icon_activate (GtkCellRendererToggle *cell_renderer,
dialog = gtk_color_chooser_dialog_new (_("Select a color"),
GTK_WINDOW (glade_app_get_window ()));
/* Get response etc... */
if (text && gdk_rgba_parse (&color, text))
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &color);
if (text && pango_color_parse (&color, text))
{
rgba.red = color.red / 65535.0;
rgba.green = color.green / 65535.0;
rgba.blue = color.blue / 65535.0;
rgba.alpha = 1.0;
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &rgba);
}
if (gtk_dialog_run (GTK_DIALOG (dialog)) == GTK_RESPONSE_OK)
{
gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &color);
gtk_color_chooser_get_rgba (GTK_COLOR_CHOOSER (dialog), &rgba);
color.red = (gint16) (rgba.red * 65535);
color.green = (gint16) (rgba.green * 65535);
color.blue = (gint16) (rgba.blue * 65535);
/* Use PangoColor string format */
if (((guint8)(color.red * 0xFF)) * 0x101 == (guint16)(color.red * 0xFFFF) &&
((guint8)(color.green * 0xFF)) * 0x101 == (guint16)(color.green * 0xFFFF) &&
((guint8)(color.blue * 0xFF)) * 0x101 == (guint16)(color.blue * 0xFFFF))
new_text = g_strdup_printf ("#%02X%02X%02X",
(guint8)(color.red * 0xFF),
(guint8)(color.green * 0xFF),
(guint8)(color.blue * 0xFF));
else
new_text = g_strdup_printf ("#%04X%04X%04X",
(guint16)(color.red * 0xFFFF),
(guint16)(color.green * 0xFFFF),
(guint16)(color.blue * 0xFFFF));
new_text = pango_color_to_string (&color);
gtk_list_store_set (GTK_LIST_STORE (eprop_attrs->model), &iter,
COLUMN_TEXT, new_text,
@ -826,7 +865,7 @@ value_combo_spin_edited (GtkCellRendererText *cell,
gtk_tree_model_get (eprop_attrs->model, &iter, COLUMN_TYPE, &type, -1);
/* Reset the column */
if (new_text && (*new_text == '\0' || strcmp (new_text, _("None")) == 0))
if (new_text && (*new_text == '0' || strcmp (new_text, _("None")) == 0))
{
gtk_list_store_set (GTK_LIST_STORE (eprop_attrs->model), &iter,
COLUMN_TEXT, _("<Enter Value>"),
@ -888,6 +927,8 @@ glade_eprop_attrs_view (GladeEditorProperty *eprop)
view_widget = gtk_tree_view_new_with_model (eprop_attrs->model);
gtk_tree_view_set_show_expanders (GTK_TREE_VIEW (view_widget), FALSE);
gtk_tree_view_set_enable_search (GTK_TREE_VIEW (view_widget), FALSE);
gtk_tree_selection_set_mode (gtk_tree_view_get_selection (GTK_TREE_VIEW (view_widget)),
GTK_SELECTION_MULTIPLE);
/********************* attribute name column *********************/
renderer = gtk_cell_renderer_text_new ();
@ -979,7 +1020,7 @@ static void
glade_eprop_attrs_populate_view (GladeEditorProperty *eprop, GtkTreeView *view)
{
GList *attributes, *list;
GtkListStore *model = (GtkListStore *) gtk_tree_view_get_model (view);
GtkTreeModel *model = gtk_tree_view_get_model (view);
GtkTreeIter *iter;
GladeAttribute *gattr;
GladeProperty *property;
@ -1013,7 +1054,7 @@ glade_eprop_attrs_populate_view (GladeEditorProperty *eprop, GtkTreeView *view)
{
gattr = list->data;
if ((iter = get_row_by_type (GTK_TREE_MODEL (model), gattr->type)))
if ((iter = get_row_by_type (model, gattr->type)))
{
text = glade_gtk_string_from_attr (gattr);
@ -1034,26 +1075,130 @@ glade_eprop_attrs_populate_view (GladeEditorProperty *eprop, GtkTreeView *view)
}
}
}
static void
clear_selected_rows (GladeEditorPropertyData *data)
{
GladeEPropAttrs *eprop_attrs = GLADE_EPROP_ATTRS (data->eprop);
GtkTreeSelection *selection;
GList *selected_rows, *l;
GtkTreeIter iter;
selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (data->tree_view));
selected_rows = gtk_tree_selection_get_selected_rows (selection, NULL);
if (!selected_rows)
return;
for (l = selected_rows; l; l = l->next)
{
GtkTreePath *path = l->data;
if (gtk_tree_model_get_iter (eprop_attrs->model, &iter, path))
{
if (!is_empty_row (eprop_attrs->model, &iter))
clear_modified_row (eprop_attrs->model, &iter);
}
}
g_list_free_full (selected_rows, (GDestroyNotify) gtk_tree_path_free);
}
static void
selection_changed_cb (GtkTreeSelection *selection, GtkDialog *dialog)
{
gint count;
GList *children, *l;
children =
gtk_container_get_children (GTK_CONTAINER
(gtk_dialog_get_action_area
(dialog)));
count = gtk_tree_selection_count_selected_rows (selection);
for (l = children; l; l = l->next)
{
gint response_id;
response_id =
gtk_dialog_get_response_for_widget (dialog, GTK_WIDGET (l->data));
if (response_id == GLADE_RESPONSE_CLEAR)
{
gtk_dialog_set_response_sensitive (dialog,
response_id, (count > 0));
break;
}
}
g_list_free (children);
}
static void
glade_eprop_attrs_dialog_response_cb (GtkWidget *dialog,
gint response_id,
GladeEditorPropertyData *data)
{
GladeEditorProperty *eprop = data->eprop;
GladeEPropAttrs *eprop_attrs = GLADE_EPROP_ATTRS (eprop);
gboolean done = TRUE;
gboolean save = FALSE;
GList *old_attributes;
GladeProperty *property;
property = glade_editor_property_get_property (eprop);
/* Keep a copy for commit time... */
old_attributes = g_value_dup_boxed (glade_property_inline_value (property));
switch (response_id) {
case GTK_RESPONSE_OK:
save = TRUE;
break;
case GLADE_RESPONSE_CLEAR:
done = FALSE;
save = TRUE;
clear_selected_rows (data);
break;
case GTK_RESPONSE_CANCEL:
case GTK_RESPONSE_DELETE_EVENT:
break;
default:
g_assert_not_reached ();
break;
}
if (save) {
/* Update from old attributes so that there a property change
* sitting on the undo stack.
*/
glade_property_set (property, old_attributes);
sync_object (eprop_attrs, TRUE);
}
/* Clean up ...
*/
if (done) {
gtk_widget_destroy (dialog);
g_clear_object (&eprop_attrs->model);
glade_attr_list_free (old_attributes);
g_free (data);
}
}
static void
glade_eprop_attrs_show_dialog (GtkWidget *dialog_button,
GladeEditorProperty *eprop)
{
GladeEPropAttrs *eprop_attrs = GLADE_EPROP_ATTRS (eprop);
GtkWidget *dialog, *parent, *vbox, *sw, *tree_view;
GladeProperty *property;
GList *old_attributes;
gint res;
GladeEditorPropertyData *data;
property = glade_editor_property_get_property (eprop);
parent = gtk_widget_get_toplevel (GTK_WIDGET (eprop));
/* Keep a copy for commit time... */
old_attributes = g_value_dup_boxed (glade_property_inline_value (property));
dialog = gtk_dialog_new_with_buttons (_("Setup Text Attributes"),
GTK_WINDOW (parent),
GTK_DIALOG_MODAL |
@ -1062,6 +1207,9 @@ glade_eprop_attrs_show_dialog (GtkWidget *dialog_button,
_("_Cancel"), GTK_RESPONSE_CANCEL,
_("_OK"), GTK_RESPONSE_OK, NULL);
gtk_dialog_set_response_sensitive (GTK_DIALOG (dialog),
GLADE_RESPONSE_CLEAR, FALSE);
vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox);
@ -1082,38 +1230,21 @@ glade_eprop_attrs_show_dialog (GtkWidget *dialog_button,
tree_view = glade_eprop_attrs_view (eprop);
glade_eprop_attrs_populate_view (eprop, GTK_TREE_VIEW (tree_view));
g_signal_connect (gtk_tree_view_get_selection (GTK_TREE_VIEW (tree_view)),
"changed",
G_CALLBACK (selection_changed_cb), dialog);
gtk_tree_view_expand_all (GTK_TREE_VIEW (tree_view));
gtk_widget_show (tree_view);
gtk_container_add (GTK_CONTAINER (sw), tree_view);
/* Run the dialog */
res = gtk_dialog_run (GTK_DIALOG (dialog));
if (res == GTK_RESPONSE_OK)
{
/* Update from old attributes so that there a property change
* sitting on the undo stack.
*/
glade_property_set (property, old_attributes);
sync_object (eprop_attrs, TRUE);
}
else if (res == GLADE_RESPONSE_CLEAR)
{
GValue value = { 0, };
g_value_init (&value, GLADE_TYPE_ATTR_GLIST);
g_value_set_boxed (&value, NULL);
glade_editor_property_commit (eprop, &value);
g_value_unset (&value);
}
data = g_new0 (GladeEditorPropertyData, 1);
data->eprop = eprop;
data->tree_view = tree_view;
/* Clean up ...
*/
gtk_widget_destroy (dialog);
g_signal_connect (dialog, "response", G_CALLBACK (glade_eprop_attrs_dialog_response_cb), data);
g_object_unref (G_OBJECT (eprop_attrs->model));
eprop_attrs->model = NULL;
glade_attr_list_free (old_attributes);
gtk_widget_show (GTK_WIDGET (dialog));
}

View File

@ -1,3 +1,26 @@
/*
* glade-attributes.h
*
* Copyright (C) 2008 Tristan Van Berkom
*
* Author(s):
* Tristan Van Berkom <tvb@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __GLADE_ATTRIBUTES_H__
#define __GLADE_ATTRIBUTES_H__

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_BOX_EDITOR_H_
#define _GLADE_BOX_EDITOR_H_

View File

@ -373,6 +373,7 @@ label_toggled (GtkWidget * widget, GladeButtonEditor * button_editor)
glade_property_get_default (property, &value);
glade_command_set_property_value (property, &value);
g_value_unset (&value);
glade_property_i18n_set_translatable (property, TRUE);
glade_command_pop_group ();

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_BUTTON_EDITOR_H_
#define _GLADE_BUTTON_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_CELL_RENDERER_EDITOR_H_
#define _GLADE_CELL_RENDERER_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*/
#ifndef _GLADE_COLUMN_TYPES_H_
#define _STV_CAP_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_COMBO_BOX_EDITOR_H_
#define _GLADE_COMBO_BOX_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_COMBO_BOX_TEXT_EDITOR_H_
#define _GLADE_COMBO_BOX_TEXT_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_ENTRY_EDITOR_H_
#define _GLADE_ENTRY_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_FILE_CHOOSER_BUTTON_EDITOR_H_
#define _GLADE_FILE_CHOOSER_BUTTON_EDITOR_H_

View File

@ -18,6 +18,7 @@
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef _GLADE_FILE_CHOOSER_DIALOG_EDITOR_H_
#define _GLADE_FILE_CHOOSER_DIALOG_EDITOR_H_

Some files were not shown because too many files have changed in this diff Show More