Compare commits

..

182 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
233 changed files with 70950 additions and 62697 deletions

View File

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

28
NEWS
View File

@ -1,3 +1,31 @@
============
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 Glade 3.38.0
============ ============

View File

@ -7,9 +7,15 @@ User interface designer for Gtk+ and GNOME
Mailing Lists: Mailing Lists:
* <glade-users-list@gnome.org> - About using Glade to build applications. Both users and devel mailing list have been archived, you can find the archives at
* <glade-devel-list@gnome.org> - About the development of Glade itself.
* 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 ## 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 By using GtkBuilder, Glade XML files can be used in numerous programming
languages including C, C++, C#, Vala, Java, Perl, Python, and others. 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 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/)) ([more information](http://blogs.gnome.org/tvb/2011/01/15/the-glade-dl/))
@ -49,17 +54,19 @@ Requirements
Optional dependencies: Optional dependencies:
* glib-networking plugins for TLS support (Needed for survey)
* libwebkit2gtk-4.0 - For Webkit plugin * libwebkit2gtk-4.0 - For Webkit plugin
* python-gi - For Python plugin * python-gi - For Python plugin
* libgjs - For JavaScript plugin * libgjs - For JavaScript plugin
* gettext, itstool - For translation support
Download sources from git and build using meson/ninja Download sources from git and build using meson/ninja
# Install dependencies, for example in debian # 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 # 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 # Clone the source repository or download tarball
git clone https://gitlab.gnome.org/GNOME/glade.git 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) desktop_conf.set('VERSION', glade_version)
i18n.merge_file( i18n.merge_file(
'desktop',
type: 'desktop', type: 'desktop',
input: configure_file( input: configure_file(
input: 'org.gnome.Glade.desktop.in.in', input: 'org.gnome.Glade.desktop.in.in',
@ -18,7 +17,6 @@ i18n.merge_file(
appdata = glade_name + '.appdata.xml' appdata = glade_name + '.appdata.xml'
i18n.merge_file( i18n.merge_file(
'appdata',
input: 'org.gnome.Glade.appdata.xml.in', input: 'org.gnome.Glade.appdata.xml.in',
output: '@BASENAME@', output: '@BASENAME@',
po_dir: po_dir, po_dir: po_dir,

View File

@ -49,6 +49,42 @@
<project_group>GNOME</project_group> <project_group>GNOME</project_group>
<translation type="gettext">glade</translation> <translation type="gettext">glade</translation>
<releases> <releases>
<release version="3.40.0" date="2022-08-10">
<description>
<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"> <release version="3.38.0" date="2020-09-12">
<description> <description>
<p>Glade 3.38.0 release!</p> <p>Glade 3.38.0 release!</p>

View File

@ -13,7 +13,3 @@ Icon=org.gnome.Glade
Categories=GNOME;GTK;Development;GUIDesigner; Categories=GNOME;GTK;Development;GUIDesigner;
MimeType=application/x-gtk-builder;application/x-glade; MimeType=application/x-gtk-builder;application/x-glade;
X-GNOME-DocPath=glade/glade.xml 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. enhance UI editing and workaround exceptions.
</para> </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> <para>
The catalog file starts by specifying the name of the catalog and the plugin 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 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> <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> <shortdesc xml:lang="en">User Interface Builder for GTK+ applications</shortdesc>
<homepage rdf:resource="http://glade.gnome.org/" /> <homepage rdf:resource="http://glade.gnome.org/" />
<mailing-list rdf:resource="http://lists.ximian.com/mailman/listinfo/glade-devel" /> <developer-forum rdf:resource="https://discourse.gnome.org/tag/glade" />
<download-page rdf:resource="http://download.gnome.org/sources/glade/" /> <download-page rdf:resource="https://download.gnome.org/sources/glade/" />
<bug-database rdf:resource="https://gitlab.gnome.org/GNOME/glade/issues" /> <bug-database rdf:resource="https://gitlab.gnome.org/GNOME/glade/issues" />
<category rdf:resource="http://api.gnome.org/doap-extensions#apps" /> <category rdf:resource="http://api.gnome.org/doap-extensions#apps" />
<programming-language>C</programming-language> <programming-language>C</programming-language>
<maintainer> <!-- <maintainer>
<foaf:Person> <foaf:Person>
<foaf:name>Tristan Van Berkom</foaf:name> <foaf:name>Tristan Van Berkom</foaf:name>
<foaf:mbox rdf:resource="mailto:tristan.van.berkom@gmail.com" /> <foaf:mbox rdf:resource="mailto:tristan.van.berkom@gmail.com" />
<gnome:userid>tvb</gnome:userid> <gnome:userid>tvb</gnome:userid>
</foaf:Person> </foaf:Person>
</maintainer> </maintainer> -->
<maintainer> <maintainer>
<foaf:Person> <foaf:Person>
<foaf:name>Juan Pablo Ugarte</foaf:name> <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__ #ifndef __GLADE_ACCUMULATORS_H__
#define __GLADE_ACCUMULATORS_H__ #define __GLADE_ACCUMULATORS_H__

View File

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

View File

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

View File

@ -18,6 +18,7 @@
* Authors: * Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com> * Juan Pablo Ugarte <juanpablougarte@gmail.com>
*/ */
#ifndef __GLADE_BASE_EDITOR_H__ #ifndef __GLADE_BASE_EDITOR_H__
#define __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__ #ifndef __GLADE_BUILTINS_H__
#define __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 ... */ /* First load catalogs from user specified directories ... */
if ((search_path = g_getenv (GLADE_ENV_CATALOG_PATH)) != NULL) 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) 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__ #ifndef __GLADE_CLIPBOARD_H__
#define __GLADE_CLIPBOARD_H__ #define __GLADE_CLIPBOARD_H__

View File

@ -19,6 +19,7 @@
* Joaquín Cuenca Abela <e98cuenc@yahoo.com> * Joaquín Cuenca Abela <e98cuenc@yahoo.com>
* Archit Baweja <bighead@users.sourceforge.net> * Archit Baweja <bighead@users.sourceforge.net>
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif
@ -426,12 +427,12 @@ glade_command_property_enabled_collapse (GladeCommand *this_cmd,
this_priv->description = this_priv->description =
g_strdup_printf (_("Enabling property %s on widget %s"), g_strdup_printf (_("Enabling property %s on widget %s"),
glade_property_def_get_name (pdef), glade_property_def_get_name (pdef),
glade_widget_get_name (widget)); glade_widget_get_display_name (widget));
else else
this_priv->description = this_priv->description =
g_strdup_printf (_("Disabling property %s on widget %s"), g_strdup_printf (_("Disabling property %s on widget %s"),
glade_property_def_get_name (pdef), 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 = cmd_priv->description =
g_strdup_printf (_("Enabling property %s on widget %s"), g_strdup_printf (_("Enabling property %s on widget %s"),
glade_property_def_get_name (pdef), glade_property_def_get_name (pdef),
glade_widget_get_name (widget)); glade_widget_get_display_name (widget));
else else
cmd_priv->description = cmd_priv->description =
g_strdup_printf (_("Disabling property %s on widget %s"), g_strdup_printf (_("Disabling property %s on widget %s"),
glade_property_def_get_name (pdef), glade_property_def_get_name (pdef),
glade_widget_get_name (widget)); glade_widget_get_display_name (widget));
glade_command_check_group (GLADE_COMMAND (me)); 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", g_print ("Setting %s property of %s to %s (sumode: %d)\n",
glade_property_def_id (pdef), glade_property_def_id (pdef),
glade_widget_get_name (widget), glade_widget_get_display_name (widget),
str, glade_property_superuser ()); str, glade_property_superuser ());
g_free (str); g_free (str);
@ -796,13 +797,13 @@ glade_command_set_property_description (GladeCommandSetProperty *me)
{ {
description = g_strdup_printf (_("Setting %s of %s"), description = g_strdup_printf (_("Setting %s of %s"),
glade_property_def_get_name (pdef), glade_property_def_get_name (pdef),
glade_widget_get_name (widget)); glade_widget_get_display_name (widget));
} }
else else
{ {
description = g_strdup_printf (_("Setting %s of %s to %s"), description = g_strdup_printf (_("Setting %s of %s to %s"),
glade_property_def_get_name (pdef), glade_property_def_get_name (pdef),
glade_widget_get_name (widget), glade_widget_get_display_name (widget),
value_name); value_name);
} }
g_free (value_name); g_free (value_name);
@ -1223,7 +1224,7 @@ glade_command_add (GList *widgets,
priv->description = priv->description =
g_strdup_printf (_("Add %s"), g_list_length (widgets) == 1 ? 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) 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_util_ui_message (glade_app_get_window (),
GLADE_UI_WARN, NULL, GLADE_UI_WARN, NULL,
_("%s is locked by %s, edit %s first."), _("%s is locked by %s, edit %s first."),
glade_widget_get_name (widget), glade_widget_get_display_name (widget),
glade_widget_get_name (lock), glade_widget_get_display_name (lock),
glade_widget_get_name (lock)); glade_widget_get_display_name (lock));
return; return;
} }
} }
@ -1396,7 +1397,7 @@ glade_command_remove (GList *widgets)
if (g_list_length (widgets) == 1) if (g_list_length (widgets) == 1)
glade_command_push_group (_("Remove %s"), glade_command_push_group (_("Remove %s"),
glade_widget_get_name (GLADE_WIDGET (widgets->data))); glade_widget_get_display_name (GLADE_WIDGET (widgets->data)));
else else
glade_command_push_group (_("Remove multiple")); glade_command_push_group (_("Remove multiple"));
@ -1492,8 +1493,8 @@ glade_command_add_execute (GladeCommandAddRemove *me)
GLADE_NOTE (COMMANDS, GLADE_NOTE (COMMANDS,
g_print ("Adding widget '%s' to parent '%s' " g_print ("Adding widget '%s' to parent '%s' "
"(from clipboard: %s, props recorded: %s, have placeholder: %s, child_type: %s)\n", "(from clipboard: %s, props recorded: %s, have placeholder: %s, child_type: %s)\n",
glade_widget_get_name (cdata->widget), glade_widget_get_display_name (cdata->widget),
cdata->parent ? glade_widget_get_name (cdata->parent) : "(none)", cdata->parent ? glade_widget_get_display_name (cdata->parent) : "(none)",
me->from_clipboard ? "yes" : "no", me->from_clipboard ? "yes" : "no",
cdata->props_recorded ? "yes" : "no", cdata->props_recorded ? "yes" : "no",
cdata->placeholder ? "yes" : "no", cdata->placeholder ? "yes" : "no",
@ -1585,8 +1586,8 @@ glade_command_add_execute (GladeCommandAddRemove *me)
GLADE_NOTE (COMMANDS, GLADE_NOTE (COMMANDS,
g_print ("Recorded properties for adding widget '%s' to parent '%s' (special child: %s)\n", g_print ("Recorded properties for adding widget '%s' to parent '%s' (special child: %s)\n",
glade_widget_get_name (cdata->widget), glade_widget_get_display_name (cdata->widget),
cdata->parent ? glade_widget_get_name (cdata->parent) : "(none)", cdata->parent ? glade_widget_get_display_name (cdata->parent) : "(none)",
cdata->special_type)); cdata->special_type));
/* Mark the properties as recorded */ /* Mark the properties as recorded */
@ -1631,8 +1632,8 @@ glade_command_remove_execute (GladeCommandAddRemove *me)
GLADE_NOTE (COMMANDS, GLADE_NOTE (COMMANDS,
g_print ("Removing widget '%s' from parent '%s' " g_print ("Removing widget '%s' from parent '%s' "
"(from clipboard: %s, props recorded: %s, have placeholder: %s, child_type: %s)\n", "(from clipboard: %s, props recorded: %s, have placeholder: %s, child_type: %s)\n",
glade_widget_get_name (cdata->widget), glade_widget_get_display_name (cdata->widget),
cdata->parent ? glade_widget_get_name (cdata->parent) : "(none)", cdata->parent ? glade_widget_get_display_name (cdata->parent) : "(none)",
me->from_clipboard ? "yes" : "no", me->from_clipboard ? "yes" : "no",
cdata->props_recorded ? "yes" : "no", cdata->props_recorded ? "yes" : "no",
cdata->placeholder ? "yes" : "no", cdata->placeholder ? "yes" : "no",
@ -1653,8 +1654,8 @@ glade_command_remove_execute (GladeCommandAddRemove *me)
GLADE_NOTE (COMMANDS, GLADE_NOTE (COMMANDS,
g_print ("Recorded properties for removing widget '%s' from parent '%s' (special child: %s)\n", g_print ("Recorded properties for removing widget '%s' from parent '%s' (special child: %s)\n",
glade_widget_get_name (cdata->widget), glade_widget_get_display_name (cdata->widget),
cdata->parent ? glade_widget_get_name (cdata->parent) : "(none)", cdata->parent ? glade_widget_get_display_name (cdata->parent) : "(none)",
cdata->special_type)); cdata->special_type));
/* Mark the properties as recorded */ /* Mark the properties as recorded */
@ -1757,6 +1758,42 @@ glade_command_add_remove_collapse (GladeCommand *this_cmd,
g_return_if_reached (); 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 * The following are command aliases. Their implementations are the actual
@ -1782,8 +1819,8 @@ glade_command_create (GladeWidgetAdaptor *adaptor,
GladePlaceholder *placeholder, GladePlaceholder *placeholder,
GladeProject *project) GladeProject *project)
{ {
GList widgets = { NULL, };
GladeWidget *widget; GladeWidget *widget;
GList *widgets = NULL;
g_return_val_if_fail (GLADE_IS_WIDGET_ADAPTOR (adaptor), NULL); g_return_val_if_fail (GLADE_IS_WIDGET_ADAPTOR (adaptor), NULL);
g_return_val_if_fail (GLADE_IS_PROJECT (project), NULL); g_return_val_if_fail (GLADE_IS_PROJECT (project), NULL);
@ -1804,13 +1841,12 @@ glade_command_create (GladeWidgetAdaptor *adaptor,
return NULL; return NULL;
} }
widgets = g_list_prepend (widgets, widget); widgets.data = widget;
glade_command_push_group (_("Create %s"), glade_widget_get_name (widget)); glade_command_push_group (_("Create %s"), glade_widget_get_display_name (widget));
glade_command_add (widgets, parent, placeholder, project, FALSE); adjust_container_size (parent, 1);
glade_command_add (&widgets, parent, placeholder, project, FALSE);
glade_command_pop_group (); glade_command_pop_group ();
g_list_free (widgets);
/* Make selection change immediately when a widget is created */ /* Make selection change immediately when a widget is created */
glade_project_selection_changed (project); glade_project_selection_changed (project);
@ -1833,7 +1869,7 @@ glade_command_delete (GList *widgets)
widget = widgets->data; widget = widgets->data;
glade_command_push_group (_("Delete %s"), glade_command_push_group (_("Delete %s"),
g_list_length (widgets) == 1 ? g_list_length (widgets) == 1 ?
glade_widget_get_name (widget) : _("multiple")); glade_widget_get_display_name (widget) : _("multiple"));
glade_command_remove (widgets); glade_command_remove (widgets);
glade_command_pop_group (); glade_command_pop_group ();
} }
@ -1859,7 +1895,7 @@ glade_command_cut (GList *widgets)
widget = widgets->data; widget = widgets->data;
glade_command_push_group (_("Cut %s"), glade_command_push_group (_("Cut %s"),
g_list_length (widgets) == 1 ? g_list_length (widgets) == 1 ?
glade_widget_get_name (widget) : _("multiple")); glade_widget_get_display_name (widget) : _("multiple"));
glade_command_remove (widgets); glade_command_remove (widgets);
glade_command_pop_group (); glade_command_pop_group ();
@ -1947,6 +1983,7 @@ glade_command_paste (GList *widgets,
GList *list, *copied_widgets = NULL; GList *list, *copied_widgets = NULL;
GladeWidget *copied_widget = NULL; GladeWidget *copied_widget = NULL;
gboolean exact; gboolean exact;
gint len;
g_return_if_fail (widgets != NULL); g_return_if_fail (widgets != NULL);
@ -1960,10 +1997,9 @@ glade_command_paste (GList *widgets,
copied_widgets = g_list_prepend (copied_widgets, copied_widget); copied_widgets = g_list_prepend (copied_widgets, copied_widget);
} }
glade_command_push_group (_("Paste %s"), len = g_list_length (widgets);
g_list_length (widgets) == 1 ? glade_command_push_group (_("Paste %s"), len == 1 ? glade_widget_get_display_name (copied_widget) : _("multiple"));
glade_widget_get_name (copied_widget) : _("multiple")); adjust_container_size (parent, len);
glade_command_add (copied_widgets, parent, placeholder, project, TRUE); glade_command_add (copied_widgets, parent, placeholder, project, TRUE);
glade_command_pop_group (); glade_command_pop_group ();
@ -2004,8 +2040,8 @@ glade_command_dnd (GList *widgets,
glade_command_push_group (_("Drag %s and Drop to %s"), glade_command_push_group (_("Drag %s and Drop to %s"),
g_list_length (widgets) == 1 ? g_list_length (widgets) == 1 ?
glade_widget_get_name (widget) : _("multiple"), glade_widget_get_display_name (widget) : _("multiple"),
parent ? glade_widget_get_name (parent) : _("root")); parent ? glade_widget_get_display_name (parent) : _("root"));
glade_command_remove (widgets); glade_command_remove (widgets);
glade_command_add (widgets, parent, placeholder, project, TRUE); glade_command_add (widgets, parent, placeholder, project, TRUE);
glade_command_pop_group (); glade_command_pop_group ();
@ -2458,8 +2494,8 @@ glade_command_lock_widget (GladeWidget *widget, GladeWidget *locked)
priv->project = glade_widget_get_project (widget); priv->project = glade_widget_get_project (widget);
priv->description = priv->description =
g_strdup_printf (_("Locking %s by widget %s"), g_strdup_printf (_("Locking %s by widget %s"),
glade_widget_get_name (locked), glade_widget_get_display_name (locked),
glade_widget_get_name (widget)); glade_widget_get_display_name (widget));
glade_command_check_group (cmd); glade_command_check_group (cmd);
@ -2502,7 +2538,7 @@ glade_command_unlock_widget (GladeWidget *widget)
priv = glade_command_get_instance_private (cmd); priv = glade_command_get_instance_private (cmd);
priv->project = glade_widget_get_project (widget); priv->project = glade_widget_get_project (widget);
priv->description = 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); glade_command_check_group (cmd);
@ -3001,10 +3037,10 @@ gcp_template_description_new (GladeCommand *cmd)
if (new_template == NULL && old_template != NULL) if (new_template == NULL && old_template != NULL)
return g_strdup_printf (_("Unsetting widget '%s' as template"), 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) else if (new_template != NULL)
return g_strdup_printf (_("Setting widget '%s' as template"), 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 else
return g_strdup (_("Unsetting template")); 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__ #ifndef __GLADE_COMMAND_H__
#define __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__ #ifndef __GLADE_CURSOR_H__
#define __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__ #ifndef __GLADE_DEBUG_H__
#define __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. * Copyright (C) 2008 Tristan Van Berkom.
* *
@ -21,6 +21,7 @@
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #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__ #ifndef __GLADE_DISAPLAYABLE_VALUES_H__
#define __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. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #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__ #ifndef __GLADE_EDITABLE_H__
#define __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)) if (glade_property_def_get_construct_only (priv->property_def))
{ {
gboolean focus_set = FALSE; gboolean focus_set = FALSE;
gtk_container_foreach (GTK_CONTAINER (priv->input), deepest_child_grab_focus (priv->input, &focus_set);
deepest_child_grab_focus,
&focus_set);
} }
} }
@ -2951,7 +2949,7 @@ glade_eprop_object_populate_view_real (GtkTreeStore *model,
widget_name = glade_widget_get_display_name (widget); widget_name = glade_widget_get_display_name (widget);
if (parentless) 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) 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__ #ifndef __GLADE_EDITOR_PROPERTY_H__
#define __GLADE_EDITOR_PROPERTY_H__ #define __GLADE_EDITOR_PROPERTY_H__

View File

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

View File

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

View File

@ -20,7 +20,6 @@
* Tristan Van Berkom <tvb@gnome.org> * Tristan Van Berkom <tvb@gnome.org>
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #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__ #ifndef __GLADE_EDITOR_H__
#define __GLADE_EDITOR_H__ #define __GLADE_EDITOR_H__

View File

@ -21,6 +21,7 @@
* Tristan Van Berkom <tvb@gnome.org> * Tristan Van Berkom <tvb@gnome.org>
* *
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #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__ #ifndef __GLADE_NAME_CONTEXT_H__
#define __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. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #endif

View File

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

View File

@ -18,7 +18,7 @@
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
*/ */
#ifndef __GLADE_PLACEHOLDER_H__ #ifndef __GLADE_PLACEHOLDER_H__
#define __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); g_return_if_fail (data->adaptor != NULL);
if (glade_command_create (data->adaptor, data->parent, if (glade_command_create (data->adaptor,
data->placeholder, data->project)) data->parent,
data->placeholder,
data->project))
glade_project_set_add_item (data->project, NULL); 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__ #ifndef __GLADE_POPUP_H__
#define __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. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
*/ */
#include <config.h> #include <config.h>
#include "glade-previewer.h" #include "glade-previewer.h"

View File

@ -1,6 +1,6 @@
#include <winver.h> #include <winver.h>
GLADE_ICON ICON "../data/icons/glade.ico" GLADE_ICON ICON "@SOURCE_ROOT@/data/icons/glade.ico"
VS_VERSION_INFO VERSIONINFO VS_VERSION_INFO VERSIONINFO
FILEVERSION @GLADE_MAJOR_VERSION@,@GLADE_MINOR_VERSION@,@GLADE_MICRO_VERSION@,0 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 "CompanyName", "The GNOME Foundation"
VALUE "FileDescription", "Glade Interface Designer @GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@" 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 "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 "OriginalFilename", "glade-previewer.exe"
VALUE "ProductName", "Glade Interface Designer" VALUE "ProductName", "Glade Interface Designer"
VALUE "ProductVersion", "@GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@.0" 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_filechooser;
GtkWidget *css_checkbutton; GtkWidget *css_checkbutton;
GHashTable *target_radios; GHashTable *target_combos;
/* License */ /* License */
GtkComboBox *license_comboboxtext; GtkComboBox *license_comboboxtext;
@ -169,7 +169,7 @@ glade_project_properties_init (GladeProjectProperties *properties)
{ {
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(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); g_free, NULL);
gtk_widget_init_template (GTK_WIDGET (properties)); gtk_widget_init_template (GTK_WIDGET (properties));
@ -262,7 +262,7 @@ glade_project_properties_finalize (GObject *object)
GladeProjectProperties *properties = GLADE_PROJECT_PROPERTIES (object); GladeProjectProperties *properties = GLADE_PROJECT_PROPERTIES (object);
GladeProjectPropertiesPrivate *priv = GLADE_PROJECT_PROPERTIES_PRIVATE(properties); 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); G_OBJECT_CLASS (glade_project_properties_parent_class)->finalize (object);
} }
@ -289,7 +289,7 @@ combobox_populate_from_catalog (GladeProjectProperties *properties,
version->major, version->major,
version->minor); 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) if (major == version->major && minor == version->minor)
gtk_combo_box_set_active (GTK_COMBO_BOX(combobox), position); 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)); (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)), g_strdup (glade_catalog_get_name (catalog)),
combobox); combobox);
} }
@ -1107,19 +1107,19 @@ project_targets_changed (GladeProject *project,
GladeCatalog *catalog = list->data; GladeCatalog *catalog = list->data;
GtkComboBox *combobox; GtkComboBox *combobox;
gint minor, major; gint minor, major;
const gchar *name;
/* Skip if theres only one option */ /* Skip if theres only one option */
if (g_list_length (glade_catalog_get_targets (catalog)) <= 1) if (g_list_length (glade_catalog_get_targets (catalog)) <= 1)
continue; continue;
/* Fetch the version for this project */ /* Fetch the version for this project */
glade_project_get_target_version (priv->project, name = glade_catalog_get_name (catalog);
glade_catalog_get_name (catalog), glade_project_get_target_version (priv->project, name, &major, &minor);
&major, &minor);
/* Fetch the radios for this catalog */ /* Fetch the radios for this catalog */
if (priv->target_radios && if (priv->target_combos &&
(combobox = g_hash_table_lookup (priv->target_radios, glade_catalog_get_name (catalog))) != NULL) (combobox = g_hash_table_lookup (priv->target_combos, name)) != NULL)
{ {
g_autofree gchar *id = NULL; g_autofree gchar *id = NULL;
id = g_strdup_printf ("%d.%d", major, minor); 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) for (list = project->priv->objects; list; list = list->next)
{ {
GladeWidget *widget; GladeWidget *widget;
gchar *widget_name;
widget = glade_widget_get_from_gobject (list->data); 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; return widget;
} }
@ -5318,8 +5320,7 @@ glade_project_command_paste (GladeProject *project,
{ {
GladeClipboard *clipboard; GladeClipboard *clipboard;
GList *list; GList *list;
GladeWidget *widget = NULL, *parent; GladeWidget *widget = NULL, *parent = NULL;
gint placeholder_relations = 0;
g_return_if_fail (GLADE_IS_PROJECT (project)); 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 /* If there is a selection, paste in to the selected widget, otherwise
* paste into the placeholder's parent, or at the toplevel * paste into the placeholder's parent, or at the toplevel
*/ */
parent = list ? glade_widget_get_from_gobject (list->data) : if (list)
(placeholder) ? glade_placeholder_get_parent (placeholder) : NULL; 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; 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); 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__ #ifndef __GLADE_PROJECT_H__
#define __GLADE_PROJECT_H__ #define __GLADE_PROJECT_H__

View File

@ -38,7 +38,6 @@
#include <string.h> #include <string.h>
#include <stdlib.h> #include <stdlib.h>
#include <glib/gi18n-lib.h> #include <glib/gi18n-lib.h>
#include <locale.h>
#include "glade.h" #include "glade.h"
#include "glade-widget.h" #include "glade-widget.h"
@ -458,34 +457,32 @@ glade_property_def_make_string_from_objects (GladePropertyDef *
return string; 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 * static gchar *
glade_dtostr (double number, gdouble epsilon) 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; 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; double rounded;
locale_t old_locale;
old_locale = uselocale (get_C_locale ()); /* add up to i decimal points */
snprintf (str, G_ASCII_DTOSTR_BUF_SIZE, "%.*f", i, number); str[len] = real_number[len];
uselocale (old_locale); str[len+1] = '\0';
rounded = g_ascii_strtod (str, NULL); rounded = g_ascii_strtod (str, NULL);
if (ABS (rounded - number) <= epsilon) if (ABS (rounded - number) <= epsilon)
@ -503,15 +500,10 @@ glade_dtostr (double number, gdouble epsilon)
* Returns: A newly allocated string representation of @value * Returns: A newly allocated string representation of @value
*/ */
gchar * gchar *
glade_property_def_make_string_from_gvalue (GladePropertyDef * glade_property_def_make_string_from_gvalue (GladePropertyDef *property_def,
property_def, const GValue *value)
const GValue * value)
{ {
gchar *string = NULL, **strv; gchar *string = NULL;
GObject *object;
GdkColor *color;
GdkRGBA *rgba;
GList *objects;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY (property_def->pspec)) 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) if (property_def->pspec->value_type == GDK_TYPE_COLOR)
{ {
color = g_value_get_boxed (value); GdkColor *color = g_value_get_boxed (value);
if (color) if (color)
string = g_strdup_printf ("#%04x%04x%04x", string = g_strdup_printf ("#%04x%04x%04x",
color->red, color->green, color->blue); color->red, color->green, color->blue);
} }
else if (property_def->pspec->value_type == GDK_TYPE_RGBA) 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) if (rgba)
string = gdk_rgba_to_string (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) 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) if (strv)
string = g_strjoinv ("\n", 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)) else if (G_IS_PARAM_SPEC_OBJECT (property_def->pspec))
{ {
object = g_value_get_object (value); GObject *object = g_value_get_object (value);
string = string =
glade_property_def_make_string_from_object (property_def, object); glade_property_def_make_string_from_object (property_def, object);
} }
else if (GLADE_IS_PARAM_SPEC_OBJECTS (property_def->pspec)) else if (GLADE_IS_PARAM_SPEC_OBJECTS (property_def->pspec))
{ {
objects = g_value_get_boxed (value); GList *objects = g_value_get_boxed (value);
string = string =
glade_property_def_make_string_from_objects (property_def, glade_property_def_make_string_from_objects (property_def,
objects); objects);
@ -841,13 +839,11 @@ glade_property_def_make_objects_from_string (GladePropertyDef *
*/ */
GValue * GValue *
glade_property_def_make_gvalue_from_string (GladePropertyDef *property_def, glade_property_def_make_gvalue_from_string (GladePropertyDef *property_def,
const gchar *string, const gchar *string,
GladeProject *project) GladeProject *project)
{ {
GValue *value = g_new0 (GValue, 1); GValue *value = g_new0 (GValue, 1);
gchar **strv; gchar **strv;
GdkColor color = { 0, };
GdkRGBA rgba = { 0, };
g_value_init (value, property_def->pspec->value_type); 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) if (property_def->pspec->value_type == GDK_TYPE_COLOR)
{ {
GdkColor color;
if (gdk_color_parse (string, &color)) if (gdk_color_parse (string, &color))
g_value_set_boxed (value, &color); g_value_set_boxed (value, &color);
else 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) else if (property_def->pspec->value_type == GDK_TYPE_RGBA)
{ {
GdkRGBA rgba;
if (gdk_rgba_parse (&rgba, string)) if (gdk_rgba_parse (&rgba, string))
g_value_set_boxed (value, &rgba); g_value_set_boxed (value, &rgba);
else else
g_warning ("could not parse rgba colour name `%s'", string); 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) else if (property_def->pspec->value_type == G_TYPE_STRV)
{ {
strv = g_strsplit (string, "\n", 0); 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__ #ifndef __GLADE_PROPERTY_DEF_H__
#define __GLADE_PROPERTY_DEF_H__ #define __GLADE_PROPERTY_DEF_H__

View File

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

View File

@ -18,6 +18,7 @@
* Authors: * Authors:
* Tristan Van Berkom <tvb@gnome.org> * Tristan Van Berkom <tvb@gnome.org>
*/ */
#ifndef __GLADE_PROPERTY_SHELL_H__ #ifndef __GLADE_PROPERTY_SHELL_H__
#define __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->precision = 2;
property->priv->enabled = TRUE; property->priv->enabled = TRUE;
property->priv->sensitive = TRUE; property->priv->sensitive = TRUE;
property->priv->i18n_translatable = TRUE; property->priv->i18n_translatable = FALSE;
property->priv->i18n_comment = NULL; property->priv->i18n_comment = NULL;
property->priv->sync_tolerance = 1; 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 static void
glade_property_class_init (GladePropertyClass * prop_class) glade_property_class_init (GladePropertyClass * prop_class)
{ {
@ -652,6 +662,7 @@ glade_property_class_init (GladePropertyClass * prop_class)
/* GObjectClass */ /* GObjectClass */
object_class->set_property = glade_property_set_real_property; object_class->set_property = glade_property_set_real_property;
object_class->get_property = glade_property_get_real_property; object_class->get_property = glade_property_get_real_property;
object_class->constructed = glade_property_constructed;
object_class->finalize = glade_property_finalize; object_class->finalize = glade_property_finalize;
/* Class methods */ /* Class methods */
@ -701,7 +712,7 @@ glade_property_class_init (GladePropertyClass * prop_class)
g_param_spec_boolean ("i18n-translatable", g_param_spec_boolean ("i18n-translatable",
_("Translatable"), _("Translatable"),
_("Whether this property is translatable"), _("Whether this property is translatable"),
TRUE, FALSE,
G_PARAM_READWRITE); G_PARAM_READWRITE);
properties[PROP_STATE] = properties[PROP_STATE] =
@ -773,8 +784,9 @@ glade_property_new (GladePropertyDef *def,
g_return_val_if_fail (GLADE_IS_PROPERTY_DEF (def), NULL); g_return_val_if_fail (GLADE_IS_PROPERTY_DEF (def), NULL);
property = (GladeProperty *) g_object_new (GLADE_TYPE_PROPERTY, NULL); property = (GladeProperty *) g_object_new (GLADE_TYPE_PROPERTY,
property->priv->def = def; "class", def,
NULL);
property->priv->widget = widget; property->priv->widget = widget;
property->priv->value = value; 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__ #ifndef __GLADE_PROPERTY_H__
#define __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. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/ */
#include <config.h> #include <config.h>
#include "glade-signal-def.h" #include "glade-signal-def.h"
#include "glade-widget-adaptor.h" #include "glade-widget-adaptor.h"

View File

@ -19,6 +19,7 @@
* Shane Butler <shane_b@users.sourceforge.net> * Shane Butler <shane_b@users.sourceforge.net>
* Joaquin Cuenca Abela <e98cuenc@yahoo.com> * Joaquin Cuenca Abela <e98cuenc@yahoo.com>
*/ */
#ifdef HAVE_CONFIG_H #ifdef HAVE_CONFIG_H
#include <config.h> #include <config.h>
#endif #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__ #ifndef __GLADE_SIGNAL_EDITOR_H__
#define __GLADE_SIGNAL_EDITOR_H__ #define __GLADE_SIGNAL_EDITOR_H__

View File

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

View File

@ -1,5 +1,6 @@
/* /*
* glade-signal-model.h * glade-signal-model.h
*
* Copyright (C) Johannes Schmid 2010 <jhs@gnome.org> * Copyright (C) Johannes Schmid 2010 <jhs@gnome.org>
* *
* This library is free software; you can redistribute it and/or modify it * 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__ #ifndef __GLADE_SIGNAL_H__
#define __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); 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: * glade_util_ui_message:
* @parent: a #GtkWindow cast as a #GtkWidget * @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), dialog = gtk_message_dialog_new (GTK_WINDOW (parent),
GTK_DIALOG_DESTROY_WITH_PARENT, GTK_DIALOG_DESTROY_WITH_PARENT,
message_type, buttons_type, NULL); 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); gtk_message_dialog_set_markup (GTK_MESSAGE_DIALOG (dialog), string);
if (widget) if (widget)
@ -1165,15 +1176,15 @@ glade_util_search_devhelp (const gchar *book,
GtkWidget * GtkWidget *
glade_util_get_placeholder_from_pointer (GtkContainer *container) glade_util_get_placeholder_from_pointer (GtkContainer *container)
{ {
GdkDeviceManager *manager;
GdkDisplay *display; GdkDisplay *display;
GdkDevice *device; GdkDevice *device;
GdkWindow *window; GdkWindow *window;
GdkSeat *seat;
if (((display = gtk_widget_get_display (GTK_WIDGET (container))) || if (((display = gtk_widget_get_display (GTK_WIDGET (container))) ||
(display = gdk_display_get_default ())) && (display = gdk_display_get_default ())) &&
(manager = gdk_display_get_device_manager (display)) && (seat = gdk_display_get_default_seat (display)) &&
(device = gdk_device_manager_get_client_pointer (manager)) && (device = gdk_seat_get_pointer (seat)) &&
(window = gdk_device_get_window_at_position (device, NULL, NULL))) (window = gdk_device_get_window_at_position (device, NULL, NULL)))
{ {
gpointer widget; gpointer widget;
@ -1269,6 +1280,8 @@ glade_util_get_file_mtime (const gchar *filename, GError **error)
struct stat info; struct stat info;
gint retval; gint retval;
g_return_val_if_fail (filename, 0);
retval = g_stat (filename, &info); retval = g_stat (filename, &info);
if (retval != 0) if (retval != 0)
@ -2069,10 +2082,14 @@ glade_utils_get_pointer (GtkWidget *widget,
if (!device) if (!device)
{ {
GdkEvent *event = gtk_get_current_event (); GdkDisplay *dsp;
GdkSeat *seat;
device = gdk_event_get_device (event); if (((dsp = gtk_widget_get_display (widget)) ||
gdk_event_free (event); (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)); 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); relative_path = g_file_get_relative_path (target, source);
g_string_append (relpath, ".."); g_string_append (relpath, "..");
g_string_append_c (relpath, G_DIR_SEPARATOR); g_string_append_c (relpath, '/');
g_object_unref (old_target); 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__ #ifndef __GLADE_UTILS_H__
#define __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_ #ifndef _GLADE_WIDGET_ADAPTOR_H_
#define _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__ #ifndef __GLADE_WIDGET_H__
#define __GLADE_WIDGET_H__ #define __GLADE_WIDGET_H__

View File

@ -6,7 +6,7 @@
* it under the terms of the GNU General Public License as * it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the * published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version. * License, or (at your option) any later version.
* *
* This program is distributed in the hope that it will be useful, * This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of * but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * 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__ #ifndef __GLADE_XML_UTILS_H__
#define __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. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
* *
*/ */
#ifndef __GLADE_H__ #ifndef __GLADE_H__
#define __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 "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 "FileVersion", "@GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@.0"
VALUE "InternalName", "libgladeui-1-@GLADE_CURRENT_MINUS_AGE@" 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 "OriginalFilename", "libgladeui-1-@GLADE_CURRENT_MINUS_AGE@.dll"
VALUE "ProductName", "Glade Interface Designer" VALUE "ProductName", "Glade Interface Designer"
VALUE "ProductVersion", "@GLADE_MAJOR_VERSION@.@GLADE_MINOR_VERSION@.@GLADE_MICRO_VERSION@" 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 * Icon Naming Specification: http://standards.freedesktop.org/icon-naming-spec
* *
*/ */
#include <glib/gi18n-lib.h> #include <glib/gi18n-lib.h>

View File

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

View File

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

View File

@ -216,10 +216,10 @@ msgstr ""
"La biblioteca GTK+ ofereix una àmplia col·lecció d'elements amb els quals " "La biblioteca GTK+ ofereix una àmplia col·lecció d'elements amb els quals "
"construir interfícies d'usuari, com ara quadres de text, quadres de diàleg, " "construir interfícies d'usuari, com ara quadres de text, quadres de diàleg, "
"caselles de selecció i menús. Aquests elements s'anomenen <emphasis>ginys</" "caselles de selecció i menús. Aquests elements s'anomenen <emphasis>ginys</"
"emphasis>. Podeu utilitzar el Glade per posicionar els ginys dins d'una " "emphasis>. Podeu utilitzar el Glade per a posicionar els ginys dins d'una "
"interfície gràfica. El Glade us permet modificar la disposició i propietats " "interfície gràfica. El Glade us permet modificar la disposició i propietats "
"d'aquests ginys. També podeu utilitzar el Glade per afegir connexions entre " "d'aquests ginys. També podeu utilitzar el Glade per a afegir connexions "
"els ginys i el codi font de l'aplicació." "entre els ginys i el codi font de l'aplicació."
#. (itstool) path: sect1/para #. (itstool) path: sect1/para
#: C/index.docbook:164 #: C/index.docbook:164
@ -230,7 +230,7 @@ msgid ""
msgstr "" msgstr ""
"Les interfícies d'usuari dissenyades al Glade s'emmagatzemen utilitzant un " "Les interfícies d'usuari dissenyades al Glade s'emmagatzemen utilitzant un "
"format XML, facilitant-ne la integració amb eines externes. Podeu utilitzar " "format XML, facilitant-ne la integració amb eines externes. Podeu utilitzar "
"la biblioteca <application>libglade</application> per crear aquestes " "la biblioteca <application>libglade</application> per a crear aquestes "
"interfícies gràfiques de forma dinàmica des de la descripció en XML." "interfícies gràfiques de forma dinàmica des de la descripció en XML."
#. (itstool) path: sect1/title #. (itstool) path: sect1/title
@ -241,7 +241,7 @@ msgstr "Primers passos"
#. (itstool) path: sect2/title #. (itstool) path: sect2/title
#: C/index.docbook:174 #: C/index.docbook:174
msgid "To Start <application>Glade</application>" msgid "To Start <application>Glade</application>"
msgstr "Per iniciar el <application>Glade</application>" msgstr "Per a iniciar el <application>Glade</application>"
#. (itstool) path: sect2/para #. (itstool) path: sect2/para
#: C/index.docbook:175 #: C/index.docbook:175
@ -338,7 +338,7 @@ msgid ""
"files in <application>Glade</application>." "files in <application>Glade</application>."
msgstr "" msgstr ""
"Els menús que apareixen a la barra de menús contenen totes les ordres que " "Els menús que apareixen a la barra de menús contenen totes les ordres que "
"necessiteu per treballar amb fitxers al <application>Glade</application>." "necessiteu per a treballar amb fitxers al <application>Glade</application>."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:220 #: C/index.docbook:220
@ -375,7 +375,7 @@ msgstr "Paleta"
msgid "" msgid ""
"The palette contains the widgets that can be used to build a user interface." "The palette contains the widgets that can be used to build a user interface."
msgstr "" msgstr ""
"La paleta conté tots els ginys que es poden utilitzar per construir una " "La paleta conté tots els ginys que es poden utilitzar per a construir una "
"interfície d'usuari." "interfície d'usuari."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
@ -400,8 +400,8 @@ msgid ""
"The property editor is used to manipulate the properties of widgets, as well " "The property editor is used to manipulate the properties of widgets, as well "
"as adding connections to source code." "as adding connections to source code."
msgstr "" msgstr ""
"L'editor de propietats s'utilitza per manipular les propietats dels ginys i " "L'editor de propietats s'utilitza per a manipular les propietats dels ginys i "
"per afegir connexions al codi font." "per a afegir connexions al codi font."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:245 #: C/index.docbook:245
@ -435,7 +435,7 @@ msgid ""
"guimenu><guimenuitem>New</guimenuitem></menuchoice>. The application " "guimenu><guimenuitem>New</guimenuitem></menuchoice>. The application "
"displays a new blank project in the <application>Glade</application> window." "displays a new blank project in the <application>Glade</application> window."
msgstr "" msgstr ""
"Per crear un projecte nou, escolliu <menuchoice><guimenu>Fitxer</" "Per a crear un projecte nou, escolliu <menuchoice><guimenu>Fitxer</"
"guimenu><guimenuitem>Nou</guimenuitem></menuchoice>. L'aplicació mostrarà un " "guimenu><guimenuitem>Nou</guimenuitem></menuchoice>. L'aplicació mostrarà un "
"projecte nou en blanc a la finestra del <application>Glade</application>." "projecte nou en blanc a la finestra del <application>Glade</application>."
@ -451,7 +451,7 @@ msgid ""
"guimenu><guimenuitem>Open</guimenuitem></menuchoice>. The application " "guimenu><guimenuitem>Open</guimenuitem></menuchoice>. The application "
"displays the project in the <application>Glade</application> window." "displays the project in the <application>Glade</application> window."
msgstr "" msgstr ""
"Per obrir un projecte existent, seleccioneu <menuchoice><guimenu>Fitxer</" "Per a obrir un projecte existent, seleccioneu <menuchoice><guimenu>Fitxer</"
"guimenu><guimenuitem>Obre</guimenuitem></menuchoice>. L'aplicació mostrarà " "guimenu><guimenuitem>Obre</guimenuitem></menuchoice>. L'aplicació mostrarà "
"el projecte a la finestra del <application>Glade</application>." "el projecte a la finestra del <application>Glade</application>."
@ -472,7 +472,7 @@ msgid ""
"<menuchoice><guimenu>File</guimenu><guimenuitem>Save</guimenuitem></" "<menuchoice><guimenu>File</guimenu><guimenuitem>Save</guimenuitem></"
"menuchoice>." "menuchoice>."
msgstr "" msgstr ""
"Per desar els canvis d'un projecte que ja existeix, seleccioneu " "Per a desar els canvis d'un projecte que ja existeix, seleccioneu "
"<menuchoice><guimenu>Fitxer</guimenu><guimenuitem>Desa</guimenuitem></" "<menuchoice><guimenu>Fitxer</guimenu><guimenuitem>Desa</guimenuitem></"
"menuchoice>." "menuchoice>."
@ -484,7 +484,7 @@ msgid ""
"guimenuitem> </menuchoice>. Enter a name for the project file in the " "guimenuitem> </menuchoice>. Enter a name for the project file in the "
"<guilabel>Save As</guilabel> dialog, then click <guibutton>Save</guibutton>." "<guilabel>Save As</guilabel> dialog, then click <guibutton>Save</guibutton>."
msgstr "" msgstr ""
"Per a desar un fitxer de projecte nou o per desar un fitxer de projecte " "Per a desar un fitxer de projecte nou o per a desar un fitxer de projecte "
"existent amb un nom nou, seleccioneu <menuchoice> <guimenu>Fitxer</guimenu> " "existent amb un nom nou, seleccioneu <menuchoice> <guimenu>Fitxer</guimenu> "
"<guimenuitem>Anomena i desa</guimenuitem> </menuchoice>. Introduïu un nom " "<guimenuitem>Anomena i desa</guimenuitem> </menuchoice>. Introduïu un nom "
"per al fitxer del projecte al diàleg <guilabel>Anomena i desa</guilabel> i " "per al fitxer del projecte al diàleg <guilabel>Anomena i desa</guilabel> i "
@ -523,12 +523,12 @@ msgid ""
"use the <guilabel>Properties</guilabel> window to edit the properties of the " "use the <guilabel>Properties</guilabel> window to edit the properties of the "
"widgets." "widgets."
msgstr "" msgstr ""
"Per utilitzar el mode «selecció», feu clic a la fletxa <guilabel>Selectora</" "Per a utilitzar el mode «selecció», feu clic a la fletxa "
"guilabel>. El punter canvia i es converteix en una fletxa per tal d'indicar " "<guilabel>Selectora</guilabel>. El punter canvia i es converteix en una "
"que el mode «selecció» està actiu. Dins d'aquest mode, podeu utilitzar el " "fletxa per tal d'indicar que el mode «selecció» està actiu. Dins d'aquest "
"ratolí per seleccionar ginys del vostre projecte. Tot seguit, podeu " "mode, podeu utilitzar el ratolí per a seleccionar ginys del vostre projecte. "
"utilitzar la finestra de <guilabel>Propietats</guilabel> per tal d'editar " "Tot seguit, podeu utilitzar la finestra de <guilabel>Propietats</guilabel> "
"les propietats dels ginys." "per a editar les propietats dels ginys."
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/index.docbook:306 #: C/index.docbook:306
@ -536,8 +536,8 @@ msgid ""
"You can also use the widget context menu to select a widget. Right-click on " "You can also use the widget context menu to select a widget. Right-click on "
"a widget to open the widget context menu." "a widget to open the widget context menu."
msgstr "" msgstr ""
"També podeu utilitzar el menú contextual de ginys per seleccionar-ne un. Feu " "També podeu utilitzar el menú contextual de ginys per a seleccionar-ne un. "
"clic amb el botó secundari sobre un giny per tal d'obrir-ne el menú " "Feu clic amb el botó secundari sobre un giny per tal d'obrir-ne el menú "
"contextual." "contextual."
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
@ -553,7 +553,7 @@ msgstr ""
"<guilabel>Paleta</guilabel> al projecte tot mantenint premuda la tecla " "<guilabel>Paleta</guilabel> al projecte tot mantenint premuda la tecla "
"<keycap>Control</keycap> en seleccionar el giny. Cal que feu clic a la " "<keycap>Control</keycap> en seleccionar el giny. Cal que feu clic a la "
"fletxa <guilabel>Selector</guilabel> o a qualsevol altre giny de la " "fletxa <guilabel>Selector</guilabel> o a qualsevol altre giny de la "
"<guilabel>Paleta</guilabel> per tornar al mode normal." "<guilabel>Paleta</guilabel> per a tornar al mode normal."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:318 #: C/index.docbook:318
@ -608,7 +608,7 @@ msgid ""
"project window. You can choose the following widget containers from the " "project window. You can choose the following widget containers from the "
"<guilabel>Palette</guilabel> window:" "<guilabel>Palette</guilabel> window:"
msgstr "" msgstr ""
"Per maquetar i organitzar els ginys a la finestra del projecte podeu " "Per a maquetar i organitzar els ginys a la finestra del projecte podeu "
"utilitzar contenidors de ginys o caixes. Podeu seleccionar els ginys " "utilitzar contenidors de ginys o caixes. Podeu seleccionar els ginys "
"contenidors següents de la <guilabel>Paleta</guilabel>:" "contenidors següents de la <guilabel>Paleta</guilabel>:"
@ -680,8 +680,8 @@ msgid ""
"many rows or columns to create initially, though rows and columns can easily " "many rows or columns to create initially, though rows and columns can easily "
"be added or deleted later." "be added or deleted later."
msgstr "" msgstr ""
"Podeu combinar les caixes com vulgueu per crear estructures de disposicions " "Podeu combinar les caixes com vulgueu per a crear estructures de "
"complexes. Quan creeu caixes horitzontals i verticals, el " "disposicions complexes. Quan creeu caixes horitzontals i verticals, el "
"<application>Glade</application> us demana quantes columnes i files ha de " "<application>Glade</application> us demana quantes columnes i files ha de "
"crear inicialment, tot i que sempre podreu afegir-ne de noves o suprimir les " "crear inicialment, tot i que sempre podreu afegir-ne de noves o suprimir les "
"que no us interessin." "que no us interessin."
@ -795,8 +795,8 @@ msgid ""
"change a property of a widget, select the widget and then enter an " "change a property of a widget, select the widget and then enter an "
"appropriate value in one of the Property window's property fields." "appropriate value in one of the Property window's property fields."
msgstr "" msgstr ""
"Utilitzeu l'editor de propietats per editar les propietats del giny " "Utilitzeu l'editor de propietats per a editar les propietats del giny "
"seleccionat. Per canviar una propietat d'un giny, seleccioneu el giny i " "seleccionat. Per a canviar una propietat d'un giny, seleccioneu el giny i "
"introduïu el valor corresponent en un dels camps que trobareu a la " "introduïu el valor corresponent en un dels camps que trobareu a la "
"subfinestra de propietats." "subfinestra de propietats."
@ -857,7 +857,7 @@ msgstr ""
"Aquest programa es distribueix sota les condicions de la Llicència pública " "Aquest programa es distribueix sota les condicions de la Llicència pública "
"general de GNU publicada per la Free Software Foundation, tant la versió 2 " "general de GNU publicada per la Free Software Foundation, tant la versió 2 "
"de la llicència com (si ho preferiu) qualsevol versió posterior. Es pot " "de la llicència com (si ho preferiu) qualsevol versió posterior. Es pot "
"trobar una còpia d'aquesta llicència en aquest <ulink url=\"ghelp:gpl\" type=" "trobar una còpia d'aquesta llicència en aquest <ulink url=\"help:gpl\" type="
"\"help\">enllaç</ulink> o en el fitxer COPYING inclòs amb el codi font " "\"help\">enllaç</ulink> o en el fitxer COPYING inclòs amb el codi font "
"d'aquest programa." "d'aquest programa."
@ -905,11 +905,11 @@ msgid ""
"aware of those trademarks, then the names are in capital letters or initial " "aware of those trademarks, then the names are in capital letters or initial "
"capital letters." "capital letters."
msgstr "" msgstr ""
"Molts dels noms que les empreses utilitzen per distingir els seus productes " "Molts dels noms que les empreses utilitzen per a distingir els seus "
"i serveis es consideren marques comercials. Quan aquests noms apareguin en " "productes i serveis es consideren marques comercials. Quan aquests noms "
"qualsevol documentació del GNOME, si els membres del Projecte de " "apareguin en qualsevol documentació del GNOME, si els membres del Projecte "
"documentació del GNOME han estat avisats pel que fa a les marques, els noms " "de documentació del GNOME han estat avisats pel que fa a les marques, els "
"apareixeran en majúscules o amb les inicials en majúscules." "noms apareixeran en majúscules o amb les inicials en majúscules."
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/legal.xml:35 #: C/legal.xml:35

View File

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

View File

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

View File

@ -2,27 +2,27 @@
# Jorge González <jorgegonz@svn.gnome.org>, 2007, 2008. # Jorge González <jorgegonz@svn.gnome.org>, 2007, 2008.
# spanish translation for glade3 manual # spanish translation for glade3 manual
# traducción al español del manual de glade3 # 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 "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: glade3.help.HEAD\n" "Project-Id-Version: glade3.help.HEAD\n"
"POT-Creation-Date: 2020-01-02 22:42+0000\n" "POT-Creation-Date: 2020-06-22 15:48+0000\n"
"PO-Revision-Date: 2020-01-07 13:09+0100\n" "PO-Revision-Date: 2021-05-10 11:56+0200\n"
"Last-Translator: Daniel Mustieles <daniel.mustieles@gmail.com>\n" "Last-Translator: Daniel Mustieles <daniel.mustieles@gmail.com>\n"
"Language-Team: Spanish - Spain <gnome-es-list@gnome.org>\n" "Language-Team: Spanish - Spain <gnome-es-list@gnome.org>\n"
"Language: es_ES\n" "Language: es_ES\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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" "Plural-Forms: nplurals=2; plural=(n != 1);\n"
#. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2 #. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_" msgctxt "_"
msgid "translator-credits" msgid "translator-credits"
msgstr "" 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" "Jorge González <jorgegonz@svn.gnome.org>, 2007-2008"
#. (itstool) path: articleinfo/title #. (itstool) path: articleinfo/title
@ -167,10 +167,6 @@ msgstr "Comentarios"
#. (itstool) path: legalnotice/para #. (itstool) path: legalnotice/para
#: C/index.docbook:136 #: 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 "" msgid ""
"To report a bug or make a suggestion regarding the Glade application or this " "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/" "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 #. (itstool) path: listitem/para
#: C/index.docbook:181 #: C/index.docbook:181
#| msgid ""
#| "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> "
#| "<guimenuitem>Glade Interface Designer</guimenuitem> </menuchoice>."
msgid "" msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade " "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"Interface Designer</guimenuitem> </menuchoice>." "guimenuitem> </menuchoice>."
msgstr "" msgstr ""
"Elija <menuchoice><guisubmenu>Programación</" "Elija <menuchoice><guisubmenu>Programación</guisubmenu><guimenuitem>Glade</"
"guisubmenu><guimenuitem>Diseñador de interfaces Glade</guimenuitem></" "guimenuitem></menuchoice>."
"menuchoice>."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:189 #: C/index.docbook:189
@ -314,9 +312,13 @@ msgstr ""
#. (itstool) path: screenshot/mediaobject #. (itstool) path: screenshot/mediaobject
#: C/index.docbook:205 #: 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 "" msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/" "<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>" "application> window.</phrase></textobject>"
msgstr "" msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/" "<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/"
@ -568,11 +570,17 @@ msgstr "Modo de emplazamiento de widgets"
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/index.docbook:320 #: 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 "" msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</" "To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a " "guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-" "pointer-plus-cross. You can then place the widget inside containers, "
"level widgets, and so on. After you place a widget, the mode returns to " "toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode." "selection mode."
msgstr "" msgstr ""
"Para usar el modo de emplazamiento de widgets, seleccione un widget de la " "Para usar el modo de emplazamiento de widgets, seleccione un widget de la "
@ -583,16 +591,23 @@ msgstr ""
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:335 #: 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" msgstr "Modo de emplazamiento de nivel superior"
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/index.docbook:337 #: 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 "" msgid ""
"To use top level placement mode, select a defined top-level widget in the " "To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in " "<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on " "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." "widget, the mode returns to selection mode."
msgstr "" msgstr ""
"Para usar el modo de emplazamiento de nivel superior, seleccione un widget " "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. # 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. # 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. # Gábor Kelemen <kelemeng at gnome dot hu>, 2016.
msgid "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: glade master\n" "Project-Id-Version: glade master\n"
"POT-Creation-Date: 2019-04-07 15:23+0000\n" "POT-Creation-Date: 2020-09-04 05:03+0000\n"
"PO-Revision-Date: 2019-04-07 22:04+0100\n" "PO-Revision-Date: 2021-02-20 00:49+0100\n"
"Last-Translator: Balázs Úr <ur.balazs at fsf dot hu>\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-Team: Hungarian <gnome-hu-list at gnome dot org>\n"
"Language: hu\n" "Language: hu\n"
@ -16,14 +16,14 @@ msgstr ""
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n" "Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\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 #. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_" msgctxt "_"
msgid "translator-credits" msgid "translator-credits"
msgstr "" msgstr ""
"Meskó Balázs <mesko.balazs at fsf dot hu>, 2011.\n" "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 #. (itstool) path: articleinfo/title
#: C/index.docbook:17 #: C/index.docbook:17
@ -168,14 +168,19 @@ msgstr "Visszajelzés"
#. (itstool) path: legalnotice/para #. (itstool) path: legalnotice/para
#: C/index.docbook:136 #: 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 "" msgid ""
"To report a bug or make a suggestion regarding the Glade application or this " "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=" "manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\"help\">GNOME Feedback Page</ulink>." "\">GNOME Issue Tracker</ulink>."
msgstr "" msgstr ""
"Egy hiba bejelentéséhez vagy a Glade alkalmazással, illetve ezzel a " "Ha hibát szeretne bejelenti, vagy javaslata van a Glade alkalmazással vagy a"
"kézikönyvvel kapcsolatos javaslat tételéhez kövesse a <ulink url=\"help:" " kézikönyvvel kapcsolatban, akkor azt a <ulink"
"gnome-feedback\" type=\"help\">GNOME visszajelzés oldal</ulink> útmutatásait." " url=\"https://gitlab.gnome.org/GNOME/glade/issues/\">GNOME hibakövető</ulink"
"> segítségével teheti meg."
#. (itstool) path: article/indexterm #. (itstool) path: article/indexterm
#: C/index.docbook:144 #: C/index.docbook:144
@ -257,12 +262,15 @@ msgstr "<guimenu>Alkalmazások</guimenu> menü"
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/index.docbook:181 #: C/index.docbook:181
#| msgid ""
#| "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> "
#| "<guimenuitem>Glade Interface Designer</guimenuitem> </menuchoice>."
msgid "" msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade " "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"Interface Designer</guimenuitem> </menuchoice>." "guimenuitem> </menuchoice>."
msgstr "" msgstr ""
"Válassza a <menuchoice> <guisubmenu>Programozás</guisubmenu> " "Válassza a <menuchoice> <guisubmenu>Programozás</guisubmenu> <guimenuitem"
"<guimenuitem>Glade felülettervezőt</guimenuitem> </menuchoice>." ">Glade</guimenuitem> </menuchoice> menüpontot."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:189 #: 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 #. 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. #. whatever you like once you have updated your copy of the file.
#: C/index.docbook:206 #: C/index.docbook:206
#| msgctxt "_"
#| msgid ""
#| "external ref='figures/main-window.png' "
#| "md5='bf5cf7830cf0b9a3c901ad6c13eddbff'"
msgctxt "_" msgctxt "_"
msgid "" msgid ""
"external ref='figures/main-window.png' md5='5425da019396c13dbe8deb80303673ba'" "external ref='figures/main-window.png' md5='5425da019396c13dbe8deb80303673ba'"
@ -316,9 +320,13 @@ msgstr ""
#. (itstool) path: screenshot/mediaobject #. (itstool) path: screenshot/mediaobject
#: C/index.docbook:205 #: 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 "" msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/" "<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>" "application> window.</phrase></textobject>"
msgstr "" msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/" "<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 #. (itstool) path: listitem/para
#: C/index.docbook:320 #: 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 "" msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</" "To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a " "guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-" "pointer-plus-cross. You can then place the widget inside containers, "
"level widgets, and so on. After you place a widget, the mode returns to " "toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode." "selection mode."
msgstr "" msgstr ""
"A felületi elem elhelyezési mód használatához válasszon egy felületi elemet " "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 " "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 " "így tovább. Miután elhelyezte a felületi elemet, a program újra kiválasztási "
"módba kerül." "módba kerül."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:335 #: 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" msgstr "Felsőszintű elhelyezési mód"
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/index.docbook:337 #: 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 "" msgid ""
"To use top level placement mode, select a defined top-level widget in the " "To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in " "<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on " "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." "widget, the mode returns to selection mode."
msgstr "" msgstr ""
"A felsőszintű elhelyezési mód használatához válasszon egy felsőszintűnek " "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. # Indonesian translation for glade.
# Copyright (C) 2016 glade's COPYRIGHT HOLDER # Copyright (C) 2016 glade's COPYRIGHT HOLDER
# This file is distributed under the same license as the glade package. # 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 "" msgid ""
msgstr "" msgstr ""
"Project-Id-Version: glade master\n" "Project-Id-Version: glade master\n"
"POT-Creation-Date: 2019-04-06 09:52+0000\n" "POT-Creation-Date: 2020-06-22 15:48+0000\n"
"PO-Revision-Date: 2019-11-11 22:25+0700\n" "PO-Revision-Date: 2021-09-07 12:19+0700\n"
"Last-Translator: Andika Triwidada <andika@gmail.com>\n" "Last-Translator: Andika Triwidada <andika@gmail.com>\n"
"Language-Team: Indonesian <gnome-l10n-id@googlegroups.com>\n" "Language-Team: Indonesian <gnome-l10n-id@googlegroups.com>\n"
"Language: id\n" "Language: id\n"
"MIME-Version: 1.0\n" "MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n" "Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\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 #. Put one translator per line, in the form NAME <EMAIL>, YEAR1, YEAR2
msgctxt "_" msgctxt "_"
msgid "translator-credits" 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 #. (itstool) path: articleinfo/title
#: C/index.docbook:17 #: C/index.docbook:17
@ -154,7 +157,7 @@ msgstr ""
#. (itstool) path: articleinfo/releaseinfo #. (itstool) path: articleinfo/releaseinfo
#: C/index.docbook:133 #: C/index.docbook:133
msgid "This manual describes version 3.1.0 of Glade." 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 #. (itstool) path: legalnotice/title
#: C/index.docbook:135 #: C/index.docbook:135
@ -165,12 +168,12 @@ msgstr "Umpan Balik"
#: C/index.docbook:136 #: C/index.docbook:136
msgid "" msgid ""
"To report a bug or make a suggestion regarding the Glade application or this " "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=" "manual, visit the <ulink url=\"https://gitlab.gnome.org/GNOME/glade/issues/"
"\"help\">GNOME Feedback Page</ulink>." "\">GNOME Issue Tracker</ulink>."
msgstr "" msgstr ""
"Untuk melaporkan kutu atau membuat saran mengenai aplikasi Glade atau " "Untuk melaporkan kutu atau membuat saran mengenai aplikasi Glade atau "
"panduan ini, ikuti petunjuk pada <ulink url=\"help:gnome-feedback\" type=" "panduan ini, kunjungi <ulink url=\"https://gitlab.gnome.org/GNOME/glade/"
"\"help\">Laman Umpan Balik GNOME</ulink>." "issues/\">Pelacakan Masalah GNOME</ulink>."
#. (itstool) path: article/indexterm #. (itstool) path: article/indexterm
#: C/index.docbook:144 #: C/index.docbook:144
@ -251,11 +254,11 @@ msgstr "Menu <guimenu>Aplikasi</guimenu>"
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/index.docbook:181 #: C/index.docbook:181
msgid "" msgid ""
"Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade " "Choose <menuchoice> <guisubmenu>Programming</guisubmenu> <guimenuitem>Glade</"
"Interface Designer</guimenuitem> </menuchoice>." "guimenuitem> </menuchoice>."
msgstr "" msgstr ""
"Pilih <menuchoice> <guisubmenu>Pemrograman</guisubmenu> " "Pilih <menuchoice> <guisubmenu>Pemrograman</guisubmenu> <guimenuitem>Glade</"
"<guimenuitem>Desainer Antarmuka Glade</guimenuitem> </menuchoice>." "guimenuitem> </menuchoice>."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:189 #: 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 #. 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. #. whatever you like once you have updated your copy of the file.
#: C/index.docbook:206 #: C/index.docbook:206
#| msgctxt "_"
#| msgid ""
#| "external ref='figures/main-window.png' "
#| "md5='0ab7dd8af6d049544c81748e72064941'"
msgctxt "_" msgctxt "_"
msgid "" msgid ""
"external ref='figures/main-window.png' md5='5425da019396c13dbe8deb80303673ba'" "external ref='figures/main-window.png' md5='5425da019396c13dbe8deb80303673ba'"
@ -310,11 +309,11 @@ msgstr ""
#: C/index.docbook:205 #: C/index.docbook:205
msgid "" msgid ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/" "<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>" "application> window.</phrase></textobject>"
msgstr "" msgstr ""
"<imageobject><imagedata fileref=\"figures/main-window.png\" format=\"PNG\"/" "<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>" "application>.</phrase></textobject>"
#. (itstool) path: sect2/para #. (itstool) path: sect2/para
@ -559,36 +558,36 @@ msgstr "Mode penempatan widget"
msgid "" msgid ""
"To use widget placement mode, select a widget in the <guilabel>Palette</" "To use widget placement mode, select a widget in the <guilabel>Palette</"
"guilabel> window. When you select most widgets, the pointer changes to a " "guilabel> window. When you select most widgets, the pointer changes to a "
"pointer-plus-cross. You can then place the widget inside containers, top-" "pointer-plus-cross. You can then place the widget inside containers, "
"level widgets, and so on. After you place a widget, the mode returns to " "toplevel widgets, and so on. After you place a widget, the mode returns to "
"selection mode." "selection mode."
msgstr "" msgstr ""
"Untuk menggunakan mode penempatan widget, pilih widget pada jendela " "Untuk menggunakan mode penempatan widget, pilih widget pada jendela "
"<guilabel>Palet</guilabel>. Bila Anda memilih widget, pointer berubah ke " "<guilabel>Palet</guilabel>. Bila Anda memilih widget, pointer berubah ke "
"pointer-tambah-silangf. Anda kemudian dapat menempatkan widget didalam " "pointer-tambah-silang. Anda kemudian dapat menempatkan widget di dalam "
"wadah, widget tingkat-atas, dan sebagainya. Setelah Anda menempatkan sebuah " "wadah, widget tingkat-puncak, dan sebagainya. Setelah Anda menempatkan "
"widget, mode akan kembali ke mode seleksi." "sebuah widget, mode akan kembali ke mode seleksi."
#. (itstool) path: varlistentry/term #. (itstool) path: varlistentry/term
#: C/index.docbook:335 #: C/index.docbook:335
msgid "Top-level placement mode" msgid "Toplevel placement mode"
msgstr "Mode penempatan tingkat-atas" msgstr "Mode penempatan tingkat-puncak"
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/index.docbook:337 #: C/index.docbook:337
msgid "" msgid ""
"To use top level placement mode, select a defined top-level widget in the " "To use toplevel placement mode, select a defined toplevel widget in the "
"<guilabel>Palette</guilabel> window. When you select a top-level widget in " "<guilabel>Palette</guilabel> window. When you select a toplevel widget in "
"the <guilabel>Palette</guilabel> window, the widget appears immediately on " "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." "widget, the mode returns to selection mode."
msgstr "" msgstr ""
"Untuk menggunakan mode penempatan tingkat-atas, pilih widget tingkat-atas " "Untuk menggunakan mode penempatan tingkat-puncak, pilih widget tingkat-"
"yang didefinisikan dalam jendela <application>Palet</application>. Bila Anda " "puncak yang didefinisikan dalam jendela <application>Palet</application>. "
"memilih widget tingkat-atas pada jendela <application>Palet</application>, " "Bila Anda memilih widget tingkat-puncak pada jendela <application>Palet</"
"widget akan segera muncul di destop Anda. Anda kemudian dapat menyunting " "application>, widget akan segera muncul di desktop Anda. Anda kemudian dapat "
"widget. Setelah Anda memilih widget tingkat-atas, mode akan kembali ke mode " "menyunting widget. Setelah Anda memilih widget tingkat-puncak, mode akan "
"seleksi." "kembali ke mode seleksi."
#. (itstool) path: sect2/title #. (itstool) path: sect2/title
#: C/index.docbook:354 #: C/index.docbook:354
@ -602,9 +601,9 @@ msgid ""
"project window. You can choose the following widget containers from the " "project window. You can choose the following widget containers from the "
"<guilabel>Palette</guilabel> window:" "<guilabel>Palette</guilabel> window:"
msgstr "" msgstr ""
"Anda dapat menggunakan wadah widget, atau kotak, untuk tata letak dan " "Anda dapat menggunakan wadah widget, atau kotak, untuk mengatur tata letak "
"mengatur widget pada jendela proyek Anda. Anda dapat memilih wadah widget " "dan mengorganisasi widget pada jendela proyek Anda. Anda dapat memilih wadah "
"berikut dari jendela <guilabel>Palet</guilabel>." "widget berikut dari jendela <guilabel>Palet</guilabel>:"
#. (itstool) path: listitem/para #. (itstool) path: listitem/para
#: C/index.docbook:360 #: C/index.docbook:360

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_cmd = [
xsltproc, xsltproc,
'--output', '@OUTPUT@', '--output', '@OUTPUT@',
'--nonet',
'--stringparam', 'man.output.quietly', '1', '--stringparam', 'man.output.quietly', '1',
'--stringparam', 'funcsynopsis.style', 'ansi', '--stringparam', 'funcsynopsis.style', 'ansi',
'--stringparam', 'man.th.extra1.suppress', '1', '--stringparam', 'man.th.extra1.suppress', '1',

View File

@ -8,10 +8,10 @@
# version will always know they are on a development release. # version will always know they are on a development release.
project( project(
'glade', 'c', 'glade', 'c',
version: '3.38.0', version: '3.40.0',
license: 'GPL2', license: 'GPL2',
default_options: 'buildtype=debugoptimized', default_options: 'buildtype=debugoptimized',
meson_version: '>= 0.49.0', meson_version: '>= 0.57.0',
) )
glade_name = meson.project_name() 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 # Reference: http://www.gnu.org/software/libtool/manual/libtool.html#Versioning
gladeui_revision = 0 gladeui_revision = 0
gladeui_current = 13 gladeui_current = 14
gladeui_age = 0 gladeui_age = 1
gladeui_current_minus_age = gladeui_current - gladeui_age gladeui_current_minus_age = gladeui_current - gladeui_age
gladeui_libversion = '@0@.@1@.@2@'.format(gladeui_current_minus_age, gladeui_age, gladeui_revision) 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') gnome = import('gnome')
i18n = import('i18n') i18n = import('i18n')
pkg = import('pkgconfig') pkg = import('pkgconfig')
# NOTE: On windows we only target MSYS2/mingw
windows = import('windows') windows = import('windows')
source_root = meson.current_source_dir() source_root = meson.current_source_dir()
@ -111,6 +113,7 @@ add_project_arguments(common_flags, language: 'c')
# Check required libraries # Check required libraries
glib_dep = dependency('glib-2.0', version: '>= 2.64.0') 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_dep = dependency('gmodule-2.0')
gmodule_export_dep = dependency('gmodule-export-2.0') gmodule_export_dep = dependency('gmodule-export-2.0')
gtk_dep = dependency('gtk+-3.0', version: '>= 3.24.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')) pygobject_dep = dependency('pygobject-3.0', version: '>= ' + pygobject_version, required: get_option('python'))
have_python = pygobject_dep.found() have_python = pygobject_dep.found()
if have_python 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('.') version_array = pygobject_version.split('.')
config_h.set('PYGOBJECT_REQUIRED_MAJOR', version_array[0].to_int()) 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_MINOR_VERSION', glade_minor_version)
rc_conf.set('GLADE_MICRO_VERSION', glade_micro_version) rc_conf.set('GLADE_MICRO_VERSION', glade_micro_version)
rc_conf.set('GLADE_CURRENT_MINUS_AGE', gladeui_current_minus_age) rc_conf.set('GLADE_CURRENT_MINUS_AGE', gladeui_current_minus_age)
rc_conf.set('SOURCE_ROOT', source_root)
endif endif
subdir('po') subdir('po')
@ -206,11 +210,21 @@ configure_file(
configuration: config_h, configuration: config_h,
) )
meson.add_install_script( gnome.post_install(
'meson_post_install.py', gtk_update_icon_cache: true,
glade_datadir,
) )
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 = '\nConfiguration:\n\n'
output += '\tCompiler: ' + cc.get_id() + '\n' output += '\tCompiler: ' + cc.get_id() + '\n'
output += '\tSource code location: ' + source_root + '\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 += '\tWebKit2GTK+ Catalog: ' + have_webkit2gtk.to_string() + '\n'
output += '\tIntrospection Data: ' + enable_introspection.to_string() + '\n\n' output += '\tIntrospection Data: ' + enable_introspection.to_string() + '\n\n'
output += '\tBuild Reference Manual: ' + enable_gtk_doc.to_string() + '\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) 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 */ /* Importing the module will create all the GTypes so that glade can use them at runtime */
retval = gjs_context_eval (gjs_context_get_current (), retval = gjs_context_eval (gjs_context_get_current (),
import_sentence, -1, NULL, import_sentence, -1, "<glade-gjs>",
&exit_status, &exit_status,
&error); &error);
if (!retval && error) if (!retval && error)

View File

@ -18,6 +18,7 @@
* Authors: * Authors:
* Tristan Van Berkom <tvb@gnome.org> * Tristan Van Berkom <tvb@gnome.org>
*/ */
#ifndef _GLADE_ABOUT_DIALOG_EDITOR_H_ #ifndef _GLADE_ABOUT_DIALOG_EDITOR_H_
#define _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__ #ifndef __GLADE_ACCELS_H__
#define __GLADE_ACCELS_H__ #define __GLADE_ACCELS_H__

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -33,6 +33,11 @@
#define GLADE_RESPONSE_CLEAR 42 #define GLADE_RESPONSE_CLEAR 42
typedef struct {
GladeEditorProperty *eprop;
GtkWidget *tree_view;
} GladeEditorPropertyData;
static GList * static GList *
glade_attr_list_copy (GList *attrs) glade_attr_list_copy (GList *attrs)
{ {
@ -129,6 +134,11 @@ enum
NUM_COLUMNS NUM_COLUMNS
}; };
typedef enum
{
ROW_RESET_MODE = 0,
ROW_APPEND_MODE
} RowSetMode;
typedef enum typedef enum
{ {
@ -201,14 +211,17 @@ get_enum_model_for_combo (PangoAttrType type)
} }
static gboolean static gboolean
append_empty_row (GtkListStore *store, PangoAttrType type) set_empty_row_internal (GtkTreeModel *model, PangoAttrType type, GtkTreeIter *current_iter)
{ {
const gchar *name = NULL; const gchar *name = NULL;
guint spin_digits = 0; guint spin_digits = 0;
GtkAdjustment *adjustment = NULL; GtkAdjustment *adjustment = NULL;
GtkListStore *model = get_enum_model_for_combo (type);
GtkTreeIter iter; GtkTreeIter iter;
AttrEditType edit_type = EDIT_INVALID; AttrEditType edit_type = EDIT_INVALID;
GtkListStore *store = GTK_LIST_STORE (model);
RowSetMode mode;
mode = (current_iter ? ROW_RESET_MODE : ROW_APPEND_MODE);
switch (type) switch (type)
{ {
@ -313,31 +326,56 @@ append_empty_row (GtkListStore *store, PangoAttrType type)
if (name) 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, 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_NAME_WEIGHT, PANGO_WEIGHT_NORMAL,
COLUMN_TEXT, _("<Enter Value>"), COLUMN_TEXT, _("<Enter Value>"),
COLUMN_TEXT_STYLE, PANGO_STYLE_ITALIC, COLUMN_TEXT_STYLE, PANGO_STYLE_ITALIC,
COLUMN_TEXT_FG, "Grey", 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_DIGITS, spin_digits,
COLUMN_SPIN_ADJUSTMENT, adjustment, COLUMN_SPIN_ADJUSTMENT, adjustment, -1);
ACTIVATE_COLUMN_FROM_TYPE (edit_type), TRUE, -1);
return TRUE; return TRUE;
} }
return FALSE; 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 static gboolean
is_empty_row (GtkTreeModel *model, GtkTreeIter *iter) is_empty_row (GtkTreeModel *model, GtkTreeIter *iter)
{ {
@ -707,7 +745,8 @@ value_icon_activate (GtkCellRendererToggle *cell_renderer,
GtkTreeIter iter; GtkTreeIter iter;
PangoAttrType type; PangoAttrType type;
AttrEditType edit_type; AttrEditType edit_type;
GdkRGBA color = {0,}; PangoColor color;
GdkRGBA rgba;
gchar *text = NULL, *new_text; gchar *text = NULL, *new_text;
/* Find type etc */ /* Find type etc */
@ -726,25 +765,25 @@ value_icon_activate (GtkCellRendererToggle *cell_renderer,
dialog = gtk_color_chooser_dialog_new (_("Select a color"), dialog = gtk_color_chooser_dialog_new (_("Select a color"),
GTK_WINDOW (glade_app_get_window ())); GTK_WINDOW (glade_app_get_window ()));
/* Get response etc... */ /* Get response etc... */
if (text && gdk_rgba_parse (&color, text)) if (text && pango_color_parse (&color, text))
gtk_color_chooser_set_rgba (GTK_COLOR_CHOOSER (dialog), &color); {
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) 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 */ /* Use PangoColor string format */
if (((guint8)(color.red * 0xFF)) * 0x101 == (guint16)(color.red * 0xFFFF) && new_text = pango_color_to_string (&color);
((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));
gtk_list_store_set (GTK_LIST_STORE (eprop_attrs->model), &iter, gtk_list_store_set (GTK_LIST_STORE (eprop_attrs->model), &iter,
COLUMN_TEXT, new_text, 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); gtk_tree_model_get (eprop_attrs->model, &iter, COLUMN_TYPE, &type, -1);
/* Reset the column */ /* 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, gtk_list_store_set (GTK_LIST_STORE (eprop_attrs->model), &iter,
COLUMN_TEXT, _("<Enter Value>"), 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); 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_show_expanders (GTK_TREE_VIEW (view_widget), FALSE);
gtk_tree_view_set_enable_search (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 *********************/ /********************* attribute name column *********************/
renderer = gtk_cell_renderer_text_new (); renderer = gtk_cell_renderer_text_new ();
@ -979,7 +1020,7 @@ static void
glade_eprop_attrs_populate_view (GladeEditorProperty *eprop, GtkTreeView *view) glade_eprop_attrs_populate_view (GladeEditorProperty *eprop, GtkTreeView *view)
{ {
GList *attributes, *list; GList *attributes, *list;
GtkListStore *model = (GtkListStore *) gtk_tree_view_get_model (view); GtkTreeModel *model = gtk_tree_view_get_model (view);
GtkTreeIter *iter; GtkTreeIter *iter;
GladeAttribute *gattr; GladeAttribute *gattr;
GladeProperty *property; GladeProperty *property;
@ -1013,7 +1054,7 @@ glade_eprop_attrs_populate_view (GladeEditorProperty *eprop, GtkTreeView *view)
{ {
gattr = list->data; 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); 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 static void
glade_eprop_attrs_show_dialog (GtkWidget *dialog_button, glade_eprop_attrs_show_dialog (GtkWidget *dialog_button,
GladeEditorProperty *eprop) GladeEditorProperty *eprop)
{ {
GladeEPropAttrs *eprop_attrs = GLADE_EPROP_ATTRS (eprop);
GtkWidget *dialog, *parent, *vbox, *sw, *tree_view; GtkWidget *dialog, *parent, *vbox, *sw, *tree_view;
GladeProperty *property; GladeEditorPropertyData *data;
GList *old_attributes;
gint res;
property = glade_editor_property_get_property (eprop);
parent = gtk_widget_get_toplevel (GTK_WIDGET (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"), dialog = gtk_dialog_new_with_buttons (_("Setup Text Attributes"),
GTK_WINDOW (parent), GTK_WINDOW (parent),
GTK_DIALOG_MODAL | GTK_DIALOG_MODAL |
@ -1062,6 +1207,9 @@ glade_eprop_attrs_show_dialog (GtkWidget *dialog_button,
_("_Cancel"), GTK_RESPONSE_CANCEL, _("_Cancel"), GTK_RESPONSE_CANCEL,
_("_OK"), GTK_RESPONSE_OK, NULL); _("_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); vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 6);
gtk_widget_show (vbox); gtk_widget_show (vbox);
@ -1082,38 +1230,21 @@ glade_eprop_attrs_show_dialog (GtkWidget *dialog_button,
tree_view = glade_eprop_attrs_view (eprop); tree_view = glade_eprop_attrs_view (eprop);
glade_eprop_attrs_populate_view (eprop, GTK_TREE_VIEW (tree_view)); 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_tree_view_expand_all (GTK_TREE_VIEW (tree_view));
gtk_widget_show (tree_view); gtk_widget_show (tree_view);
gtk_container_add (GTK_CONTAINER (sw), tree_view); gtk_container_add (GTK_CONTAINER (sw), tree_view);
/* Run the dialog */ data = g_new0 (GladeEditorPropertyData, 1);
res = gtk_dialog_run (GTK_DIALOG (dialog)); data->eprop = eprop;
if (res == GTK_RESPONSE_OK) data->tree_view = tree_view;
{
/* 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);
}
/* Clean up ... g_signal_connect (dialog, "response", G_CALLBACK (glade_eprop_attrs_dialog_response_cb), data);
*/
gtk_widget_destroy (dialog);
g_object_unref (G_OBJECT (eprop_attrs->model)); gtk_widget_show (GTK_WIDGET (dialog));
eprop_attrs->model = NULL;
glade_attr_list_free (old_attributes);
} }

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__ #ifndef __GLADE_ATTRIBUTES_H__
#define __GLADE_ATTRIBUTES_H__ #define __GLADE_ATTRIBUTES_H__

View File

@ -18,6 +18,7 @@
* Authors: * Authors:
* Tristan Van Berkom <tvb@gnome.org> * Tristan Van Berkom <tvb@gnome.org>
*/ */
#ifndef _GLADE_BOX_EDITOR_H_ #ifndef _GLADE_BOX_EDITOR_H_
#define _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_property_get_default (property, &value);
glade_command_set_property_value (property, &value); glade_command_set_property_value (property, &value);
g_value_unset (&value); g_value_unset (&value);
glade_property_i18n_set_translatable (property, TRUE);
glade_command_pop_group (); glade_command_pop_group ();

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,3 +1,24 @@
/*
* Copyright (C) 2006, 2013 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_FIXED_H__ #ifndef __GLADE_FIXED_H__
#define __GLADE_FIXED_H__ #define __GLADE_FIXED_H__

View File

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

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