Compare commits

..

3125 Commits

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

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

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

Please note:

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

glade_util_count_placeholders (gwidget) recursively checks placeholder.

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

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

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

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

GladeApp: use PACKAGE_NAME instead of PACKAGE

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

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

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

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

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

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

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

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

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

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

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

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

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

This is a small recognition in his memory.
2020-09-12 19:28:44 -03:00
Rafael Fontenelle
b11c24a671 Update Brazilian Portuguese translation
(cherry picked from commit aa70e86a18885df251552d84f5b3ed545341ce16)
2020-09-12 21:09:55 +00:00
Baurzhan Muftakhidinov
9a4293194e Update Kazakh translation
(cherry picked from commit 95f29fd6fda9580099884fb979f9dea9d049e7c1)
2020-09-12 13:57:01 +00:00
Ask Hjorth Larsen
75a7631c66 Updated Danish translation 2020-09-12 01:11:22 +02:00
Juan Pablo Ugarte
e490acdc50 Bump glib version dependency 2020-09-09 18:35:56 -03:00
Marek Černocký
9b3a74c3dc Updated Czech help translation 2020-09-09 21:52:15 +02:00
Marek Černocký
f49ebb12fc Updated Czech translation 2020-09-09 09:30:22 +02:00
Tim Sabsch
f13ff85c5c Update German translation
(cherry picked from commit 3a4a0c2488f21979a5e32becfe87b580e543b35d)
2020-09-08 18:21:58 +00:00
Mario Blättermann
489e0e0306 Update German translation
(cherry picked from commit dce9287ebe9530aba386ae9854304f61f4f94656)
2020-09-07 18:08:35 +00:00
Jordi Mas
5f1705b9d5 Update Catalan translation 2020-09-07 16:13:32 +02:00
Gil Forcada
2d29cacb08 Update Catalan translation
(cherry picked from commit e2865e629a95d1722007cfc4385f3a644a687af5)
2020-09-07 10:28:28 +00:00
Balázs Úr
0b9b0f0f40 Update Hungarian translation 2020-09-06 23:06:31 +00:00
Piotr Drąg
04c2340aad Update Polish translation 2020-09-06 16:13:57 +02:00
Ask Hjorth Larsen
8069cc6988 Updated Danish translation 2020-09-06 14:05:40 +02:00
Claude Paroz
34aaeabb0f Update French translation 2020-09-06 11:39:49 +02:00
Anders Jonsson
6454c8f969 Update Swedish translation
(cherry picked from commit df88ff54a2ceb40572adef928baa302b44f01a90)
2020-09-05 10:14:46 +00:00
Juan Pablo Ugarte
1bd2d54942 plugins/gtk+/gtk+.xml: update version metadata
Update Class, properties and signal since and deprecated-since metadata from Gir
2020-09-03 21:26:49 -03:00
Juan Pablo Ugarte
b7a884f5a6 GladeProject: support property and signal deprecated-since
Check deprecated-since version for properties and signals
2020-09-03 20:50:03 -03:00
Juan Pablo Ugarte
c0fd18643a GladePropertyDef, GladeSignalDef: support deprecated since
Add support for deprecated since version
2020-09-03 20:47:17 -03:00
Juan Pablo Ugarte
d662716d37 Gtk plugin: indent catalog
Properly indent catalog.
Add a new line before glade-widget-class and glade-widget-group
2020-09-02 19:59:43 -03:00
Juan Pablo Ugarte
679253ba5b GladeProject: ignore insentitive properties
Ignore insensitive properties for project verification.

Fix issue #385 "GtkCellRendererText causes deprecated warnings for ghost properties"
2020-09-02 19:51:35 -03:00
Zander Brown
a040214023 Update British English translation 2020-09-01 18:53:01 +00:00
Matej Urbančič
4f84db233c Updated Slovenian translation 2020-08-31 21:46:56 +02:00
Juan Pablo Ugarte
9a51e6381f GtkEntry: mark show-emoji-icon since 3.24
show-emoji-icon was introduced in a micro version 3.22.19 which is
uncommon and is why we simply mark it as since 3.24.

Fix issue #444 "show-emoji-icon is missing "minimum version"/since constraint"
2020-08-31 16:22:29 -03:00
Juan Pablo Ugarte
c8f91e52cc GladeProject: ignore resource:// uri on file properties
Add resources URL in file properties support to be on par with GtkBuilder

Fix issue #367 "Glade removes double/triple slashes from URLs"
2020-08-31 16:22:29 -03:00
Asier Sarasua Garmendia
310ba91cc6 Update Basque translation 2020-08-30 10:20:08 +00:00
Changwoo Ryu
1775705c95 Update Korean translation 2020-08-30 07:47:01 +00:00
Boyuan Yang
e7dfc7ce73 Update Chinese (China) translation 2020-08-29 13:56:44 +00:00
Kukuh Syafaat
4af38ecd08 Update Indonesian translation 2020-08-27 02:57:32 +00:00
Juan Pablo Ugarte
8b39ec6ac7 TODO: deleted implemented features 2020-08-26 19:56:29 -03:00
Juan Pablo Ugarte
c94cdbe19c Readme.md: cleanup
Add manual installation, Linux, Windows and OSX instructions
2020-08-26 19:56:29 -03:00
Aurimas Černius
3982c72529 Updated Lithuanian translation 2020-08-26 22:44:45 +03:00
Juan Pablo Ugarte
c4ab0b3dfe GladePreferences: reload all catalogs when adding a new extra path.
Reload all catalogs to make sure templates in the newlly added path
are loaded without having to restart the app.
2020-08-24 17:50:24 -03:00
Juan Pablo Ugarte
c3c577f0c9 GladeWidgetAdaptorChooser: update automatically
Update choosers when a new adaptor is registered
2020-08-24 17:50:24 -03:00
Juan Pablo Ugarte
fb27376d89 GladeCatolog: monitor extra path for new templates
Monitor all extra paths to load templates automatically without having
to restart Glade.
2020-08-24 17:50:24 -03:00
Juan Pablo Ugarte
207dd760b4 gladeui/glade-template.c: add class_init function
Use class init function to set template and only reset it
if _gtk_widget_class_template_unset_only_for_glade() is present
2020-08-24 17:50:24 -03:00
Daniel Mustieles
98af1a743c Updated Spanish translation 2020-08-24 12:05:33 +02:00
Rafael Fontenelle
3ea6d95cee Update Brazilian Portuguese translation 2020-08-23 19:45:44 +00:00
Ask Hjorth Larsen
e705ab5735 add da to linguas 2020-08-23 18:07:58 +02:00
Ask Hjorth Larsen
7b41367b31 Updated Danish translation 2020-08-23 18:07:21 +02:00
Emin Tufan Çetin
f9076b7a63 Update Turkish translation 2020-08-22 10:55:04 +00:00
Yuri Chornoivan
20fd757697 Update Ukrainian translation 2020-08-22 06:19:12 +00:00
Juan Pablo Ugarte
01956c4de7 GladePreferences: mark string as translatable
Mark file chooser dialog title as translatable
2020-08-21 18:38:08 -03:00
Matej Urbančič
3cfdf0bd16 Updated Slovenian translation 2020-08-21 18:39:48 +02:00
Piotr Drąg
bc717637f8 Update POTFILES.in 2020-08-20 16:34:34 +02:00
Baurzhan Muftakhidinov
f09f0e03da Update Kazakh translation 2020-08-18 07:23:53 +00:00
Yuri Chornoivan
12beae1180 Update Ukrainian translation 2020-08-18 06:25:21 +00:00
Fran Dieguez
63f1642733 Update Galician translation 2020-08-17 23:51:45 +00:00
Juan Pablo Ugarte
16679f7dd9 AddData: update 3.37 description and issues.
Removed description for old releases.
2020-08-17 19:40:34 -03:00
Juan Pablo Ugarte
0d37352f28 Gtk plugin: add 3 missing displayable value for GtkCellRendererText::underline 2020-08-17 19:26:16 -03:00
Juan Pablo Ugarte
02dd5e08ac GladePreferences: mention templates in extra catalog paths label.
Mention the fact that templates will be loaded from extra catalogs paths.
2020-08-17 19:19:48 -03:00
Juan Pablo Ugarte
286555acc6 GladeCatalog: Load templates from extra catalog paths.
Load template files as new GObject types and add them to
"User templates" widget group.
2020-08-17 19:19:48 -03:00
Juan Pablo Ugarte
80de73f0b4 Use g_list_free_full() instead of g_list_foreach() + g_list_free()
Also fix -Wcast-function-type warnings
2020-08-17 19:19:48 -03:00
Juan Pablo Ugarte
a987d81b4e Utils: Add glade_util_list_objects_ref()
Use new function to fix -Wcast-function-type warnings
2020-08-17 19:19:48 -03:00
Juan Pablo Ugarte
4858565c95 Fix warning: ISO C does not allow extra ‘;’ outside of a function [-Wpedantic] 2020-08-17 19:19:48 -03:00
Juan Pablo Ugarte
90b73edebb GladeIntro, GladePreferences: Replace some \t with spaces 2020-08-17 19:19:48 -03:00
Thibault Martin
f1a5e99726 Add translators comments to remove ambiguity about tab string 2020-08-17 17:40:27 +00:00
Ryan Schmidt
10d2a2c255 Fix fuzzy Hindi translation: don't translate tag 2020-08-17 17:35:35 +00:00
Kukuh Syafaat
65569d7937 Update Indonesian translation 2020-08-15 03:54:59 +00:00
Florentina Mușat
034f56c00e Update Romanian translation 2020-08-14 12:14:28 +00:00
Fran Dieguez
cf76e8e738 Update Galician translation 2020-08-13 21:24:54 +00:00
Thibault Martin
20718e12c0 Update French translation 2020-08-13 09:21:30 +00:00
Daniel Mustieles
33d9f35fa0 Updated Spanish translation 2020-08-11 12:19:16 +02:00
Asier Sarasua Garmendia
41039635f4 Update Basque translation 2020-08-10 07:23:15 +00:00
Yuri Chornoivan
94c43b4758 Update Ukrainian translation 2020-08-08 15:05:28 +00:00
Jordi Mas
ab2104a8e5 Update Catalan translation 2020-08-08 08:47:59 +02:00
Juan Pablo Ugarte
3a5d198b97 GladeProjectProperties: various UI improvements.
Port to use headerbar, stack and stach switcher.
Add warnings textview for deprecations warnigns.
2020-08-07 20:06:22 -03:00
Juan Pablo Ugarte
e4b1d68311 GladeWidget: improve glade_widget_get_name() and glade_widget_generate_path_name()
Make sure object type is used intead of __glade_unnamed_ prefix.
2020-08-07 19:56:46 -03:00
Juan Pablo Ugarte
e48e603b66 GladePreferences: use headerbar
Move extra catalogs buttons to the side of the treeview.
2020-08-07 19:55:48 -03:00
Juan Pablo Ugarte
03a51866c3 GladeProject: plug various glade widgets leaks.
Make sure objects retrieved with gtk_tree_model_get() are unref using g_autoptr
This fixes all missing GladeWidget leaks so now we can remove toplevel
destroy workaround and toplevels should not be leaked anymore after closing a
project.
2020-08-07 13:07:38 -03:00
Juan Pablo Ugarte
b8af75b035 GladeInspector: plug object leak
Fix leak in button_press_cb().
Use g_autoptr when getting an object from a model.
2020-08-07 13:07:38 -03:00
Juan Pablo Ugarte
aec114b6c1 GladeSignalEditor: plug glade widget leak
Unref widget property on finalize.
2020-08-07 13:07:38 -03:00
Juan Pablo Ugarte
032124d214 GladeWidget: add support for g_autoptr 2020-08-07 13:07:38 -03:00
Juan Pablo Ugarte
eca097140d GladeCommandAddRemove: fix CommandData leak
Fix leak in finalize()
2020-08-07 13:07:38 -03:00
Zander Brown
b649589d8a registration: fix a typo 2020-08-06 20:12:39 +00:00
Zander Brown
4e3f2738a6 Update British English translation 2020-08-06 19:18:02 +00:00
Juan Pablo Ugarte
7aa3440072 GladeProject: cleanup dispose
GladeAdaptorChooserWidget: use g_object_add_weak_pointer() instead of
g_object_weak_ref() and unset project on dispose.

GladeDesignLayout, GladeDesignView: use g_object_add_weak_pointer()

GladeEditable: fix project signal disconnect issue
2020-08-05 19:37:19 -03:00
Juan Pablo Ugarte
3236ee4ce1 Tests: add more add-child tests
Add test case for the following classes
	GTK_TYPE_FILE_CHOOSER_BUTTON
	GTK_TYPE_OFFSCREEN_WINDOW
	GTK_TYPE_APPLICATION_WINDOW
	GTK_TYPE_ASPECT_FRAME
	GTK_TYPE_STACK
	GTK_TYPE_REVEALER
	GTK_TYPE_POPOVER
	GTK_TYPE_HEADER_BAR
	GTK_TYPE_ACTION_BAR
	GTK_TYPE_SEARCH_BAR
	GTK_TYPE_SCROLLED_WINDOW
	GTK_TYPE_LIST_BOX
	GTK_TYPE_FLOW_BOX
2020-08-05 19:37:19 -03:00
Juan Pablo Ugarte
a6f88f7441 Tests: re enable commented test in Add Child
Enable GTK_TYPE_FILE_CHOOSER_BUTTON, GTK_TYPE_RECENT_CHOOSER,
GTK_TYPE_DIALOG and GTK_TYPE_ASSISTANT tests.
2020-08-05 19:37:19 -03:00
Juan Pablo Ugarte
8ea0085747 GladeGtkFileChooserButton: cleanup support
Disable save and create folder actions and select multiple property
2020-08-05 19:37:19 -03:00
Jordan Petridis
3887720892 ci: cleanup the flatpak template setup
remove the explicit stages as they are not needed.

move the bundle env var inline with the job.

remove the meson_args evn var as its no longer needed
to keep it in sync manually.
2020-08-03 21:34:38 +00:00
Jordan Petridis
e19d377502 ci: add explicit deps in the nightly job 2020-08-02 14:36:52 +00:00
Jordan Petridis
d23af92a4b ci: remove deprecated jobs
The functionality of these jobs exists in the normal build job now
and they are no longer needed.

citemplates@544836ee
2020-08-02 14:32:33 +00:00
Anders Jonsson
d166671063 Update Swedish translation 2020-07-30 22:56:04 +00:00
Jordi Mas
413137f273 Update Catalan translation 2020-07-30 11:56:56 +02:00
Juan Pablo Ugarte
b0dcd15387 Use symbolic icon names. 2020-07-29 20:09:53 -03:00
Juan Pablo Ugarte
33fa9a707a GladeWindow: move actions to top
Give catalog actions a more prominent place than the bottom toolbar

Fix issue #452 "GtkComboBox cell renderers editor is too hard to discover"
2020-07-29 20:09:53 -03:00
Jordi Mas
835b3227b2 Update Catalan translation 2020-07-29 23:50:45 +02:00
Daniel Mustieles
b7ca927e74 Updated Spanish translation 2020-07-29 11:46:50 +02:00
Jordi Mas
d1a05cc5cb Update Catalan translation 2020-07-28 23:01:19 +02:00
Juan Pablo Ugarte
cce40a8243 GladeProject: cleanup project finalization
Call gtk_widget_destroy() on GtkWindow derived objects to
avoid gtk keeping an internal reference

Fix issue #363 "Toplevel windows are leaked when closing a project"
2020-07-27 20:57:40 -03:00
Juan Pablo Ugarte
61ab43edae Tests: fix toplevel test
Do not free glade_project_toplevels() list
2020-07-27 20:50:03 -03:00
Juan Pablo Ugarte
115753c7d9 GladeProjectProperties: break project circular dependency
Do not use a GtkTreeModelFilter for the template combobox to avoid
adding a circular dependency to the project.

Implement it with a proxy model updated using project add/remove
widget signals.
2020-07-27 20:50:03 -03:00
Juan Pablo Ugarte
7a77ded99c Tests: add refcount test
Add basic test to make sure project refcount cycle is working properly.
2020-07-27 20:50:03 -03:00
Juan Pablo Ugarte
df2c7429c7 GladeWidget: allow setting a NULL object
We need to be able to unset object property on finalize method.
2020-07-26 18:00:20 -03:00
Juan Pablo Ugarte
8918dfb79b GladeAdaptorChooser[Widget]: use GladeProject weak reference.
Use a weak reference for project to prevent holding a reference
after the project is closed.
2020-07-26 18:00:20 -03:00
Juan Pablo Ugarte
1e85f469b9 Tests: replace \t with spaces 2020-07-26 18:00:20 -03:00
Juan Pablo Ugarte
59e985a27e GladeCatalog: load catalog right after calling init function.
Its better to load catalogs right after calling the init function
this way python and gjs catalogs would have all the adaptors available
once introspection is enabled.
2020-07-26 18:00:20 -03:00
Juan Pablo Ugarte
2a3cc9e4cd GladeGtkWindow: add extra safeguards in use-csd support code.
Some GtkWindow derived classes do not support titlebar widget
because they use it internally.
2020-07-22 19:23:09 -03:00
Juan Pablo Ugarte
e742d393b5 GladeGtkDialog, GladeGtkAssistant: ignore use-header-bar property
Remove construct only use-header-bar property from constructor
This way we never show a headerbar in the runtime.

Fix issue #462 "Crash when creating a new GtkAssistant and pressing it"
2020-07-22 19:22:34 -03:00
Juan Pablo Ugarte
392a3d6199 Gtk plugin: add glade_gtk_get_params_without_use_header_bar()
Add common function to generate a param list without use-header-bar property
2020-07-22 19:10:38 -03:00
Juan Pablo Ugarte
17bde66d00 GladeWindowEditor: hide use csd checkbutton if disabled 2020-07-22 19:04:05 -03:00
Juan Pablo Ugarte
214d9f38c7 Improve GtkApplication startup
Make sure opening files from the command line in an existing
instance works.

Fix issue #463 "Specify file on command line"
2020-07-22 18:18:10 -03:00
Juan Pablo Ugarte
04ded6d71a GladeGtkGrid: save and read n-columns and n-rows properties.
Save grid size properties as a comment to keep editing size
constant after reloading a glade file.

n-collumns and n-rows properties are introduced by Glade as a way
to easily edit a table or a grid.

Fix issue #461 "Glade resets number of rows and columns in GtkGrid"
2020-07-18 13:45:52 -03:00
Juan Pablo Ugarte
34fd642a05 Utils: ignore text nodes in prev/next functions with comments
Ignore text nodes (whitespaces) in glade_xml_node_prev_with_comments() and
glade_xml_node_next_with_comments() functions to make it easier to get
comments nodes.
2020-07-18 13:41:16 -03:00
Juan Pablo Ugarte
238ec80d11 Tests: use g_assert_true() instead of g_assert()
g_assert() should not be used in unit tests because it can be turned off
in final releases of code by defining G_DISABLE_ASSERT.

Fix issue #460 "3.37.0: test suite fails because glade uses incorrectly asserts in test units"
2020-07-18 11:58:17 -03:00
Juan Pablo Ugarte
f34c537742 Rolling 3.37.0 2020-07-13 20:45:36 -03:00
Aurimas Černius
d88c37e430 Updated Lithuanian translation 2020-07-13 16:13:06 +03:00
Florentina Mușat
62366a99f0 Update Romanian translation 2020-07-11 09:31:46 +00:00
Yuri Chornoivan
267882b9f8 Update Ukrainian translation 2020-07-11 06:31:39 +00:00
Juan Pablo Ugarte
cac74d620b GladeRegistration: rework survey
- Implement survey using new backend at surveys.gnome.org
- Save state in config file and do not alow to send a
  new survey if it was already completed.
- Move buttons to headerbar.

- Update mailing list link and fix automatic subscription.

Fix issue #433 "Survey and registration"
2020-07-10 19:35:10 -03:00
Juan Pablo Ugarte
50d465281f GladeHttp: add cookies support
Add cookies support.
Implement chunked transfer encoding.
Add response paremeter to request-done signal.
2020-07-10 19:26:46 -03:00
Juan Pablo Ugarte
87fbeba96a Survey: Add new linux distributions, Windows and MacOS versions
Use underline in cancel and submit buttons.
2020-07-10 17:51:25 -03:00
Juan Pablo Ugarte
f92ad4aecc Cleanup .gitignore files 2020-07-10 15:31:25 -03:00
Juan Pablo Ugarte
2075297693 Gtk catalog: add GtkRecentChooserMenu to Display group
Fix issue #459 "[Flatpak] GtkRecentChooserMenu is absent from widget selector"
2020-07-10 11:57:16 -03:00
Florentina Mușat
66755b1a36 Update Romanian translation 2020-07-10 09:47:32 +00:00
Yuri Chornoivan
716b64a7ea Update Ukrainian translation 2020-07-10 05:41:37 +00:00
Juan Pablo Ugarte
16a373db2f glade.glade: update about dialog.
Set about dialog lisence proerty to GPL2.
Do not use deprecated properties.
2020-07-09 19:32:37 -03:00
Juan Pablo Ugarte
5d44d98ec8 Gtk plugin / GladeDataModel: Improve treemodel char data type handling
Properly handle char input for gchar/guchar columns.
Only allow printable characters in gchar/guchar treemodel columns.
2020-07-09 17:53:04 -03:00
Juan Pablo Ugarte
ae04b49cf7 Utils: use g_param_spec_uchar() for uchar types
Fix issue #456 "Crash when editing GtkTreeView liststore entires"
2020-07-09 17:52:48 -03:00
Baurzhan Muftakhidinov
e84bf61493 Update Kazakh translation 2020-07-09 05:12:02 +00:00
Juan Pablo Ugarte
5b07458e98 GladeRegistration: use new glade_window_get_gdk_backend() function 2020-07-08 19:39:54 -03:00
Juan Pablo Ugarte
7c17877ed3 GladeWindow: add CSS optimization for Quartz backend
Disable shadows and animations on OSX to improve performance.
Add glade_window_get_gdk_backend()
2020-07-08 19:38:51 -03:00
Charles Monzat
18d6b7c49b Update French translation
(cherry picked from commit 0a1fb82ed6b011c6548d04269fb2e04718fe0952)
2020-07-01 22:40:09 +00:00
Daniel Mustieles
a4ca6096d7 Updated Spanish translation 2020-06-29 15:55:59 +02:00
Aurimas Černius
dd050d4201 Updated Lithuanian translation 2020-06-28 22:52:29 +03:00
Alberto Fanjul
8865eb6800 help: mark image as translated 2020-06-26 11:10:45 +02:00
scootergrisen
b72596f750 help: Add image: main-window.png 2020-06-26 09:51:30 +02:00
Baurzhan Muftakhidinov
131f267d01 Update Kazakh translation
(cherry picked from commit 26703cdf89e976f18a7af1804b3b56e702f61794)
2020-06-25 12:29:15 +00:00
Juan Pablo Ugarte
8311d5eb59 GladeGtkWindow: Fix CSD support
GladeWidget: make sure hidden placeholder are never serialized

https://gitlab.gnome.org/GNOME/glade/-/issues/447
2020-06-22 20:06:14 -03:00
Yuri Chornoivan
249dfb709e Update Ukrainian translation 2020-06-22 15:55:33 +00:00
scootergrisen
958f4298fe Change "Glade Interface Designer" to "Glade" 2020-06-22 15:33:15 +00:00
Adrien Plazas
337a760144 dtd: Make init-function an element, not an attribute
This makes the implementation of init-function in the DTD match both the
code (it is read as an element) and the documentation (it is documented
as an element).
2020-06-20 10:18:35 +02:00
Juan Pablo Ugarte
bbd1c3e412 GladeSignalDef: fix last gir scanner warning
Rename GSC_VERSION_CHECK to GLADE_SIGNALS_DEF_VERSION_CHECK
2020-06-19 19:39:52 -03:00
Juan Pablo Ugarte
bb626dd41d GladeWidgetAdaptor: fix gir scanner warnings
Rename all macros starting with GWA to GLADE_WIDGET_ADAPTOR
2020-06-19 19:36:52 -03:00
Juan Pablo Ugarte
265367dd7e GladeWidget: fix gir scanner warnings
Rename IS_GLADE_WIDGET_EVENT to GLADE_WIDGET_IS_EVENT
2020-06-19 19:20:05 -03:00
Juan Pablo Ugarte
0153f61097 GladeProperty: fix gir scanner warning
Rename DEPRECATED_IS_PARAM_SPEC_VALUE_ARRAY as GLADE_PROPERTY_IS_PARAM_SPEC_VALUE_ARRAY
2020-06-19 19:20:05 -03:00
Juan Pablo Ugarte
49ed23c381 Fix misc gir scanner warnings 2020-06-19 19:03:48 -03:00
Juan Pablo Ugarte
dbad3f508d GladeStandarStock, GladeStandarStockImage: fix get_type() functions for introspection
Avoid trying to register stock icons when there is no default display like when
running introspection scanner.

This prevents some really annoying warnings and should help with
https://gitlab.gnome.org/GNOME/glade/-/issues/432
2020-06-19 18:13:54 -03:00
Florentina Mușat
3361ba9788 Update Romanian translation 2020-06-19 06:19:27 +00:00
Juan Pablo Ugarte
b06e1daa43 GladeGtkListBox: fix size request issue
Remove glade_gtk_create_fixed_widget from GtkListBox support
This is proably a left over from GtkBox support code copy/paste
which was making the row have a default size.

https://gitlab.gnome.org/GNOME/glade/-/issues/446
2020-06-18 20:42:14 -03:00
Juan Pablo Ugarte
cabb5bebe3 GladeProject: show message on invalid GtkBuilder file
Show user an error dialog if he tries to open an old
libglade file.

https://gitlab.gnome.org/GNOME/glade/-/issues/389
2020-06-18 19:08:34 -03:00
Juan Pablo Ugarte
381b6683c2 GladeProperty: Do not replace - with _
Remove old libglade underscore properties naming scheme.

https://gitlab.gnome.org/GNOME/glade/-/issues/281
2020-06-18 18:43:14 -03:00
Iñigo Martínez
02da8e1c7a build: Fix va_copy check
There is a misplaced closing parenthesis in `va_copy`
check that triggers a warning in meson.

It has been fixed by placing it properly.
2020-06-18 11:06:17 -03:00
Emin Tufan Çetin
47c248efb3 Update Turkish translation 2020-06-18 11:22:45 +00:00
Yuri Chornoivan
4f24d16c6b Update Ukrainian translation 2020-06-18 05:52:51 +00:00
Yuri Chornoivan
59f70a9b65 Update Ukrainian translation 2020-06-18 05:39:34 +00:00
Juan Pablo Ugarte
f86d308586 Fix inconsistent "top-level", "top level", "toplevel" spelling in translatable strings
https://gitlab.gnome.org/GNOME/glade/-/issues/412
2020-06-17 19:59:04 -03:00
Juan Pablo Ugarte
e1be03cb11 Webkit2gtk: Fix compiler warning 2020-06-17 18:56:54 -03:00
Florentina Mușat
bc75b6762f Update Romanian translation 2020-06-17 16:26:07 +00:00
Daniel Mustieles
bf68ab06ea Updated Spanish translation 2020-06-17 13:52:44 +02:00
Yuri Chornoivan
6c3f3981a5 Update Ukrainian translation 2020-06-17 08:28:23 +00:00
Juan Pablo Ugarte
d981b9883a Webkit2gtk plugin: sandbox web view
Fix misc runtime warnings
2020-06-16 19:40:42 -03:00
Juan Pablo Ugarte
0a948e4fd3 Webkit plugin: add missing displayable values 2020-06-16 19:26:10 -03:00
Juan Pablo Ugarte
7d648e74d5 Gtk plugin: add missing displayable values 2020-06-16 19:25:50 -03:00
Juan Pablo Ugarte
b4d6b0b9bf Add workaroud to prevents Glade from crashing when loading GJS plugin on X11 backend 2020-06-16 19:03:36 -03:00
Juan Pablo Ugarte
8d4a9a3214 GladeWindow: startup cleanup
Clean up initialization of glade
Deleted unused macros
2020-06-16 19:03:36 -03:00
Yuri Chornoivan
2efa1db235 Update Ukrainian translation 2020-06-16 09:28:48 +00:00
Daniel Mustieles
72544e03a7 Updated Spanish translation 2020-06-16 09:44:39 +02:00
Juan Pablo Ugarte
b577494385 GladeScrolledWindowEditor: improve layout
Squeeze width/height properties in two columns
2020-06-15 20:00:43 -03:00
Corentin Noël
4e073c34b5 gtk: Add GtkScrolledWindow propagate-natural-width property 2020-06-15 23:13:08 +02:00
Kukuh Syafaat
78dc7434d4 Update Indonesian translation 2020-06-12 08:38:04 +00:00
Christian Kirbach
c795f5c95b Update German translation
(cherry picked from commit 3785afb1021b2f7dd3b428d27b2332be7af5f741)
2020-06-11 21:30:39 +00:00
Rafael Fontenelle
d329bccfe8 Update Brazilian Portuguese translation
(cherry picked from commit 866ea9f523973bc940d93fda4b69be094e7f355b)
2020-06-11 14:50:42 +00:00
Rafael Fontenelle
8df864f9e1 Update Brazilian Portuguese translation
(cherry picked from commit 234292fe8144eea2a2b2ff673640d37616c3834d)
2020-06-11 13:41:08 +00:00
Juan Pablo Ugarte
dfefb0d3ae Fix GValueArray deprecation warnings 2020-06-10 17:27:23 -03:00
Juan Pablo Ugarte
f5e800eca8 GladeProperty: replace deprecated macro 2020-06-10 17:27:14 -03:00
Juan Pablo Ugarte
82213adda1 Ignore deprecated function call. 2020-06-10 17:25:29 -03:00
Juan Pablo Ugarte
779d9d8c85 Tests: add python and javascript test case
Add test case to make sure both python and js plugins work
2020-06-08 21:09:14 -03:00
Juan Pablo Ugarte
c687c0c05a Python plugin: support multiple paths in env variable 2020-06-08 20:53:48 -03:00
Juan Pablo Ugarte
763aa56b2c GJS plugin: support multiple paths in env variable 2020-06-08 20:53:48 -03:00
Juan Pablo Ugarte
4647b2de0c Plugins: add documentation for GJS plugin
Add an example on how to use JavaScript objects with Glade
Improve python example
2020-06-08 20:53:41 -03:00
Juan Pablo Ugarte
a3b4c45dc3 Plugins: Added GJS plugin for JavaScript objects support 2020-06-08 17:39:38 -03:00
Juan Pablo Ugarte
dcbf051b57 Bump to development version 3.37.0
Since glade master is available as a nightly flatpak its better
to bump to development version after making a stable release.
2020-06-08 17:33:18 -03:00
Juan Pablo Ugarte
7562ed196f Fix project licence to GPL
While some parts of Glade are LGPL others are GPL making it GPL in practice.
2020-06-08 17:31:09 -03:00
Juan Pablo Ugarte
b973d72ed9 Docs: update python catalog example
Update examples to show how to set properties defined in python
at runtime.
2020-06-05 20:17:14 -03:00
Juan Pablo Ugarte
6f4fb5672f Python plugin: fix linking error
Since pygobject 3.8 we need to link with python-3.8-embed to avoid
missing symbols when loading the plugin.

Fix compiler warning
2020-06-05 20:16:05 -03:00
Juan Pablo Ugarte
ba841dbcf4 Build: Add comments about library versioning 2020-06-05 16:57:16 -03:00
Juan Pablo Ugarte
114124702e GladeProjectProperties: improve toolkit target version selection
Use a combobox instead of radio buttons to select libraries
target version because it was making the dialog too big.
2020-06-05 16:40:16 -03:00
Juan Pablo Ugarte
ae53150aa3 Webkit plugin: bump dependency to 2.28
Added webkit2gtk-4.0 targeteable library versions
2020-06-05 16:32:39 -03:00
Juan Pablo Ugarte
f774526429 GladeProjectProperties: cleanup GType declaration
Use G_DECLARE_FINAL_TYPE
2020-06-04 16:35:19 -03:00
Juan Pablo Ugarte
13ca4e0e52 Bump GTK dependency and toolkit target to 3.24 2020-06-04 16:35:17 -03:00
Juan Pablo Ugarte
9c4f774086 Misc files cleanup 2020-06-04 16:32:29 -03:00
Juan Pablo Ugarte
e8d8ae8d87 Flatpak: Add network access for survey to work
https://gitlab.gnome.org/GNOME/glade/-/issues/394
2020-06-03 19:05:01 -03:00
Iñigo Martínez
b9288f2562 build: Remove autotools
Relay on meson for build
2020-05-27 22:15:56 +02:00
Caolán McNamara
85108840f8 associate application/x-gtk-builder with glade's .desktop file
so GtkBuilder UI file open in glade on double click in nautilus

ref: https://bugs.freedesktop.org/show_bug.cgi?id=28020
2020-05-27 15:36:17 +01:00
Alberto Fanjul
9ecf25fa9b Ignore locale when saving numeric values 2020-05-27 12:06:03 +02:00
Alberto Fanjul
c1b2ecc3e6 Add a new maintainer 2020-05-27 11:57:26 +02:00
Alberto Fanjul
f669297b2a Remove cross compilation config files 2020-05-27 11:44:11 +02:00
Alberto Fanjul
6ac76ca24b Remove config for external builds 2020-05-26 17:45:44 +02:00
Florentina Mușat
c3b72f53e2 Update Romanian translation 2020-05-26 12:55:42 +00:00
Andre Klapper
6d4e2cd7b7 CONTRIBUTING.md: Replace broken git clone URL with GNOME Gitlab URL 2020-05-24 19:49:30 +02:00
Florentina Mușat
35781f7a8f Update Romanian translation 2020-05-24 10:42:06 +00:00
Alberto Fanjul
fa0489061e Add latest release info to appdata 2020-05-22 12:06:40 +02:00
Alberto Fanjul
fd9059a5f7 Ignore locale when saving numeric values 2020-05-20 14:49:40 +00:00
Daniel Mustieles
b14382e5e2 Updated Spanish translation 2020-05-20 12:07:27 +02:00
Yuri Chornoivan
13bfab8c89 Update Ukrainian translation 2020-05-20 05:32:36 +00:00
Sabri Ünal
15a67168e1 Make four buttons accessible via alt key 2020-05-19 20:36:14 +00:00
Sabri Ünal
6f71b51ea7 Remove deprecated gtk-close, gtk-open, gtk-cancel icons 2020-05-19 20:36:14 +00:00
Sabri Ünal
b93e500f35 Make Verify button translatable 2020-05-19 20:36:14 +00:00
Sabri Ünal
50545a104f Change issue reporting URL 2020-05-19 16:46:19 -03:00
Sabri Ünal
e88edcc534 Fix a typo 2020-05-19 19:30:14 +00:00
Piotr Drąg
aa9ccdf969 Update Polish translation 2020-05-17 10:51:12 +02:00
Emin Tufan Çetin
d9a52a93e9 Update Turkish translation 2020-05-16 11:26:39 +00:00
Rafael Fontenelle
3b37846eee Update Brazilian Portuguese translation
(cherry picked from commit 38a07b89846f149b70ed2d2389d1df10f8afbecb)
2020-05-14 10:40:22 +00:00
Kukuh Syafaat
0f6f27ffe9 Update Indonesian translation
(cherry picked from commit 4f0bddefe10747f85e5920947ba4aae0eee8119a)
2020-05-14 09:46:26 +00:00
Ken VanDine
b311c554d0 snap: Don't symlink media 2020-05-11 10:02:52 -04:00
Eduardo Diez Viñuela
10282ba1cc SNAP: Bump to version 3.36 2020-05-11 08:06:42 +00:00
Aurimas Černius
33cba9c858 Updated Lithuanian translation 2020-05-10 22:38:56 +03:00
Daniel Șerbănescu
2ea62b5ee2 Update Romanian translation 2020-05-09 17:37:34 +00:00
Tom Schoonjans
ce473462ed Build: use gtk-mac-integration only when creating bundle
Gtk-mac-integration was used only when creating the bundle,
So there's no need to drag it as a dependency just because the build
occurs on a macOS with a Gtk installation with Quartz backend.
2020-05-07 09:07:48 +01:00
Alberto Fanjul
ac5b9d45fa meson: library bump 2020-05-07 00:21:06 +02:00
Alberto Fanjul
1d14a4b94f autotools: Fix out of tree build 2020-05-06 22:19:13 +02:00
Alberto Fanjul
9f828d0c96 Rolling 3.36.0 2020-05-06 21:53:41 +02:00
Alberto Fanjul
fca9eb9110 Fix compilation refactor 2020-05-06 21:53:11 +02:00
Alberto Fanjul
0cbcd7a1e1 desktop: Fix rename 2020-05-06 21:53:11 +02:00
Alberto Fanjul
c74a685c65 gettext: Support 0.20 2020-05-06 21:53:11 +02:00
Daniel Mustieles
d44e266414 Updated Spanish translation 2020-04-30 12:50:20 +02:00
Anders Jonsson
2e5ce5b630 Update Swedish translation 2020-04-28 16:04:01 +00:00
Daniel Mustieles
f9a85517d1 Updated Spanish translation 2020-04-28 17:42:52 +02:00
Yuri Chornoivan
9ee5cbf525 Update Ukrainian translation 2020-04-25 06:29:55 +00:00
Yuri Chornoivan
cfae199114 Update Ukrainian translation 2020-03-31 06:56:29 +00:00
Yuri Chornoivan
51a5ec5b72 Update Ukrainian translation
(cherry picked from commit fbf07bad3ba7d2e49abbe797c04b28fc7df8b2af)
2020-03-30 17:51:31 +00:00
Yuri Chornoivan
90e942ce80 Update Ukrainian translation 2020-03-25 06:33:34 +00:00
Yuri Chornoivan
b8b1b0fa7b Fix minor typos 2020-03-22 08:56:29 +02:00
Yuri Chornoivan
c3daab8066 Update Ukrainian translation
(cherry picked from commit de4136beaf407e5909c38c28bd21e3ab1598f5df)
2020-03-21 18:55:55 +00:00
Yuri Chornoivan
33287bbf32 Update Ukrainian translation
(cherry picked from commit cbc0773296f8d8fd6db46fe089164ada5aecbe04)
2020-03-18 11:30:10 +00:00
scootergrisen
292349fc3e Add missing space in "the<application>" 2020-03-16 15:55:50 +00:00
Andre Klapper
0572a96264 Fix broken markup in Occitan UI translation 2020-03-10 15:05:24 +01:00
Nathan Follens
c5ef0b27cc Update Dutch translation
(cherry picked from commit 423bb42b9bd33c10d5966bd00b39e8cee3abc5b1)
2020-03-07 21:44:20 +00:00
Claude Paroz
f52115eb21 Update French translation 2020-03-04 19:13:32 +00:00
Andre Klapper
d836b918ee Fix broken markup in Hungarian UI translation 2020-03-01 18:17:13 +01:00
Changwoo Ryu
11884ca0c9 Update Korean translation 2020-03-01 09:19:05 +00:00
Piotr Drąg
63403edfe7 Update Polish translation 2020-02-20 14:34:40 +01:00
Piotr Drąg
622c958aeb help: Update HELP_LINGUAS 2020-02-20 14:24:03 +01:00
Bruce Cowan
eb1f817056 Update British English translation 2020-02-19 18:50:18 +00:00
Balázs Meskó
1866928c31 Update Hungarian translation 2020-02-17 21:18:05 +00:00
Asier Sarasua Garmendia
47156544dc Update Basque translation 2020-02-15 12:28:12 +00:00
Fran Dieguez
0cfa263062 Update Galician translation 2020-02-14 21:35:07 +00:00
Ask Hjorth Larsen
42f8784ae0 Updated Danish translation 2020-02-13 19:26:55 +01:00
Sabri Ünal
35e61ae1dd Update Turkish translation 2020-02-12 18:04:39 +00:00
Anders Jonsson
ba4a4b78d8 Update Swedish translation 2020-02-08 10:59:44 +00:00
Aurimas Černius
c548e57328 Updated Lithuanian translation 2020-02-05 22:58:10 +02:00
Umarzuki Bin Mochlis Moktar
1b5c7bdbc9 Update Malay translation 2020-01-27 12:30:57 +00:00
Anders Jonsson
126b2455ee Update Swedish translation 2020-01-21 21:09:16 +00:00
Yi-Jyun Pan
06bd1f1210 Update Chinese (Taiwan) translation 2020-01-21 14:57:03 +00:00
Ricardo Silva Veloso
ea17b1aebb Update Brazilian Portuguese translation 2020-01-14 20:29:51 +00:00
Sucipto
b83f7c648c Update Indonesian translation 2020-01-14 06:30:47 +00:00
Christian Hergert
a5c583ec48 widget: canonicalize support-warning property name
This has been causing issues in Builder recently, preventing users from
opening some projects. It appears related to GLib tightening restrictions
on property names in GNOME/glib@30e630c9df.

Fixes #403
2020-01-13 20:11:18 -08:00
Daniel Mustieles
8689fbaf68 Updated Spanish translation 2020-01-07 13:20:00 +01:00
Andre Klapper
3fbdf59395 help: Fix broken Feedback link in 'About' section 2020-01-02 23:40:42 +01:00
Jordi Mas
5c493ef9be Update Catalan translation 2019-12-27 18:02:09 +01:00
Fran Dieguez
5fc661e585 Update Galician translation 2019-12-27 16:54:59 +00:00
Fran Dieguez
008b7a90d5 Update Galician translation 2019-12-27 15:25:39 +00:00
Fran Dieguez
c1f6b23f7f Update Galician translation 2019-12-25 03:50:03 +00:00
Rafael Fontenelle
213447c582 Update Brazilian Portuguese translation 2019-12-14 19:05:40 +00:00
Yi-Jyun Pan
82e02ac048 Update Chinese (Taiwan) translation 2019-11-27 15:24:46 +00:00
Kukuh Syafaat
aaea36892e Add Indonesian translation 2019-11-11 15:27:29 +00:00
Bilal Elmoussaoui
ded01dd7e6 CI: publish nightlies
This uses the shared ci template
see https://gitlab.gnome.org/GNOME/Initiatives/wikis/DevOps-with-Flatpak
2019-11-06 12:37:00 +00:00
Victor Toso
44b197fd44 tests: Include back GtkTreeViewColumn
This was removed in ccb3a8c7dcbd7bd for a release due some criticals
which are not happening anymore.

Also fixes:
 > ../tests/add-child.c:156:1: warning: ‘assert_column_parented’ defined
 > but not used [-Wunused-function]
 >   156 | assert_column_parented (GObject *parent,
 >       | ^~~~~~~~~~~~~~~~~~~~~~
2019-11-06 11:32:44 +01:00
Victor Toso
5f0624c8dc gtk+: properly cast to avoid warnings
In order to avoid:
 > ../plugins/gtk+/glade-gtk-list-box.c:235:29: warning: passing
 > argument 2 of ‘glade_project_is_selected’ from incompatible
 > pointer type [-Wincompatible-pointer-types]
 >
 >   235 |                   (project, child) == FALSE)
 >       |                             ^~~~~
 >       |                             |
 >       |                             GtkWidget * {aka struct _GtkWidget *}
 >
 > ../plugins/gtk+/glade-gtk-list-box.c:236:55: warning: passing
 > argument 2 of ‘glade_project_selection_set’ from incompatible
 > pointer type [-Wincompatible-pointer-types]
 >
 >   236 |                 glade_project_selection_set (project, child, FALSE);
 >       |                                                       ^~~~~
 >       |                                                       |
 >       |                                                       GtkWidget * {aka struct _GtkWidget *}
2019-11-06 11:24:19 +01:00
Victor Toso
21551ac316 gtk+: workaround truncation warning by being safer
Truncation was somewhat intended as column_name can fit 255 bytes plus
the null termination. Still, there is an easy workaround which is to
ensure that buffer is null terminated and then use strcpy. Should be a
bit safer and faster than strncpy().

 > ../plugins/gtk+/glade-gtk-list-store.c:492:13: warning: ‘strncpy’
 > output may be truncated copying 255 bytes from a string of length
 > 255 [-Wstringop-truncation]
 >
 >  492 |             strncpy (column_name, buffer, 255);
 >      |             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
2019-11-06 11:10:40 +01:00
Victor Toso
a554b9602d gladeui: remove unused type_func variable
Added in a4cd9074b6e59
2019-11-06 09:57:52 +01:00
Daniel Mustieles
e319514cdf Updated Spanish translation 2019-10-10 13:55:29 +02:00
Corentin Noël
4f3262627d Add missing file to POTFILES 2019-10-04 17:19:22 +02:00
Corentin Noël
a4cd9074b6 gladeui: Ensure that we write the "type-func" property when a get-type-function is defined in the catalog 2019-10-04 14:07:31 +00:00
Corentin Noël
242364f80d Allow to specify placeholder to GtkListBox 2019-10-04 14:02:26 +00:00
Corentin Noël
3512d2eb85 gtk+: Allow to use GtkResponseType with GtkDialog and GtkInfobar buttons 2019-10-04 13:59:39 +00:00
Corentin Noël
ddcb64d2e5 gladeui: Change the boolean parsing logic to be the same as Gtk
Avoids false positive
2019-10-04 13:52:58 +00:00
Bilal Elmoussaoui
7e20264864 Appdata: update app-id 2019-10-01 07:49:18 +00:00
Corentin Noël
5834546249 Update FSF address
Fixes #145
2019-10-01 07:47:06 +00:00
Heather Ellsworth
8ef04e32db snap: Update yaml to use GNOME extension 2019-09-18 14:59:45 +00:00
Corentin Noël
bf550e237c gladeui: Modernize GladeSignalEditor codebase
Use G_DECLARE_DERIVABLE_TYPE and friends
2019-09-16 16:05:26 +02:00
Bilal Elmoussaoui
a45ec94349 RDNN appdata & desktop file
Rename the appdata file & desktop file to follow the new freedesktop standards
2019-09-13 13:33:03 +00:00
Corentin Noël
89acf1b6ca gtk+: Add homogeneous property to GtkStackSwitcher 2019-09-13 13:32:10 +00:00
Bilal Elmoussaoui
3b00bc8768 Flatpak: remove uneeded options 2019-09-13 13:20:09 +00:00
Corentin Noël
58c737af2a gladeui: Fix wrong pointer convertion in GladeDesignView
Also use g_assert in static functions to always ensure that we're getting the right type.

GNOME Builder is using it like this itself and it allows to find mistakes faster.

It can also be disabled for release builds by defining G_DISABLE_ASSERT
2019-09-13 13:06:54 +00:00
Corentin Noël
6054540957 gtk+: Provide Gtk 3.22 properties for GtkScrolledWindow 2019-09-13 13:06:30 +00:00
Corentin Noël
c5d4c4eb22 gtk+: Add missing 3.22 enum/flag values 2019-09-11 19:36:13 +00:00
Corentin Noël
f0a539093a gladeui: Modernize GladeWidgetAdaptor definition 2019-09-11 19:20:06 +00:00
Corentin Noël
61516306c7 gtk+: Keep internationalization context in Atk properties
Fixes https://gitlab.gnome.org/GNOME/glade/issues/356
2019-09-11 19:16:41 +00:00
Corentin Noël
4219ca120d gladeui: Plug tiny leak on Drag & Drop 2019-09-10 16:21:26 +02:00
Balázs Úr
1ac86acf57 Update Hungarian translation 2019-09-09 05:26:03 +00:00
Rafael Fontenelle
8b610fc28c Update Brazilian Portuguese translation
(cherry picked from commit 4146f4565cde66ab0c289af1e4d14668a021a83c)
2019-09-09 00:14:42 +00:00
Alexandre Franke
283f286299 Update French translation 2019-09-08 11:17:08 +00:00
Corentin Noël
903bab00bc gladeui: Fix crash on drag-n-drop
The arguments of on_source_drag_end were mismatched
2019-09-04 10:01:22 +00:00
Corentin Noël
2d276eaed5 gladeui: fix several tiny memory leaks found with valgrind 2019-09-03 18:13:02 +00:00
Alberto Fanjul
216506aded Update mail lists 2019-09-01 05:09:51 +02:00
Alberto Fanjul
4730383d97 Add new maintainer 2019-09-01 05:02:19 +02:00
Roger
ff86575faf Convert the README to markdown 2019-09-01 01:27:15 +00:00
Corentin Noël
08fe3669ab Make it easier to track GladeXML elements and be GObject Introspection friendly by registering boxed types 2019-08-29 15:56:16 +00:00
Corentin Noël
12c3fc1986 gladeui: Replace the last occurences of GladeWidgetClass with GladeWidgetAdaptor in the comments 2019-08-20 18:58:15 +00:00
Corentin Noël
e5f96709f9 gladeui: Use G_DECLARE_FINAL_TYPE for GladeObjectStub 2019-08-20 18:58:15 +00:00
Corentin Noël
c2d07355a6 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeNamedIconChooserDialog 2019-08-20 18:58:15 +00:00
Corentin Noël
b3af287176 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeInspector 2019-08-20 18:58:15 +00:00
Corentin Noël
d7a2af140c gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeEditorProperty
Also adapt the subclassing macro and the subclasses and make it easier to read
2019-08-20 18:58:15 +00:00
Corentin Noël
2694a8fd9a gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeEditor 2019-08-20 18:58:15 +00:00
Corentin Noël
2b84518c84 gladeui: Use G_DECLARE_INTERFACE for GladeEditable 2019-08-20 18:58:15 +00:00
Corentin Noël
80283c9851 gladeui: Use G_DECLARE_INTERFACE for GladeDrag 2019-08-20 18:58:15 +00:00
Corentin Noël
f5f5001329 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeDesignView 2019-08-20 18:58:15 +00:00
Corentin Noël
847c50d3e7 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeDesignLayout 2019-08-20 18:58:15 +00:00
Corentin Noël
dd8bbc15f1 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeCommand
Also adapt the internal subclasses and make it easier to read
2019-08-20 18:58:15 +00:00
Corentin Noël
e80c486f68 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeClipboard 2019-08-20 18:58:15 +00:00
Corentin Noël
138dcbccd1 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeCellRendererIcon 2019-08-20 18:58:15 +00:00
Corentin Noël
567f8858ad gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeBaseEditor 2019-08-20 18:58:15 +00:00
Corentin Noël
df6d47f52b gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeApp 2019-08-20 18:58:15 +00:00
Corentin Noël
1b1ffac4ec gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeAdaptorChooserWidget 2019-08-20 18:58:15 +00:00
Piotr Drąg
1fa027ed94 Update Polish translation 2019-08-20 19:39:34 +02:00
Aurimas Černius
7ccfe7fe25 Updated Lithuanian translation 2019-08-19 22:31:34 +03:00
Florentina Mușat
d98f4880de Update Romanian translation 2019-08-18 12:22:13 +00:00
Marek Černocký
736039f426 Updated Czech translation 2019-08-16 18:57:44 +02:00
Marek Černocký
dfe28ac746 Updated Czech translation 2019-08-16 18:55:44 +02:00
Corentin Noël
5b8a5a4824 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeEditorSkeleton 2019-08-15 21:32:50 +00:00
Corentin Noël
a82d4c0451 gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeEditorTable 2019-08-15 21:32:50 +00:00
Daniel Șerbănescu
e826a25d66 Update Romanian translation
(cherry picked from commit 324f738505ecdca896c6986760ba1a115df2da32)
2019-08-15 18:32:09 +00:00
Daniel Șerbănescu
a77a6e9932 Update Romanian translation
(cherry picked from commit 14aba678126f122097f63964edee4e90ee3773af)
2019-08-15 13:12:07 +00:00
Daniel Șerbănescu
c59d40a142 Update Romanian translation 2019-08-15 08:26:13 +00:00
Asier Sarasua Garmendia
4348034b2e Update Basque translation 2019-08-15 07:43:34 +00:00
Bruce Cowan
0f6cca5008 Update British English translation 2019-08-13 21:13:39 +00:00
Alberto Fanjul
23b9b9fc4a dnd: Enable Drag&Drop on wayland 2019-08-06 05:22:12 +02:00
Christian Hergert
143ab6603e gladeui: remove implicit cast in assignment
It's considered an anti-pattern in the GNOME code-base's now to use
implicity asignment through the void* cast in g_object_ref, as it now
propagates the type of param0 to the return type.

This fixes that with an explicit cast before we try to ref the object.
2019-08-05 15:01:55 -07:00
Christian Hergert
aa2ee2e665 build: remove G_CONST_RETURN usage 2019-08-05 15:01:55 -07:00
Christian Hergert
1f70884b35 gladeui: ignore various GParameter deprecations
These are used in various public API but we don't need to warn about them
because GLib warnings will be in effect by the consumers.
2019-08-05 15:01:50 -07:00
Noel Grandin
7a630148a2 Fix on debug traces after rename GladePropertyClass to GladePropertyDef 2019-08-04 21:11:46 +00:00
Alberto Fanjul
8170777f26 meson: Activate enable-debug variables 2019-08-04 21:11:46 +00:00
Corentin Noël
69f1d458ab Prevent dragging an ancestor inside a child 2019-08-04 21:10:57 +00:00
Asier Sarasua Garmendia
b585bac049 Update Basque translation 2019-07-30 15:14:43 +00:00
Rafael Fontenelle
e74e881717 Update Brazilian Portuguese translation 2019-07-22 04:25:06 +00:00
James Westman
db35c6f1b6 GladePopup: Clear add item when adding as toplevel 2019-07-16 03:41:09 +02:00
James Westman
58285e64e3 GtkImage: Fix icon size being reset
When you reloaded a file or changed the image type, the icon size was
reset (not in the sidebar, but in the editor).
2019-07-15 14:34:45 -05:00
Kukuh Syafaat
9f4e57a0df Update Indonesian translation 2019-07-08 08:00:24 +00:00
Iñigo Martínez
4924be88dc build: Fix OSX support in meson
This modifies meson to fix dylibs loading in OSX support following
dde46cbd commit.
2019-07-02 10:04:51 +00:00
Iñigo Martínez
85c40c1510 build: Do not use a system variable only for Windows
Glade is built in multiple systems and `Windows` is not the only
system that needs specific commands.

Change the `glade_windows` variable to hold the system value.
2019-07-02 10:04:51 +00:00
TingPing
27c2286bd9 Fix loading dylibs on OSX 2019-07-02 10:04:51 +00:00
Daniel Mustieles
258a7dde2f Updated Spanish translation 2019-07-02 11:56:42 +02:00
Veerasamy Sevagen
8a18085273 Set the "About Dialogue" as modal 2019-07-01 11:51:03 +00:00
Corentin Noël
453fc9dd34 Fix split sentense in GladeProject 2019-06-27 10:26:52 +00:00
Daniel Mustieles
b5e5da2d5b Updated Spanish translation 2019-06-26 11:00:47 +02:00
Veerasamy Sevagen
487c29824a Adding "Glade" to "About" section.
The reason for this change is to make it consistent with the other applications.
2019-06-25 16:10:32 +00:00
Corentin Noël
023c2e6829 Respect the Glade namespace for macros and defines 2019-06-21 10:21:32 +00:00
Daniel Mustieles
3628e8f10f Updated Spanish translation 2019-06-21 10:03:51 +02:00
Daniel Mustieles
a904a9df25 Updated Spanish translation 2019-06-19 09:57:10 +02:00
Piotr Drąg
f439f15787 Update POTFILES.in 2019-06-18 19:10:20 +02:00
Corentin Noël
cb31354029 Rename *Klass to *Class as there are no name collision anymore 2019-06-18 11:19:07 +00:00
Corentin Noël
c5f7174454 Fix two memory leaks discovered with valgrind 2019-06-18 11:51:11 +02:00
Corentin Noël
11367214b3 GladeSignalDef: fix documentation for glade_signal_def_set_deprecated 2019-06-18 10:22:02 +02:00
Corentin Noël
3fabe72401 Rename GWActionClass to GladeWidgetActionDef to use the right namespace 2019-06-18 07:35:25 +00:00
Corentin Noël
a543e99069 Rename GladePropertyClass to GladePropertyDef and declare it as boxed 2019-06-18 07:31:45 +00:00
Corentin Noël
91a8b096a7 Rename GladeSignalClass to GladeSignalDef and declare it as boxed 2019-06-14 16:36:43 +00:00
Corentin Noël
00b3b7fa29 Create GladeSettings to hold the settings instead of using a Gtk widget for holding it
Avoids having a GladePreferences around when it's not always necessary.
2019-06-09 20:28:56 +02:00
Corentin Noël
fcdfc12290 Add GDK_VERSION_MIN_REQUIRED
It silences many warnings with GTK when we are supposed to use some deprecated methods by design
2019-06-09 20:16:27 +02:00
Corentin Noël
1980767aae Utils: get the absolute path but avoid accessing it
It's not working on Flatpak
2019-06-09 20:16:27 +02:00
Corentin Noël
b108afa29b Fix several compiler warnings 2019-06-09 20:16:27 +02:00
Corentin Noël
4c280cce03 Replace some functions by Gtk 3.22 ones
And reduce the amount of deprecation warnings
2019-06-09 18:09:49 +00:00
Corentin Noël
3235d479f4 GladeSignalClass: rename glade_signal_class_get_type 2019-06-09 19:23:57 +02:00
Corentin Noël
b115fcb95d Allow to use GtkFileChooserNative 2019-06-07 01:06:00 +02:00
Balázs Meskó
b024d4fdf5 Update Hungarian translation 2019-06-01 10:46:17 +00:00
Corentin Noël
0c9fd3721c GladeProperty: Keep the bind-source, bind-property and bind-flags elements
It is not exposed in the UI for now.
2019-05-31 07:55:34 +00:00
Ask Hjorth Larsen
b7f9c17e46 Updated Danish translation 2019-05-27 18:41:52 +02:00
Corentin Noël
f46af86c6e Couple of fixes for memory leaks found with valgrind
Most of them are unfreed string and missed GList elements.
2019-05-21 08:26:39 +00:00
Asier Sarasua Garmendia
55f03589e9 Update Basque translation 2019-05-11 08:37:59 +00:00
Corentin Noël
e635c29d92 GtkLinkButton: allow to edit the label 2019-05-02 21:56:46 +02:00
Daniel Mustieles
cd662a422c Updated Spanish translation 2019-04-23 10:22:53 +02:00
Anders Jonsson
103192e038 Update Swedish translation 2019-04-10 16:02:39 +00:00
Marek Černocký
767719243a Updated Czech translation 2019-04-10 16:10:09 +02:00
Ask Hjorth Larsen
04e469ec93 Updated Danish translation 2019-04-08 20:57:15 +02:00
Balázs Úr
58b8e5fefd Update Hungarian translation 2019-04-07 20:06:15 +00:00
Mario Blättermann
ee109a4c22 Update German translation
(cherry picked from commit afa84db7cd6ce4ed0c87b2c19fdaead7141fa209)
2019-04-07 15:23:14 +00:00
Ask Hjorth Larsen
d4cc46a0d5 Updated Danish translation 2019-04-07 03:43:43 +02:00
Piotr Drąg
b85c202d70 Update Polish translation 2019-04-06 16:19:05 +02:00
Andre Klapper
994f4ca638 help: Update localized screenshots for 3.22 2019-04-06 11:53:51 +02:00
Andre Klapper
db0a1f205c help: Update screenshot for 3.22 2019-04-06 11:51:27 +02:00
Andre Klapper
ef77eb8320 help: Remove outdated localized screenshots far away from the current UI 2019-04-06 11:46:46 +02:00
Asier Sarasua Garmendia
cdc66846b0 Update Basque translation
(cherry picked from commit 8e27765cbae65b9fa31fc594f10c0aa65a58e9e5)
2019-04-05 16:53:17 +00:00
Corentin Noël
8ecbd08380 gladeui: Fix several memory leaks with GladeWidgetAdaptor 2019-04-02 07:15:50 +02:00
Corentin Noël
812cb3cd35 gladeui: Fix leak of create_type in GladePropertyClass 2019-04-01 23:38:41 +02:00
Corentin Noël
e7f0a4d17a gladeui: fix memory leak in GWActionClass 2019-04-01 23:17:23 +02:00
Corentin Noël
e1af8a18b2 introspection: Add many annotations to sources 2019-04-01 23:11:24 +02:00
tallero
fdce8f8d70 No wide handles in center_paned and left_paned 2019-03-31 08:16:34 +00:00
Iñigo Martínez
6a2f50c3c9 flatpak: Set meson as buildsystem
Following glade's port to meson the build system in the flatpak
manifest has been also been moved to meson.

The CI-built has also been changed to use it.
2019-03-30 21:15:44 +01:00
Iñigo Martínez
79bd7e5a84 build: Port to meson build system
meson is a build system focused on speed an ease of use, which
helps speeding up the software development.

meson build system has been added along with autotools.
2019-03-30 21:15:41 +01:00
Corentin Noël
9b22a02510 gtk+: Add deprecated flag to GtkButton and GtkImage stock properties 2019-03-30 10:53:21 +00:00
Corentin Noël
c19d9b7f8d doc: remove missing xml files 2019-03-30 11:49:17 +01:00
Corentin Noël
e472c542e6 doc: Modernize the documentation 2019-03-30 10:20:13 +01:00
Corentin Noël
e7043dbffa docs: Make some changes to fix warnings with the documentation 2019-03-30 10:20:13 +01:00
Alberto Fanjul
e4ce50229e Add metadata information about releases 2019-03-30 10:18:23 +01:00
Iñigo Martínez
71a9ecfc15 i18n: Do not use input file for not translated files
Both `gtk+` and `webkit2gtk` plugins use input files that are not
actually translated. These input files has been renamed to their
final names.
2019-03-30 10:18:01 +01:00
Martin Blanchard
0d2f18b912 Fix xgettext string extraction for catalogs 2019-03-14 21:43:02 +00:00
Jeremy Bicha
7726c09089 snap: update for icon filename changes 2019-03-14 06:43:20 -04:00
Piotr Drąg
15d9d752d4 Add translator comments to the .desktop file
Also remove an obsolete entry that gettext can’t deal with.
2019-03-14 07:54:08 +00:00
Piotr Drąg
d34083f3ff Update POTFILES.skip 2019-03-14 07:50:45 +00:00
Piotr Drąg
39120cba3b Update POTFILES.skip 2019-03-14 07:44:35 +00:00
Martin Blanchard
ecf4deab44 gladeui-2.0.pc: Data paths relative to datadir
Having data directory paths, like catalogdir, being relative to datadir
allows to resolve them with an arbitrary prefix. Packages installing
Glade catalogs may use this to resolve catalogdir using their prefix.

https://gitlab.gnome.org/GNOME/glade/issues/353
2019-03-14 03:00:55 +01:00
Jakub Steiner
7d62cef1b5 icon: update app icon
- GNOME 3.32 redesign of app icons.
  See https://gitlab.gnome.org/GNOME/Initiatives/issues/2
  for more info.

/label ~"9. Initiative: AppIconRedesign"
2019-03-14 02:37:46 +01:00
Will Thompson
2dbaeef0e8 GladeProject: escape markup in parser errors
If you try to load a non-XML file, such as Glade's own README, the
parser error contains something like this:

    Start tag expected, '<' not found

glade_util_ui_message() treats the supplied message as markup; so the
literal < in the error message trips it up:

    Gtk-WARNING **: Failed to set text 'Error parsing file '/home/wjt/src/gnome/glade/README' on line 1
    Start tag expected, '<' not found
    ' from markup due to error parsing markup: Error on line 2 char 30: Odd character 'f', expected a '=' after attribute name 'not' of element '''

To fix this, escape the message before passing it to
glade_util_ui_message().
2019-03-13 23:54:16 +00:00
Javier Jardón
8341cf78bc Use autoreconf instead deprecated gnome-common
See https://wiki.gnome.org/Projects/GnomeCommon/Migration
2019-03-14 00:21:35 +01:00
Martin Blanchard
d857fc2fd0 Stop defaulting missing images to deprecated stock icons
GTK_STOCK_MISSING_IMAGE/"gtk-missing-image" has been deprecated for a
while now and Adwaita does not ship it anymore under that name. Better
prefer the new "image-missing" replacement.
2019-03-12 00:05:49 +00:00
Alberto Fanjul
93d8894844 ci: Enable test suite 2019-03-10 18:55:28 +00:00
Niels De Graef
2c460bd113 Migrate from intltool to gettext
Recent gettext version can extract and merge back strings from and to
various file formats, no need for  intltool anymore.

https://wiki.gnome.org/Initiatives/GnomeGoals/GettextMigration

https://gitlab.gnome.org/GNOME/glade/issues/279
2019-03-10 18:55:28 +00:00
Nathan Follens
39676dda2d Update Dutch translation
(cherry picked from commit 31bce15d01c3625626434c53b27992b46a72dc8a)
2019-03-10 13:01:19 +00:00
Changwoo Ryu
862963347b Update Korean translation 2019-02-26 07:17:53 +00:00
Ask Hjorth Larsen
1e7e376d67 Updated Danish translation 2019-02-24 14:27:51 +01:00
Ken VanDine
2b2386c659 snap: Use a version-script to generate a friendlier version string and
specify dbus slot for gtkapplication registration
2019-02-11 12:57:20 -05:00
Jordi Mas
55778a4a7d Update Catalan translation 2019-02-10 15:28:25 +01:00
Marek Cernocky
f6bd47b093 Updated Czech translation 2019-02-07 10:19:12 +01:00
Jeremy Bicha
18214372fa snap: switch to core18 2019-02-05 18:48:59 -05:00
Ken VanDine
9bb50acb43 packaging: Add snap packaging
Adds snap packaging

https://bugzilla.gnome.org/show_bug.cgi?id=790394
2019-02-05 14:36:12 -08:00
Sabri Ünal
f54b07fa97 Update Turkish translation 2019-02-05 14:50:53 +00:00
Kukuh Syafaat
2aa752d7ab Update Indonesian translation 2019-02-02 15:48:42 +00:00
Fran Dieguez
1d58112ba8 Update Galician translation 2019-01-28 23:18:42 +00:00
Balázs Úr
9b1f9c0a8a Update Hungarian translation 2019-01-27 17:19:41 +00:00
Balázs Úr
0905229713 Update Hungarian translation 2019-01-26 21:57:51 +00:00
Alexandre Franke
5a2d74f8c8 Update French translation 2019-01-24 11:49:46 +00:00
Alexandre Franke
00645a5698 Update French translation 2019-01-24 11:48:51 +00:00
Daniel Mustieles
1a07a1ba52 Updated Spanish translation 2019-01-22 15:44:02 +01:00
Piotr Drąg
12e0cc93ee Update Polish translation 2019-01-17 12:11:15 +01:00
Piotr Drąg
09d1426155 Update Polish translation 2019-01-17 12:00:29 +01:00
Rico Tzschichholz
a5ff472fde gladeui: Fix GIR package reference and add c-include 2019-01-13 15:00:19 +01:00
Guido Günther
7d85967339 dtd: Add several new elements
This allows us to validate the libhandy dtd again:

    https://source.puri.sm/Librem5/libhandy/merge_requests/135/diffs
2019-01-07 21:24:43 +00:00
Anders Jonsson
29e23e5214 Update Swedish translation 2018-12-28 10:28:31 +00:00
Anders Jonsson
f6a2606996 Update Swedish translation 2018-12-23 20:22:13 +00:00
Daniel Mustieles
daeb85c9bd Updated Spanish translation 2018-12-04 16:15:47 +01:00
Juan Pablo Ugarte
363fd7839a Add initial implementation of Automatic Templates 2018-10-30 11:10:06 -07:00
Matej Urbančič
2ddc72f728 Updated Slovenian translation 2018-10-25 21:35:14 +02:00
Juan Pablo Ugarte
08bf49a491 GladeIntro: fix regresion in find_widget_forall() 2018-10-16 16:09:43 -07:00
Juan Pablo Ugarte
949ee16435 GladeProject: add handler signals
Add add, remove, change and activate handler signals.

These signals can be used to easily track signal changes in a project
instead of connecting callbacks to every widget.
2018-10-16 11:30:17 -07:00
Juan Pablo Ugarte
8553bf0346 GladeEditor: expose signal editor widget as a property 2018-10-16 11:30:14 -07:00
Ask Hjorth Larsen
b8db53c94e Updated Danish translation 2018-09-24 13:10:46 +02:00
Matej Urbančič
db79d55c02 Updated Slovenian translation 2018-09-17 18:29:53 +02:00
Andre Klapper
bfd3020f66 GNOME Bugzilla has been replaced by GNOME Gitlab 2018-09-15 12:34:22 +02:00
Daniel Mustieles
3e43e42f7e Updated Spanish translation 2018-09-05 11:21:45 +02:00
Anders Jonsson
91b6501b7b Update Swedish translation 2018-09-02 18:31:58 +00:00
Ask Hjorth Larsen
e6ab26a126 Updated Danish translation 2018-09-01 18:46:08 +02:00
Rūdolfs Mazurs
d4c5ce91cb Update Latvian translation 2018-08-31 16:44:08 +00:00
Balázs Meskó
3254723703 Update Hungarian translation 2018-08-31 13:01:34 +00:00
Fran Dieguez
1e44a1053c Update Galician translation 2018-08-29 23:41:43 +00:00
Marek Cernocky
5dfcc73b5d Updated Czech translation 2018-08-29 07:43:52 +02:00
Changwoo Ryu
15404992f7 Update Korean translation 2018-08-28 15:55:12 +00:00
Milo Casagrande
8f188f807c Update Italian translation 2018-08-28 08:14:08 +00:00
Kukuh Syafaat
db243b58ef Update Indonesian translation 2018-08-26 13:52:21 +00:00
Baurzhan Muftakhidinov
5ef2da7cb9 Update Kazakh translation 2018-08-25 17:30:25 +00:00
Claude Paroz
8da9d7a429 Updated French translation 2018-08-22 12:23:32 +02:00
Daniel Șerbănescu
2f946d6ff3 Update Romanian translation 2018-08-20 18:25:37 +00:00
Ricardo Silva Veloso
43734fae45 Update Brazilian Portuguese translation 2018-08-16 20:19:27 +00:00
Aurimas Černius
d92387fe87 Updated Lithuanian translation 2018-08-16 23:15:26 +03:00
Tim Sabsch
ce3780e609 Update German translation 2018-08-16 13:05:56 +00:00
Emin Tufan Çetin
71c587982d Update Turkish translation 2018-08-14 08:47:39 +00:00
Piotr Drąg
85e80366d6 Update Polish translation 2018-08-12 19:35:29 +02:00
Emin Tufan Çetin
59a6a4659c Update Turkish translation 2018-08-12 10:18:32 +00:00
Juan Pablo Ugarte
b237bae2e8 GladeIntro: use name and buildable name to find widgets 2018-08-11 18:51:24 -03:00
Juan Pablo Ugarte
159a2bab02 GladeWindow: simplify pointer mode actions
Replace all pointer mode actions (select, drag, margin and align)
with a new action "pointer-mode" with a mode parameter
2018-08-11 18:51:24 -03:00
Juan Pablo Ugarte
a0d1b58eee GladeWindow: move actions to GtkApplication 2018-08-11 18:51:24 -03:00
Aurimas Černius
f787130c5f Updated Lithuanian translation 2018-08-11 21:55:49 +03:00
Piotr Drąg
cfa6d6c9bf Update Polish translation 2018-08-11 20:11:48 +02:00
Matej Urbančič
fc71f326f9 Updated Slovenian translation 2018-08-09 20:12:51 +02:00
Juan Pablo Ugarte
5f08b3a8ed GladeEPropAttrs: use sane adjustment values for size and scale attrs
Closes issue #324 "Spin Button Increment of Text Scale Attribute So Over"
2018-08-08 19:51:41 -03:00
Juan Pablo Ugarte
493e0c231d GtkActionable: add action-target property 2018-08-08 19:51:41 -03:00
Mario Blättermann
9ead37a927 Update German translation 2018-08-05 10:10:45 +00:00
Piotr Drąg
edf808ab94 Update Polish translation 2018-08-04 20:34:25 +02:00
Matej Urbančič
50b9898be2 Updated Slovenian translation 2018-08-03 17:21:28 +02:00
Juan Pablo Ugarte
0b1d4e99e1 Fix tab/space identation 2018-08-02 19:27:10 -03:00
Juan Pablo Ugarte
583e024ef8 GladeWidgetAdaptor: add glade_widget_adaptor_get_display_name() 2018-08-02 14:11:08 -03:00
Juan Pablo Ugarte
4b3c2080f0 GladeWindow: port to GtkApplication
This will let us export actions on DBus as an entry point for
integration with other IDE like Builder.
2018-08-02 13:31:48 -03:00
Juan Pablo Ugarte
d666d334bd Remove GladeInstantiable prefix from UI 2018-08-02 13:27:13 -03:00
Juan Pablo Ugarte
c2971c6713 GladeGtkBin: add initial support for GtkBin abstract class 2018-08-02 13:27:09 -03:00
Juan Pablo Ugarte
f6bee53a3d GladeWidget: add support for abstract classes
In order to support templates with abstract parents glade_widget_read()
will use a class with the GladeInstantiable prefix. So for a GtkBin
template it  will use GladeInstantiableGtkBin which of course has to
derive from GtkBin.

In turn glade_widget_write() will ommit GladeInstantiable prefix.
2018-08-02 13:26:59 -03:00
Carlos Soriano
44577c829a widget-editor: Replace margin right/left for end/start
They have been deprecated for some time now and break RTL languages.

This works implements margin-end and margin-start and deprecates
margin-left and margin-start.

All four properties are shown to be able to upgrade from previous gtk3
versions, ideally this will be gone when Glade moves to gtk4.

Closes https://gitlab.gnome.org/GNOME/glade/issues/319
2018-08-01 13:43:27 +00:00
Daniel Mustieles
4e9893dfcd Updated Spanish translation 2018-07-31 12:40:07 +02:00
Juan Pablo Ugarte
d866a0870e GladeModelButton: improve editor 2018-07-30 21:04:51 -03:00
Juan Pablo Ugarte
2c55455387 GladeEditorProperty, GladePropertyClass, GladeWidgetAdaptor:
Add GVariant property type support

Closes issue #303
2018-07-30 20:56:18 -03:00
Juan Pablo Ugarte
4c3cbe3591 GladeModelButton: enable icon/iconic properties 2018-07-30 20:53:19 -03:00
Juan Pablo Ugarte
815cc6a050 Gtk plugin: add support for GFileIcon 2018-07-30 17:18:15 -03:00
Juan Pablo Ugarte
bc0e26c1d0 Add initial support for GFile type properties 2018-07-26 20:16:28 -03:00
Juan Pablo Ugarte
ad26702a7c Bump Gtk required version to 3.22 2018-07-26 17:24:55 -03:00
Juan Pablo Ugarte
225f6f3969 GladeGtkBox: improve children sort function
If the are two children with the same position, sort alphabetically by name.
2018-07-26 17:00:27 -03:00
Juan Pablo Ugarte
02e660484d GladeGtkHeaderBar: Improve position packing property handling
Return children sorted by position and update the other child position
when changing it just like we do for GtkBox

Fixes issue #301
2018-07-26 17:00:27 -03:00
Alberto Fanjul
e59e5b2b31 Turn error into warning 2018-07-26 13:51:39 +00:00
nick richards
701da5b8ef Add OARS tags 2018-07-25 08:49:00 +02:00
Alberto Fanjul
fb2c1d4604 gitlabci: Add CI setup 2018-07-25 08:01:24 +02:00
albfan
113bfa9811 flatpak: Add manifest 2018-07-25 00:16:58 +02:00
Daniel Mustieles
e6129c0cbc Updated Spanish translation 2018-07-24 09:54:31 +02:00
Matej Urbančič
125b5ddd33 Updated Slovenian translation 2018-07-11 21:11:21 +02:00
Bruno Lopes da Silva
6671f7c999 Update Brazilian Portuguese translation 2018-07-09 20:27:52 +00:00
Juan Pablo Ugarte
62f9dace52 Gtk catalog: mark GtkImageMenuItem as deprecated since 3.10
Closes issue #304 "glade doesn't show warnings with deprecated GtkImageMenuItem"
2018-06-01 18:04:02 -03:00
Juan Pablo Ugarte
6a10020e76 GladeWidgetAdaptor: added deprecated-since metadata
Added metadata needed to know in which Gtk version a class is deprecated
2018-06-01 18:04:02 -03:00
Daniel Mustieles
5887067a98 Updated Spanish translation 2018-05-28 17:54:39 +02:00
Anders Jonsson
6981d60910 Update Swedish translation 2018-05-27 20:28:59 +00:00
Juan Pablo Ugarte
83bd4a2848 GladeImageItemEditor: use display name for commands names 2018-05-23 21:54:11 -03:00
Juan Pablo Ugarte
1a198f86ac GladeCommand: ensure widget name on object properties
Closes issue #307 "Error in Glade 3.22.1 in menu item XML produced"
2018-05-23 21:52:13 -03:00
Juan Pablo Ugarte
540f025c2f GladeGtkAdjustment: add digits virtual property
Let the user choose the values precision to use.

Closes issue #18 "Scale Properties Adjustment precision doesn't match Scale Properties Digits"
2018-05-23 20:33:06 -03:00
Juan Pablo Ugarte
6a26af5767 GladeEPropNumeric: bind precision property to spin button 2018-05-23 20:33:06 -03:00
Juan Pablo Ugarte
76b4cefd94 GladeProperty: add precision property 2018-05-23 20:33:06 -03:00
Juan Pablo Ugarte
1141bbd2c4 GladePropertyClass: round floating point values to epsilon 2018-05-23 20:33:06 -03:00
Daniel Mustieles
4e65572673 Updated Spanish translation 2018-05-22 13:42:06 +02:00
Anders Jonsson
94abd680a0 Update Swedish translation 2018-05-20 17:56:54 +00:00
Matej Urbančič
f06d97dece Updated Slovenian translation 2018-05-15 21:47:07 +02:00
Matej Urbančič
98267e1d8c Added Slovenian translation 2018-05-15 21:44:53 +02:00
Marek Černocký
d4733db797 Updated Czech translation 2018-05-14 21:59:17 +02:00
Daniel Boles
1149c7ceba ui/widget: Make template ver# warning more useful
Composite widget templates are only supported by GTK+ 3.10 and up, but
if a user targeted a lower version, we only told them that said version
did not support templates, but provided no help on how to resolve that.

A user in #gtk+ mistook that vague warning as meaning widget templates
had been deprecated in their (then) target version, GTK+ 3.0. Whoops!

It makes more sense to tell users what version they need, which is new
info, instead of what they are currently targeting, which they know.
2018-05-12 14:41:28 +00:00
Juan Pablo Ugarte
54869190d0 Update CONTRIBUTING.md to gitlab 2018-05-12 10:15:12 -03:00
Juan Pablo Ugarte
35923d0108 GladeCommand: ignore special child types placeholders in add command.
GladeGtkWindow: mark titlebar placeholder as special child type.

Fix bug "Glade deletes all widgets when adding a Scrolled Window parent, but doesn't show it."

https://gitlab.gnome.org/GNOME/glade/issues/196
2018-05-12 10:05:54 -03:00
Emin Tufan Çetin
bc5f9d0fcb Update Turkish translation
(cherry picked from commit 21b435fce5d9465943db8562b37568048ad0e308)
2018-05-03 06:59:19 +00:00
Daniel Mustieles
6dad3497fb Updated Spanish translation 2018-04-25 13:09:40 +02:00
Rūdolfs Mazurs
d0940e82ae Update Latvian translation
(cherry picked from commit e7fc7fad3c89f5768c93613caf6771487e37131b)
2018-04-07 16:42:58 +00:00
Tristan Van Berkom
f41e1cd4f2 Merge branch 'recover-statusbar' into 'master'
Gtk Catalog: add back GtkStatusbar

See merge request GNOME/glade!1
2018-04-01 13:54:47 +00:00
albfan
671ecee7fd Gtk Catalog: add back GtkStatusbar 2018-04-01 15:47:44 +02:00
Марко Костић
7105287fc5 Update Serbian translation
(cherry picked from commit f65173e5070c4710b16553b6dabfc4e6b4a47594)
2018-03-28 20:40:54 +00:00
Piotr Drąg
e3985e0929 Update Polish translation 2018-03-27 23:15:21 +02:00
Guillaume Bernard
5afdf3db27 Update French translation
(cherry picked from commit 7a4b06d5616aab366b75d30334045f249127270a)
2018-03-26 19:59:28 +00:00
Cheng-Chia Tseng
10efdce6e7 Update Chinese (Taiwan) translation
(cherry picked from commit d14c0d4fe27374cd36622443622ca66e5164aeed)
2018-03-26 10:16:15 +00:00
Kukuh Syafaat
af7404eb11 Update Indonesian translation 2018-03-25 18:35:01 +00:00
Marek Černocký
2ff3983a60 Updated Czech translation 2018-03-25 09:16:45 +02:00
Juan Pablo Ugarte
371b733989 GladeGtkHeaderBar: mark title and subtitle as translatable
Fix bug #782753 "Glade does not allow ApplicationWindow's title to be marked as translatable"
2018-03-24 14:40:46 -03:00
Juan Pablo Ugarte
bd4e79d400 GladeGtkDialog: chain up post_create() method
GtkWindow adaptor handles use-csd property
2018-03-24 14:40:46 -03:00
Juan Pablo Ugarte
5028c39705 GladeGtkWindow: remove get_children() method 2018-03-24 14:40:23 -03:00
Piotr Drąg
eee138d1d4 GladeAdaptorChooser: add missing translation domain 2018-03-23 23:49:37 +01:00
Piotr Drąg
17a56aa4c4 Update Polish translation 2018-03-23 23:49:33 +01:00
Juan Pablo Ugarte
0ec41f3874 Fix build 2018-03-22 18:34:24 -03:00
Juan Pablo Ugarte
49103b5833 GladeGtkWidget: save accessible-role atk property
Fix memory leaks in glade_gtk_widget_write_atk_property() and glade_gtk_widget_write_atk_action()
Do not serialize atk object id if parent does not have one

Fix bug #794518 "Does not write the accessible-role accessibility property"
2018-03-22 18:14:38 -03:00
Fran Dieguez
b85d9c6388 Update Galician translation 2018-03-21 08:48:39 +00:00
Juan Pablo Ugarte
728ebab0e1 GladeGtkWindow: fix regression in csd handling
Fixes bug #794492 "Glade always re-enables the client-side-decoration option"
2018-03-19 20:46:59 -03:00
Aurimas Černius
2d38f33654 Updated Lithuanian translation 2018-03-19 22:57:37 +02:00
Mario Blättermann
f84a52f983 Update German translation 2018-03-19 03:12:14 +00:00
Rafael Fontenelle
bb211dfdeb Update Brazilian Portuguese translation 2018-03-18 22:29:20 +00:00
Sebastian Rasmussen
ebce3d60b4 Update Swedish translation 2018-03-18 20:24:32 +00:00
Anders Jonsson
b9174cc94c Update Swedish help image 2018-03-18 21:20:27 +01:00
Balázs Meskó
aeea294210 Update Hungarian translation 2018-03-18 18:39:34 +00:00
Sebastian Rasmussen
31040be36b Update Swedish translation 2018-03-18 17:20:05 +00:00
Milo Casagrande
5a671860cb Update Italian translation 2018-03-18 14:34:35 +00:00
Piotr Drąg
aa2e87822a Update Polish translation 2018-03-18 01:34:34 +01:00
Piotr Drąg
1881a65bde Update POTFILES.in 2018-03-18 01:09:55 +01:00
Milo Casagrande
73e486ecc2 Update Italian translation 2018-03-17 14:52:08 +00:00
Kukuh Syafaat
d55c1e6608 Update Indonesian translation 2018-03-15 14:12:23 +00:00
Balázs Meskó
a2f04a8719 Update Hungarian translation 2018-03-15 09:04:24 +00:00
Rafael Fontenelle
5ec4d70853 Update Brazilian Portuguese translation 2018-03-14 12:49:27 +00:00
Florian Heiser
4657ca6941 Update German translation 2018-03-14 06:47:12 +00:00
Muhammet Kara
10b9747405 Update Turkish translation 2018-03-13 18:10:01 +00:00
Guillaume Bernard
4df71d9fe2 Update French translation 2018-03-13 09:32:11 +00:00
Balázs Meskó
a916ba9e72 Update Hungarian translation 2018-03-13 05:32:41 +00:00
Fran Dieguez
687bb0738a Update Galician translation 2018-03-12 23:10:10 +00:00
Anders Jonsson
6af5829893 Update Swedish translation 2018-03-12 22:57:27 +00:00
Aurimas Černius
f381f144d3 Updated Lithuanian translation 2018-03-12 23:04:41 +02:00
Marek Černocký
f700c1f4c7 Updated Czech translation 2018-03-12 20:12:59 +01:00
Juan Pablo Ugarte
208e466220 Rolling 3.22 2018-03-12 16:01:07 -03:00
Piotr Drąg
968fc43dcd Update Polish translation 2018-03-12 19:52:16 +01:00
Juan Pablo Ugarte
773e841985 GladeWindow: hide intro button after its finished. 2018-03-12 15:27:08 -03:00
Anders Jonsson
40b8df765e Update Swedish translation 2018-03-11 20:11:43 +00:00
Alexandre Franke
7ef2bf8835 Update French translation 2018-03-11 13:20:04 +00:00
Rūdolfs Mazurs
d3f53d3485 Update Latvian translation 2018-03-10 11:05:20 +02:00
albfan
7f8140652b Gtk+ plugin: get back GtkIconView widget
Recover widget lost in split for control and display menus

Fix bug #794141 - Gtk.IconView disappeared from glade
2018-03-08 19:04:07 -03:00
Çağatay Yiğit Şahin
0298a2009e Update Turkish translation 2018-03-08 12:42:50 +00:00
Milo Casagrande
19a31df0d2 Update Italian translation 2018-03-08 08:45:54 +00:00
Juan Pablo Ugarte
6d39793948 GladeActionBarEditor: remove bogus warning 2018-03-06 19:56:25 -03:00
Juan Pablo Ugarte
85a47fc088 Fix glade_util_container_get_all_children()
gtk_container_forall() no longer returns all children for all classes

For example in GtkActionBar forall() only returns the internal revealer child
and foreach() returns all the widgets added by the user which are inside a
box which parent its the internal revealer

So in order to get all the children we need to call forall() and foreach() and remove duplicates

This fixes bug #778537 "ActionBar need placeholder"
2018-03-06 19:56:25 -03:00
Rafael Fontenelle
9888e98ae7 Update Brazilian Portuguese translation 2018-03-05 14:28:30 +00:00
Marek Černocký
68a009b2ea Removed useless tag "translatable" 2018-03-04 08:30:03 +01:00
Marek Černocký
8be0fe47b2 Updated Czech translation 2018-03-04 08:27:29 +01:00
Marek Černocký
8040387efb Updated Czech translation 2018-03-04 08:26:45 +01:00
Juan Pablo Ugarte
fa16f1bf41 GladeWindow: replace tabs with spaces 2018-03-03 22:10:45 -03:00
Juan Pablo Ugarte
da10140dd7 GladeWindow: set label on toolbar actions 2018-03-03 22:04:30 -03:00
Ask Hjorth Larsen
24b0229363 Updated Danish translation 2018-03-03 19:05:10 +01:00
Baurzhan Muftakhidinov
cb3f68dc3a Update Kazakh translation 2018-03-03 15:41:21 +00:00
Aurimas Černius
6762477540 Updated Lithuanian translation 2018-03-03 13:44:01 +02:00
Sebastian Stang
7b91d0f444 Add GDK_SUPER_MASK accelerator handling 2018-03-01 20:04:38 -03:00
Kukuh Syafaat
5c2d492529 Update Indonesian translation 2018-03-01 09:45:56 +00:00
Juan Pablo Ugarte
f373288352 Gtk+ plugin: fix GtkPopover support
Improve support without creating a subclass, still need to
find a way to override map/unmap warnings

Fix bug #793757 "Gtk-CRITICAL **: _gtk_window_add_popover: assertion '_gtk_widget_get_parent (popover) == NULL' failed"
2018-02-28 21:42:10 -03:00
Juan Pablo Ugarte
667f255a53 Revert "GladeWidgetAdaptor: fix glade_widget_adaptor_get_parent_adaptor()"
This reverts commit b9763bfada7c9ecc2532563a97c387f8c20962b5.

Revert "GtkPopover: rework support code to fix bugs and warnings"

This reverts commit d2bedbab24c64198b373345e973d00e1f9fdc33c.
2018-02-28 21:23:16 -03:00
Juan Pablo Ugarte
ebd3634c85 Gtk+ plugin: fix GtkStack replace child function
Fi bug 793652 "Crash when deleting a list"
2018-02-28 21:18:05 -03:00
Juan Pablo Ugarte
b9763bfada GladeWidgetAdaptor: fix glade_widget_adaptor_get_parent_adaptor()
Use adaptor real_type instead of runtime type which could be a derived type

glade_widget_adaptor_from_catalog() Add check for get-type-function return value
2018-02-26 17:44:56 -03:00
Changwoo Ryu
bc218dce4c Update Korean translation 2018-02-25 14:50:11 +00:00
Juan Pablo Ugarte
d2bedbab24 GtkPopover: rework support code to fix bugs and warnings
Use a derived class with overrided methods for the runtime

Fix bug #793757 "Gtk-CRITICAL **: _gtk_window_add_popover: assertion '_gtk_widget_get_parent (popover) == NULL' failed"
2018-02-24 21:54:06 -03:00
Juan Pablo Ugarte
7eb1012bb2 GladeEditorPropertyTextClass: use relative paths for resources
From now one Glade will use relative paths for filename properties
like image resources.
2018-02-24 12:11:24 -03:00
Juan Pablo Ugarte
e221282d53 GladeProject: always treat resource properties as relative 2018-02-24 12:11:24 -03:00
Juan Pablo Ugarte
188bc4f84f Add _glade_util_file_get_relative_path() to the private zoo. 2018-02-24 12:11:23 -03:00
Juan Pablo Ugarte
195fe47255 GladePropertyClass: fix missing images data loss
Make make_object_from_string() always return a different pixbuf for
image properties to avoid loosing data by returning a copy
of gtk_icon_theme_load_icon()

Dix bug #772485 "File Name property of GtkImage is copied to all other GtkImage"
2018-02-24 12:11:23 -03:00
Balázs Úr
c1496e8d61 Update Hungarian translation 2018-02-23 22:56:18 +00:00
Piotr Drąg
005514f3d1 Fix Spanish translation header 2018-02-23 23:22:05 +01:00
Mario Blättermann
40a7ffd1ad Update German translation 2018-02-23 21:13:13 +00:00
Милош Поповић
c56b5ee60d Update Serbian Latin translation 2018-02-23 14:44:25 +00:00
Марко Костић
b71206ab5e Update Serbian translation 2018-02-23 14:43:43 +00:00
Fran Dieguez
03131b5d6b Update Galician translation 2018-02-23 00:18:07 +00:00
Daniel Mustieles
41bd7b0dca Updated Spanish translation 2018-02-21 17:53:25 +01:00
Tim Sabsch
f70d4f9dce Update German translation 2018-02-19 15:50:04 +00:00
Juan Pablo Ugarte
088d8af6dd plugins/gtk+/glade-gtk-action-widgets.c glade-gtk-cell-layout.c: fix identation. 2018-02-17 14:00:56 -03:00
Juan Pablo Ugarte
f440cdde2d Fix bug in action widgets response-id parsing on 32bits system 2018-02-17 14:00:56 -03:00
Juan Pablo Ugarte
ade6076ff6 Fix bug in GtkCellRenderer attributes parsing on 32bits systems
Fixes bug 793036 "GtkCellRenderer Properties not loaded from glade file"
Thanks to Peter Onion for finding and fixing it.
2018-02-17 14:00:06 -03:00
Rafael Fontenelle
2888b1e523 Update Brazilian Portuguese translation 2018-02-16 17:44:20 +00:00
Piotr Drąg
96fb1249d4 Update Polish translation 2018-02-16 18:39:53 +01:00
Rafael Fontenelle
c427b20c74 glade-window.c: Fix typo 2018-02-16 15:31:19 -02:00
Fran Dieguez
80caca13e0 Update Galician translation 2018-02-16 15:46:18 +00:00
Fabio Tomat
1494675e60 Update Friulian translation 2018-02-16 12:00:32 +00:00
Piotr Drąg
859e8b494c Update Polish translation 2018-02-10 21:01:15 +01:00
Daniel Mustieles
33a57a4082 Update Spanish translation 2018-02-06 12:08:20 +00:00
Aurimas Černius
3e2ee0f5ae Updated Lithuanian translation 2018-02-04 15:43:08 +02:00
Kukuh Syafaat
b003f4445e Update Indonesian translation 2018-02-01 17:57:32 +00:00
Juan Pablo Ugarte
316a00e184 Gtk Catalog: add back GtkStackSidebar 2018-01-30 15:19:35 -03:00
Juan Pablo Ugarte
0fd439fb6a GladeDesignView: set selected layout state
Update layout state in order to change border color with css
2018-01-30 15:19:35 -03:00
Balázs Úr
04f919c341 Update Hungarian translation 2018-01-27 08:50:02 +00:00
Balázs Úr
0258bb3df9 Update Hungarian translation 2018-01-26 20:10:32 +00:00
Tim Sabsch
ac7c277fb5 Update German translation 2018-01-22 08:27:58 +00:00
Juan Pablo Ugarte
22749bc1ff GladeAdaptorChooserWidget: enable Drag & Drop
NOTE: Gtk bug #771986 needs to be fixed for this to work
2018-01-20 18:59:01 -03:00
Piotr Drąg
87bd20b97e Fix some typos in new strings 2018-01-08 16:09:47 +01:00
Daniel Mustieles
54aadd7d1b Update Spanish translation 2018-01-08 14:31:24 +00:00
Juan Pablo Ugarte
608619e2c8 GladeAdaptorChooserWidget: activate treeview with single click 2018-01-06 19:28:53 -03:00
Daniel P. Berrange
d33a056bfa Add highlighting of deprecated property & class names
Use bold text to highlight the deprecated property & class names
to make the deprecation messages easier to scan over.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2018-01-04 20:56:10 -03:00
Daniel P. Berrange
dd0360822e Fix formatting / layout of project verification details
Two of the common deprecation messages are missing a newline,
causing the message display to be 1000's of pixels wide
The scrolled window displaying the messages is also not set
to expand as the window grows, leaving only three lines of
text visible by default. These bugs make the verification
message display almost unusable.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
2018-01-04 20:56:06 -03:00
Tim Sabsch
f341a1f579 Update German translation 2018-01-01 15:47:55 +00:00
Juan Pablo Ugarte
1cfda057e1 Gtk plugin: glade_base_editor_new() do not use main_editable param 2017-12-31 14:51:21 -03:00
Juan Pablo Ugarte
76385f1799 GladebaseEditor: Implement it as a template class
Simplify UI by removing general tab and only keeping the hierarchy editor
2017-12-31 14:41:32 -03:00
Juan Pablo Ugarte
4c0e415eea GladeBaseEditor: use GSIZE_TO_POINTER to store a GType on a pointer
Fix bug 774994 "in treeview columns editor contextual menu does nothing"
2017-12-31 11:19:15 -03:00
Juan Pablo Ugarte
0199624741 Rolling 3.21.0 2017-12-30 21:22:08 -03:00
Juan Pablo Ugarte
297bde51a6 configure.ac: fix GLADE_TEST_ENVIRONMENT
Add GLADE_ICON_THEME_PATH and GLADE_PIXMAP_DIR to test env to fix distcheck
2017-12-30 21:22:08 -03:00
Juan Pablo Ugarte
80fa9267ad GladeApp: add GLADE_ENV_ICON_THEME_PATH
Add env variable to append extra icon theme search paths
2017-12-30 21:22:08 -03:00
Juan Pablo Ugarte
5d479663aa GtkButton: ignore register-response-id-displayables
Do not set virtual property in runtime object to avoid warnings
2017-12-30 21:22:08 -03:00
Juan Pablo Ugarte
b79ff9626d GladeWidgetAdaptor: use real type to register adaptors
This way classes that have a different runtime type like GtkOffscreenWindow can be registered.
2017-12-30 21:22:08 -03:00
Piotr Drąg
0b4800ba37 Update POTFILES.in 2017-12-30 19:08:30 +01:00
Juan Pablo Ugarte
dc40fc597b Add UI interactive introduction 2017-12-30 14:11:46 -03:00
Juan Pablo Ugarte
97be4a2855 GladeWindow: port to GAction 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
91072843db GladeWindow: move all project actions to headerbar
- Use GtkStackSwitcher in headerbar to change project
  - Undo/Redo right click to activate command menu
2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
50579829df GladeWindow: remove unused project list 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
4bb5aacc15 GladeWindow: add main stack with logo 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
2cf6a47e88 Added glade-brand-symbolic icon 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
e0f591fc88 Do not open a new project by default 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
65036a67e8 GladeWindow: moved css to glade-window.css file 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
5c5cec96a9 GladeAdaptorChooserWidget: set scrolled window max height on map 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
d59478d153 GladeDesignView,GladePlaceholder: use gtk_popover_popup() instead of gtk_widget_show() 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
58fe1518fe GladeAdaptorChooser: show group title in chooser with more than one 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
4e55a66bd1 GladeAdaptorChooserWidget: add show-group-title property 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
b5ec733eb1 Gtk+ catalog: split control and display widget groups 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
e438770ecf GladePlaceholder: use middle click button to create more than one widget 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
57822f5c27 GladeWindow: add GladeAdaptorChooser 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
e3b1fb4ca3 GladeUI plugin: add support for GladeAdaptorChooser 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
8ad93eebb8 GladeAdaptorChooser: implemented new class to replace palette 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
02afd232db Rename GladeAdaptorChooser to GladeAdaptorChooserWidget 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
fee15dac56 _GladeAdaptorChooser: add new API
Project is no longer a construct porperty.
Move flags and project logic to filter funtion.
Add _populate(), _add_catalog() and add_group() methods
2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
140b355ab6 GladeWidgetAdaptor: do not query user by default 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
f4cd34144d GladeCloseButton: removed unused class 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
c733593351 GladeWindow: replace main notebook with stack
Add popover button with a stack switcher to headerbar to replace notebook tabs
2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
b0ffaabcb7 GladeWindow: remove unused view actions 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
06564444cc GladeWindow: replace menubar with headerbar
Add headerbar with open, new, undo, redo and save buttons and
a main dropdown menu.

Simplified toolbar and moved under the inspector.
2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
4d9bc5f871 GladeEditor: add show-border property 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
366d64a7f3 GladeWindow: moved statusbar on top of workspace 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
3513a72935 GladeAdaptorChooser: set viewport max content height instead of min 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
87d78abcfc GladeDesignView: include all widget in widget chooser
Since currently this is the only way to add widget, we need to be able to add any kind of widget.
2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
995eeb1626 GladeAdaptorChooser: add GLADE_ADAPTOR_CHOOSER_SKIP_DEPRECATED flag
From now on the chooser will include deprecated classes by default.
2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
833f799cd2 GladeWindow: remove unused right_paned.
Set minimun width/height for inspector, workspace and property editor
2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
3fba517890 GladeWindow: move inspector to palette place. 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
1d85dd0a35 GladeWindow: remove palette
Palette functionality will be replaced with some search functionality.
In the mean time double click on the workspace/placeholder will be
the only way to add widgets to a project.
2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
1c870ed70c GladeWindow: remove palette related actions from view menu 2017-12-30 13:42:16 -03:00
Juan Pablo Ugarte
6ba278527b GladeWindow: remove dock system
Remove palette, inspector and editor windows dock.
2017-12-30 13:42:16 -03:00
Kristjan SCHMIDT
4c8c028924 Update Esperanto translation 2017-12-23 19:17:36 +00:00
Daniel Mustieles
5039bc1bb2 Updated Spanish translation 2017-12-20 18:04:04 +01:00
Daniel Mustieles
926fddae8a Updated Spanish translation 2017-12-20 18:03:35 +01:00
Kukuh Syafaat
67b39ddad4 Update Indonesian translation 2017-12-02 19:41:34 +00:00
Борисав Живановић
6b97d92ce6 Update Serbian translation 2017-11-28 18:34:10 +00:00
Lukas K
b257bdcdf2 add background class to GladeDesignLayout children 2017-11-26 16:46:02 -03:00
Piotr Drąg
2224a62c59 Add Polish help translation 2017-11-26 02:45:51 +01:00
Arnaud Rebillout
a5c3a4dd20 GtkLabel xalign and halign appeared in GTK+ 3.16 and are not deprecated
Fixes #782645
2017-11-18 12:46:19 -03:00
Juan Pablo Ugarte
e527b48cd0 Use new utility function to parse boolean values.
Fixes bug 790452 "Glade saves invalid GtkBuilder XML"
2017-11-18 12:01:56 -03:00
Juan Pablo Ugarte
7f9cfb3006 Add glade_utils_boolean_from_string() to the zoo 2017-11-18 12:01:12 -03:00
Jeremy Bicha
e8517e5545 data/Makefile.am: Install appstream metadata to non-deprecated location 2017-11-18 10:47:30 -03:00
Marek Cernocky
d5cce60828 Updated Czech translation 2017-10-29 18:28:07 +01:00
Mario Blättermann
0003672472 Update German translation 2017-10-27 12:03:17 +00:00
Xavi Ivars
b4e0b02d09
[l10n] Updated Catalan (Valencian) translation 2017-10-05 13:55:03 +02:00
Anders Jonsson
b3664f9fb8 Update Swedish translation 2017-10-02 18:57:56 +00:00
Piotr Drąg
5b83d84bf8 Update Polish translation 2017-09-26 12:53:27 +02:00
Andre Klapper
9a6ba8cb28 Fix typo in Bulgarian user docs translation 2017-09-25 15:20:52 +02:00
Andre Klapper
560a68a3fe ca: Fix markup typos 2017-09-25 00:05:11 +02:00
Anders Jonsson
884a0d5d39 Update Swedish translation 2017-09-24 14:05:07 +00:00
Tristan Van Berkom
32eec0dccc plugins/gtk+/gtk+.xml.in: Fix typo in translatable string; fixing old bug 746531 2017-09-22 16:56:20 +09:00
Anders Jonsson
9b49649512 Update Swedish translation 2017-09-18 11:02:12 +00:00
Piotr Drąg
28e0d6e3e7 Update Polish translation 2017-09-17 16:11:08 +02:00
Marek Černocký
28f3a1d00c Updated Czech help translation 2017-09-17 08:34:31 +02:00
Marek Černocký
016b75f08a Updated Czech translation 2017-09-17 08:24:04 +02:00
Marek Černocký
c49d701751 Marked property name for translation 2017-09-17 08:20:43 +02:00
Andre Klapper
e2cb3b2cbb help: Update screenshot 2017-09-16 20:00:38 +02:00
Efstathios Iosifidis
89db0d3374 Update Greek translation 2017-09-12 19:52:54 +00:00
Cheng-Chia Tseng
465ece7a42 Update Chinese (Taiwan) translation 2017-09-12 16:51:31 +00:00
Sebastian Rasmussen
5141c2487a Update Swedish translation 2017-09-11 11:25:52 +00:00
Sebastian Rasmussen
591fdc1fa8 Update Swedish translation 2017-09-10 23:06:53 +00:00
Balázs Úr
0e8266195c Update Hungarian translation 2017-09-10 16:18:11 +00:00
Jordi Mas
c8b9d861e7 Update Catalan translation 2017-09-10 08:27:16 +02:00
Rafael Fontenelle
9fc2099763 Update Brazilian Portuguese translation 2017-09-08 22:10:12 +00:00
Pawan Chitrakar
7b95287883 Update Nepali translation 2017-09-01 06:53:12 +00:00
Rūdolfs Mazurs
fcfa333f19 Update Latvian translation 2017-08-27 23:17:20 +03:00
Ask Hjorth Larsen
03fe4a9e2b Updated Danish translation 2017-08-26 18:43:34 +02:00
Pawan Chitrakar
d4b45c8d6b Update Nepali translation 2017-08-22 07:28:06 +00:00
Anish Sheela
43f7cbd127 Update Malayalam translation 2017-08-20 21:18:28 +00:00
Mario Blättermann
22c5ea90e8 Update German translation 2017-08-16 20:15:14 +00:00
Мирослав Николић
6a4412305b Updated Serbian translation 2017-08-14 20:19:13 +02:00
Muhammet Kara
798b1aeeb0 Update Turkish translation 2017-08-13 12:41:04 +00:00
Juan Pablo Ugarte
543af9b750 GladeRegistration: fix css matching error on csd
CSD should not be affected by the custom css.
2017-08-11 10:42:13 -03:00
Marek Cernocky
dbec358559 Updated Czech translation 2017-08-08 12:19:59 +02:00
Daniel Mustieles
1944cda5c8 Updated Spanish translation 2017-08-05 11:53:46 +02:00
Anders Jonsson
71b0d63b44 Update Swedish translation 2017-08-03 00:34:09 +00:00
Juan Pablo Ugarte
39b7ec4c38 Add GtkStackSidebar to control and display widget group 2017-08-02 06:20:52 -03:00
Sebastian Rasmussen
6eff02bdb1 help: Use correct tag when referring to Palette
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=763188
2017-08-01 12:18:19 +01:00
Pawan Chitrakar
2fb5a5425a Update Nepali translation 2017-07-28 01:53:40 +00:00
Matej Urbančič
d931d89815 Updated Slovenian translation 2017-07-25 12:07:31 +02:00
Marek Černocký
c3fb090e26 Updated Czech translation 2017-06-25 12:05:47 +02:00
Arnaud Rebillout
ac55fa7856 Fix use of GTK+ style context in GladeDesignLayout.
It seems like modifying the style context in the 'draw' handler is not
recommended, and we need to save/restore the context.

Otherwise, for some widgets (GtkButton, GtkComboBox), the
GladeDesignLayout gets trapped in draw-damage loop.

See 0c076cc8828cd80f1f156a08569199675bf35165 for reference.
2017-06-14 00:21:47 +09:00
Fabio Tomat
0667688807 Update Friulian translation 2017-06-06 20:29:54 +00:00
Fabio Tomat
dcf798c0be Update Friulian translation 2017-06-04 11:41:21 +00:00
Fabio Tomat
a7c87e9cb6 Update Friulian translation 2017-06-04 10:20:07 +00:00
Fabio Tomat
0f7e7f134c Update Friulian translation 2017-06-04 09:18:19 +00:00
Rafael Fontenelle
7771fe9398 Update Brazilian Portuguese translation 2017-05-31 12:26:02 +00:00
Милош Поповић
4fb7a84fd7 Update Serbian translation 2017-05-27 22:27:16 +00:00
Muhammet Kara
c95c7fac18 Update Turkish translation 2017-05-20 08:40:11 +00:00
Fabio Tomat
4046141a7f Update Friulian translation 2017-05-05 09:28:42 +00:00
Jonh Wendell
8a73d114ca Use g_ptr_array_find() from GLib
https://bugzilla.gnome.org/show_bug.cgi?id=782161
2017-05-04 11:08:41 -03:00
Juan Pablo Ugarte
5221f9a792 plugins/webkit2gtk: added initial support for WebKit2GTK+ library. 2017-03-29 13:56:47 +01:00
Jordi Mas
41e1265596 Fixes to Catalan translation 2017-03-14 19:47:06 +01:00
Fran Dieguez
d557c0941b Update Galician translation 2017-03-11 02:16:33 +00:00
Fabio Tomat
4b64bdac70 Add Friulian translation 2017-03-07 21:34:11 +00:00
Ask Hjorth Larsen
e93c994051 Updated Danish translation 2017-03-07 21:41:12 +01:00
Kukuh Syafaat
4c7bf6e1bd Update Indonesian translation 2017-03-05 10:36:29 +00:00
Inaki Larranaga Murgoitio
0e8b0d7ea5 Update Basque language 2017-03-04 17:41:32 +01:00
Aurimas Černius
69fee7a568 Updated Lithuanian translation 2017-03-04 18:10:47 +02:00
Inaki Larranaga Murgoitio
51acbbf730 Update Basque language 2017-03-04 17:03:32 +01:00
Changwoo Ryu
031b8b10fc Update Korean translation 2017-03-04 03:45:13 +00:00
Anders Jonsson
eacb9c6193 Update Swedish translation 2017-03-01 11:44:22 +00:00
Chao-Hsiung Liao
b80e7eb87b Update Chinese (Taiwan) translation 2017-02-28 06:32:34 +00:00
Charles Monzat
33b304fcfc Update French translation 2017-02-27 18:12:53 +00:00
Мирослав Николић
ffc16cedff Updated Serbian translation 2017-02-26 08:00:05 +01:00
Milo Casagrande
0e512c8996 Update Italian translation 2017-02-22 12:43:36 +00:00
Milo Casagrande
df5feadc51 Update Italian translation 2017-02-21 18:19:30 +00:00
Ask Hjorth Larsen
7e3b18da58 Updated Danish translation 2017-02-16 14:17:01 +01:00
Mandy Wang
4e5f18e1ba Update zh_CN translation 2017-02-15 19:09:34 +08:00
Rafael Fontenelle
ea0c2b94d9 Update Brazilian Portuguese translation 2017-01-28 13:19:26 +00:00
Piotr Drąg
204b9430d6 Update Polish translation 2017-01-21 19:42:16 +01:00
Juan Pablo Ugarte
b696f16ace GladeBaseEditor: fixed bug #773997 "GLADE 3.20: crash on changing ToolItem type"
Do not use a custom marshaller for signals with a GType param.
2016-12-25 14:15:14 -03:00
Daniel Mustieles
4f844df85d Updated Spanish translation 2016-12-22 20:07:07 +01:00
Baurzhan Muftakhidinov
55dfb4ecf9 Update Kazakh translation 2016-12-13 03:59:04 +00:00
Peter Mráz
e3fab36455 Update Slovak translation 2016-12-04 08:28:13 +00:00
Mario Blättermann
29253f2058 Update German translation 2016-11-11 20:35:36 +00:00
Peter Mráz
f0f4c2970e Update Slovak translation 2016-11-09 19:53:29 +00:00
Balázs Meskó
d222f1ed5f Update Hungarian translation 2016-11-04 08:52:24 +00:00
Marek Černocký
2dc983d90a Updated Czech translation 2016-11-01 09:50:15 +01:00
Piotr Drąg
e0571d555d Update POTFILES.in 2016-10-29 21:22:45 +02:00
Tristan Van Berkom
1888215191 Bug 351645 - Use a GladeEPropEnumInt for the response ID
Also add displayable values for the response ID

Patches contributed by Lukas K <lu@0x83.eu>
2016-10-29 22:22:21 +09:00
Tristan Van Berkom
598a6f98a7 Bug 351645 - Added GladeEPropEnumInt
An enhanced enum integer editor based on patch contributed by Lukas K <lu@0x83.eu>
2016-10-29 22:15:58 +09:00
Tristan Van Berkom
82bc6865f0 GladeEditorProperty: Add 4px box spacing
This causes the optional properties with the added check mark to
look much better.

From patch contributed by Lukas K <lu@0x83.eu> on bug 351645
2016-10-29 20:00:14 +09:00
Tristan Van Berkom
26b6337967 Bug 351645 - glade-editor-property.c: Use glade_util_remove_scroll_events()
Use the new shared function for handling scroll events.

From patch contributed by Lukas K <lu@0x83.eu>
2016-10-29 18:29:58 +09:00
Tristan Van Berkom
7f67005a60 Bug 351645 - glade-utils.[ch]: Add glade_util_remove_scroll_events()
Allow plugins to use the event propagation hack we use to avoid
scroll events in a scrolled window being eaten up by child widgets.

From patch contributed by Lukas K <lu@0x83.eu>
2016-10-29 18:23:08 +09:00
Peter Mráz
374881b949 Update Slovak translation 2016-10-20 18:54:45 +00:00
Kjartan Maraas
7b0a09e89b Updated Norwegian bokmål translation from Kjartan Maraas. 2016-10-16 19:05:21 +02:00
Cédric Valmary
1919deeff2 Update Occitan translation 2016-10-12 09:52:33 +00:00
Rūdolfs Mazurs
4c0f51f2a0 Update Latvian translation 2016-10-09 19:19:59 +03:00
Gianvito Cavasoli
ef1634442a Updated Italian translation 2016-10-06 11:52:47 +00:00
Charles Monzat
b201f44425 Updated French translation 2016-10-06 09:25:00 +00:00
Marek Černocký
65b56b3aa8 Updated Czech translation 2016-10-06 10:31:22 +02:00
Piotr Drąg
dfef6f73a8 Updated Polish translation 2016-10-05 20:02:40 +02:00
Anders Jonsson
2edf66e4a9 Updated Swedish translation 2016-10-05 12:11:33 +00:00
Balázs Meskó
b88fccbb58 Updated Hungarian translation 2016-10-05 07:06:57 +00:00
Rafael Fontenelle
eb090b12a5 Updated Brazilian Portuguese translation 2016-10-04 21:20:00 +00:00
Mario Blättermann
3449864dd3 Updated German translation 2016-10-04 19:36:45 +00:00
Juan Pablo Ugarte
ac8be97282 Added GtkGLArea object to gtk+ catalog. 2016-10-04 16:30:03 -03:00
Claudio Arseni
3117f10d4e Updated Italian translation 2016-10-03 09:39:20 +00:00
Claude Paroz
ce11ad98dc Updated French translation 2016-09-19 07:09:34 +00:00
Tom Tryfonidis
587b551421 Updated Greek translation 2016-09-16 11:19:25 +00:00
David King
bdd647d57f Update British English translation 2016-09-14 19:42:21 +01:00
Ask Hjorth Larsen
8b6d7309e6 Updated Danish translation 2016-09-13 01:53:59 +02:00
Piotr Drąg
0e5a5d0257 Updated Polish translation 2016-09-08 22:53:02 +02:00
Jean-Baptiste Holcroft
6674d5e9e9 Updated French translation 2016-09-05 06:32:31 +00:00
Fran Dieguez
2230dd82dd Updated Galician translations 2016-09-05 00:02:02 +02:00
Changwoo Ryu
74ebfea1aa Updated Korean translation 2016-09-03 14:57:46 +00:00
Rūdolfs Mazurs
20af8b7eae Update Latvian translation 2016-09-01 22:00:34 +03:00
Мирослав Николић
6ee4347530 Updated Serbian translation 2016-08-27 22:30:01 +02:00
Piotr Drąg
3e92a4fd17 Updated Polish translation 2016-08-22 23:54:12 +02:00
Mario Blättermann
a43ef0173a Updated German translation 2016-08-21 09:53:18 +00:00
Andika Triwidada
f884ba1024 Updated Indonesian translation 2016-08-15 04:51:31 +00:00
Andika Triwidada
2c8a8714ee Updated Indonesian translation
(cherry picked from commit 9d52c9b86e4f916804ae4fe20e768a4b2518837c)
2016-08-15 04:41:17 +00:00
Marek Cernocky
38606a4a3b Updated Czech translation 2016-08-14 00:15:23 +02:00
Aurimas Černius
1e9d713751 Updated Lithuanian translation 2016-08-02 22:35:44 +03:00
Daniel Mustieles
ce57748dd6 Updated Spanish translation 2016-08-02 16:46:22 +02:00
Christophe Fergeau
119b3a72f6 Update French translation 2016-07-19 18:16:38 +02:00
Piotr Drąg
540fef2fc4 Add Language headers to po files
Future versions of gettext will fail if this header is missing.
2016-07-17 17:31:13 +02:00
Andika Triwidada
a9091e058c Updated Indonesian translation
(cherry picked from commit 5b7217351fee4cec04c3cdae275f879b70ed3d0c)
2016-06-27 00:07:25 +00:00
Muhammet Kara
cf2dced0fa Updated Turkish translation 2016-06-26 04:50:39 +00:00
Juan Pablo Ugarte
f5c50d1b07 Fixed bug #767812 "Please don't list 'Taiwan' as 'Taiwan, Province of China' in the country list" 2016-06-19 15:54:54 -03:00
Cédric Valmary
47f2202cac Updated Occitan translation 2016-05-30 19:14:30 +00:00
Anders Jonsson
3baf51da67 Updated Swedish translation 2016-05-26 18:10:45 +00:00
Tiago Santos
274663d778 Updated Portuguese translation 2016-05-21 20:08:28 +00:00
Juan Pablo Ugarte
32165bc62e GladeEditor: fixed glade_editor_switch_page() signal connection.
Fixes bug #765562 "Using Spacebar to change menu selction causes crash"
2016-05-20 22:29:09 -03:00
Juan Pablo Ugarte
791970cd08 GladeGtkBox: adapted to new glade_gtk_box_notebook_child_insert_remove_action() api 2016-05-20 17:10:40 -03:00
Juan Pablo Ugarte
db6ab94348 GladeGtkNotebook: simplified glade_gtk_box_notebook_child_insert_remove_action() function params 2016-05-20 17:10:40 -03:00
Bastien Nocera
7ae104ef82 GladeGtkNotebook: Fix "format not a string literal" warning
glade-gtk-notebook.c: In function ‘glade_gtk_box_notebook_child_insert_remove_action’:
glade-gtk-notebook.c:988:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
   glade_command_push_group (group_format, glade_widget_get_name (parent));
   ^~~~~~~~~~~~~~~~~~~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=765612
2016-05-20 17:06:47 -03:00
Bastien Nocera
d9955f6cba GladeGtkTable: Fix "format not a string literal" warning
glade-gtk-table.c: In function ‘glade_gtk_table_child_insert_remove_action’:
glade-gtk-table.c:527:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
   glade_command_push_group (group_format, glade_widget_get_name (parent));
   ^~~~~~~~~~~~~~~~~~~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=765612
2016-05-20 17:06:47 -03:00
Bastien Nocera
c672658a16 GladeGtkGrid: Fix "format not a string literal" warning
glade-gtk-grid.c: In function ‘glade_gtk_grid_child_insert_remove_action’:
glade-gtk-grid.c:496:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
   glade_command_push_group (group_format, glade_widget_get_name (parent));
   ^~~~~~~~~~~~~~~~~~~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=765612
2016-05-20 17:06:47 -03:00
Bastien Nocera
f7213b7b6b GladeGtkListBox: Fix "format not a string literal" warning
glade-gtk-list-box.c: In function ‘glade_gtk_listbox_child_insert_action’:
glade-gtk-list-box.c:208:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
   glade_command_push_group (group_format, glade_widget_get_name (parent));
   ^~~~~~~~~~~~~~~~~~~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=765612
2016-05-20 17:06:47 -03:00
Bastien Nocera
8e0839568c GladeGtkFlowBox: Fix "format not a string literal" warning
glade-gtk-flow-box.c: In function ‘glade_gtk_flowbox_child_insert_action’:
glade-gtk-flow-box.c:205:3: error: format not a string literal, argument types not checked [-Werror=format-nonliteral]
   glade_command_push_group (group_format, glade_widget_get_name (parent));
   ^~~~~~~~~~~~~~~~~~~~~~~~

https://bugzilla.gnome.org/show_bug.cgi?id=765612
2016-05-20 17:06:47 -03:00
Juan Pablo Ugarte
9780bd7316 plugins/gtk+/glade-gtk-box.c: fixed casting warning 2016-05-20 17:06:47 -03:00
Juan Pablo Ugarte
eae2e01f74 GladeWidgetAdaptor: use a direct hash for the adaptor hash table by stuffing the GType into a pointer with GSIZE_TO_POINTER() 2016-05-18 21:14:46 -03:00
Richard Hughes
b8231a55df Upgrade the AppData file to 0.6v and add missing data 2016-05-18 11:26:00 +01:00
Enrico Nicoletto
5de4991812 Updated Brazilian Portuguese translation
(cherry picked from commit 64299aa91210813c146571935278022783cd2ae8)
2016-05-14 23:23:51 +00:00
Piotr Drąg
6431adef0b Updated Polish translation 2016-05-14 15:21:47 +03:00
Juan Pablo Ugarte
7b0aa01664 Fixed bug #765885 "client side decoration, no space to add header bar" 2016-05-13 19:07:43 -03:00
Cédric Valmary
4c1bf931a5 Updated Occitan translation 2016-05-08 19:34:05 +00:00
GNOME Translation Robot
5983b92af1 Updated Portuguese translation 2016-04-28 14:05:18 +00:00
Daniel Mustieles
7f336d49dd Updated Spanish translation 2016-04-27 21:02:07 +02:00
Balázs Meskó
bea318d901 Updated Hungarian translation 2016-04-26 09:40:24 +00:00
Roberto Guido
82426538eb Bug 589306 - Clicking in ... swap order of accelerators 2016-04-11 19:09:07 -03:00
Piotr Drąg
533fc04435 Updated POTFILES.in 2016-04-10 16:59:03 +02:00
Juan Pablo Ugarte
695ab6282a glade-previewer: adapted GladePreviewWindow as GladePreviewer to not longer pack toplevels inside a window
This avoids bug #761651 "[Wayland] glade previewer is resizing windows until it crashes gnome-shell"
2016-04-08 22:57:39 -03:00
Muhammet Kara
b540ffcc55 Updated Turkish translation 2016-04-04 12:38:01 +00:00
Juan Pablo Ugarte
74b21b316c Rolling 3.20 2016-03-22 15:24:04 -03:00
Juan Pablo Ugarte
dc486275bb tests/create-widgets.c: removed various test to make distcheck work.
I will make a release and fix them in master.
2016-03-22 15:24:03 -03:00
Juan Pablo Ugarte
ccb3a8c7dc tests/add-child.c: removed GtkTreeViewColumn test to make distcheck work for release 2016-03-22 15:24:02 -03:00
Juan Pablo Ugarte
0f262d28ea Removed GLADE_PIXMAP_DIR env from test environment because gtk_icon_theme_append_search_path() does not work if the path is not in a "proper" icon directory structure () 2016-03-22 15:24:01 -03:00
Juan Pablo Ugarte
1214a65af8 po/POTFILES.skip: Added workaround for intltool bug.
See https://bugs.launchpad.net/intltool/+bug/1117944
2016-03-22 15:24:00 -03:00
Juan Pablo Ugarte
f9fb45c791 GladeDesignLayout: fixed regresion drawing nodes and pushpin in margins and alginment edit modes.
_glade_design_layout_get_colors() removed context parameter.
2016-03-22 14:35:22 -03:00
Milo Casagrande
badaef0484 Updated Italian translation 2016-03-22 11:04:00 +00:00
Ask Hjorth Larsen
525fc886e3 Updated Danish translation 2016-03-20 22:47:29 +01:00
Ask Hjorth Larsen
2a3a08a4b3 Updated Danish translation 2016-03-20 22:46:37 +01:00
Juan Pablo Ugarte
47bf92b0a7 gladeui/glade-base-editor.c: relicense as LGPL 2016-03-14 23:36:20 -03:00
Juan Pablo Ugarte
a2a03330c0 gladeui/glade-design-layout.css: relicense as LGPL 2016-03-14 23:34:33 -03:00
Juan Pablo Ugarte
6428646fda Bumped reqired gtk+ verstion to 3.19.12 2016-03-14 23:31:38 -03:00
Juan Pablo Ugarte
d3aad6d1e7 GladeRegistration: updated to new class css name API 2016-03-14 23:31:38 -03:00
Juan Pablo Ugarte
ce3d607bef GladeDesignLayout: updated to new class css name API 2016-03-14 23:31:38 -03:00
Juan Pablo Ugarte
08529d9d86 GladeRegistration: get color properly for context style to draw glade logo 2016-03-14 19:18:55 -03:00
Juan Pablo Ugarte
eafe354d66 GladeDesignView: get color properly for context style to draw glade logo 2016-03-14 19:02:03 -03:00
Juan Pablo Ugarte
c695cc5a96 GladeDesignLayout: set border radius to 0 in selection 2016-03-14 18:31:39 -03:00
Juan Pablo Ugarte
59d1f46ea4 GladePlaceholder: on_chooser_adaptor_selected() destroy popup instead of widget chooser. 2016-03-14 18:05:33 -03:00
Juan Pablo Ugarte
00ed05155b GladeDesignView: on_chooser_adaptor_selected() destroy popup instead of widget chooser. 2016-03-14 18:05:33 -03:00
Juan Pablo Ugarte
b6d6b8928b GladeWindow: renamed gtk-key-bindings to -gtk-key-bindings in class custom css 2016-03-14 18:05:33 -03:00
Juan Pablo Ugarte
6726727b45 GladeDesignLayout: implemented selection box in css 2016-03-14 18:02:55 -03:00
Juan Pablo Ugarte
9e4b669d47 GladeDesignLayout: implemented frame using css 2016-03-14 17:38:35 -03:00
Juan Pablo Ugarte
285c1e2684 GladeRegistration: add css provider to default screen. 2016-03-14 17:38:35 -03:00
Tom Tryfonidis
59469766a3 Updated Greek translation 2016-03-14 20:18:51 +00:00
Aurimas Černius
9075fb7b6e Updated Lithuanian translation 2016-03-13 21:26:22 +02:00
Changwoo Ryu
ee36c3ce3e Updated Korean translation 2016-03-12 20:13:50 +00:00
Bernd Homuth
f6cc339b88 Updated German translation 2016-03-12 12:36:46 +00:00
Sebastian Rasmussen
e762f2c9a8 Updated Swedish translation 2016-03-07 13:11:41 +00:00
Sebastian Rasmussen
f43f9c055c Updated Swedish translation 2016-03-07 13:08:05 +00:00
Gábor Kelemen
96f5288986 Updated Hungarian translation 2016-03-04 08:05:30 +00:00
Daniel Mustieles
7f009c3563 Updated Spanish translation 2016-03-02 21:35:06 +01:00
Efstathios Iosifidis
fc8e0dd5d6 Updated Greek translation 2016-03-01 14:12:40 +00:00
Marek Černocký
398337ff54 Updated Czech translation 2016-03-01 12:19:02 +01:00
Marek Černocký
00c9a27a23 Updated Czech translation 2016-03-01 10:40:37 +01:00
Cédric Valmary
afcd847874 Updated Occitan translation 2016-02-28 22:19:05 +00:00
Cédric Valmary
579d702b80 Updated Occitan translation 2016-02-28 22:05:20 +00:00
Juan Pablo Ugarte
cfc436b7ce HACKING renamed as CONTRIBUTING.md and added as a link. 2016-02-27 11:26:33 -03:00
Juan Pablo Ugarte
7e5dfa8ccd CONTRIBUTING.md: added link to HACKING file so that git mirrors pick it up when an user tries to create a pull request 2016-02-27 11:17:38 -03:00
Juan Pablo Ugarte
a164c9416e HACKING: added note about pull request in mirrors 2016-02-27 11:17:38 -03:00
Juan Pablo Ugarte
5610c1d56d plugins/python/glade-python.c: Make sure we load Gtk 3 2016-02-27 11:11:53 -03:00
Fran Dieguez
9708d81887 Updated Galician translations 2016-02-24 15:22:36 +01:00
Мирослав Николић
6ea20d1b17 Updated Serbian translation 2016-02-20 11:38:50 +01:00
Ben Iofel
8953d805f4 GtkWindow: don't set the same titlebar multiple times 2016-02-17 19:45:15 -03:00
Mario Blättermann
ea1464d764 Updated German doc translation 2016-02-16 19:48:47 +01:00
Daniel Mustieles
6ad6ff72de Updated Spanish translation 2016-02-13 18:53:49 +01:00
Chao-Hsiung Liao
9413e71628 Updated Chinese (Taiwan) translation 2016-02-13 06:50:48 +00:00
Rūdolfs Mazurs
4ae14c1689 Update Latvian translation 2016-02-11 23:02:36 +02:00
Anders Jonsson
687af66e2f Bug 761839: Fix 'glade' command name in user manual 2016-02-11 17:05:56 +09:00
Rafael Fontenelle
2ad3ff1003 Updated Brazilian Portuguese translation 2016-02-10 17:20:30 +00:00
Baurzhan Muftakhidinov
26abe861c7 Updated Kazakh translation 2016-02-09 10:37:30 +00:00
Ask Hjorth Larsen
73d5b11178 Updated Danish translation 2016-02-07 16:42:29 +01:00
Balázs Úr
f227ea84c0 Updated Hungarian translation 2016-02-07 15:07:14 +00:00
Daniel Mustieles
4e61d4a08c Updated Spanish translation 2016-02-07 13:14:29 +01:00
Piotr Drąg
a93e4c4521 Updated Polish translation 2016-02-06 22:04:44 +01:00
Piotr Drąg
b74ba26a92 Fix typo (ellispize) 2016-02-06 21:59:02 +01:00
Mario Blättermann
fb06444270 Updated German translation 2016-02-01 20:10:10 +01:00
Daniel Mustieles
a0225866f7 Updated Spanish translation 2016-01-31 22:24:43 +01:00
Gábor Kelemen
5b721ecf1f Updated Hungarian translation 2016-01-29 22:21:56 +00:00
Tristan Van Berkom
276a16f4bd Bug 536840 - Save palette small icon preference 2016-01-29 18:09:21 +01:00
Tristan Van Berkom
fcae2de874 Bug 430445 - null string default title for GtkFileChooserButton
Actually, the title displayed is introspected from the filechooser button
and takes whatever happens to be set by GTK+ in the given locale.

Just null it out and let the user set a title.
2016-01-29 17:53:01 +01:00
Tristan Van Berkom
876f8f175a Ugly hack to restore paned positions
When we maximize the window, usually an idle is enough until it's
safe to start manipulating the stored paned window positions.

Now, 200ms seems to be enough.

This fixes restoring of paned window positions, if you exit Glade
cleanly by quitting Glade, it should restore the app in the same
state it was (undocked window positions and paned positions)
2016-01-29 16:07:30 +01:00
Tristan Van Berkom
81920d5616 GladePreviewer: Update window title with (unnamed) if need be 2016-01-29 15:10:47 +01:00
Tristan Van Berkom
d6b334384a GladeWidget: Write the hidden IDs out when previewing
For the previewer, we need the name of the widget we're gonna
preview, even if we dont serialize it in the real output
2016-01-29 15:10:00 +01:00
Tristan Van Berkom
98954a4e3a GladeProject: Identify when we are serializing for a preview 2016-01-29 15:09:37 +01:00
Tristan Van Berkom
d6cac38bc8 GtkStackSwitcher: Integrate new icon-size property 2016-01-29 14:19:18 +01:00
Tristan Van Berkom
9eb15655c6 GtkPopover: Integrating new properties 2016-01-29 13:23:18 +01:00
Tristan Van Berkom
415e90d0c7 GtkTextView: Integrating new margin properties
Top margin and bottom margin are since 3.18 and get placed
beside the left and right margin properties
2016-01-29 13:05:17 +01:00
Tristan Van Berkom
65ed7ce459 gtk+.xml.in: Updating since tags for newly added properties and signals 2016-01-29 13:00:42 +01:00
Tristan Van Berkom
249d09ee31 GtkLabel: Integrate the "lines" property nicely
This property is only relevant when ellipsizing and
word wrapping are enabled, make it insensitive when
not relevant and place it beside the wrap-mode property.
2016-01-29 12:45:47 +01:00
Tristan Van Berkom
f057918143 Bug 750985 - GtkMisc property deprecations
o Mark xalign/yalign/xpad/ypad as deprecated everywhere

  o Remove save-always for xalign

  o Make them all optional with optional default False, this
    has the side effect that if the property is set, it will
    be serialized in the output regardless of value, so we
    dont need the save-always anymore.

We required save-always on xalign of some buttons because of bug 675042
2016-01-29 12:45:47 +01:00
Tristan Van Berkom
f552f1e2dc Bug 759872 - Show popovers hidden by model buttons
Model button enjoys hiding popover ancestors when clicked,
just go ahead and re-show the hidden popovers in that case.
2016-01-29 12:45:47 +01:00
Juan Pablo Ugarte
cb60d287df GladeRegistration: improved theme compatibility by using css theme colors. 2016-01-29 08:38:55 -03:00
Tristan Van Berkom
88acef6022 Bug 751234 - Ignore tearoff-state property in the workspace
Dont let menus float away into the desktop
2016-01-28 17:15:19 +01:00
Juan Pablo Ugarte
0b07d924b2 GladeDesignView: always render glade log as background using transprent fg color 2016-01-28 13:04:19 -03:00
Juan Pablo Ugarte
4de9f13e48 GladeRegistration: fixed textview minimun height, set them to 64 2016-01-28 13:04:19 -03:00
Tristan Van Berkom
08a976717c Bug 759455 - Avoid showing window decorations in Glade's workspace
On wayland, or when GTK_CSD=1 is set, the windows have decorations
in the workspace, exposing pesky close buttons that close glade.
2016-01-28 16:56:09 +01:00
Tristan Van Berkom
31a5461f8a glade-gtk-popover-menu.c: Properly derive the GtkPopover adaptor
Chain up to popover implementations, in post create dont bother
creating the placeholder, it will be done by the GtkContainer adaptor.

Chaining up in post create here lets us properly ignore the ESC key
event on popovers in the workspace as well.
2016-01-28 16:49:44 +01:00
Tristan Van Berkom
47c50da139 Bug 759395 - Ignore ESC key press from popovers 2016-01-28 16:48:53 +01:00
Tristan Van Berkom
e85787ad98 glade-gtk-info-bar.c: Ensure names of action widgets at save time
Also fix a bug where action-widgets was being serialized twice.
2016-01-28 16:18:41 +01:00
Tristan Van Berkom
271e466d74 glade-gtk-dialog.c: Ensure names of action widgets at save time 2016-01-28 16:18:41 +01:00
Tristan Van Berkom
49f93cc5c8 glade-gtk-action-widgets.[ch]: Added a function to ensure action widget names
When saving dialogs and infobars, we just work around the problem and ensure
that buttons with response ids enabled in the action area have names, not undoably.
2016-01-28 16:18:41 +01:00
Tristan Van Berkom
e96488deba GladeEditorProperty: Call glade_widget_ensure_name() with use_command 2016-01-28 16:18:41 +01:00
Tristan Van Berkom
5fa3ed76fb GladeWidget: Added use_command argument to new glade_widget_ensure_name() API 2016-01-28 16:18:41 +01:00
Juan Pablo Ugarte
ec31ae5827 GladeInspector: use new api to check if a widget has a name 2016-01-28 10:48:59 -03:00
Juan Pablo Ugarte
1522c95d5d GladeDesignLayout: use new api to check if a widget has a name 2016-01-28 10:48:59 -03:00
Juan Pablo Ugarte
f4454400f4 GladeEditor: use new api to check if a widget has a name 2016-01-28 10:48:59 -03:00
Juan Pablo Ugarte
ba5b5f9e2e gladeui/glade-project.h: fixed enum comment 2016-01-28 10:48:59 -03:00
Juan Pablo Ugarte
915773fb5c GladeInspector: added inspector_set_complete_text() function to optimize search by not casefolding the needle each time we need to search for it. 2016-01-28 10:48:59 -03:00
Tristan Van Berkom
094997593c Bug 760610: Disable scroll events on property editor widgets
As described in the bug, this is only harmful and annoying that
combo boxes handle scroll events, of course, the whole purpose
of combo boxes is to place them inside scrolled windows ;-)
2016-01-28 14:30:42 +01:00
Tristan Van Berkom
4db116636e GladeEditorProperty: Use glade_widget_get_display_name() 2016-01-28 12:56:01 +01:00
Tristan Van Berkom
5281edc1e4 GladeEditorTable: Use glade_widget_has_name() in some places
Instead of strncmp()
2016-01-28 12:45:02 +01:00
Tristan Van Berkom
07d0bf3b42 GladeWidget: Use glade_widget_has_name()
In some places, instead of strncmp() directly
2016-01-28 12:38:44 +01:00
Tristan Van Berkom
e7430cc302 GladeEditor: Update the widget name in a property editor dialog
For the ones spawned specifically for a given widget
2016-01-28 12:11:44 +01:00
Tristan Van Berkom
691b7bea15 GladeBaseEditor: Fixed name/ID editing to handle unnamed widgets 2016-01-28 11:59:46 +01:00
Tristan Van Berkom
910973211e glade-base-editor.c: Display (unnamed) instead of __glade_... for unnamed widgets
By default, trim the display string after the get-display-name signal
runs and substitute it for (unnamed) if it wants to display an unnamed
widget ID.
2016-01-28 11:47:35 +01:00
Tristan Van Berkom
61e9156b91 GladeWidget: Added new name related APIs
o glade_widget_get_display_name()

    Gets the name which should be displayed in the UI

  o glade_widget_has_name()

    Checks whether the user has assigned a name to the widget or not.
2016-01-28 11:47:35 +01:00
Juan Pablo Ugarte
5a13b8982c GladeInspector: skip unnamed widgets in search 2016-01-28 07:23:42 -03:00
Mario Blättermann
5f991d2d80 Updated German translation 2016-01-27 19:59:30 +01:00
Tristan Van Berkom
362dbdd61d glade-gtk-widget.c: Support unnamed widgets in sizegroup actions
Ensure that adding a widget to a sizegroup results in the new referred
to widget having a name.
2016-01-27 18:40:18 +01:00
Juan Pablo Ugarte
2312da5e70 GladeEditor: do not show unnamed widgets in header 2016-01-27 14:13:18 -03:00
Tristan Van Berkom
4ef1765124 GladeEditorProperty: Dont display unnamed names in treeviews
When selecting objects for reference in a treeview, show "(unnamed)"
instead of __glade_unnamed_1 or such.
2016-01-27 17:47:17 +01:00
Tristan Van Berkom
fa18850038 GladeEditorTable: Adjusting name/ID edit rules.
Now you are allowed to clear the widget ID as long as
that widget is not referred to by anything else in the
project.
2016-01-27 17:47:17 +01:00
Tristan Van Berkom
a784c69aa6 GladeWidget: Added glade_widget_has_prop_refs()
Check if there are property references to a widget without duplicating the list.
2016-01-27 17:47:17 +01:00
Juan Pablo Ugarte
eaf809714f GladeDesignView: show class name if widget is unnamed 2016-01-27 13:39:49 -03:00
Juan Pablo Ugarte
779dd7a994 GladeInspector: do not show widget name if its unnamed (has prefix __glade_unnamed_) 2016-01-27 13:18:29 -03:00
Tristan Van Berkom
b448b883c1 GladeEditorProperty: Set names on selected widgets in the multi-object dialog
Ensure that the selected list of objects have names
2016-01-27 17:13:13 +01:00
Tristan Van Berkom
1069f10b5b Added glade_widget_ensure_name()
A function to set real names on widgets unconditionally
if they dont actually have names but only a prefix
2016-01-27 17:12:17 +01:00
Tristan Van Berkom
9c91cd5ca8 GladeEPropObject: Set names when choosing an object
When an object property is set, set the widget name of the object.
2016-01-27 16:50:33 +01:00
Tristan Van Berkom
1963ca5f81 GladeWidget: Dont require widget ids
Create widgets initially with a special glade defined 'unnamed' prefix,
if a widget ID has this prefix, dont save it in the output
2016-01-27 15:01:45 +01:00
Tristan Van Berkom
9e7585c0a6 GladeProject: redocument glade_project_new_widget_name()
Now does not require the gwidget (actually did not for a long time).
2016-01-27 14:55:20 +01:00
Tristan Van Berkom
f482bec02e glade-name-context.[ch]: Removing glade_name_context_dual_new_name()
This is an artifact from older glades which supported name collisions
in separate toplevel windows within the same glade file.
2016-01-27 12:35:44 +01:00
Richard Hughes
882dda3909 Add a missing tag to the AppData file 2016-01-25 16:28:33 +00:00
Rafael Fontenelle
1db05d07f7 Updated Brazilian Portuguese translation 2016-01-25 14:19:46 +00:00
Richard Hughes
4004db17cd Add a missing tag to the AppData file 2016-01-25 13:11:19 +00:00
Aurimas Černius
0e8a1d9ec5 Updated Lithuanian translation 2016-01-22 21:40:21 +02:00
Daniel Mustieles
41148f7185 Updated Spanish translation 2016-01-18 19:01:32 +01:00
Piotr Drąg
8c12b8120b Fix typo (Forth) 2016-01-08 12:33:51 +01:00
Mario Blättermann
1fa6a8a766 Updated German translation 2016-01-05 22:20:52 +00:00
Руслан Ижбулатов
4c46b200e3 Don't crash when popover menu children have no visible-submenu set
https://bugzilla.gnome.org/show_bug.cgi?id=759847
2015-12-26 16:17:49 +09:00
Marek Černocký
3a58fe8ae0 Updated Czech translation 2015-12-25 00:29:18 +01:00
Matthias Clasen
bbee87328f Update TODO 2015-12-21 12:05:07 -05:00
Daniel Mustieles
4cac36ffeb Updated Spanish translation 2015-12-21 08:33:53 +00:00
Piotr Drąg
ac5fe2a81c Updated POTFILES.in 2015-12-21 05:11:42 +01:00
Tristan Van Berkom
f86bdcb729 Removed duplicate displayable values for GtkPackType
These were added with GtkActionBar
2015-12-21 12:40:06 +09:00
Tristan Van Berkom
ca346336d9 Removed some unneeded listbox/flowbox related declarations
o Removed duplicate declaration of GtkListBoxRow

  o Removed redundant declaration of displayable values
    for the GtkSelectionMode type (they were previously
    declared by GtkListBox)
2015-12-21 12:16:20 +09:00
Matthias Clasen
7775dc5512 Support GtkFlowBox 2015-12-21 11:59:14 +09:00
Piotr Drąg
0dbc96b70b Updated POTFILES.in 2015-12-20 23:58:25 +01:00
Matthias Clasen
854ca34b74 Update TODO 2015-12-20 16:09:11 -05:00
Matthias Clasen
0c3658f962 Support GtkActionBar 2015-12-20 16:09:11 -05:00
Tristan Van Berkom
942d34cb22 Main UI frontend: Use wide paned handles.
Its almost impossible to resize these things without any width to grab.
2015-12-20 17:44:01 +09:00
Matthias Clasen
52673d3ded TODO: Some updates 2015-12-20 01:28:17 -05:00
Pedro Albuquerque
971951313c Updated Portuguese translation 2015-12-19 07:40:30 +00:00
Daniel Mustieles
4f81f15467 Updated Spanish translation 2015-12-14 15:18:06 +00:00
Tristan Van Berkom
aaebdb3daa Reverting change from notebook-actions branch merge.
It seems Matthias was testing headerbars in dialogs as was
suggested in the WONTFIX'ed bug 757562. Reverting the enabling
of headerbars in dialogs.

Also updated the comment in gtk+.xml.in around the headerbar
disabling, originally it was because it was unsupported (yet),
now it is because dialogs own their headerbars.
2015-12-14 15:28:58 +09:00
Tristan Van Berkom
a190f19ed7 glade-gtk-notebook.c: Fixed warning about imbalanced children
Now that there is a new special child type, only remove "tab"
widgets when extracting the children. This ugly loop is there
to ensure that the right tab is matched with it's page when
changing the notebook children during undo/redo, and also to
handle the case where positions of notebook tabs are not
specified in the datamodel (yet) because the notebook is
being loaded from a file and the appearance of tabs in
the loaded file should be used.

In any case, this small commit fixes the undo/redo console
warnings when undoing/redoing the addition/removal of children
from the new start action / end action positions.
2015-12-14 15:20:34 +09:00
Matthias Clasen
5363351b2f Support notebook actions 2015-12-14 15:20:34 +09:00
Pedro Albuquerque
7c2afbd825 Updated Portuguese translation 2015-12-13 08:29:02 +00:00
Matthias Clasen
0c076cc882 Fix use of GTK+ style context APIs
Make sure to save the style context before querying
with other states. This stops GTK+ from warning, and
makes things work.
2015-12-11 15:37:49 -05:00
Ben Iofel
ed15bde7cd Remove duplicate GtkPopover in widget list 2015-12-10 19:25:03 -05:00
Piotr Drąg
2eeeb2896e Updated POTFILES.in 2015-12-10 23:16:48 +01:00
Matthias Clasen
f29a687192 Don't clear selection too eagerly
When the current submenu in a GtkPopoverMenu is selected, and we
are editing its submenu child property, we get change notification
for the popovers visible-submenu property. Don't clear the selection
in this case because the visible submenu did not actually change
to a different widget, it just changed its name.
2015-12-10 16:14:27 -05:00
Matthias Clasen
76d0d030cb popover menu editor: Fix wrong reference
There is no embed widget in the ui file, so don't refer to one.
2015-12-10 16:14:27 -05:00
Matthias Clasen
94065c00c1 GladeWidget: Avoid inconsistent state during dispose
The dispose code was throwing away the list of properties
without clearing out the quick-access hash table, so getters
could still return already-freed property objects. This
was causing the popover code to crash.
2015-12-10 16:14:27 -05:00
Matthias Clasen
0b818d0176 Add since attributes
GtkPopover was introduced in 3.12, GtkPopoverMenu and GtkModelButton
are coming in 3.16.
2015-12-10 16:14:27 -05:00
Matthias Clasen
90dd04f495 Disable some model button properties
Disable the ::icon and ::iconic properties until there
is a proper editor for GIcons.
2015-12-10 16:14:26 -05:00
Matthias Clasen
b65e92f9f3 Move GtkModelButton to a better place in the palette
It belongs to the other buttons, so move it there.
2015-12-10 16:14:26 -05:00
Matthias Clasen
aa3d861ad2 Add an icon for GtkModelButton
This should serve as the final proof that you don't let your
developers draw icons...
2015-12-10 16:14:26 -05:00
Matthias Clasen
104168b917 Refuse to add popovers to another containers
It doesn't make sense to allow this.
2015-12-10 16:14:26 -05:00
Matthias Clasen
fa312a67dc Mark popovers as toplevels
This change makes glade create a popover when the user clicks
on the button in the palette, which is the expected behavior.
2015-12-10 16:14:26 -05:00
Matthias Clasen
bc6bf8e5f1 Set visible to False for popovers
With respect to visibility, popovers should be treated like
toplevels: It takes an explicit action to show them.
2015-12-10 16:14:26 -05:00
Matthias Clasen
75ac748f67 Allow creating themed icons 2015-12-10 16:14:26 -05:00
Matthias Clasen
963c076255 Initial GtkModelButton support 2015-12-10 16:14:26 -05:00
Matthias Clasen
99eb7211ec Handle submenu changes better
Deal with 'spontaneous' changes of the visible submenu. This will
happen once we add model buttons.
2015-12-10 16:14:26 -05:00
Matthias Clasen
115bad7c53 Add an editor for GtkPopoverMenu 2015-12-10 16:14:26 -05:00
Matthias Clasen
f0a5bed8cd Make submenu switching work from the tree
Ensure that the submenu containing the currently selected widget is
visible.
2015-12-10 16:14:25 -05:00
Matthias Clasen
63de4bc14b Initial GtkPopoverMenu support
Add GtkPopoverMenu with two virtual properties, one for the number
of menus, and one for the currently edited menu.
2015-12-10 16:14:25 -05:00
Matthias Clasen
4e97ffeb6c Add an editor for GtkPopover 2015-12-10 16:14:25 -05:00
Matthias Clasen
1b65635082 Move popovers to the container section
Makes more sense there.
2015-12-10 16:14:25 -05:00
Matthias Clasen
db0567a53a Add support for GtkPopover
This is pretty bare-bones at the moment.

https://bugzilla.gnome.org/show_bug.cgi?id=740104
2015-12-10 16:14:05 -05:00
Tristan Van Berkom
0ed81f09e5 Bug 754131: Avoid crashes when loading boxes with center-child children
Patch by Juan Pablo Ugarte
2015-12-09 13:17:08 +09:00
Pedro Albuquerque
472d652691 Updated Portuguese translation 2015-12-05 07:52:41 +00:00
Juan Pablo Ugarte
87192dcb61 data/glade.appdata.xml.in: added <kudos> section to app data as requested by Richard Hughes. 2015-12-03 19:14:11 -03:00
Daniel Mustieles
4aed1c7491 Updated Spanish translation 2015-12-02 21:06:39 +01:00
Anders Jonsson
9453da66c7 Fix a typo
https://bugzilla.gnome.org/show_bug.cgi?id=741552
2015-12-01 06:22:13 -05:00
Matthias Clasen
be97b72da2 Add GDK_TOUCHPAD_GESTURE_MASK
This is a new addition to the GdkEventMask enum.

https://bugzilla.gnome.org/show_bug.cgi?id=758287
2015-12-01 06:20:51 -05:00
Matthias Clasen
ec9813ad7b Add missing AtkAccessibleRole enum values
Some of these have appeared in the last year or so.

https://bugzilla.gnome.org/show_bug.cgi?id=758288
2015-12-01 06:19:38 -05:00
Matthias Clasen
114c2ff797 Add GTK_INPUT_HINT_VERTICAL_WRITING
This value was added to the GtkInputHints enum in 3.18.

https://bugzilla.gnome.org/show_bug.cgi?id=758289
2015-12-01 06:18:25 -05:00
Matthias Clasen
ffe425069e Add GTK_POLICY_EXTERNAL
This value has been added to the GtkPolicyType enum in 3.16.

https://bugzilla.gnome.org/show_bug.cgi?id=758290
2015-12-01 06:18:06 -05:00
Aurimas Černius
2768570bab Fixed errors in Lithuanian translation 2015-11-28 18:01:31 +02:00
Ben Iofel
1fa6269af5 Deprecate GtkAction, GtkActivatable, and friends
GtkAction has been deprecated since GTK 3.10, so this commit marks it deprecated
and moves the widgets into the 'Deprecated' section.  This also deprecates all
the GtkActivatable properties (e.g. look at the properties of a GtkButton in
glade).

https://bugzilla.gnome.org/show_bug.cgi?id=757609
2015-11-27 02:21:20 -05:00
Matthias Clasen
6475f26dfe string list: Avoid GTK+ warnings
GTK+ warns nowadays if the state passed to gtk_style_context_get_*
does not match the state of the context. Avoid this by setting
the state beforehand.

https://bugzilla.gnome.org/show_bug.cgi?id=758300
2015-11-25 22:22:05 -05:00
Matthias Clasen
3604a2a9fc signal editor: Avoid GTK+ warnings
GTK+ warns nowadays if the state passed to gtk_style_context_get_*
does not match the state of the context. Avoid this by setting
the state beforehand. This is just a bandaid fix; the drawing
should be redone in terms of gtk_render_ APIs instead of poking
at colors.

https://bugzilla.gnome.org/show_bug.cgi?id=758299
2015-11-25 22:22:05 -05:00
Matthias Clasen
23d5293d22 dnd: Avoid GTK+ warnings
GTK+ warns nowadays if the state passed to gtk_style_context_get_*
does not match the state of the context. Avoid this by using the
state of the context.

https://bugzilla.gnome.org/show_bug.cgi?id=758297
2015-11-25 22:19:33 -05:00
Matthias Clasen
b2c94a56a4 GladeDesignLayout: Avoid GTK+ warnings
GTK+ warns nowadays if the state passed to gtk_style_context_get_*
does not match the state of the context. Avoid this by setting
the state beforehand. This is just a bandaid fix; the drawing
should be redone in terms of gtk_render_ APIs instead of poking
at colors.

https://bugzilla.gnome.org/show_bug.cgi?id=758296
2015-11-25 22:19:33 -05:00
Matthias Clasen
74e95093a3 Drop deprecated style properties
These have no effect anymore, other than causing warnings.

https://bugzilla.gnome.org/show_bug.cgi?id=758280
2015-11-25 22:19:33 -05:00
Pedro Albuquerque
5483094959 Updated Portuguese translation 2015-11-25 07:06:26 +00:00
Pedro Albuquerque
e01a11334f Updated Portuguese translation 2015-11-25 07:05:25 +00:00
Ben Iofel
99334e065d Replace use of deprecated gdk_cursor_new
use gdk_cursor_new_from_name instead
2015-11-18 15:36:03 -05:00
Wolfgang Stöggl
8dd0bdbf3f Updated German translation 2015-11-08 12:14:01 +00:00
Steve Jonghee Yun
e7131b1a16 Added Korean help translation 2015-11-05 09:48:43 +09:00
Ben Iofel
364f86b3fb Fix typo in gtk+.xml.in 2015-11-04 16:21:06 -05:00
Ben Iofel
4485e56994 GtkButton: fix typo 2015-11-03 21:46:48 -05:00
Marek Černocký
1697e11563 Updated Czech translation 2015-10-25 00:38:33 +02:00
Jiri Grönroos
344f9fba52 Updated Finnish translation 2015-10-06 16:51:50 +00:00
Милош Поповић
14eebf6846 Updated Serbian Latin translation 2015-09-23 08:33:07 +00:00
Марко Костић
d8a1adbdfd Updated Serbian translation 2015-09-23 08:32:11 +00:00
Ask Hjorth Larsen
33b6371f47 Updated Danish translation 2015-09-20 20:19:45 +02:00
Rafael Fontenelle
e45b06a2c7 Updated Brazilian Portuguese translation 2015-09-20 14:57:11 +00:00
Piotr Drąg
7524d1446f Fix typo in Esperanto translation
https://bugzilla.gnome.org/show_bug.cgi?id=721585
2015-09-13 02:51:42 +02:00
Muhammet Kara
42613e6bd3 Updated Turkish translation 2015-09-12 22:29:08 +00:00
Matej Urbančič
0058eaf78d Updated Slovenian translation 2015-09-08 23:19:09 +02:00
Changwoo Ryu
8ef91c36dd Updated Korean translation 2015-09-09 01:33:05 +09:00
Aurimas Černius
ef51eba975 Updated Lithuanian translation 2015-09-07 17:50:10 +03:00
Claudio Arseni
a22dec8a43 Updated Italian translation 2015-09-04 07:34:02 +00:00
Friedrich Herbst
7d19a1f3c5 Updated German translation 2015-09-03 20:39:28 +00:00
Dušan Kazik
ed55a77335 Updated Slovak translation 2015-09-01 09:01:07 +00:00
Tom Tryfonidis
f752401855 Updated Greek translation 2015-08-28 20:50:30 +00:00
Chao-Hsiung Liao
c3479092d0 Updated Chinese (Taiwan) translation 2015-08-25 22:47:44 +00:00
Florian Richter
ab46b4ecfb Add "Stack" to "Add parent" menu
https://bugzilla.gnome.org/show_bug.cgi?id=754030
2015-08-25 18:05:33 -03:00
Philip Withnall
7f4a5f8535 build: Add dependency on libm for floor() and ceil()
libgladeui depends on libm.

https://bugzilla.gnome.org/show_bug.cgi?id=741923
2015-08-25 18:05:28 -03:00
Piotr Drąg
808cb7d7a5 Updated Polish translation 2015-08-25 21:32:24 +02:00
Fran Dieguez
b272d12f9a Updated Galician translations 2015-08-19 00:59:49 +02:00
Alexandre Franke
5f87ba0141 Updated French translation 2015-08-15 11:34:08 +00:00
Marek Černocký
471c263282 Updated Czech translation 2015-07-25 03:22:29 +02:00
Anders Jonsson
2d7b3ab373 Updated Swedish translation 2015-07-06 08:01:59 +00:00
Pedro Albuquerque
e9ec92c945 Updated Portuguese translation 2015-07-04 08:00:42 +00:00
Philip Withnall
05b28f0395 doc: Remove unnecessary whitespace in documentation examples
Also add a missing XML header.

https://bugzilla.gnome.org/show_bug.cgi?id=751648
2015-07-03 18:34:19 +01:00
Pedro Albuquerque
08d02fe037 Updated Portuguese translation 2015-06-29 22:43:20 +00:00
Balázs Úr
e89930a375 Updated Hungarian translation 2015-06-22 22:00:43 +00:00
Daniel Mustieles
f75d46df36 Updated Spanish translation 2015-06-15 08:51:09 +00:00
Kalev Lember
784e3626ec Fix a syntax error in desktop file keywords Bosnian translation 2015-06-15 08:43:37 +02:00
Juan Pablo Ugarte
fd0df9103f Rolling development snapshot 3.19.0 2015-06-11 17:46:31 -03:00
Juan Pablo Ugarte
503ed92e11 configure.ac: bumped GTK dependency to 3.16.0 2015-06-11 16:47:04 -03:00
Juan Pablo Ugarte
e4986382f1 plugins/gtk+/gtk+.xml.in: removed GtkPackType displayable values redefinition 2015-06-11 16:46:22 -03:00
Juan Pablo Ugarte
53e87c3bde data/icons/hicolor/Makefile.am: added scalable directory 2015-06-11 16:30:41 -03:00
Piotr Drąg
6002a398df Updated Polish translation 2015-06-11 21:12:58 +02:00
Juan Pablo Ugarte
db9c3b24b0 src/glade.glade: bumped copyright year 2015-06-11 15:58:10 -03:00
Juan Pablo Ugarte
7bd059da42 plugins/python/glade-python.c: add extra catalog paths to python path.
General cleanup to reduce Python 3 specific code.
2015-06-10 21:08:33 -03:00
Juan Pablo Ugarte
f7a6f46863 gladeui/glade-catalog.[ch]: added glade_catalog_get_extra_paths() function. 2015-06-10 21:07:56 -03:00
Bohuslav "Slavek" Kabrda
66c6d21d7a plugins/python/glade-python.c: add support for Python 3. 2015-06-10 18:11:22 -03:00
Cédric Valmary
dfed45a7a7 Updated Occitan translation 2015-05-20 20:17:46 +00:00
Marek Černocký
40ab3dda74 Updated Czech translation 2015-05-16 08:21:35 +02:00
Marek Černocký
55f8a6d699 Updated Czech translation 2015-05-10 14:25:50 +02:00
Marek Černocký
c57390496d Updated Czech translation 2015-05-10 12:01:18 +02:00
Enrico Nicoletto
5f178e8955 Updated Brazilian Portuguese translation 2015-05-04 17:59:50 +00:00
Felipe Braga
befa68b29a Updated Brazilian Portuguese translation 2015-05-04 17:42:29 +00:00
Jakub Steiner
d1320b4eb4 icon: provide a symbolic variant of the app icon
gnome 3.16+ uses a recolorable symbolic variant
for the high contrast theme.

https://bugzilla.gnome.org/show_bug.cgi?id=747024
2015-04-28 13:08:47 -04:00
Matej Urbančič
bdb744d236 Updated Slovenian translation 2015-04-12 21:18:13 +02:00
Matej Urbančič
92ef7e0cb3 Updated Slovenian translation 2015-03-31 21:08:44 +02:00
Matej Urbančič
3687bdfda2 Updated Slovenian translation 2015-03-29 22:01:50 +02:00
Claudio Arseni
110b279c25 Updated Italian translation 2015-03-23 08:48:23 +00:00
Josef Andersson
9043f38bcf Updated Swedish translation 2015-03-21 16:17:34 +00:00
Baurzhan Muftakhidinov
4e1fc2eb9e Updated Kazakh translation 2015-03-15 17:42:27 +00:00
Ask Hjorth Larsen
f6564bf1a2 Updated Danish translation 2015-03-15 16:26:05 +01:00
Matej Urbančič
a57439434b Updated Slovenian translation 2015-03-15 14:44:03 +01:00
Ask Hjorth Larsen
269fcfd863 Updated Danish translation 2015-03-15 14:39:44 +01:00
Samir Ribic
fe328823fe Added Bosnian translation 2015-03-13 20:57:01 +00:00
Мирослав Николић
f4b1786a90 Updated Serbian translation 2015-03-13 09:19:35 +01:00
Alain Lojewski
dfd6307dd4 Updated French translation 2015-03-09 08:32:27 +00:00
Josef Andersson
13c7c476c4 Updated Swedish translation 2015-03-08 12:47:04 +00:00
Josef Andersson
585aaf8dc8 Updated Swedish translation 2015-03-08 09:58:58 +00:00
Changwoo Ryu
536fef15a0 Updated Korean translation 2015-03-08 03:17:46 +09:00
Piotr Drąg
27b9a6e5ad Updated Polish translation 2015-03-06 18:43:38 +01:00
Piotr Drąg
7430514bd3 Updated Polish translation 2015-03-05 19:35:06 +01:00
Marek Černocký
684745571d Updated Czech translation 2015-03-02 21:32:46 +01:00
Matthias Clasen
f9c3c32b81 Add a translator comment
The wording here is a bit awkward, and it is not obvious
is "Setting" is a verb or a noun.
2015-03-02 13:27:34 -05:00
Tom Tryfonidis
151244015a Updated Greek translation 2015-03-01 10:25:49 +00:00
Aurimas Černius
4984b8ce07 Updated Lithuanian translation 2015-02-28 00:36:38 +02:00
Cheng-Chia Tseng
349a094fc0 Updated Chinese (Taiwan) translation 2015-02-26 14:42:59 +00:00
Chao-Hsiung Liao
b5b15d7ba2 Updated Chinese (Taiwan) translation 2015-02-21 11:08:27 +00:00
Necdet Yücel
9b64bcbdaa Updated Turkish translation 2015-02-20 08:58:41 +00:00
Fran Dieguez
32e03f36ce Updated Galician translations 2015-02-19 11:20:07 +01:00
Yuri Myasoedov
a2a24b98f9 Updated Russian translation 2015-02-18 20:36:35 +03:00
Daniel Mustieles
becad60aa1 Updated Spanish translation 2015-02-17 18:33:24 +01:00
Balázs Úr
0900fff20a Updated Hungarian translation 2015-02-15 12:38:57 +00:00
Lars Uebernickel
1ada3430af Rename GtkSidebar to GtkSidebarWidget
https://bugzilla.gnome.org/show_bug.cgi?id=744094
2015-02-13 18:03:26 +01:00
Kjartan Maraas
d2b4ae72ec Updated Norwegian bokmål translation. 2015-02-12 01:11:47 +01:00
Matthias Clasen
c4cea7f935 GtkStack: Survive loading an empty stack
The code in glade_gtk_stack_add_child was not robust enough
against disappearing placeholders.

https://bugzilla.gnome.org/show_bug.cgi?id=740668
2015-01-18 13:31:40 -05:00
Fran Dieguez
7a813a6d81 Updated Galician translations 2015-01-12 20:17:55 +01:00
Gábor Kelemen
f9d5914b2e Updated Hungarian translation 2015-01-05 00:26:59 +00:00
Dimitris Spingos
5f3d9c557b Updated Greek translation 2015-01-02 12:10:32 +02:00
Josef Andersson
8e9880cfb0 Updated Swedish translation 2014-12-28 11:19:19 +00:00
Muhammet Kara
923cc2ad43 Updated Turkish translation 2014-12-08 21:06:32 +00:00
Daniel Șerbănescu
1fcc548c7a Updated Romanian Translation 2014-12-08 20:06:09 +01:00
Juan Pablo Ugarte
ffbe1ffedb glade_preview_window_screenshot() fixed segfault when saving to png file.
Bug #741165 "Previewer crashes when taking PNG screenshot"
2014-12-05 14:17:59 -03:00
Marek Černocký
787bf123d8 Updated Czech translation 2014-11-27 07:34:26 +01:00
Marek Černocký
6077259639 Updated Czech translation 2014-11-26 23:13:35 +01:00
Daniel Mustieles
d508daf1bf Updated Spanish Translation 2014-11-26 13:14:41 +01:00
Pawan Chitrakar
1264212380 Added Nepali translation 2014-11-24 05:12:54 +00:00
Piotr Drąg
5ec51b22cf Updated POTFILES.in 2014-11-21 16:40:58 +01:00
Matthias Clasen
67c536ed3b Update TODO 2014-11-21 10:09:22 -05:00
Matthias Clasen
7b8384e7fb stackswitcher: Better icons 2014-11-21 09:54:36 -05:00
Tristan Van Berkom
8098b7afa1 Adding 3.14 and 3.16 version targets to the GTK+ plugin
Updated GTK+ widget catalog for new properties and signals

Updated for GTK+ 3.14 and 3.16 (so far), this patch also modifies
the scrolled window editor to place the overlay-scrollbars property
nicely into the custom editor.

Also set GtkSidebar target version 3.16 (we dont encode odd numbers here)
2014-11-21 14:57:31 +09:00
Matthias Clasen
b4dfd8e70e Stack switcher improvements
Mark the title property as translatable, and prevent the stack
property from showing up twice in the editor.
2014-11-21 14:54:57 +09:00
Matthias Clasen
d86b81263f Set a title for new stack pages
This makes them show up in a connect stack switcher.
2014-11-21 14:54:57 +09:00
Matthias Clasen
51fa810326 Many GtkStack fixes
Implement all of the required adaptor functions, add a virtual
'page' property and use it instead of visible-child-name to switch
between the pages to edit.
2014-11-21 14:54:57 +09:00
Matthias Clasen
012633f68b Support GtkSidebar as well 2014-11-21 14:54:57 +09:00
Matthias Clasen
3ef964be41 Make stack switching work from the tree
This is identical to what glade is already doing for notebooks.
2014-11-21 14:54:57 +09:00
Matthias Clasen
a47ec7a4e6 Add editors for GtkStack and GtkStackSwitcher 2014-11-21 14:54:57 +09:00
Matthias Clasen
f4dc9a24dd Support GtkStack and GtkStackSwitcher
These widgets are in GTK+ since 3.12, time that glade starts
supporting them.

https://bugzilla.gnome.org/show_bug.cgi?id=738480
2014-11-21 14:54:57 +09:00
Matthias Clasen
fd7d3f834a Avoid box stuff leaking through for the color chooser 2014-11-21 14:54:57 +09:00
Tristan Van Berkom
3728733285 Adding 3.14 and 3.16 version targets to the GTK+ plugin 2014-11-21 13:48:54 +09:00
Dimitris Spingos
763defd270 Updated Greek translation 2014-11-17 12:08:27 +02:00
Duarte Loreto
db76e8bcb6 Updated Portuguese translation 2014-11-17 00:36:29 +00:00
Matthias Clasen
688a23c228 Update TODO 2014-11-13 22:14:23 -05:00
Daniel Mustieles
d2aa17568d Updated Spanish translation 2014-11-12 12:59:10 +01:00
Matthias Clasen
a4779a93f2 Fix a typo 2014-11-10 22:45:42 -05:00
Piotr Drąg
6fc548fdb2 Updated POTFILES.in 2014-11-10 02:33:00 +01:00
Baurzhan Muftakhidinov
c90bc5fe2a Added Kazakh translation 2014-11-09 14:59:17 +00:00
Matthias Clasen
4d7c3d5f46 Plug a placeholder leak in the box adaptor
gtk_widget_destroy() is not the right counterpart for
g_object_ref(), and it is useless anyway to do a ref-unref
pair around gtk_container_remove(), so just drop this.

This fix makes the placeholder instance count go down again
when shrinking the size of a box.

https://bugzilla.gnome.org/show_bug.cgi?id=739751
2014-11-07 06:21:41 -05:00
Matthias Clasen
436df235d0 Switch to a single size property for GtkHeaderBar
Having separate start-/end-size properties is nice because it
makes intuitive sense, but unfortunately, the actual headerbar
child properties (position, pack-type) are not sufficient to
fully reconstruct the needed placeholders. This is causing
anomalies and possibly crashes with undo/redo. For now, keep
things working the same way they do in boxes: placeholders
are always in pack-start, and only actual children can be
moved to pack-end.
2014-11-07 17:20:22 +09:00
Tristan Van Berkom
c59573813e GtkHeaderBar: Improving child add/remove/replace support
o Removed misguided code block in ->add_child()

    The said code block assumes that any placeholder being added
    should be added at the end 'if' anything is at the start.

    This big block of code makes things seem to work if you happened
    to save the file with one placeholder on each side (sneaky), however
    just breaks down when you save more than one placeholder at the
    beginning.

    In any case, the number of placeholders should be synchronized to
    the "start-size" / "end-size" properties (minus the number of real
    children which should be placed according to their "position"
    packing property).

  o Removed destructive calls to gtk_widget_destroy(), widgets are
    not destroyed unless the project is finalized or the final reference
    to them is part of a GladeCommand that is being cleared from the
    undo/redo stack

  o Ensure that the replacement placeholder added when ->remove_child()
    is called has the special child type set if it's the title widget
    (not sure if this is needed, but it doesnt hurt).
2014-11-07 17:20:22 +09:00
Tristan Van Berkom
dfccf4b692 GtkHeaderBar: Fixed property sensitivity issues
The custom editor was calling glade_widget_property_set_sensitive()
directly which does not work with undo/redo.

Cleaned up the editor and adaptor so that the editor issues commands
and the adaptor->set_property() adjusts property sensitivity when
'show-close-button' and 'use-custom-title' properties change.

Also some minor changes to the gtk+.xml.in, no need for the
decoration layout property to be optional really, since the property
is a string and will not be saved if it's not set.
2014-11-07 17:20:22 +09:00
Matthias Clasen
7fb37bf524 Fixes for actions
Make add/remove slot work without crashing. Turn 'add slot' into
a widget action, and don't offer 'remove slot' for the custom
title placeholder.
2014-11-07 17:20:22 +09:00
Matthias Clasen
2eb84fd60a Redo sensitivity handling
And ignore show-close-button.
2014-11-07 17:20:22 +09:00
Matthias Clasen
9c239f546e Coding style cleanups 2014-11-07 17:20:22 +09:00
Matthias Clasen
961733bce5 Add a headerbar editor
Among other things, this lets us undoably remove a custom title
widget.
2014-11-07 17:20:22 +09:00
Matthias Clasen
15b4f63903 Initial GtkHeaderBar support
Add support for GtkHeaderBar. Based on a patch by John Stowers.
This allows setting custom titles, and adding multiple children
at either end of the header bar. Repositioning children is not
really working, due to limitations of the GtkHeaderBar API.

https://bugzilla.gnome.org/show_bug.cgi?id=700914
2014-11-07 17:20:22 +09:00
Tristan Van Berkom
9d373e1293 Added return if fail warning
In glade_gtk_container_replace_child(), warn if the passed 'current' widget
is not a direct child of 'container'.
2014-11-07 17:19:27 +09:00
Tristan Van Berkom
3f5e029817 GladeCommand: Experimental - properly record child type for removal commands.
This seems to be working well but might cause problems (let's call it
a red flag if things go wrong and we need to bisect), it fixes drag & drop
undo/redo for GtkExpander (Drag and drop the expander label into the
expander content and undo/redo/undo/redo, this was broken, and this commit
fixes that and also improves things for the currently experimental headerbar
support).
2014-11-05 19:57:09 +09:00
Timo Jyrinki
629812f9a1 Change Finnish translation team web page to l10n.gnome.org 2014-11-03 18:54:34 +02:00
Matthias Clasen
89b32e8b5e Update TODO 2014-11-01 12:37:54 -04:00
Matthias Clasen
d9f948922a Update TODO 2014-11-01 12:21:12 -04:00
Matthias Clasen
353ecf30e0 Update TODO 2014-11-01 12:20:12 -04:00
Tristan Van Berkom
737b7c91ab Bug 739310 - Removed rampant '>' from gtk+.xml.in 2014-10-29 02:03:00 +09:00
Matthias Clasen
adc8f5b748 Move use-center-child to the box editor
This makes adding and removing center widgets undoable.
2014-10-27 19:09:20 +09:00
Matthias Clasen
6f8f3372d3 Add GtkBox center-widget support
In 3.12, GtkBox gained support for a centered child. With this
patch, glade supports this too.

https://bugzilla.gnome.org/show_bug.cgi?id=738473
2014-10-27 19:09:20 +09:00
Piotr Drąg
187270e5c6 Updated POTFILES.in 2014-10-26 15:47:32 +01:00
Tristan Van Berkom
8730f94991 glade-gtk-widget.c: Minor fix for 'add_parent' action
Previous implementation assumes that the parent widget can
be retrieved with gtk_widget_get_parent(), use glade_widget_get_parent()
instead and trust the project datamodel instead, as the logical
widget hierarchy may not be exactly the truth, as is the case for
a searchbar child.
2014-10-26 23:06:52 +09:00
Tristan Van Berkom
67e74fac35 glade-gtk-searchbar.c: Avoid critical warnings when loading searchbars
Changed glade_gtk_search_bar_add_child() to not make the assumption
that a current "child" widget exists, which it doesnt at project load
time (until one is actually loaded).
2014-10-26 22:56:07 +09:00
Matthias Clasen
2d6ae4d29f Add a get_children function for GtkSearchBar
This is needed to make saving children of GtkSearchBar work.
gtk_container_forall is sdaly broken for many containers.
2014-10-25 18:34:01 -04:00
Matthias Clasen
05e36c30d8 Searchbar: Ignore some properties
Don't apply the search-mode and show-close-button properties
in the embedded view, since it would be confusing to have the
search bar just 'disappear'. We do save these properties, so
it is possible to set them up for the actual application.
2014-10-25 16:46:12 -04:00
Matthias Clasen
621ff59f06 Support GtkSearchBar
This widget has been around since 3.10, high time that glade
starts supporting it.

https://bugzilla.gnome.org/show_bug.cgi?id=738493
2014-10-25 16:21:44 -04:00
Daniel Mustieles
52a763b57a Updated Spanish translation 2014-10-24 19:18:21 +02:00
Tristan Van Berkom
e4775b6f7a Depend on GTK+ 3.15
Avoid GTK_CHECK_VERSION ifdefs working around the absense of
gtk_window_get_titlebar().
2014-10-23 17:19:34 +09:00
Tristan Van Berkom
a7c536dc3d glade-gtk-window.c: Reuse translatable string
Avoid the possibility of translatable string redundancy.
2014-10-23 17:16:50 +09:00
Matthias Clasen
2d6b1bd61c Use proper mechanisms to deal with dependent properties
Make desensitizing of title, decorated and hide-titlebar-when-maximized
part of the undo history, and also reset them to their default values.
2014-10-22 21:03:21 -04:00
Matthias Clasen
6d4364cc23 GladeWindowEditor: Added custom control for client side decorations
This is needed so that when the command is issued, it can also
include the child deletion as a part of the command group.

When a window is using CSD, mark the title, decoration and
hide-when-maximized editors as insensitive, since they affect
non-CSD decorations.
2014-10-22 17:22:04 -04:00
Matthias Clasen
6c61356296 Support CSD windows
This patch adds support for the titlebar slot in GtkWindow.
The rendering of windows with csd titlebar is somewhat broken
in glade.

https://bugzilla.gnome.org/show_bug.cgi?id=700914
2014-10-22 17:22:04 -04:00
Daniel Mustieles
39ad83f7c4 Updated Spanish translation 2014-10-20 14:16:57 +02:00
Matthias Clasen
d223cc49c4 Add some more items to the TODO 2014-10-18 17:21:19 -04:00
Philip Chimento
fc24963f93 osx: Use current gtk-mac-integration API
The #ifdef'd block did not compile at all because it used the old API
from gtk-mac-integration, and because it used GtkBuilder when the
surrounding code had been ported to use widget templates.

This fixes up the use of the API and adds a few widget variables to
GladeWindowPrivate which have to be bound to the template.

https://bugzilla.gnome.org/show_bug.cgi?id=738339
2014-10-12 19:42:57 +09:00
Philip Chimento
e36e1ae688 style: Fix indentation of #ifdef block for OS X
There are no tabs in the rest of the file, so this matches the
surrounding indentation.

https://bugzilla.gnome.org/show_bug.cgi?id=738339
2014-10-12 19:42:25 +09:00
Tristan Van Berkom
1889453af7 Bug 732575 - Changed the type hint on the "Edit Separately" window to 'utility'
This window has traditionally had a 'dialog' type so that window
managers don't treat it as a primary application window (don't
add minimize/maximize, don't list it in the alt-tab list, etc).

In light of bug 732575, where it seems some window managers have
stolen the 'close' button away from windows with the 'dialog' hint,
let's change it for a 'utility' hint and hope this is the more
appropriate hint.
2014-10-12 19:39:54 +09:00
Piotr Drąg
7ad5f78f43 Updated Polish translation 2014-10-03 15:19:41 +02:00
Juan Pablo Ugarte
9206e59432 glade-previewer: also show signal emission notification when UI file is loaded from file. 2014-10-02 15:22:01 -03:00
Juan Pablo Ugarte
3554cb21b4 GladePreviewWindow: fixed bug "Missing plural form for UI string: emited %d time(s)" 2014-10-02 15:22:01 -03:00
Piotr Drąg
9743a312f1 Updated Polish translation 2014-09-29 16:27:17 +02:00
Kjartan Maraas
8b678374dc Updated Norwegian bokmål translation. 2014-09-28 10:54:22 +02:00
Bernd Homuth
2d2eaf1caa Updated German translation 2014-09-23 21:39:46 +00:00
Carles Ferrando
b4c0ff679c [l10n] Updated Catalan (Valencian) translation 2014-09-21 21:59:57 +02:00
Gil Forcada
e8e8bd136c [l10n] Update Catalan translation 2014-09-21 21:59:47 +02:00
Piotr Drąg
542c955c22 Updated Polish translation 2014-09-20 18:17:01 +02:00
Ask H. Larsen
24884adeab Updated Danish translation 2014-09-20 17:18:55 +02:00
Мирослав Николић
269cab729e Updated Serbian translation 2014-09-20 10:49:07 +02:00
Rūdolfs Mazurs
3ead92ebc4 Updated Latvian translation 2014-09-07 18:51:14 +03:00
Changwoo Ryu
0b088504b0 Updated Korean translation 2014-09-06 18:58:09 +09:00
Andika Triwidada
d3069b1382 Updated Indonesian translation 2014-09-04 11:46:23 +00:00
Alain Lojewski
6b359f71f4 Updated French translation 2014-08-28 23:31:40 +00:00
Marek Černocký
9cca7b0dc8 Updated Czech translation 2014-08-25 20:54:37 +02:00
Fran Diéguez
baca8fc2e4 Updated Galician translations 2014-08-25 10:05:32 +02:00
Chao-Hsiung Liao
80332cb790 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2014-08-19 20:18:39 +08:00
Lasse Liehu
52073e4eb0 Finnish translation update 2014-08-17 14:30:20 +03:00
Tom Tryfonidis
52ca05035d Updated Greek translation 2014-08-13 21:45:39 +00:00
Matej Urbančič
1a1d07f3ee Updated Slovenian translation 2014-08-06 14:15:05 +02:00
MarMav
a77f5dee85 Updated Greek translation 2014-08-04 11:01:15 +00:00
Piotr Drąg
d53e5df141 doap: add <programming-language> 2014-07-31 18:46:45 +02:00
Olav Vitters
f9e6c203fe doap category apps 2014-07-30 17:21:04 +02:00
Georges Neto
5b341f836b Updated Brazilian Portuguese translation 2014-07-28 04:54:57 +00:00
David Shea
378baef2c4 Avoid reading freed data in glade_project_read_requires
Ensure that required_lib is NULL at the start of each iteration through
the loop.
2014-07-25 14:24:50 -03:00
Kjartan Maraas
2282219967 Updated Norwegian bokmål translation. 2014-07-24 11:52:57 +02:00
Aurimas Černius
89ec0f10f1 Updated Lithuanian translation 2014-06-28 22:16:29 +03:00
Jiro Matsuzawa
8c8638195b l10n: Update Japanese translation 2014-06-24 23:08:48 +09:00
Fran Diéguez
bce00fe46d Updated Galician translations 2014-06-09 12:43:15 +02:00
Fran Diéguez
5ead094e46 Updated Galician translations 2014-06-09 12:36:50 +02:00
Christian Kirbach
e69d7a57ba Updated German translation 2014-05-29 22:34:51 +00:00
Christian Kirbach
6236dbf326 Updated German translation 2014-05-24 12:06:55 +00:00
Juan Pablo Ugarte
e04d9a01c9 GladeDesignLayout: cursor and button event cleanup.
Propagate button press properly.
Fixed several pointer glitches.
2014-05-20 19:53:18 -03:00
Juan Pablo Ugarte
76a8184f6f glade-xml-utils.c: Add missing GPL license block.
Close Bug 730285 "License issues"

TODO: identify which function are subject to the GPL license and rewrite them.
2014-05-20 19:53:18 -03:00
Daniel Mustieles
78bed4d683 Updated Spanish translation 2014-05-20 19:59:10 +02:00
Marek Černocký
0f7fb5a06e Updated Czech translation 2014-05-18 13:23:51 +02:00
Juan Pablo Ugarte
dd8290e36f GladeBaseEditor->build_child() use correct type for paramenters
Fixes bug 704600 "Cannot add items to menu hierarchy - assertion `GLADE_IS_WIDGET_ADAPTOR (adaptor)' failed"

  GladeWidget * (*build_child)      (GladeBaseEditor *, GladeWidget *, GType);

glin-genmarshal does not have a specific type for GType thus back in the day UINT was used instead.
But this is not correct in systems where GType is bigger than UINT
2014-05-17 20:23:05 -03:00
Matej Urbančič
2b4586ef2e Updated Slovenian translation 2014-05-17 19:41:30 +02:00
Matthias Clasen
88c23186d1 Add another missing GTK+ 3.12 feature 2014-05-16 06:43:46 -04:00
Juan Pablo Ugarte
e1d32b31d6 add-child test: ignore deprecated classes. 2014-05-15 18:28:14 -03:00
Juan Pablo Ugarte
0010dedc7c Reduced use of deprecated gtk_dialog_get_action_area() function.
Added _glade_util_dialog_set_hig()
2014-05-15 18:04:25 -03:00
Juan Pablo Ugarte
686ebc7bab Replaced deprecated stock items with its corresponding label strings. 2014-05-15 16:06:16 -03:00
Juan Pablo Ugarte
a4a444174e Removed use of deprecated GtkMisc API 2014-05-15 15:43:35 -03:00
Juan Pablo Ugarte
35a47d3330 GladeAdaptorChooser: Removed unneeded translatable strings. 2014-05-15 15:09:11 -03:00
Piotr Drąg
221dfe1057 Updated POTFILES.in 2014-05-14 00:48:40 +02:00
Juan Pablo Ugarte
d1b11560a3 GladeAdaptorChooser: created new widget to choose an adaptor.
Used in GladePlaceholder and GladeDesignView to quickly create new widgets and objects.

This should be more than enough to close Bug 708146 "Catalog search entry"
2014-05-13 18:16:32 -03:00
Juan Pablo Ugarte
e79d859c01 GladeEditorProperty: re grab focus on load_common() if property is construct-only.
If the property is construct-only, then glade_widget_rebuild() will be called
which means the object will be removed from the project/selection and
a new one will be added, which makes the eprop loose its focus.
2014-05-12 15:42:38 -03:00
Carles Ferrando
645c5f4b6d [l10n] Updated Catalan (Valencian) translation 2014-05-11 00:20:03 +02:00
Pau Iranzo
ab1ba5f8f9 [l10n] Update Catalan translation 2014-05-11 00:19:52 +02:00
Daniel Mustieles
95eb982850 Updated Spanish translation 2014-05-10 19:43:10 +02:00
Juan Pablo Ugarte
d6f724aef0 Added GThemedIcon support 2014-05-09 22:01:48 -03:00
Juan Pablo Ugarte
506b64b9b0 Fix build 2014-05-09 14:50:38 -03:00
Juan Pablo Ugarte
9d5780dc77 GladePreviewer: show handler information in infobar when a signal is emited.
Added --print-handler option (print handlers info on stdout)
2014-05-09 14:28:32 -03:00
Juan Pablo Ugarte
52700db453 GladePreviewWindow: force infobar to show a close button and make label selectable 2014-05-07 16:44:46 -03:00
Juan Pablo Ugarte
687830bac9 GladePreviewer: ignore signal connections to avoid warnings about missing symbols. 2014-05-07 15:43:52 -03:00
Juan Pablo Ugarte
0914740fd5 GladePreviewer: Fixed bug previewing templates.
XML text data was not escaped when generating the template XML.
2014-05-07 15:37:01 -03:00
Juan Pablo Ugarte
f177f6e981 GladePopup: do not use deprecated GtkImageMenuItem 2014-05-07 13:10:19 -03:00
Juan Pablo Ugarte
5da78e0aad Migrated from stock icons to icon names
GladeApp GladePointerMode icons and devhelp icon are now registered as icon names

GladeWindow: replaced deprecated gtk_tool_button_new_from_stock() with
gtk_tool_button_new() + gtk_image_new_from_icon_name() to create actions tool items

GTK+ Catalog, glade.glade: replaced every stock icon with the corresponding icon name
TODO: the only stock icon that does not seem to have a replacement is gtk-edit
2014-05-07 13:10:19 -03:00
Juan Pablo Ugarte
58aef70fba Replaced deprecated functions
gtk_button_new_from_stock()     -> gtk_button_new_from_icon_name()
gtk_widget_render_icon_pixbuf() -> gtk_icon_theme_load_icon()
gtk_widget_set_margin_left()    -> gtk_widget_set_margin_start()

Stock images with icon names
GTK_STOCK_ADD     -> "list-add"
GTK_STOCK_REMOVE  -> "list-remove"
GTK_STOCK_OPEN    -> "document-open"
GTK_STOCK_GO_DOWN -> "go-down"
GTK_STOCK_DIALOG_WARNING -> "dialog-warning"
GTK_STOCK_INFO    -> "dialog-information"
GTK_STOCK_SAVE    -> "document-save"
GTK_STOCK_REFRESH -> "view-refresh"
2014-05-07 13:10:19 -03:00
Juan Pablo Ugarte
76114f46b9 Sealed deprecated functions gtk_widget_get_margin_left() and
gtk_widget_get_margin_right()
2014-05-07 13:10:19 -03:00
Juan Pablo Ugarte
8568b61fac Seal needed deprecated API. 2014-05-07 00:09:56 -03:00
Juan Pablo Ugarte
db6529cf88 Updated TODO 2014-05-05 20:47:35 -03:00
Juan Pablo Ugarte
e8c5e30504 Removed gladeui/glade-widget-private.h, use glade-private.h instead. 2014-05-05 18:57:35 -03:00
Juan Pablo Ugarte
4d7f69393c GladeWidgetAdaptor: Fixed glade_widget_adaptor_object_get_children() for internal widgets.
Internal widgets are defined in Glade in the adaptor class that introduced them.
So in order to get internal widgets that are descendant of another internal widget
we need to walk up the adaptor hierarchy to find where internal widgets are defined.
2014-05-05 18:51:27 -03:00
Dimitris Spingos
76f0332344 Updated Greek translation 2014-05-05 07:13:19 +03:00
Aurimas Černius
82acfb0f40 Updated Lithuanian translation 2014-05-03 21:54:01 +03:00
Juan Pablo Ugarte
fd537c0220 GladeWindow: only show found recent files. 2014-05-02 00:07:02 -03:00
Juan Pablo Ugarte
e7bebe9752 Added missing displayable values for AtkObject::accessible-role 2014-05-02 00:06:20 -03:00
Juan Pablo Ugarte
ab7d9a3f02 Added missing GladeWidgetAdaptor:catalog accessor 2014-04-28 20:45:16 -03:00
Juan Pablo Ugarte
6690a1a273 Added GtkLockButton support.
@aaa
2014-04-28 20:45:16 -03:00
Juan Pablo Ugarte
5aa4f620b7 TODO: Added unsuported object classes list 2014-04-28 20:45:02 -03:00
Juan Pablo Ugarte
74db83efe4 Add template check in project and widget verify functions.
This will warn a user if he is trying to create a template class that targets
a gtk version that does not support it.
2014-04-25 12:33:25 -03:00
Juan Pablo Ugarte
02f61cef14 Added GladePropertyShell:disable-check proxy property and the corresponding accessors API.
Simplified code in GtkAboutDialog editor using new API.
2014-04-22 19:36:27 -03:00
Juan Pablo Ugarte
cfaa8261de Fixed Bug 727914 "Logo is not shown in About-dialog"
Made GtkAboutDialog logo and logo-icon-name properties optional since they
are mutually exclusive.
The editor is responsible for enabling then accordingly.
2014-04-21 15:12:29 -03:00
Juan Pablo Ugarte
a1b22679f8 Fixed skip-pager flags position in GtkWindow editor. 2014-04-21 15:12:29 -03:00
Juan Pablo Ugarte
ac07b6d583 Fixed toolbar icon size.
Use GTK_ICON_SIZE_LARGE_TOOLBAR and GTK_ICON_SIZE_SMALL_TOOLBAR instead of
GTK_ICON_SIZE_MENU and GTK_ICON_SIZE_BUTTON
2014-04-21 15:12:29 -03:00
Yuri Myasoedov
407eff4c40 Fixed Russian translation 2014-04-20 15:45:54 +04:00
marablack3
3c8f6c501b Updated Greek translation 2014-04-18 21:50:52 +00:00
Juan Pablo Ugarte
f38b91c46b Fixed cursor glitch while moving the poiner across multiple placeholders.
The glitch was because we where updating the cursor on motion event only
so when the pointer enters a new placeholder the cursor is set back to
default and then changed again when the motion notify is finally triggered.
2014-04-17 00:59:57 -03:00
Juan Pablo Ugarte
4339165df5 Fixed Bug 353002 "wrong cursor over widgets" 2014-04-17 00:59:56 -03:00
Juan Pablo Ugarte
d414139f5b Convert every object to use G_DEFINE_TYPE_WITH_CODE() or G_ADD_PRIVATE() macros
Fixed function prototype identation and spacing.
2014-04-17 00:59:55 -03:00
David Shea
6c347e172c Check use-underline for whether mnemonic-widget can be set 2014-04-16 21:42:11 -03:00
David Shea
8ecfecfd5a Allow 3 decimal digits for the text scale value. 2014-04-16 21:38:22 -03:00
Juan Pablo Ugarte
b66e15a50b Marked glade_http_request_send_async() as a G_GNUC_PRINTF() function.
Fixed compile warning.
2014-04-16 20:48:27 -03:00
TingPing
215d99f86f Save palette appearance setting 2014-04-16 17:26:54 -04:00
Juan Pablo Ugarte
4a85a25da6 Fixed bug 364064 "Property Editor / Common tab: width & height request checkboxes have no effect"
Reset runtime value to default when an optional property is disabled.
2014-04-14 18:56:02 -03:00
Juan Pablo Ugarte
0205f613ba Set license type "other" as the default one in the propject properties dialog 2014-04-13 17:45:46 -03:00
Ask H. Larsen
a3cd6a092d Updated Danish translation 2014-04-13 22:00:20 +02:00
Gábor Kelemen
9ccc3ced85 Updated Hungarian translation 2014-04-13 16:19:22 +00:00
Juan Pablo Ugarte
c4c50ab2d1 Ignore widgets that are not part of the project when generating edges
of directed graph used to sort objects by topological order.

Fixes bug 727992 "Editing UI and saving does not remove deleted Combo with Entry"
2014-04-12 16:30:11 -03:00
Rūdolfs Mazurs
b15b6fa911 Updated Latvian translation 2014-04-12 12:40:59 +03:00
Claudio Arseni
56c20319e4 [l10n] Updated Italian translation. 2014-04-03 09:03:47 +02:00
Yuri Myasoedov
92f37b3fae Updated Russian translation 2014-04-01 22:39:31 +04:00
Yuri Myasoedov
b526831f96 Updated Russian translation 2014-04-01 22:06:30 +04:00
Alexandre Franke
e38ac28247 Updated French translation 2014-03-31 16:23:23 +00:00
Marek Černocký
098c97786b Updated Czech translation 2014-03-31 10:53:05 +02:00
Marek Černocký
036c87043d Updated Czech translation 2014-03-31 10:50:25 +02:00
Juan Pablo Ugarte
5a6b76bb6e Added few comments for translators 2014-03-30 17:54:05 -03:00
Juan Pablo Ugarte
ad17ef8678 Fixed typo in error messages 2014-03-30 17:41:17 -03:00
Sphinx Jiang
8eebdf7d23 update zh_CN translation 2014-03-30 17:03:28 +08:00
Juan Pablo Ugarte
2641a0a3f2 Update Spanish translation
Added missing \n in translation to fix build error
2014-03-28 12:31:57 -03:00
Juan Pablo Ugarte
07e841fb00 Updated Spanish translation 2014-03-28 11:50:51 -03:00
Piotr Drąg
b3fd9e0ee0 Updated Polish translation 2014-03-28 15:05:52 +01:00
Juan Pablo Ugarte
1eb74d1fb5 Added survey email strings, they will not be used directly in glade but
extracted and copied to https://people.gnome.org/~jpu/ to translate emails
sent to the user after the survey is completed.
2014-03-28 10:37:22 -03:00
Juan Pablo Ugarte
762a73ff1c Add dialog to advertise user survey 2014-03-27 15:58:20 -03:00
Juan Pablo Ugarte
f71f91a099 Rolling 3.18.1 2014-03-27 15:57:33 -03:00
Juan Pablo Ugarte
0b3adc95c9 Restored widgets classes that do not fail anymore in gtk 3.12 2014-03-26 17:05:41 -03:00
Juan Pablo Ugarte
40ad7770e4 Fixed bug in numeric property editors 2014-03-26 17:05:41 -03:00
Juan Pablo Ugarte
1b378820a6 Bumped gtk dependancy to 3.12 2014-03-26 17:05:41 -03:00
Juan Pablo Ugarte
11e17de473 GtkDialog: disabled use-header-bar property untill Glade supports GtkHeaderBar
GtkAboutDialog: ignore construct only use-header-bar property to force it to False in the runtime.
2014-03-26 17:05:41 -03:00
Juan Pablo Ugarte
f4884220d2 Fixed gtk-doc error in GladeCreateWidgetFunc type definition. 2014-03-26 17:05:41 -03:00
YunQiang Su
7076773877 update zh_CN translation 2014-03-26 10:45:26 +08:00
Juan Pablo Ugarte
a069e1d13b Fixed Bug 727014 "32 bit builds fail with -Werror=format-security" 2014-03-25 12:39:42 -03:00
Juan Pablo Ugarte
71395db39a Rolling 3.18
Glade registration, point to production url.
2014-03-24 19:23:40 -03:00
Juan Pablo Ugarte
146f079341 Fixed distcheck errors
Fixed create-widgets test GtkMessageDialog error and skip creating GtkAboutDialog
2014-03-24 19:11:34 -03:00
Claudio Arseni
0e1c4e08c3 Updated Italian translation 2014-03-23 11:31:16 +00:00
Matej Urbančič
127fe04c44 Updated Slovenian translation 2014-03-22 19:11:33 +01:00
Marek Černocký
0872d7a9c9 Fixed domain name 2014-03-22 06:27:52 +01:00
Marek Černocký
fb6c25a4c7 Fixed domain name 2014-03-22 06:27:38 +01:00
Andika Triwidada
944195b579 Updated Indonesian translation 2014-03-22 05:03:14 +00:00
Gábor Kelemen
4eb28c6ec9 Updated Hungarian translation 2014-03-21 16:24:22 +00:00
Kristjan SCHMIDT
3673db275f Updated Esperanto translation 2014-03-20 02:25:44 +01:00
Rūdolfs Mazurs
7ae2c8c9c9 Updated Latvian translation 2014-03-19 23:17:00 +02:00
Ask H. Larsen
e4f5dabe0f Updated Danish translation 2014-03-19 21:31:48 +01:00
Мирослав Николић
d950a6735b Updated Serbian translation 2014-03-19 21:18:42 +01:00
Juan Pablo Ugarte
60e0670b43 Revert "Mark every survey notification dialog string as translatable"
This reverts commit 2d04be13169d95677332f49d43e81ed00bfb4e8d.

Revert "Added message dialog at startup to advertise the user survey."

This reverts commit 5716cbb64b281e2325d21bb4ae53a4ba7a07e906.
2014-03-17 22:40:37 -03:00
Piotr Drąg
72092f612a Updated Polish translation 2014-03-18 00:53:05 +01:00
Juan Pablo Ugarte
2d04be1316 Mark every survey notification dialog string as translatable 2014-03-17 20:40:16 -03:00
Juan Pablo Ugarte
5716cbb64b Added message dialog at startup to advertise the user survey.
The dialog will be shown until the user either completes the survey or checks
the "Do not show this dialog again" check button
2014-03-17 20:28:35 -03:00
Gábor Kelemen
a126b58570 Updated Hungarian translation 2014-03-17 01:58:55 +00:00
Kalev Lember
d168242fbe GtkGrid: Don't save width/height at their default values
In most grids, children only occupy one grid cell and saving the
width/height properties only adds to the noise in the ui file.

The saving of width/height properties was added in commit
a4ed22853ec28a523ac4a4fafa16dbc89b650b9c
2014-03-16 13:48:15 +01:00
Julien Hardelin
29867d1e8f Updated French translation 2014-03-15 18:48:35 +00:00
Changwoo Ryu
9c4c7e8a04 Updated Korean translation 2014-03-15 21:03:10 +09:00
Juan Pablo Ugarte
5cd0c4cb1d Fixed bug #721098 "Anjuta hangs when opening project" The problem was that glade registered GtkOffscreenWindow as a new type derived from GtkWindow to use in the run time which prevents Anjuta or any of its pluggins to use the real GtkOffscreenWindow widget.
gladeui/glade-widget-adaptor.c: use glade_util_get_type_from_name() in generate_type()
to avoid stepping over types that are simply not instantiated yet like GtkOffscreenWindow

gladeui/glade-project.c: Use Adaptor name instead of runtime instance name to avoid
showing GladeFake* types used by the backend for virtual types.
2014-03-14 19:12:03 -03:00
Fran Diéguez
3343c4e662 Updated Galician translations 2014-03-14 19:01:27 +01:00
Rafael Ferreira
516fa74326 Updated Brazilian Portuguese translation 2014-03-14 14:53:08 +00:00
Antonio Fernandes C. Neto
59811948f8 Updated Brazilian Portuguese translation 2014-03-14 14:52:05 +00:00
Chris Johns
3a6dc69d70 Correct bounds checking for design view highlight
The check should be for both x and y being less than 0, as when the
cursor is moved out of the design view "canvas" area, the values are set
to -1. Note this doesn't actually change behaviour, as the coordinates
are set to (-1, -1) whent the cursor leaves the area.

https://bugzilla.gnome.org/show_bug.cgi?id=723819
2014-03-14 11:13:05 -03:00
Daniel Mustieles
09e8331f7c Updated Spanish translation 2014-03-14 14:14:41 +01:00
Marek Černocký
eae1a9efb6 Czech translation 2014-03-14 10:52:01 +01:00
Piotr Drąg
9c1cd0edc1 Updated Polish translation 2014-03-14 00:33:41 +01:00
Juan Pablo Ugarte
ac00532ae6 Fix build 2014-03-13 18:43:17 -03:00
Aurimas Černius
8704da6586 Updated Lithuanian translation 2014-03-13 22:52:45 +02:00
Piotr Drąg
492af8abf4 Slightly improve new strings
There have been no translation updates yet, so this is not disruptive to anyone.
2014-03-13 21:10:57 +01:00
Juan Pablo Ugarte
c687f78720 Handle every transaction status in glade so that messages can get translated more easily.
Implementes mailing list subscription
2014-03-10 15:43:32 -03:00
Juan Pablo Ugarte
3da6ffbb03 Fixed header values parsing 2014-03-10 15:43:25 -03:00
Wylmer Wang
d3a5c344f3 Updated Chinese (China) translation 2014-03-09 10:28:36 +00:00
Marek Černocký
f33e0e0864 Updated Czech translation 2014-03-09 07:58:01 +01:00
Chao-Hsiung Liao
5ea0762ae8 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2014-03-09 11:38:24 +08:00
Aurimas Černius
5fe501ae40 Updated Lithuanian translation 2014-03-08 22:06:30 +02:00
Rūdolfs Mazurs
e2207ec9ff Updated Latvian translation 2014-03-08 20:35:04 +02:00
Wylmer Wang
76b0ed9106 Updated Chinese (China) translation 2014-03-08 12:58:49 +00:00
Changwoo Ryu
61702eb761 Updated Korean translation 2014-03-08 02:22:15 +09:00
Rafael Ferreira
e95509b41f Updated Brazilian Portuguese translation 2014-03-06 10:05:04 +00:00
Daniel Mustieles
4fddd5f9f5 Updated Spanish translation 2014-03-05 16:57:57 +01:00
Daniel Mustieles
8f79ada910 Updated Spanish translation 2014-03-05 16:37:48 +01:00
Balázs Úr
932177dc84 Added hu entry 2014-03-04 20:36:49 +01:00
Balázs Úr
f6090132aa Initial Hungarian translation 2014-03-04 20:33:54 +01:00
Chao-Hsiung Liao
0000df5223 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2014-03-04 20:06:10 +08:00
Fran Diéguez
440603b7b1 Updated Galician translations 2014-03-03 21:51:49 +01:00
Piotr Drąg
bb99379cf2 Updated Polish translation 2014-03-03 18:51:15 +01:00
Piotr Drąg
2ee3c019c3 One more grammar fix in the User Survey 2014-03-03 18:48:52 +01:00
Piotr Drąg
9d829befbf Correctly capitalize a title 2014-03-03 18:20:51 +01:00
Piotr Drąg
fc4554d247 Correctly capitalize CSS in strings 2014-03-03 18:17:55 +01:00
Piotr Drąg
5d58bbf382 Improve strings in the User Survey 2014-03-03 18:12:26 +01:00
Piotr Drąg
9eeb977d2f Improve a string in the AppData file 2014-03-03 18:12:04 +01:00
Wylmer Wang
67d4e5c55b Updated Chinese (China) translation 2014-02-28 11:53:33 +00:00
Aurimas Černius
1428849604 Updated Lithuanian translation 2014-02-27 23:41:14 +02:00
Daniel Mustieles
58d8463d44 Updated Spanish translation 2014-02-27 18:28:53 +01:00
Rafael Ferreira
9f542816de Updated Brazilian Portuguese translation 2014-02-27 15:53:50 +00:00
Marek Černocký
61d9446789 Updated Czech translation 2014-02-26 08:25:33 +01:00
Daniel Mustieles
a4afa7d655 Updated Spanish translation 2014-02-24 17:26:55 +01:00
Fran Diéguez
181c79434c Updated Galician translations 2014-02-24 14:57:39 +01:00
Marek Černocký
f52cd615d4 Fixed I18N (added domain, one item marked for translation) 2014-02-23 16:33:27 +01:00
Marek Černocký
2b0d210b8b Updated Czech translation 2014-02-22 16:45:40 +01:00
Rafael Ferreira
060aa92c4d Updated Brazilian Portuguese translation 2014-02-21 14:50:17 +00:00
Daniel Mustieles
8b0bfe60c2 Updated Spanish translation 2014-02-21 13:09:51 +01:00
Aurimas Černius
06c8f34cb2 Updated Lithuanian translation 2014-02-20 23:32:19 +02:00
Dimitris Spingos
39df741a43 Updated Greek translation 2014-02-20 23:23:07 +02:00
Andika Triwidada
dfe2ae71ff Updated Indonesian translation 2014-02-20 14:51:59 +00:00
Piotr Drąg
4675541dd7 Updated POTFILES.in 2014-02-18 02:58:14 +01:00
Juan Pablo Ugarte
c1a904e7de Added Registration & User Survey Dialog in Help menu 2014-02-17 21:05:41 -03:00
Daniel Mustieles
88c2bbc87e Updated Spanish translation 2014-02-17 16:34:21 +01:00
Juan Pablo Ugarte
43865d7d4e Added missing displayable values 2014-02-14 15:56:56 -03:00
Juan Pablo Ugarte
74c7f46fff Bumped copyright date to 2014 2014-02-14 15:02:42 -03:00
Kjartan Maraas
bd8da7a535 Updated Norwegian bokmål translation 2014-02-12 20:35:35 +01:00
Chao-Hsiung Liao
80d57ab3d2 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2014-02-01 07:03:28 +08:00
Daniel Mustieles
8a4a4673d9 Revert "Updated FSF's address"
This reverts commit 661ac15c8980fc47004d936c5d02156ed96bd91d.
2014-01-31 16:59:12 +01:00
Daniel Mustieles
661ac15c89 Updated FSF's address 2014-01-31 14:16:31 +01:00
Wylmer Wang
2867f040a0 Update Chinese simplified translation 2014-01-24 21:01:34 +08:00
Fran Diéguez
801c0cc25b Updated Galician translations 2014-01-20 23:04:22 +01:00
Juan Pablo Ugarte
434f456caf Fixed bug 702314 "Cancelling an Add Parent action is destructive" 2014-01-20 18:23:59 -03:00
Juan Pablo Ugarte
0cd31e7d85 Revert "Fixed Bug 702314 "Cancelling an Add Parent action is destructive""
because it introduced another bug.
2014-01-20 18:23:57 -03:00
Daniel Mustieles
1081ade884 Updated Spanish translation 2014-01-20 16:37:23 +01:00
Rafael Ferreira
1d782a92f2 Updated Brazilian Portuguese translation 2014-01-19 20:01:38 -02:00
Marek Černocký
1c0383be00 Updated Czech translation 2014-01-19 13:44:04 +01:00
Marek Černocký
72ab171791 Fixed missing space 2014-01-19 13:40:13 +01:00
Aurimas Černius
2a67a4e37b Updated Lithuanian translation 2014-01-14 22:59:04 +02:00
Wylmer Wang
10e804ecc8 Fix a mistake in Chinese simplified translation that may block compiling 2014-01-14 17:24:51 +08:00
Christian Kirbach
8957f358f0 Updated German translation 2014-01-09 20:09:58 +01:00
甘 露
a82ca2ad11 Update Chinese simplified translation 2014-01-04 17:37:31 +08:00
Andika Triwidada
7ddd26abf9 Updated Indonesian translation 2014-01-03 21:35:47 +07:00
Christian Kirbach
22c740fd95 Updated German translation 2014-01-02 14:32:49 +01:00
Enrico Nicoletto
bc645eeb5d Updated Brazilian Portuguese translation 2013-12-26 23:51:32 -02:00
Dimitris Spingos
7374abf8cb Updated Greek translation 2013-12-26 18:44:56 +02:00
Yuri Myasoedov
6a069706ae Updated Russian translation 2013-12-24 23:05:54 +04:00
Yuri Myasoedov
68ef43a223 Updated Russian translation 2013-12-22 22:46:45 +04:00
Pavol Klačanský
e5991fe6ca Updated slovak translation 2013-12-22 13:33:43 +01:00
Ryan Lortie
ff9f27f563 glade-editor-property: use literal format strings
Refactor glade_eprop_object_dialog_title() to make use of literal format
strings instead of storing the format string into a variable.

It is my opinion that this change also improves readability of the
function in question by reducing the complexity and redundancy of the
checks.

This fixes the build which was broken on clang due to the use of
-Werror=format-nonliteral.

https://bugzilla.gnome.org/show_bug.cgi?id=720884
2013-12-21 17:24:10 -03:00
Ryan Lortie
259e506606 gladeui: fix a pair of printf security problems
In two cases, gladeui was doing the equivalent of

  printf (var);

instead of the correct (and safe):

  printf ("%s", var);

This was caught by clang's pedantic treatment of non-literal format
strings forcing me to add G_GNUC_PRINTF attributes to functions
operating on format strings (which in turn caught the problem).  Those
changes are also included here.

https://bugzilla.gnome.org/show_bug.cgi?id=720883
2013-12-21 17:20:50 -03:00
Daniel Mustieles
591a599631 Updated Spanish translation 2013-12-19 14:36:16 +01:00
Tristan Van Berkom
21e1d4397f Fixed bugs in LibcWrapGenerator.vala
The generator was working on my system but still had some flaws I didn't
encounter, thanks to Thiblault Saunier for testing this and finding it's
weakness on his system I was able to fix this.

Also pushing new version of the libcwrap.h file generated from glibc 2.15
targetting glibc 2.7
2013-12-19 18:31:28 +09:00
Fran Diéguez
c76da6a5f3 Updated Galician translations 2013-12-18 23:14:11 +01:00
Juan Pablo Ugarte
28b675a840 tests/Makefile.am Removed unused DATADIR macro 2013-12-18 18:40:11 -03:00
Juan Pablo Ugarte
de4459021f tests/toplevel-order: added missing gresource file 2013-12-18 18:36:21 -03:00
Juan Pablo Ugarte
47a3c5da67 tests/toplevel-order: User GResource for test UI files to make sure
it will work in distcheck
2013-12-18 18:30:13 -03:00
Juan Pablo Ugarte
c01347253b tests/create-widgets: skip GtkRecentChooser because it tries to remove an unknown source id 2013-12-18 18:30:13 -03:00
Juan Pablo Ugarte
2155846aa1 Updated Readme 2013-12-18 18:30:13 -03:00
Juan Pablo Ugarte
325d7ebbfd GladeProjectProperties: added license page.
Now it is posible to change license type and glade will automatically
generate it for you if you supply copyright and authors

GladeProject: save license data as comments.
Make sure comments do not contain "--"

glade-utils.c: added  _glade_util_strreplace() private function.
2013-12-17 23:52:13 -03:00
Juan Pablo Ugarte
1401a4bb43 GladeWidget: Removed get_toplevel() cache.
This micro optimization in no longer needed and it was incomplete.
2013-12-17 23:52:13 -03:00
Juan Pablo Ugarte
dbf7f22564 glade-xml-utils: glade_xml_node_is_comment() stop treating text nodes as comments
And start using type member of xmlNode struct to check node type instead of strcmp its name.

Added inline function glade_xml_node_is_comment_or_text() to use in
glade_xml_node_get_children() and glade_xml_node_next()
2013-12-17 23:52:13 -03:00
Juan Pablo Ugarte
1d112a37a4 GladeWidget: deprecated glade_widget_depends()
GladeWidgetAdaptor: deprecated glade_widget_adaptor_depends()
2013-12-17 23:52:13 -03:00
Tristan Van Berkom
dec1d5f838 Bug 720585 - Fix order of customized property output.
Recently we split up all the adaptor code into separate files,
this resulted in the above bug since the GtkWidget adaptor writes
out some custom attributes in it's ->write_widget() function.

Moved these Atk/StyleClasses/Accelerators to ->write_widget_after()
so that they will be written after a widget's children.

This fixes the GtkToolBar adaptor so that when it writes it's
icon size after chaining up to the parent adaptor, it does so still
inside the <properties> section of a widget.
2013-12-17 18:05:50 +09:00
Tristan Van Berkom
e1e318c1fc Revert "Install widget icons into the hicolor theme."
This reverts commit bbe7be78c5d2e38a854bd166af68e693da2a1168.
2013-12-17 17:53:22 +09:00
Tristan Van Berkom
5998fb5725 Bundles: Changed cairo exceptions.
Cairo was erroring during the build because it used _FORTIFY_SOURCE=2,
instead of disabling the tests and disabling threads, we just patch
cairo's makefiles to disable the _FORTIFY_SOURCE override.
2013-12-17 17:34:15 +09:00
Tristan Van Berkom
22ddb259a3 Final touches to the bundle environment 2013-12-17 17:23:01 +09:00
Tristan Van Berkom
1049df0b55 GladeCatalog: Avoid warnings when trying to access non-existant catalog paths.
These warnings show up in bundled environments.
2013-12-17 17:22:15 +09:00
Tristan Van Berkom
1e3554c592 AppRun / PrepareAppDir.sh
Make the runner script and PrepareAppDir.sh work with alternative
install prefixes, not just '~/AppImages/Install'.
2013-12-16 18:37:08 +09:00
Tristan Van Berkom
93ddfbc90c Greatly improved the LibcWrapGenerator.vala program. 2013-12-16 18:36:18 +09:00
Tristan Van Berkom
a56b095832 build/linux/LibcWrapGenerator.vala: Fixed copyright notice to say 2013 2013-12-16 00:45:35 +09:00
Tristan Van Berkom
3f3818e4f0 build/linux/jhbuildrc: Allow the user to decide where to build the bundle
Checks the BUNDLE_ROOT environment variable.
2013-12-16 00:44:46 +09:00
Tristan Van Berkom
dbebe55598 build/linux/README: Reword the offensive text about CMake
The text seemed to indicate that AppImageKit was dumb for using
CMake, but the intention was only to mention how dumb CMake itself is.

Rectified this comment.
2013-12-15 02:14:07 +09:00
Tristan Van Berkom
14c68216e5 Improving documentation for bundling.
Added some copyright headers, enhanced the README, added notes
about the sources and their usage in the source headers.
2013-12-14 23:12:58 +09:00
Tristan Van Berkom
434785caae Move build/linux64 -> build/linux
Modified AppRun and jhbuildrc so that the build is 32/64 bit capable.
2013-12-14 22:06:43 +09:00
Tristan Van Berkom
fc1a393ba1 PrepareAppDir.sh: Copy the AppRun instead of the older AppRunScript.sh 2013-12-14 21:39:49 +09:00
Tristan Van Berkom
fe1d2a3bf2 Committing in tree version of libcwrap.h
This one will work for glibc 2.15, but ideally the libcwrap.h
should be generated on any platform before building with it,
as it needs to be re-generated for any newer versions of glibc.
2013-12-14 21:38:40 +09:00
Tristan Van Berkom
57019d7e64 Moved AppRunScript -> AppRun.
The AppImageKit supports a script in place of the AppRun binary.
2013-12-14 21:38:06 +09:00
Tristan Van Berkom
acaede7504 Added LibcWrapGenerator.vala
This was salvaged from the old defunct autopackage project, based
on an initial vala port by Jan Niklas Hasse.

This code must be used to generate the libcwrap.h file.
2013-12-14 21:37:19 +09:00
Tristan Van Berkom
39458eae8d Bundle application launcher script, don't bail out for D-Bus
Set DBUS_FATAL_WARNINGS=0, the stack needs libdbus right now because
of at-spi2-atk, but Glade does not require a D-Bus environment to run.
2013-12-14 00:49:56 +09:00
Tristan Van Berkom
bf5d7ba775 linux64 bundler build: Fixed to include libcwrap.h for C++ sources. 2013-12-14 00:13:32 +09:00
Tristan Van Berkom
b386eea467 Added the lib/ directory to LD_LIBRARY_PATH in the bundled environment 2013-12-13 21:44:10 +09:00
Tristan Van Berkom
902b8c6d42 Added new jhbuild based bundling system for 64bit linux bundles. 2013-12-13 21:44:10 +09:00
Daniel Mustieles
9bfd0ce028 Updated Spanish translation 2013-12-12 11:15:51 +01:00
Juan Pablo Ugarte
5fe37d3522 glade.glade: Added license.
Now objects are correctly ordered by dependency.
2013-12-11 18:07:15 -03:00
Juan Pablo Ugarte
3213cba6e3 gladeui/*.ui plugins/gtk+/*.ui: added license comment
Added LGPL license comment at the beginning of every template UI file,
set translation domain, gtk required version to 3.10, and ordered
<requires> by dependency.
2013-12-11 18:07:15 -03:00
Juan Pablo Ugarte
c4cc656870 GladeProject: fixed <requires> tag output
GLADE_GTKBUILDER_HAS_VERSIONING() macro needs gtk version numbers,
not the required module we want to save.

Implemented glade_project_required_libs() using _glade_tsort()
so that requires tags are saved in dependency order.
2013-12-11 18:07:15 -03:00
Juan Pablo Ugarte
44566c5f3d GladeCatalog: implemented catalog dependency sorting using _glade_tsort()
Now we detect circular dependencies!

Added private functions _glade_catalog_get_catalog() and _glade_catalog_tsort()
2013-12-11 18:07:15 -03:00
Juan Pablo Ugarte
56f47169dc GladeProject: Changed the way we calculate graph dependencies.
Instead of using glade_widget_depends() which implied N^2 invocations/iterations
(where N is the numbers of objects in the project) we now calcualte
dependencies based on property references.
This way we only have to iterace over every object once to check the list
of properties that constitute a reference to them.

In a real world example, sorting objects in geany.glade decreased from 120ms to just 1ms

plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk-widget.c:
  Removed unused glade_gtk_widget_depends()
2013-12-11 18:07:15 -03:00
Juan Pablo Ugarte
2fcad158eb _glade_tsort() simplyfied api by using a GList for edges instead of a
custom linked struct since we do not need the marginal speedup
now that dependencies are only between toplevels.
This allow us to easily sort edges alphabetically.

tests/toplevel-order: Updated to new _glade_tsort() api
2013-12-11 18:07:15 -03:00
Juan Pablo Ugarte
d8353ee66a GladeProjectProperties: Fixed lgplv3 text, added apache, mit and all permisive licenses. 2013-12-11 18:07:15 -03:00
Juan Pablo Ugarte
49680fd1c2 GladeProject: implemented GtkTreeModelIface with a GtkTreeStore proxy object.
This hopefully will set us free of treemodel bugs.

For example, dnd was almost unusable with current gtk master without this patch.
It was getting lots of iter warnings and eventually crashing if you wanted to drag
one child from one toplevel to another back and foward.

Besides, now there is less complex code to maintaing (about 300 lines) and
should be faster in general since GtkTreeModel implements the data tree
with GLists that do not regenerate each time you want to iterate over the model
like we had to do because getting children from objects creates a new list.
2013-12-11 18:07:15 -03:00
Tristan Van Berkom
02567ea621 build/linux64/README: Added notes about shared-mime-info 2013-12-10 21:21:35 +09:00
Tristan Van Berkom
d7848a845b Added new linux64 build subdirectory.
This build subdirectory includes instructions and resources for
building bundles which are relatively portable for any 64bit linux
distribution.
2013-12-10 19:25:49 +09:00
Tristan Van Berkom
7668ca5113 Added GLADE_BUNDLED environment variable.
This environment variable is used to detect a bundled environment
for which Glade will run on various 64bit linux systems.

Currently we just avoid loading any catalogs except for the gtk+.xml
catalog in the case of a bundled environment (but there may be
some extra special cases to add, in order to ensure we don't integrate
with the unknown running system).
2013-12-10 17:34:48 +09:00
Tristan Van Berkom
bbe7be78c5 Install widget icons into the hicolor theme.
Documentation seems to suggest that applications should
be installing their icons into the theme, we also no longer
call gtk-update-icon-cache at install time (we used to).

I made this particular change in order to cause the widget
icons to show up properly in bundles, if this commit is wrong
then we need to figure out how it actually works that icons
show up in the palette (so we can reproduce that in the bundle).
2013-12-10 15:01:24 +09:00
Tristan Van Berkom
68d57265e1 GladePreview: Use g_find_program_in_path() to launch the previewer. 2013-12-10 14:59:01 +09:00
世海 黄
412d770555 Update Chinese simplified translation for help 2013-12-07 17:25:57 +08:00
Juan Pablo Ugarte
8d02712269 GladeWindow: disable keybinding used by glade in every widget in the workspace.
Now its posible to delete an GtkEntry with Delete again!
2013-11-29 20:41:26 -03:00
Juan Pablo Ugarte
173e521b16 GladePreferences dialog: Fixed "-" button packing props so that it does not expand. 2013-11-27 21:17:14 -03:00
Colin Walters
9ce191b5ce previewer: Squash a compiler warning
Just trying to reduce compilation noise.
2013-11-25 15:14:05 -05:00
Juan Pablo Ugarte
57fc737c59 Fixed identation spaces in function declarations. 2013-11-25 16:37:24 -03:00
Juan Pablo Ugarte
59517e2018 Fix issue with numeric property editors.
We have to make sure  glade_eprop_numeric_load() is not called during
glade_eprop_numeric_force_update() to prevent gtk_spin_button_set_value()
changing the the value the user is trying to input.
2013-11-25 16:27:08 -03:00
Juan Pablo Ugarte
4a1ce15232 Fixed cellrenderer model column combobox chooser.
If treeview model is a filter or a sort model we need to walk up until
we find a tree or list store which is where glade have defined the model columns.
2013-11-24 19:53:17 -03:00
Juan Pablo Ugarte
63824779da Fixed GtkBox virtual size property value on load.
This bug was introduced by commit 787cc5cac5d1950ac57783478279a9135c640995 which
fixed Bug 652655 "Setting entry on combobox moves the widget"
2013-11-21 16:55:19 -03:00
Juan Pablo Ugarte
3a41a2a0d7 Fixed <requires> tag output
GLADE_GTKBUILDER_HAS_VERSIONING check was broken for gtk >= 3.0
2013-11-21 14:52:24 -03:00
Juan Pablo Ugarte
19f6e87a44 Remove timestamp from glade comment to avoid unnecessary changes in the file.
Fixes Bug 711863 'Remove "Generated with glade" XML comment'
2013-11-21 13:46:26 -03:00
Juan Pablo Ugarte
83f7567169 Fixed bug in GtkScrolledWindow editor, vertical adjustmet was refering to the wrong property. 2013-11-21 13:38:31 -03:00
Piotr Drąg
cb4fc2eec6 Updated POTFILES.skip 2013-11-16 17:23:38 +01:00
Aurimas Černius
6db4fc7897 Updated Lithuanian translation 2013-11-16 17:45:21 +02:00
Juan Pablo Ugarte
4f3680881f Added toplevel-order test 2013-11-15 23:44:57 -03:00
Juan Pablo Ugarte
2bc40ad87b Sort object dependancy before saving using a topological
sorting algorithm _glade_tsort() instead of g_list_sort() with
glade_widget_depends() which is not a transitive property.

Closes Bug 709609 "[PATCH] Change way of sorting before writing XML output."
Fixes Bug 711858 "editing glade project results in long CPU usage spikes after upgrading to 3.16 and GTK+3.10"
2013-11-15 23:44:47 -03:00
Juan Pablo Ugarte
af72b2dad1 Report parsing error when loading a project.
Fixes Bug 712289 "Glade silently fails to open malformed ui file"
2013-11-15 21:13:45 -03:00
Juan Pablo Ugarte
2307fd6fe0 Fixed warning in recent_add() and recent_remove() when path is not absolute
by prepending g_get_current_dir() to it.
2013-11-15 21:00:56 -03:00
Richard Hughes
acad8daed6 Actually use intltool to merge in the AppData translations
Doing the .xml.in->.xml in configure works for paths, but not translations.
2013-11-14 08:50:18 +00:00
Dimitris Spingos
4f964a4a5a Updated Greek translation 2013-11-12 10:29:09 +02:00
Juan Pablo Ugarte
582f72b6a6 Fixed _glade_dnd_dest_set() crash. thanks to Lubomir Rintel for pointing the problem.
Closes bug 711568 "[PATCH] glade crashes upon startup"
2013-11-06 17:57:15 -03:00
Fran Diéguez
dc96471c92 Updated Galician translations 2013-11-01 16:07:54 +01:00
Daniel Mustieles
f1e727f53e Updated Spanish translation 2013-10-31 14:36:20 +01:00
Anish A
399bc6f75c Updated Malayalam Translation 2013-10-30 22:42:04 +05:30
Matej Urbančič
60a0db94bb Updated Slovenian translation 2013-10-26 22:44:11 +02:00
Timm Bäder
47d4b30c6b pango attribute editor: don't write on cancel for color/font
Properties such as 'Font Description' or 'Foreground Color' can be set
via a dialog. The current implementation also writes those values if the
user cancels the dialog. This is especially weird when using the font
dialog which can leave you with values such as "<Enter Value 10".
This patch fixes that problem by only writing the valuse if the user
clicked select.
2013-10-19 19:18:23 +02:00
Carles Ferrando
e9c9d279bc [l10n] Updated Catalan (Valencian) translation 2013-10-13 22:47:37 +02:00
Gil Forcada
7abad9f326 [l10n] Update Catalan translation 2013-10-13 22:47:28 +02:00
Juan Pablo Ugarte
fb756c7a6a Fixed Bug 702314 "Cancelling an Add Parent action is destructive" 2013-10-09 11:26:28 -03:00
Rūdolfs Mazurs
f3f89e87fa Updated Latvian translation 2013-10-08 00:09:26 +03:00
Piotr Drąg
c8040f9edc Updated POTFILES.in 2013-10-04 20:53:35 +02:00
Juan Pablo Ugarte
2150c3c80d glade-previewer: added support for widget templates 2013-10-03 17:23:16 -03:00
Juan Pablo Ugarte
2556473884 Added --slideshow option
Make --screenshot and --slideshow save every widget in a different page if the format supports it
(like pdf)
2013-10-03 17:23:16 -03:00
Juan Pablo Ugarte
403c9a4a02 Added project css property support 2013-10-03 17:23:16 -03:00
Juan Pablo Ugarte
17746c25db Made glade-previewer monitor css file and display parsing errors in a GtkInfoBar.
Created new GladePreviewWindow widget and lots of cleanups.
Improved screenshot option, save screenshots in any GdkPixbuf supported format.
Added options to take vector screenshots (F5 svg, F6 ps, F7 pdf) and F8 png
2013-10-03 17:23:16 -03:00
Juan Pablo Ugarte
0ab4b7d379 Set style classes on runtime objects 2013-10-03 17:23:16 -03:00
Juan Pablo Ugarte
34ff7c8471 Added css-provider-path property 2013-10-03 17:23:16 -03:00
Juan Pablo Ugarte
c410942b0e Added License textview to GladeProjectProperties to edit newlly added license property. 2013-10-03 17:23:16 -03:00
Juan Pablo Ugarte
1e94c679ba Added glade_command_set_project_license() and glade_command_set_project_resource_path() functions.
Implemented them using a common GladeCommandProperty class with let you manipuate any GladeProject
property class
2013-10-03 17:23:16 -03:00
Juan Pablo Ugarte
d25dd2d019 Added license property to GladeProject.
It gets saved as part of the first comment.
2013-10-03 17:23:16 -03:00
Christian Kirbach
35972070c8 Updated German translation 2013-09-26 12:53:15 +02:00
Piotr Drąg
3adf8df4c6 Fix AppData description translation 2013-09-26 00:38:15 +02:00
Juan Pablo Ugarte
10d8f71329 Mark AppData description for translation 2013-09-25 17:22:51 -03:00
Juan Pablo Ugarte
79ca033038 Added AppData for gnome-software to pick up glade
Fixes bug 708641 "Please include an AppData file"
2013-09-25 15:52:53 -03:00
Juan Pablo Ugarte
21f4584c62 Rolling 3.16 2013-09-25 15:18:14 -03:00
Juan Pablo Ugarte
16d7874a47 Emit GladeApp widget-adaptor-registered signal in glade_widget_adaptor_register()
While this is not currently used it will come handy if glade wants to load catalogs at runtime
2013-09-25 15:18:14 -03:00
Matej Urbančič
ac37a4da64 Updated Slovenian translation 2013-09-25 18:28:02 +02:00
Chao-Hsiung Liao
b677454cf4 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2013-09-24 18:54:29 +08:00
Jiro Matsuzawa
554b7f5862 l10n: Update Japanese translation 2013-09-23 16:33:30 +09:00
Matej Urbančič
cc459a63af Updated Slovenian translation 2013-09-22 21:20:49 +02:00
Balázs Úr
a3f1a623c0 Updated Hungarian translation 2013-09-21 19:10:15 +02:00
Piotr Drąg
8924288e59 Fix a minor typo 2013-09-19 18:59:28 +02:00
Gabor Kelemen
2e991fbae3 Updated Hungarian translation 2013-09-19 01:08:33 +02:00
Juan Pablo Ugarte
7708ddc876 Added some translators comment sugegsted in
Bug 708190 "Please add translator comment for ".. when loading by widget""
2013-09-18 19:46:42 -03:00
Juan Pablo Ugarte
a7b8905868 Added translator comments for every displayable value
Fixed indentation with xmlindent
2013-09-18 19:46:41 -03:00
Kalev Lember
ca71b4bd6d Fix desktop file keywords syntax in Korean translation 2013-09-18 14:26:43 +02:00
Kenneth Nielsen
5f97b29609 Updated Danish translation 2013-09-16 23:01:24 +02:00
Juan Pablo Ugarte
9fef572dcb Rolling 3.15.4 2013-09-16 17:46:04 -03:00
Juan Pablo Ugarte
6f99840f5e Disabled select-multiple properties in GtkRecentAction and GtkRecentChooserMenu.
They are not supported in these derived classes giving you a warning that make glade test fail.
2013-09-16 17:46:00 -03:00
Juan Pablo Ugarte
f5308942e7 Fixed bug when copying a button with custom content.
Custom widget was being replaced with a placeholder when syncing
custom-child property.
2013-09-16 16:02:56 -03:00
Juan Pablo Ugarte
44362e08e5 Added extra check in glade_project_verify_signal_internal()
because it the widget could not have an associated project.
2013-09-16 14:28:54 -03:00
Juan Pablo Ugarte
d23865ac07 Added workaround for Bug 625867 "RadioButton information lost on cut+paste, add/remove parent, etc" 2013-09-16 14:17:03 -03:00
Juan Pablo Ugarte
20593038f4 Fixed glade_gtk_image_get_property() chainup. (was calling set_property)
Fixes bug that prevented the runtime object to show the right pixbuf when copying a GtkImage.
2013-09-14 18:11:59 -03:00
Juan Pablo Ugarte
2ca2be44d4 Fixed Bug 679079 "Glade changes the "homogenous" packing property of toolbar buttons to "yes"" 2013-09-14 03:55:52 -03:00
Juan Pablo Ugarte
1fd9d318d3 Improved pango text integer attributes editors.
Make the spin button numeric and clear the attr if the new text is an empty string!

This should be enough to close Bug 679006
"The "size" attribute for labels only accepts integer values (not strings like "larger")"
2013-09-13 23:55:32 -03:00
Juan Pablo Ugarte
06d14dce9e Fixed bug 643923 "Should not use markup for GtkFrame's label"
Its better not to promote the use of markups since they do not fit well with
themming. And its a failure point for translations.
2013-09-13 18:09:29 -03:00
Changwoo Ryu
0f7ad5a0d3 Updated Korean translation 2013-09-14 02:42:28 +09:00
Juan Pablo Ugarte
28d67bf6a8 Fixed bug 584381 "Saving as an existing file name except the extension overwrites without confirmation."
The problem was that if the selected filename did not had an extension we appended append a .glade extension
but did not check if the new filename existed or not.
Now we fixed this problem by selecting the file if it exist and running the dialog again, giving it a chance
to promt the user about overwriting.
2013-09-12 17:21:08 -03:00
Juan Pablo Ugarte
a33616207c Updated TODO 2013-09-11 18:45:56 -03:00
Juan Pablo Ugarte
78cec7bd42 Fixed selection bug exposed by Bug #652655 fix.
We made Project selection restoration more robust by saving a list of selected
objects before rebuilding one of them and clearing it after the rebuild and
just before restoring the selection.

We still have a minor but obscure bug where the property editor of the
construct only property does not work after rebuilding the object unless
the move is moved out of the widget.

This really shows why we need to split model data from runtime objects!
2013-09-11 18:22:18 -03:00
Juan Pablo Ugarte
9e1b474621 glade_project_remove_object() check if object has a GladeWidget first since its cheaper
and issue a warning if we have an object in the project without a GladeWidget.
2013-09-11 18:22:18 -03:00
Juan Pablo Ugarte
787cc5cac5 Fixed Bug 652655 "Setting entry on combobox moves the widget" 2013-09-11 18:22:18 -03:00
Juan Pablo Ugarte
2545e6ed2c Push superuser state at the begining of glade_widget_rebuild() and pop it at the end. 2013-09-11 18:22:18 -03:00
Juan Pablo Ugarte
d69613a1c1 Added executable check after make install 2013-09-11 18:22:18 -03:00
Matej Urbančič
02235ce80a Updated Slovenian translation 2013-09-11 21:27:33 +02:00
Milo Casagrande
433e7c4e6b [l10n] Updated Italian translation. 2013-09-10 21:34:01 +02:00
Marek Černocký
7de99c5376 Updated Czech translation 2013-09-10 19:45:52 +02:00
Matej Urbančič
3e0c1899b7 Updated Slovenian translation 2013-09-09 21:07:57 +02:00
Christian Kirbach
653253aebb Updated German translation 2013-09-07 12:00:25 +02:00
Marek Černocký
a4e31b89d6 Updated Czech translation 2013-09-06 22:16:41 +02:00
Marek Černocký
f55640bdcd Updated Czech translation 2013-09-06 21:54:47 +02:00
Milo Casagrande
bb5d5e6fdb [l10n] Updated Italian translation. 2013-09-06 13:47:38 +02:00
Milo Casagrande
92920dbbaf [l10n] Updated Italian translation. 2013-09-06 13:46:43 +02:00
Juan Pablo Ugarte
ccc9c7e896 Initialization cleanup, return if pygobject init fails 2013-09-04 17:25:54 -03:00
Juan Pablo Ugarte
2d6330a3b8 Fixed Bug 706304 "Python plugin broken by over-zealous version check"
Bumped pygobject version to 3.8.0 (stable serie) because pygobject_init()
does not like the old development version 2.90.4
2013-09-04 17:08:12 -03:00
Juan Pablo Ugarte
c6fc796042 Fixed regresion introduced when implemented GladeWindow as a composite widget.
I forgot to move catalog paths initialization to glade_window_init()
2013-09-04 17:08:12 -03:00
Juan Pablo Ugarte
fda19a5ed3 Rolling 3.15.3 2013-09-02 16:29:44 -03:00
Juan Pablo Ugarte
c8b1b96a1d Updated information 2013-09-02 16:29:30 -03:00
Daniel Mustieles
890c0d280d Revert "Updated Spanish translation"
This reverts commit 887d4bd36bcea75ebedd78e2fe4f01b39e1a814a.
2013-09-02 18:14:32 +02:00
Daniel Mustieles
887d4bd36b Updated Spanish translation 2013-09-02 18:07:24 +02:00
Matej Urbančič
4e12629bbe Updated Slovenian translation 2013-09-01 21:31:30 +02:00
Matej Urbančič
6f0b3ca8ae Updated Slovenian translation 2013-09-01 20:27:53 +02:00
Piotr Drąg
bbae29b3c3 Updated Polish translation 2013-09-01 02:32:34 +02:00
Piotr Drąg
fd9c4a30ba Fix minor typos 2013-09-01 02:29:15 +02:00
Juan Pablo Ugarte
f825dcf5ae Fixed indentation style 2013-08-31 20:36:47 -03:00
Miguel Azevedo
4658131ceb Bug 703621 - Signals treeview: click on user data moves the selected row below 2013-08-31 20:17:10 -03:00
Enrico Nicoletto
2a62a7bbdc Updated Brazilian Portuguese translation 2013-08-31 18:44:04 -03:00
Fran Diéguez
93ca39ea70 Updated Galician translations 2013-08-31 21:02:36 +02:00
Christian Kirbach
46c50bcfab Fix a few typos 2013-08-31 15:03:57 -03:00
Matej Urbančič
510d63641b Updated Slovenian translation 2013-08-29 18:41:04 +02:00
Chao-Hsiung Liao
c130b62a55 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2013-08-29 21:47:41 +08:00
Bruce Cowan
664bf208e5 Updated British English translation 2013-08-28 21:38:06 +01:00
Daniel Mustieles
170eb4d93f Updated Spanish translation 2013-08-27 18:35:44 +02:00
Seán de Búrca
47f996d24f Fix autogen with latest gnome-common
Side-by-side use of IT_PROG_INTLTOOL and AM_GNU_GETTEXT is not supported

https://bugzilla.gnome.org/show_bug.cgi?id=706832
2013-08-27 09:20:34 -06:00
Fran Diéguez
2b20970d7e Updated Galician translations 2013-08-27 02:39:16 +02:00
Rafael Ferreira
3a46740a8b Updated Brazilian Portuguese translation 2013-08-26 04:06:15 -03:00
Kjartan Maraas
8c208893ac Updated Norwegian bokmål translation 2013-08-23 20:27:15 +02:00
Kjartan Maraas
cc8e2ca45f Updated Norwegian bokmål translation 2013-08-22 19:49:36 +02:00
Fran Diéguez
25f3a018a6 Updated Galician translations 2013-08-21 01:34:01 +02:00
Juan Pablo Ugarte
33e8511fa2 Added GtkSearchEntry icons 2013-08-19 15:49:32 -03:00
Juan Pablo Ugarte
9c68939311 Added icons for GtkListBox and GtkListBoxRow 2013-08-19 15:49:32 -03:00
Juan Pablo Ugarte
a08bdcb600 Added missing AtkRole displayable values 2013-08-19 15:49:32 -03:00
Juan Pablo Ugarte
d197d5a1f4 Moved GtkSelectionMode displayable values from GtkTreeview to GtkListBox
because it needs it earlier
2013-08-19 15:49:32 -03:00
Juan Pablo Ugarte
796d6b3f9a Added GtkOverlay icons 2013-08-19 15:49:32 -03:00
Juan Pablo Ugarte
9c06e1ddf7 Added GtkApplicationWindow to the catalog 2013-08-19 15:49:31 -03:00
Juan Pablo Ugarte
4fced46855 Drag&Drop clean up.
Added private _GladeDrag interface. (only used internaly in gladeui)

Implemented _GladeDrag in GladePlaceholder GladeWidget GladeDesignView and GladeDesignLayout

Added drag-dest property to GladeWidget to enable/disable drag support
(used in GtkFixed GtkLayout and GtkOverlay containers)

Made GladeInspector a drag source by implementing GtkTreeDragSource interface in GladeProject
2013-08-19 15:49:27 -03:00
Juan Pablo Ugarte
5edf71dc70 Fixed rendering issues now that we support GtkOverlay and overlay children can be outside of its parent allocation. 2013-08-19 15:01:54 -03:00
Juan Pablo Ugarte
c456aba9ec Added GtkOverlay support 2013-08-19 15:01:53 -03:00
Juan Pablo Ugarte
879008c374 Replaced glade_design_layout_find_inside_container() with new private API
_glade_design_layout_get_child_at_position()
2013-08-19 15:01:47 -03:00
Juan Pablo Ugarte
e75bc78947 Fixed copyright dates 2013-08-19 06:56:23 -03:00
Daniel Mustieles
529532bccc Updated Spanish translation 2013-08-19 11:42:26 +02:00
Matej Urbančič
04f706e57d Updated Slovenian translation 2013-08-18 15:06:50 +02:00
Giovanni Campagna
53c57289e1 catalog: add missing attributes to the DTD
Most projects shipping external catalogs check validity with the
DTD during make check, so it's important that most supported
features are advertised.

https://bugzilla.gnome.org/show_bug.cgi?id=700962
2013-08-14 21:39:08 +02:00
Aurimas Černius
2d7c6e035c Updated Lithuanian translation 2013-08-11 20:56:40 +03:00
Tristan Van Berkom
075c2ad3b6 Fixed some composite template classes
... to properly mention if children are accessible as "internal" or not.
2013-08-08 14:37:08 +02:00
Kalev Lember
33b0963784 build: Bump the required GTK+ version for the new listbox API 2013-08-08 11:32:50 +02:00
Kalev Lember
c52ab3b2f1 GtkListBox: Simplify code by using new GTK+ API
Instead of fiddling around with gobject_get_data/set_data and sorting, use the
new gtk_list_box_insert() and gtk_list_box_row_get_index() to put the rows in
the correct position.
2013-08-08 11:32:50 +02:00
Piotr Drąg
9d3b3b3a62 Updated POTFILES.in 2013-08-07 22:13:03 +02:00
Juan Pablo Ugarte
3549eeac24 Added add-child-verify function to GtkScrolledWindow which is the only place we want to check if we can add a child or not.
Stop using glade_util_check_and_warn_scrollable() everywhere but in GtkScrolledWindow add-child-verify function.
2013-08-07 11:38:43 -03:00
Tristan Van Berkom
e95245f5f1 GtkListBox support: Added action to add list box rows to a list box. 2013-08-07 16:12:03 +02:00
Kalev Lember
de8762fa8f Add GtkListBox support
https://bugzilla.gnome.org/show_bug.cgi?id=702296
2013-08-07 16:12:03 +02:00
Juan Pablo Ugarte
8daa0ce03c Removed reveal-child-test-proxy property. We always show up the widget in the workspace. 2013-08-07 10:28:05 -03:00
Tristan Van Berkom
0a070ef023 Fixed sporadic behaviour of spin buttons.
There may be more issues, but now selecting the entry text and inserting
new text will not have any 0 appended.

This regression (fixed by this patch) was introduced by
commit 84990bcaec39109be3c53b1a13ba31ca5d865970
2013-08-07 14:02:43 +02:00
Juan Pablo Ugarte
385ab2939c Finished support for GtkRevealer.
Ignore reveal-child property and added a proxy property to test it.
Added icons.
2013-08-07 06:33:23 -03:00
Timm Bäder
3b1c92f1a1 Add GtkRevealer to the Gtk+ catalog 2013-08-05 11:33:35 -03:00
Juan Pablo Ugarte
35e7b5e6a7 Replaced g_type_class_add_private() with G_ADD_PRIVATE ()
because the new template api no longer works with g_type_class_add_private()
This fixes crashes in every template object
2013-07-29 15:10:36 -03:00
Colin Walters
e42648eb11 Fix up previous patch to build
It wasn't complete.
2013-07-27 09:28:11 -04:00
Matthias Clasen
58a8879a7f Adapt to recent GTK+ api changes
The template binding macros got renamed around a few times.

https://bugzilla.gnome.org/show_bug.cgi?id=704965
2013-07-27 14:05:24 -04:00
Chao-Hsiung Liao
54763c43ff Updated Traditional Chinese translation(Hong Kong and Taiwan) 2013-07-25 19:49:38 +08:00
Benjamin Steinwender
1a4961e90d Updated German translation 2013-07-22 06:41:04 +02:00
Juan Pablo Ugarte
1bce0c9a69 Made GladeProject load and save document level comments present before the root element.
Save in a comment the glade version used to create the file.
2013-07-19 16:17:17 -03:00
Juan Pablo Ugarte
eba6befa44 Added new funtions to handle document level comments
glade_xml_doc_new_comment(), glade_xml_node_prev_with_comments (),
glade_xml_node_add_prev_sibling () and glade_xml_node_add_next_sibling ()
2013-07-19 16:17:17 -03:00
Marek Černocký
accd7067a1 Updated Czech translation 2013-07-19 08:13:03 +02:00
Marek Černocký
1e80b8529e Updated Czech translation 2013-07-12 21:11:09 +02:00
Juan Pablo Ugarte
89fd135446 Fixed leak in glade_design_layout_drag_begin() 2013-07-11 12:08:10 -03:00
Juan Pablo Ugarte
71b70b37ab Removed use of deprecated gtk_widget_get_style() function
and hardcoded dark and light colors since we are already using a pixmap for the background
2013-07-10 17:44:04 -03:00
Andika Triwidada
15f08f078e Updated Indonesian translation 2013-07-07 08:28:55 +07:00
Marek Černocký
6d6bfce1fc Updated Czech translation 2013-07-06 11:12:24 +02:00
Juan Pablo Ugarte
19ebe3e740 Made double click on the toplevel border select the widget even if there is a child selected. 2013-07-01 17:12:45 -03:00
Edson Silva
752ee621bd Updated Brazilian Portuguese translation 2013-06-30 10:16:46 -03:00
Juan Pablo Ugarte
782831b1f7 Update widget name when realizing layout to prevent lossing it after a reparent. 2013-06-27 18:05:19 -03:00
Juan Pablo Ugarte
ae3b358105 Replaced use of cairo_device_to_user() with cairo_translate() cairo_move_to() combination to
avoid a selection drawing bug on overlay children.
2013-06-26 17:08:16 -03:00
Juan Pablo Ugarte
c222ee5d90 Remove shadow from GladeEditor internal scrolled window since its packed inside a notebook page. 2013-06-26 17:08:16 -03:00
Sébastien Granjoux
b81f5455d5 bgo #700730 - Weird windows showing up when a dock is moved while editing a GtkBuilder file 2013-06-26 21:52:06 +02:00
Matthias Clasen
a2ba7b937e Add man pages
https://bugzilla.gnome.org/show_bug.cgi?id=703013
2013-06-26 00:00:24 -04:00
Daniel Mustieles
e29c947a60 Updated Spanish translation 2013-06-18 11:16:52 +02:00
Tristan Van Berkom
fb1a060b3a Revert "glade-inspector: Use a GtkSearchEntry"
This reverts commit 9d462d504e3f82df7524c68f13bc98863272919c.

The search entry dominates the entry icons, which are used by
Glade (Glade uses the secondary icon to 'expand-all' the treeview
in a single click).
2013-06-18 17:53:34 +09:00
Tristan Van Berkom
0acc6910cf Rolling 3.15.2 Development Snapshot 2013-06-18 17:46:28 +09:00
Marco Diego Aurélio Mesquita
b817dc2419 Only update project if the project has indeed changed. 2013-06-18 17:46:28 +09:00
Tristan Van Berkom
7f78ea6f64 Fix bug 588844 - query dialog cancels if deleted
Cancel the operation if the window close button is clicked or Escape is pressed.
2013-06-18 17:46:28 +09:00
Daniel Mustieles
fd967b9720 Updated Spanish translation 2013-06-17 17:53:49 +02:00
Jasper St. Pierre
9d462d504e glade-inspector: Use a GtkSearchEntry 2013-06-14 23:49:37 -04:00
Juan Pablo Ugarte
4e9fd1a6be Fixed drag icon rendering bug. for some reason we need a cairo save/restore
around our custom draw methods otherwise the children rendering get affected
by our modifications to the cairo matrix.
2013-06-06 20:09:56 -03:00
Juan Pablo Ugarte
e82687bcc9 Fixed drag&drop bug. A bogus drag was being triggered when resizing a widget in the workspace. 2013-06-06 20:04:08 -03:00
Juan Pablo Ugarte
7b0573899b Set GladeEditor:show-class-field runtime default to be the same as the proeprty default
Fixes bug that made glade_editor_hide_class_field() do not work the first time it was called.
2013-06-06 16:04:36 -03:00
Fran Diéguez
4e3789872d Updated Galician translations 2013-06-06 12:15:09 +02:00
Daniel Mustieles
1064b9cddb Updated Spanish translation 2013-06-05 18:28:31 +02:00
Dimitris Spingos
23c5b07803 Updated Greek translation 2013-06-05 07:50:14 +03:00
Marek Černocký
b80b6e2bc7 Fixed typo 2013-06-04 22:13:16 +02:00
Jiro Matsuzawa
fcdc0035a7 l10n: Update Japanese translation 2013-06-01 00:18:50 +09:00
Jiro Matsuzawa
86877629b2 l10n: Update Japanese translation 2013-05-31 23:14:07 +09:00
Juan Pablo Ugarte
3b4495bafa Made GladeWindow a composite template.
NOTE: most of the changes in glade.glade are because widgets are moved one level in the hierarchy
2013-05-22 15:33:43 -03:00
Juan Pablo Ugarte
ad72d61786 Ignore auto generaded files 2013-05-22 15:33:18 -03:00
Juan Pablo Ugarte
611139d8d7 Fixed bug in optional object properties loading 2013-05-22 15:12:44 -03:00
Tristan Van Berkom
86fc704c54 Patch up bug 589337 - Fix by Michal 'hramrach' Suchanek <hramrach@gmail.com>
This is a bandaid which fixes anoyance in dialogs which appear when creating
variable widgets like HBox.

The spin editor is used in multiple places but only htese dialogs have a
default button so it is safe to set the spinbutton to activate default
unconditionally. Does not seem to break anything.
2013-05-20 21:06:39 +09:00
Daniel Mustieles
3892085794 Updated Spanish translation 2013-05-20 12:59:17 +02:00
Tristan Van Berkom
4f8e1eac36 GtkStatusbar: Allow editing "size" and don't query for "size" 2013-05-20 17:03:48 +09:00
Aurimas Černius
fceed3f2e0 Updated Lithuanian translation 2013-05-19 23:18:45 +03:00
Tristan Van Berkom
5241fd092e Disable GtkTreeViewColumn:cell-area
CellAreas are still not configurable in Glade.
2013-05-19 21:16:48 +09:00
Tristan Van Berkom
a5207ae28d Fix crasher bug 682191 - Avoid copying unknown widget types
Fixed check for unknown widget types when user tries to cut/copy
widgets to be a recursive check.
2013-05-19 20:52:35 +09:00
Tristan Van Berkom
020fc3b350 Fix bug 686418 - crashes related to setting 'can-focus' property in the runtime.
Not sure how this fixes things, we're probably taping over a deeper bug
inside GTK+.
2013-05-19 20:31:25 +09:00
Tristan Van Berkom
616d529319 Let GtkEntry:has-frame be set on runtime objects 2013-05-19 20:27:36 +09:00
Tristan Van Berkom
84990bcaec Fix bug 692972 - Make spin buttons commit values synchronously
Two things done to fix this:
  o gtk_spin_button_set_numeric() used to force numeric input
  o Connect to the GtkEditable::changed signal and force the
    value update with gtk_spin_button_update(), causing the
    value-changed signal to be emitted synchronously and
    the new property value committed.
2013-05-19 19:26:57 +09:00
Tristan Van Berkom
9771ab601e GtkInfoBar: Horizontal by default. 2013-05-19 19:06:23 +09:00
Tristan Van Berkom
a456f21414 Added GladeArrowEditor
A simple editor which embeds the GladeMiscEditor.
2013-05-19 18:19:54 +09:00
Tristan Van Berkom
e40034610b Enhanced Label Editing
o Use shared GladeMiscEditor
  o Allow setting of width-chars / max-width-chars separately, since 3.0
    those are not mutually exclusive (maybe they never were ?)
2013-05-19 18:01:25 +09:00
Tristan Van Berkom
2264f1de48 Added GladeMiscEditor
The GladeMiscEditor edits the common GtkMisc properties in various editors,
this initial commit makes use of the editor in GladeImageEditor.
2013-05-19 17:48:32 +09:00
Tristan Van Berkom
f7fc7903e4 Added GladeIconViewEditor 2013-05-19 17:03:34 +09:00
Tristan Van Berkom
20ed06c8cf Avoid calling gtk_stock_list_ids() when gdk_display_get_default() is NULL
This is a workaround to patch GIR builds to work on build machines
with no DISPLAY.
2013-05-19 02:13:34 +09:00
Tristan Van Berkom
20b4bd963e Added GladeRealTreeViewEditor
GladeTreeViewEditor is already the editor used to combine view editors
with model editors inside a popup GladeBaseEditor, the GladeRealTreeViewEditor
is the custom editor which lays out properties for a GtkTreeView.
2013-05-18 23:27:16 +09:00
Tristan Van Berkom
5c978697e6 Added GladeViewportEditor
Another very basic editor embedding GladeScrollableEditor
2013-05-18 22:21:40 +09:00
Tristan Van Berkom
9df38fc6d9 Added GladeLayoutEditor
A very basic editor which embeds the GladeScrollableEditor
2013-05-18 22:14:41 +09:00
Tristan Van Berkom
6edfe3ba81 Added GladeToolPaletteEditor
A very simple editor which just combines the basic
GladeEditorTable with a GladeScrollableEditor
2013-05-18 22:02:38 +09:00
Tristan Van Berkom
7ca7828200 Added GladeScrollableEditor and GladeTextViewEditor
The GladeScrollableEditor can be embedded for any scrollable
widget editors, GladeTextViewEditor is the first to embed a
scrollable editor.
2013-05-18 22:02:38 +09:00
Tristan Van Berkom
67b013bc1e Added GladeLevelBarEditor 2013-05-18 22:02:38 +09:00
Tristan Van Berkom
50c3c31c82 configure.ac: Remove some useless statements. 2013-05-18 22:02:38 +09:00
Dimitris Spingos
5da496de82 Updated Greek translation 2013-05-17 17:39:13 +03:00
Daniel Mustieles
95627bc015 Updated Spanish translation 2013-05-17 13:34:43 +02:00
Tristan Van Berkom
f6713b724e Added GladeProgressBarEditor 2013-05-17 16:59:04 +09:00
Tristan Van Berkom
22154af400 Added GladeScrollbarEditor 2013-05-17 16:59:04 +09:00
Fran Diéguez
5a30cd5d9a Updated Galician translations 2013-05-16 03:28:22 +02:00
Fran Diéguez
5c4e183cfe Updated Galician translations 2013-05-16 03:19:24 +02:00
Tristan Van Berkom
0cd980f6f1 Added GladeScaleEditor 2013-05-15 22:49:12 +09:00
Daniel Mustieles
6a4cb728d7 Updated Spanish translation 2013-05-13 13:28:00 +02:00
Tristan Van Berkom
10e8fec5cb GladeWidget: Avoid assertions when rebuilding a widget and internal children are missing.
Internal children can go missing when changing a construct property which
decides if the internal child exists, such as the 'has-entry' property
of GtkComboBox.
2013-05-13 19:10:25 +09:00
Tristan Van Berkom
ae6bdf61f6 Added GladeComboBoxEditor 2013-05-13 19:05:26 +09:00
Tristan Van Berkom
9b06b5bb09 Enhancing GtkComboBox editing regarding tearoff menus 2013-05-13 18:35:25 +09:00
Tristan Van Berkom
8ed9111ee5 Enhancing GtkComboBoxText editor
Now the entry related properties are insensitive if 'has-entry' is
false, added the entry related properties to the GtkComboBoxText editor.
2013-05-13 18:12:18 +09:00
Tristan Van Berkom
4a65620ac5 GladeGtkComboBoxText / GladeStringList: Support editing the <item> "id" attributes
Let users specify "id"s for the text they add to a GtkComboBoxText

This patch updates a couple other files which use GladeStringList without
the "ID" feature.
2013-05-13 17:18:49 +09:00
Tristan Van Berkom
bf0f4e0037 Added GladeComboBoxTextEditor 2013-05-13 01:04:26 +09:00
Tristan Van Berkom
02ffbbc482 Added GladeAppChooserButtonEditor 2013-05-12 21:02:45 +09:00
Tristan Van Berkom
d7155dc95a Added GladeAppChooserWidgetEditor 2013-05-12 20:26:15 +09:00
Tristan Van Berkom
17a43f9cea GTK+ Plugin: Touch up properties for GtkAppChooserDialog 2013-05-12 19:42:15 +09:00
Tristan Van Berkom
bba4e48982 Added GladeScaleButtonEditor. 2013-05-12 19:30:35 +09:00
Tristan Van Berkom
c733d592a8 GladeButtonEditor: Added an extension port for derived editors to add properties 2013-05-12 19:29:59 +09:00
Tristan Van Berkom
0cca1d2ee9 GladeButtonEditor: Don't allow modifying content of a GtkLinkButton 2013-05-12 18:41:29 +09:00
Tristan Van Berkom
fb0d83cb9b GladeWindowEditor: Touchup UI 2013-05-12 18:33:38 +09:00
Tristan Van Berkom
83657c6e7b GladePropertyLabel: No hard coded width anymore. 2013-05-12 06:08:01 +09:00
Tristan Van Berkom
b1de8f23ef Added GladeSpinButtonEditor 2013-05-11 20:05:08 +09:00
Tristan Van Berkom
5ca9b80a4f GladeEntryEditor: Added an extension port and added to the private catalog. 2013-05-11 19:30:34 +09:00
Tristan Van Berkom
fb2cd0f62c GTK+ Plugin: Mark the GtkSwitch with the GtkActionable property. 2013-05-11 19:21:41 +09:00
Tristan Van Berkom
021a0176cd Added GladeNotebookEditor 2013-05-11 19:04:55 +09:00
Tristan Van Berkom
20cc790b5d GladeGtkScrolledWindow adaptor: Fixed compiler warning 2013-05-11 19:02:34 +09:00
Daniel Mustieles
8d33548d18 Updated Spanish translation 2013-05-10 18:21:49 +02:00
Tristan Van Berkom
702e626c79 Fix GTK+ plugin Makefile.am to dist glade-grid-editor.h 2013-05-10 23:47:46 +09:00
Tristan Van Berkom
87986f29c8 Added GladeScrolledWindowEditor 2013-05-10 23:47:46 +09:00
Tristan Van Berkom
07cb7bf0db GTK+ Plugin: Disable expander's use-underline / use-markup properties
We only allow adding a GtkLabel with Glade, no need to edit these
properties on the expander.
2013-05-10 23:47:46 +09:00
Tristan Van Berkom
73757c51fa Fix whitespace problem in glade_app_class_init() 2013-05-10 23:47:46 +09:00
Daniel Mustieles
614b95734a Updated Spanish translation 2013-05-09 17:31:02 +02:00
Daniel Mustieles
951fea3730 Fixed typo in string 2013-05-09 16:58:53 +02:00
Daniel Mustieles
a0fde98839 Fixed typo in string 2013-05-09 16:51:23 +02:00
Tristan Van Berkom
96662c3f1b GladeActionEditor: Mark a custom text as translatable 2013-05-09 21:53:02 +09:00
Tristan Van Berkom
6a305d64ca Added GladeGridEditor 2013-05-09 21:50:46 +09:00
Tristan Van Berkom
52ee0c01db Mark GladePropertyShell:custom-text as translatable 2013-05-09 21:49:03 +09:00
Tristan Van Berkom
76f5cbc050 Added GladeBoxEditor 2013-05-09 21:17:11 +09:00
Tristan Van Berkom
edb74dd238 Converted GladeIconFactoryEditor, GladeImageItemEditor and GladeStoreEditor to be GtkBox subclasses 2013-05-07 14:34:05 +09:00
Tristan Van Berkom
cc43c221c6 Converted GladeToolItemGroupEditor and GladeTreeViewEditor to be GtkBox subclasses. 2013-05-07 14:26:29 +09:00
Tristan Van Berkom
5741a2dc81 GladeCellRendererEditor: Is now a GtkBox instead of a GtkVBox 2013-05-07 14:24:10 +09:00
Tristan Van Berkom
4eaa374570 Cleanup deprecation warnings in GtkDialog adaptor
(special cases some deprecated subclasses)
2013-05-07 14:23:33 +09:00
Tristan Van Berkom
0041fd54bd Cleanup deprecation warnings in GtkTable adaptor 2013-05-07 14:23:19 +09:00
Tristan Van Berkom
b557658626 Remove GtkTable from "Add Parent" actions (now we have GtkGrid there) 2013-05-07 14:22:39 +09:00
Tristan Van Berkom
2fb4d17701 Converted GladeBaseEditor, GladeDesignView and GladePalette to be GtkBox subclasses
Avoids deprecation warnings from GtkVBox.
2013-05-07 14:14:09 +09:00
Aurimas Černius
d13fbc999d Updated Lithuanian translation 2013-05-06 23:31:05 +03:00
Tristan Van Berkom
da112b7d61 Added GladeRecentChooserMenuEditor.
An editor which embeds a GladeActivatableEditor and a GladeRecentChooserEditor
2013-05-05 21:55:04 +09:00
Tristan Van Berkom
4724aa138f Added GladeRecentActionEditor
This derives the GladeActionEditor and embeds a GladeRecentChooserEditor.

GladeRecentChooserEditor now conditionally shows some properties
based on whether its a GtkRecentAction or not (i.e. "select-multiple"
and "show-numbers").
2013-05-05 21:28:51 +09:00
Tristan Van Berkom
edcc8eb987 Fold GtkToggleAction and GtkRadioAction properties into the Action editor. 2013-05-05 21:04:44 +09:00
Tristan Van Berkom
1968cf78f8 Added GladeActionEditor.
GladeActionEditor provides an internal extension port for subclasses
to extend the editor.
2013-05-05 20:38:21 +09:00
Tristan Van Berkom
79870f076b GladeEditorProperty: Stock icon editor combo expands in it's box 2013-05-05 20:37:55 +09:00
Tristan Van Berkom
c7685964c1 Added GladeRecentChooserWidgetEditor. 2013-05-05 19:04:38 +09:00
Tristan Van Berkom
cc607ee914 Added GladeRecentChooserDialogEditor
A GladeWindowEditor embedding a GladeRecentChooserEditor
2013-05-05 18:45:45 +09:00
Tristan Van Berkom
40fcf1db0d Added GladeRecentChooserEditor
An embeddable recent chooser editor for recent chooser editors.
2013-05-05 17:24:43 +09:00
Tristan Van Berkom
421a98602a Gladeui plugin: Disable box property on GladePropertyShell 2013-05-05 17:20:09 +09:00
Tristan Van Berkom
a812540d60 Added GladeMessageDialogEditor
A GladeWindowEditor with message dialog attributes.
2013-05-05 17:20:09 +09:00
Tristan Van Berkom
79c6ce0ed9 GladeEditorProperty & GladePropertyShell: Added "custom-text" property
Allows overriding the text which might show up in a GladeEpropCheck
(or any item label created by a GladeEditorProperty, which might be
created by a GladePropertyShell).
2013-05-05 17:20:09 +09:00
Matej Urbančič
7e3ad235b1 Updated Slovenian translation 2013-05-04 21:35:00 +02:00
Tristan Van Berkom
154d10d0e4 Added GladeFontButtonEditor
Embeds a GladeFontChooserEditor and formats some other properties
2013-05-04 23:38:46 +09:00
Tristan Van Berkom
96f1642b80 Added GladeFontChooserWidgetEditor
Embeds GladeEditorTable and GladeFontChooserEditor.
2013-05-04 23:07:36 +09:00
Tristan Van Berkom
1de549357c Added GladeFontChooserDialog editor.
A GladeWindowEditor which embeds the GladeFontChooserEditor
2013-05-04 23:07:36 +09:00
Tristan Van Berkom
3fe212478c Added GladeFontChooserEditor 2013-05-04 23:07:36 +09:00
Tristan Van Berkom
3ae881a906 Added GladeFileChooserButtonEditor
Embeds GladeFileChooserEditor and formats a few extra properties
2013-05-04 23:07:36 +09:00
Tristan Van Berkom
defbbe8706 Added GladeFileChooserButtonEditor
Embeds GladeFileChooserEditor and formats a few extra properties
2013-05-04 21:56:41 +09:00
Tristan Van Berkom
1cfe0037af Added GladeFileChooserWidgetEditor
Simply embeds a GladeFileChooserEditor.
2013-05-04 21:26:22 +09:00
Tristan Van Berkom
b5f11f757b Added GladeFileChooserEditor and GladeFileChooserDialogEditor
The GladeFileChooserEditor holds all the file chooser attributes,
the GladeFileChooserDialogEditor embeds a GladeFileChooserEditor.
2013-05-04 21:15:46 +09:00
Tristan Van Berkom
8b8597904d GladeImageEditor: Remove unneeded code. 2013-05-04 20:35:46 +09:00
Tristan Van Berkom
671e901b34 GladeEditorTable: Remember the show-name setting incase the name field is built after show-name is set. 2013-05-04 20:35:46 +09:00
Tristan Van Berkom
ac3319497b Fix GtkIconFactory sources editor.
The editor was busted in a few ways.
2013-05-04 18:06:51 +09:00
Tristan Van Berkom
a3336ff6ff Removed glade-gtk.c, now all adaptor code is in separate C files. 2013-05-04 16:19:03 +09:00
Tristan Van Berkom
c90bfb2f1d Move GladeWidgetAdaptor code for Gtk[Recent/File]Filter into it's own C file 2013-05-04 16:16:06 +09:00
Tristan Van Berkom
5dff30c90e Move GladeWidgetAdaptor code for GtkTextTagTable into it's own C file 2013-05-04 16:12:54 +09:00
Tristan Van Berkom
e3d73585c7 Move GladeWidgetAdaptor code for GtkActionGroup into it's own C file 2013-05-04 16:10:42 +09:00
Tristan Van Berkom
411535efba Move GladeWidgetAdaptor code for GtkAction into it's own C file 2013-05-04 16:08:19 +09:00
Tristan Van Berkom
7fa6949a33 Move GladeWidgetAdaptor code for GtkAdjustment into it's own C file 2013-05-04 16:03:35 +09:00
Tristan Van Berkom
540acc17bb Move GladeWidgetAdaptor code for various classes into their own C files
Moved GtkListStore, GtkCellRenderer, GtkCellLayout and GtkTreeView
2013-05-04 16:00:02 +09:00
Tristan Van Berkom
d499a3d528 Move GladeWidgetAdaptor code for GtkIconFactory into it's own C file 2013-05-04 15:29:11 +09:00
Tristan Van Berkom
0bf9f5fe6a Move GladeWidgetAdaptor code for GtkSizeGroup into it's own C file 2013-05-04 15:26:23 +09:00
Tristan Van Berkom
0590f71530 Move GladeWidgetAdaptor code for GtkRadioButton into it's own C file 2013-05-04 15:24:04 +09:00
Tristan Van Berkom
551a57107e Move GladeWidgetAdaptor code for GtkAssistant into it's own C file 2013-05-04 15:22:18 +09:00
Tristan Van Berkom
92939f59e2 Move GladeWidgetAdaptor code for GtkSpinButton into it's own C file 2013-05-04 15:19:34 +09:00
Tristan Van Berkom
824dab71f7 Move GladeWidgetAdaptor code for GtkComboBoxText into it's own C file 2013-05-04 15:15:04 +09:00
Tristan Van Berkom
3e91894c48 Move GladeWidgetAdaptor code for GtkComboBox into it's own C file 2013-05-04 15:12:33 +09:00
Tristan Van Berkom
9b2f2fcf97 Move GladeWidgetAdaptor code for GtkTextView into it's own C file 2013-05-04 15:10:41 +09:00
Tristan Van Berkom
d309a32a67 Move GladeWidgetAdaptor code for GtkTextBuffer into it's own C file 2013-05-04 15:09:16 +09:00
Tristan Van Berkom
c29aaa1cdd Move GladeWidgetAdaptor code for GtkEntryBuffer into it's own C file 2013-05-04 15:07:20 +09:00
Tristan Van Berkom
1b165eaf7c Removing unused #defines 2013-05-04 15:04:56 +09:00
Tristan Van Berkom
554133a878 Move GladeWidgetAdaptor code for GtkLabel into it's own C file 2013-05-04 15:04:07 +09:00
Tristan Van Berkom
6c2ac93f4a Move GladeWidgetAdaptor code for GtkMenuToolButton into it's own C file 2013-05-04 14:58:56 +09:00
Tristan Van Berkom
9c925c2b9b Move GladeWidgetAdaptor code for GtkToolButton into it's own C file 2013-05-04 14:56:18 +09:00
Tristan Van Berkom
30aeb3de35 Move GladeWidgetAdaptor code for GtkToolItem into it's own C file 2013-05-04 14:54:02 +09:00
Tristan Van Berkom
e739373589 Move GladeWidgetAdaptor code for GtkToolItemGroup into it's own C file 2013-05-04 14:52:26 +09:00
Tristan Van Berkom
bd3ffc965c Move GladeWidgetAdaptor code for GtkToolPalette into it's own C file 2013-05-04 14:49:45 +09:00
Tristan Van Berkom
27757c1836 Move GladeWidgetAdaptor code for GtkToolbar into it's own C file 2013-05-04 14:46:29 +09:00
Tristan Van Berkom
3f55af7072 Move GladeWidgetAdaptor code for GtkMenuBar into it's own C file 2013-05-04 14:43:14 +09:00
Tristan Van Berkom
916233cebf Move GladeWidgetAdaptor code for GtkRadioMenuItem into it's own C file 2013-05-04 02:06:04 +09:00
Tristan Van Berkom
16906e0f14 Move GladeWidgetAdaptor code for GtkImageMenuItem into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
ea11835fa5 Move GladeWidgetAdaptor code for GtkMenuItem into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
2a041f5d1e Move GladeWidgetAdaptor code for GtkMenuShell into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
bd00d95c74 Move GladeWidgetAdaptor code for GtkRecentChooserMenu into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
65b70fbbd1 Move GladeWidgetAdaptor code for GtkMenu into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
6338066d4b Move GladeWidgetAdaptor code for GtkImage into it's own C file
Includes a bit of a fixup for the GtkButton code
2013-05-04 02:06:03 +09:00
Tristan Van Berkom
494e742b95 Move GladeWidgetAdaptor code for GtkButton into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
4a91d9be6d Move GladeWidgetAdaptor code for GtkFileChooserWidget into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
b145dd40eb Move GladeWidgetAdaptor code for GtkMessageDialog into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
7160b30eb5 Move GladeWidgetAdaptor code for GtkDialog into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
882533bee5 Move GladeWidgetAdaptor code for GtkAboutDialog into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
37cc8fcf0c Move GladeWidgetAdaptor code for GtkWindow into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
f8d2db9a3f Move GladeWidgetAdaptor code for GtkFixed/GtkLayout into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
aaf753ce83 Move GladeWidgetAdaptor code for GtkEntry into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
b13dfaf3e3 Move GladeWidgetAdaptor code for GtkExpander into it's own C file 2013-05-04 02:06:03 +09:00
Tristan Van Berkom
3cd9be03e8 Move GladeWidgetAdaptor code for GtkPaned into it's own C file 2013-05-04 02:06:02 +09:00
Tristan Van Berkom
aacacff971 Move GladeWidgetAdaptor code for GtkNotebook into it's own C file 2013-05-04 02:06:02 +09:00
Tristan Van Berkom
0d48de27ec Move GladeWidgetAdaptor code for GtkFrame into it's own C file 2013-05-04 02:06:02 +09:00
Tristan Van Berkom
a9628287b9 Moving a function from glade-gtk.c to glade-fixed.c 2013-05-04 02:06:02 +09:00
Tristan Van Berkom
94a5f71ad0 Move GladeWidgetAdaptor code for GtkContainer into it's own C file 2013-05-04 02:06:02 +09:00
Tristan Van Berkom
ee8deae7b6 Move GladeWidgetAdaptor code for GtkWidget into it's own C file
Also migrated accelerator [de]serialization into glade-accels.[ch]
2013-05-04 02:06:02 +09:00
Dimitris Spingos
b425c97650 Updated Greek translation 2013-05-02 21:43:14 +03:00
Tristan Van Berkom
64ed9edbbe GladeEditorProperty: Minimum width of 8 chars for combo boxes (before wrapping) 2013-05-02 14:40:51 +09:00
Tristan Van Berkom
40fa80d8bc GladeAboutDialogEditor: Saved again without the erronous packing properties. 2013-05-02 14:32:01 +09:00
Tristan Van Berkom
c3538566b8 Private Catalog: Mark GladeWindowEditor's extension-port as an anarchist child.
This disables packing properties, which are inappropriate in this case.
2013-05-02 14:31:06 +09:00
Tristan Van Berkom
0863f386bf GladeEditorProperty: Enable word wrapping in combo boxes. 2013-05-02 01:37:32 +09:00
Tristan Van Berkom
9974676e13 GladeAboutDialogEditor: Touching up UI 2013-05-02 01:24:25 +09:00
Tristan Van Berkom
499e29d232 Adding glade-about-dialog-editor.c to POTFILES.in 2013-05-02 00:17:38 +09:00
Tristan Van Berkom
6dbc09cd45 Set translation domain for about dialog editor 2013-05-01 23:57:01 +09:00
Tristan Van Berkom
0ace3df4fd Added GladeAboutDialogEditor 2013-05-01 23:55:26 +09:00
Tristan Van Berkom
0a5c552095 GtkBox adaptor: Handle internal widgets properly 2013-05-01 23:54:42 +09:00
Tristan Van Berkom
5fd9e9afb0 Add GladeWindowEditor to private catalog 2013-05-01 23:54:19 +09:00
Tristan Van Berkom
01c56c07e1 GladeWindowEditor: Added an extension port for derived editors. 2013-05-01 23:53:50 +09:00
Tristan Van Berkom
1e863aa50f GladePropertyShell: Added pre/post commit signals 2013-05-01 23:52:40 +09:00
Tristan Van Berkom
7969d2bd97 GladeEditorProperty: Make combos expand 2013-05-01 23:52:20 +09:00
Tristan Van Berkom
5b2228e8a1 Unmark GtkWidget:has-focus & is-focus as save-always.
This was a copy/paste error, there is no need to mark these as save-always
and it introduces meaningless diffs in projects
2013-05-01 20:26:47 +09:00
Tristan Van Berkom
33accd8725 glade-window-editor.ui: Added missing translation domain setting. 2013-05-01 20:23:08 +09:00
Daniel Mustieles
e395758b54 Updated Spanish translation 2013-04-28 21:02:13 +02:00
Daniel Mustieles
d0868d8c82 Updated Spanish translation 2013-04-28 21:01:20 +02:00
Piotr Drąg
ba955db20b Updated POTFILES.in 2013-04-28 19:02:12 +02:00
Tristan Van Berkom
ff1a3af6df Added new custom editor GladeWindowEditor. 2013-04-28 22:45:35 +09:00
Tristan Van Berkom
4d4bedd120 Added more debugging domains, enabled some long dornmant debug prints 2013-04-28 20:44:31 +09:00
Tristan Van Berkom
b1d730a945 Added debug flags and --enable-debug configure option.
Also fixed warnings for versioning errors and such, GladeVerifyFlags was
not properly defined.
2013-04-28 20:24:02 +09:00
Tristan Van Berkom
e3d3b8ab60 GTK+ Catalog: Bumped current GTK+ version to 3.10 and added missing displayable values. 2013-04-28 19:29:12 +09:00
Tristan Van Berkom
992a332ccf GladeActivatableEditor: Hide the actionable properties if not actionable. 2013-04-28 19:13:45 +09:00
Tristan Van Berkom
5f894ab111 Ported GladeToolButtonEditor to use a composite widget template 2013-04-28 19:13:45 +09:00
Tristan Van Berkom
453bb7f3f9 GladeButtonEditor: Remove pointless finalize implementation. 2013-04-28 18:46:52 +09:00
Tristan Van Berkom
6626d36433 GladeEditable: Automatically disconnect to signals when an editor is destroyed. 2013-04-28 18:46:20 +09:00
Tristan Van Berkom
5420fef2c6 GladeEditorProperty: Fixed typo which was causing assertions 2013-04-28 18:46:00 +09:00
Tristan Van Berkom
39eef1079f Bug 698920: New icon for GtkMenuButton
New icon by Paolo Borelli
2013-04-27 21:19:30 +09:00
Tristan Van Berkom
24e81bb028 GladeInspector: Add ellipsizing text
Now we combine the type name & detail cells into the same cell and
ellipsize that cell (it works better if only one cell ellipsizes).
2013-04-26 22:13:26 +09:00
Tristan Van Berkom
9c37e519a6 GladePreferences: Corrected type in "Create bsackups" 2013-04-26 19:38:33 +09:00
Tristan Van Berkom
972f9474d6 GladeWidget: Reorder properties, avoid crash when setting the object before the adaptor. 2013-04-26 19:38:16 +09:00
Daniel Mustieles
308cad44a5 Updated Spanish translation 2013-04-25 17:40:06 +02:00
Tristan Van Berkom
1906695523 Moving GtkPlacesSidebar into the composite widgets section of the palette. 2013-04-25 15:51:10 +09:00
Tristan Van Berkom
75409b4905 GladePopup: Use real GtkSeparatorMenuItems
This apparently makes a difference with the Adwaita theme.
2013-04-25 15:32:04 +09:00
Fran Diéguez
efcfe5979d Updated Galician translations 2013-04-24 09:52:29 +02:00
Dimitris Spingos
942ae60198 Updated Greek translation 2013-04-23 22:33:17 +03:00
Federico Mena Quintero
65176b1112 Add icons for GtkPlacesSidebar
BOW TO MY MAD PIXEL-PUSHING SKILLZ.
2013-04-22 16:13:43 -04:00
Federico Mena Quintero
53471a94e1 Add GtkPlacesSidebar to the gtk+ plugin's catalog
Signed-off-by: Federico Mena Quintero <federico@gnome.org>
2013-04-22 15:49:04 -04:00
Tristan Van Berkom
277fa7ee6a Rolling 3.15.1 2013-04-22 17:27:41 +09:00
Fran Diéguez
fb47b778cc Updated Galician translations 2013-04-21 23:48:29 +02:00
Tristan Van Berkom
0d903542cd GladeEntryEditor: Ported to use GtkBuilder composite templates.
The entry editor is now much improved and better formatted, additionally
we use a check mark for 'use markup' instead of presenting both
tooltip-markup / tooltip-text properties (as we do in GladeWidgetEditor).

A few other improvements were made too, don't allow editing 'shadow-type'
if 'has-frame' is FALSE, don't allow editing 'invisible-char' if 'visibility'
is TRUE.
2013-04-22 00:52:18 +09:00
Tristan Van Berkom
871c7f59c3 GladeEditorProperty: Make internal entries and spin buttons expand horizontally
This makes for better alignment of input fields, and it's just the internal
entries and spin buttons which expand, the surrounding GladeEditorProperty
itself can be made to not expand (which often it does), this ensures that
the available space is filled by the internal editing widget.
2013-04-22 00:44:58 +09:00
Tristan Van Berkom
522b12e6a4 GladeImageEditor: Ported to use composite GtkBuilder template. 2013-04-21 21:35:23 +09:00
Tristan Van Berkom
f39d7233a8 GladeLabelEditor: Removed old UI construction code 2013-04-21 21:35:04 +09:00
Tristan Van Berkom
17514ecda9 GladeEditorTable: Added check button to mark a toplevel GtkWidget as composite. 2013-04-21 20:40:34 +09:00
Tristan Van Berkom
f6f0656119 GladeEditorTable: Enhance name label for composite templates.
When a widget is a composite template, then call the "ID:" field
the "Class Name:" field instead.
2013-04-21 20:08:13 +09:00
Tristan Van Berkom
5f37c6e050 GladeLabelEditor: UI Touchup 2013-04-21 20:01:12 +09:00
Tristan Van Berkom
824e913b50 GladeLabelEditor: Port to be a composite template and derive from GladeEditorSkeleton
Now the GladeLabelEditor can be edited in Glade.
2013-04-21 18:13:48 +09:00
Tristan Van Berkom
205f4bbe8f GladeAttributes: Make the editor button have a label and expand horizontally 2013-04-21 18:13:17 +09:00
Tristan Van Berkom
020115698c GladeWidgetEditor: Removed the useless embedded GladeEditorTable. 2013-04-21 15:55:41 +09:00
Tristan Van Berkom
df60e97f4c Cleanup gtk+.xml.in: Removed 'common' attributes for all custom-layout properties 2013-04-21 15:54:50 +09:00
Tristan Van Berkom
a4c5da1ad2 GladeWidgetEditor: UI touchups 2013-04-20 23:11:18 +09:00
Tristan Van Berkom
7ff3db8df1 Added GladeWidgetEditor.
A nicely formatted editor for GtkWidget & GtkContainer attributes
2013-04-20 22:42:14 +09:00
Tristan Van Berkom
4a26b3c54f GladeStringList: Make the treeview expand horizontally 2013-04-20 21:50:27 +09:00
Tristan Van Berkom
94dbdf9f34 GladeStringList: request height for four lines of text 2013-04-20 19:37:45 +09:00
Tristan Van Berkom
a4e96be158 GladeButtonEditor: Reworked UI 2013-04-20 19:04:33 +09:00
Tristan Van Berkom
7f1c227b6d GladeActivatableEditor: UI touchup 2013-04-20 19:04:09 +09:00
Tristan Van Berkom
92592e1517 Created GladeProjectProperties dialog
Split out the code in GladeProject and created a separate object implementing
the project properties dialog as a composite template widget.
2013-04-20 17:10:05 +09:00
Juan Pablo Ugarte
ce301a0be9 GladeDesignLayout: added GTK_STYLE_CLASS_BACKGROUND class to default_context, so widgets other than GtkWindow get a proper background. 2013-04-19 20:01:32 -03:00
Juan Pablo Ugarte
5b79610a34 GladeDesignLayout, GladePalette: Use class icon and name + widget name as drag icon widget. 2013-04-19 20:01:31 -03:00
Alexandre Franke
9f9dc95a25 Update French translation 2013-04-18 15:59:13 +02:00
Tristan Van Berkom
8ffd04f962 Bug 697926: Signal Editor now initially expands rows which contain handlers 2013-04-16 22:02:11 +09:00
Tristan Van Berkom
068f41e701 GladeButtonEditor: UI touchups 2013-04-16 05:30:07 +09:00
Tristan Van Berkom
733da124e6 GladeActivatableEditor: UI touchups 2013-04-16 05:30:07 +09:00
Tristan Van Berkom
bc26f11f9c GladeEditorTable: Column spacing of 6 2013-04-16 05:30:06 +09:00
OKANO Takayoshi
ef450ea6b5 l10n: Update Japanese translation 2013-04-16 01:45:26 +09:00
Tristan Van Berkom
1028e9dd21 Moved old ChangeLog to a zipped file, now generate ChangeLog at make dist time. 2013-04-15 17:27:30 +09:00
Tristan Van Berkom
4e3c6e869e Removed obsolete togglebutton editor from the private editors catalog 2013-04-15 16:02:29 +09:00
Tristan Van Berkom
dce660ca4c Bumping required GTK+ version to 3.9.0 2013-04-15 15:59:20 +09:00
Tristan Van Berkom
969e5b20b1 GladeButtonEditor: Now handle all subclasses in this editor.
Looks much nicer all formatted into the same editor... removed
the other experimental radio/toggle editors
2013-04-15 15:47:18 +09:00
Tristan Van Berkom
618c186338 GladePropertyShell: Be forgiving for invalid properties.
If the property class is not reachable for the loaded widget, just
silently fail to load, this helps for cases where GladeButtonEditor
also handles subclasses so some properties might or might not be
editable.
2013-04-15 15:42:21 +09:00
Tristan Van Berkom
3a7171cf50 Fixing potfiles 2013-04-15 00:53:38 +09:00
Tristan Van Berkom
1930a79176 Added new GladeRadioButtonEditor
This one just adds the group property to the embedded GladeToggleButtonEditor.
2013-04-15 00:32:33 +09:00
Tristan Van Berkom
ac984203f1 Added GladeToggleButtonEditor.
Mostly just a glade file template and some boiler plate code.
2013-04-15 00:32:33 +09:00
Tristan Van Berkom
3b1da58f52 GladeButtonEditor: Many touchups in the UI, added extension point for embedding additional properties. 2013-04-14 22:45:54 +09:00
Tristan Van Berkom
6aec2ea56f GladePropertyLabel: Now use italic to show changed state of properties.
We want to use bold lettering to show different sections in an editor,
using bold for modified state of properties conflicts with the appearance,
italic is more subtle but also obvious.
2013-04-14 21:51:40 +09:00
Tristan Van Berkom
7e904c4f15 GladeEditorProperty: Dont focus-on-click check buttons. 2013-04-14 21:51:19 +09:00
Tristan Van Berkom
fca1c3f491 GladeGladePropertyShell: Give the shell a label in the UI while editing.
Makes designing a property editor more comfortable.
2013-04-14 21:20:58 +09:00
Tristan Van Berkom
ab97ccad90 GladeButtonEditor: Fleshing out the button editor design a bit.
The thing needs more work to get done nicely, still looks a bit clunky.
2013-04-14 18:38:37 +09:00
Tristan Van Berkom
493dcd42e2 GladeEditorProperty: Avoid assertion when loading NULL widget. 2013-04-14 18:38:16 +09:00
Tristan Van Berkom
58360cd055 Gladeui plugin: Specify that the construct-only 'editor-type' property is to be ignored. 2013-04-14 17:59:26 +09:00
Tristan Van Berkom
b915455d92 glade_util_get_type_from_name() Better logical memory management.
Never free the passed type name.
2013-04-14 17:58:41 +09:00
Tristan Van Berkom
fdbe79f08a GladePropertyShell: Added a construct-only property to specify a GladeEditorProperty type
This allows custom editors to specify a specific GladeEditorProperty type.
2013-04-14 17:56:35 +09:00
Tristan Van Berkom
3be34fa3ce GladePropertyLabel: Added an option to append the ':' colon to the property name
Now we don't do it by default, allowing the check button property editor
to use no colon appended.
2013-04-14 17:55:48 +09:00
Tristan Van Berkom
4d55f3bd48 GladeEditorProperty: Added GladeEpropCheck type
This is a custom boolean editor for embedding in custom editors which
uses a check button... the normal switch based editor is used by default
for cases where we might use a check button in the case the property
is optional.
2013-04-14 17:54:45 +09:00
Tristan Van Berkom
2dd2203cd6 Slightly touching up activatable / button editors. 2013-04-14 17:02:39 +09:00
Tristan Van Berkom
5453bf01c2 Gladeui catalog: Make custom-text/custom-tooltip properties translatable. 2013-04-14 17:01:51 +09:00
Tristan Van Berkom
38c7f6f2ad GladeProperyLabel: Control boldness with PangoAttributes
This lets custom text be bold as well as normal text.
2013-04-14 17:00:45 +09:00
Tristan Van Berkom
1e2ea80dda Gladeui plugin: Disable some properties on GladePropertyLabel 2013-04-14 16:22:49 +09:00
Tristan Van Berkom
1a799133cb GladeEditorProperty: Create multiline text views a 4 lines height 2013-04-14 16:22:00 +09:00
Tristan Van Berkom
7ccd155b2f GladeWindow: Reordered initialization so that GladePreferences are loaded before anything else
This fixes the loading of additional catalogs.
2013-04-14 15:50:58 +09:00
Tristan Van Berkom
0fa650caa0 The private glade-gtk-private catalog depends on the gladeui catalog 2013-04-14 15:50:35 +09:00
Tristan Van Berkom
784b556ac7 Committing glade-button-editor.ui with new glade-gtk-private dependency 2013-04-14 15:50:05 +09:00
Tristan Van Berkom
7af971e552 Fixing up GTK+ plugin
o Removed unused GladeTextButton class

 o Reordered Makefile.am in alphabetical order

 o Fixed some compiler warnings

 o Put .ui/.glade files at the end of lists in POTFILES.in
2013-04-14 15:34:07 +09:00
Tristan Van Berkom
961108a3f2 Port GladeActivatableEditor to use a template.
Also, removed a lot of code regarding managing sensitivity
states with action-appearance, make use-action-appearance/related-action
optional properties as well.

Let's hope things survive with all this removed code.
2013-04-14 02:49:37 +09:00
Tristan Van Berkom
05cdf1e854 Added plugin private catalog 2013-04-14 02:49:37 +09:00
Tristan Van Berkom
05b767855a Special case ignore gresource files in catalog path 2013-04-14 02:49:37 +09:00
Tristan Van Berkom
91208998c2 GladeButtonEditor: Now a composite class defined in builder xml
glade-button-editor.ui can now be edited in Glade, presuming you
have installed the gladeui catalog first.
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
238efe9b78 Gladeui plugin: Add GladeEditorTable to the palette. 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
6c9c113646 GladeGtkGrid adaptor: Disconnect signals on destroy.
This is important if derived grids get reconstructed during project
load time for construct-only properties they might declare.
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
9ce0b07fb9 GladeEditorTable: Make the editor page type a property.
This way we can build/embed GladeEditorTable widgets in other editors.
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
4aca4c517a GladeEditorSkeleton: Fixed chaining up in buildable (for container packing to work) 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
b020f69cbd GladeEditor: Show newly created editors for the query dialog
In other words, dont expect them to be visible by default
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
06f6f829e2 GladeWidget: Allow backends to glade_widget_get_from_gobject() until after "destroyed" 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
e04dfad59d GladeEditorProperty: Make text properties hexpand when multiline 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
eb40b5cae5 Fixing GladePropertyLabel property type for the "property" property ;-) 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
81a044ce2a Addded missing stuff to POTFILES.in 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
e6f537591d Automatically generate enum types. 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
d1f777a5ef Added adaptor to the gladeui plugin for editing GladeEditorSkeletons. 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
f9194a7242 GladeWidget/GladeWidgetAdaptor: Added glade_widget_adaptor_write_widget_after()
This gives a chance to write content of a widget after children are written.
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
e13581f60c Removed the new GladePropertyEditor iface
Now just use GladeEditable everywhere (for property labels, editors and shells).
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
8748db65a7 Added GladeEditorSkeleton
The skeleton supports automatic propagation of loading of it's child
GladePropertyEditors and GladeEditables and implements GtkBuildableIface
in order to load the child editors from builder script.
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
0b40644345 Make GladeEditable implement GladePropertyEditor implicitly.
GladeEditable is a superset of GladePropertyEditor, implementing
GladeEditable is an implicit implementation of GladePropertyEditor.
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
7afab79bf8 Added GladePropertyEditor interface.
This interface captures the common load_by_widget() semantics used by
GladePropertyLabel, GladePropertyShell and GladeEditorProperty.
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
b09f056a13 Gladeui catalog: Added GladePropertyShell, fixed up a bit too. 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
5ec4148fc2 Fixup GladePropertyShell 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
715b85deae Added GladePropertyShell class.
The GladePropertyShell automates the creation of a child editor property.
2013-04-14 02:49:36 +09:00
Tristan Van Berkom
18948af508 Alphabetically ordered Makefile.am sources 2013-04-14 02:49:36 +09:00
Tristan Van Berkom
0133ebf059 Added more configurations to GladePropertyLabel
Now it notably has glade_property_label_load_by_widget().
2013-04-14 02:49:35 +09:00
Tristan Van Berkom
9d9b652859 GladeInspector: Derive from GtkBox 2013-04-14 02:49:35 +09:00
Tristan Van Berkom
9ebe910673 GladePropertyLabel: Added properties to customize the label and tooltip text 2013-04-14 02:49:35 +09:00
Tristan Van Berkom
ae77aaf5c2 GladeEditorProperty: Added an option to disable the optional check button
Also now use ->constructed(), and derive from GtkBox.
2013-04-14 02:49:35 +09:00
OKANO Takayoshi
59c9597bfe l10n: Update Japanese translation 2013-04-13 00:14:14 +09:00
Tristan Van Berkom
640fd3a1dd Recommitting glade.glade with requirement of gladeui catalog. 2013-04-12 21:30:42 +09:00
Tristan Van Berkom
a57a999a6b GladeEditor: Ported to define the UI in templates. 2013-04-12 21:27:44 +09:00
Tristan Van Berkom
61a5396f71 Added gladeui catalog plugin.
Use this to edit Glade files for Glade (or other IDEs using Glade).
2013-04-12 21:27:44 +09:00
Tristan Van Berkom
63a15c5221 GladeSignalEditor: Derive from GtkBox 2013-04-12 21:27:44 +09:00
Dmitrijs Ledkovs
e3da30cf4c Add Grid option to "Add Parent" action. 2013-04-12 20:10:08 +09:00
Tristan Van Berkom
f6a2530385 GladeEditor rework: Make atk.png loaded as a GResource. 2013-04-12 19:28:04 +09:00
Tristan Van Berkom
282a4944b1 GladePropertyLabel: Set toplevel invisible by default. 2013-04-12 19:19:36 +09:00
Tristan Van Berkom
4835f1a1f4 GladeProject: Fixed condition to warn about properties that are optional & enabled. 2013-04-12 19:09:44 +09:00
Tristan Van Berkom
b80836a1be Adding missing file to POTFILES.in 2013-04-12 19:09:28 +09:00
Tristan Van Berkom
4af7ffb508 GladeProject: Fix verification of widgets, signals and properties for the UI
Needed update after adding the new flags.
2013-04-12 18:53:31 +09:00
Tristan Van Berkom
985b42b5f3 Added new composite widget: GladePropertyLabel.
Now GladeEditorProperty creates a GladePropertyLabel on demand if
needed, instead of implementing the label itself.

This will allow custom property editors to use the property labels
in the interface defined with GtkBuilder script.
2013-04-12 18:53:31 +09:00
Tristan Van Berkom
7f2051967c Project Properties Dialog: Moved verify button to be a secondary dialog button. 2013-04-12 15:33:33 +09:00
Tristan Van Berkom
eeef2072fc GladePreferences: Define all default preference values near the top of the file 2013-04-12 02:45:50 +09:00
Tristan Van Berkom
0ef60b6cff Fixup frontend glade files.
The adjustment for the autosave seconds spin button didnt follow the
migration properly.
2013-04-12 02:45:16 +09:00
Tristan Van Berkom
fe73c995b9 glade-preferences.glade: Added missing signal connection
And added some tooltips, made treeview expand horizontally.
2013-04-12 02:31:41 +09:00
Tristan Van Berkom
d8ea6f993a Frontend Glade files: Added translation domain 2013-04-12 02:25:27 +09:00
Tristan Van Berkom
18ec1f0384 GladeEditor: Pack the warning icon before the class icon.
More consistent with the Inspector view.
2013-04-12 02:24:08 +09:00
Tristan Van Berkom
a267d502f9 Enhanced preferences
Now the user can choose if they want to ignore versioning errors, deprecation
warnings or warnings about unrecognized types at save time. This avoids
the dialog in the case you might save often but don't care to be warned
every time.
2013-04-12 02:18:29 +09:00
Tristan Van Berkom
7eae117bfd Added glade_project_save_verify()
A version of glade_project_save() with control on what types of
verifications should be run
2013-04-12 02:17:54 +09:00
Tristan Van Berkom
608a3239e1 GladeWidget: Set warning state with tooltip for unrecognized types. 2013-04-12 02:17:28 +09:00
Tristan Van Berkom
1215b40229 GladeWindow: Fix recent files
Glade's main open recent menu was not properly filtered, now
only allow Glade to open recent files that are of mime type
"application/x-glade"
2013-04-11 22:07:14 +09:00
Tristan Van Berkom
1527292bd7 GladePreferences: Beefing up the preferences a bit
Removed the combo box in favor of a treeview displaying
all catalog paths.
2013-04-11 21:48:15 +09:00
Tristan Van Berkom
f103d56972 Ported GladePreferences to use a composite template. 2013-04-11 20:41:41 +09:00
Tristan Van Berkom
8b98bc217b GladeCommand/GladeEditorProperty: Make the enabled state of a property undoable.
Now that the enabled state of a property causes Glade's xml output to change,
it must absolutely be undoable (enabled optional properties are saved regardless
of default value).
2013-04-11 15:49:42 +09:00
Tristan Van Berkom
d457c4fa83 Change API name glade_command_set_tempalte --> glade_command_set_project_template
More consistent API name with other project related commands.
2013-04-11 15:23:23 +09:00
Tristan Van Berkom
527b2cf298 GladeProject / GladeCommand: Make project translation domain settings undoable 2013-04-11 14:34:53 +09:00
Tristan Van Berkom
5e4e34cd67 GladeProject / GladeCommand: Make target project version undoable 2013-04-11 14:20:53 +09:00
Tristan Van Berkom
a4db26944e GladePropertyEditor: Let text views wrap. 2013-04-11 01:29:42 +09:00
Tristan Van Berkom
95cd10743e GladeInspector: Add an icon to expand all rows. 2013-04-11 01:06:18 +09:00
Tristan Van Berkom
3c2836cae7 GladeModelData: For list-store data, use nicer icons in the button 2013-04-11 00:14:16 +09:00
Tristan Van Berkom
f626fb00d8 GladeInspector: Now show a warning icon and tooltip text if a widget has a warning
This makes support warnings much easier to catch, instead of having to dig
into the properties dialog (or wait until save time) you can see directly
in the inspector if any of your widgets have any deprecation/versioning
warnings.
2013-04-11 00:08:04 +09:00
Tristan Van Berkom
34585f4515 GladeWidget: Enhanced support warnings
o Now GladeWidget support warnings include warnings about any used
    properties or signals which have warnings

  o GladeWidget support warnings update appropriately when signals
    are added/removed or when properties are changed/enabled

  o GladeProject now also has a column with the widget warning text
    which gets updated any time a widget's warning changes
2013-04-11 00:06:12 +09:00
Tristan Van Berkom
19a99a02de GladeSignalEditor: Only show the warning icon for the row which displays the signal name 2013-04-10 22:23:15 +09:00
Tristan Van Berkom
f26afa4edb Touching up project properties dialog appearance. 2013-04-10 04:33:35 +09:00
Tristan Van Berkom
f45a5bdd69 Touching up preferences spacing 2013-04-10 04:33:19 +09:00
Tristan Van Berkom
e1256cd36b GladeCommand: Make sure a template widget is unset undoably if deleted. 2013-04-10 00:06:37 +09:00
Tristan Van Berkom
ffc5a8cc08 GladeProject/GladeCommand: Implement undo/redo for project template widget 2013-04-09 23:48:24 +09:00
Tristan Van Berkom
f58f689190 GladeProject: Update the misc column with an indicator marking that it is template 2013-04-08 20:12:07 +09:00
Tristan Van Berkom
f3c7335ed9 GTK+ Catalog GtkScaleButton - add internal children. 2013-04-08 20:12:07 +09:00
Juan Pablo Ugarte
a714a588f4 Added Composite template toplevel option in Project properties to choose wich toplevel should be used as a template 2013-04-08 20:12:07 +09:00
Tristan Van Berkom
b2829ef1bf Support load and save of files with a <template> element.
GladeWidget now has a "parent-name" property which specifies
the class from which a template derives. Loading and Saving
code now takes <template> tags into account.

A GladeWidget is instanciated slightly differently for a <template>
(the parent-name class is used for instantiation).
2013-04-08 20:12:07 +09:00
Tristan Van Berkom
d2bc48ecee Build fixes, now distcheck passes again (with the added tests).
As a side effect, I also enhanced the GResources build commands,
now we also avoid explicitly calling _resources_register() but
rely on glib-compile-resources to automatically register the
compiled resources.
2013-04-08 20:12:00 +09:00
Tristan Van Berkom
6d3f6b87fb GladeInspector: Search entry completes on GladeProject
Instead of completing on the filtered model, it's more reliable
to fetch completions from the real project model, and use those
completions to feed the filtering mechanism.
2013-04-08 19:36:47 +09:00
Tristan Van Berkom
aa1afc45d3 GladeInspector: Enhanced search entry.
Now find the first complete match when ENTER is pressed, if a complete
match is found, then select it.
2013-04-08 19:31:26 +09:00
Juan Pablo Ugarte
f2ba686a56 EXTRA_DIST: Added glade-project-properties.ui 2013-04-07 21:57:30 -03:00
Tristan Van Berkom
5ea71916a5 GladeWindow: Remove references of the moved search entry. 2013-04-08 01:39:24 +09:00
Tristan Van Berkom
8780ba94d3 GladeInspector: Re-enable completions in the search entry.
Guys, it's twice now that someone breaks completions, with the naive
idea that some stock function from GTK+ can do it right, please, please
never break completions in the inspector again, thankyou.
2013-04-08 01:39:07 +09:00
Tristan Van Berkom
7434df5696 Revert "Removed search entry from GladeInspector"
This reverts commit 644299857b3cdd3861bfebfb7aefdabe0e93fb30.
2013-04-08 01:38:58 +09:00
Tristan Van Berkom
b669bff331 Implemented autosave and backups
Whenever the user saves, the last version of the file is backed up.

Whenever the project is modified and idle for a configurable amount of
seconds, the project is automatically saved.

At load time, if the automatically saved file is newer than the proposed
Glade file, Glade will popup a dialog and let the user choose to load
the autosaved version instead
2013-04-06 23:13:48 +09:00
Tristan Van Berkom
e756d60459 GladeProject: Added glade_project_backup() and glade_project_autosave()
o glade_project_backup()

   Backs up the last saved version of the glade file to project.glade~

 o glade_project_autosave()

   Saves the glade file to /path/to/#project.glade# without modifying
   the project's modified state.

Conflicts:

	gladeui/glade-project.c
2013-04-06 23:13:20 +09:00
Tristan Van Berkom
79bcad9105 Disabled GtkRecentChooser:select-multiple on implementations which don't support it. 2013-04-06 23:11:06 +09:00
Tristan Van Berkom
4e469a6740 Properly disabling GtkRadioAction:current-value property 2013-04-06 23:10:56 +09:00
Tristan Van Berkom
becf88797b GladeEditor: Avoid crash when draging and dropping a widget with packing properties
This was not reproducible in all cases, but dragging the notebook inside
of the Glade preferences dialog outside of it's dialog caused a crash,
the fix was however obvious enough.
2013-04-06 23:10:41 +09:00
Tristan Van Berkom
c7c337a86a GladeEditorProperty: Manage construct-only property changes.
This is tricky, we block the GladeProperty change signals
while committing an new property value. However when the
property is construct-only, the GladeWidget temporarily
exits the GladeProject while it reconstructs the instance.

With this patch we avoid unblocking the property change
signal after a commit, if the signal was disconnected
and reconnected as a consequence of applying the property value.
2013-04-06 23:10:29 +09:00
Tristan Van Berkom
2f05655cd3 GtkIconFactory adaptor: Added a destroy_object function
The GtkIconFactory adaptor adds the factory to the default
with gtk_icon_factory_add_default() at post create time, now
we remove it at destroy object time.

Enabled the create-objects test for GtkIconFactory which now
passes again.
2013-04-06 15:44:41 +09:00
Tristan Van Berkom
af4ff2a61f Added GladeWidgetAdaptor destroy_object method.
The destroy_object method gives the chance to plugins to undo
anything which might have added a reference to the object.
2013-04-06 15:44:27 +09:00
Juan Pablo Ugarte
d5a2961ae7 GladeEPropBool: Removed GladeBoolToggle and replaced with plain old good GtkSwitch. 2013-04-05 15:47:29 -03:00
Tristan Van Berkom
563e3a346c Test Cases: Now GtkComboBox finalizes properly.
The bug had to do with a call to glade_widget_rebuild()
2013-04-05 21:30:27 +09:00
Tristan Van Berkom
7c5fdd2eb7 GladeWidget: glade_widget_set_object() unconditionally destroy the old object.
This used to have a special case for rebuilding, but that seems to work alright now.
2013-04-05 21:30:13 +09:00
Tristan Van Berkom
ab463f82f8 GladePlaceholder: Remove call to deprecated gtk_widget_style_attach() 2013-04-05 17:31:37 +09:00
Tristan Van Berkom
0f06a83641 GladePropertyClass: Use non-deprecated gtk_widget_render_icon_pixbuf() 2013-04-05 17:16:58 +09:00
Tristan Van Berkom
1b165d4815 Added new test: add-child.c
The new test tests every parent/child relationship in the base GTK+
catalog, a child is added to the parent, the expected relationship
is tested, and unreffing the parent GladeWidget is tested to also
finalize the child GladeWidget and both runtime GObjects.
2013-04-05 15:18:10 +09:00
Tristan Van Berkom
fdd5289f5e create-widgets.c test: Avoid GtkFileChooserButton
Currently this one causes subsequent tests to fail due to a leaked
GTask callback.
2013-04-05 15:17:56 +09:00
Tristan Van Berkom
c009f66e16 GtkNotebook adaptor: Safer treatment of child tabs
Hold an extra temporary reference in glade_gtk_notebook_extract_children()
2013-04-05 15:17:44 +09:00
Tristan Van Berkom
9650bce733 GladeWidget: Properly finalize the runtime object.
Previously we either destroy or unref, now we destroy
any widget if the 'destroy' param is specified, and
we additionally unref. Note that gtk_widget_destroy()
does not imply any unref.
2013-04-05 15:17:32 +09:00
Tristan Van Berkom
22a7e2a3ec GladeWidget: Remove children when disposing
Normally this doesnt happen because GladeProject breaks
hierarchy before disposing, here we ensure proper breaking
of reference cycles for the sake of good API (so we can write
proper tests).
2013-04-05 15:17:22 +09:00
Tristan Van Berkom
7aa26b3658 Added glade-gtk-box.c to POTFILES.in 2013-04-05 01:16:25 +09:00
Tristan Van Berkom
f1543fca91 Added Glade's first unit test (about time !)
This patch clears the way for unit testing, some environment variables
are added to ensure unit tests run on code that is not installed but
in tree.

The added test iterates over all widgets in the catalog, uses the
adaptor to create a GladeWidget and asserts that the GladeWidget and
it's internal object is finalized after unreferencing the GladeWidget.
2013-04-05 01:13:56 +09:00
Tristan Van Berkom
fc0ea5ea9b GladeFixed: Avoid fetching the pointer at load time, or whenever the widget is not realized. 2013-04-04 16:06:51 +09:00
Tristan Van Berkom
650bc9a8ac Cleanup glade_utils_get_pointer()
Now accepts a NULL window or device when one cannot be provided.
2013-04-04 16:01:09 +09:00
Tristan Van Berkom
79fef75ee0 GladeDesignView: Remove some of the hacks in Drag and Drop
Allow normal code paths to run at drop time, GladeWidget implementations
ensure that the child is dropped at the right location.
2013-04-04 04:17:47 +09:00
Tristan Van Berkom
c9040f87a5 GladeFixed: Explicitly fetch mouse position at add_child time
This is because normal event recording doesnt work when a GTK+
Drag and Drop is in progress, so we need to explicitly fetch
the pointer position at Drop time.
2013-04-04 04:17:34 +09:00
Tristan Van Berkom
498eee3f29 Deprecate glade_widget_get_device_from_event() 2013-04-04 04:17:23 +09:00
Tristan Van Berkom
4c245b5edb GladeFixed: More reliable drag/resize
During a drag resize, temporarily all child widgets expand, this
gives more consistent results while changing child packing.

Also, now use glade_utils_get_pointer() for the mouse positions.
2013-04-03 18:08:39 +09:00
Tristan Van Berkom
975eefe76c Utils: Added glade_util_get_pointer()
This is a more reliable way of getting the widget relative pointer.
2013-04-03 18:06:20 +09:00
Tristan Van Berkom
c4c646fda4 Refactor: Move GtkBox adaptor into it's own separate file. 2013-04-03 16:27:22 +09:00
Tristan Van Berkom
0391bd5944 Fix for drag/resize in GtkGrid.
This patch ensures that width/height child properties of grid
are properly updated while expanding left & right, it also
moves all the GladeFixed code to a single section at the bottom
of the file.
2013-04-03 16:12:35 +09:00
Tristan Van Berkom
3d66650794 Fixed Drag/Resize for GtkFixed by explicitly giving it a window.
Current Drag/Resize was only working in GtkLayout since the layout
defines it's own GdkWindow, just force GtkFixed to have a window too.
2013-04-03 16:11:09 +09:00
Tristan Van Berkom
40442db9c9 HACK: Allow GtkLayout to have children dragged into it at mouse position.
This is a hack and all GTK_IS_FIXED() GTK_IS_LAYOUT() statements
in GladeDesignView code needs to go away.

This should instead be properly handled by a general feature of
GladeWidget/GladeWidgetAdaptor.
2013-04-03 16:09:19 +09:00
Juan Pablo Ugarte
4338b2d98b GtkGrid/GtkBox: Bring back use of GladeFixed.
It wont interfere with GladeDesignLayout drag&drop because it does not use
  GLADE_POINTER_DRAG_RESIZE and GDK_SHIFT_MASK anymore.
2013-04-02 16:08:14 -03:00
Juan Pablo Ugarte
7662049af7 GladeDesignLayout:
o Reserved SHIFT modifier and DRAG_RESIZE pointer mode for apdator use (GladeFixed)
  o Use middle button to enter ALIGN_EDIT pointer mode insted of SHIFT
2013-04-02 16:08:14 -03:00
Juan Pablo Ugarte
61bdae20cd Added quotes around property name in docs search 2013-04-02 16:08:14 -03:00
Juan Pablo Ugarte
178e630d6d Replaced non existent function glade_widget_remove_action() with
glade_widget_set_action_visible()
2013-04-02 16:08:14 -03:00
Balázs Úr
19defc0779 Updated Hungarian translation 2013-04-02 09:11:45 +02:00
Juan Pablo Ugarte
9b100d8ef5 Added true-string and false-string properties
Start using default height and biggest width of both true and false string including normal button paddings
2013-04-01 16:33:37 -03:00
Juan Pablo Ugarte
b7e83d6e42 Fixed drag icon creation. Re implemented using gtk_widget_draw() on a transparent window. 2013-04-01 14:58:07 -03:00
Tristan Van Berkom
4d6921ad71 Bump required GTK+ version to 3.8 2013-04-01 23:37:39 +09:00
Tristan Van Berkom
c3fff63a72 Cleanup deprecations all around.
GtkColorChooser APIs now used for color editing
GladeBaseEditor now uses a GtkGrid for it's last GtkTable

In some places to support deprecated types, we explicitly
add G_GNUC_BEGIN/END_IGNORE_DEPRECATIONS statements.
2013-04-01 23:37:05 +09:00
Tristan Van Berkom
b1146ba152 GladeWindow: Make the Editor Header bar optional in the view menu.
Now the preference is saved in the keyfile.
2013-04-01 19:41:56 +09:00
Tristan Van Berkom
0d8e471c9c GtkRadioAction catalog definition: Disable "current-value" 2013-04-01 19:41:43 +09:00
Tristan Van Berkom
9a0ff231d6 Add support for deprecated properties and signals.
Parse the "deprecated" parts of gtk+.xml.in on properties and signals,
and update GladeProject to format the deprecation messages when verifying
the project.
2013-04-01 18:18:24 +09:00
Tristan Van Berkom
8a5cba1a59 Setting 3.8 as the current GTK+ catalog version
Also, fixed deprecation of button signals in the GTK+ catalog
2013-04-01 18:18:24 +09:00
Tristan Van Berkom
dd988a4323 GladeInspector: Making treeview more pretty
let text flow freely with no fixed size renderers.
2013-04-01 18:18:24 +09:00
Tristan Van Berkom
89e4ace990 Fix bug 679147: Make GtkWidget:hexpand/vexpand optional properties. 2013-04-01 18:18:24 +09:00
Tristan Van Berkom
222d4ac3db GladeProperty: Otional properties that are enabled are always set now.
... Even if they are at the default value, this is more intuitive as
we safely reload the check mark state, and allows explicit setting
of properties like hexpand = FALSE or vexpand = FALSE.
2013-04-01 18:18:24 +09:00
Tristan Van Berkom
90f1ab492b Set tooltip-text & tooltip-markup as "ignore"
This is because when reading back the properties, we get tooltip-markup
when only tooltip-text was set (after a copy/paste for instance).

It's not that important that tooltips show up in Glade's workspace
(which "ignore" also disables).
2013-04-01 18:18:24 +09:00
Tristan Van Berkom
837bf95faf Sorting signals: g_list_sort() after the loop. 2013-04-01 18:18:23 +09:00
Piotr Drąg
5c976c7b86 Updated POTFILES.in 2013-03-31 15:38:47 +02:00
Tristan Van Berkom
89219c2479 Sort signals at save time.
This helps to ensure there are no irrelevant diffs when modifying
projects with Glade (I think it's prestine now, no useless diffs
at all that I can tell).
2013-03-31 21:30:09 +09:00
Tristan Van Berkom
772c0fd5bd GladeWindow: Avoid crash while closing multiple projects.
Instead of iterating on the list returned by gtk_action_get_proxies(),
iterate on a temporary copy of that list.
2013-03-31 20:47:35 +09:00
Tristan Van Berkom
47d958099e Fixed previous commit to make GtkToolbar use a GtkIconSize in the UI.
Now only one icon-size it saved (numerically, as "icon_size").
2013-03-31 20:47:22 +09:00
Tristan Van Berkom
baffa58727 GTK+ Catalog update.
o Added GtkColorChooserWidget

  o Enabled "gicon" property editing on GtkCellRendererPixbuf

  o Added classes GtkSearchEntry, GtkFontChooserWidget, GtkFontChooserDialog,
    GtkColorChooserWidget, GtkColorChooserDialog, GtkOverlay

  o Added deprecated section in the palette, marked all currently deprecated
    classes as deprecated.

  o Add new GtkEntry placeholder text to the catalog
2013-03-31 20:08:52 +09:00
Tristan Van Berkom
995ac2b1c1 Mega GTK+ 3.8 support commit.
o Added GtkMenuButton with support

  o Made GtkToolbar & GtkCellRendererPixbuf use a GtkIconSize combo
    in the UI for properties installed as G_TYPE_UINT

  o Implemented new 'resource' mode for GtkImage editor

  o Added "since" attributes for everything introduced since 3.2 and later

  o Added deprecation attributes to any property/widget/signal that is
    deprecated (signals and properties don't use this attribute yet).

Conflicts:

	plugins/gtk+/glade-gtk.c
2013-03-31 20:03:53 +09:00
Tristan Van Berkom
76b84aae9c GtkGrid fixed to work properly when adding widgets.
I had broken the glade_widget_replace_child() implementation of GtkGrid
in my last commit, this fixes it to properly introspect packing properties
when initially dropping/adding a widget to a GtkGrid.
2013-03-31 20:00:22 +09:00
Tristan Van Berkom
f7d1f24604 GtkButton adaptor: Fix the response id property load and save
Make the response id optional in the UI. If the user never sets the
response ID, then it will not be serialized in <action-widgets> of
a dialog or info bar.

This is needed because some buttons added to the action are not
response widgets (for instance, the credits and licence pages of
GtkAboutDialog) so it's important to not serialize them as such
unless they are explicitly marked as response widgets.
2013-03-31 15:10:03 +09:00
Tristan Van Berkom
2771403d89 GladeWidget: Added glade_widget_depends()
A highly recursive function that runs glade_widget_adaptor_depends().

Updated the GladeProject to use glade_widget_depends() at save
time only on the toplevels.
2013-03-30 23:45:53 +09:00
Tristan Van Berkom
6ea5d5655b GtkGrid: Some cleanup was done and optimization.
Removed an unused structure definition.

Also avoid refreshing the placeholders at load time until the
parse is finished, since this can happen many times at a project
load time this can be more intensive than needed.
2013-03-30 22:06:13 +09:00
Tristan Van Berkom
4b4b88bc48 GladeWidget: Avoid overwriting packing property values while rebuilding.
This touches sensitive code in the widget rebuilding process which
exists for the sake of setting construct properties at runtime.
2013-03-30 22:06:05 +09:00
Tristan Van Berkom
fcbfefd9c1 Support editing of the widget name.
Widget name's can be modified with this patch, some special case
code in glade-editor-table.c ensures that the name property always
comes first directly after the ID.
2013-03-30 20:09:09 +09:00
Juan Pablo Ugarte
87278d0334 Implemented GladeProject properties dialog with glade
Added translation domain project property
2013-03-30 00:47:23 -03:00
Juan Pablo Ugarte
3291b4843e Added pading in preferences dialog 2013-03-30 00:45:26 -03:00
Juan Pablo Ugarte
013fc5eb97 Fixed some cast warnings 2013-03-30 00:43:20 -03:00
Juan Pablo Ugarte
816616bc25 Removed shift modifier from File actions
Fixes bug #695866 "Incorrect keybinding for Quit"
2013-03-29 12:29:56 -03:00
Juan Pablo Ugarte
fac70fc3c2 Hide center_paned and set search entry insensitive when there is no project open. 2013-03-29 11:40:27 -03:00
Juan Pablo Ugarte
6a12ec46a6 Clear search entry on dispose 2013-03-29 11:39:43 -03:00
Juan Pablo Ugarte
c5dc2ea021 Fixed crasher on exit removing project hierarchy from GladeDesignLayout 2013-03-29 11:22:11 -03:00
Juan Pablo Ugarte
4ad8c796f9 Added --css and --screenshot options to glade-previewer to test CSS files and take screenshots 2013-03-29 11:21:14 -03:00
Inaki Larranaga Murgoitio
78d4a2e925 Updated Basque language 2013-03-26 09:37:14 +01:00
Balázs Úr
a51aa5165d Updated Hungarian translation 2013-03-23 19:51:52 +01:00
Richard Hughes
5abd0de8ab Fix the Malayalam translation
Fixes: Keywords[ml] in group 'Desktop Entry' does not have a semicolon (';') as trailing character.
2013-03-19 08:47:51 +00:00
Duarte Loreto
c83983c9b3 Updated Portuguese translation and converted to New Spelling (Novo AO) 2013-03-15 14:53:09 +00:00
Carles Ferrando
f35535aff5 [l10n] Updated Catalan (Valencian) translation 2013-03-15 00:22:33 +01:00
Gil Forcada
68c1acefb3 [l10n] Updated Catalan translation 2013-03-15 00:22:27 +01:00
Martin Srebotnjak
d942e01ac6 Updated Slovenian translation 2013-03-14 23:17:03 +01:00
Mario Blättermann
7ebcddbe66 [l10n] Updated German doc translation 2013-03-14 19:59:19 +01:00
Alexandre Franke
be41ddd550 Update French translation 2013-03-14 16:04:19 +01:00
Milo Casagrande
52669b7843 [l10n] Updated Italian translation. 2013-03-14 11:08:19 +01:00
Piotr Drąg
e216010b64 Updated Polish translation 2013-03-13 20:06:43 +01:00
Enrico Nicoletto
7ffbdee9f2 Updated Brazilian Portuguese translation 2013-03-13 10:44:56 -03:00
Dimitris Spingos
e32264fc13 Updated Greek translation 2013-03-13 15:26:36 +02:00
Gheyret Kenji
a86bbcb94f Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
2013-03-13 21:02:22 +09:00
Fran Diéguez
8035cdd7b0 Updated Galician translations 2013-03-13 10:28:45 +01:00
Juan Pablo Ugarte
b0ad5f34bd Added GladeBoolToggle as property editor for boolean properties. 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
88d2ee166c Added clear properties and read documentation actions 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
6872bac45c Removed use of glade_editor_show_info() 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
3d3bce03f7 Added glade-devhelp stock icon 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
c387f83f3d Removed Read Documentation popup menu item 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
fd58317800 Removed clear and info buttons from GladeEditor.
Deprecated glade_editor_show_info(), glade_editor_hide_info() functions and GladeEditor:show-info properties.
Exported glade_editor_reset_dialog_run() function
2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
5ab20b45ec Added glade_widget_adaptor_get_book() 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
e1bcd0d183 Fixed regresion when saving show tabs option. 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
7cd2f81061 Removed unecesary casts 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
012e5dffef Added search entry next to toolbar 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
644299857b Removed search entry from GladeInspector
Added glade_inspector_set_search_entry()
2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
cfa923f859 Removed use of deprecated function g_thread_init() 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
93b26f4bf9 Do not show projects tabs when there is only one project open. 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
d4f0d65d81 Made GladeEditorTable row spacing smaller (2px was 4px) 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
3accc02a1a Removed GladeEditor notebook children borders and replaced with internal padding. 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
1634aa858c Removed shadow from GladeSignalEditor 2013-03-12 19:28:19 -03:00
Juan Pablo Ugarte
bd9e9b23f5 Removed GladeDesignView shadow since it is ussually packed in a notebook 2013-03-12 19:28:18 -03:00
Carles Ferrando
858fba0bf2 [l10n] Updated Catalan (Valencian) translation 2013-03-12 23:00:40 +01:00
Gil Forcada
881cd3f3c6 [l10n] Updated Catalan translation 2013-03-12 23:00:33 +01:00
Мирослав Николић
fde93a5d64 Updated Serbian translation 2013-03-11 11:23:39 +01:00
Aurimas Černius
ad06507d68 Updated Lithuanian translation 2013-03-09 17:18:01 +02:00
Dimitris Spingos
efbd263dfa Updated Greek translation 2013-03-09 10:55:07 +02:00
Theppitak Karoonboonyanan
bbae09350a Updated Thai translation 2013-03-09 08:41:44 +07:00
Mario Blättermann
02fb30a136 [l10n] Updated German translation 2013-03-08 17:03:51 +01:00
Matej Urbančič
6f20312522 Updated Slovenian translation 2013-03-07 17:07:12 +01:00
Daniel Mustieles
0069b0192b Updated Spanish translation 2013-03-07 14:23:02 +01:00
Gheyret Kenji
445303bdd6 Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
2013-03-07 20:59:08 +09:00
Fran Diéguez
7065c6a0e2 Updated Galician translations 2013-03-07 11:42:15 +01:00
Rafael Ferreira
2714fc715e Updated Brazilian Portuguese translation 2013-03-07 01:21:09 -03:00
Piotr Drąg
6252f016b3 Updated Polish translation 2013-03-07 00:19:58 +01:00
Juan Pablo Ugarte
07bacae5de Commiting release changelog entry and lt version update 2013-03-06 20:08:50 -03:00
Juan Pablo Ugarte
bfb7687a90 Rolling 3.15.0 2013-03-06 19:53:02 -03:00
Juan Pablo Ugarte
c7eea88f85 Added GladeEditor:class-field read only property.
Update Properties Dock window title with GladeEditor:class-field value
2013-03-06 17:24:01 -03:00
Enrico Nicoletto
a63cc2521d Updated Brazilian Portuguese translation 2013-03-05 16:26:14 -03:00
Juan Pablo Ugarte
607afc3cd1 Fixed window docks regresion bug. 2013-03-04 14:54:49 -03:00
Mario Blättermann
e2da6ffe65 [l10n] Updated German translation 2013-03-04 14:40:57 +01:00
Dimitris Spingos
6dd6c031ff Updated Greek translation 2013-03-03 18:14:24 +02:00
Aurimas Černius
98cc26768c Updated Lithuanian translation 2013-03-02 23:08:14 +02:00
Мирослав Николић
c5ec854174 Updated Serbian translation 2013-03-01 11:21:23 +01:00
Fran Diéguez
e41204cfc9 Updated Galician translations 2013-02-26 00:23:53 +01:00
Jasper St. Pierre
ad06c50722 Fix prototype warning issues 2013-02-25 14:28:57 -05:00
Jasper St. Pierre
7372797413 Update .gitignore 2013-02-25 14:15:55 -05:00
Gheyret Kenji
1901ba0606 Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
2013-02-25 18:52:54 +09:00
Piotr Drąg
73ec2b96ff Updated Polish translation 2013-02-24 02:37:26 +01:00
Daniel Mustieles
f33ffb6e57 Updated Spanish translation 2013-02-21 16:54:34 +01:00
Daniel Mustieles
78135085b1 Fixed typo in string 2013-02-21 16:50:42 +01:00
Fran Diéguez
f9d471ca79 Updated Galician translations 2013-02-20 11:15:54 +01:00
Juan Pablo Ugarte
54acec0fb1 Replaced GtkButtonBox with a regular GtkBox to pack clear and info buttons 2013-02-19 17:56:34 -03:00
Juan Pablo Ugarte
5e46d5b835 Cleaned up code replacing editor->priv with a temp priv variable. 2013-02-19 17:49:54 -03:00
Juan Pablo Ugarte
eeedc9320d Added GLADE_PAGE_SIGNAL to GladeEditorPageType enumeration.
Fixed leak in glade_editor_notebook_page()
2013-02-19 17:32:43 -03:00
Juan Pablo Ugarte
46f7356463 Hide Property editor class title 2013-02-19 16:26:52 -03:00
Juan Pablo Ugarte
3dca84a2f7 Added glade_editor_show/hide_class_field() 2013-02-19 14:42:10 -03:00
Juan Pablo Ugarte
8f0ddbb76f Moved clear and info buttom to the action widget of the notebook. 2013-02-19 14:25:14 -03:00
Piotr Drąg
a0e7de6f40 Updated Polish translation 2013-02-17 16:42:02 +01:00
Anish A
f3f7f79b7a Updated Malayalam Localization 2013-02-14 18:11:42 +04:00
Matej Urbančič
7da5925faa Updated Slovenian translation 2013-02-07 20:48:58 +01:00
Piotr Drąg
0d6591917e Updated Polish translation 2013-02-03 00:18:49 +01:00
Juan Pablo Ugarte
d5793258ee Added new GtkLevelBar icons by Máirín Duffy
This closes bug #685432 "RFE: glade support for GtkLevelBar"
2013-02-01 15:21:48 +01:00
Piotr Drąg
bd154ef73f Updated POTFILES.in 2013-02-01 02:30:03 +01:00
Juan Pablo Ugarte
56eb5c5edb Reverting all composite templates support until it lands on GTK 2013-01-31 18:44:16 +01:00
Chao-Hsiung Liao
1aa7a4c10c Updated Traditional Chinese translation(Hong Kong and Taiwan) 2013-01-30 14:17:32 +08:00
Marek Černocký
2a24dbfa13 Updated Czech translation 2013-01-28 09:51:30 +01:00
Fran Diéguez
b7d90133fc Updated Galician translations 2013-01-27 19:11:22 +01:00
Aurimas Černius
f39b0e608c Updated Lithuanian translation 2013-01-26 20:19:09 +02:00
Gheyret Kenji
8e4f0cae51 Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
2013-01-26 11:14:55 +09:00
Мирослав Николић
6ae13bf8dc Updated Serbian translation 2013-01-22 19:24:54 +01:00
Juan Pablo Ugarte
15a731edf1 Removed project parameter check in glade_design_view_set_project() 2013-01-22 15:20:56 -03:00
Juan Pablo Ugarte
e39468657c glade_design_view_set_project(): keep a reference to project 2013-01-22 15:11:06 -03:00
Juan Pablo Ugarte
58a2464859 Use a window style context to render background in the offscreen window. 2013-01-22 15:11:06 -03:00
Daniel Mustieles
df0db0c806 Updated Spanish translation 2013-01-20 12:05:09 +01:00
Gheyret Kenji
e1e9cab0d4 Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
2013-01-20 19:45:40 +09:00
Juan Pablo Ugarte
be05e49233 Implemented inline Drag and Drop 2013-01-18 20:11:04 -03:00
Juan Pablo Ugarte
9bcdb816e6 Made glade_command_dnd() accept parent and placeholer NULL parameter to paste the widget as toplevel. 2013-01-18 20:11:04 -03:00
Juan Pablo Ugarte
576092bb8d Removed GladeFixed (DnD) support for GtkBox, GtkTable and GtkGrid.
Optimized glade_gtk_grid_refresh_placeholders() by passing the children list to
glade_gtk_grid_has_child() instead of getting it each time from the container.
2013-01-18 20:11:03 -03:00
Juan Pablo Ugarte
b01110c2fb Updated atk icon with gnome's accessibility icon. 2013-01-18 20:11:03 -03:00
Juan Pablo Ugarte
248964acf5 Added Drag&Drop support from the palette. 2013-01-18 20:11:03 -03:00
Juan Pablo Ugarte
7e0d65bdd6 Replaced buttons with 3 dots [...] for a secondary edit icon in the entry itself. 2013-01-18 19:56:04 -03:00
Juan Pablo Ugarte
6a0cd5f279 Removed treeview from flags editor. 2013-01-18 19:56:04 -03:00
Juan Pablo Ugarte
1276b6aceb Do not let every propery input expand if not nescesary 2013-01-18 19:56:04 -03:00
Juan Pablo Ugarte
d2658fb20e GladeEditorPropertyBoolClass replaced toggle button with a switch. 2013-01-18 19:56:04 -03:00
Juan Pablo Ugarte
1357490882 Limit the size of the spin button in GladeEPropNumeric when the max value is over 16 digits.
Otherwise a property with a max value of G_MAXDOUBLE gets a minimum size over 2800 pixels.
2013-01-18 19:50:03 -03:00
Мирослав Николић
a755168156 Updated Serbian translation 2013-01-18 22:49:59 +01:00
Juan Pablo Ugarte
c71dbf0305 Added GtkLevelBar.
Bumped gtk+ dep to 3.6
2013-01-17 19:07:05 -03:00
Juan Pablo Ugarte
d2aa31770f Fixed bug #688326 "pointer tracking is off" by using every coordinate
relative to GladeDesignLayout.

Optimized _glade_design_layout_do_event() replacing gdk_window_get_device_position()
with a gdk_window_coords_to_parent() iteration to avoid server roundtrip.
2013-01-17 16:37:29 -03:00
Juan Pablo Ugarte
d52e8dbaae Set a background to the offscreen window, so that widgets without a window added as toplevels look right. 2013-01-17 16:37:25 -03:00
Daniel Mustieles
3a63877988 Updated Spanish translation 2013-01-15 14:33:39 +01:00
Fran Diéguez
9b37c6f1ac Updated Galician translations 2013-01-13 18:06:15 +01:00
Matej Urbančič
81861d9340 Updated Slovenian translation 2013-01-13 14:51:51 +01:00
Alexander Shopov
13c6c51315 Updated Bulgarian translation 2013-01-11 08:54:12 +02:00
B.Prathibha
45fc91c74d Added keywords in the desktop file. 2013-01-09 16:52:38 -03:00
Piotr Drąg
066209ed51 Updated Polish translation 2012-12-26 21:55:19 +01:00
Dimitris Spingos
dcf38f7d33 Updated Greek translation 2012-12-24 17:20:29 +02:00
Fran Diéguez
e1000efc99 Updated Galician translations 2012-12-23 04:16:33 +01:00
Daniel Mustieles
14ade32ba5 Updated Spanish translation 2012-12-19 13:26:48 +01:00
Juan Pablo Ugarte
4025e7982d Added message to win32 installer about it being beta software
Updated installers script to include locale directories
2012-12-04 14:11:41 -03:00
Juan Pablo Ugarte
7a44de2ae5 Updated to new GtkContainer template API changes 2012-11-26 10:20:09 -03:00
Marek Černocký
0bac2841ba Updated Czech translation 2012-11-08 22:23:00 +01:00
Juan Pablo Ugarte
f8838f81f6 Revert "Removed unneeded function glade_gtk_activatable_parse_finished()"
This reverts commit a41a51ca2754580f6a958287e2407b864319ad1e.
2012-11-01 21:39:32 -03:00
Juan Pablo Ugarte
6ad10b3960 Fixed Bug #685816 "Widget attributes editing broken" by reverting old fix
and setting use-action-appearance default back to false so the old sensitivity
code can work as ussual.
2012-11-01 21:30:38 -03:00
Juan Pablo Ugarte
2dfa5f2167 Revert "Fixed bug in GtkButton custom editor properties sensitivity"
This reverts commit 1cf2c6beb2ba328d5a006ee7a6ddd1c800e324ec.
2012-11-01 21:30:18 -03:00
Juan Pablo Ugarte
5800a7c8eb Fixed bug #678922 "When editing a label, the cursor is moved to the end after every change."
Fixed a few leak since glade_property_make_string() returns a newlly allocated string.
2012-11-01 16:39:16 -03:00
Piotr Drąg
236b86ef3d Updated POTFILES.in 2012-11-01 01:10:11 +01:00
Juan Pablo Ugarte
2d05a15577 Added missing prototype 2012-10-31 13:03:33 -07:00
Juan Pablo Ugarte
b399c2555a Added a composite templates widget group in palette.
Replace template widget with new type.
2012-10-31 13:03:25 -07:00
Juan Pablo Ugarte
1510d1a06a Added GladeApp::widget-adaptor-registered signal 2012-10-31 13:03:25 -07:00
Juan Pablo Ugarte
3eb53b784c Update GladeEditorProperty label sensitivity on GladeProperty sensitivity notify. 2012-10-31 12:51:36 -07:00
Daniel Mustieles
cb6de6db60 Mark strings as untranslatables. Fixes bug #685265 2012-10-29 12:47:07 +01:00
Ask H. Larsen
9a7b788b0e Updated Danish translation 2012-10-15 06:32:52 +02:00
Juan Pablo Ugarte
ee2820fce6 Fix build warnings 2012-10-13 12:08:11 -03:00
Juan Pablo Ugarte
ab0b1d4015 Fixed bug in GtkButton custom editor properties sensitivity
bug #685816 "Widget attributes editing broken"
2012-10-13 12:00:05 -03:00
Yuri Myasoedov
d56c804fb9 Updated Russian translation 2012-10-13 13:53:43 +04:00
Yuri Myasoedov
a2fac1be89 Updated Russian translation 2012-10-12 23:50:53 +04:00
Ivan Masár
a6101e8f4e Updated Slovak translation 2012-10-09 22:43:38 +01:00
Juan Pablo Ugarte
fe20df4055 Render bg in GladeDesignLayout and GladeDesignView 2012-10-08 17:22:17 -03:00
Juan Pablo Ugarte
78eeae1a1a Removed use of custon style providers. Fixes color problems in adwaita themes 2012-10-07 16:31:48 -03:00
Juan Pablo Ugarte
f51f60bf57 Fix compilation by checking for gtk_container_class_set_template_from_string() 2012-10-07 10:39:15 -03:00
Marek Černocký
33f5f7ed3d Updated Czech translation 2012-10-07 12:10:40 +02:00
Juan Pablo Ugarte
cf65fb6e9f Fix build error 2012-10-06 12:09:14 -03:00
Alexander Shopov
5b23e4d63c Updated Bulgarian translation 2012-10-04 05:57:36 +03:00
Duarte Loreto
6ae91fa2ef Updated Portuguese translation 2012-10-02 22:14:03 +01:00
Andika Triwidada
15c0696a97 Updated Indonesian translation 2012-10-03 03:01:02 +07:00
Juan Pablo Ugarte
856a93ad0e Added intitial support for runtime creation and loading of composite templates.
gladeui/glade-app.c: Load composite templates from G_USER_DIRECTORY_TEMPLATES

gladeui/glade-project.[ch]
 o Added glade_project_dump_string()
 o Addes safe guards for NULL catalogs (composite template adaptors does not have a catalog)

gladeui/glade-widget-adaptor.[ch]
 o Added template and template-path properties
 o Added glade_widget_adaptor_get_template() and
   glade_widget_adaptor_from_composite_template()

gladeui/glade-composite-template.[ch]: Added support to load composite templates and export a widget as such.

plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: added "Export as template" action
2012-10-02 16:43:05 -03:00
Juan Pablo Ugarte
451dd4024f Removed deprecated GDK_THREADS_ENTER/LEAVE() macros 2012-10-02 16:43:05 -03:00
Juan Pablo Ugarte
9eef86afcb Bumped version to 3.15.0 and incremented current to 4 2012-10-02 16:43:05 -03:00
Marek Černocký
8346e7ba73 Updated Czech translation 2012-10-02 17:41:38 +02:00
Rūdolfs Mazurs
97884bafca Updated Latvian translation 2012-09-25 23:35:34 +03:00
Carles Ferrando
a885cac425 [l10n]Updated Catalan (Valencian) translation 2012-09-25 00:39:12 +02:00
Vicent Cubells
a5637d16be [l10n] Updated Catalan translation 2012-09-25 00:39:12 +02:00
Petr Kovar
a05879d7dc Update Czech translation by Lucas Lommer 2012-09-24 16:43:39 +02:00
Nishio Futoshi
6b42b56479 [l10n] Update Japanese translation 2012-09-24 21:09:25 +09:00
Alexandre Franke
aa720374b2 Update French translation 2012-09-23 23:58:35 +02:00
Rajesh Ranjan
0dd508ed7b hindi update 2012-09-23 22:13:30 +05:30
Mario Blättermann
c62cb48313 [l10n] Updated German translation 2012-09-23 14:29:57 +02:00
Milo Casagrande
0e294cca15 [l10n] Updated Italian translation. 2012-09-22 17:42:40 +02:00
Alexander Shopov
82bbca2baf Updated Bulgarian translation 2012-09-20 06:59:46 +03:00
Juan Pablo Ugarte
787439b816 Updated GtkAssistant support
Fixed bug #664276 "Can't add widgets to a GtkAssistant"
Make assistant update current page when a child is selected in the project.
2012-09-17 20:40:23 -03:00
Daniel Mustieles
f9c63cfc72 Updated Spanish translation 2012-09-17 14:19:49 +02:00
Yuri Myasoedov
f3e4e8b724 Updated Russian translation 2012-09-17 15:50:24 +04:00
Daniel Mustieles
5836fabbe2 Updated Spanish translation 2012-09-16 13:19:03 +02:00
Ask H. Larsen
447ed37358 Updated Danish translation 2012-09-15 23:32:23 +02:00
Juan Pablo Ugarte
ac0ee2c896 Set new property accel-group on action groups to make menu item accel work properly
Fixes bug 684041 "assertion failed: `gtk_accel_group_from_accel_closure (accel_closure) != NULL"
2012-09-14 18:15:34 -03:00
Juan Pablo Ugarte
39cab4bce9 Set ignore=true on virtual property glade-style-classes to avoid bogus warnings 2012-09-13 21:42:36 -03:00
Piotr Drąg
cbd4d89779 Fix broken tag in Hindi help translation 2012-09-13 20:19:02 +02:00
Alexandre Franke
e99d3ddbcc Update French translation 2012-09-13 19:52:09 +02:00
Rafael Ferreira
df5b2f3a68 Updated Brazilian Portuguese translation 2012-09-12 10:21:02 -03:00
Changwoo Ryu
e40661addc Updated Korean translation 2012-09-09 14:37:07 +09:00
Duarte Loreto
248e4a82ce Updated Portuguese translation 2012-09-09 01:14:16 +01:00
Matej Urbančič
8d33cfeebb Updated Slovenian translation 2012-09-07 15:13:00 +02:00
Juan Pablo Ugarte
3d014fcf54 Do not abort if a project has a uninstantiable or abstract class object
instead load is as an object stub and let the user what to do.
Should be enough to close bug #646259
"SIGSEGV in glade_widget_adaptor_object_construct_object loading ui file"
2012-09-06 21:42:54 -03:00
Juan Pablo Ugarte
b25ee612bc Fixed runtime warning on GladeBaseEditor and GladeSignalEditor dispose methods 2012-09-06 21:42:54 -03:00
Juan Pablo Ugarte
8c7cd1a866 Do not explicit set window bg as it should be handled by gtk.
Fixes glitches when the widget is on a different state.
2012-09-06 21:42:54 -03:00
Jiro Matsuzawa
b0c32491cf Fix a broken tag in bg.po 2012-09-06 22:26:44 +02:00
Piotr Drąg
3d03dd095a Add fuzzy marking to broken string in Hindi help translation
Tags are broken. Hindi translators must fix it.
2012-09-06 22:14:57 +02:00
Gabor Kelemen
30c9f91265 Updated Hungarian translation 2012-09-06 13:52:06 +02:00
Paolo Borelli
0a5840d21a Sync close-button with the original gedit widget. This way the proper
symbolic close icon is used for the button.
2012-09-05 19:30:16 +02:00
Bruce Cowan
c674da0a5a Updated British English translation 2012-09-05 14:14:47 +01:00
Gabor Kelemen
fa324be28e Updated Hungarian translation 2012-09-04 09:50:49 +02:00
Piotr Drąg
d038e04ead Updated Polish translation 2012-09-03 01:15:24 +02:00
Piotr Drąg
e005fc4470 Updated Polish translation 2012-08-23 03:12:54 +02:00
Andika Triwidada
a8302d2e11 Updated Indonesian translation 2012-08-21 12:09:12 +07:00
Aurimas Černius
9e733a92c8 Updated Lithuanian translation 2012-08-20 22:37:23 +03:00
Fran Diéguez
a88d2bf82f Updated Galician translations 2012-08-16 23:21:36 +02:00
Daniel Mustieles
69179382f1 Updated Spanish translation 2012-08-16 17:21:32 +02:00
Tom Tryfonidis
3540dd36d9 Updated Greek translations 2012-08-16 17:23:21 +03:00
Chao-Hsiung Liao
d1033f1187 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2012-08-15 15:09:44 +08:00
Javier Jardón
ecc26f61ed Use new documentation infrastructure 2012-08-14 16:06:23 +09:00
Daniel Mustieles
b9ad5d964a Updated Spanish translation 2012-08-07 21:02:05 +02:00
Jiro Matsuzawa
90cc513087 [l10n] Update Japanese translation
Modify the About label
2012-08-02 13:15:59 +09:00
Jiro Matsuzawa
086303a6ae [l10n] Update Japanese translation
Merge latest pot
2012-08-02 13:14:55 +09:00
Мирослав Николић
7f5c8f8ce1 Updated Serbian translation 2012-08-01 08:42:43 +02:00
Tristan Van Berkom
27e69799e9 * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added load/save/edit support
for <style> <class name="foo"/> </style>, Fixes bgo 658035.
2012-07-31 10:30:01 -04:00
Alexsey Nadtochey
c31f518738 Updated Russian translation 2012-07-30 15:34:00 +04:00
Fran Diéguez
631c9dc4df Updated Galician translations 2012-07-30 02:13:21 +02:00
Мирослав Николић
5be9cea2ed Updated Serbian translation 2012-07-24 10:48:05 +02:00
Tom Tryfonidis
7da50cc071 Updated Greek translation 2012-07-24 11:19:50 +03:00
Daniel Mustieles
ab29ade6bb Updated Spanish translation 2012-07-21 18:44:00 +02:00
Andika Triwidada
07597adeb2 Updated Indonesian translation 2012-07-19 14:00:10 +07:00
Juan Pablo Ugarte
1cb4c775de Let glade_property_write() save properties to <template> tags 2012-07-18 16:04:33 -03:00
Juan Pablo Ugarte
64cea1848f Implemented template loading and saving
Added GladeWidget:template-class property with setter and getter functions.
Removed if (!glade_xml_node_verify (node, GLADE_XML_TAG_WIDGET)) check from every GWA read_widget()
2012-07-18 02:58:02 -03:00
Juan Pablo Ugarte
bc083e09ee Removed unneeded function glade_gtk_activatable_parse_finished() 2012-07-15 20:39:57 -03:00
Chao-Hsiung Liao
6a0d889db2 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2012-07-14 13:42:26 +08:00
Juan Pablo Ugarte
bfaac8e6fd Fixed Bug #679589 "Use Action Appearance not supported for GTK 2.12 but added to widgets in Glade 3.8.2"
Made sure use-action-appearance is not saved if there is no action defined
2012-07-13 20:32:28 -03:00
Andika Triwidada
5304ba54bd Updated Indonesian translation 2012-07-13 10:47:06 +07:00
Juan Pablo Ugarte
e8c4b708c5 Fixed runtime warning when adding a notebook 2012-07-11 20:41:15 -03:00
Juan Pablo Ugarte
74a63bde0a Fixed bug #679487 "Huge memory leaks" 2012-07-11 18:51:38 -03:00
Juan Pablo Ugarte
d5e868b4fb Fixed bug #679721 "mac-integration: missing 'widget' variable declaration" 2012-07-11 00:55:52 -03:00
Juan Pablo Ugarte
b87da6b657 Updated libtool versioning link 2012-07-11 00:24:47 -03:00
Kjartan Maraas
ea47a7251e Updated Norwegian bokmål translation 2012-07-10 14:08:05 +02:00
Tom Tryfonidis
c9a37a6b07 Updated Greek translation 2012-06-26 18:13:12 +03:00
Alexander Shopov
8d737f8a43 Updated Bulgarian translation 2012-06-26 13:42:19 +03:00
Fran Diéguez
b95eade94d Updated Galician translations 2012-06-25 00:07:12 +02:00
Tom Tryfonidis
26e7fc1c95 Updated Greek translation 2012-06-19 16:36:42 +03:00
Χόρτης Κωνσταντίνος
e7041b4345 Updated Greek translation 2012-06-10 21:04:23 +03:00
Daniel Mustieles
2a34aa2fbc Updated Spanish translation 2012-06-06 13:43:32 +02:00
Juan Pablo Ugarte
29c8c60b7e Added glade_displayable_value_is_disabled/set_disabled() functions to disable GdkModifierType reserved values 2012-06-05 23:20:25 -03:00
Juan Pablo Ugarte
baadf434ff Fixed warning on WIN32 (GPid on windows is not an integer) 2012-06-05 23:20:25 -03:00
Bruno Brouard
8cef1be60f Updated French translation 2012-06-03 12:48:55 +02:00
Juan Pablo Ugarte
a894a9b302 Added build/mingw-w64 directory with script tp cross compile and create windows installer using nsis 2012-05-29 18:59:43 -03:00
Juan Pablo Ugarte
bf45401f65 Export symbols in glade executable for windows build 2012-05-23 00:30:21 -03:00
Juan Pablo Ugarte
788c17e4e1 Replaced use of -export-symbols with -export-symbols-regex
Removed old undefined symbols to fix build error on windows
	glade_app_get_plugins_dir()
	glade_catalog_supports_libglade()
	glade_catalog_supports_gtkbuilder()
	glade_signal_editor_construct_signals_list()
2012-05-22 19:44:29 -03:00
Andika Triwidada
4c4e889093 [l10n] Updated Indonesian translation 2012-05-19 14:45:09 +07:00
Juan Pablo Ugarte
a52b4e8eb0 Improved error messages on modules loading failure. 2012-05-18 00:31:10 -03:00
Juan Pablo Ugarte
0060c3f08e try_load_library () only check for file if library_path is not null 2012-05-18 00:13:35 -03:00
Juan Pablo Ugarte
c50a7358e6 Let g_module_open() be called with NULL so that it looks libraries in defaults directories
Fixes bug #675977 "Don't hard-code library search paths"
2012-05-17 23:28:47 -03:00
Juan Pablo Ugarte
b0bb77b4f7 Removed glade3 string 2012-05-17 15:49:28 -03:00
Juan Pablo Ugarte
94653efee5 Made view items Check items 2012-05-12 12:28:55 -03:00
Juan Pablo Ugarte
940b293c55 removed g_resources_lookup_data() use, since now we depend on gtk 3.4 which has
gtk_builder_add_from_resource()
2012-05-09 15:29:14 -03:00
Juan Pablo Ugarte
b90f9a54e4 Added workaround for gtk+ bug #671786 (Menu shows accelerators now) 2012-05-09 15:26:19 -03:00
Juan Pablo Ugarte
cf0afd6c52 Added F1 accel for developer reference 2012-05-09 15:25:52 -03:00
Juan Pablo Ugarte
8f4c58dda4 Set save=false to every GtkActivatable properties since they are always saved in glade_gtk_widget_write_widget() 2012-05-08 15:42:57 -03:00
Juan Pablo Ugarte
d9e1171a47 Fixed dist build 2012-05-06 17:35:12 -03:00
Juan Pablo Ugarte
dffd3b3fcf Rolling 3.13 2012-05-06 17:18:44 -03:00
Juan Pablo Ugarte
8f9bd4c265 Updated Changelog 2012-05-06 17:17:46 -03:00
Juan Pablo Ugarte
945a545125 Updated changelog 2012-05-06 16:58:02 -03:00
Daniel Mustieles
a4c8be4c1a Updated Spanish translation 2012-05-06 12:06:48 +02:00
Yuri Kozlov
416650a94e Updated Russian translation 2012-05-06 11:30:01 +04:00
Fran Diéguez
ecced64866 Updated Galician translations 2012-05-05 15:06:26 +02:00
Juan Pablo Ugarte
3ec8a9ab19 Implemented GladePreferences dialog.
Fixes bug 588981 "Catalog support in GUI preferences instead of using environment var"
2012-05-04 20:43:04 -03:00
Juan Pablo Ugarte
90cac8274e Added G_BEGIN_DECLS 2012-05-04 20:36:25 -03:00
Juan Pablo Ugarte
9bb800e752 Added glade_init()
Made glade_app_get_config() returna  static pointer so that it can be used before creating a GladeApp
2012-05-04 20:35:14 -03:00
Juan Pablo Ugarte
68684d2e74 Fixed compile and runtime warning 2012-05-03 16:48:47 -03:00
Juan Pablo Ugarte
b743e6a14b Reworked glade_util_get_placeholder_from_pointer() to use gdk_device_get_window_at_position()
to get the placeholder window from the pointer.
Use glade_util_get_placeholder_from_pointer() in paste action activate
2012-05-03 16:44:20 -03:00
Juan Pablo Ugarte
c81c0241cc Removed use of glade_util_get_placeholder_from_pointer () from glade_command_add() 2012-05-03 16:43:40 -03:00
Juan Pablo Ugarte
84bb160d06 Fixed identation 2012-05-03 16:35:58 -03:00
Juan Pablo Ugarte
c9b9e0d85f Fixed a bug while #675395 "Using right click to add a widget over a placeholder do not work as expected every time"
By using the placeholder that got the right click on the paste command.
2012-05-03 16:09:35 -03:00
Juan Pablo Ugarte
9d3026f471 Removed used of deprecated function gtk_widget_get_pointer() 2012-05-03 16:07:29 -03:00
Juan Pablo Ugarte
7ff491ae85 Made unselected border color darker
Removed use of deprecated function gtk_widget_get_pointer()
2012-05-03 16:05:55 -03:00
Juan Pablo Ugarte
462648d9f5 Added glade_widget_get_device_from_event() 2012-05-03 16:01:01 -03:00
Juan Pablo Ugarte
4f60cf6aa1 Also set GtkRadioButton:xalgin as save-always 2012-05-02 20:02:21 -03:00
Juan Pablo Ugarte
43c13faee0 Set GtkCheckButton:xalign save-always. fixes bug #675042
"plugins/gtk+.xml.in: always store GtkButton [x|y]align properties"
2012-05-02 17:49:34 -03:00
Juan Pablo Ugarte
4245334be9 Replaced deprecated font and color selection dialogs with font and color chooser dialogs 2012-04-30 17:02:15 -03:00
Fran Diéguez
7928f34804 Updated Galician translations 2012-04-30 16:27:03 +02:00
Daniel Mustieles
6f4a564596 Updated Spanish translation 2012-04-30 13:16:56 +02:00
Juan Pablo Ugarte
c098f78522 Removed use of deprecated GtkHBox, GtkVBox and others 2012-04-28 13:56:00 -03:00
Piotr Drąg
41b5ef80bc Updated POTFILES.in 2012-04-28 17:57:28 +02:00
Juan Pablo Ugarte
b6f3d968f6 Set proper names for menubar item and updated mac integration 2012-04-27 19:35:01 -03:00
Juan Pablo Ugarte
cb69ca9944 Implemented Glade UI in Glade, side effect status bar started working again
src/glade-window.c:
 Use GtkBuilder and GResources to build GladeWindow contents
 Implemented menu with GtkActions
 Push tooltip for rencet manager and project actions

src/main.c: Register glade GResources

src/glade-resources.gresources.xml: Glade Gresource file

src/glade.glade: Glade UI GladeWindow, about and preferences dialog

src/glade-callbacks.h: callbacks declarations

src/Makefile.am: added glade-resource.c to source list

configure.ac:
 bumped version to 3.13
 added glib-compile-resources path program

glade-rules.mk: added common rules for GResources files
2012-04-27 00:04:25 -03:00
Juan Pablo Ugarte
f3264535e7 Fixed compiler warning and declared glade_utils_pointer_mode_render_icon() in header 2012-04-27 00:04:25 -03:00
Juan Pablo Ugarte
639d140eb3 Removed old theme hack widget_reset_bg_color()
Set the right bg color for the offscreen window instead of drawing the bg for windowless children
2012-04-27 00:04:25 -03:00
Juan Pablo Ugarte
fd593047e2 Added glade_catalog_add_path() and glade_catalog_remove_path()
Added API documentation. Code cleanup.
2012-04-27 00:04:25 -03:00
Juan Pablo Ugarte
80afa6a5ab Draw bg for windowless widgets used as toplevels.
Added custom stype provider to setip bg color to @base_color.
Symplyfied glade_design_layout_style_updated() using gtk_style_context_lookup_color()
2012-04-27 00:04:25 -03:00
Juan Pablo Ugarte
6b40f2f63e Added custom style provider to setup viewport background color to @base_color 2012-04-27 00:04:25 -03:00
Juan Pablo Ugarte
f7d2c646af Replaced strcmp() with g_strcmp0 in glade_eprop_accel_populate_view() 2012-04-27 00:04:25 -03:00
Juan Pablo Ugarte
8beec9cd7d gladeui/glade-app.c: glade_app_register_stock_icons() added fuction to register glade icons
gladeui/glade-project.[ch]: removed glade_project_pointer_mode_render_icon()

gladeui/glade-utils.c: added glade_utils_pointer_mode_render_icon()
2012-04-27 00:04:24 -03:00
Fran Diéguez
0e58a17204 Updated Galician translations 2012-04-19 19:37:56 +02:00
Daniel Mustieles
6382634357 Updated Spanish translation 2012-04-08 13:24:49 +02:00
Juan Pablo Ugarte
ad481a643e Removed use of deprecated object GCompletion
replaced deprecated function g_value_get_char with g_value_get_schar()
2012-04-03 14:36:57 -03:00
Juan Pablo Ugarte
5b131bb141 gladeui/glade-signal-editor.[ch]:
o added GladeSignalEditor::detail-suggestions signal
  o Fixed memory leak on handler-suggestion emmision

gladeui/glade-signal-model.c: Removed "__dummy" object data hack
  Now only the data model returns user strings like <Type Here> when the GladeSignal value is null

gladeui/glade-signal.c: fixed bug in glade_signal_set_detail() that allowed to set an empty string as a detail
2012-03-31 22:50:50 -03:00
Mario Blättermann
de4a76fe58 [l10n] Updated German translation 2012-03-31 00:52:32 +02:00
Carles Ferrando
049d7ed0ea [l10n]Updated Catalan (Valencian) translation 2012-03-27 22:28:18 +02:00
Andrea Zagli
3bb19c3cca [l10n] Updated Italian translation 2012-03-25 13:25:08 +02:00
Juan Pablo Ugarte
4a8c09727f Update Changelog 2012-03-24 21:16:55 -03:00
Juan Pablo Ugarte
11b2d69eb7 Updated Changelog 2012-03-24 21:08:20 -03:00
Juan Pablo Ugarte
d251a195ff Migrated hand coded _get_type() function to G_DEFINE_TYPE() macro plus identation fixes. 2012-03-24 20:47:49 -03:00
Juan Pablo Ugarte
7b44a63649 Added support for signal detail. Fixes bug #670792 "Unable to connect to specific notify signals." 2012-03-23 18:28:10 -03:00
Automatic Mirroring
ab03f8cc10 Update Simplified Chinese translation. 2012-03-20 15:02:14 +00:00
Seng Sutha
d1adc2c6d8 Add initial Khmer translation. 2012-03-20 11:29:34 +01:00
Juan Pablo Ugarte
c7941df84d Removed padding to keep ABI compatibility 2012-03-19 19:48:45 -03:00
Juan Pablo Ugarte
0e0bf998f2 Implemented GladeSignalEditor::callback-suggestions signal
(based on patch by Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com >)
Closes bug #667570 "Implement callback name suggestion on glade-signal-editor"

Added GladeSignalEditor:widget missing property
Added new accumulator _glade_strv_handled_accumulator()
Added new marshall BOXED:OBJECT
2012-03-19 19:34:51 -03:00
Juan Pablo Ugarte
51d10c3202 Fixed bogus runtime warning in glade_signal_model_iter_n_children() when it is called with a NULL iter
Fixed space identation (we use * next to the variable name)
2012-03-19 19:26:54 -03:00
Daniel Mustieles
3adc266363 Updated Spanish translation 2012-03-19 21:29:25 +01:00
Daniel Mustieles
0c4f0ee162 Fixed bug #662046 2012-03-19 21:26:56 +01:00
Bruce Cowan
ee8c9dde5f Updated British English translation 2012-03-13 14:22:07 +00:00
David Planella
094a53a26c [l10n] Updated Catalan translation 2012-03-13 01:09:26 +01:00
Bruno Brouard
bf5f1c4125 Updated French translation 2012-03-12 20:48:26 +01:00
Timo Jyrinki
3fa4490440 Finnish translation update from http://l10n.laxstrom.name/wiki/Gnome_3.4 translation sprint 2012-03-12 11:01:50 +02:00
Duarte Loreto
4b1a99137a Updated Portuguese translation 2012-03-12 00:23:31 +00:00
Changwoo Ryu
bae1b91f08 Updated Korean translation 2012-03-10 20:57:42 +09:00
Gabor Kelemen
c1da1e6db8 Updated Hungarian translation 2012-03-04 02:25:43 +01:00
Piotr Drąg
4d9483f595 Updated Polish translation 2012-03-03 23:42:30 +01:00
Krishnababu Krothapalli
7df49a4ea4 Updated Telugu Translations 2012-03-01 13:23:12 +05:30
Yuri Myasoedov
ca9c872b2a Updated Russian translation 2012-02-27 10:52:17 +04:00
Alexander Shopov
3342e1fb6d Updated Bulgarian translation 2012-02-22 19:42:43 +02:00
Fran Diéguez
31ed8f4990 Updated Galician translations 2012-02-21 11:39:43 +01:00
Kenneth Nielsen
9398d6bf49 Updated Danish translation 2012-02-20 23:07:59 +01:00
Мирослав Николић
65b4d3c030 Updated Serbian translation 2012-02-20 10:51:45 +01:00
Daniel Nylander
a9e9ed421d Updated Swedish translation 2012-02-19 01:17:18 +01:00
Aurimas Černius
0136f03485 Updated Lithuanian translation 2012-02-17 23:53:44 +02:00
Marco Diego Aurélio Mesquita
3e3f341a1c Fixed bug 669272 "Emit a signal to notify signal activation" 2012-02-17 18:22:33 -03:00
Matej Urbančič
786dbfec4d Updated Slovenian translation 2012-02-17 21:46:28 +01:00
Marek Černocký
4625be8f07 Updated Czech translation 2012-02-17 13:39:23 +01:00
Adam Matoušek
b162c2b195 Updated Czech translation 2012-02-17 13:35:51 +01:00
Daniel Mustieles
6116afe46b Updated Spanish translation 2012-02-16 17:29:15 +01:00
Juan Pablo Ugarte
bdfc85188e Fixed bug 645340 "Minor string typo" and
bug 646366 "non-sense UI string"
2012-02-15 19:20:31 -03:00
Juan Pablo Ugarte
94b2137d8b Fix bug 664912 "GtkGrid assumes 3x3 (edit)" 2012-02-15 19:09:31 -03:00
Juan Pablo Ugarte
2d4388f620 Rolling version 3.11.0 2012-02-13 16:09:04 -03:00
Мирослав Николић
51aa24cc54 Updated Serbian translation 2012-02-12 17:34:29 +01:00
Ivan Masár
7117603386 Updated Slovak translation 2012-02-11 23:35:04 +01:00
Chao-Hsiung Liao
539409659f Updated Traditional Chinese translation(Hong Kong and Taiwan) 2012-01-29 22:49:55 +08:00
Tristan Van Berkom
a842e5c871 * plugins/gtk+/gtk+.xml.in: Correct the 'book' to search for GTK+3 documentation,
Credit goes to Pietro Battiston for pointing out the exact problem.
2012-01-29 18:06:49 +09:00
Javier Jardón
448f4eedc8 configure.ac: Post release version bump 2012-01-26 12:40:21 +00:00
Kjartan Maraas
7097480dda Updated Norwegian bokmål translation 2012-01-24 14:51:26 +01:00
Daniel Korostil
34ebaf9e19 bugfix in uk.po 2012-01-17 17:18:47 +02:00
Gil Forcada
aa72670dfb [l10n]Fixed Catalan documentation 2012-01-12 21:50:11 +01:00
Alexander Shopov
5a37104062 Updated Bulgarian translation 2012-01-08 08:25:44 +02:00
Jiro Matsuzawa
92e7816784 Updated Japanese translation 2012-01-05 14:35:25 +09:00
Vincent Untz
5f9bdd8407 build: Explicitly link to gmodule-2.0
https://bugzilla.gnome.org/show_bug.cgi?id=665784
2011-12-21 09:25:16 +01:00
Kjartan Maraas
f4f5f454f8 Updated Norwegian bokmål translation 2011-12-18 12:20:45 +01:00
Juan Pablo Ugarte
ae06096fd0 Updated Changelog 2011-12-15 17:44:25 -03:00
Juan Pablo Ugarte
2bbb3d46d8 Let the backend reload the real value if one was rejected by a verify function 2011-12-15 17:36:01 -03:00
Juan Pablo Ugarte
886ab249d0 Reworked GtkGrid support for width and height properties 2011-12-15 17:28:03 -03:00
Juan Pablo Ugarte
37807efabe Removed dialog hint to make gnome-shell put a close button in the window 2011-12-15 17:14:05 -03:00
Daniel Nylander
d33f042c8a Updated Swedish translation 2011-11-25 10:10:35 +01:00
Tristan Van Berkom
8f0ab57581 2011-11-23 Dieter Verfaillie <dieterv@optionexplicit.be>
* build/mswindows/README, build/mswindows/build_glade.sh:
	Added custom build scripts for building on MS windows.
2011-11-23 20:37:18 +09:00
Tristan Van Berkom
5890035ce4 2011-11-17 Fredy Paquet <fpa@opag.ch>
* plugins/gtk+/glade-gtk.c: Improved performance of modifying GtkTable
	  contents, shows specifically when loading files containing large tables.

	Bug 663516
2011-11-17 19:33:50 -05:00
John Ralls
e90717a501 [Glade Bug 663492] Update Mac integration bindings to GtkOSXApplication 2011-11-08 13:26:24 -08:00
Fran Diéguez
7bd1d1b654 Updated Galician translations 2011-11-04 13:24:17 +01:00
Juan Pablo Ugarte
8f20c634f9 Fixed bug detecting widget including margins 2011-11-03 19:08:03 -03:00
Juan Pablo Ugarte
ba0345e36d Added workaround for child bg bug on Adwaita theme on the workspace. 2011-11-03 17:42:02 -03:00
Juan Pablo Ugarte
db4388e146 Make GladeDesignLayout use only button 1 press to select widgets.
Fixed bug in gdl_get_margins_from_pointer(), needed to translate coordinates
In glade_design_layout_find_inside_container() use widget margins as if they where part of the widget allocation.
2011-10-31 17:05:14 -03:00
Juan Pablo Ugarte
3d331480c5 Added myself as a maintainer, and backported docs build fix from 3.10 branch 2011-10-31 15:39:03 -03:00
Jorge González
f380a3888d Updated Spanish translation 2011-10-22 17:53:36 +02:00
Matej Urbančič
61bcf7284e Updated Slovenian translation 2011-10-21 21:30:44 +02:00
Kjartan Maraas
5adc1c3a66 Updated Norwegian bokmål translation 2011-10-19 23:23:43 +02:00
Tristan Van Berkom
340ccb0d0c 2011-10-12 Arnel A. Borja <kyoushuu@yahoo.com>
* gladeui/glade-previewer.rc.in: Change the name of the icon in the resource
	file to glade.ico
2011-10-12 03:43:47 -04:00
Tristan Van Berkom
2af8a582ee 2011-10-11 Johannes Schmid <jhs@gnome.org>
* gladeui/glade-project.c: Avoid crashing if glade-previewer is not installed, bug 650899.
2011-10-11 16:19:11 -04:00
Tristan Van Berkom
75f753cac0 * doc/Makefile.am: Make documentation parallel installable. 2011-10-11 15:53:26 -04:00
Tristan Van Berkom
7bb00e515f * gladeui/glade-app.h: Make Glade 3.10 use new environment variables for proper
parallel installability.

	* doc/catalogintro.sgml: Update docs about environment vars.
2011-10-11 15:49:46 -04:00
Tristan Van Berkom
881f163a95 2011-10-11 Benjamin Otte <otte@redhat.com>
* gladeui/glade-editor-property.c:
	Make size groups widget selection work (bug 647984)
2011-10-11 15:36:15 -04:00
Tristan Van Berkom
1277357a9a * gladeui/glade-project.c: Fix glade_project_notify_has_child() to notify
that the children are gone only when the last item on that level disappears.

	Fixes bug 651673
2011-10-09 18:02:40 -04:00
Tristan Van Berkom
d20f63e55b Removed unused variable 2011-10-09 15:03:47 -04:00
Tristan Van Berkom
ee98d82585 * gladeui/glade-property.c, gladeui/glade-xml-utils.c:
Fix a bug on the GtkComboBoxText (and probably others) when adding
	a special char (like '&') in an item's name: every characters following
	the special char disappeared while writting the xml file.

	Bug 654609.
2011-10-09 15:00:12 -04:00
Daniel Mustieles
18a99f9e17 Updated Spanish translation 2011-10-07 10:14:45 +02:00
Tristan Van Berkom
1fd8c8022d Documentation typo fix 2011-10-06 16:35:16 -04:00
Tristan Van Berkom
9163f4ef11 * gladeui/glade-widget-adaptor.c: Implemented a generic ->depends() routine
to ensure that liststores are serialized before treemodelfilters which refer to them.
2011-10-06 16:34:48 -04:00
Juan Pablo Ugarte
551dcae29b gladeui/glade-design-layout.c unref GtkStyleContext object used in glade_design_layout_style_updated() 2011-10-06 16:42:50 -03:00
Juan Pablo Ugarte
a386ef0e95 Fixed unused variable warning. 2011-10-06 16:12:22 -03:00
Juan Pablo Ugarte
8bd4f4df2b Moved glade_design_layout_pointer_mode_image_new() to glade_project_pointer_mode_render_icon() 2011-10-06 16:12:22 -03:00
Juan Pablo Ugarte
f998516b35 Added MARGIN_EDIT and ALIGN_EDIT pointer modes including new palette buttons for each one.
Removed selector and drag-resize icons and replaced with cairo drawn images at runtime.
2011-10-06 16:12:22 -03:00
Juan Pablo Ugarte
c8689eae4f Replaced drag&drop alignment editing by making each node activatable. 2011-10-06 16:12:22 -03:00
Juan Pablo Ugarte
e788a193a4 Revert "Draw animated dash line in round nodes too."
This reverts commit 2210be98ef4014c523f99dd8ec1e6c3a9c031a9a.
2011-10-06 16:12:22 -03:00
Juan Pablo Ugarte
a283736525 Revert "Added the avility to choose fill/center alignment using the scrollweel"
This reverts commit c28c45298aa05d7d96fc5206944915de779104ba.
2011-10-06 16:12:22 -03:00
Juan Pablo Ugarte
7f7b1d4b46 Added the avility to choose fill/center alignment using the scrollweel 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
35a4cdb65a Draw animated dash line in round nodes too. 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
268e0c7ea9 Added alignment edit mode to the workspace. 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
87fb6cc397 Do not draw dimension lines if there is no margin set 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
58b85cb00a Use style colors instead of hard coded values to draw dimensions 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
13f6ae1e7b Added dimesions drawing when editing margins 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
9dcc6d5176 Changed margin step to 6 pixels
Clean up gdl_update_max_margins()
2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
17d7230ebd Let margin edit mode resize toplevel until the size of the view if smaller. 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
592b565cc7 Made margins edit mode restrict margins size to avoid resizing the toplevel 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
4c1e409fbc Made margins edit mode snap bu 8px while holding ALT 2011-10-06 16:12:21 -03:00
Juan Pablo Ugarte
1fb1f3eb0e Added GladeCommand support to margin edit mode. 2011-10-06 16:12:20 -03:00
Juan Pablo Ugarte
b4b114b1b1 Implemented inline margins edit mode. Now it is posible to change widget's margins
using the mouse.

 * gladeui/glade-design-layout.c:
   o fixed offscreen bg rendering bug (style context from the embedded widget should be used)
   o Implemented ACTIVITY_MARGINS
   o include widget margins on selection drawing

 * gladeui/glade-cursor.c:
   o made cursor->selector == NULL
   o Only set cursor if the current cursor is diferent

 * gladeui/glade-project.h: added GLADE_POINTER_MARGIN_MODE

 * gladeui/glade-placeholder.c: fixed function prototypes.
2011-10-06 16:12:20 -03:00
Juan Pablo Ugarte
2d29c14479 Make n-row and n-column save false.
Fixes bug #660607 "Warnings when using GtkGrid created in Glade 3.10"
2011-10-06 15:09:10 -03:00
Tristan Van Berkom
d2bcae583c * plugins/gtk+/glade-gtk-grid.c: Update placeholders when a grid child's
width or height child properties change.
2011-10-05 17:17:22 -04:00
Tristan Van Berkom
3d08e35b8c * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Ensure 'related-action'
and 'use-action-appearance' are serialized in the right order.

Conflicts:

	ChangeLog
2011-10-04 18:13:36 -04:00
Juan Pablo Ugarte
aa34559140 Fixed bug #660874 "glade-previewer fails to open UI files without top windows"
Fixed bug 660872 "glade-previewer crashes on non-existent files"
2011-10-04 17:43:01 -03:00
Juan Pablo Ugarte
d5162993bf Fixed bug #660874 "glade-previewer fails to open UI files without top windows" 2011-10-04 16:53:33 -03:00
Juan Pablo Ugarte
4d8a2f0540 Fixed spelling errors 2011-10-04 16:48:49 -03:00
Kristjan SCHMIDT
3b05a5cc27 Updated Esperanto translation 2011-10-01 17:42:01 +02:00
Juan Pablo Ugarte
802fd1926a Revert "Revert "Make GladeProject change gtk target to 3.0 and warn the user if there are""
This reverts commit 5f7a5f2a4e00820fc41442bb28ff864a9a0034ee.
2011-09-28 17:51:34 -03:00
Juan Pablo Ugarte
568454ae35 Revert "Updated POTFILES.in after previous revert"
This reverts commit 5274c282da907ee3af472df1162dde61f04a2b39.
2011-09-28 17:51:20 -03:00
Carles Ferrando
ae6541d892 [l10n]Updated Catalan (Valencian) translation 2011-09-26 14:21:15 +02:00
Changwoo Ryu
0d4a2ea5d7 Updated Korean translation 2011-09-23 02:26:30 +09:00
Fran Dieguez
17e3cdc38b Updated Galician translations 2011-09-22 00:19:17 +02:00
Claude Paroz
5274c282da Updated POTFILES.in after previous revert 2011-09-21 16:48:51 +02:00
Juan Pablo Ugarte
5f7a5f2a4e Revert "Make GladeProject change gtk target to 3.0 and warn the user if there are"
This reverts commit 49d6fdb33f95334ee8b741f92476efe24c02ef0b.
2011-09-21 11:26:59 -03:00
Fran Dieguez
f6a7c6788b Updated Galician translations 2011-09-20 22:43:12 +02:00
Jorge González
d4380e5d16 Updated Spanish translation 2011-09-20 20:49:51 +02:00
Jorge González
ae25559c97 Updated Spanish translation 2011-09-20 20:24:57 +02:00
Djavan Fagundes
09438fab7e Updated Brazilian Portuguese translation 2011-09-20 12:21:18 -03:00
Djavan Fagundes
dff9f8fcbd Updated Brazilian Portuguese translation 2011-09-20 12:19:44 -03:00
Matej Urbančič
f8c78510e6 Updated Slovenian translation 2011-09-20 13:25:24 +02:00
Yuri Myasoedov
71360504c0 Updated Russian translation 2011-09-20 10:27:22 +04:00
Daniel Nylander
a118da8319 Updated Swedish translation 2011-09-20 07:48:28 +02:00
Fran Dieguez
fd21aedadf Updated Galician translations 2011-09-20 01:25:36 +02:00
Piotr Drąg
43d5bf2cc6 Updated Polish translation 2011-09-19 22:47:34 +02:00
Piotr Drąg
32dd2e4dff Updated Polish translation 2011-09-19 22:44:53 +02:00
Peteris Krisjanis
b2b1b1664f Updated Latvian translation. 2011-09-19 23:40:40 +03:00
Piotr Drąg
4867664405 Updated POTFILES.in 2011-09-19 22:33:46 +02:00
Juan Pablo Ugarte
49d6fdb33f Make GladeProject change gtk target to 3.0 and warn the user if there are
any unknown (deprecated) objects, it also replaces them with a stub to make it
even more noticeable.

Fixes bug 652673 "Project versions are ignored" and 376628 "Deletes unknown widget nodes."
2011-09-19 17:11:30 -03:00
Ignacio Casal Quinteiro
4dd25f0b61 Bump pygobject requisite to pygobject 3. Fixes bug #658667. 2011-09-19 16:57:47 -03:00
Andrea Zagli
e28dd8508c [l10n] Updated Italian translation 2011-09-19 21:54:48 +02:00
Inaki Larranaga Murgoitio
f9cc0a82aa Updated Basque language 2011-09-19 19:57:34 +02:00
Gabor Kelemen
559eef2d05 Updated Hungarian translation 2011-09-19 13:23:31 +02:00
Мирослав Николић
23de64b6a2 Updated Serbian translation 2011-09-19 02:59:32 +02:00
Kenneth Nielsen
76aff4bb52 Updated Danish translation 2011-09-18 17:04:30 +02:00
Mario Blättermann
d1d142ef8b [l10n] Updated German translation 2011-09-18 16:33:15 +02:00
Gil Forcada
b0f8292dd2 [l10n]Updated Catalan translation 2011-09-17 16:39:31 +02:00
Jiro Matsuzawa
d3485b4abd Updated Japanese translation 2011-09-17 11:23:12 +09:00
dmustieles
b543e7a93a Updated Spanish translation 2011-09-14 17:24:49 +02:00
Yinghua Wang
23d411a9c0 Update Simplified Chinese translation. 2011-09-13 07:36:31 +00:00
Jorge González
142f823e6d Updated Spanish translation 2011-09-11 11:26:20 +02:00
Duarte Loreto
5f918d48d7 Updated Portuguese translation 2011-09-11 00:39:20 +01:00
Bruce Cowan
708efe1de4 Updated British English translation 2011-09-09 13:18:39 +01:00
Andika Triwidada
de484989ba Updated Indonesian translation 2011-09-05 19:38:53 +07:00
Alexandre Franke
d7e556fc49 Update French translation 2011-08-29 18:29:19 +02:00
Og B. Maciel
24d63aedc9 Updated Brazilian Portuguese translation. 2011-08-25 08:37:27 -04:00
Kjartan Maraas
09bfd4b7e8 Updated Norwegian bokmål translation. 2011-08-17 15:22:18 +02:00
Piotr Drąg
096e569bf2 Updated Polish translation 2011-08-11 22:01:19 +02:00
Alexander Shopov
8ef114b510 Updated Bulgarian translation 2011-08-11 06:58:41 +03:00
Claude Paroz
48f449ea96 Fix parameter reordering in French translation 2011-08-02 23:04:53 +02:00
Yuri Myasoedov
7f60f2db06 Updated Russian translation 2011-07-30 14:09:08 +04:00
Kjartan Maraas
62a565fe1f Updated Norwegian bokmål translation 2011-07-18 10:10:58 +02:00
Aurimas Černius
9fa1ceb211 Updated Lithuanian translation. 2011-07-12 14:01:49 +03:00
Joan Duran
7943f0a4f8 [l10n]Minor fix to Catalan translation 2011-07-10 01:41:28 +02:00
Muhammet Kara
a5c4df5b64 [l10n]Updated Turkish translation 2011-07-08 21:08:20 +03:00
David Aguilera
424649307a [l10n]Added Catalan documentation 2011-07-08 00:15:21 +02:00
Juan Pablo Ugarte
6d6891c966 Ignore GtkWindow:icon property. Fixes bug #654121 "workaround gtk segfault: icon on gtkwindow segfault in offscreen" 2011-07-06 16:06:22 -03:00
Juan Pablo Ugarte
62d03ae8d0 Replaced deprecated GtkHBox, GtkVBox, GtkHPaned and GtkVPaned types in
add parent action with new instantiable types GtkBox and GtkPaned.

Fixed bug #654098 "No way to add GtkBox or GtkPaned from the context menu"
2011-07-06 15:51:30 -03:00
Daniel Nylander
ea3bf4529e Updated Swedish translation 2011-07-01 09:35:48 +02:00
Juan Pablo Ugarte
c4c6f44085 Fixed C++ compiler errors when including glade.h 2011-06-14 15:50:18 -03:00
Abduxukur Abdurixit
2f6c0f2c18 Added UG translation 2011-06-11 23:44:25 +02:00
Fran Diéguez
0dc086a5d8 Updated Galician translations 2011-06-05 22:50:13 +02:00
Carles Ferrando
4935a8ce12 [l10n]Updated Catalan (Valencian) translation 2011-05-29 13:44:44 +02:00
Kristjan SCHMIDT
6f29cf5b36 Updated Esperanto translation 2011-05-26 21:33:21 +02:00
Jorge González
8072c2f7ab Updated Spanish translation 2011-05-22 16:34:13 +02:00
Juan Pablo Ugarte
1e94a0f3bf Fixed "variable set but not used" warnings (-Wunused-but-set-variable) 2011-05-20 16:41:47 -03:00
Matej Urbančič
3d254d1c71 Updated Slovenian translation 2011-05-14 19:53:39 +02:00
Abduxukur Abdurixit
e25c47b79b Added UG translation 2011-05-11 11:58:44 +02:00
Marek Černocký
c8806b8b5d Updated Czech screenshot 2011-05-05 13:45:25 +02:00
Javier Jardón
0bd04078f1 gladeui/glade-utils.c: Correctly detect the required devhelp version 2011-04-29 19:31:51 +01:00
Marek Černocký
a4418553ff Updated Czech translation 2011-04-29 07:42:23 +02:00
Ask H. Larsen
07b73d564f Updated Danish translation 2011-04-25 22:40:17 +02:00
Xandru Armesto
7bcc0221e5 Updated asturian translation 2011-04-25 08:43:04 +02:00
Tristan Van Berkom
61291444df * src/main.c: Fixed loading correct application icon (bug 648487
fix by Stéphane Maniaci).
2011-04-22 17:30:16 +09:00
Juan Pablo Ugarte
9055746ece Fixed bug while grabbing resize grip 2011-04-21 17:59:59 -03:00
Gabor Kelemen
5f56112209 Updated Hungarian translation 2011-04-21 19:20:05 +02:00
Bruce Cowan
9b968c72e2 Updated British English translation 2011-04-20 12:59:11 +01:00
Juan Pablo Ugarte
ab1a3aef1d Optimized project loading time by not updating progrebars on each object loaded.
Added bg logo on empty GladeDesignView.
Migrated code using deprecated GtkStyle to GtkStyleContext
2011-04-13 20:32:18 -03:00
Juan Pablo Ugarte
4b3035c38c Revert GtkEntryCompletion support removal
This reverts commit b95c6ad7e2ffe1aa84fa9af94e3beed3ce0c45e6.
2011-04-13 20:25:17 -03:00
Juan Pablo Ugarte
61e1c035c3 Revert "Remove GtkSwitch and GtkInfoBar support"
This reverts commit 746553e2029e3b646e75682804f874fa048d68ae.
2011-04-13 20:25:17 -03:00
Alexander Shopov
31689f5bb3 Updated Bulgarian translation 2011-04-13 07:41:54 +03:00
Fran Diéguez
d0ce48434a Updated Galician translations 2011-04-07 09:49:37 +02:00
Matej Urbančič
4046a1557c Added Slovenian translation 2011-04-06 17:14:10 +02:00
Gil Forcada
8786e8946d [l10n]Minor update on Catalan translation 2011-04-05 23:32:36 +02:00
Yuri Myasoedov
810a6273b9 Updated Russian translation 2011-04-06 00:50:24 +04:00
Christian Kirbach
5563a2157f [l10n] Updated German translation 2011-04-05 22:10:31 +02:00
Daniel Mustieles
1d8b475b40 Updated Spanish translation 2011-04-05 21:19:07 +02:00
Piotr Drąg
a4744b7946 Updated Polish translation 2011-04-05 21:15:35 +02:00
Krix Apolinário
f17d14dcae Updated Brazilian Portuguese translation 2011-04-05 14:04:50 -03:00
Daniel Nylander
2dabab8e40 Updated Swedish translation 2011-04-05 18:27:42 +02:00
Marek Černocký
92e5c7dcb9 Updated Czech translation 2011-04-05 11:24:35 +02:00
Bruno Brouard
52487c50e0 Updated French translation 2011-04-05 09:56:59 +02:00
Tristan Van Berkom
9c7069557d * configure.ac, NEWS: Rolling 3.10.0 2011-04-05 03:17:45 +09:00
Juan Pablo Ugarte
a20c6f1b6d Added Changelog entry of internal-child-support branch merge 2011-04-05 03:13:26 -03:00
Tristan Van Berkom
f0c4240eee Fixing distcheck problems... 2011-04-05 02:58:43 +09:00
Tristan Van Berkom
e052df2e14 Fixing distcheck problems 2011-04-05 02:25:31 +09:00
Tristan Van Berkom
76a42c1695 Ammending changelog 2011-04-05 02:25:31 +09:00
Tristan Van Berkom
ed7f268720 * gladeui/glade-widget-adaptor.c, plugins/gtk+/gtk+.xml.in: Declare treeview's internal
selection as 'anarchist'.
2011-04-05 02:15:58 -03:00
Tristan Van Berkom
9bd0a63755 Cleanup glade_widget_adaptor_get_children() 2011-04-05 02:15:57 -03:00
Juan Pablo Ugarte
c447bffe69 * gladeui/glade-widget-adaptor.[ch]:
o removed GladeGetInternalChildrenFunc, replaced by making GladeGetChildrenFunc
     base implementation return internal children

 * plugins/gtk+/glade-gtk.c: glade_gtk_container_get_children()
   chain up to parent implementation
2011-04-05 02:15:57 -03:00
Tristan Van Berkom
70886f7a3c * plugins/gtk+/glade-gtk.c: Make h/vexpand properties 'needs-sync', fixes GtkDialog's
showing up with expanding action area (due to placeholders needing to expand).
2011-04-05 02:15:57 -03:00
Tristan Van Berkom
77ac98ba8f Revert my long ago fix to never set packing properties onto GladeWidgets 2011-04-05 02:15:57 -03:00
Tristan Van Berkom
46479e6b6c * glade-widget.[ch]:
- Make glade_widget_find_child() have a const gchar argument
	  - Use glade_widget_get_internal_child() instead of glade_widget_get_internal_func().
2011-04-05 02:15:57 -03:00
Juan Pablo Ugarte
6c0314d5f7 * gladeui/glade-widget-adaptor.[ch]:
o added GladeGetInternalChildrenFunc class and base implementation method
   o removed glade_widget_adaptor_get_internal_children() function
   o gwa_internal_children_update_from_node() reworked to work with simplyfied <internal-children> format
     <internal-children>
       <object/>
       <object>
         <object/>
       </object>
     </internal-children>

 * plugins/gtk+/glade-gtk.c:
   o fixed glade_gtk_container_get_children() now uses new get_internal_children
   GWA method and purify the list to remove posible duplicates

 * plugins/gtk+/gtk+.xml.in:
   o update <internal-children> tag to new format
   o make GtkTreeViewColumn:widget property parentless-widget

 * src/glade-window.c: set project in inspector after finishing loading
   (25% improvment in loading time)
2011-04-05 02:15:57 -03:00
Juan Pablo Ugarte
746553e202 Remove GtkSwitch and GtkInfoBar support 2011-04-05 02:15:57 -03:00
Juan Pablo Ugarte
a419fb66ca Reverted garbage commited to file by accident 2011-04-05 02:15:57 -03:00
Juan Pablo Ugarte
ae3e559287 * gladeui/glade-widget-adaptor.[ch]:
o Added support for reading internal children declaration in the catalog
   o Added GWA base class get_internal_child implementation using gtk_buildable_get_internal_child()
   o Create internal children as specified in catalog in glade_widget_adaptor_post_create()
     before calling deep_post_create() and post_create() methods
   o new API glade_widget_adaptor_has_internal_children()
     glade_widget_adaptor_get_internal_children()

 * gladeui/glade-widget.[ch]:
   o Made GladeWidget::reason property readable
   o Added new API glade_widget_find_child()

 * plugins/gtk+/glade-gtk-action-widgets.[ch]:
   o reworked code from GtkDialog support to read and write widget actions special tags
     found in GtkDialog and GtkInfoBar widgets

 * plugins/gtk+/glade-gtk-info-bar.c: support code for reading and writing GtkInfoBar special tags

 * plugins/gtk+/glade-gtk.c:
   o Removed GtkBox, GtkDialog, GtkComboBox and GtkTreeView unused get_internal_child functions
   o Removed creation of internal children of GtkDialog, GtkColorSelectionDialog,
     GtkFontSelectionDialog, GtkComboBox and GtkTreeView.
   o Implemented GtkDialog action-widgets tag support using common code.

 * plugins/gtk+/gtk+.xml.in:
   o Added support for GtkInfoBar widget.
   o Defined internal children of GtkDialog, GtkColorSelectionDialog,
     GtkFontSelectionDialog, GtkComboBox, GtkInfoBar and GtkTreeView.

 * gladeui/glade-xml-utils.h: Added GLADE_TAG_INTERNAL_CHILDREN and GLADE_TAG_ANARCHIST tags

 * plugins/glade-catalog.dtd: added new syntax to catalog description
2011-04-05 02:15:57 -03:00
Juan Pablo Ugarte
30137d96fc Revert "* plugins/gtk+/glade-gtk.c,
plugins/gtk+/glade-cell-renderer-editor.c,
 plugins/gtk+/gtk+.xml.in:
 Added support to edit cell renderers in GtkEntryCompletion"

This reverts commit edb4857b9b25e7ed5ce1856cdade49238553a3b4.

Conflicts:

	ChangeLog
2011-04-05 02:15:57 -03:00
Juan Pablo Ugarte
48c70fd55e * plugins/gtk+/glade-gtk-activatable.[ch]: code cleanup.
* plugins/gtk+/glade-gtk-switch.c: added suport code for GtkSwitch

 * plugins/gtk+/glade-gtk.c:
   o removed GtkActivatable support code.
   o start using GtkActivatable common support code.

 * plugins/gtk+/gtk+.xml.in:
   o added GtkSwitch support
   o made GtkAction toplevel
2011-04-05 02:15:57 -03:00
Tristan Van Berkom
a2bcc5f8f7 plugins/gtk+/glade-gtk.h: moved constant macros to common header
plugins/gtk+/glade-gtk-activatable.h: added GtkActivatable declaration
2011-04-05 02:15:56 -03:00
Tristan Van Berkom
cb77c7903f Moved GtkActivatable support code to new file. 2011-04-05 02:15:56 -03:00
Juan Pablo Ugarte
f6e0053fad * plugins/gtk+/glade-gtk.c: added proper fix for GtkButton stop property.
Need to update it on post_create when reason is user instead of setting it on "label" set_proeprty()
2011-04-05 02:15:56 -03:00
Juan Pablo Ugarte
bc2b7577a8 * glade/gladeui/glade-widget.c:
o glade_widget_constructor() do not set catalog defaults for internal widgets.
     (Fixes GtkDialog action area orientation)

 * plugins/gtk+/glade-gtk.c:
   o Fixed GtkBox virtual property size ()
   o Fixed GtkDialog derived classes placeholders creation.
   o Set GtkButton::stock property from "label" is "use-stok" is true.
     (Fixes bug in internal buttons with stock icons)
2011-04-05 02:15:56 -03:00
Juan Pablo Ugarte
e0b4eb9ce6 * gladeui/glade-widget-adaptor.[ch]:
o Added support for reading internal children declaration in the catalog
   o Added GWA base class get_internal_child implementation using gtk_buildable_get_internal_child()
   o Create internal children as specified in catalog in glade_widget_adaptor_post_create()
     before calling deep_post_create() and post_create() methods
   o new API glade_widget_adaptor_has_internal_children()
     glade_widget_adaptor_get_internal_children()

 * gladeui/glade-widget.[ch]:
   o Made GladeWidget::reason property readable
   o Added new API glade_widget_find_child()

 * plugins/gtk+/glade-gtk-action-widgets.[ch]:
   o reworked code from GtkDialog support to read and write widget actions special tags
     found in GtkDialog and GtkInfoBar widgets

 * plugins/gtk+/glade-gtk-info-bar.c: support code for reading and writing GtkInfoBar special tags

 * plugins/gtk+/glade-gtk.c:
   o Removed GtkBox, GtkDialog, GtkComboBox and GtkTreeView unused get_internal_child functions
   o Removed creation of internal children of GtkDialog, GtkColorSelectionDialog,
     GtkFontSelectionDialog, GtkComboBox and GtkTreeView.
   o Implemented GtkDialog action-widgets tag support using common code.

 * plugins/gtk+/gtk+.xml.in:
   o Added support for GtkInfoBar widget.
   o Defined internal children of GtkDialog, GtkColorSelectionDialog,
     GtkFontSelectionDialog, GtkComboBox, GtkInfoBar and GtkTreeView.

 * gladeui/glade-xml-utils.h: Added GLADE_TAG_INTERNAL_CHILDREN and GLADE_TAG_ANARCHIST tags

 * plugins/glade-catalog.dtd: added new syntax to catalog description
2011-04-05 02:15:56 -03:00
Tristan Van Berkom
0fcf5ccc32 Moved GtkDialog action-widgets tag read/write support into a new file to use
as a generic implementation for GtkInfoBar too.
2011-04-05 02:15:56 -03:00
Yuri Myasoedov
c5eae7a1ca Updated Russian translation 2011-04-05 07:39:05 +04:00
Tristan Van Berkom
fd9b626d75 * doc/gladeui.types: Fixed inclusion of private type in doc generation (bug 645125). 2011-04-04 20:39:29 +09:00
Jordi Serratosa
697feb43cd [l10n]Fixes on Catalan translation 2011-04-04 21:44:32 +02:00
Tristan Van Berkom
234e3a621c Reverted changes that make Glade a GtkApplication because GtkApplication
is not portable.

This reverts commit caf94be4e7f9d7c40cbe28c7eb65a8ca797747cb.

Conflicts:

	src/main.c
2011-04-04 15:29:04 +09:00
Tristan Van Berkom
640bec207b Ammending ChangeLog 2011-04-04 15:23:38 +09:00
Tristan Van Berkom
2c859f2dca * plugins/gtk+/icons/*: Added remaining icons contributed by Florent Thévenet. 2011-04-04 15:15:39 +09:00
Inaki Larranaga Murgoitio
3a033444f1 Updated Basque language 2011-04-04 18:39:42 +02:00
Jiro MATSUZAWA
5943ccbff4 Updated Japanese translation 2011-04-04 21:11:20 +09:00
Juan Pablo Ugarte
b95c6ad7e2 Revert "* plugins/gtk+/glade-gtk.c,
plugins/gtk+/glade-cell-renderer-editor.c,
 plugins/gtk+/gtk+.xml.in:
 Added support to edit cell renderers in GtkEntryCompletion"

This reverts commit edb4857b9b25e7ed5ce1856cdade49238553a3b4.

Conflicts:

	ChangeLog
2011-04-04 07:40:57 -03:00
Piotr Drąg
7c76321671 Updated Polish translation 2011-04-04 08:38:11 +02:00
Cosimo Cecchi
adc2044989 doc: don't use gtk+-2.0 for scanning the docs
https://bugzilla.gnome.org/show_bug.cgi?id=646551
2011-04-03 13:32:47 -04:00
Yuri Myasoedov
08e99aa4c6 Updated Russian translation 2011-04-03 20:10:41 +04:00
Og B. Maciel
ee37b8d6ad Updated Brazilian Portuguese translation. 2011-04-03 09:51:58 -04:00
Ask H. Larsen
27f9ca6bb2 Updated Danish translation 2011-04-02 22:35:18 +02:00
Christian Kirbach
5709aa2472 [l10n] Updated German translation 2011-04-02 19:58:04 +02:00
Jorge González
864b0117fd Updated Spanish translation 2011-04-02 18:13:04 +02:00
Marek Černocký
d3ee2c3b08 Updated Czech translation 2011-04-02 17:41:50 +02:00
Bruno Brouard
9ec722e6b9 Updated French translation 2011-04-02 15:51:19 +02:00
Daniel Nylander
4c203e7b85 Updated Swedish translation 2011-04-02 11:38:16 +02:00
Gil Forcada
efa4142b6b [l10n]Updated Catalan translation 2011-04-02 09:15:13 +02:00
Gil Forcada
a63e644023 [l10n]Updated Catalan translation 2011-04-02 09:14:22 +02:00
Yaron Shahrabani
80914c6714 Updated Hebrew translation. 2011-04-02 08:38:24 +03:00
Fran Dieguez
caa80c64a6 Updated Galician translations 2011-04-02 01:22:24 +02:00
Duarte Loreto
75ef923a3c Updated Portuguese translation 2011-04-02 00:17:36 +01:00
Juan Pablo Ugarte
edb4857b9b * plugins/gtk+/glade-gtk.c,
plugins/gtk+/glade-cell-renderer-editor.c,
  plugins/gtk+/gtk+.xml.in:
  Added support to edit cell renderers in GtkEntryCompletion
2011-04-01 19:48:58 -03:00
Gabor Kelemen
bfe6956573 Updated Hungarian translation 2011-04-01 22:12:22 +02:00
Andrea Zagli
30b075641c [l10n] Updated Italian translation 2011-04-01 16:04:36 +02:00
Juan Pablo Ugarte
6846485c0d * gladeui/glade-base-editor.c,
gladeui/glade-cell-renderer-icon.c,
	  gladeui/glade-clipboard.c,
	  gladeui/glade-editor.c,
	  gladeui/glade-inspector.c,
	  gladeui/glade-palette.c,
	  gladeui/glade-project.c,
	  gladeui/glade-property.c,
	  gladeui/glade-signal.c,
	  gladeui/glade-widget-action.c,
	  gladeui/glade-widget.c:
	    Replaced g_object_notify() with g_object_notify_by_spec()
2011-03-31 20:52:11 -03:00
Christian Kirbach
fd2be3bd49 [l10n] Updated German translation 2011-03-31 21:35:52 +02:00
liu zhen
6b85def2e9 Update Simplified Chinese translation. 2011-03-31 15:52:43 +00:00
Rajesh Ranjan
914222bfa2 hindi updated 2011-03-31 18:03:37 +05:30
Miroslav Nikolić
e7aacd3642 Updated Serbian translation 2011-03-31 00:36:29 +02:00
Miroslav Nikolić
3849a5928e Updated Serbian translation 2011-03-31 00:34:25 +02:00
Djavan Fagundes
1cd27585e2 Updated Brazilian Portuguese translation 2011-03-30 16:49:30 -03:00
Marek Černocký
d76fc9ab12 Updated Czech translation 2011-03-29 16:48:43 +02:00
Krix Apolinário
f430e25036 Updated Brazilian Portuguese translation 2011-03-29 09:56:44 -03:00
Ask H. Larsen
70bc0e618f Updated Danish translation 2011-03-29 10:25:29 +02:00
Abduxukur Abdurixit
94cc439db2 Added UG translation 2011-03-27 19:37:24 +02:00
Kjartan Maraas
b5889be342 Updated Norwegian bokmål translation 2011-03-26 18:40:01 +01:00
Duarte Loreto
6b04034c32 Updated Portuguese translation 2011-03-26 12:27:29 +00:00
Cosimo Cecchi
d7fd0e471e window: add a primary-toolbar style class to the toolbar 2011-03-24 21:42:34 -04:00
William Jon McCann
c1a609fd68 Use the correct icon names
Looks like they were missed in the module rename.
2011-03-24 20:04:07 -04:00
William Jon McCann
55fcb36876 Update application icon
Including a hi-res resolution variant.
Designed by Jakub Steiner.

https://bugzilla.gnome.org/show_bug.cgi?id=645602
2011-03-24 19:56:42 -04:00
Mario Blättermann
a79afe1841 [l10n] Updated German translation 2011-03-24 21:17:49 +01:00
Yuri Myasoedov
2218122836 Updated Russian translation 2011-03-24 00:03:41 +03:00
Daniel Nylander
02ad4b2459 Updated Swedish translation 2011-03-20 11:09:47 +01:00
Vasilis Tsivikis
95a8bb0208 l10n: Updated Greek translation for glade 2011-03-18 21:02:34 +02:00
Yaron Shahrabani
faccf40b12 Updated Hebrew translation. 2011-03-17 09:59:31 +02:00
Juan Pablo Ugarte
3355230f14 * gladeui/glade-design-layout.c: fixed allocation bug.
It was using height instead of width.
2011-03-15 18:08:46 -03:00
Fran Diéguez
9ec0d59c1e Updated Galician translations 2011-03-15 15:18:15 +01:00
Changwoo Ryu
043568ca8d Updated Korean translation 2011-03-13 23:23:35 +09:00
Gabor Kelemen
1cd2750d61 Updated Hungarian translation 2011-03-13 10:33:09 +01:00
Claude Paroz
18f75e5cd0 Updated French translation 2011-03-12 20:35:32 +01:00
Chao-Hsiung Liao
04a7ca0ce5 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2011-03-12 17:44:53 +08:00
Daniel Mustieles
1de16cf7f7 Updated Spanish translation 2011-03-12 10:01:18 +01:00
Tristan Van Berkom
867430e4f5 * plugins/gtk+/icons/...: Added/Updated icons for GtkSizeGroup, GtkStatusIcon, Gtk*Filter
graphics contributed by Florent Thévenet.
2011-03-11 18:33:58 +09:00
Bruce Cowan
2ac9be6405 Updated British English translation 2011-03-10 17:37:37 +00:00
Piotr Drąg
35b9130ff1 Updated Polish translation 2011-03-10 12:38:18 +01:00
Andre Klapper
2256b0589e Add missing files to POTFILES.in 2011-03-10 12:31:49 +01:00
Tristan Van Berkom
6c788dda9c Make the cursor also have the deprecated graphic. 2011-03-10 01:24:48 +09:00
Tristan Van Berkom
fe035f65dd * gladeui/glade-widget-adaptor.c: Added logic to re-composite the widget icon
with a deprecation overlay pixbuf if a widget is deprecated.

	* data/icons/Makefile.am, icons: Added deprecation overlay graphics
	  contributed by Florent Thévenet.
2011-03-10 01:24:48 +09:00
Juan Pablo Ugarte
1146e57e2b Fixed GtkFileFilter icons. Used alpha values to make them friendly to dark bgs. 2011-03-09 19:00:48 -03:00
Piotr Drąg
de650888d3 Updated Polish translation 2011-03-09 20:13:00 +01:00
Tristan Van Berkom
305abaa905 * plugins/gtk+/gtk+.xml.in: Reorganized palette, removed textbuffer/treemodel
groups and dumped all of that into the misc category.
2011-03-09 16:02:10 +09:00
Juan Pablo Ugarte
94256bba0b Added changelog entry 2011-03-09 15:13:16 -03:00
Juan Pablo Ugarte
afe0a6f9cb * gladeui/glade-project.[ch]
o Fixed function declaration and indentation
  o Call glade_project_notify_row_has_child() after deleting the object from the model
    otherwise the GladeProject views do not update properly
2011-03-09 15:10:19 -03:00
Tristan Van Berkom
9fb8eb4058 Removed unused files. 2011-03-09 14:53:17 +09:00
Tristan Van Berkom
95d4a1663c * plugins/gtk+/icons/...: Added/Updated icons for GtkOffscreenWindow,
GtkInfoBar, GtkTextBuffer, GtkEntryBuffer, GtkRecentFilter, GtkFileFilter,
	  GtkTreeModelFilter, GtkAccelGroup, GtkTreeSelection, GtkTreeViewColumn.
	  Graphics contributed by Florent Thévenet.
2011-03-09 14:52:36 +09:00
Tristan Van Berkom
1126dee017 * plugins/gtk+/icons/...: Added/Updated icons for GtkTextTag, GtkTextTagTable,
GtkInfoBar, GtkAppChooserWidget, GtkAppChooserButton, GtkCellAreaBox.
	  Graphics contributed by Florent Thévenet.
2011-03-08 21:01:42 +09:00
Claude Paroz
aec85767fc Updated French translation
Contributed by Bruno Brouard and Claude Paroz
2011-03-08 22:28:31 +01:00
Tristan Van Berkom
82267d7ea2 * plugins/gtk+/icons/...: Added missing icons for GtkTextTag, GtkTextTagTable,
GtkToolPalette, GtkToolItemGroup, GtkTearoffMenuItem, GtkInfoBar.
	  Graphics contributed by Florent Thévenet.
2011-03-08 16:07:51 +09:00
Tristan Van Berkom
29f24baf74 * plugins/gtk+/gtk+.xml.in: Added missing xml for new cell renderer properties. 2011-03-08 15:39:21 +09:00
Tristan Van Berkom
25ce935c1c * gladeui/glade-*-editor.c: Fixed all GladeEditable implementations to use
the new glade_editable_loading() and glade_editable_loaded_widget() instead
	  of manually bookkeeping those states in each implementation.
2011-03-07 17:21:42 +09:00
Tristan Van Berkom
57fbb45347 o Added glade_editable_loading(). 2011-03-07 17:21:21 +09:00
Tristan Van Berkom
13aa6975dc * gladeui/glade-cell-renderer-editor.c: Fixed to properly use GladeEditable iface. 2011-03-07 17:21:21 +09:00
Tristan Van Berkom
0a3d006281 * gladeui/glade-editor-property.c: Fixed glade_editor_property_commit() to
use glade_editor_property_load() instead of the vfunc directly.
2011-03-07 17:21:04 +09:00
Tristan Van Berkom
ee44fe8eb9 * gladeui/glade-editable.[ch]: Added glade_editable_loaded_widget(). 2011-03-07 17:20:37 +09:00
Tristan Van Berkom
6e074589f4 Fixed assertions for selected objects assumed to be widgets in GladeDesignLayout. 2011-03-07 17:19:58 +09:00
Daniel Mustieles
25c1aec1be Updated Spanish translation 2011-03-07 19:18:01 +01:00
Yuri Myasoedov
ce231756a8 Updated Russian translation 2011-03-07 17:32:09 +03:00
Christopher Aillon
a50330d59a Rename icon files 'glade-3' -> 'glade'
GNOME Bug 644041
2011-03-06 18:13:24 -08:00
Tristan Van Berkom
a4ed22853e * plugins/gtk+/glade-gtk-grid.c: Fixed Drag/Resize algo to use ints instead
of uints (since grid packing properties are ints).

	* plugins/gtk+/gtk+.xml.in: Fixed unserialized GtkGrid packing property
	  values (bug 643668).
2011-03-06 20:48:57 +09:00
Tristan Van Berkom
aa3188b606 * plugins/gtk+/glade-gtk.c: Fixed dialog warnings to be better translatable
(fixing bug 640937).
2011-03-06 17:47:15 +09:00
Tristan Van Berkom
8d50508b56 * gladeui/glade-editor-property.c: Added a description tooltip about the "Context"
parameter of translatable strings, fixing i18n bug 609872.
2011-03-06 17:36:44 +09:00
Tristan Van Berkom
96f843632e * gladeui/glade-builtins.c: Changed displayable values for extra stock icons
to say "Drag and Drop" instead of "DnD", fixing translator bug 561042.
2011-03-06 17:28:38 +09:00
Tristan Van Berkom
eb6de2a333 * plugins/gtk+/icons/*:
- Cleaned out old deprecated icons
	  - Added new GtkAppChooserDialog, GtkCellRendererSpinner and GtkComboBoxText icons
	    contributed by Florent Thévenet.
2011-03-06 16:42:46 +09:00
Tristan Van Berkom
c84af8733c * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added add-verify-function
to allow treeview columns to be added to treeviews again.
2011-03-06 16:42:09 +09:00
Gabor Kelemen
3e2a2e4517 Updated Hungarian translation 2011-03-05 01:42:20 +01:00
Juan Pablo Ugarte
410a9f32f7 Add ChangeLog entry 2011-03-04 20:52:41 -03:00
Juan Pablo Ugarte
ed87745317 Fixed warning moving glade.h include after pythons. 2011-03-03 01:03:47 -03:00
Craig Keogh
69f0d52563 Migrate from PyGTK to PyGObject introspection-based bindings 2011-03-02 19:49:19 -03:00
Juan Pablo Ugarte
2161845d6a * gladeui/glade-design-layout.c:
o removed double click toplevel maximize feature
  o replaced GDK_FLEUR cursor with GDK_BOTTOM_RIGHT_CORNER for resize action

 * gladeui/glade-design-view.c: make layout_box GTK_ALIGN_START to fix toplevel alignment
2011-03-02 19:44:19 -03:00
Jorge González
10d53d88a6 Updated Spanish translation 2011-03-02 20:40:29 +01:00
Tristan Van Berkom
c338052a9d Bumped required GTK+ version. 2011-03-01 19:58:00 +09:00
Tristan Van Berkom
773ed96a24 * plugins/gtk+/gtk+.xml.in: Added support for GtkAppChooser classes 2011-03-01 19:48:28 +09:00
Tristan Van Berkom
89ff5e2c12 * gladeui/glade-previewer.c: Initialize core library so that plugin types can be previewed. 2011-03-01 19:46:52 +09:00
Daniel Mustieles
cbb9102c28 Updated Spanish translation 2011-03-01 21:21:23 +01:00
Tristan Van Berkom
a7c53b578e * gladeui/glade-property-class.c: When a property is disabled, mark it explicitly
as query=FALSE (avoid the query dialog).
2011-03-01 15:27:22 +09:00
ben
3be0a59305 Update simplified Chinese translation. 2011-03-01 11:37:35 +00:00
Tristan Van Berkom
3419beba3b * gladeui/glade-previewer.c:
Glade previewer main window is now free from uncontrolled pop-up windows.
2011-02-28 20:13:12 +09:00
Tristan Van Berkom
6f3725a2d4 * plugins/gtk+/icons/..: Added GtkSpinner icon contributed by Dolean Samuel. 2011-02-28 18:27:47 +09:00
Tristan Van Berkom
8575981640 * plugins/gtk+/gtk+.xml.in, plugins/gtk+/icons/...: Removed all GtkH/V orientable
subclasses from the palette... reuse icons for base class widgets that are still in the palette.
2011-02-28 18:14:11 +09:00
Tristan Van Berkom
d124a30a68 Fixed compiler warning. 2011-02-28 17:41:38 +09:00
Daniel Mustieles
6c49d3a5f6 Updated Spanish translation 2011-02-25 20:34:23 +01:00
Tristan Van Berkom
54e14cd626 * gladeui/glade-widget.c: Fixed loading of notebook pages with construct-properties
(bug 641590, patch by Craig Keogh).
2011-02-25 15:30:35 +09:00
Tristan Van Berkom
e7ce283fb8 * plugins/gtk+/Makefile.am, plugins/gtk+/glade-gtk-grid.c, plugins/gtk+/gtk+.xml.in:
Added support for GtkGrid.
2011-02-24 15:58:37 +09:00
Tristan Van Berkom
00e676f1d3 * gladeui/glade-placeholder.c: Make placeholders expand by default. 2011-02-24 15:58:37 +09:00
Tristan Van Berkom
186816fd26 * gladeui/glade-editor.c: Optimize window resizing by hiding inner notebook pages
when those pages are not shown
2011-02-24 15:58:37 +09:00
Tristan Van Berkom
a2eb0102b0 * plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-gtk-table.c, plugins/gtk+/Makefile.am:
Split out GtkTable adaptor into glade-gtk-table.c
2011-02-24 15:58:36 +09:00
Jorge González
5d056d716d Updated Spanish translation 2011-02-20 15:20:32 +01:00
Changwoo Ryu
e18a18a9aa Update Korean translation 2011-02-13 06:29:42 +09:00
Kjartan Maraas
939367a187 Add missing file 2011-02-12 13:43:03 +01:00
Kjartan Maraas
0f51074680 Updated Norwegian bokmål translation. 2011-02-12 13:41:19 +01:00
Abduxukur Abdurixit
e038469ab6 Added UG translation 2011-02-11 19:03:04 +01:00
Tristan Van Berkom
6c6f14fe8f Adding missing files from Marco's patch. 2011-02-10 04:07:54 +09:00
Tristan Van Berkom
9de9e61b8a 2010-01-29 Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
* gladeui/Makefile.am:
	  Added new files needed for object separation and updated protocol for the preview feature.

	* gladeui/glade-preview-tokens.h:
	  Stores commom code between glade-preview and glade-previewer.

	* gladeui/glade-preview-tokens.h:
	  Updated protocol. Updated license to LGPL.

	* gladeui/glade-project.c, gladeui/glade-preview.[ch]:
	  Object separation for Glade_preview. Updated license of gladeui/glade-preview.[ch] to LGPL.
	  Updated protocol for glade-previewer.
2011-02-09 16:17:32 +09:00
Tristan Van Berkom
c028fefad6 Removed tab from ChangeLog 2011-02-09 15:35:24 +09:00
Juan Pablo Ugarte
6f157a9a26 * gladeui/glade-design-layout.c:
o Fixed bug #641487 "Selection drawn at incorrect positions"
  o fixed double click layout maximization
  o use gtk_widget_get_preferred_size() in get_preferred_width/height() fixes
    allocation bug related to bug #641487
  o removed unused function on_child_size_allocate()
  o start using GDK_FLEUR as resize grip cursor
2011-02-08 17:00:41 -03:00
Tristan Van Berkom
dcdec3c6b8 Adding missing glade-gtk-marshallers.list file. 2011-02-09 03:10:43 +09:00
Tristan Van Berkom
4ed53c641c Aligned a function prototype. 2011-02-09 03:10:43 +09:00
Daniel Mustieles
4469c9a524 Updated Spanish translation 2011-02-07 19:42:13 +01:00
Fran Diéguez
ff3bbb2bb3 Updated Galician translations 2011-02-06 00:41:14 +01:00
Tristan Van Berkom
015bbf1a1f * gladeui/Makefile.am, gladeui/glade-accumulators.[ch], gladeui/glade-app.c,
gladeui/glade-base-editor.c, gladeui/glade-cell-renderer-icon.c,
	gladeui/glade-editor-property.c, gladeui/glade-project.c, gladeui/glade-property.c,
        gladeui/glade-widget.c, plugins/gtk+/Makefile.am, plugins/gtk+/glade-fixed.c
	Made glade-marshallers.[ch] and glade-accumulators.[ch] private to libgladeui-2.
2011-02-05 18:24:30 +09:00
Tristan Van Berkom
1ec9c74e1b * gladeui/glade-widget.c: Make glade_widget_rebuild() use glade_widget_add/remove
instead of glade_widget_replace().

Conflicts:

	ChangeLog
	gladeui/glade-widget.c
2011-02-05 17:06:21 +09:00
Tristan Van Berkom
d4d742cd3c * plugins/gtk+/gtk+.xml.in: Disabling irrelevant properties for GtkScaleButton
Conflicts:

	ChangeLog
	plugins/gtk+/gtk+.xml.in
2011-02-05 16:32:28 +09:00
Tristan Van Berkom
89442af10b Fixed typo in gtk+.xml.in 2011-02-05 14:21:09 +09:00
Tristan Van Berkom
2d98ddbdfd * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added support for
GtkRecentChooserMenu.
2011-02-05 01:02:20 +09:00
Tristan Van Berkom
65860ef2cf * gladeui/glade-project.c:
o Added notification of row-has-child-toggled when first
	    child is added to a parent or last child removed
	  o Added glade_project_check_reordered() to be called after setting
	    a child property on a widget since this may effect the order of children,
	    if the order changes, then emit the "rows-reordered" treemodel signal.

	* gladeui/glade-widget.c: call glade_project_check_reordered() after applying
	  child properties.

	* gladeui/glade-base-editor.c: Delete child first before adding a replacement
	  when changing a child's type (we cant assume the parent can hold more than
	  one child).
2011-02-04 22:27:54 +09:00
Tristan Van Berkom
3caee656ed Bumping introspection version requirement. 2011-02-04 06:54:11 +09:00
Tristan Van Berkom
b17b3bb647 2011-02-03 Pablo Castellano <pablog@gnome.org>
Make libgladeui-2 library come with introspection data, patch based on original
	patch by Alan Knowles.

	* configure.ac: Added gobject-introspection m4 stuff

	* gladeui/Makefile.am: Added rules to build Gladeui-2.0 gir and typelib

	* gladeui/glade-app.c, gladeui/glade-command.c, gladeui/glade-project.c: Some changes
	  made to pass the introspection build.
2011-02-04 04:19:27 +09:00
Tristan Van Berkom
815363dfa7 * src/glade-window.c: Removed user manual link from Help menu, it's not online
as far as I know and no work was done on it, the current user manual needs work
	  and is just not useful in it's current state.
2011-02-04 03:39:13 +09:00
Tristan Van Berkom
b1ec0a7b21 2011-02-03 Frederic Peters <fpeters@0d.be>
* src/glade-window.c: Put File->Properties before Quit in the File menu
2011-02-04 03:23:10 +09:00
Tristan Van Berkom
e30f6ebff2 * plugins/gtk+/gtk+.xml.in: Dont sync transient-for property on GtkWindow, this
can cause crashes at project destroy time.
2011-02-04 00:17:28 +09:00
Tristan Van Berkom
4253ad61ae * gladeui/glade-project.c: Notify "path" changes when loading new project
* src/glade-window.c: Refresh window title when project path changes.
2011-02-04 00:16:39 +09:00
Tristan Van Berkom
e05916c1f0 * gladeui/glade-editor.c: Make reset/docs buttons insensitive by default. 2011-02-03 23:41:33 +09:00
Tristan Van Berkom
2cacedcccb * gladeui/glade-editor-property.c, gladeui/glade-property-class.c,
gladeui/glade-widget-adaptor.c: Added support for GdkRGBA properties

	* gladeui/glade-property.c: When loading properties, set the enabled flag at load time before
	  syncing the property instead of after (so that backends can sync the property in the UI).

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Add notion of GdkRGBA properties to
	GtkColorButton adaptor (so that the workspace driven dialog can also set rgba properties), and
	make rgba properties optional and disabled by default.
2011-02-03 23:22:51 +09:00
Tristan Van Berkom
71c262e33a * plugins/gtk+/glade-attributes.c, plugins/gtk+/glade-gtk.c:
Add support for editing the PangoFontDesctiption in GtkLabel attributes (GtkBuilder
	has supported this ever since supporting <attributes>, only just adding a GtkFontSelectionDialog
	to do this from Glade now.
2011-02-03 20:43:30 +09:00
Tristan Van Berkom
aed6a4739a Aligning Juan Pablo's ChangeLog entries 2011-02-03 19:15:03 +09:00
Chao-Hsiung Liao
4bfb281459 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2011-02-03 14:28:38 +08:00
Juan Pablo Ugarte
c2c091a665 * gladeui/glade-project.[ch]: added accessor for toplevel list
* gladeui/glade-design-view.c: pack toplevel widgets in GladeProject toplevels list order.

  * gladeui/glade-property.c: added special case for parentless widget properties
    on glade_property_set_value_impl() to show and hide new and old values.

  * gladeui/glade-editor-property.c: removed glade_widget_hide() call on
    glade_eprop_object_show_dialog() since now its handled on GladeProperty
2011-02-02 20:45:50 -03:00
Juan Pablo Ugarte
8b3317919c * gladeui/glade-design-layout.c:
allocate all the remaining space to child, this fixes some allocation issues
    on widget where gtk_widget_get_preferred_height() value is different than
    the one returned by gtk_widget_get_preferred_size()

  * gladeui/glade-design-view.c: set layout halign property to GTK_ALIGN_START
2011-02-02 19:12:43 -03:00
Kjartan Maraas
e859f9de43 Updated Norwegian bokmål translation. 2011-02-02 21:09:56 +01:00
Daniel Mustieles
af81def94c Updated Spanish translation 2011-02-02 19:38:06 +01:00
Juan Pablo Ugarte
172e99673b * gladeui/glade-design-layout.c:
o do not allocate width for the toplevel name.
    o draw toplevel name with a fade at the end if it does not fit.
2011-02-01 20:03:07 -03:00
Tristan Van Berkom
121840b608 * configure.ac, NEWS:
* gladuei/glade-design-private.h, gladeui/glade-design-layout.[ch],
	gladeui/glade-design-view.[ch]: Relicensed LGPL, Juan Pablo Ugarte, Vincent Geddes and I
	are the only Copyright holders for these files and I have thier consent to relicense
	these files LGPL.

	* gladeui/glade-debug.c: Avoid showing an unavoidable warning regarding
	  gdk_window_set_composited().
2011-02-01 19:56:07 +09:00
Tristan Van Berkom
04bc8aaf65 * gladuei/glade-design-private.h, gladeui/glade-design-layout.[ch],
gladeui/glade-design-view.[ch]: Relicensed LGPL, Juan Pablo Ugarte, Vincent Geddes and I
	are the only Copyright holders for these files and I have thier consent to relicense
	these files LGPL.
2011-02-01 19:10:05 +09:00
Tristan Van Berkom
3fedbd2f42 Fixed random spaces in ChangeLog 2011-02-01 19:05:23 +09:00
Fran Diéguez
4e9558a74e Updated Galician translations 2011-02-01 01:20:22 +01:00
Juan Pablo Ugarte
9459d6e826 Added Changelog entry for multiple-toplevels branch merge 2011-01-31 19:38:20 -03:00
Juan Pablo Ugarte
25d476f111 Merge branch 'multiple-toplevels' 2011-01-31 19:35:14 -03:00
Juan Pablo Ugarte
4d271ff317 * gladeui/glade-design-view.c: unified if statements in glade_design_view_selection_changed() 2011-01-31 18:31:13 -03:00
Juan Pablo Ugarte
38d12938b2 * gladeui/glade-design-layout.c:
o implemented get_preferred_width_for_height() and get_preferred_width_for_height()
      to fix allocation problem
    o check if toplevel has a child selected before selecting it itself on button press
    o dont draw selection if widget has no allocation

  * gladeui/glade-design-view.c:
    o delegate scrolling to size-allocate if toplevel layout has no allocation
      Fixes scrolling while creating a new widget from the palette.
    o also add widgets on visibility change
2011-01-31 18:22:24 -03:00
Juan Pablo Ugarte
0f48965b59 * gladeui/glade-design-view.[ch]:
o removed glade_design_view_get_layout() declaration
    o removed gladeui/glade-design-layout.h include
    o implemented _glade_design_view_freeze/thaw()
    o handle widget adding and removal on project's add-widget and remove-widget signals
    o use widget-visibility-changed to remove toplevel from project when its hidden

  * gladeui/glade-design-layout.[ch]:
    o added design-view construct only property
    o use _glade_design_view_freeze/thaw() to avoid scrolling to selection from
      the layout.
    o removed unused _glade_design_layout_should_scroll()

  * gladeui/glade-design-private.h: added new file to declare private API.
2011-01-31 14:11:21 -03:00
Jorge González
59b67558af Updated Spanish translation 2011-01-31 13:49:16 -03:00
Jorge González
e11251119a Updated Spanish translation 2011-01-30 12:57:24 +01:00
Juan Pablo Ugarte
ce14a736d9 * gladeui/glade-app.c: replaced GladeDesignLayout API with the new private one
* gladeui/glade-design-layout.[ch]:
    o added widget maximization on label double click
    o fixed size allocation to be able to maximize widget without making the viewport
      scrollbars appear
    o removed glade_design_layout_selection_set()

  * gladeui/glade-design-view.c:
    o improved viewport scrolling to selected toplevel, now we only scroll if
      the selection was not triggered by the layout.
    o replaced on_project_add_widget() on_project_remove_widget() with new project
      signal widget-visibility-changed

  * gladeui/glade-project.[ch]:
    o added GladeProject::widget-visibility-changed signal
    o added glade_project_widget_visibility_changed() function

  * gladeui/glade-widget.c:
    o added visible property.
    o use glade_project_widget_visibility_changed() to emit signal on widget visibility change

  * gladeui/glade.h: removed glade-design-layout.h since now its private

  * gladeui/Makefile.am: do not install private header glade-design-layout.h

  * plugins/gtk+/Makefile.am: do not install headers
2011-01-29 21:41:04 -03:00
Juan Pablo Ugarte
887b3827f5 * gladeui/glade-design-view.c: added a label at the end of the layout box to allow the last layout to resize 2011-01-29 21:41:04 -03:00
Tristan Van Berkom
f671a7ea1b Removed debug print. 2011-01-29 21:41:04 -03:00
Tristan Van Berkom
caf94be4e7 * src/main.c, src/glade-window.c: Make Glade use GtkApplication, now Glade is
a single instance app.

	* data/icons/Makefile.am, data/desktop.in.in: Rename the 'glade-3' icon to 'glade'
2011-01-29 21:41:04 -03:00
Tristan Van Berkom
195d07ece2 Marking GtkOffscreenWindow since="2.20" 2011-01-29 21:41:04 -03:00
Tristan Van Berkom
36037ad788 * plugins/gtk+/gtk+.xml.in: Add support for editing GtkOffscreenWindow, tricked
this out by just using the "parent" xml attribute and deriving GtkWindow and
	  disabling all the irrelevant GtkWindow properties.
2011-01-29 21:41:04 -03:00
Tristan Van Berkom
d0b808076b * plugins/gtk+/glade-model-data.c: Avoid committing the data if the data did not
change... committing the data when there is no change can cause the editor to
	  load itself, this editor does not deal with that well. Fixes crasher bug 622839.
2011-01-29 21:41:04 -03:00
Daniel Mustieles
272bf3dd7d Updated Spanish translation 2011-01-29 21:41:04 -03:00
Tristan Van Berkom
1167ed50a4 * gladeui/glade-xml-utils.h, gladeui/glade-widget-adaptor.[ch], gladeui/glade-widget.[ch]:
Added <add-child-verify-function> semantics to query the plugin if it's ok to add
	  a said "child" to an adaptors widget "parent" and warn the user about it in context.

	* gladeui/glade-project.c: Check glade_widget_add_verify() when pasting widgets

	* gladeui/glade-command.c: Check glade_widget_add_verify() from glade_command_create()

	* gladeui/glade-popup.c: Allow "Add widget here" action to appear for any project object
	  and rely on glade_command_create() to warn the user via glade_widget_add_verify() if
	  adding the widget fails.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added <add-child-verify-function> support to
	GtkContainer, GtkMenuShell, GtkMenuItem, GtkToolBar, GtkToolItem, GtkToolPalette, GtkToolItemGroup,
	GtkActionGroup, GtkTextTagTable adaptors.
2011-01-29 21:41:04 -03:00
Tristan Van Berkom
db37aa5020 * plugins/gtk+/gtk+.xml.in: Added GtkRecentManager to the palette. 2011-01-29 21:41:04 -03:00
Tristan Van Berkom
944c3b5795 added glade-string-list.c to POTFILES.in 2011-01-29 21:41:04 -03:00
Tristan Van Berkom
e6ce7e5cff * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added support to GtkFileFilter
for reading and writing the new <mime-types> and <patterns> tags
	  that are recently added to GtkFileFilter's GtkBuildable implementation.
2011-01-29 21:41:04 -03:00
Tristan Van Berkom
b5a9bd914f Fixed typo on saved <aplication> tags. 2011-01-29 21:41:03 -03:00
Tristan Van Berkom
342e4b643f * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added support for GtkRecentFilter
as well as reading and writing the new <mime-types> <patterns> and <applications> tags
	  that are recently added to GtkRecentFilter's GtkBuildable implementation.
2011-01-29 21:41:03 -03:00
Fran Diéguez
0cd7312b65 QA of Galician translations 2011-01-29 21:41:03 -03:00
Tristan Van Berkom
68882b2e18 Removed debug print. 2011-01-29 23:52:21 +09:00
Tristan Van Berkom
3d55aa8f54 * src/main.c, src/glade-window.c: Make Glade use GtkApplication, now Glade is
a single instance app.

	* data/icons/Makefile.am, data/desktop.in.in: Rename the 'glade-3' icon to 'glade'
2011-01-29 21:58:42 +09:00
Tristan Van Berkom
53f9cdf1e7 Marking GtkOffscreenWindow since="2.20" 2011-01-29 19:38:34 +09:00
Tristan Van Berkom
b8bb26d76d * plugins/gtk+/gtk+.xml.in: Add support for editing GtkOffscreenWindow, tricked
this out by just using the "parent" xml attribute and deriving GtkWindow and
	  disabling all the irrelevant GtkWindow properties.
2011-01-29 19:36:20 +09:00
Tristan Van Berkom
1bb44a3cc8 * plugins/gtk+/glade-model-data.c: Avoid committing the data if the data did not
change... committing the data when there is no change can cause the editor to
	  load itself, this editor does not deal with that well. Fixes crasher bug 622839.
2011-01-29 19:07:20 +09:00
Daniel Mustieles
67384a5ddd Updated Spanish translation 2011-01-28 19:51:37 +01:00
Tristan Van Berkom
379eb29560 * gladeui/glade-xml-utils.h, gladeui/glade-widget-adaptor.[ch], gladeui/glade-widget.[ch]:
Added <add-child-verify-function> semantics to query the plugin if it's ok to add
	  a said "child" to an adaptors widget "parent" and warn the user about it in context.

	* gladeui/glade-project.c: Check glade_widget_add_verify() when pasting widgets

	* gladeui/glade-command.c: Check glade_widget_add_verify() from glade_command_create()

	* gladeui/glade-popup.c: Allow "Add widget here" action to appear for any project object
	  and rely on glade_command_create() to warn the user via glade_widget_add_verify() if
	  adding the widget fails.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added <add-child-verify-function> support to
	GtkContainer, GtkMenuShell, GtkMenuItem, GtkToolBar, GtkToolItem, GtkToolPalette, GtkToolItemGroup,
	GtkActionGroup, GtkTextTagTable adaptors.
2011-01-28 18:16:06 +09:00
Tristan Van Berkom
37e2321596 * plugins/gtk+/gtk+.xml.in: Added GtkRecentManager to the palette. 2011-01-28 01:09:20 +09:00
Tristan Van Berkom
35bc61bccf added glade-string-list.c to POTFILES.in 2011-01-27 23:14:20 +09:00
Tristan Van Berkom
88e6033117 * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added support to GtkFileFilter
for reading and writing the new <mime-types> and <patterns> tags
	  that are recently added to GtkFileFilter's GtkBuildable implementation.
2011-01-27 23:13:40 +09:00
Tristan Van Berkom
c2136373a1 Fixed typo on saved <aplication> tags. 2011-01-27 17:16:11 +09:00
Tristan Van Berkom
b997768168 * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added support for GtkRecentFilter
as well as reading and writing the new <mime-types> <patterns> and <applications> tags
	  that are recently added to GtkRecentFilter's GtkBuildable implementation.
2011-01-27 17:10:17 +09:00
Fran Diéguez
401771de79 QA of Galician translations 2011-01-27 00:35:18 +01:00
Juan Pablo Ugarte
11df99d928 * gladeui/glade-design-view.c:
o draw viewport bg using base colors from style
    o set Layout box border width and spacing

  * gladeui/glade-design-layout.c:
    o removed padding (now set on parent)
    o added PangoLayout to draw widget name
    o added space needed for widget name in glade_design_layout_get_preferred_height ()
    o glade_design_layout_size_allocate() allocate enough space for widget name
    o moved widget name to south east and used as resize grip
    o update widget name on GladeWidget::notify:name
2011-01-26 19:51:14 -03:00
Kjartan Maraas
19661c1d6e Updated Norwegian bokmål translation. 2011-01-26 19:51:14 -03:00
Tristan Van Berkom
a111a56aea * gladeui/glade-popup.c: Fixed property popup to not show DevHelp link when the property
is a virtual one.
2011-01-26 19:51:14 -03:00
Tristan Van Berkom
9c947d16a0 * plugins/gtk+/Makefile.am, plugins/gtk+/glade-string-list.[ch]: Added Boxed type
and GladeEditorProperty to manage/edit a list of strings that can be translatable.
	  This property editor uses a treeview and supports reordering of rows with Drag'n'Drop
	  as well as deletion of rows using the 'Delete' key. Every row can have individual
	  i18n information set via the common i18n dialog.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Add GtkComboBoxText support
	  to Glade and use the GladeStringList boxed type to edit the list of translatable
	  items.
2011-01-26 19:51:14 -03:00
Tristan Van Berkom
305790892a * plugins/gtk+/glade-attributes.c: Relicensing to LGPL. 2011-01-26 19:51:14 -03:00
Kjartan Maraas
823913512e Updated Norwegian bokmål translation. 2011-01-26 15:46:09 +01:00
Tristan Van Berkom
fbb9d935f0 * gladeui/glade-popup.c: Fixed property popup to not show DevHelp link when the property
is a virtual one.
2011-01-26 22:30:31 +09:00
Tristan Van Berkom
e086ae995c * plugins/gtk+/Makefile.am, plugins/gtk+/glade-string-list.[ch]: Added Boxed type
and GladeEditorProperty to manage/edit a list of strings that can be translatable.
	  This property editor uses a treeview and supports reordering of rows with Drag'n'Drop
	  as well as deletion of rows using the 'Delete' key. Every row can have individual
	  i18n information set via the common i18n dialog.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Add GtkComboBoxText support
	  to Glade and use the GladeStringList boxed type to edit the list of translatable
	  items.
2011-01-26 21:28:20 +09:00
Tristan Van Berkom
5dbbd4ebd3 * plugins/gtk+/glade-attributes.c: Relicensing to LGPL. 2011-01-26 16:24:55 +09:00
Juan Pablo Ugarte
b7285e8ac5 * gladeui/glade-design-view.c:
o added a GtkVBox intead of a GladeDesignLayout to pack multiple layout/toplevels
    o add/remove widgets from layout on GladeProject add-widget and remove-widget signals

  * gladeui/glade-design-layout.c: draw widget name next to layout frame.

  * gladeui/glade-widget.c: comented code in glade_widget_hide() that was crashing because
    glade_design_view_get_layout() always returns NULL in this hack.
2011-01-25 22:17:34 -03:00
Juan Pablo Ugarte
77009374c7 Merge branch 'offscreen-design-layout'
* gladeui/glade-design-layout.[ch]:
    o Made GladeDesignLayout an offscreen container, all its children are redirected offscreen
      and composited later on. This allow us drawing "pretty" selections over widgets.
    o added new function derived from glade_design_layout_widget_event(),
      glade_design_layout_do_event() to marshal events from the override class handler
    o added glade_design_layout_selection_set()
    o reworked cursors pointer in an array to ease setting them.
    o replaced glade_design_layout_get_pointer_region () with gdl_get_activity_from_pointer()
    o removed call to gtk_widget_size_allocate() in glade_design_layout_update_child()
      fixes rendering glith while resizing

  * gladeui/glade-design-view.c: set layout selection on project's selection-changed signal

  * gladeui/glade-app.[ch]:
    o added glade_app_do_event()
    o set custom gdk event handler to marshal event to GladeDesignLayouts using
      glade_design_layout_do_event()

  * gladeui/glade-utils.[ch]: removed unused function glade_util_draw_selection_nodes()

  * gladeui/glade-widget.[ch]:
    o moved IS_GLADE_WIDGET_EVENT macro to header.
    o replaced glade_widget_connect_signal_handlers() with glade_widget_add_events()
2011-01-25 16:32:36 -03:00
Juan Pablo Ugarte
ffad8433f2 * ChangeLog: added entry for offscreen-design-layout branch merge to master 2011-01-25 16:28:24 -03:00
Juan Pablo Ugarte
a39e9c43f1 * gladeui/glade-design-layout.c:
o replaced cairo_clip()/cairo_paint_with_alpha() with cairo_fill()
  o added alpha to the gradient using color_stop_rgba() to make it more noticeable
2011-01-24 23:57:06 -03:00
Juan Pablo Ugarte
f17eaf5355 * gladeui/glade-widget.c: fixed D&D regression by adding motion and button events to every runtime widget 2011-01-24 21:59:16 -03:00
Tristan Van Berkom
37f2be71b4 * 41 files: Fixed typo in LGPL License file headers. 2011-01-24 21:34:33 -03:00
Tristan Van Berkom
d12980f489 * 41 files: Fixed typo in LGPL License file headers. 2011-01-24 17:36:13 +09:00
Juan Pablo Ugarte
327afcdaf7 * gladeui/glade-design-layout.c: removed unused signals enum and ACTIVITY_STR macro 2011-01-23 13:50:45 +09:00
Juan Pablo Ugarte
4cb610244a 2011-01-22 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* gladeui/glade-design-layout.[ch]:
    o added glade_design_layout_selection_set() (removed project dependency)
    o removed PointerRegion enum
    o reworked cursors pointer in an array to ease seting them
    o reemplazed glade_design_layout_get_pointer_region () with gdl_get_activity_from_pointer()
    o removed call to gtk_widget_size_allocate() in glade_design_layout_update_child()
      fixes rendering glith while resizing
    o precompute child offset to optimize from-embeder to-embeder handlers
    o draw "pretty" selection

  * gladeui/glade-design-view.c: set layout selection on project's selection-changed signal

  * gladeui/glade-app.[ch]:
    o added glade_app_do_event()
    o set custom gdk event handler to marshal event to GladeDesignLayouts using
      glade_design_layout_do_event()

  * gladeui/glade-utils.[ch]: removed unused function glade_util_draw_selection_nodes()

  * gladeui/glade-widget-adaptor.c: removed g_signal_override_class_handler() event marshalling hack.
2011-01-23 13:50:44 +09:00
Juan Pablo Ugarte
c473e3179b Experimental offscreen GladeDesignLayout 2011-01-23 13:50:44 +09:00
Juan Pablo Ugarte
93195df182 2011-01-13 Juan Pablo Ugarte <juanpablougarte@gmail.com>
* gladeui/glade-widget-adaptor.c: added GtkWidget::event signal clash override
    for every registered class to marshal events to the corresponding GladeDesignLayout

  * gladeui/glade-design-layout.[ch]:
    o added new function derived from glade_design_layout_widget_event(),
      glade_design_layout_do_event() to marshall events from the override class handler
    o removed placeholder from glade_design_layout_find_inside_container()

  * gladeui/glade-widget.[ch]: moved IS_GLADE_WIDGET_EVENT macro to header.
2011-01-23 13:50:44 +09:00
Juan Pablo Ugarte
ebd9b9a5c2 Experimental offscreen GladeDesignLayout 2011-01-23 13:50:44 +09:00
Jorge González
a5112f84b0 Updated Spanish translation 2011-01-22 16:08:34 +01:00
Jorge González
8ab3bde5ad Updated Spanish translation 2011-01-22 16:07:29 +01:00
Gabor Kelemen
89a51adcc9 Change "Emotes" to "Emoticons" 2011-01-22 15:31:07 +01:00
Tristan Van Berkom
026182df58 * gladeui/glade-project.[ch], src/glade-window.c: Edit->Preferences becomes File->Properties
along with some internal renames (closes bug 609485).
2011-01-22 18:15:37 +09:00
Tristan Van Berkom
05191e1c37 * gladeui/glade-command.[ch]: Removed glade_command_set_naming_policy().
* gladeui/glade-project.[ch]: Removed naming policy, object ids are always unique.

	* gladeui/glade-editor-property.c, glade-property-class.[ch], gladeui/glade-property.c,
	gladeui/glade-signal-editor.c, gladeui/glade-utils.[ch], gladeui/glade-widget.c,
	gladeui/glade-xml-utils.h, plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-icon-sources.c,
	plugins/gtk+/glade-model-data.c: Removed 'widget' argument from
	glade_property_class_make_gvalue_from_string() and from glade_utils_value_from_string() since
	you never need a common ancestor to search a widget by name anymore.
2011-01-22 17:51:31 +09:00
Tristan Van Berkom
eb93a39278 * gladeui/glade-base-editor.c: Fixed many memory leaks in this rusty code, fixed nasty
bug where type_edited() was using the wrong enum to fetch the current type name, fixed
	  to make "Add Item" button always add items to the root.
2011-01-22 00:54:23 +09:00
Johannes Schmid
a21da01479 gladeui: Finish up anjuta/glade dnd integration 2011-01-21 16:27:39 +01:00
Tristan Van Berkom
21707f0d6c * gladeui/glade-palette.c: Dont strdup the adaptor names in the local hash table (those
strings are constant data, no need to dup them).
2011-01-21 17:49:48 +09:00
Daniel Mustieles
60d62a89e1 Updated Spanish translation 2011-01-19 20:29:22 +01:00
Leandro Regueiro
6478f44c4c Updated Galician translations 2011-01-19 15:43:48 +01:00
Tristan Van Berkom
3f7fb76d41 * gladeui/glade-editor-property.c, gladeui/glade-widget-adaptor.c: Pluggin more memory leaks. 2011-01-19 01:36:19 +09:00
Tristan Van Berkom
4c5ed91044 * plugins/gtk+/gtk+.xml.in: Remove GtkTreeSelection from the palette, it's only available
as the internal selection of a GtkTreeView.
2011-01-19 01:36:19 +09:00
Daniel Mustieles
8ddf4046e2 Updated Spanish translation 2011-01-16 19:38:35 +01:00
Tristan Van Berkom
e9a127ca2c * gladeui/glade-project.c, gladeui/glade-property-class.c, gladeui/glade-widget-adaptor.c,
gladeui/glade-widget.c, plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-model-data.c:
	Plugged more leaks found with valgrind.
2011-01-16 22:54:15 +09:00
Tristan Van Berkom
b48218e001 Fixed typo on last commit. 2011-01-16 22:53:04 +09:00
Tristan Van Berkom
ee9635565e * gladeui/glade-builtins.c: Removed _() annotations for strings that dont need to be
translated.
2011-01-16 22:32:19 +09:00
Tristan Van Berkom
5e61eef754 * gladeui/glade-catalog.c, gladeui/glade-inspector.c, gladeui/glade-property-class.c,
gladeui/glade-utils.c, gladeui/glade-widget-adaptor.c, gladeui/glade-widget.c,
	gladeui/glade-xml-utils.c, plugins/gtk+/glade-gtk.c:
	Plugging leaks found with valgrind.
2011-01-16 19:13:55 +09:00
Tristan Van Berkom
f99c4bd02d * gladeui/glade-project.[ch]:
- Added glade_project_widget_changed() to manually notify a "row-change"
	  - Add property references to the MISC_COLUMN (i.e. "Image Widget of button1" texts).

	* gladeui/glade-widget.c: Notify widget row changes when parentless widget references
	  are added/removed from a widget.
2011-01-16 17:16:55 +09:00
Tristan Van Berkom
861ce243cd * plugins/gtk+/glade-gtk.c: Fixed warnings from glade_gtk_box_get_first_blank() when
project closes.
2011-01-16 17:16:07 +09:00
Emilio Pozuelo Monfort
3cee50bb60 * plugins/gtk+/Makefile.am: Don't install .in files. 2011-01-15 14:34:47 +00:00
Johannes Schmid
74f4e56cda 2011-01-15 Johannes Schmid <jhs@gnome.org>
* gladeui/glade-app.c: glade_app_get() should always return
        the single instance and create it if necessary

        * gladeui/glade-editor.[ch]: Remove glade_editor_set_signal_editor()
2011-01-15 13:31:07 +01:00
Johannes Schmid
1a65539f03 Revert "* gladeui/glade-app.c: glade_app_get() should always return"
This reverts commit 320888504f4290d3a03fbc35307cbfa56d068986.
2011-01-15 13:28:54 +01:00
Johannes Schmid
320888504f * gladeui/glade-app.c: glade_app_get() should always return
the single instance and create it if necessary

* gladeui/glade-editor.[ch]: Add glade_editor_get_signal_editor()
2011-01-15 13:11:46 +01:00
Javier Jardón
d544699f0f Update doap file to glade.doap instead glade3.doap 2011-01-13 23:56:24 +00:00
Javier Jardón
83c6bf9628 configure.ac: the bugzilla product is now glade, not glade3 2011-01-13 23:53:38 +00:00
Yuri Myasoedov
c0aa124dcf Updated Russian translation 2011-01-13 21:24:58 +03:00
Tristan Van Berkom
3674915823 * NEWS, configure.ac: Rolling Glade 3.9.1 2011-01-13 19:41:21 +09:00
Tristan Van Berkom
aa8d005216 * plugins/gtk+/gtk+.xml.in: Readjusted displayable values so they are available
for palette enums.
2011-01-13 19:40:52 +09:00
Tristan Van Berkom
65e58a261a Fixed glade-signal.c return_if_fail() statement. 2011-01-13 19:13:50 +09:00
Tristan Van Berkom
6e9dd6dea1 Added glade-tool-item-group-editor.c to POTFILES.in 2011-01-13 19:13:29 +09:00
Tristan Van Berkom
abb2c223be Removed fixed-bg.xpm from makefile. 2011-01-13 19:09:15 +09:00
Tristan Van Berkom
d7e7d16b9d * plugins/gtk+/glade-attributes.c: Fixed mismatching PangoAttributeType with GType,
closes bug 597045.
2011-01-13 18:37:59 +09:00
Tristan Van Berkom
ffd323a79d * gladeui/glade-signal-model.c: Watch the "support-changed" signal on GladeWidget and
update support warnings on dummy rows as well as emit "row-changed" for all rows

	* gladeui/glade-signal-editor.c: Left align the warning icon and expand the first
	  row of the signal tree when loading a widget.
2011-01-13 18:21:07 +09:00
Tristan Van Berkom
f690d3a8b6 * gladeui/glade-placeholder.c, data/icons/placeholder.png, data/icons/Makefile.am:
Restored the old placeholder pattern that is softer on the eyes than the big
	squares (not to mention about 100 less lines of code).
2011-01-13 02:37:33 +09:00
Tristan Van Berkom
4bf1e173e4 * plugins/gtk+/glade-gtk.c, data/icons/Makefile.am, data/icons/fixed-bg.png,
plugins/gtk+/fixed-bg.xpm: Now draw the GtkFixed/GtkLayout pattern in a "draw"
	signal callback.
2011-01-13 02:25:02 +09:00
Tristan Van Berkom
ad347d832d * gladeui/glade-signal.c: Fire a warning when signal class is not found for signal
read in by glade_signal_read from the xml (this happens because GTK+-3 removes some
	  signals).
2011-01-12 17:54:59 +09:00
Tristan Van Berkom
00a9f55767 * gladeui/glade-widget.c: Fixed access of NULL project at glade_widget_show/hide time. 2011-01-12 17:53:53 +09:00
Tristan Van Berkom
ae0f553721 * gladeui/glade-palette.c: Fixed leaking project (set_project NULL when
palette is disposed fixes it).
2011-01-12 17:53:12 +09:00
Tristan Van Berkom
48ed69dd17 Fixed compiler warning 2011-01-12 17:34:26 +09:00
Tristan Van Berkom
9115a2e3fe Cell alignments in signal editor 2011-01-12 17:34:26 +09:00
Tristan Van Berkom
add9c2b976 Cleanup in GladeProject 2011-01-12 17:34:26 +09:00
Ivar Smolin
f7be0e566d [l10n] Updated Estonian translation 2011-01-11 10:26:09 +02:00
Fran Diéguez
e11a072510 Updated Galician translations 2011-01-10 12:18:27 +01:00
Tristan Van Berkom
7be60d7441 Merge branch 'master' into signal-tree-model
Conflicts:
	ChangeLog
2011-01-10 18:06:38 +09:00
Tristan Van Berkom
5a2aa19bfa * gladeui/glade-signal-editor.c:
- Fixed <click here> column to always show up italic insensitive when
	    no object is selected.
	  - Fixed the <type here> text to come back and not add any signal when
	    the first signal of a type is added with a NULL handler
	  - Fixed devhelp icon visibility to not show when !glade_util_have_devhelp()
2011-01-10 18:04:07 +09:00
Tristan Van Berkom
334e60ee4a Fixed some minor indentation issues. 2011-01-10 18:02:24 +09:00
Tristan Van Berkom
fbb78d8625 * gladeui/glade-signal-model.[ch]:
- Fixed indentation
	  - Relicense as LGPL as Johannes Schmid said that was ok.
2011-01-10 18:02:04 +09:00
Tristan Van Berkom
db4732e826 * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Expose internal GtkTreeSelection
child of GtkTreeView so that "changed" signal can be connected to. Fixes bug 383766.
2011-01-10 15:57:01 +09:00
Tristan Van Berkom
054032caa3 * gladeui/glade-widget.c: Dont set packing properties onto internal widgets. 2011-01-10 15:57:01 +09:00
Daniel Nylander
36e983068d Updated Swedish translation 2011-01-09 23:58:28 +01:00
Johannes Schmid
8b5281f516 gladeui: Reduce signal-model columns, add cell_data_funcs instead
Fixes a lot of drawing glitches in the tree view.
2011-01-09 19:05:48 +01:00
Tristan Van Berkom
be9f4abbaf * src/glade-window.c: Applied patch by Sergio García Lobo to fix bug 487656 and provide
mnemonic key access to "Text beside icons" palette option.
2011-01-10 01:54:22 +09:00
Tristan Van Berkom
e64fdc4395 * src/glade-window.c: Added idle function to raise the undocked windows at startup time,
closes bug 475421.
2011-01-10 01:41:16 +09:00
Tristan Van Berkom
f4eea5a7a6 * gladeui/glade-app.[ch], gladeui/glade-base-editor.c: Removed glade_app_set/get_transient_parent() 2011-01-10 00:20:29 +09:00
Tristan Van Berkom
0db118db42 * src/glade-window.c: Fix possible crash when saving new project. bug 622635, fix
by Martin Schlemmer.
2011-01-09 23:45:13 +09:00
Johannes Schmid
de236c5b72 gladeui: Implemented devhelp column in signal-editor, fixed some bugs. 2011-01-09 14:42:41 +01:00
Johannes Schmid
937a5c800d gladeui: Adapt signal-editor to tristan's wishes
* Handler column: Automatically remove "Type here" when typing starts
* Userdata column: Use object selection dialog and add proper focus handling
2011-01-09 12:54:19 +01:00
Johannes Schmid
8b4729ecf1 gladeui: Reflect in tree model that GladeSignal is an object and use proper refcounting 2011-01-09 12:53:15 +01:00
Johannes Schmid
1c4535d3d0 gladeui: Fix Makefile.am to contain glade-cell-renderer-icon 2011-01-09 12:52:30 +01:00
Johannes Schmid
8a7046af72 Merge branch 'master' into signal-tree-model 2011-01-09 11:30:29 +01:00
Tristan Van Berkom
52330855cb * plugins/gtk+/glade-column-types.c: Fixed crash when user performs Drag'n'Drop of
< enter column here > and no columns are yet added (fixes bug 633943).
2011-01-09 17:25:26 +09:00
Tristan Van Berkom
a48a9f6110 * src/glade-window.c: Fixed use of uninitialized variables in warning messages,
bug 634325, fix by Alex Merry.
2011-01-09 17:18:37 +09:00
Tristan Van Berkom
f8fffc0d53 * plugins/gtk+/gtk+.xml.in: Setting some default HIG values for widgets as per bug 349447. 2011-01-09 16:08:14 +09:00
Tristan Van Berkom
205b71e265 * gladeui/glade-editor.c: Make query dialog come with a "Create" button instead
of an "OK" button, closes bug 503621.
2011-01-09 15:52:17 +09:00
Tristan Van Berkom
8034880fe4 * plugins/gtk+/gtk+.xml.in: Disable the GtkToolButton:menu property. 2011-01-09 15:37:57 +09:00
Tristan Van Berkom
67a2e6941c * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Add support for adding texttags to
texttagtable.
2011-01-09 14:22:57 +09:00
Tristan Van Berkom
d0f0ed0b39 * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added replace-child-function to
gtkmenutoolbutton code (incase the child is rebuilt for construct-only purposes).
2011-01-09 13:55:15 +09:00
Tristan Van Berkom
b8af74614f * plugins/gtk+/gtk+.xml.in:
- Made all GdkColor type properties optional, closes bug 457969
	  - Disabled all the irrelevant "-set" properties of GtkTextTag.
2011-01-09 13:34:52 +09:00
Tristan Van Berkom
233a3b42ae * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Write GtkToolButton menu children
out as "menu" special child type.
2011-01-09 13:14:09 +09:00
Tristan Van Berkom
a696b8a107 * plugins/gtk+/glade-gtk.c: Fixed add/remove parent commands so that they work with
parentless widget references (i.e. you can add a parent to a GtkToolItemGroup's label widget
	or a GtkButton's image widget, or remove the parent of a child of a label-widget, etc).
2011-01-09 11:41:38 +09:00
Tristan Van Berkom
41afdceb4e * gladeui/glade-command.[ch]: Exposed glade_command_add() internal command so that
plugins can create command groups that play with adding/removing widgets inline without
	creating copies of them.
2011-01-09 11:40:12 +09:00
Tristan Van Berkom
bde5a3d169 * plugins/gtk+/gtk+.xml.in: Added translatable/multiline to entry tooltip properties 2011-01-09 10:42:50 +09:00
Tristan Van Berkom
dab5c2386d * plugins/gtk+/glade-gtk.c: Fixed loaded state of toolitemgroup custom label widget. 2011-01-09 10:42:50 +09:00
Tristan Van Berkom
60bc9cff1a * gladeui/glade-project.c: Fixed the project to maintain the loading flag until
parse-finished is fired (so that it can be checked when setting the final object
	properties).
2011-01-09 10:42:50 +09:00
Tristan Van Berkom
c51357ec48 * gladeui/glade-design-layout.c: Fixed to not hide widgets when removing
them from the layout (no longer needed trickery for the toplevel, makes parentless
	widget property references work properly).
2011-01-09 10:42:50 +09:00
Fran Diéguez
c228ce0a96 Updated Galician translations 2011-01-09 00:28:05 +01:00
Tristan Van Berkom
dbaf6efb44 Hide any parentless widgets before assigning them as a property. 2011-01-09 00:20:26 +09:00
Tristan Van Berkom
9b36d1c040 * plugins/Makefile.am, plugins/glade-tool-item-group-editor.[ch], plugins/gtk+.xml.in,
plugins/glade-gtk.c: Added support for editing GtkToolPalette.
2011-01-09 00:18:23 +09:00
Tristan Van Berkom
e220d6f001 Fixed toolbutton editor to not block signals twice. 2011-01-09 00:18:06 +09:00
Tristan Van Berkom
0b39338e4d * gladeui/glade-command.c: Ensure that menus can be added to menutoolbuttons. 2011-01-09 00:14:35 +09:00
Tristan Van Berkom
3e30404173 * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Made GtkToolBar:icon-size an
optional property to discourage its use and gave it similar treatment as the
	toolbar-style property.
2011-01-08 19:34:04 +09:00
Tristan Van Berkom
d9e7374a24 * plugins/gtk+/gtk+.xml.in: Made plugin target from 2.20, 2.22, 2.24 and 3.0, updated
new properties and signals introduced with 3.0.
2011-01-08 19:11:58 +09:00
Tristan Van Berkom
841de95159 * gladeui/glade-builtins.c: Fixed redundant registering of displayable values for
stock items.
2011-01-08 17:45:33 +09:00
Tristan Van Berkom
e37b0289be * gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-project.c,
gladeui/glade-popup.c, gladeui/glade-placeholder.c: Removed global selection list
	from glade-utils, selection can only be placed on widgets and only be controlled
	by their owning project.
2011-01-08 17:16:17 +09:00
Tristan Van Berkom
b7456a23e1 * gladeui/glade-utils.[ch]: Some cleanup in glade-utils, removed lots of obsolete stuff. 2011-01-08 16:49:33 +09:00
Tristan Van Berkom
6737be898c * gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-builtins.c,
gladeui/glade-widget-adaptor.c, gladeui/glade-editor-property.c:
	Removed glade_util_class_implements_interface() in favor of g_type_is_a() (closes bug 455734).
2011-01-08 16:26:17 +09:00
Emilio Pozuelo Monfort
583ecb3c3f * configure.ac: Bump the minimum GTK+ version to 2.99.0. 2011-01-07 18:25:07 +00:00
Johannes Schmid
148255f0ef glade_signal_model: Simplify model with new GladeSignal features 2011-01-07 19:23:13 +01:00
Emilio Pozuelo Monfort
1e7296d779 * configure.ac: Remove "GTK+ version" from the summary, we always build against GTK+ 3 now. 2011-01-07 18:14:59 +00:00
Johannes Schmid
dab54af2ba glade-signal-editor: Adapt to GladeSignal changes 2011-01-07 19:02:28 +01:00
Johannes Schmid
df26b54192 glade-signal: Take a GladeSignalClass pointer into GladeSignal 2011-01-07 18:49:39 +01:00
Tristan Van Berkom
31cc1165e7 * gladeui/glade-editable.[ch], plugins/gtk+/.. [ All GladeEditable editors ].
GladeEditable now watches the project for changes and updates itself by way
	of the base class implementation (and is fixed for removed widgets that no
	longer have a project pointer available), also glade_editable_block/unblock()
	is added for implementations to avoid firing implicit loads while executing
	commands... all custom editors updated to lose much code.
2011-01-07 22:49:44 +09:00
Tristan Van Berkom
e1fd5a3d40 * plugins/gtk+/glade-gtk.c: Added accelerator and tooltip-text properties
to menu items and toolitems in the menu editor (fixes bug 510083).
2011-01-07 22:49:43 +09:00
Emilio Pozuelo Monfort
d88079b0fe * data/glade.desktop.in.in: Execute 'glade' since that's the name of the binary now. 2011-01-07 12:12:53 +00:00
Tristan Van Berkom
1d9c699bf8 * plugins/gtk+/glade-model-data.c: Removed sequential editing mode, avoid
crashers when focus/start-editing next cell.
2011-01-07 21:01:44 +09:00
Johannes Schmid
097de9b14d glade-signal-editor: Adapt to tristan's UI wishes 2011-01-07 12:56:06 +01:00
Johannes Schmid
a654ad9307 glade-signal(-class): Const fixes 2011-01-07 12:55:49 +01:00
Johannes Schmid
25ee5894ca glade-widget: Fixed signal types to use GObject and emission of signal_changed() 2011-01-07 12:55:27 +01:00
Tristan Van Berkom
528a0975c7 * gladeui/glade-inspector.c: Updated to use GtkStyleContext to set the italic &
insensitive color for the < search widgets > entry.
2011-01-07 19:04:01 +09:00
Fran Diéguez
b9ca7797e2 Updated galician translations 2011-01-07 00:31:03 +01:00
Johannes Schmid
e3221753b4 Merge branch 'master' into signal-tree-model 2011-01-06 14:48:01 +01:00
Johannes Schmid
eaa7e30690 gladeui: Adapter to GladeSignal GObjectification 2011-01-06 12:58:31 +01:00
Tristan Van Berkom
6dcbf9449d * gladeui/glade-signal.c: Fixed glade_signal_load() careless mistake after GObjectifying. 2011-01-06 20:50:49 +09:00
Johannes Schmid
618f2aa850 Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/glade-app.h
	gladeui/glade-signal-editor.c
	gladeui/glade-signal.h
	gladeui/glade-widget.c
2011-01-06 12:49:12 +01:00
Daniel Mustieles
3eb7bea305 Updated Spanish translation 2011-01-06 10:57:28 +01:00
Tristan Van Berkom
9f71b0a133 * NEWS: Rolling Glade 3.9.0 2011-01-06 18:37:43 +09:00
Tristan Van Berkom
ce44024123 * po/POTFILES.in: Updated for GladeFixed changing place and for addition of glade-signal-class.c 2011-01-06 18:08:08 +09:00
Tristan Van Berkom
b989909dbd * gladeui/Makefile.am: Added glade-signal-class.h to installed headers. 2011-01-06 17:54:55 +09:00
Tristan Van Berkom
129bfdbaf7 * docs/gladeui.types: Removed GladeFixed and added GladeSignal. 2011-01-06 17:54:08 +09:00
Tristan Van Berkom
68dcb28b6c * gladeui/glade-project.[ch]: Removed "previewable" flag/property, now as a GladeWidgetAction
of the GtkWidget adaptor this is unneeded and unused.
2011-01-06 17:53:36 +09:00
Tristan Van Berkom
263af359bb * gladeui/glade-app.c: Changed session file glade-3.conf -> glade.conf so that session
files dont overlap with parallel installed 3.8.x
2011-01-06 17:46:19 +09:00
Tristan Van Berkom
d23b562259 * gladeui/glade-palette.c: Removing the "root" create button, thats now accounted for
by the palette's context menu.
2011-01-06 17:45:24 +09:00
Tristan Van Berkom
fc47ae2d04 * src/glade-window.c: Added one palette per project, setting the palette's project
requires that every item update itself for the support for the project target version,
	this was causing notebook page switches between projects to be very slow (actually
	costing an entire second), with one palette for each project the project switch
	is drastically improved.
2011-01-06 17:25:50 +09:00
Tristan Van Berkom
53c3782c8b Minor code cleanup in glade-widget.c (use gtk_widget_get_ancestor instead
of looping).
2011-01-06 16:54:35 +09:00
Tristan Van Berkom
e268e9b037 * gladeui/glade-project.c: Show selected widget when selection changes and
Cancel any queued selection from glade_project_selection_changed.
2011-01-06 16:54:04 +09:00
Tristan Van Berkom
d475acac6f Fixed some code alignment. 2011-01-06 16:49:37 +09:00
Tristan Van Berkom
801e51f5c8 * gladeui/glade-editor.c: Optimized GladeEditor
Now GladeEditor instead of removing/adding the cached page for
	a said widget class will simply show/hide it (except for packing
	pages which are generated always on the fly), keeping them all
	in a vbox widget and using show/hide improves time to selection
	change.

	Also release all cached pages in ->dispose() (which was leeking) and
	ensure the class field always gets the same height.
2011-01-06 16:49:05 +09:00
Tristan Van Berkom
ccebf11529 Made newly added widgets get selection immediately
queued selection changes only happen with undo/redo.
2011-01-06 16:44:03 +09:00
Tristan Van Berkom
81db1aa19c * gladeui/glade-signal.[ch], gladeui/glade-signal-editor.c, gladeui/glade-command.c,
gladeui/glade-widget.c: Made GladeSignal a GObject.
2011-01-05 23:17:00 +09:00
Johannes Schmid
145fc77157 gladeui: Fixed coding style 2011-01-05 13:03:04 +01:00
Johannes Schmid
c0c8184fe3 gladeui: Implement version warning and tooltips in signal-model 2011-01-05 12:41:13 +01:00
Tristan Van Berkom
323e0ba9aa * gladeui/glade-editor.c: Make the editor notebook scrollable. 2011-01-05 20:38:13 +09:00
Johannes Schmid
e00304af2c gladeui: Fix changes due to member sealing 2011-01-05 11:13:56 +01:00
Tristan Van Berkom
0a0462212d * gladeui/glade-app.h, gladeui/glade-base-editor.h, gladeui/glade-catalog.h,
gladeui/glade-design-layout.h, gladeui/glade-design-view.h, gladeui/glade-editable.h,
	gladeui/glade-editor-property.h, gladeui/glade-named-icon-chooser-dialog.h,
	gladeui/glade-project.h: Aligning some indentation in headers, adding padding
	to core object classes for possible future expansion.

	Glade core api now officially sealed and ABI stable.
2011-01-05 18:53:24 +09:00
Tristan Van Berkom
0b47674c65 * gladeui/glade-widget-action.[ch], gladeui/glade-widget-adaptor.c, gladeui/glade-widget.[ch],
gladeui/glade-popup.c, plugins/gtk+/glade-gtk.c, src/glade-window.c:
	- Privatized members of GladeWidgetAction
	- Created glade_widget_action_class_new() and some accessors for better code in
	  the adaptor
	- GWActionClass is now on the slice allocator
	- Added glade_widget_action_set/get_visible()
	- Removed glade_widget_remove[_pack]_action()
	- Plugin makes actions invisible instead of removing them
	- Everything updated for new sealed api
2011-01-05 18:47:11 +09:00
Johannes Schmid
02c435f354 Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/Makefile.am
	gladeui/glade-app.c
	gladeui/glade-app.h
	gladeui/glade-editor.c
	gladeui/glade-signal-editor.c
	gladeui/glade-signal-editor.h
	gladeui/glade-signal.h
	gladeui/glade-widget.c
	gladeui/glade-widget.h
2011-01-05 10:19:38 +01:00
Tristan Van Berkom
0523a44db9 * gladeui/glade-placeholder.[ch], gladeui/glade-popup.c:
Privatized GladePlaceholder members.
2011-01-05 17:36:59 +09:00
Tristan Van Berkom
97975f7e3a * gladeui/glade-command.[ch], gladeui/glade-project.c, src/glade-window.c:
Privatized GladeCommand members.
2011-01-05 17:24:33 +09:00
Tristan Van Berkom
3828d64ff4 * gladeui/glade-clipboard.[ch], gladeui/glade-project.c:
Privatized GladeClipboard members.
2011-01-05 17:03:01 +09:00
Tristan Van Berkom
cd73073003 * gladeui/glade-signal.[ch], gladeui/glade-project.c, gladeui/glade-widget.c,
gladeui/glade-signal-editor.c, gladeui/glade-command.c: Made GladeSignal an
	opaque structure with accessors.
2011-01-05 16:47:49 +09:00
Tristan Van Berkom
a3877e63e4 * gladeui/Makefile.am, gladeui/glade-signal-class.[ch], gladeui/glade-widget-adaptor.c,
gladeui/glade-signal-editor.c, plugins/gtk+/glade-accels.c:

	Added glade-signal-class.[ch] as an opaque type.
2011-01-05 16:11:37 +09:00
Johannes Schmid
2e0847770e data: Fix pkg-config (gladeui-2.0.pc) file 2011-01-04 18:30:10 +01:00
Tristan Van Berkom
baa913edbf * gladeui/glade-inspector.c: Fixed to not access the treeview from set_project()
(since we do it in expose and the view gets destroyed without us unsetting the pointer).
2011-01-05 02:09:28 +09:00
Tristan Van Berkom
65f15992a6 * gladeui/glade-design-view.c: Made it a no-show-all widget. 2011-01-05 01:13:25 +09:00
Tristan Van Berkom
00ee3d2fcd * gladeui/glade-fixed.[ch] --> plugins/gtk+/glade-fixed.[ch]:
Instead of privatizing GladeFixed, moved it to be a detail of the plugin backend.
2011-01-04 18:00:06 +09:00
Tristan Van Berkom
aa1e52ec72 Added padding to signal editor. 2011-01-04 17:36:32 +09:00
Tristan Van Berkom
094588c1af * gladeui/glade-editor-property.[ch]: Privatized members of GladeEditorProperty.
* plugins/gtk+/*.c: updated all custom editors to used eprop accessors now
2011-01-04 17:34:37 +09:00
Tristan Van Berkom
b5c5a76d8c * gladeui/glade-editor-table.[ch]: Privatized members of GladeEditorTable. 2011-01-04 16:50:58 +09:00
Tristan Van Berkom
8f34c79a9a * gladeui/glade-editor.[ch]: Privatized members of GladeEditor. 2011-01-04 16:43:14 +09:00
Tristan Van Berkom
fab401e47c * Adding padding to classes in various files. 2011-01-04 16:33:31 +09:00
Tristan Van Berkom
0d89679398 * gladeui/glade-cell-renderer-icon.[ch]: Privatizing members. 2011-01-04 16:27:50 +09:00
Tristan Van Berkom
81fe264712 * gladeui/glade-app.h: Cleanup a bit, and removed an unused prototype. 2011-01-04 16:11:06 +09:00
Tristan Van Berkom
78097b2f3b * gladeui/glade-palette.[ch], gladeui/glade-project.[ch], gladeui/glade-app.[ch],
src/glade-window.c:
	  - Removed glade_app_get_palette()
	  - Moved "pointer-mode" property from GladeApp to GladeProject
	  - Palette now in charge of driving pointer mode on the project it's registered to
	  - GladeWindow now watches/sets the pointer mode on the currently set project (with
	    its "selector" and "drag/resize" toolbuttons).
2011-01-04 16:06:04 +09:00
Tristan Van Berkom
cee7207823 * gladeui/glade-app.[ch], gladeui/glade-command.c, gladeui/glade-editor.[ch],
gladeui/glade-popup.c, gladeui/glade-project.c, gladeui/glade-signal-editor.c,
	gladeui/glade-widget-adaptor.c, src/glade-window.c, src/main.c:
	- Removed glade_app_get_editor(), Now the editor is not overly-refreshed by the
	  core and editors can be created at will, the core doesnt need to hold on to one.
	- Also, "gtk-doc-search" signal has been moved from the GladeEditor to the GladeApp.
2011-01-04 03:27:36 +09:00
Tristan Van Berkom
b1605958ed * gladeui/glade-project.c, gladeui/glade-id-allocator.c: Dont index unallocated
memory when releasing a widget name that was never allocated (this can happen
	  for loaded widgets with a number), fixes crash when setting naming policy for
	  glom_developer.glade.
2011-01-03 23:57:18 +09:00
Tristan Van Berkom
51f4b3f3c4 * Another major refactor, tasks accomplished:
- Removed GladeApp selection handling, only on the project now
	  - Removed "Copy" as a command, copying widgets no longer dirty documents (bug 546873)
	  - Removed GladeApp "active_project" concept, every interaction is associated with
	    a GladeProject
	  - Simplified GladeClipboard, the clipboard now only has a list of widgets and
	    not a "selection", everything is removed from the clipboard when new widgets are
	    added there.
	  - GladePalette now has a "project" property and does not need to be refreshed
	    by an external entity.

	19 files changed, 652 insertions(+), 1135 deletions(-)
2011-01-03 19:09:29 +09:00
Tristan Van Berkom
d4835f028d * gladeui/glade-app.[ch]:
- Removed "update-ui" signal, This signal was encouraging bad behaviour and too much
	    action on every project change.
	  - Removed glade_app_create_undo/redo_button().

	* gladeui/glade-project.c: Stop calling glade_app_update_ui ().

	* gladeui/glade-window.c:
	  - Listen to GladeProject::changed instead of update-ui and only update the
	    undo/redo actions when the active project changes.
	  - Remove the preview toolbutton
	  - Add tooltips to important actions

	* plugins/gtk+/gtk+.xml.in: Mark the "preview" action as "important" so it shows
	  up in the app toolbar automatically.
2011-01-03 15:29:29 +09:00
Tristan Van Berkom
6fa69cb8b1 * Made GladePropertyClass completely opaque and created loads of api and updated all sources:
20 files changed, 1152 insertions(+), 643 deletions(-)
2011-01-03 04:56:45 +09:00
Tristan Van Berkom
cc8dfcfc4b * Made GladeWidgetAdaptor internalize *everything* into a private data structure,
21 files changed, 694 insertions(+), 670 deletions(-)
2011-01-03 01:11:01 +09:00
Tristan Van Berkom
f2a93372b5 * src/glade-window.c: Dont refresh notebook tabs at every update-ui, just for the appropriate
project when the appropriate data changes (speeds up editing, with latest changes editing labels
	  in huge projects is smooth).
2011-01-02 15:46:19 +09:00
Tristan Van Berkom
8276814a51 * gladeui/glade-command.c: Removed explicit calls to glade_app_update_ui in command->collapse
implementations... GladeProject already emits this after collapsing whenever the project
	  changes.
2011-01-02 15:29:51 +09:00
Tristan Van Berkom
c97b1a3461 * gladeui/glade-project.c: Export glade_project_verify_property() to allow verification of
a single property instead of the whole widget when a property changes.
2011-01-02 15:18:03 +09:00
Tristan Van Berkom
43db0e3a81 * gladeui/glade-command.c: Fixed segfault introduced by my recent GladeProperty migration
* gladeui/glade-editor-property.c: Avoid infinite recursion when committing properties more
	  aggressively (found that editing text properties now make some recursion for some reason).
2011-01-02 15:02:32 +09:00
Tristan Van Berkom
751b521c8c * gladeui/glade-project.c: Fixed GladeProject to only ever report widgets that are
actually in the project from the GtkTreeModel interface.
2011-01-02 14:41:54 +09:00
Tristan Van Berkom
adf891b415 * gladeui/glade-widget-adaptor.h, gladeui/glade-property-class.h: Removed some obsolete macros. 2011-01-02 05:37:09 +09:00
Tristan Van Berkom
e4b450167b * Made GladeProperty internalize *everything* into a private data structure,
17 files changed, 766 insertions(+), 592 deletions(-)
2011-01-02 03:28:18 +09:00
Tristan Van Berkom
d324ec8012 * gladeui/glade-clipboard.h, gladeui/glade-app.c: Removed clipboard->view member and
make GladeApp properly destroy the clipboard when disposing.
2011-01-02 01:06:14 +09:00
Tristan Van Berkom
ca601f5b6d * gladeui/Makefile.am, gladeui/glade-editor.c, gladeui/glade-property-class.[ch],
gladeui/glade-property.c, gladeui/glade-xml-utils.h, po/POTFILES.in:
	Completely removed GladeParameter, a legacy unused mechanism to store parameters in
	the glade catalog for later retrieval from the plugin.
2011-01-02 00:57:18 +09:00
Tristan Van Berkom
3a779ba755 * gladeui/glade-project.[ch], gladeui/glade-widget.c, gladeui/glade-command.c:
Removing legacy 'old_project' argument from glade_project_add_object().
2011-01-02 00:49:21 +09:00
Tristan Van Berkom
c856737cec * Made GladeWidget internalize *everything* into a private data structure,
33 files changed, 1318 insertions(+), 1230 deletions(-)
2011-01-02 00:39:57 +09:00
Jorge González
ccfac250d7 Updated Spanish translation 2011-01-01 13:20:17 +01:00
Tristan Van Berkom
2c8f3b86d9 * gladeui/glade-command.[ch], Added GladeProject member to base command structure, now
all commands reffer to that structure instead of trying to pull a project pointer from
	  a widget.

	* gladeui/glade-project.c: Unset project pointer on widgets when they leave the project,
	  manage an "in_project" flag on widgets to differenciate the moment when they widgets are
	  loading and have the project pointer but are still not added to the project yet. Also speed up
	  glade_project_has_object() by not traversing the list but simply checking the widget's project
	  and in_project flag.

	* gladeui/glade-widget.[ch]: Added the "in_project" flag to GladeWidget, fixed glade_widget_rebuild
	  to save the previous project pointer.
2011-01-01 18:22:48 +09:00
Tristan Van Berkom
093d6de310 Fixed glade_widget_hide() to not actually hide the widget, we just remove/put them back in the workspace. 2011-01-01 16:58:24 +09:00
Tristan Van Berkom
6c0e389878 Removing some debug print from backend. 2010-12-31 15:35:08 +09:00
Tristan Van Berkom
e0abb9da5d * plugins/gtk+/gtk+.xml.in: Setting "can-focus" as "save-always" for all widgets (bug 638079). 2010-12-31 15:10:34 +09:00
Tristan Van Berkom
d5e9d6110e * m4/python.m4: Applying patch to allow better builds on win32, patch by Dieter Verfaillie,
bug 634978.
2010-12-31 14:06:06 +09:00
Tristan Van Berkom
a25e285b89 Reordering ChangeLog. 2010-12-31 13:47:36 +09:00
Tristan Van Berkom
295db1f592 Fixed bad merge on last cherry-pick 2010-12-31 13:47:12 +09:00
Tristan Van Berkom
c830b375aa * gladeui/glade-property.c: Fixed glade_property_dup() to not incidentally sync the property
object's value as a consequence of dupping (backend uses this to write properties with custom
	  values and does not expect that).

Conflicts:

	ChangeLog
	gladeui/glade-property.c
2010-12-31 13:47:12 +09:00
Tristan Van Berkom
75599a13e8 * plugins/gtk+/glade-gtk.c: Fixed loaded state of use-action-appearance so that it always
loads as FALSE if there is no "related-action" at load time.

Conflicts:

	plugins/gtk+/glade-gtk.c
2010-12-31 13:47:11 +09:00
Tristan Van Berkom
827554e4e5 * gladeui/glade-project.c: Further fixing project dispose cycle, still leaking a little
bit of memory for large projects but no crashes.

Conflicts:

	ChangeLog
	gladeui/glade-project.c
2010-12-31 13:46:54 +09:00
Johannes Schmid
5b8ab44c83 gladeui: Fix state of checkitems in signal-editor 2010-12-31 00:00:54 +01:00
Johannes Schmid
5d3a0549bf Remaning merge conflicts 2010-12-30 22:29:03 +01:00
Johannes Schmid
ba341982c2 gladeui: Initially port of signal-editor drag & drop to new drawing API 2010-12-30 22:24:20 +01:00
Johannes Schmid
9e42101184 More merge fixes 2010-12-30 22:09:11 +01:00
Johannes Schmid
64a3068ee0 gladeui: Fix merge conflicts 2010-12-30 20:33:23 +01:00
Javier Jardón
c2a86ecc31 Fix typo in previous commit 2010-12-30 17:41:21 +01:00
Christian Persch
5a98fe54f8 Use locale-independent strtod & dtostr
Bug #616787.
2010-12-30 17:32:46 +01:00
Tristan Van Berkom
d34b7c1ad4 Fixing action editor to disallow actions children of actions.
Conflicts:

	plugins/gtk+/glade-gtk.c
2010-12-30 23:50:49 +09:00
Tristan Van Berkom
bd16621dd5 * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added editor to edit
GtkAction/GtkActionGroup hierarchies.

Conflicts:

	ChangeLog
	plugins/gtk+/glade-gtk.c
2010-12-30 23:42:14 +09:00
Tristan Van Berkom
db7627b85a * gladeui/glade-base-editor.c: Remove restriction for only GtkContainer widgets.
Conflicts:

	gladeui/glade-base-editor.c
2010-12-30 23:38:30 +09:00
Johannes Schmid
75bf078ff3 Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/glade-app.c
	gladeui/glade-base-editor.c
	gladeui/glade-editor.c
	gladeui/glade-project.c
	gladeui/glade-signal-editor.c
	gladeui/glade-signal.c
	gladeui/glade-widget.c
2010-12-30 14:32:02 +01:00
Tristan Van Berkom
f9e580e4a8 * gladeui/glade-base-editor.c, gladeui/glade-command.c: Avoid setting a null name on a widget.
Conflicts:

	ChangeLog
	gladeui/glade-base-editor.c
	gladeui/glade-command.c
2010-12-30 22:18:45 +09:00
Johannes Schmid
6ca40fca15 Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/glade-project.c
	gladeui/glade-widget.c
2010-12-30 14:04:23 +01:00
Tristan Van Berkom
09881099da * plugins/gtk+/gtk+.xml.in: Updated catalog for 2.22 and 2.24 symbols.
Conflicts:

	ChangeLog
	plugins/gtk+/gtk+.xml.in
2010-12-30 21:30:09 +09:00
Tristan Van Berkom
bc939d5ff6 * ALL SOURCE FILES: Removed 8-space indentation, reformatted all code with:
indent   \
	--braces-after-if-line   \
	--case-brace-indentation0   \
	--case-indentation2   \
	--braces-after-struct-decl-line   \
	--line-length80   --no-tabs  \
	--dont-line-up-parentheses   \
	--continuation-indentation4 \
	--continue-at-parentheses  \
	--honour-newlines  --tab-size8  --indent-level2 -nbbo
2010-12-30 20:19:58 +09:00
Tristan Van Berkom
7608035b9a * configure.ac: Fixed package name to be 'glade' and not 'glade3', this was
screwing up the installation directory and loading catalogs/modues for GTK+ 2.x.
	  (i.e. from ${prefix}/share/glade3/catalogs instead of ${prefix}/share/glade/catalogs
	  which is the new path).
2010-12-30 20:17:25 +09:00
Tristan Van Berkom
56a65fb996 * gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.c, plugins/gtk+/glade-gtk.c,
plugins/gtk+/gtk+.xml.in:
	  Removed the boolean "fixed" property for catalogs and replaced it with a "create-widget-function"
	tag that allows the backend to create a GladeWidget derived object to handle instances in
	the runtime, modified the backend appropriately to create a GladeFixed for widgets that were
	using the "fixed" property.
2010-12-30 18:53:56 +09:00
Javier Jardón
9ca6f4cd00 Use upstream gettext 2010-12-29 18:42:08 +01:00
Javier Jardón
5e8ed7e0df Modernize autotools configuration file
New dependencies:
automake >= 1.11
autoconf >= 2.64
libtool >= 2.2.6
intltool >= 0.41.0
gtk-doc >= 1.13
gnome-doc-utils >= 0.18
2010-12-29 18:40:46 +01:00
Daniel Nylander
d7dc444da2 Updated Swedish translation 2010-12-29 18:06:24 +01:00
Daniel Nylander
c20bd5d69b Updated Swedish translation 2010-12-29 18:06:18 +01:00
Daniel Nylander
d1ee5d623b Updated Swedish translation 2010-12-29 18:06:18 +01:00
Daniel Nylander
51587fdb15 Updated Swedish translation 2010-12-29 18:06:18 +01:00
Tristan Van Berkom
b176a4395f * Fixing distcheck, bumping version to 3.9.0 2010-12-30 01:50:14 +09:00
Tristan Van Berkom
ecabb87545 * Whole tree updated to remove all notion of project conversions and dual project formats,
no more libglade.
2010-12-30 01:15:19 +09:00
Tristan Van Berkom
159aa6f695 * gladeui/glade-design-view.c: Made loading progress bar nicer looking and ellipsizing. 2010-12-29 20:40:38 +09:00
Tristan Van Berkom
7a745a128f Removed unused variable from glade_design_layout_realize(). 2010-12-29 20:30:33 +09:00
Tristan Van Berkom
e4c9f8d60c * plugins/gtk+/glade-cell-renderer-editor.c: Fixed to use a GtkGrid to align the
properties and do height-for-width, also now use GtkComboBox:fixed-width = FALSE
	  to allow popups to show the full column values instead of the old hack in place.
2010-12-29 20:17:56 +09:00
Tristan Van Berkom
45750bf825 * gladeui/glade-editor-property.c: Make all input widgets want to expand. 2010-12-29 20:16:58 +09:00
Tristan Van Berkom
0e4da586e9 * gladeui/glade-base-editor.c, gladeui/glade-editor-property.c,
gladeui/glade-editor-table.c, gladeui/glade-editor-table.h,
	plugins/gtk+/glade-activatable-editor.c, plugins/gtk+/glade-button-editor.c,
	plugins/gtk+/glade-entry-editor.c, plugins/gtk+/glade-image-editor.c,
	plugins/gtk+/glade-image-item-editor.c, plugins/gtk+/glade-label-editor.c,
	plugins/gtk+/glade-label-editor.h, plugins/gtk+/glade-tool-button-editor.c:
	Removed the GtkTables and use GtkGrid in property editors so that line wrapping
	is hieght-for-width.
2010-12-29 19:14:52 +09:00
Tristan Van Berkom
a334a9d268 * gladeui/Makefile.am, gladeui/glade.h, gladeui/glade-clipboard.c, gladeui/glade-app.[ch],
src/glade-window.c, gladeui/glade-clipboard-view.[ch]:
	Removed GladeClipboradView completely.
2010-12-28 14:45:55 +09:00
Tristan Van Berkom
409390710e * gladeui/glade-widget-adaptor.[ch]: Removed the '->scrollable' flag on the adaptor
class in favor of just checking if the class type implements GtkScrollable
2010-12-27 18:22:47 +09:00
Tristan Van Berkom
b3c23fe05b * gladui/glade-placeholder.c: Made GladePlaceholder Implement GtkScrollable so
as to avoid warnings when using placeholders inside scrolled windows.
2010-12-27 18:21:39 +09:00
Tristan Van Berkom
c32111c8f6 * gladeui/glade-editor-property.c: Align property labels left instead of right
(get back the old look and feel).
2010-12-27 17:12:01 +09:00
Tristan Van Berkom
c3868e943a Revert " * gladui/glade-editor-table.c: Align name field on the right with all the other"
This reverts commit 267e53a4ff9fb8796b998205a000d35674cee3ca.
2010-12-27 15:08:26 +09:00
Tristan Van Berkom
e15616f02e * gladeui/glade-widget-adaptor.c: Uncommenting some code that for some reason
got "fallout" from the offscreen branches.
2010-12-27 15:06:22 +09:00
Tristan Van Berkom
13514387bd * gladeui/glade-project.c: Fixed glade-project to unset the loading flag when
loading project dependancies are not satisfied and there is an early return.

Conflicts:

	ChangeLog
2010-12-27 14:05:51 +09:00
Tristan Van Berkom
356e9f421d * gladui/glade-editor-property.c: Set a width-chars on the eprop label so that
line wrapping kicks in.
2010-12-27 13:56:31 +09:00
Tristan Van Berkom
267e53a4ff * gladui/glade-editor-table.c: Align name field on the right with all the other
properties.
2010-12-27 13:55:43 +09:00
Tristan Van Berkom
e65891ab8b * plugins/gtk+/glade-label-editor.c: Dont add invisible properties to the editor,
instead the invisible editor-property gets tied to the life-cycle of the table
	  it would have been added to (since recently glade_editor_property() explicitly
	  shows/hides properties according to if thier widget actually has an instance
	  of the property).
2010-12-27 13:42:08 +09:00
Tristan Van Berkom
7dfe5becd7 * gladeui/glade-widget.c: Reduce processing of events by not running the
widget lookup event redirection for events we're not interested in.
2010-12-26 20:53:45 +09:00
Tristan Van Berkom
7fcb740bd8 * src/glade-close-button.c: Made the close button in notebook tabs smaller. 2010-12-26 20:53:45 +09:00
Tristan Van Berkom
4bed7e8db5 * gladeui/glade-design-layout.c: Make sure to hide widgets going out of the workspace
so that embedded toplevels dont "pop out" of the workspace
2010-12-26 20:53:45 +09:00
Tristan Van Berkom
b480f67e7b * gladeui/glade-placeholder.c: Removed debug printing and some unused variables. 2010-12-26 20:53:45 +09:00
Tristan Van Berkom
099d540552 * gladeui/glade-previewer.c: Added include <locale.h> for setlocale() (bug 638035). 2010-12-26 20:53:45 +09:00
Jorge Gonzalez
32a8d1e047 Updated Spanish translation 2010-12-23 19:52:31 +01:00
Gheyret T.Kenji
4a39751052 Added UG translation 2010-12-23 18:50:14 +01:00
Tristan Van Berkom
24b8b6057d * gladeui/glade-design-layout.c: Fixed search-for-inner widget and placeholder algorithm, now
it loops less and actually finds the widgets.
2010-12-24 00:40:19 +09:00
Tristan Van Berkom
3b29bb2956 * gladeui/glade-design-layout.c: Re-fixed child allocation to allocate at least the requisition. 2010-12-23 22:59:58 +09:00
Tristan Van Berkom
ecd008f282 * gladeui/glade-utils.c: Fix selection code (and removed lots of lines in doing so) 2010-12-23 22:50:37 +09:00
Tristan Van Berkom
02fa3daa3c * gladeui/glade-design-layout.c: Fixed child allocation cycle to not move the parent's window. 2010-12-23 18:56:57 +09:00
Tristan Van Berkom
0534e9fcfd * gladeui/glade-placeholder.[ch]: Make GladePlaceholder use an event window and have no window. 2010-12-23 18:56:00 +09:00
Tristan Van Berkom
28dcb008c8 * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added glade_gtk_treeview_replace_child(),
this was never needed before since treeview columns did not have construct-only properties
	  (so they did not hit "rebuild" codepaths).
2010-12-23 12:28:10 +09:00
Tristan Van Berkom
2d5ae42887 * gladeui/glade-widget.c: Check if object is actually in the parent when rebuilding
(for setting construct properties during a load process).
2010-12-23 12:26:50 +09:00
Tristan Van Berkom
fc9c8549e4 Set progress bar to show text. 2010-12-22 23:24:32 +09:00
Tristan Van Berkom
da636b32f4 Fixed css xthickness for "padding". 2010-12-22 23:07:15 +09:00
Tristan Van Berkom
85a774dbe6 * src/glade-window.c: Fixed style for notebook tab progress bar to be set with css. 2010-12-22 22:54:08 +09:00
Tristan Van Berkom
9d6c1fc38f Fixed configure.ac to generate the right pc and desktop files. 2010-12-22 22:29:25 +09:00
Tristan Van Berkom
e7273fb522 * data/...: mv gladeui-3.0.pc.in gladeui-2.0.pc.in (its libgladeui-2.0, not 3.0), also
moved glade-3.desktop.in.in to glade.desktop.in.in, new app name is 'glade'.
2010-12-22 22:27:15 +09:00
Tristan Van Berkom
7f54d098d7 * gladeui/glade-design-layout.[ch]: Reverted to GtkBin class, cannot do this
with a GtkEventBox (the child gets a separate allocation and we use the border,
	  we're really better with priv->event_window).

	* gladeui/glade-widget.c: Fixed to not access GLADE_DESIGN_LAYOUT (widget)->child which
	  doesnt (and shouldnt) exist.
2010-12-22 22:23:20 +09:00
Tristan Van Berkom
9ed16678e6 * gladeui/glade-previewer.c: Fixed to not use gtk_set_locale(). 2010-12-22 22:22:00 +09:00
Tristan Van Berkom
2a8c0ad8c6 * plugins/gtk+/glade-gtk.c: Removing some combobox entry stuff, reenabling
the fixed_layout stuff

	* plugins/gtk+/gtk+.xml.in: Removing Ruler classes, added GtkBox, GtkPaned, GtkButtonBox
	  base classes that are now instantiatable
2010-12-22 18:35:21 +09:00
Tristan Van Berkom
612b0fcfd1 * Making offscreen-gtk3 branch compile again after merging master,
also making libgladeui library libgladeui-2.
2010-12-22 18:18:59 +09:00
Tristan Van Berkom
a84bfad013 Merge branch 'master' into offscreen-gtk3
Conflicts:
	ChangeLog
	gladeui/Makefile.am
	gladeui/glade-widget.c
2010-12-22 18:07:18 +09:00
Tristan Van Berkom
e56a1f699e Slightly modified notebook tab progress bar style (give it a good width) 2010-12-22 17:31:39 +09:00
Tristan Van Berkom
3f04cb3e4d * gladeui/glade-project.c: Added "parse-began" signal
* gladeui/glade-design-view.c: Hide workspace and show load progress
	  while loading so that one cannot access project widgets during the load
	  (insensitive workspace was problematic and causing some loaded project
	  windows to be permanently insensitive).

	* src/glade-window.c: Avoid any messups during project load, cannot close
	  projects while they are loading, etc.
2010-12-22 17:14:52 +09:00
Tristan Van Berkom
d1fbe27908 * gladeui/glade-project.[ch]: Removed dialog and added "load-progress" signal
* gladeui/glade-app.c: Protect against commands executed on loading projects

	* src/glade-window.c: Added load progressbar to notebook tabs.
2010-12-22 17:14:41 +09:00
Tristan Van Berkom
0ce0e63379 Added loading objects dialog with progress and cancel.
* src/main.c: Display window before loading command line specified projects.

	* gladeui/glade-project.[ch]: Added dialog that pops up when about to load
	  a large project with glade_project_push_project() to push the progress and
	  glade_project_load_cancelled() to check and abort while loading the project.

	* gladeui/glade-widget.c, gladeui/glade-widget-adaptor.c: Push progress and
	  abort loading when project indicates the user cancelled the load.
2010-12-21 13:34:00 +09:00
Ivar Smolin
f4c021c846 [l10n] Updated Estonian translation 2010-12-20 14:20:17 +02:00
Tristan Van Berkom
0de9fa5f81 * gladeui/glade-editor-property.c, gladeui/glade-property.c, gladeui/glade-widget.c,
plugins/gtk+/glade-gtk.c: Fixing some discrepincies searching for properties as
	  regular properties or packing properties. Now the conflicting "position" property
	  on a GtkPaned widget packed into a GtkBox widget works properly (bug 637475).
2010-12-20 18:48:35 +09:00
Tristan Van Berkom
cfeb1d7824 * gladeui/glade-editor.c: Fixed class header of GladeEditor to update when
widgets unload (patch by Marco Diego Aurélio Mesquita, bug 637541).
2010-12-20 17:26:46 +09:00
Tristan Van Berkom
2603c2ed2b * gladeui/glade-project.c: Applying Marco Diego Aurélio Mesquita's patch to
make the project preview only preview toplevels.
2010-12-20 17:26:31 +09:00
Tristan Van Berkom
703263f792 * plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-column-types.[ch]: Added
glade_column_type_new() to create a GladeColumnType struct properly using
	  g_slice_new0(). An occurance of allocating the struct with g_new0 was causing
	  Glade to crash when freeing the block with g_slice_free (bug 637563). Many
	  big thanks to Benjamin Otte for tracking down the problem.
2010-12-20 16:56:00 +09:00
Tristan Van Berkom
06c757ceff Fixed unused variables in GladeWidget source 2010-12-20 16:56:00 +09:00
Tristan Van Berkom
6a17606718 Removed debug prints from GladeProject 2010-12-20 16:56:00 +09:00
Tristan Van Berkom
7f617a650d small build fix
A clean checkout could fail to find the lib when run with make -j

Conflicts:

	gladeui/Makefile.am
2010-12-20 16:56:00 +09:00
Tristan Van Berkom
63672d179c Moved unparenting of all widgets back to GladeProject at dispose time.
This ensures that the deepest children are finalized first.
2010-12-20 16:56:00 +09:00
Tristan Van Berkom
e551f1d127 * gladeui/glade-widget.[ch]: Hide glade_widget_set_object(), improved reference count
balancing and fixed segfaults upon closing projects that contain filechooser dialogs
	  referenced by filechooserbuttons.
2010-12-20 16:56:00 +09:00
Tristan Van Berkom
b9a0f37491 Small code cleanup in GladeProject. 2010-12-20 16:56:00 +09:00
Tristan Van Berkom
dde69f358c * plugins/gtk+/glade-gtk.c: Removed alpha_sort_box_children(), project needs to be
sorted with box children by position, loading process depends on this.
2010-12-20 16:56:00 +09:00
Tristan Van Berkom
c65641d61a * plugins/gtk+/glade-gtk.c: Fix alpha_sort_box_children() to give a consistent
order to placeholders (bug 637534 fix by Marco Diego Aurélio Mesquita).
2010-12-20 16:56:00 +09:00
Jorge González
12a3328c4c Updated Spanish translation 2010-12-18 15:44:23 +01:00
Jorge González
e2cbae8e8c Updated Spanish translation 2010-12-18 15:31:03 +01:00
Jorge González
7ef6ccf254 Updated Spanish translation 2010-12-18 14:57:09 +01:00
Tristan Van Berkom
bb70daa05f * gladeui/glade-editor-property.c: Unload currently loaded property in
glade_editor_property_load_by_widget() when a NULL widget is specified or the property
	  is not found.
2010-12-18 19:40:41 +09:00
Tristan Van Berkom
8164800bd2 * gladeui/glade-editor-property.c: Hide editor properties when the property is not available
on the widget, bug 585299, fix by Marco Diego Aurélio Mesquita.
2010-12-18 19:40:29 +09:00
Tristan Van Berkom
88360eb4b7 * src/Makefile.am, gladeui/Makefile.am, plugins/gtk+/Makefile.am, plugins/gnome/Makefile.am:
Fixed makefiles as per bug 521713 (patch initially by Daniel Macks).

Conflicts:

	gladeui/Makefile.am
	plugins/gnome/Makefile.am
	src/Makefile.am
2010-12-18 19:40:01 +09:00
Tristan Van Berkom
22e76262a2 * plugins/gtk+/glade-gtk.c, po/*.po: Fixed 'controled' typo with updates to po files, patch
by Matt Woelfel for bug 633957.

Conflicts:

	ChangeLog
2010-12-18 02:32:32 +09:00
Tristan Van Berkom
b26878449a * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Alphabetically sort GtkBox children for save.
Conflicts:

	ChangeLog
2010-12-17 23:55:15 +09:00
Tristan Van Berkom
413100245a * gladeui/glade-property-class.c: Properly order object properties
Conflicts:

	ChangeLog
2010-12-17 23:54:26 +09:00
Tristan Van Berkom
be45db8438 * gladeui/glade-project.c: Restore proper sorting of objects at save time.
Conflicts:

	ChangeLog
2010-12-17 23:00:11 +09:00
Tristan Van Berkom
0deb1c2857 * gladeui/glade-project.c: Fixed crasher when adjusting project naming policy (bug 622528,
thanks goes to Sébastien Granjoux and Martin Schlemmer for looking at this one).
2010-12-17 18:53:08 +09:00
Tristan Van Berkom
4e102e7282 * plugins/gtk+/glade-gtk.c: Fixed crashes when textview's buffer is deleted, fix
by Martin Schlemmer, bug 609748.
2010-12-17 18:29:21 +09:00
Tristan Van Berkom
f64f3c5244 * plugins/gtk+/glade-gtk.c:
- Defensively avoid crash when setting entry icon tooltips
	  - Add version check macro to compile with GTK+ 2.20
2010-12-17 18:12:53 +09:00
Tristan Van Berkom
45d30477f0 * gladeui/glade-app.[ch]: Added glade_app_queue_selection_changed()
* gladeui/glade-command.c: queue selection changes when widgets are added, this
	  avoids synchrounously poking the model when the selection changes various times
	  in a command sequence such as changing a menu item's type.

	* gladeui/glade-base-editor.c: Dont call glade_command_create/delete() directly
	  in change-type, keep delegating this work to build-child/delete-child signals.

	* gladeui/glade-widget.[ch]: Added glade_widget_is_ancestor()

	* gladeui/glade-utils.c: Change glade_util_find_iter_by_widget() to use
	  glade_widget_is_ancestor() and speed up searches a little this way.
2010-12-17 17:31:32 +09:00
Tristan Van Berkom
e8dc8def16 * plugins/gtk+/gtk+.xml.in: default adjustment page size -> 0 (bug 585085). 2010-12-17 05:18:30 +09:00
Tristan Van Berkom
cdb756908c * gladeui/glade-project.c: Removing frame shadow (and label) from project preferences (bug 574098). 2010-12-17 05:11:26 +09:00
Tristan Van Berkom
e1fcadb3a1 * plugins/gtk+/gtk+.xml.in: Setting dialog type-hint default to Dialog (closes old bug 459917) 2010-12-17 05:02:45 +09:00
Tristan Van Berkom
82cb22c432 * gladeui/glade-project.[ch], gladeui/glade-app.[ch], src/glade-window.c: Removed notion
of project "instance_count" which is now unused.
2010-12-17 04:44:46 +09:00
Tristan Van Berkom
f380b4036a * plugins/gtk+/glade-gtk.c: Fixed floating project menus when context menu is fired (bug 141714). 2010-12-17 03:58:54 +09:00
Tristan Van Berkom
ed30d4ca9d Removing false warning 2010-12-17 01:34:14 +09:00
Tristan Van Berkom
2712e27243 * gladeui/glade-inspector.c:
- Avoid changing project selection when selection is cleared, selection get's cleared
	    when the user changes a widget name and a filter is applied (removing the entry from
	    the filtered model), avoiding syncing project selection avoids making the editor disappear
	    when the user changes a widget name (fixes bug 604322).
	  - Also plugged some leaked objects retrieved by gtk_tree_model_get().

	* gladeui/glade-editor-table.c: Fire a warning when entry is edited with no widget
	  loaded, also change the ->loading flag strategy for blocking signal emission instead.
2010-12-17 01:25:02 +09:00
Johannes Schmid
7cd0289ce8 Fixed a crasher and various merge conflicts 2010-12-16 12:45:25 +01:00
Johannes Schmid
a4abbf6fea Make GladeSignalModel a deligate of GladeWidget 2010-12-16 12:45:12 +01:00
Johannes Schmid
bf7899bc0a Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/glade-project.c
2010-12-16 12:03:44 +01:00
Tristan Van Berkom
b65dae9daa * plugins/gtk+/glade-gtk.c: Set added treeviewcolumns to fixed sizing mode if the
treeview is set to use fixed height mode (closing bug 596480).
2010-12-16 18:18:55 +09:00
Tristan Van Berkom
78cf00174e * gladeui/glade-base-editor.c: Fixed glade_base_editor_dispose to not access the signal
editor, it's automatically destroyed as being a child of the editor.

Conflicts:

	ChangeLog
2010-12-16 17:56:26 +09:00
Tristan Van Berkom
58ba3d48d0 * doc/Makefile.am: For master branch, change doc build to link against libgladeui-2 library. 2010-12-16 17:39:42 +09:00
Tristan Van Berkom
bdd047cf3e * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Fixed GtkComboBox to handle cell-layout
children as well as the possible internal entry (fixes bug 581580).
2010-12-16 17:35:41 +09:00
Tristan Van Berkom
c7cf6885b7 * gladeui/glade-project.c: Notify iter changes when the widget name changes, increment project
iter stamp before notifying row-inserted (old iters are invalid, the new iter persists),
	  fixed leaked GtkTreePath when rows are inserted.
2010-12-16 17:34:43 +09:00
Tristan Van Berkom
dca3e42440 * plugins/gtk+/glade-gtk.c: Avoid using gtk_combo_box_set_entry_text_column directly (build
for GTK+ 2.20).
2010-12-16 17:34:29 +09:00
Tristan Van Berkom
7dbf1524b6 * plugins/gtk+/glade-gtk.c: Fixed crash with notebook rebuilding children (bug 365462). 2010-12-16 03:34:01 +09:00
Tristan Van Berkom
d1374c1144 * gladeui/glade-palette.c: Add a label in a box to the palette items to avoid
the evil ellipsization.
2010-12-16 03:19:13 +09:00
Tristan Van Berkom
125262a50f * plugins/gtk+/gtk+.xml.in: Ignore "resize-mode" property incase of crashes
(as reported in bug 622996).
2010-12-16 02:19:41 +09:00
Tristan Van Berkom
b2339ce556 * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Avoid warnings when
loading glade files.
2010-12-16 02:05:54 +09:00
Tristan Van Berkom
d5a6041cdd * gladeui/glade-project.c: Fix glade_project_fix_object_props() to copy the
list which risks changing order while iterating.
2010-12-16 02:05:44 +09:00
Tristan Van Berkom
3f48dfac3c * plugins/gtk+/glade-gtk.c: Make sure any manually created glade widgets pass
through glade_widget_add_child() and get a proper ref from the parent (fixing
	  more last minute crahsers).

	* gladeui/glade-utils.c: Fixed crasher bug 628233 partially using patch by
	  ramz <ramanathan.nitt@gmail.com>.
2010-12-16 00:34:18 +09:00
Tristan Van Berkom
c2ff2efb70 * gladeui/glade-widget.c, gladeui/glade-project.c: Fixed some final things with
new GInitiallyUnowned strategy, push superuser mode at dispose time so that
	  the plugin doesnt screw up, also hold a ref to widgets being rebuilt since
	  they can go out and into the project.
2010-12-15 23:45:25 +09:00
Tristan Van Berkom
25a0c4e14c removed g_print trace from GladeWidget 2010-12-15 21:48:52 +09:00
Tristan Van Berkom
6b3a5ec948 * gladeui/glade-widget.[ch], gladeui/glade-project.c, plugins/gtk+/glade-gtk.c: Cleanup
object ref count cycles, now GladeProject just releases all widgets from the project
	  and keeps a reference to the GladeWidget instead of the GObject, GladeWidget is now
	  GInitiallyUnowned and GladeProject assumes ownership when objects are added to the
	  project (glade-gtk.c in this patch avoids needlessly adding a widget to the project
	  that will be implicitly added, now glade-gtk.c does not directly manually add any
	  widgets to the project).
2010-12-15 21:48:46 +09:00
Tristan Van Berkom
34427f75e3 Minor code cleanup in glade-command.c 2010-12-15 21:48:38 +09:00
Tristan Van Berkom
8c71160920 * plugins/gtk+/glade-gtk.c: Fixed errors when undoing the addition of notebook pages.
The problem at length was an issue of orphaned project widgets left in the project model.

Conflicts:

	ChangeLog
2010-12-15 19:48:20 +09:00
Tristan Van Berkom
a6b0ccb955 * gladeui/glade-project.c: Cleanup glade_project_remove_object(), make sure row_deleted is
fired before modifying internal data structures (and dont use the glade_util_ function
	  to find a widget iter).
2010-12-15 19:47:42 +09:00
Johannes Schmid
5a713f9810 Fix bgo#635545 - glade3 fails to build using jhbuild 2010-11-27 12:10:01 +01:00
Johannes Schmid
a05805d164 Use libgladeui-3 as library name, remove --with-gtk option and adapt
Makefiles and configure.in

As we can only build against gtk+-3.0 anyway, we should use a suitable
library name.
2010-11-18 16:24:58 +01:00
Javier Jardón
38f0171103 Use GSourceFunc instead GtkFunction 2010-11-16 19:24:12 +01:00
Johannes Schmid
ca2a6eb26c gladeui: Make drawing code in glade-design-layout more gtk3-ish
Thanks to Benjamin Otte for review.
2010-11-16 17:57:22 +01:00
Johannes Schmid
c5a7972737 gladeui: Fix height/width confusing
Thanks to Gerd for the blog comment
2010-11-15 23:50:24 +01:00
Johannes Schmid
47b610f334 gladeui: First try to fix offscreen drawing 2010-11-15 17:19:48 +01:00
Johannes Schmid
2dd219bd8f project-model: Don't be picky about non-existing children
It is sometimes possible that children are added before their parents in the tree. We simply
ignore that for now as it doesn't cause any harm in the tree model.
2010-11-15 15:50:45 +01:00
Johannes Schmid
2c99a32bdb gladeui: Port placeholder background to cairo 2010-11-15 15:48:54 +01:00
Johannes Schmid
6117213a10 gladeui: Fix crash in glade-editor-property
Seems that calling size_request() inside allocate() isn't a good idea.
2010-11-15 15:48:51 +01:00
Johannes Schmid
177b9bfbe9 gladeui: Fix warning 2010-11-15 15:48:49 +01:00
Johannes Schmid
07d1583f04 gladeui: Move remaining placeholder drawing code to cairo
gdk_window_set_back_pixmap is still missing and has to be implemented in cairo somehow
2010-11-15 15:48:45 +01:00
Johannes Schmid
fa62672c1d Remove reference to gtk_size_request 2010-11-15 15:48:43 +01:00
Johannes Schmid
0f2ff4d680 Initial gtk+ 3.0 port (compiles but doesn't work) 2010-11-05 15:56:13 +01:00
Johannes Schmid
cbc454d050 Bug 630690 - drop GtkObject use
2010-11-05  Matthias Clasen <mclasen@redhat.com>

	* gladeui/glade-command.c:
	* gladeui/glade-editor-property.c:
	* gladeui/glade-widget.c:
	* plugins/gtk+/glade-convert.c:
	Bug 630690 - drop GtkObject use
2010-11-05 15:28:08 +01:00
Tristan Van Berkom
b1f3b58c5d 2010-10-15 Matthias Clasen <mclasen@redhat.com>
* src/glade-window.c: Removed specific resize-grip handling as now
	  resize-grips are implemented on GtkWindow directly.
2010-10-15 15:10:54 +09:00
Tristan Van Berkom
305e44f087 Merge branch 'master' into offscreen 2010-10-12 17:53:14 +09:00
Tristan Van Berkom
f671dd07b9 Merge branch 'master' into offscreen 2010-10-09 15:21:00 +09:00
Tristan Van Berkom
8359c868ac Merge branch 'master' into offscreen
Conflicts:
	gladeui/glade-named-icon-chooser-dialog.c
2010-10-09 15:11:18 +09:00
Juan Pablo Ugarte
53797de6b5 Fixed compitation for gtk+-3.0 2010-09-19 17:24:04 -03:00
Juan Pablo Ugarte
c7067041b2 First try to make GladeDesignLayout use a GdkOffscreen to render its child instead of acutally packing it 2010-09-09 14:33:51 -03:00
Johannes Schmid
03f6fb6304 signal-editor: Add drag and drop animation 2010-08-01 16:21:10 +02:00
Johannes Schmid
5299bcfdc6 signal-editor: Implement basic drag and drop support 2010-07-25 13:02:02 +02:00
Johannes Schmid
e51ee00b7e signal-editor: Update model correctly when adding/changing/removing
Show widgets with associated signals in bold when there are handlers defined.
2010-07-09 22:48:42 +02:00
Johannes Schmid
bf2fc91201 glade-widget: Fixed memory leak and adjusted const parameters in glade-signal 2010-07-09 22:47:55 +02:00
Johannes Schmid
42745174ff glade-project: Fix stamp handling in the GladeProject model
The stamp should actually be incremented every time iterators become invalid.
2010-07-08 21:07:53 +02:00
Johannes Schmid
fc84a8989f signal-editor, signal-model: Added adding and changing of signal handlers
Also fixed the iter->stamp stuff to change correctly when an iterator becomes invalid.
2010-07-08 21:03:39 +02:00
Johannes Schmid
fbc3bed1a9 glade-widget: Emit the add/remove/change-signal-handler signals with actual handler
This makes the implementation of the signal model much easier.
2010-07-06 19:57:33 +02:00
Johannes Schmid
5da94940c9 signal-model: Implemented signal model inside GladeSignalEditor
This is the initial implementation, it is able to show all signals and also shows a dummy
signal handler to be able to add new handlers to a signal.
2010-06-29 21:41:03 +02:00
Johannes Schmid
ea640a6a71 Merge branch 'master' into signal-tree-model
Conflicts:
	gladeui/Makefile.am
2010-06-06 22:35:46 +02:00
Johannes Schmid
b9962332ff signal-model: test code 2010-06-06 22:34:43 +02:00
Johannes Schmid
79a8025e0f signal-model: Initial implementation
Doesn't work yet...
2010-06-06 22:34:23 +02:00
812 changed files with 526270 additions and 287702 deletions

37
.gitignore vendored
View File

@ -1,36 +1 @@
*.o _build
*.a
*.lo
*.la
*.stamp
*.bak
*.tmp
.tm*
~*
.libs
.deps
Makefile
Makefile.in
/configure.lineno
/aclocal.m4
/autom4te.cache
/config.*
/configure
/depcomp
/stamp*
/compile
/*.tar.gz
/junk
/install-sh
/intltool-*
/libtool
/ltmain.sh
/missing
/mkinstalldirs
/gtk-doc.make
/gnome-doc-utils.make

15
.gitlab-ci.yml Normal file
View File

@ -0,0 +1,15 @@
include: 'https://gitlab.gnome.org/GNOME/citemplates/raw/master/flatpak/flatpak_ci_initiative.yml'
flatpak:
extends: '.flatpak'
variables:
MANIFEST_PATH: "org.gnome.Glade.json"
RUNTIME_REPO: "https://nightly.gnome.org/gnome-nightly.flatpakrepo"
FLATPAK_MODULE: "glade"
APP_ID: "org.gnome.Glade"
BUNDLE: "glade-git.flatpak"
nightly:
extends: '.publish_nightly'
dependencies: ['flatpak']
needs: ['flatpak']

14
AUTHORS
View File

@ -1,7 +1,9 @@
Chema Celorio <chema@ximian.com> Chema Celorio <chema@ximian.com>
Joaquin Cuenca Abela <e98cuenc@yahoo.com>
Thanks to : Paolo Borelli <pborelli@katamail.com>
Michal Palczewski <mpalczew@u.washington.edu> - Widget tree window Archit Baweja <bighead@users.sourceforge.net>
Archit Baweja <bighead@users.sourceforge.net> - New widgets, _get_type Shane Butler <shane_b@operamail.com>
Shane Butler <shane_b@operamail.com> - Glade Widget signals editor Tristan Van Berkom <tvb@gnome.org>
Tristan Van Berkom <tvb@gnome.org> - Non widget support. Ivan Wong <email@ivanwong.info>
Juan Pablo Ugarte <juanpablougarte@gmail.com>
Vincent Geddes <vincent.geddes@gmail.com>

0
BUGS
View File

75
CONTRIBUTING.md Normal file
View File

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

View File

@ -1,12 +1,12 @@
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
Version 2, June 1991 Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc. Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed. of this license document, but changing it is not allowed.
Preamble Preamble
The licenses for most software are designed to take away your The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public freedom to share and change it. By contrast, the GNU General Public
@ -15,7 +15,7 @@ software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to the GNU Lesser General Public License instead.) You can apply it to
your programs, too. your programs, too.
When we speak of free software, we are referring to freedom, not When we speak of free software, we are referring to freedom, not
@ -55,8 +55,8 @@ patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and The precise terms and conditions for copying, distribution and
modification follow. modification follow.
GNU GENERAL PUBLIC LICENSE GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains 0. This License applies to any program or other work which contains
@ -110,7 +110,7 @@ above, provided that you also meet all of these conditions:
License. (Exception: if the Program itself is interactive but License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on does not normally print such an announcement, your work based on
the Program is not required to print an announcement.) the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program, identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in and can be reasonably considered independent and separate works in
@ -168,7 +168,7 @@ access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not distribution of the source code, even though third parties are not
compelled to copy the source along with the object code. compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program 4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is otherwise to copy, modify, sublicense or distribute the Program is
@ -225,7 +225,7 @@ impose that choice.
This section is intended to make thoroughly clear what is believed to This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License. be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in 8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License original copyright holder who places the Program under this License
@ -255,7 +255,7 @@ make exceptions for this. Our decision will be guided by the two goals
of preserving the free status of all derivatives of our free software and of preserving the free status of all derivatives of our free software and
of promoting the sharing and reuse of software generally. of promoting the sharing and reuse of software generally.
NO WARRANTY NO WARRANTY
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
@ -277,64 +277,4 @@ YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
POSSIBILITY OF SUCH DAMAGES. POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
<one line to give the program's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
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., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Also add information on how to contact you by electronic and paper mail.
If the program is interactive, make it output a short notice like this
when it starts in an interactive mode:
Gnomovision version 69, Copyright (C) year name of author
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
This is free software, and you are welcome to redistribute it
under certain conditions; type `show c' for details.
The hypothetical commands `show w' and `show c' should show the appropriate
parts of the General Public License. Of course, the commands you use may
be called something other than `show w' and `show c'; they could even be
mouse-clicks or menu items--whatever suits your program.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the program, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
`Gnomovision' (which makes passes at compilers) written by James Hacker.
<signature of Ty Coon>, 1 April 1989
Ty Coon, President of Vice
This General Public License does not permit incorporating your program into
proprietary programs. If your program is a subroutine library, you may
consider it more useful to permit linking proprietary applications with the
library. If this is what you want to do, use the GNU Library General
Public License instead of this License.

View File

@ -1,15 +1,15 @@
GNU LIBRARY GENERAL PUBLIC LICENSE GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991 Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc. Copyright (C) 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed. of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is [This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.] numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble Preamble
The licenses for most software are designed to take away your The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public freedom to share and change it. By contrast, the GNU General Public
@ -99,7 +99,7 @@ works together with the library.
Note that it is possible for a library to be covered by the ordinary Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one. General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which 0. This License Agreement applies to any software library which
@ -411,7 +411,7 @@ decision will be guided by the two goals of preserving the free status
of all derivatives of our free software and of promoting the sharing of all derivatives of our free software and of promoting the sharing
and reuse of software generally. and reuse of software generally.
NO WARRANTY NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW. WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
@ -434,49 +434,4 @@ FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
DAMAGES. DAMAGES.
END OF TERMS AND CONDITIONS END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Libraries
If you develop a new library, and you want it to be of the greatest
possible use to the public, we recommend making it free software that
everyone can redistribute and change. You can do so by permitting
redistribution under these terms (or, alternatively, under the terms of the
ordinary General Public License).
To apply these terms, attach the following notices to the library. It is
safest to attach them to the start of each source file to most effectively
convey the exclusion of warranty; and each file should have at least the
"copyright" line and a pointer to where the full notice is found.
<one line to give the library's name and a brief idea of what it does.>
Copyright (C) <year> <name of author>
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Library General Public
License as published by the Free Software Foundation; either
version 2 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
Library General Public License for more details.
You should have received a copy of the GNU Library General Public
License along with this library; if not, write to the
Free Software Foundation, Inc., 59 Temple Place - Suite 330,
Boston, MA 02111-1307 USA.
Also add information on how to contact you by electronic and paper mail.
You should also get your employer (if you work as a programmer) or your
school, if any, to sign a "copyright disclaimer" for the library, if
necessary. Here is a sample; alter the names:
Yoyodyne, Inc., hereby disclaims all copyright interest in the
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
<signature of Ty Coon>, 1 April 1990
Ty Coon, President of Vice
That's all there is to it!

12412
ChangeLog

File diff suppressed because it is too large Load Diff

BIN
ChangeLog.old.gz Normal file

Binary file not shown.

69
HACKING
View File

@ -1,69 +0,0 @@
Mailing List
~~~~~~~~~~~~
Glade-3 discussion takes place on glade-devel@ximian.org
To subscribe or to consult archives visit
http://lists.ximian.com/mailman/listinfo/glade-devel
When posting to the list include [glade3] in the subject,
since the list is also used for Glade-2 developement.
Bugzilla
~~~~~~~~
Glade-3 bugs are tracked in the glade3 module of
http://bugzilla.gnome.org
SVN
~~~
The Glade-3 repository is hosted at svn.gnome.org
To check out a copy of Glade-3 you can use the following commands:
svn checkout svn://svn.gnome.org/svn/glade3 glade3
Patches
~~~~~~~
Patches must be in the unified format (diff -u) and must include a
ChangeLog entry. Please send all patches to bugzilla.
Currently svn only permits this with the following command:
svn diff --diff-cmd=/usr/bin/diff -x -uBp . > file.patch
Coding Style
~~~~~~~~~~~~
Code in Glade-3 should follow the GNOME Programming Guidelines
(http://developer.gnome.org/doc/guides/programming-guidelines/),
basically this means being consistent with the sorrounding code.
The only exception is that we prefer having braces always on a new line
e.g.:
if (...)
{
...
}
Note however that a lot of the current codebase still uses the following
style:
if (...) {
...
}
Over time we'll migrate to the preferred form.
Naming conventions:
- function names should be lowercase and prefixed with the
file name (or, if the function is static and the name too long,
with an abbreviation), e.g:
glade_project_window_my_function ()
gpw_my_loooooooooong_named_fuction ()
- variable names should be lowercase and be short but self explanatory;
if you need more than one word use an underscore, e.g:
my_variable
Also try to order your functions so that prototypes are not needed.

236
INSTALL
View File

@ -1,236 +0,0 @@
Installation Instructions
*************************
Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005 Free
Software Foundation, Inc.
This file is free documentation; the Free Software Foundation gives
unlimited permission to copy, distribute and modify it.
Basic Installation
==================
These are generic installation instructions.
The `configure' shell script attempts to guess correct values for
various system-dependent variables used during compilation. It uses
those values to create a `Makefile' in each directory of the package.
It may also create one or more `.h' files containing system-dependent
definitions. Finally, it creates a shell script `config.status' that
you can run in the future to recreate the current configuration, and a
file `config.log' containing compiler output (useful mainly for
debugging `configure').
It can also use an optional file (typically called `config.cache'
and enabled with `--cache-file=config.cache' or simply `-C') that saves
the results of its tests to speed up reconfiguring. (Caching is
disabled by default to prevent problems with accidental use of stale
cache files.)
If you need to do unusual things to compile the package, please try
to figure out how `configure' could check whether to do them, and mail
diffs or instructions to the address given in the `README' so they can
be considered for the next release. If you are using the cache, and at
some point `config.cache' contains results you don't want to keep, you
may remove or edit it.
The file `configure.ac' (or `configure.in') is used to create
`configure' by a program called `autoconf'. You only need
`configure.ac' if you want to change it or regenerate `configure' using
a newer version of `autoconf'.
The simplest way to compile this package is:
1. `cd' to the directory containing the package's source code and type
`./configure' to configure the package for your system. If you're
using `csh' on an old version of System V, you might need to type
`sh ./configure' instead to prevent `csh' from trying to execute
`configure' itself.
Running `configure' takes awhile. While running, it prints some
messages telling which features it is checking for.
2. Type `make' to compile the package.
3. Optionally, type `make check' to run any self-tests that come with
the package.
4. Type `make install' to install the programs and any data files and
documentation.
5. You can remove the program binaries and object files from the
source code directory by typing `make clean'. To also remove the
files that `configure' created (so you can compile the package for
a different kind of computer), type `make distclean'. There is
also a `make maintainer-clean' target, but that is intended mainly
for the package's developers. If you use it, you may have to get
all sorts of other programs in order to regenerate files that came
with the distribution.
Compilers and Options
=====================
Some systems require unusual options for compilation or linking that the
`configure' script does not know about. Run `./configure --help' for
details on some of the pertinent environment variables.
You can give `configure' initial values for configuration parameters
by setting variables in the command line or in the environment. Here
is an example:
./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
*Note Defining Variables::, for more details.
Compiling For Multiple Architectures
====================================
You can compile the package for more than one kind of computer at the
same time, by placing the object files for each architecture in their
own directory. To do this, you must use a version of `make' that
supports the `VPATH' variable, such as GNU `make'. `cd' to the
directory where you want the object files and executables to go and run
the `configure' script. `configure' automatically checks for the
source code in the directory that `configure' is in and in `..'.
If you have to use a `make' that does not support the `VPATH'
variable, you have to compile the package for one architecture at a
time in the source code directory. After you have installed the
package for one architecture, use `make distclean' before reconfiguring
for another architecture.
Installation Names
==================
By default, `make install' installs the package's commands under
`/usr/local/bin', include files under `/usr/local/include', etc. You
can specify an installation prefix other than `/usr/local' by giving
`configure' the option `--prefix=PREFIX'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
pass the option `--exec-prefix=PREFIX' to `configure', the package uses
PREFIX as the prefix for installing programs and libraries.
Documentation and other data files still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=DIR' to specify different values for particular
kinds of files. Run `configure --help' for a list of the directories
you can set and what kinds of files go in them.
If the package supports it, you can cause programs to be installed
with an extra prefix or suffix on their names by giving `configure' the
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
Optional Features
=================
Some packages pay attention to `--enable-FEATURE' options to
`configure', where FEATURE indicates an optional part of the package.
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
is something like `gnu-as' or `x' (for the X Window System). The
`README' should mention any `--enable-' and `--with-' options that the
package recognizes.
For packages that use the X Window System, `configure' can usually
find the X include and library files automatically, but if it doesn't,
you can use the `configure' options `--x-includes=DIR' and
`--x-libraries=DIR' to specify their locations.
Specifying the System Type
==========================
There may be some features `configure' cannot figure out automatically,
but needs to determine by the type of machine the package will run on.
Usually, assuming the package is built to be run on the _same_
architectures, `configure' can figure that out, but if it prints a
message saying it cannot guess the machine type, give it the
`--build=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name which has the form:
CPU-COMPANY-SYSTEM
where SYSTEM can have one of these forms:
OS KERNEL-OS
See the file `config.sub' for the possible values of each field. If
`config.sub' isn't included in this package, then this package doesn't
need to know the machine type.
If you are _building_ compiler tools for cross-compiling, you should
use the option `--target=TYPE' to select the type of system they will
produce code for.
If you want to _use_ a cross compiler, that generates code for a
platform different from the build platform, you should specify the
"host" platform (i.e., that on which the generated programs will
eventually be run) with `--host=TYPE'.
Sharing Defaults
================
If you want to set default values for `configure' scripts to share, you
can create a site shell script called `config.site' that gives default
values for variables like `CC', `cache_file', and `prefix'.
`configure' looks for `PREFIX/share/config.site' if it exists, then
`PREFIX/etc/config.site' if it exists. Or, you can set the
`CONFIG_SITE' environment variable to the location of the site script.
A warning: not all `configure' scripts look for a site script.
Defining Variables
==================
Variables not defined in a site shell script can be set in the
environment passed to `configure'. However, some packages may run
configure again during the build, and the customized values of these
variables may be lost. In order to avoid this problem, you should set
them in the `configure' command line, using `VAR=value'. For example:
./configure CC=/usr/local2/bin/gcc
causes the specified `gcc' to be used as the C compiler (unless it is
overridden in the site shell script). Here is a another example:
/bin/bash ./configure CONFIG_SHELL=/bin/bash
Here the `CONFIG_SHELL=/bin/bash' operand causes subsequent
configuration-related scripts to be executed by `/bin/bash'.
`configure' Invocation
======================
`configure' recognizes the following options to control how it operates.
`--help'
`-h'
Print a summary of the options to `configure', and exit.
`--version'
`-V'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`--cache-file=FILE'
Enable the cache: use and save the results of the tests in FILE,
traditionally `config.cache'. FILE defaults to `/dev/null' to
disable caching.
`--config-cache'
`-C'
Alias for `--cache-file=config.cache'.
`--quiet'
`--silent'
`-q'
Do not print messages saying which checks are being made. To
suppress all normal output, redirect it to `/dev/null' (any error
messages will still be shown).
`--srcdir=DIR'
Look for the package's source code in directory DIR. Usually
`configure' can determine that directory automatically.
`configure' also accepts some other, not widely useful, options. Run
`configure --help' for more details.

View File

@ -1,22 +1,22 @@
Glade3 internals Glade internals
~~~~~~~~~~~~~~~~ ~~~~~~~~~~~~~~~
about this document about this document
=================== ===================
This is a short description of the designs goals and of the This is a short description of the designs goals and of the
implementation choices of Glade3. It isn't complete, but implementation choices of Glade. It isn't complete, but
I hope that it may be useful. I hope that it may be useful.
* Note: not only I'm not the original author/designer of * Note: not only I'm not the original author/designer of
glade3, but also I have not touched glade3 for many months. glade, but also I have not touched glade for many months.
The only reason why I'm writing this doc is that glade3 development The only reason why I'm writing this doc is that glade development
has been stagnating for a long time... now it seems that there are some has been stagnating for a long time... now it seems that there are some
developers interested in resuming work on it, so I thought that it was developers interested in resuming work on it, so I thought that it was
right to put down some notes on what I remember to ease their way right to put down some notes on what I remember to ease their way
through the glade3 codebase. through the glade codebase.
Everyone who spots errors and inaccuracies in this doc, or who wants to Everyone who spots errors and inaccuracies in this doc, or who wants to
add informations to it, should feel free to improve it! add informations to it, should feel free to improve it!
@ -35,8 +35,8 @@ the description of a Gtk+ GUI to an xml file.
* glade is a tool to create and edit the desired interface in an easy * glade is a tool to create and edit the desired interface in an easy
way and then automatically serialize it to the xml file. way and then automatically serialize it to the xml file.
Glade3 is a complete rewrite of the original glade and takes advantage Glade is a complete rewrite of the original glade and takes advantage
of the introspection properties of the GTK+2 toolkit. of the introspection properties of the GTK toolkit.

View File

@ -1,3 +1,11 @@
Tristan Van Berkom Tristan Van Berkom
E-mail: tristan.van.berkom@gmail.com E-mail: tristan.van.berkom@gmail.com
Userid: tvb Userid: tvb
Juan Pablo Ugarte
E-mail: juanpablougarte@gmail.com
Userid: jpu
Alberto Fanjul
E-mail: albfan@gnome.org
Userid: albfan

View File

@ -1,23 +0,0 @@
SUBDIRS = po data gladeui src plugins doc
if HAVE_GNOME_DOC_UTILS
SUBDIRS += help
endif
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST = \
autogen.sh \
COPYING.GPL \
COPYING.LGPL \
intltool-extract.in \
intltool-merge.in \
intltool-update.in \
gnome-doc-utils.make
DISTCLEANFILES = intltool-extract \
intltool-merge \
intltool-update \
gnome-doc-utils.make
DISTCHECK_CONFIGURE_FLAGS = --disable-scrollkeeper --enable-gtk-doc

856
NEWS
View File

@ -1,85 +1,796 @@
=========== ============
Glade 3.8.1 Glade 3.40.0
=========== ============
- Correctly detect the required devhelp version (Javier Jardón) - Remove survey
- Sort objects in output by property reference, ensures a - Add user manual menu item (Sabri Ünal)
GtkTreeModelFilter gets serialized after its 'child-model' (fixes bug 657164) - 'Clear' action in "Setup Text Attributes" dialog now clears only selected attributes (crvi)
- Fixed crashers when performing "Remove Parent" (bug 657338) - Fix issue #502 sync draw-indicator on setting xalign (Caolán McNamara)
- Ensure 'use-action-appearance' is serialized - Fix issue #499 and #509 "Drop overzealous check using only the first child"
before 'related-action' (bug 658497) - Fix Segfault in gnome-builder when widget doesn't have a name (Peter Maatman)
- Properly escape special characters while serializing - Fix issue #373 "Move separator in hamburger menu one up, to be consistent with other GNOME applications"
property values (bug 654609 - Fabien Parent) - Fix build against Python 3.9
- Fix GladeProject to notify "row-has-child-toggled", (fixes bug 651673). - 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
============
- Load template files as new GTypes and add them to "User templates" widget group automatically without the need of a catalog
- Added JavaScript widget support
- Use version data from gir to improve deprecation/target tests
- Implement survey using new backend at surveys.gnome.org
- Keep survey state in config file
- Associate with application/x-gtk-builder (Caolán McNamara)
- Project properties dialog improvements. (Use headerbar, stack and stach switcher, add warnings textview)
- Improve toolkit target version selection in project properties dialog
- Improve treemodel char data type handling
- Remove autotools (Iñigo Martínez)
- New gjs-1.0 1.64 dependency
- Bump Gtk dependency to 3.24
- Bump webkit2gtk dependency to 2.28
- Fixed all compiler/gir warnings
- Issue #385: GtkCellRendererText causes deprecated warnings for ghost properties
- Issue #444: show-emoji-icon is missing "minimum version"/since constraint
- Issue #367: Glade removes double/triple slashes from URLs
- Issue #452: GtkComboBox cell renderers editor is too hard to discover
- Issue #363: Toplevel windows are leaked when closing a project
- Issue #462: Crash when creating a new GtkAssistant and pressing it
- Issue #463: Specify file on command line
- Issue #461: Glade resets number of rows and columns in GtkGrid
- Issue #460: 3.37.0: test suite fails because glade uses incorrectly asserts in test units
- Issue #412: Fix inconsistent "top-level", "top level", "toplevel" spelling in translatable strings
- Issue #281: GladeProperty: Do not replace - with _
- Issue #389: GladeProject: show message on invalid GtkBuilder file
- Issue #446: GladeGtkListBox: fix size request issue
- Issue #432: GladeStandarStock, GladeStandarStockImage: fix get_type() functions for introspection
- Issue #447: GladeGtkWindow: Fix CSD support
- Issue #456: Utils: use g_param_spec_uchar() for uchar types
- Issue #459: Gtk catalog: add GtkRecentChooserMenu to Display group
- Issue #433: Implement survey using new backend at surveys.gnome.org
- Build: use gtk-mac-integration only when creating bundle (Tom Schoonjans)
- Ignore locale when saving numeric values (Alberto Fanjul)
- Remove config for external builds (Alberto Fanjul)
- Python plugin: fix linking error
- Tests: add python and javascript test case
- gtk: Add GtkScrolledWindow propagate-natural-width property (Corentin Noël)
- GladeScrolledWindowEditor: Squeeze width/height properties in two columns
- Gtk plugin: add missing displayable values
- Webkit2gtk plugin: add missing displayable values and sandbox web view
- dtd: Make init-function an element, not an attribute (Adrien Plazas)
Added/updated translations
- ca, courtesy of Gil Forcada
- ca, courtesy of Miquel-Àngel Burgos i Fradeja
- cs, courtesy of Marek Černocký
- da, courtesy of Ask Hjorth Larsen
- da, courtesy of Last-Translator: scootergrisen
- de, courtesy of Tim Sabsch
- en_GB, courtesy of Bruce Cowan
- es, courtesy of Daniel Mustieles
- eu, courtesy of Asier Sarasua Garmendia
- fr, courtesy of Thibault Martin
- gl, courtesy of Fran Dieguez
- hi, courtesy of Last-Translator:Sunny Sharma
- hu, courtesy of Balázs Úr
- id, courtesy of Kukuh Syafaat
- kk, courtesy of Baurzhan Muftakhidinov
- ko, courtesy of Changwoo Ryu
- lt, courtesy of Aurimas Černius
- pl, courtesy of Piotr Drąg
- pt_BR, courtesy of Rafael Fontenelle
- ro, courtesy of Florentina Mușat
- sl, courtesy of Matej Urbančič
- sv, courtesy of Anders Jonsson
- tr, courtesy of Emin Tufan Çetin
- uk, courtesy of Yuri Chornoivan
- zh_CN, courtesy of Mandy Wang
============
Glade 3.36.0
============
- widget: canonicalize support-warning property name
- tests: Include back GtkTreeViewColumn
- gtk+: properly cast to avoid warnings
- gtk+: workaround truncation warning by being safer
- gladeui: remove unused type_func variable
- gladeui: Ensure that we write the "type-func" property when a get-type-function is defined in the catalog
- Allow to specify placeholder to GtkListBox
- gtk+: Allow to use GtkResponseType with GtkDialog and GtkInfobar buttons
- gladeui: Change the boolean parsing logic to be the same as Gtk
- Appdata: update app-id
- Update FSF address
- gladeui: Modernize GladeSignalEditor codebase
- RDNN appdata & desktop file
- gtk+: Add homogeneous property to GtkStackSwitcher
- gladeui: Fix wrong pointer convertion in GladeDesignView
- gtk+: Provide Gtk 3.22 properties for GtkScrolledWindow
- gtk+: Add missing 3.22 enum/flag values
- gladeui: Modernize GladeWidgetAdaptor definition
- gtk+: Keep internationalization context in Atk properties
- gladeui: Plug tiny leak on Drag & Drop
- gladeui: Fix crash on drag-n-drop
- gladeui: fix several tiny memory leaks found with valgrind
- Make it easier to track GladeXML elements and be GObject Introspection friendly by registering boxed types
- gladeui: Replace the last occurences of GladeWidgetClass with GladeWidgetAdaptor in the comments
- gladeui: Use G_DECLARE_FINAL_TYPE for GladeObjectStub
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeNamedIconChooserDialog
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeInspector
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeEditorProperty
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeEditor
- gladeui: Use G_DECLARE_INTERFACE for GladeEditable
- gladeui: Use G_DECLARE_INTERFACE for GladeDrag
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeDesignView
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeDesignLayout
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeCommand
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeClipboard
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeCellRendererIcon
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeBaseEditor
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeApp
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeAdaptorChooserWidget
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeEditorSkeleton
- gladeui: Use G_DECLARE_DERIVABLE_TYPE for GladeEditorTable
- dnd: Enable Drag&Drop on wayland
- gladeui: remove implicit cast in assignment
- build: remove G_CONST_RETURN usage
- gladeui: ignore various GParameter deprecations
- Fix on debug traces after rename GladePropertyClass to GladePropertyDef
- meson: Activate enable-debug variables
- Prevent dragging an ancestor inside a child
- GladePopup: Clear add item when adding as toplevel
- GtkImage: Fix icon size being reset
- build: Fix OSX support in meson
- build: Do not use a system variable only for Windows
- Fix loading dylibs on OSX
- Set the "About Dialogue" as modal
- Fix split sentense in GladeProject
- Adding "Glade" to "About" section.
- Respect the Glade namespace for macros and defines
- Rename *Klass to *Class as there are no name collision anymore
- Fix two memory leaks discovered with valgrind
- GladeSignalDef: fix documentation for glade_signal_def_set_deprecated
- Rename GWActionClass to GladeWidgetActionDef to use the right namespace
- Rename GladePropertyClass to GladePropertyDef and declare it as boxed
- Rename GladeSignalClass to GladeSignalDef and declare it as boxed
- Create GladeSettings to hold the settings instead of using a Gtk widget for holding it
- Add GDK_VERSION_MIN_REQUIRED
- Utils: get the absolute path but avoid accessing it
- Fix several compiler warnings
- Replace some functions by Gtk 3.22 ones
- GladeSignalClass: rename glade_signal_class_get_type
- Allow to use GtkFileChooserNative
- GladeProperty: Keep the bind-source, bind-property and bind-flags elements
- Couple of fixes for memory leaks found with valgrind
- GtkLinkButton: allow to edit the label
- gladeui: Fix several memory leaks with GladeWidgetAdaptor
- gladeui: Fix leak of create_type in GladePropertyClass
- gladeui: fix memory leak in GWActionClass
- introspection: Add many annotations to sources
- No wide handles in `center_paned` and `left_paned`
- flatpak: Set meson as buildsystem
- build: Port to meson build system
- gtk+: Add deprecated flag to GtkButton and GtkImage stock properties
- doc: remove missing xml files
- doc: Modernize the documentation
- docs: Make some changes to fix warnings with the documentation
- Add metadata information about releases
- i18n: Do not use input file for not translated files
- Fix xgettext string extraction for catalogs
- snap: update for icon filename changes
- Add translator comments to the .desktop file
- gladeui-2.0.pc: Data paths relative to datadir
- icon: update app icon
- GladeProject: escape markup in parser errors
- Use autoreconf instead deprecated gnome-common
- Stop defaulting missing images to deprecated stock icons
- Migrate from intltool to gettext
- gladeui: Fix GIR package reference and add c-include
- dtd: Add several new elements
- Add initial implementation of Automatic Templates
- GladeIntro: fix regresion in find_widget_forall()
- GladeProject: add handler signals
- GladeEditor: expose signal editor widget as a property
- GladeIntro: use name and buildable name to find widgets
- GladeWindow: simplify pointer mode actions
- GladeWindow: move actions to GtkApplication
- GladeEPropAttrs: use sane adjustment values for size and scale attrs
- GtkActionable: add action-target property
- Fix tab/space identation
- GladeWidgetAdaptor: add glade_widget_adaptor_get_display_name()
- GladeWindow: port to GtkApplication
- Remove GladeInstantiable prefix from UI
- GladeGtkBin: add initial support for GtkBin abstract class
- GladeWidget: add support for abstract classes
- widget-editor: Replace margin right/left for end/start
- GladeModelButton: improve editor
- GladeEditorProperty, GladePropertyClass, GladeWidgetAdaptor:
- GladeModelButton: enable icon/iconic properties
- Gtk plugin: add support for GFileIcon
- Add initial support for GFile type properties
- Bump Gtk required version to 3.22
- GladeGtkBox: improve children sort function
- GladeGtkHeaderBar: Improve position packing property handling
- Add OARS tags
- Gtk catalog: mark GtkImageMenuItem as deprecated since 3.10
- GladeWidgetAdaptor: added deprecated-since metadata
- GladeImageItemEditor: use display name for commands names
- GladeCommand: ensure widget name on object properties
- GladeGtkAdjustment: add digits virtual property
- GladeEPropNumeric: bind precision property to spin button
- GladeProperty: add precision property
- GladePropertyClass: round floating point values to epsilon
- ui/widget: Make template ver# warning more useful
- GladeCommand: ignore special child types placeholders in add command. GladeGtkWindow: mark titlebar placeholder as special child type.
- Gtk Catalog: add back GtkStatusbar
- GladeGtkHeaderBar: mark title and subtitle as translatable
- GladeGtkDialog: chain up post_create() method
- GladeGtkWindow: remove get_children() method
- GladeAdaptorChooser: add missing translation domain
- GladeGtkWidget: save accessible-role atk property
- GladeGtkWindow: fix regression in csd handling
============
Glade 3.22.0
============
- Fix bug 774994 "in treeview columns editor contextual menu does nothing"
- Simplified GladeBaseEditor
- Fix formatting / layout of project verification details (Daniel P. Berrange)
- Widget chooser: activate treeview with single click and enable Drag & Drop
- Fix Design view selected state
- Fixes bug 793036 "GtkCellRenderer Properties not loaded from glade file" (peter Onion)
- Fix bug in action widgets response-id parsing on 32bits system
- Fix bug 772485 "File Name property of GtkImage is copied to all other GtkImage"
- GladeProject: always treat resource properties as relative
- Fix bug 793652 "Crash when deleting a list"
- Fix bug 793757 "Gtk-CRITICAL **: _gtk_window_add_popover: assertion '_gtk_widget_get_parent (popover) == NULL' failed"
- Add GDK_SUPER_MASK accelerator handling (Sebastian Stang)
- Fix bug #778537 "ActionBar need placeholder"
- Fix bug #794141 - Gtk.IconView disappeared from glade (Albfan)
============
Glade 3.21.0
============
- Main window UI overhaul
- An enhanced enum integer editor based on patch contributed by Lukas K
- Added GtkGLArea object to gtk+ catalog
- Initial support for WebKit2GTK+ library
- Add GtkStackSidebar to control and display widget group
- Bug 767812 "Please don't list 'Taiwan' as 'Taiwan, Province of China' in the country list"
- Bug 763188 - Use correct tag when referring to Palette (Sebastian Rasmussen)
- Fix typo in translatable string; fixing old bug 746531 (Tristan)
- Fix markup typos (Andre Klapper)
============
Glade 3.20.2
============
- Fix bug 763624 "Glade interface designer eating ram & cpu" (Arnaud Rebillout)
- Install appstream metadata to non-deprecated location (Jeremy Bicha)
- Fix bug 790452 "Glade saves invalid GtkBuilder XML"
- Fix bug 782645 "GtkLabel xalign and halign appeared in GTK+ 3.16 and are not deprecated" (Arnaud Rebillout)
- Fix bug 773669 "add background class to GladeDesignLayout children" (Lukas K)
============
Glade 3.20.1
============
- Fixed glib g_ptr_array_find() name clash
- Fixed survey css matching error on CSD
- Fixed bug #773997 "GLADE 3.20: crash on changing ToolItem type"
- Fixes bug #765562 "Using Spacebar to change menu selction causes crash"
- Fixed "format not a string literal" warnings (Bastien Nocera)
- Fixed bug #765885 "client side decoration, no space to add header bar"
- Fixed bug #589306 - Clicking in ... swap order of accelerators (Roberto Guido)
- Fixed bug #761651 "[Wayland] glade previewer is resizing windows until it crashes gnome-shell"
============
Glade 3.20.0
============
- Workspace layout: render frame and selection box with CSS
- GtkWindow: don't set the same titlebar multiple times (Ben Iofel)
- Fixed bug 761839: Fix 'glade' command name in user manual (Anders Jonsson)
- Fixed bug 536840 - Save palette small icon preference (Tristan)
- Fixed bug 430445 - null string default title for GtkFileChooserButton (Tristan)
- Integrate new properties in editor for GtkLabel, GtkTextView, GtkPopover, GtkStackSwitcher (Tristan)
- Fixed bug 750985 - GtkMisc property deprecations (Tristan)
- Fixed bug 759872 - Show popovers hidden by model buttons (Tristan)
- Fixed bug 751234 - Ignore tearoff-state property in the workspace (Tristan)
- Fixed bug 759455 - Avoid showing window decorations in Glade's workspace (Tristan)
- Fixed bug 759395 - Ignore ESC key press from popovers (Tristan)
- Fixed bug 760610: Disable scroll events on property editor widgets (Tristan)
- Support id-less builder files (DX hackfest)
- Added missing tags to the AppData file (Richard Hughes)
- Fixed bug 759847 "Don't crash when popover menu children have no visible-submenu set" Руслан Ижбулатов
- Added support for GtkActionBar and GtkFlowBox (Matthias Clasen)
- Main UI frontend: Use wide paned handles (Tristan)
- Fixed warning about imbalanced children in GtkNotebook support (Tristan)
- Added support for GtkPopoverMenu and GtkModelButton (Matthias Clasen)
- Added support for GtkPopover bug 740104 (Matthias Clasen)
- Fixed bug 754131 "Avoid crashes when loading boxes with center-child children"
- Added <kudos> section to app data as requested by Richard Hughes.
- Added missing displayable values bugs 758290, 758289, 758288, 758287 (Matthias Clasen)
- Deprecate GtkAction, GtkActivatable, and friends bug 757609 (Ben Iofel)
- Avoid GTK+ style context warnings bugs 758296, 758297, 758299, 758300 (Matthias Clasen)
- Drop deprecated style properties in GladeCloseButton bug 758280 (Matthias Clasen)
- Replace use of deprecated gdk_cursor_new (Ben Iofel)
- Add "Stack" to "Add parent" menu bug 754030 (Florian Richter)
- Fixed bug 741923 "build: Add dependency on libm for floor() and ceil()" (Philip Withnall)
============
Glade 3.19.0
============
- Bug 732328 "New: add python3 support" (Bohuslav "Slavek" Kabrda)
- Added new symbolic variant of the app icon (747024 - Jakub Steiner)
- Bug #741165 "Previewer crashes when taking PNG screenshot"
- Added GtkSidebarWidget support (Matthias Clasen)
- Added GtkStack and GtkStackSwitcher support (738480 - Matthias Clasen)
- Added GtkHeaderBar support (bug 700914 - Matthias Clasen)
- Improved undo/redo command list handling.
- Added GtkBox center-widget support (bug 738473 - Matthias Clasen)
- Added GtkSearchBar support (bug 738493 - Matthias Clasen)
- Support CSD windows (Bug 700914 - Matthias Clasen)
- Use current gtk-mac-integration API (bug 738339 - Philip Chimento)
- Fixed bug 732575 "Changed the type hint on the "Edit Separately" window to 'utility'" (Tristan)
- Fixed bug "Missing plural form for UI string: emited %d time(s)"
- Avoid reading freed data in glade_project_read_requires (David Shea)
- Added class chooser popover to workspace. (Bug 708146 "Catalog search entry")
- Added GThemedIcon support.
- GladePreviewer: show handler information in infobar when a signal is emited.
- Migrated UI from stock icons to icon names.
- Seal needed deprecated API and replaced deprecared API.
- GladeWindow: only show found recent files.
- Added GtkLockButton support.
============
Glade 3.18.3
============
- Fixed property editor focus lost bug with construct-only properties
- GladePreviewer: Fixed bug previewing templates.
- Fixed Bug 727914 "Logo is not shown in About-dialog"
- Fixed Bug 353002 "wrong cursor over widgets"
- Fixed bug 728377 "sensitivity of mnemonic-widget entry is not correct when loading file" (David Shea)
- Fixed bug 728348 "impossible to set non-integer values for scale in text attribute dialog" (David Shea)
- Fixed bug 726410 "Save palette appearance between sessions" (TingPing)
============
Glade 3.18.2
============
- Added dialog at start up to advertise user survey.
Fixes bug 726800 "New: UI break: add dialog to advertise user survey"
- Fixes bug 727992 "Editing UI and saving does not remove deleted Combo with Entry"
- Fixed bug 364064 "Property Editor / Common tab: width & height request checkboxes have no effect"
============
Glade 3.18.1
============
- Fixed Bug 727014 "32 bit builds fail with -Werror=format-security"
- GtkDialog: disabled use-header-bar property untill Glade supports GtkHeaderBar
- Fixed bug in numeric property editors (Box size)
============
Glade 3.18.0
============
- Added License property to Glade project
- Added realtime preview for custom CSS
- Added support for previewing templates
- glade-previewer added --slideshow option
- Fixed Bug 702314 "Cancelling an Add Parent action is destructive"
- pango attribute editor: don't write on cancel for color/font (Timm Bäder)
- Fixed bug 711568 "[PATCH] glade crashes upon startup" (thanks to Lubomir Rintel)
- Fixed Bug 712289 "Glade silently fails to open malformed ui file"
- Sort object dependancy before saving using a topological sorting algorithm
- Fixed Bug 709609 "[PATCH] Change way of sorting before writing XML output."
- Fixed Bug 711858 "editing glade project results in long CPU usage spikes after upgrading to 3.16 and GTK+3.10"
- Fixed <requires> tag output
- Fixed cellrenderer model column combobox chooser.
- Fixed issue with numeric property editors.
- Restored shortcuts function in workspace.
- Added new jhbuild based bundling system for 64bit linux bundles. (Tristan Van Berkom)
- Bug 720585 - Fix order of customized property output.
- gladeui: fix a pair of printf security problems (Ryan Lortie)
- Added Registration & User Survey Dialog in Help menu
- Fixed bug 723819 "Correct bounds checking for design view highlight" (Chris Johns)
- Fixed bug #721098 "Anjuta hangs when opening project"
- GtkGrid: Don't save width/height at their default values (Kalev Lember)
============
Glade 3.16.0
============
- Added AppData for gnome-software to pick up glade
Fixes bug 708641 "Please include an AppData file"
============
Glade 3.15.4
============
- Fixed bug when copying a button with custom content.
- Added workaround for Bug 625867 "RadioButton information lost on cut+paste, add/remove parent, etc"
- Fixes bug that prevented the runtime object to show the right pixbuf when copying a GtkImage.
- Fixed Bug 679079 "Glade changes the "homogenous" packing property of toolbar buttons to "yes""
- Improved pango text integer attributes editors. This should be enough to close Bug 679006
"The "size" attribute for labels only accepts integer values (not strings like "larger")"
- Fixed bug 643923 "Should not use markup for GtkFrame's label"
- Fixed bug 584381 "Saving as an existing file name except the extension overwrites without confirmation."
- Fixed Bug 652655 "Setting entry on combobox moves the widget"
- Fixed Bug 706304 "Python plugin broken by over-zealous version check" Bumped pygobject version to 3.8.0
- Fixed regresion that prevented loading extra catalog path at init time.
============
Glade 3.15.3
============
- Add man pages bug 703013 (Matthias Clasen)
- Fixed bug #700730 - Weird windows showing up when a dock is moved while editing a GtkBuilder file
(Sébastien Granjoux)
- Double click on a toplevel border select the widget even if there is a child selected.
- Support document level comments present before the root element.
- Save glade version used to create the file in a comment.
- Add GtkRevealer to the Gtk+ catalog (Timm Bäder)
- Add GtkListBox support (Kalev Lember)
- Added GtkOverlay support
- Improved Drag&Drop support, made inspector a drag source
- Added GtkApplicationWindow basic support
- Added GtkSearchEntry icons
- Fix autogen with latest gnome-common bug 706832 (Seán de Búrca)
- Fix a few typos bug 707173 (Christian Kirbach)
- Fixed Bug 703621 - Signals treeview: click on user data moves the selected row below (Miguel Azevedo)
============
Glade 3.15.2
============
- Add GtkPlacesSidebar to GTK+ catalog (Federico Mena Quintero)
- New icon for GtkMenuButton (Paolo Borelli)
- GTK+ catalog version now bumped to 3.10, include new translatable enumeration values
and updated new versions and deprecations
- Added --enable-debug option and some debug flags to be set with GLADE_DEBUG environment variable
- Enable word wrapping in combo boxes (used to edit enumeration properties)
- Split up the GTK+ plugin into mini source files, each one implementing it's own widget adaptor
code (instead of one huge glade-gtk.c file)
- Fix GtkIconFactory sources editor (was very broken)
- Allow setting the "id" attributes of items set in a GtkComboBoxText
- Avoid calling gtk_stock_list_ids() when gdk_display_get_default() is NULL, allows GIRs to
build on some build machines.
- Avoid updating the inspector treeview if the same project is set twice (Marco Diego Aurélio Mesquita)
- Escape key cancels a query dialog instead of approves creation of the new widget
- Many minor bugs and random crasher bugs also fixed
- Alsmost all widget types have their own custom editors now
============
Glade 3.15.1
============
- Much UI fixing and refactoring (Juan Pablo Ugarte)
- Added new --css and --screenshot options to glade-preview (Juan Pablo Ugarte)
- Fix main window shortcuts (bug 695866 Juan Pablo Ugarte)
- Implemented Project Properties dialog with Glade as a composite tempalte (Juan Pablo Ugarte)
- Support editing the GtkWidget:name property (useful for CSS theming)
- Improved project inter-widget dependancy calculation and project serialization ordering,
object output ordering (and signal ordering) is now consistent and sorted.
- GtkButton: response-id for dialogs is now optional (allowing adding dialog buttons that
have no dialog response)
- GtkImage: Support the new "resource" property
- GTK+ catalog updated to cover widgets in GTK+ 3.8
- Now show warnings in the UI for deprecated properties and signals
- Now show warnings in the Inspector view if any deprecated widgets, signals
or properties are used (or if anything is used which is not available in
the project's target version).
- Optional properties are now always saved if they are enabled, allowing
to explicitly set them to the default value (eg. GtkWidget:hexpand/vexpand)
- Inspector search entry: Restore completions to work nicely again and filter
the treeview with a search-in-text algorithm.
- Inspector: Add a feature to expand-all
- Property editor title-bar is now optional in the View menu
- Fixed many deprecation warnings in Glade's compile
- Added Glade's first 2 ever unit tests
- Fixed Devhelp doc search for properties (Juan Pablo Ugarte)
- Make Drag'n'Drop work on regular clicks without entering Drag Mode
and restored old Drag/Resize functionality when SHIFT is pressed (Juan Pablo Ugarte)
- Improved Drag/Resize which has been rather broken for a while
- Added Autosave and Automatic backup of previous file features, configurable
in Glade's preferences Dialog
- Support Composite GtkBuilder template editing (mark a toplevel GtkWidget as
the "composite template" widget in the Project Properties dialog or
property editor).
- Support editing of the project domain in the project properties dialog (Juan Pablo Ugarte)
- Properties in the Project Properties dialog are now undoable
- GladeSignalEditor: Automatically expand rows which have signal callbacks assigned when
loading a widget
- Add options to decide what types of warnings should be presented at project save time,
configurable in Glade's preferences dialog.
- Added new property editor components GladePropertyLabel, GladePropertyShell and
GladeEditorSkeleton, allowing us to create custom property editors using Glade.
- Add "Grid" option to "Add parent" menu (Dmitrijs Ledkovs)
- Added Gladeui catalog for IDE's and embedders to design Glade frontends with Glade
- Added private catalog to allow the GTK+ plugin to embed editors that it provides
- Added new GladeEpropCheck boolean property editor, to be used in some cases for
boolean properties.
- Added new adaptor methods GladeWidgetAdaptor->write_widget_after() and
GladeWidgetAdaptor->destroy_object()
- Automatically generate gladeui's enum types with glib-mkenums
- Modified properties now show up in italic letering instead of bold, bold
lettering is reserved for title labels in custom property editors.
- New components that now use GtkBuilder Composite Templates (and have had
a basic review and rework of their UIs): GladePreferences (Glade's preferences
dialog), GladeEditor (the property editor), GladeProjectProperties (the project
properties dialog) and custom property editors: GladeActivatableEditor,
GladeButtonEditor, GladeEntryEditor, GladeImageEditor, GladeLabelEditor, GladeWidgetEditor
- And... many various bugfixes and UI fixes by Juan Pablo and myself.
============
Glade 3.15.0
============
- Added Drag&Drop support from the palette and within the workspace.
- Added GtkLevelBar support
- Property editor UI cleanup
Hide Property editor class title
Moved clear and info buttom to the action widget of the notebook.
Updated atk icon with gnome's accessibility icon.
Text entry: Replaced buttons with 3 dots [...] for a secondary edit icon in the entry itself.
Removed treeview from flags editor.
Do not let every propery input expand if not nescesary.
Boolean input: replaced toggle buttons with a switch.
- Fixed bug #685265 "Excessively Selected for Translation" Daniel Mustieles
- Fixed bug #688326 "pointer tracking is off" by using every coordinate relative to GladeDesignLayout.
- Fixed bug #678922 "When editing a label, the cursor is moved to the end after every change."
============
Glade 3.14.0
============
- Updated GtkAssistant support. Fixed bug #664276
- Set new property accel-group on action groups to make menu item accel work properly. Fixes bug 684041
- Do not abort if a project has a uninstantiable or abstract class object instead load it
as an object stub and let the user what to do. bug #646259
- Fixed runtime warning on GladeBaseEditor and GladeSignalEditor dispose methods
- Do not explicit set window bg as it should be handled by gtk.
- Sync close-button with the original gedit widget.
This way the proper symbolic close icon is used for the button. (Paolo Borelli)
- Use new documentation infrastructure (Javier Jardón)
- Added load/save/edit support for <style> <class name="foo"/> </style>, Fixes bug 658035.
- Fixed Bug #679589 "Use Action Appearance not supported for GTK 2.12 but added to widgets in Glade 3.8.2"
- Fixed bug #679487 "Huge memory leaks"
- Fixed bug #679721 "mac-integration: missing 'widget' variable declaration"
- Added glade_displayable_value_set_disabled() functions to disable GdkModifierType reserved values
- Added build/mingw-w64 directory with script to cross compile and create windows installer using nsis
- Fixes bug #675977 "Don't hard-code library search paths"
- And many others cleanups and fixes
============
Glade 3.13.0
============
- Implemented Glade UI in glade! (Use GtkBuilder and GResources to build GladeWindow contents)
- Implemented GladePreferences dialog.
Fixes bug 588981 "Catalog support in GUI preferences instead of using environment var"
- Replaced deprecated font and color selection dialogs with font and color chooser dialogs.
- Added GladeSignalEditor::detail-suggestions signal
- Use glade_util_get_placeholder_from_pointer() in paste action activate
- Fixed bug #675395 "Using right click to add a widget over a placeholder do not work as expected every time"
- Fixed bug #675042 "plugins/gtk+.xml.in: always store GtkButton [x|y]align properties"
- Added custom style provider to setup GladeDesignView and GladeDesignLayout background color to @base_color
- Fixed memory leak on GladeSignalEditor::callback-suggestions emison
- Removed use of lots of deprecated functions
============
Glade 3.12.0
============
- Implemented GladeSignalEditor::callback-suggestions signal based
on patch by Marco Diego Aurélio Mesquita, closes bug #667570
"Implement callback name suggestion on glade-signal-editor"
- Fixed bug 664912 "GtkGrid assumes 3x3 (edit)"
- Fixed bug 645340 "Minor string typo" and bug 646366 "non-sense UI string"
- Fixed bug 669272 "Emit a signal to notify signal activation" by Marco Diego Aurélio Mesquita
============
Glade 3.11.0
============
- Added GtkSwitch, GtkInfoBar and GtkEntryCompletion support.
- Implemented inline margins and alignment edit mode.
Now it is posible to change widget's margins and alignment using the mouse.
- Ignore GtkWindow:icon property. Fixes bug #654121
"workaround gtk segfault: icon on gtkwindow segfault in offscreen"
- Bump pygobject requisite to pygobject 3. Fixes bug #658667. Ignacio Casal Quinteiro
- Make GladeProject change gtk target to 3.0 and warn the user if there are
any unknown (deprecated) objects.
Fixes bug 652673 "Project versions are ignored" and 376628 "Deletes unknown widget nodes."
- Make documentation parallel installable (bug 646997).
- Renamed catalog and module environment variables.
- Properly escape special characters while serializing property values (bug 654609 - Fabien Parent)
- Fix GladeProject to notify "row-has-child-toggled" (fixes bug 651673).
- Fixed size groups widget selection (bug 647984 - Benjamin Otte)
- Avoid crashing if glade-previewer is not installed
(bug 650899 - Johannes Schmid)
- Optimized loading time by not updating progressbar on every loaded object.
- Update placeholders when a grid child's width or height child
properties change.
- Ensure 'related-action' and 'use-action-appearance' are serialized in the right order.
- Correctly detect the required devhelp version - Javier Jardón
- Fixed TreeModelFilter bug #657164
- Fixed bug #660607 "Warnings when using GtkGrid created in Glade 3.10"
- Fixed glade-previewer bugs
#660874 "glade-previewer fails to open UI files without top windows"
#660872 "glade-previewer crashes on non-existent files"
- Fixed loading correct application icon (bug 648487 fix by Stéphane Maniaci).
- Fixed "variable set but not used" warnings (-Wunused-but-set-variable)
============
Glade 3.10.0
============
- Fixed some glitches in the new workspace - Juan Pablo Ugarte
- Removed the unwritten user manual from the menus.
- Added support for GdkRGBA properties
- Add support for editing the PangoFontDesctiption in GtkLabel attributes
- Put File->Properties before Quit in the File menu - Frederic Peters
- Added GObject introspection generation to the build - Pablo Castellano & Alan Knowles
- Added support for GtkRecentChooserMenu
- More last minute sealing of the api (privatized some more files).
- Created the GladePreview object to handle previews and fixed
preview related bugs - Marco Diego Aurélio Mesquita
- Added support for editing GtkGrid
- Icons now available for all widget classes - Florent Thévenet and some by Dolean Samuel.
- Cleaned up the palette by removing H/V subclasses.
- Added support for GtkAppChooser* classes.
- Migrate from PyGTK to PyGObject introspection-based bindings - Craig Keogh
- Some refactoring of GladeEditable and custom editors in the backend
- Added a special "deprecation" graphic to overlay on
top of deprecated widget icons.
- Added high-resolution applicaiton icon - Jakub Steiner / William Jon McCann
- Refactored the core to automate the management of internal children - Juan Pablo Ugarte
- Fixed loads of bugs, some fixes by Christopher Aillon,
Craig Keogh, Cosimo Cecchi, Juan Pablo Ugarte
=========== ===========
Glade 3.8.0 Glade 3.9.2
=========== ===========
- Added support for GtkToolPalette and GtkToolItemGroup - Added signal for IDEs to track created signal editors, Johannes Schmid.
- Fixed 633943, 503621, 629900, 597045, 622839, - Stop installing catalog .xml.in files, Emilio Pozuelo Monfort.
- Removed User Manual link from Glade frontend (since the user manual - Fixed various memory leaks.
is still empty and not online anywhere). - Removed GtkTreeSelection from the palette, it's only available as the internal
- Backed out preview feature from 3.8. child of a GtkTreeView
- Included all the icons by Florent Thévenet (including some icons - Fixed Drag'n'Drop image drawing with cairo for signal editor, Johannes Schmid with
made by Dolean Samuel). help from Benjamin Otte.
- Fixed crashes and memory leaks in the GladeBaseEditor (the editor used for menu editing
and treeview editing and the like).
- Edit->Preferences is now File->Properties
- Removed option for project naming policies, object ids in GtkBuilder are always unique
across the whole file.
- Render project widgets in the workspace offscreen, this gives us more power over the
widgets (combo boxes can now be selected, seletion drawing is now enhanced),
Juan Pablo Ugarte.
- Added support for GtkComboBoxText with a customized editor to edit the combo box items.
- Added GtkRecentFilter and GtkRecentManager to the palette, GtkRecentFilter can specify
patterns, mime-types and applications for the filtering.
- Added support to edit patterns and mime-types for GtkFileFilter
- Added <add-child-verify-function> to the plugin backend, we now use this to better police
user activities in Glade (notably, you cannot paste a widget that is not a GtkToolItem
to a GtkToolBar or the like).
- Renamed various things from glade-3/glade3 to 'glade' (the Glade icon, the bugzilla database,
the git repository etc, help from Javier Jardón).
- Glade now uses GtkApplication and is a single instance application.
- Added support for editing a GtkOffscreenWindow
- Changed the workspace to now include all toplevel project objects, selecting an
object from the inspector causes the workspace to scroll to the selected widget,
Juan Pablo Ugarte.
=========== ===========
Glade 3.7.3 Glade 3.9.1
=========== ===========
- Fixed 'controled' typo with updates to po files, patch - Added accelerator and tooltip-text properties to menu items and toolitems
by Matt Woelfel for bug 633957 in the menu editor (fixes bug 510083).
- Added support for deprecated GtkOptionMenu. - Fixed crashes in liststore editor.
- Restore proper order of glade file at save time. - Restored italic insensitive state for the < search widgets > text in the
- Hide editor properties when the property is not available inspector search box.
on the widget, bug 585299, fix by Marco Diego Aurélio Mesquita. - Fixed glade.desktop.in.in file to refer to the new 'glade' exec name
- Fixed makefiles as per bug 521713 (patch initially by Daniel Macks) (fix by Emilio Pozuelo Monfort)
- Fixed mixups of properties/packing properties bug 637475. - Added support for editing GtkToolPalette along with a special tool palette editor.
- Fixed class header of GladeEditor to update when - Make GtkToolBar:icon-size an optional property generally set by the theme/settings
widgets unload (patch by Marco Diego Aurélio Mesquita, bug 637541). (like GtkToolBar:toolbar-style property).
- Fixed nasty crasher with column types, bug 637563, fix by Benjamin Otte. - Removed global selection list from glade-utils.[ch], now all selection is controlled
- Added progress bar to notebook tabs while loading projects. by the relevant project
- Removed GladeClipboradView completely. - Removed glade_util_class_implements_interface() in favor of g_type_is_a() (closes bug 455734,
- Added custom editor for editing GtkActionGroup and its child actions. based on original patch from Juan Pablo Ugarte).
- Use locale-independent strtod & dtostr. bug 616787, fix by Christian Persch. - Applied patch by Sergio García Lobo to fix bug 487656 and provide mnemonic key access to
- Applying patch to allow better builds on win32, patch by Dieter Verfaillie, "Text beside icons" palette option.
bug 634978. - Added idle function to raise the undocked windows at startup time, closes bug 475421.
- Fix possible crash when saving new project. bug 622635, fix by Martin Schlemmer.
- Fixed crash when user performs Drag'n'Drop of < enter column here > and no columns are
yet added (bug 633943).
- Fixed use of uninitialized variables in warning messages, bug 634325, fix by Alex Merry.
- Set some default HIG values for widgets as per bug 349447.
- Make query dialog come with a "Create" button instead of an "OK" button, closes hig bug 503621.
- Added GtkTextTagTable editor, now GtkTextTag can be added to GtkTextTagTable.
- Made all GdkColor type properties optional, closes bug 457969.
- Fixed add/remove parent context menu actions so that they work with parentless widget
references (i.e. you can add a parent to a GtkToolItemGroup's label widget
or a GtkButton's image widget, or remove the parent of a child of a label-widget, etc).
- Expose internal GtkTreeSelection child of GtkTreeView so that "changed" signal
can be connected to. Fixes bug 383766.
- Included Johannes Schmid's new signal editor work, the GladeSignals are now available
via a GtkTreeModel implementation, this does not effect the UI much but allows signals
to be Drag'n'Dropped from Glade's signal editor to Anjuta somewhere.
- Restored GtkFixed/GtkLayout background pattern.
- Restored old GladePlaceholder background pattern.
- Fixed mismatching PangoAttributeType with GType, closes bug 597045.
===========
Glade 3.9.0
===========
- General build fixes for building with GTK+ 3.0, including patches from Johannes Schmid,
Matthias Clasen, Javier Jardón and Juan Pablo Ugarte.
- Included the new Preview feature by Marco Diego Aurélio Mesquita.
- Various leaks and crashes fixed.
- GladeWidget becomes GInitiallyUnowned, refcounting improved for project dispose cycles.
- Handle combo-box entry child properly (bug 581580).
- Fixed crashes when textview's buffer is deleted, fix by Martin Schlemmer, bug 609748.
- Restored property order of project objects at save time (glade files no longer container
irrelevant diffs).
- Hide editor properties when the property is not available on the widget, bug 585299,
fix by Marco Diego Aurélio Mesquita.
- Fixed makefiles as per bug 521713 (patch initially by Daniel Macks).
- Fixed mixups of properties vs packing properties (bug 637475).
- Fixed class header of GladeEditor to update when widgets unload (patch by
Marco Diego Aurélio Mesquita, bug 637541).
- Fixed particalarly nasty crasher bug when loading/saving treestore column definitions,
special thanks goes to Benjamin Otte, bug 637563.
- Add progress bar to notebook tab of currently loading project (now the whole UI doesnt
jam up while loading a big project).
- Fixed notebook tab style to use the new CSS stuff.
- Removed widgets that are not available in 3.0
- Completely removed Libglade support
- Removed GladeClipBoardView completely
- Removed GladeParameter obsolete code
- Fixed editor labels to use natural word wrapping
- Drop GtkTables in editors in favor of GtkGrid
- Added custom editor for editing GtkActionGroup and managing child actions
- Ran 'indent' on source base, new Glade coding style more similar to GTK+ style
- Removed boolean "fixed" catalog attribute, instead <create-widget-function> can
be used to specify a derived GladeWidget to be used in the runtime.
- Use locale-independent strtod & dtostr. Fixes bug 616787, fix by Christian Persch.
- Applying patch to allow better builds on win32, patch by Dieter Verfaillie, bug 634978.
- Fixed loaded state of use-action-appearance so that it always - Fixed loaded state of use-action-appearance so that it always
loads as FALSE if there is no "related-action" at load time (closes bug 582882). loads as FALSE if there is no "related-action" at load time (closes bug 582882).
- Fixed other misc bugs. - Sealed entire core API, libgladeui-2 will be ABI stable after 3.10 release.
- Removed GladeApp::update-ui signal, active-project, selection handling and implied
commands, everything now must be done in context of a GladeProject.
- Optimized GladeEditor to load a widget faster by keeping all the cached pages in internal
vboxes and not remove/adding them but just hide/showing them (improves object selection
time).
- Optimized frontend to load one palette per project, verifying the palette for version
information when the related project is set costs around 1 second, this is now only
experienced when the target version is changed in the project prefs dialog.
===========
Glade 3.7.2
===========
- Use gtk_show_uri() instead of previous custom code in place (Javier Jardón)
- Fixed user/developer url locations (Javier Jardón)
- Fixed ComboBox and IconView to include basic actions in the popup menu
- Revived the "misc" column on the project data model (now the inspector shows
whether a widget is an internal child or a frame's label or such, again).
- Expose GtkAssistant:complete packing property (bug 529595).
- Implemented Preview feature, Glade now includes a project previewing program
that is accessible in the UI and runs as a child process (Marco Diego Aurélio Mesquita).
- Ignore "resize-mode" property incase of crashes (as reported in bug 622996).
- Fixed crash with notebook rebuilding children (bug 365462).
- Fixed crasher bug 628233 (based on patch by: ramz <ramanathan.nitt@gmail.com>).
- GladeWidget is now GInitiallyUnowned (now refcounts balance again at project close time).
- Fixed errors when undoing the addition of notebook pages.
- Default adjustment page size -> 0 (bug 585085).
- Removing frame shadow (and label) from project preferences (bug 574098).
- Setting dialog type-hint default to Dialog (closes old bug 459917).
- Fixed floating project menus when context menu is fired (bug 141714).
- Removed notion of project "instance_count" (which is by now unused).
- Avoid clearing the project selection from the inspector (fixing bug 604322).
- Set added treeviewcolumns to fixed sizing mode if the treeview is set to use
fixed height mode (closing bug 596480).
- Fixed GtkComboBox to handle cell-layout children as well as the possible internal
entry (fixes bug 581580)
- Notify GtkTreeIter changes when the widget name changes (now the inspector updates
when a widget name is changed automatically).
- Fixed crasher when adjusting project naming policy (bug 622528, thanks goes to
Sébastien Granjoux and Martin Schlemmer for looking at this one).
- Fixed crashes when textview's buffer is deleted, fix by Martin Schlemmer, bug 609748.
- Defensively avoid crash when setting entry icon tooltips on an entry with no icons set.
=========== ===========
Glade 3.7.1 Glade 3.7.1
=========== ===========
@ -1172,3 +1883,4 @@ Translators:
o Zbigniew Chyla o Zbigniew Chyla
o Hasbullah Bin Pit o Hasbullah Bin Pit
o Takeshi AIHANA o Takeshi AIHANA

79
README
View File

@ -1,79 +0,0 @@
Glade
=====
A user interface designer for Gtk+ and GNOME
Web: http://glade.gnome.org
Mailing Lists: glade-users@ximian.com - For discussions about using
Glade to build applications.
glade-devel@ximian.com - For discussions about the
development of Glade itself.
General Information
~~~~~~~~~~~~~~~~~~~
Glade is a RAD tool to enable quick & easy development of user interfaces
for the GTK+ toolkit and the GNOME desktop environment.
The user interfaces designed in Glade are stored in XML format,
enabling easy integration with external tools.
In particular libglade can load the XML files and create the interfaces
at runtime. The DTD for the XML files is included with libglade, and is
also at http://glade.gnome.org/glade-2.0.dtd.
Other tools are available which can turn the XML files into source code
in languages such as C++, Perl and Python.
About Glade-3
~~~~~~~~~~~~~
This version of Glade (Glade-3) is a complete rewrite of the original Glade codebase.
One of the main differences from glade-2 is that C code generation has been removed from
glade-3: this has been done on purpose, since using generated code is deprecated; the preferred
way to use glade files is with libglade (if code generation is needed, this can be provided
as another tool or plugin, code generation is simply not a part of the glade-3 project).
Another main difference is that glade-3 was designed to make maximal use of GObject
introspection, thus easing the integration of external toolkits and handling widgets,
signals and properties genericly; thus making it easier to write fancy features in the
future (toolkits such as gtk+ itself, gnome, gnome-db and any others are implemented
externaly as widget catalogs with optional support libraries, thus catalogs may be
distributed seperatly; possibly along with their libglade support modules).
It has a few useful new features such as stacked Undo/Redo and Multiple Project support
and respects the same XML format as glade-2.
For a more details on what has changed, what still needs work, etc. see
the NEWS file & the glade3 product at bugzilla.gnome.org.
Comments, bug reports and patches are more than welcome.
License
~~~~~~~
Glade is distributed under the GNU General Public License (GPL), as described
in the COPYING file.
Note that you are free to use whatever license you like for the source code
generated by Glade. (We do not consider the code generated by Glade to be
'a work based on the Program' as described at the start of the GPL.)
Requirements
~~~~~~~~~~~~
o GTK+ 2.20.0 or above - http://www.gtk.org
You also need the glib, pango and atk libraries.
Make sure you have the devel packages as well, as these will contain the
header files which you will need to compile C applications.
o libxml 2.4.1 - used to parse the XML files. If you have GNOME 2 you
should already have this.
Installation
~~~~~~~~~~~~
See the file 'INSTALL'

122
README.md Normal file
View File

@ -0,0 +1,122 @@
# Glade
User interface designer for Gtk+ and GNOME
* Web - <https://glade.gnome.org>
* Git - <https://gitlab.gnome.org/GNOME/glade>
Mailing Lists:
Both users and devel mailing list have been archived, you can find the archives at
* https://mail.gnome.org/archives/glade-users-list/
* https://mail.gnome.org/archives/glade-devel-list/
## Development status
Glade is not being actively developed or maintained anymore.
If you are interested in becoming a maintainer please contact us on gitlab.
## General Information
Glade is a RAD tool to enable quick and easy development of user interfaces
for the GTK+ 3 toolkit and the GNOME desktop environment.
The user interfaces designed in Glade are saved as XML and these can be loaded
by applications dynamically as needed by using GtkBuilder or used directly to
define a new GtkWidget derived object class using Gtk+ new template feature.
By using GtkBuilder, Glade XML files can be used in numerous programming
languages including C, C++, C#, Vala, Java, Perl, Python, and others.
This version of Glade targets GTK 3
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/))
## License
Glade is distributed under the
[GNU General Public License](https://www.gnu.org/licenses/gpl-2.0.en.html),
version 2 (GPL) and
[GNU Library General Public License](https://www.gnu.org/licenses/old-licenses/lgpl-2.0.en.html),
version 2 (LGPL) as described in the COPYING file.
## Manual instalation
Requirements
* C compiler like [gcc](https://gcc.gnu.org/)
* [Meson](http://mesonbuild.org) build system
* [GTK](http://www.gtk.org) 3.24.0 or above
* [libxml](http://xmlsoft.org/) 2.4.1 - used to parse XML files
* libgirepository1.0 - Build-time dependency
* xsltproc - for man pages generation
Optional dependencies:
* glib-networking plugins for TLS support (Needed for survey)
* libwebkit2gtk-4.0 - For Webkit plugin
* python-gi - For Python plugin
* libgjs - For JavaScript plugin
* gettext, itstool - For translation support
Download sources from git and build using meson/ninja
# Install dependencies, for example in debian
sudo apt install gcc meson libgtk-3-dev libxml2-dev libgirepository1.0-dev xsltproc gettext itstool
# Optional dependencies
sudo apt install libgjs-dev libwebkit2gtk-4.0-dev python-gi-dev glib-networking
# Clone the source repository or download tarball
git clone https://gitlab.gnome.org/GNOME/glade.git
# Create build directory and configure project
mkdir glade/build && cd glade/build
meson --prefix=~/.local
# Build and install
ninja
ninja install
To run it you might need to set up LD_LIBRARY_PATH depending on your
distribution defaults
LD_LIBRARY_PATH=~/.local/lib/x86_64-linux-gnu/ glade
## Linux
Debian
apt install glade
Fedora
yum install glade
Any distribution with Flatpak
flatpak install flathub org.gnome.Glade
[<img width='240' alt='Download on Flathub' src='https://flathub.org/assets/badges/flathub-badge-i-en.png'/>](https://flathub.org/apps/details/org.gnome.Glade)
## Windows
Available as a
[package](https://packages.msys2.org/package/mingw-w64-x86_64-glade) in
[MSYS2](https://www.msys2.org/)
pacman -S mingw-w64-x86_64-glade
## OSX
Available as a [package](https://formulae.brew.sh/formula/glade) in
[Brew](https://brew.sh/)
brew install glade

View File

@ -1,7 +0,0 @@
If you are a long time gnome committer and you have a minor patch
that you are sure is correct, then go ahead and commit.
For the other great majority of the time; please ask before commiting
at glade-devel@lists.ximian.com.
All commits must have a ChangeLog entry.

59
TODO
View File

@ -1,22 +1,45 @@
Split Project data model from view model:
========================================
Currently we create a GladeWidget object for each project object but
GladeProject and gladeui api in general uses the very same runtime object.
Ideally we should only depend on GladeWidget and the actual runtime object
should only be used for the view in the workspace.
3.6 blocker/high priority list A first step could be updating GladeProject to only use GladeWidget internally
============================= and then we can update gladeui api to use GladeWidget instead but this means a
Glade renames widgets when ids are dupped: http://bugzilla.gnome.org/show_bug.cgi?id=549176 API/ABI break
Improve attributes editor
Add actions, treestore, treemodel, adjustment, pixbuf (Gtk+ objects new group)
Nice editor resizing by Pavel, needs fix for warning icons: http://bugzilla.gnome.org/show_bug.cgi?id=546107
No way to add menus to toolbar: http://bugzilla.gnome.org/show_bug.cgi?id=429438
GdkColor null values critical errors: http://bugzilla.gnome.org/show_bug.cgi?id=426345
Add versioning metadata for libglade unsupported properties and widgets.
Sort objects from widgets in the inspector widget.
Make popup work in workspace with no-window widgets GtkBuilder unsuported features:
Remove deleted widgets from the workspace ==============================
Take care of external object property references (sync them) at glade_widget_rebuild time
Liststore/Treestore data is not translatable
store data needs improvement and cant be released as is (cant even have spaces in data, needs real new structure).
IMPORTANT!!! Go over all object type properties and mark them libglade unsupported, * Property bindings
newly added objects need "since" versioning info updated, all around thoroughly
check catalog data before release candidate. Unsupported object classes:
==========================
Glib
* GMenu/GMenuModel (<menu> GtkBuilder element)
Because GMenu is in Glib library it can not implement GtkBuildable iface which
is in GTK+ this lead to implementing GMenu object construction in GtkBuilder
using a custom element <menu>
Ideally we should move GtkBuilder and GtkBuildable to Glib and rename them
GBuilder and GBuildable so that we can implemet GBuildable in GMenu object
A way to avoid this would be to create a new object type in GTK that derives
from GMenu say GtkMenuObject (GtkMenu is already taken ;) and make it implement
GtkBuildable iface.
* GAction, GSimpleAction, GActionGroup
GTK+ 3.4
* GtkApplication (add buildable iface to support GMenuModel?¿)
GTK+ 3.14
* type="action" children in GtkDialog
GTK+ 3.20
* GtkShortcutsWindow

View File

@ -1,52 +0,0 @@
#!/bin/sh
# Run this to generate all the initial makefiles, etc.
srcdir=`dirname $0`
test -z "$srcdir" && srcdir=.
PKG_NAME="glade"
(test -f $srcdir/configure.ac \
&& test -f $srcdir/autogen.sh) || {
echo -n "**Error**: Directory "\`$srcdir\'" does not look like the"
echo " top-level $PKG_NAME directory"
exit 1
}
DIE=0
# This is a bit complicated here since we can't use gnome-config yet.
# It'll be easier after switching to pkg-config since we can then
# use pkg-config to find the gnome-autogen.sh script.
gnome_autogen=
gnome_datadir=
ifs_save="$IFS"; IFS=":"
for dir in $PATH ; do
test -z "$dir" && dir=.
if test -f $dir/gnome-autogen.sh ; then
gnome_autogen="$dir/gnome-autogen.sh"
gnome_datadir=`echo $dir | sed -e 's,/bin$,/share,'`
break
fi
done
IFS="$ifs_save"
if test -z "$gnome_autogen" ; then
echo "You need to install the gnome-common module and make"
echo "sure the gnome-autogen.sh script is in your \$PATH."
exit 1
fi
automake_version=1.9
#case `uname` in
#CYGWIN*)
# automake 1.4 of cygwin does not define EGREP in libtool.m4, and
# fails to do the file magic test when -rpath is given
# automake_version=1.7
# ;;
#esac
GTKDOCIZE="gtkdocize --flavour no-tmpl" REQUIRED_GNOME_DOC_UTILS_VERSION=0.9.0 REQUIRED_AUTOMAKE_VERSION="$automake_version" GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen

View File

@ -1,310 +0,0 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
m4_define(glade_major_version, 3)
m4_define(glade_minor_version, 8)
m4_define(glade_micro_version, 1)
m4_define(glade_version, glade_major_version.glade_minor_version.glade_micro_version)
AC_INIT([glade3], [glade_version],
[http://bugzilla.gnome.org/enter_bug.cgi?product=glade3])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_SRCDIR([gladeui/glade.h])
AC_CONFIG_MACRO_DIR([m4])
AC_DEFINE(GLADE_MAJOR_VERSION, glade_major_version, [Glade major version])
AC_SUBST(GLADE_MAJOR_VERSION, glade_major_version)
AC_DEFINE(GLADE_MINOR_VERSION, glade_minor_version, [Glade minor version])
AC_SUBST(GLADE_MINOR_VERSION, glade_minor_version)
AC_DEFINE(GLADE_MICRO_VERSION, glade_micro_version, [Glade micro version])
AC_SUBST(GLADE_MICRO_VERSION, glade_micro_version)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE([1.9 foreign no-dist-gzip dist-bzip2])
AM_MAINTAINER_MODE
# Support silent build rules, requires at least automake-1.11. Disable
# by either passing --disable-silent-rules to configure or passing V=1
# to make
m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])])
IT_PROG_INTLTOOL([0.35.0])
AC_PATH_PROG(GLIB_GENMARSHAL, glib-genmarshal)
AC_PATH_PROG(DLLTOOL, dlltool)
AC_ISC_POSIX
AC_PROG_CC
AC_DISABLE_STATIC
AC_PROG_INSTALL
AC_PROG_MAKE_SET
AC_LIBTOOL_DLOPEN
AC_LIBTOOL_WIN32_DLL
AM_PROG_LIBTOOL
# If the source code has changed at all, increment GLADE_REVISION
# If any interfaces have been added, removed, or changed, increment GLADE_CURRENT, and set GLADE_REVISION to 0.
# If any interfaces have been added since the last public release, then increment GLADE_AGE.
# If any interfaces have been removed since the last public release, then set GLADE_AGE to 0.
# Reference: http://www.gnu.org/software/libtool/manual.html#Versioning
GLADE_REVISION=0
GLADE_CURRENT=12
GLADE_AGE=1
GLADE_CURRENT_MINUS_AGE=`expr $GLADE_CURRENT - $GLADE_AGE`
AC_SUBST(GLADE_REVISION)
AC_SUBST(GLADE_CURRENT)
AC_SUBST(GLADE_AGE)
AC_SUBST(GLADE_CURRENT_MINUS_AGE)
dnl are we unstable or stable?
m4_define([glade_unstable],
m4_if(m4_eval(glade_minor_version % 2), [1], [yes], [no]))
GLADE_UNSTABLE=glade_unstable
AC_SUBST(GLADE_UNSTABLE)
dnl The symbol GLADE_UNSTABLE is defined above for substitution in
dnl Makefiles and conditionally defined here as a preprocessor symbol
dnl and automake conditional.
if test "x$GLADE_UNSTABLE" = "xyes"; then
AC_DEFINE(GLADE_UNSTABLE, 1,
[Define to 1 if this is an unstable version of Glade])
fi
AM_CONDITIONAL(GLADE_UNSTABLE, test "x$GLADE_UNSTABLE" = "xyes")
# ================================================================
GNOME_COMMON_INIT
GNOME_DEBUG_CHECK
GNOME_COMPILE_WARNINGS([maximum])
GNOME_MAINTAINER_MODE_DEFINES
# For the plugins, we don't use the warning flags defined by GNOME_COMPILE_WARNINGS.
# These flags include -Wmissing-prototypes, which we prefer not to use.
if test "x$GCC" = "xyes"; then
PLUGINS_WARN_CFLAGS="-Wall -Wnested-externs -Wpointer-arith"
fi
AC_SUBST(PLUGINS_WARN_CFLAGS)
dnl ================================================================
dnl Gettext stuff.
dnl ================================================================
GETTEXT_PACKAGE=AC_PACKAGE_NAME
AC_SUBST(GETTEXT_PACKAGE)
AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [Name of the gettext package.])
AM_GLIB_GNU_GETTEXT
dnl ================================================================
dnl va_copy.
dnl ================================================================
AC_MSG_CHECKING([how to copy va_list])
AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; va_copy(ap1, ap2);],
AC_MSG_RESULT([va_copy]),
[ AH_TEMPLATE([va_copy], [define if va_copy is not available])
AC_TRY_LINK([#include <stdarg.h>], [va_list ap1, ap2; __va_copy(ap1, ap2);],
[ AC_DEFINE([va_copy], [__va_copy])
AC_MSG_RESULT([__va_copy])],
[ AC_DEFINE([va_copy(dest,src)], [memcpy(&dest,&src,sizeof(va_list))])
AC_MSG_RESULT([memcpy])]
)
])
dnl ================================================================
dnl Check for gtk-doc
dnl ================================================================
GTK_DOC_CHECK(1.9)
dnl ================================================================
dnl Check for gtk+
dnl ================================================================
PKG_CHECK_MODULES(GTK, [gtk+-2.0 >= 2.24 gthread-2.0 libxml-2.0 >= 2.4.0])
AC_SUBST(GTK_LIBS)
AC_SUBST(GTK_CFLAGS)
dnl ================================================================
dnl Check for the unix print widgets in gtk+
dnl ================================================================
LIBS=$GTK_LIBS
AC_CHECK_FUNCS(gtk_print_unix_dialog_new,[have_unix_print=yes]; break,[have_unix_print=no])
AM_CONDITIONAL(HAVE_GTK_UNIX_PRINT, test x"$have_unix_print" = "xyes")
dnl ================================================================
dnl Check for optional gnome libs
dnl ================================================================
AC_ARG_ENABLE(gnome,
AS_HELP_STRING([--disable-gnome], [disable gnome catalog]),
check_gnome=$enableval, check_gnome=yes)
if test x"$check_gnome" = x"yes"; then
PKG_CHECK_MODULES(GNOME, [libbonoboui-2.0 libgnomeui-2.0],
[have_gnome=yes],[have_gnome=no])
AC_SUBST(GNOME_LIBS)
AC_SUBST(GNOME_CFLAGS)
else
have_gnome=no
fi
AM_CONDITIONAL(BUILD_GNOME, test x"$have_gnome" = "xyes")
dnl ================================================================
dnl Python for optional python dev libs
dnl ================================================================
AC_ARG_ENABLE(python,
AS_HELP_STRING([--disable-python], [disable python catalog]),
check_python=$enableval, check_python=yes)
if test x"$check_python" = x"yes"; then
PYGTK_REQUIRED_MAJOR=2
PYGTK_REQUIRED_MINOR=10
PYGTK_REQUIRED_MICRO=0
PKG_CHECK_MODULES(PYGTK, [pygtk-2.0 >= 2.10.0], [have_python=yes],[have_python=no])
AM_CHECK_PYTHON_HEADERS(, [have_python_headers=no])
AM_CHECK_PYTHON_LIBS(, [have_python_lib=no])
if test x"$have_python_headers" = x"no"; then
have_python=no
fi
if test x"$have_python_lib" = x"no"; then
have_python=no
fi
AC_DEFINE_UNQUOTED(PYGTK_REQUIRED_MAJOR, $PYGTK_REQUIRED_MAJOR, Pygtk mayor version required)
AC_DEFINE_UNQUOTED(PYGTK_REQUIRED_MINOR, $PYGTK_REQUIRED_MINOR, Pygtk minor version required)
AC_DEFINE_UNQUOTED(PYGTK_REQUIRED_MICRO, $PYGTK_REQUIRED_MICRO, Pygtk micro version required)
AC_SUBST(PYGTK_LIBS)
AC_SUBST(PYGTK_CFLAGS)
else
have_python=no
fi
AM_CONDITIONAL(BUILD_PYTHON, test x"$have_python" = "xyes")
# ==================================================================
# Glade User Manual (requires gnome-doc-utils)
# ==================================================================
GNOME_DOC_INIT([0.9.0],[],[:])
dnl ================================================================
dnl Check for windows
dnl ================================================================
case $host_os in
*mingw* | pw32* | cygwin*)
platform_win32=yes
;;
*)
platform_win32=no
;;
esac
AM_CONDITIONAL(PLATFORM_WIN32, test x"$platform_win32" = "xyes")
case $host_os in
*mingw*)
native_win32=yes
;;
*)
native_win32=no
;;
esac
AM_CONDITIONAL(NATIVE_WIN32, test x"$native_win32" = "xyes")
if test "$native_win32" = "yes"; then
AC_CHECK_TOOL(WINDRES, windres, no)
if test "$WINDRES" = no; then
AC_MSG_ERROR([*** Could not find an implementation of windres in your PATH.])
fi
fi
dnl ================================================================
dnl Check for GDK Quartz and MacOSX integration package
dnl ================================================================
_gdk_tgt=`$PKG_CONFIG --variable=target gdk-2.0`
AM_CONDITIONAL([GDK_TARGET_QUARTZ], [test x$_gdk_tgt = xquartz])
if test "x$_gdk_tgt" = xquartz; then
PKG_CHECK_MODULES(IGE_MAC, ige-mac-integration)
IGE_MAC_BUNDLE_FLAG=
AC_ARG_ENABLE(mac-bundle,
AS_HELP_STRING([--enable-mac-bundle], [enable mac bundling]),
build_bundle=yes, build_bundle=no)
if test "x$build_bundle" = xyes; then
AC_MSG_NOTICE([enableing mac bundle..])
IGE_MAC_BUNDLE_FLAG=-DMAC_BUNDLE
fi
AC_SUBST(IGE_MAC_BUNDLE_FLAG)
AC_SUBST(IGE_MAC_LIBS)
AC_SUBST(IGE_MAC_CFLAGS)
fi
AC_SUBST([AM_CPPFLAGS])
AC_SUBST([AM_CFLAGS])
AC_SUBST([AM_CXXFLAGS])
AC_SUBST([AM_LDFLAGS])
AC_CONFIG_FILES([
Makefile
data/gladeui-1.0.pc
data/glade-3.desktop.in
data/Makefile
data/icons/Makefile
data/icons/hicolor/Makefile
data/icons/hicolor/16x16/Makefile
data/icons/hicolor/16x16/apps/Makefile
data/icons/hicolor/22x22/Makefile
data/icons/hicolor/22x22/apps/Makefile
data/icons/hicolor/24x24/Makefile
data/icons/hicolor/24x24/apps/Makefile
data/icons/hicolor/32x32/Makefile
data/icons/hicolor/32x32/apps/Makefile
data/icons/hicolor/48x48/Makefile
data/icons/hicolor/48x48/apps/Makefile
data/icons/hicolor/scalable/Makefile
data/icons/hicolor/scalable/apps/Makefile
gladeui/Makefile
gladeui/gladeui.rc
src/Makefile
src/glade-3.rc
plugins/Makefile
plugins/gtk+/Makefile
plugins/gtk+/icons/Makefile
plugins/gtk+/icons/16x16/Makefile
plugins/gtk+/icons/22x22/Makefile
plugins/gnome/Makefile
plugins/gnome/icons/Makefile
plugins/gnome/icons/16x16/Makefile
plugins/gnome/icons/22x22/Makefile
plugins/python/Makefile
po/Makefile.in
doc/Makefile
doc/version.xml
help/Makefile
])
AC_OUTPUT
echo "
Configuration:
Source code location: ${srcdir}
Compiler: ${CC}
GTK+ UNIX Print Widgets: ${have_unix_print}
GNOME UI Widgets: ${have_gnome}
PYTHON Widgets support: ${have_python}
Build Reference Manual: ${enable_gtk_doc}
Build User Manual: ${gdu_cv_have_gdu}
"

5
data/.gitignore vendored
View File

@ -1,3 +1,4 @@
/glade-3.desktop /org.gnome.Glade.desktop
/glade-3.desktop.in /org.gnome.Glade.desktop.in
/gladeui-1.0.pc /gladeui-1.0.pc
/org.gnome.Glade.appdata.xml

View File

@ -1,19 +0,0 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = icons
desktopdir = $(datadir)/applications
desktop_in_files = glade-3.desktop.in.in
desktop_DATA = $(desktop_in_files:.desktop.in.in=.desktop)
@INTLTOOL_DESKTOP_RULE@
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = gladeui-1.0.pc
EXTRA_DIST = \
$(desktop_in_files) \
gladeui-1.0.pc.in
CLEANFILES = \
$(desktop_DATA) \
$(pkgconfig_DATA)

View File

@ -0,0 +1,18 @@
<?xml version="1.0"?>
<its:rules xmlns:its="http://www.w3.org/2005/11/its"
xmlns:gt="https://www.gnu.org/s/gettext/ns/its/extensions/1.0"
version="2.0">
<its:translateRule selector="/glade-catalog" translate="no"/>
<its:translateRule selector="/glade-catalog//glade-widget-class/@title" translate="yes"/>
<its:translateRule selector="/glade-catalog//glade-widget-class//action/@name" translate="yes"/>
<its:translateRule selector="/glade-catalog//glade-widget-class//property/@name" translate="yes"/>
<its:translateRule selector="/glade-catalog//glade-widget-class//property//value/@name" translate="yes"/>
<its:translateRule selector="/glade-catalog//glade-widget-class//property/tooltip" translate="yes"/>
<its:translateRule selector="/glade-catalog//glade-widget-group/@title" translate="yes"/>
<!-- Extracted strings are consumed by the library and are never
merged back; we don't want to escape special characters. -->
<gt:escapeRule selector="/glade-catalog" escape="no"/>
</its:rules>

View File

@ -0,0 +1,6 @@
<?xml version="1.0"?>
<locatingRules>
<locatingRule name="GladeCatalog" pattern="*.xml">
<documentRule localName="glade-catalog" target="glade-catalog.its"/>
</locatingRule>
</locatingRules>

View File

@ -1,17 +0,0 @@
[Desktop Entry]
_Name=Glade
_GenericName=Interface Designer
_X-GNOME-FullName=Glade Interface Designer
_Comment=Create or open user interface designs for GTK+ applications
Exec=glade-3 %F
Terminal=false
StartupNotify=true
Type=Application
Icon=glade-3
Categories=GNOME;GTK;Development;GUIDesigner;
MimeType=application/x-glade;
X-GNOME-DocPath=glade/glade.xml
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=glade3
X-GNOME-Bugzilla-Version=@VERSION@
X-GNOME-Bugzilla-Component=general

View File

@ -1,18 +0,0 @@
prefix=@prefix@
exec_prefix=@exec_prefix@
libdir=@libdir@
datarootdir=@datarootdir@
datadir=@datadir@
includedir=@includedir@/libgladeui-1.0
catalogdir=@datadir@/@PACKAGE@/catalogs
pixmapdir=@datadir@/@PACKAGE@/pixmaps
moduledir=@libdir@/@PACKAGE@/modules
Name: Glade
Description: Glade interface designer library
URL: http://glade.gnome.org
Version: @PACKAGE_VERSION@
Requires: gtk+-2.0 >= 2.14.0 libxml-2.0 >= 2.4.0
Libs: -L${libdir} -lgladeui-1
Cflags: -I${includedir}

View File

@ -1,23 +0,0 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = hicolor
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
install-data-hook: update-icon-cache
uninstall-hook: update-icon-cache
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
pixmapsdir = $(pkgdatadir)/pixmaps
pixmaps_DATA = selector.png devhelp.png plus.png atk.png drag-resize.png
EXTRA_DIST = $(pixmaps_DATA) glade-3.ico

Binary file not shown.

Before

Width:  |  Height:  |  Size: 681 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 638 B

BIN
data/icons/fixed-bg.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

View File

Before

Width:  |  Height:  |  Size: 15 KiB

After

Width:  |  Height:  |  Size: 15 KiB

View File

@ -1 +0,0 @@
SUBDIRS = apps

View File

@ -1,6 +0,0 @@
## Process this file with automake to produce Makefile.in
appicondir = $(datadir)/icons/hicolor/16x16/apps
appicon_DATA = glade-3.png
EXTRA_DIST = $(appicon_DATA) glade-3.xcf

Binary file not shown.

Before

Width:  |  Height:  |  Size: 527 B

View File

@ -1 +0,0 @@
SUBDIRS = apps

View File

@ -1,6 +0,0 @@
## Process this file with automake to produce Makefile.in
appicondir = $(datadir)/icons/hicolor/22x22/apps
appicon_DATA = glade-3.png
EXTRA_DIST = $(appicon_DATA) glade-3.xcf

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -1 +0,0 @@
SUBDIRS = apps

View File

@ -1,6 +0,0 @@
## Process this file with automake to produce Makefile.in
appicondir = $(datadir)/icons/hicolor/24x24/apps
appicon_DATA = glade-3.png
EXTRA_DIST = $(appicon_DATA)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.0 KiB

View File

@ -1 +0,0 @@
SUBDIRS = apps

View File

@ -1,6 +0,0 @@
## Process this file with automake to produce Makefile.in
appicondir = $(datadir)/icons/hicolor/32x32/apps
appicon_DATA = glade-3.png
EXTRA_DIST = $(appicon_DATA) glade-3.svg

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

View File

@ -1,771 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="32"
height="32"
id="svg4908"
sodipodi:version="0.32"
inkscape:version="0.44+devel"
sodipodi:docname="glade.svg"
sodipodi:docbase="/home/andreas/project/application icons/32x32"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/andreas/project/application icons/32x32/glade.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
version="1.0"
sodipodi:modified="true">
<defs
id="defs4910">
<linearGradient
id="linearGradient22140">
<stop
style="stop-color:black;stop-opacity:0;"
offset="0"
id="stop22142" />
<stop
id="stop22148"
offset="0.5"
style="stop-color:black;stop-opacity:1;" />
<stop
style="stop-color:black;stop-opacity:0;"
offset="1"
id="stop22144" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient22140"
id="linearGradient23044"
gradientUnits="userSpaceOnUse"
x1="18.142136"
y1="35"
x2="18.142136"
y2="42.040661" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient23042"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-89.10259,-31.49999)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<linearGradient
inkscape:collect="always"
id="linearGradient22122">
<stop
style="stop-color:black;stop-opacity:1;"
offset="0"
id="stop22124" />
<stop
style="stop-color:black;stop-opacity:0;"
offset="1"
id="stop22126" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient23040"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-41.10259,45.50001)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<linearGradient
inkscape:collect="always"
id="linearGradient7025">
<stop
style="stop-color:#e6ce46;stop-opacity:1"
offset="0"
id="stop7027" />
<stop
style="stop-color:#d6ba1c;stop-opacity:1"
offset="1"
id="stop7029" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7025"
id="linearGradient10840"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(53,1.428571)"
x1="13.630114"
y1="28.5"
x2="25.208096"
y2="41.180992" />
<linearGradient
inkscape:collect="always"
id="linearGradient7780">
<stop
style="stop-color:#888a85;stop-opacity:1;"
offset="0"
id="stop7782" />
<stop
style="stop-color:#888a85;stop-opacity:0;"
offset="1"
id="stop7784" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7752">
<stop
style="stop-color:#888a85;stop-opacity:1"
offset="0"
id="stop7754" />
<stop
style="stop-color:#888a85;stop-opacity:0"
offset="1"
id="stop7756" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7744">
<stop
style="stop-color:#888a85;stop-opacity:1"
offset="0"
id="stop7746" />
<stop
style="stop-color:#888a85;stop-opacity:0"
offset="1"
id="stop7748" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7736">
<stop
style="stop-color:#c1c7bc;stop-opacity:1;"
offset="0"
id="stop7738" />
<stop
style="stop-color:#e8eae6;stop-opacity:1"
offset="1"
id="stop7740" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7728">
<stop
style="stop-color:#d3d7cf;stop-opacity:1"
offset="0"
id="stop7730" />
<stop
style="stop-color:#eeeeec;stop-opacity:1"
offset="1"
id="stop7732" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7720">
<stop
style="stop-color:#555753;stop-opacity:1;"
offset="0"
id="stop7722" />
<stop
style="stop-color:#555753;stop-opacity:0;"
offset="1"
id="stop7724" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7686">
<stop
style="stop-color:#555753;stop-opacity:1;"
offset="0"
id="stop7688" />
<stop
style="stop-color:#555753;stop-opacity:0;"
offset="1"
id="stop7690" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient6997">
<stop
style="stop-color:#babdb6;stop-opacity:1;"
offset="0"
id="stop6999" />
<stop
style="stop-color:#d7d9d5;stop-opacity:1"
offset="1"
id="stop7001" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient6905">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop6907" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop6909" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4790">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop4792" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop4794" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient4790"
id="radialGradient4796"
cx="37.030354"
cy="12.98915"
fx="37.030354"
fy="12.98915"
r="4.2929163"
gradientTransform="matrix(-1.5795056,0,0,0.9498629,62.524548,-3.1435399)"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient269">
<stop
id="stop270"
offset="0.0000000"
style="stop-color:#a3a3a3;stop-opacity:1.0000000;" />
<stop
id="stop271"
offset="1"
style="stop-color:#8a8a8a;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient259">
<stop
id="stop260"
offset="0.0000000"
style="stop-color:#729fcf;stop-opacity:1" />
<stop
id="stop261"
offset="1.0000000"
style="stop-color:#204a87;stop-opacity:1.0000000" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient2251">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop2253" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop2255" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2251"
id="linearGradient8166"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(2.2961811e-2,-0.6857104,-0.7001194,-2.2489236e-2,30.580101,31.011455)"
x1="32.862488"
y1="36.028366"
x2="34.170048"
y2="38.070381" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6905"
id="linearGradient6959"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(11.30501,19.746952)"
x1="-15.909902"
y1="16.003418"
x2="-23"
y2="16.091806" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6905"
id="linearGradient6962"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-35,-4.5078057)"
x1="-15.909902"
y1="16.003418"
x2="-23"
y2="16.091806" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6997"
id="linearGradient7003"
x1="-17.235727"
y1="17.947962"
x2="-17.324116"
y2="32.53204"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7686"
id="linearGradient7692"
x1="35.47406"
y1="36.912945"
x2="35.47406"
y2="39.351414"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.7494886,0,0,0.7313296,-0.130915,-3.1911008)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7720"
id="linearGradient7726"
x1="-8.28125"
y1="12.475584"
x2="-8.28125"
y2="6.2509766"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.2909093,0,0,0.1748634,-24.09091,4.1256829)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient7728"
id="radialGradient7734"
cx="8.3376141"
cy="40.582108"
fx="8.3376141"
fy="40.582108"
r="20.500002"
gradientTransform="matrix(-0.7220896,5.1346809e-8,8.5653087e-7,0.6522647,32.925823,-0.8066207)"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7736"
id="linearGradient7742"
x1="38.944931"
y1="12.11484"
x2="37.306168"
y2="13.392819"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-0.6904882,0,0,0.7398648,31.536239,-3.0489861)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7744"
id="linearGradient7750"
x1="18.384777"
y1="22"
x2="23.292892"
y2="22"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.8000001,0,0,0.5,-0.2000016,2.4999997)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7752"
id="linearGradient7758"
x1="15.114408"
y1="27"
x2="20.019962"
y2="27"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.857143,0,0,0.5,-1.0000023,3.9999994)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7780"
id="linearGradient7786"
x1="20.875"
y1="14.249998"
x2="20.875"
y2="18.437498"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.7410819,0,0,0.6666666,6.21347e-2,-2.0000004)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient5157"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-41.10259,45.50001)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient5159"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-89.10259,-31.49999)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient22140"
id="linearGradient5161"
gradientUnits="userSpaceOnUse"
x1="18.142136"
y1="35"
x2="18.142136"
y2="42.040661" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient6150"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-41.10259,45.50001)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient6152"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-89.10259,-31.49999)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient22140"
id="linearGradient6154"
gradientUnits="userSpaceOnUse"
x1="18.142136"
y1="35"
x2="18.142136"
y2="42.040661" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7025"
id="linearGradient6156"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(53,1.428571)"
x1="13.630114"
y1="28.5"
x2="25.208096"
y2="41.180992" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="15.999999"
inkscape:cx="33.76609"
inkscape:cy="20.586245"
inkscape:current-layer="layer1"
showgrid="false"
inkscape:grid-bbox="true"
inkscape:document-units="px"
inkscape:window-width="1674"
inkscape:window-height="968"
inkscape:window-x="0"
inkscape:window-y="26"
showguides="true"
inkscape:guide-bbox="true"
width="32px"
height="32px" />
<metadata
id="metadata4913">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<g
id="g5149"
style="opacity:0.3"
transform="matrix(-0.6666667,0,0,0.5714286,32,6)">
<rect
y="35"
x="0"
height="7"
width="4"
id="rect5151"
style="opacity:1;fill:url(#radialGradient5157);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
transform="scale(-1,-1)"
y="-42"
x="-48"
height="7"
width="4"
id="rect5153"
style="opacity:1;fill:url(#radialGradient5159);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
y="35"
x="4"
height="7"
width="40"
id="rect5155"
style="opacity:1;fill:url(#linearGradient5161);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
</g>
<path
style="fill:url(#radialGradient7734);fill-opacity:1;stroke:#888a85;stroke-width:0.99999994;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1"
d="M 29.294093,2.4999998 L 8.7293434,2.4999998 C 8.6152711,2.4999998 1.5,9.7905242 1.5,9.9074054 L 1.5,28.289021 C 1.5,28.405903 1.5918342,28.499999 1.7059065,28.499999 L 29.294093,28.499999 C 29.408166,28.499999 29.5,28.405903 29.5,28.289021 L 29.5,2.7109774 C 29.5,2.5940958 29.565495,2.4084486 29.294093,2.4999998 z "
id="rect4916"
sodipodi:nodetypes="ccccccccc" />
<path
style="fill:none;fill-rule:evenodd;stroke:url(#linearGradient7692);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 26.500001,26.500001 L 26.500001,7.5000002 L 5.5000002,7.5000002 L 5.5000002,23.548695 L 18.151658,23.548695"
id="path4974"
sodipodi:nodetypes="ccccc" />
<path
style="opacity:0.64130435;fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:1.00000012;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1"
d="M 2.4999999,9.5909104 L 8.5838808,3.5000002 L 28.437499,3.5000002 L 28.437499,27.500002 L 2.4999999,27.500002 L 2.4999999,9.5909104 z "
id="rect5887"
sodipodi:nodetypes="cccccc" />
<path
style="fill:none;fill-rule:evenodd;stroke:#555753;stroke-width:0.99999988px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 4.5377704,10.5 L 27.978076,10.5"
id="path4976" />
<path
inkscape:r_cy="true"
inkscape:r_cx="true"
style="opacity:0.35714285;color:#000000;fill:url(#radialGradient4796);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.00000024;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
d="M 1.3527051,9.6855718 C 2.0121209,8.6892491 6.877972,6.9254979 9.4107408,6.3339567 C 9.2572783,7.4977242 9.5218979,11.008446 9.5218979,11.008446 C 7.6546325,9.9911316 2.0595082,9.5656294 1.3527051,9.6855718 z "
id="path5348"
sodipodi:nodetypes="cccc" />
<rect
style="opacity:0.64130435;fill:url(#linearGradient7786);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect7778"
width="20.009211"
height="2"
x="5.9907894"
y="8" />
<path
style="opacity:1;color:#000000;fill:url(#linearGradient7742);fill-opacity:1;fill-rule:nonzero;stroke:#888a85;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
d="M 1.5000141,9.9760969 C 1.4909238,8.9290832 5.8863647,2.4241096 8.5672434,2.5006702 C 7.8953721,2.673055 7.3586439,7.0641785 8.3182291,9.1450482 C 6.4193865,9.1450482 2.1655515,8.6012994 1.5000141,9.9760969 z "
id="path2210"
sodipodi:nodetypes="cccc"
inkscape:r_cx="true"
inkscape:r_cy="true" />
<path
sodipodi:nodetypes="cccc"
id="path2247"
d="M 2.6785155,8.0439173 C 3.1887299,7.1200246 5.5915523,4.5658067 6.9383154,3.7171098 C 6.7709389,4.6953545 6.5621107,6.2435454 6.9933638,8.0015394 C 6.9933638,8.0015394 3.2253952,7.9326947 2.6785155,8.0439173 z "
style="opacity:1;color:#000000;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient8166);stroke-width:1.00000024;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
inkscape:r_cx="true"
inkscape:r_cy="true" />
<path
sodipodi:type="arc"
style="opacity:0.78260869;fill:none;fill-opacity:1;stroke:#555753;stroke-width:2.43027735;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4978"
sodipodi:cx="11.136932"
sodipodi:cy="23.604815"
sodipodi:rx="2.3864856"
sodipodi:ry="2.4748738"
d="M 13.523418 23.604815 A 2.3864856 2.4748738 0 1 1 8.7504468,23.604815 A 2.3864856 2.4748738 0 1 1 13.523418 23.604815 z"
transform="matrix(0.4190262,0,0,0.4040609,3.833333,3.9622167)" />
<path
sodipodi:type="arc"
style="opacity:0.78260869;fill:none;fill-opacity:1;stroke:#555753;stroke-width:2.43027806;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path5951"
sodipodi:cx="11.136932"
sodipodi:cy="23.604815"
sodipodi:rx="2.3864856"
sodipodi:ry="2.4748738"
d="M 13.523418 23.604815 A 2.3864856 2.4748738 0 1 1 8.7504468,23.604815 A 2.3864856 2.4748738 0 1 1 13.523418 23.604815 z"
transform="matrix(0.4190262,0,0,0.404061,3.8333336,7.9622149)" />
<rect
style="opacity:1;fill:url(#linearGradient7750);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect5955"
width="8.000001"
height="1"
x="11"
y="13"
rx="0"
ry="0" />
<rect
style="opacity:1;fill:url(#linearGradient7758);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect5957"
width="6"
height="1"
x="11"
y="17"
rx="0"
ry="0" />
<rect
style="opacity:1;fill:#555753;fill-opacity:1;stroke:none;stroke-width:1.00000036;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect5963"
width="1"
height="1"
x="-8"
y="-28"
transform="matrix(0,-1,-1,0,0,0)" />
<path
style="fill:none;fill-rule:evenodd;stroke:#555753;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
d="M 19.36965,19.5 L 13.5,19.5 L 13.5,21.5 L 20.5,21.5 L 20.5,20.680407"
id="path5965"
sodipodi:nodetypes="ccccc" />
<rect
style="opacity:1;fill:url(#linearGradient7726);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect7718"
width="1.0000006"
height="2"
x="-27"
y="5"
transform="scale(-1,1)" />
<g
id="g22150"
style="opacity:0.3"
transform="matrix(-0.916667,0,0,0.714282,48,18.00012)">
<rect
y="35"
x="0"
height="7"
width="4"
id="rect22120"
style="opacity:1;fill:url(#radialGradient23040);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
transform="scale(-1,-1)"
y="-42"
x="-48"
height="7"
width="4"
id="rect22134"
style="opacity:1;fill:url(#radialGradient23042);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
y="35"
x="4"
height="7"
width="40"
id="rect22138"
style="opacity:1;fill:url(#linearGradient23044);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
</g>
<g
id="g10824"
transform="matrix(-1,0,0,1,152,-1.9285711)">
<path
id="path4319"
d="M 57.5,14.928571 L 57.5,44.928571 L 96.5,44.928571 L 57.5,14.928571 z M 63.5,27.928571 L 78.5,38.928571 L 63.5,38.928571 L 63.5,27.928571 z "
style="fill:url(#linearGradient10840);fill-opacity:1;fill-rule:evenodd;stroke:#a38503;stroke-width:1.00000024px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4326"
d="M 61.5,44.928571 L 61.5,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4328"
d="M 67.5,44.928571 L 67.5,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4330"
d="M 73.5,44.928571 L 73.5,41.964285"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4332"
d="M 79.5,44.928571 L 79.5,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4334"
d="M 85.5,44.928571 L 85.5,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path6126"
d="M 58.500002,16.928575 L 58.500002,43.928586 L 93.500014,43.928586 L 58.500002,16.928575 z "
style="opacity:0.4;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.0000006px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<path
style="opacity:0.4;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 89.455805,39.509552 L 89.5,25.5 L 70.415961,39.530368 L 89.455805,39.509552 z "
id="path12221"
sodipodi:nodetypes="cccc" />
<g
id="g6123"
style="opacity:0.3"
transform="matrix(-0.642788,0,0,0.499897,32,10.004326)">
<rect
y="35"
x="0"
height="7"
width="4"
id="rect6125"
style="opacity:1;fill:url(#radialGradient6150);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
transform="scale(-1,-1)"
y="-42"
x="-48"
height="7"
width="4"
id="rect6127"
style="opacity:1;fill:url(#radialGradient6152);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
y="35"
x="4"
height="7"
width="40"
id="rect6129"
style="opacity:1;fill:url(#linearGradient6154);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
</g>
<g
id="g6131"
transform="matrix(-0.712014,0,0,0.705285,72.47014,-2.2704347)">
<path
id="path6133"
d="M 57.5,14.928571 L 57.5,44.928571 L 96.5,44.928571 L 57.5,14.928571 z M 63.236662,27.131021 L 77.534429,37.865171 L 63.148883,37.953788 L 63.236662,27.131021 z "
style="fill:url(#linearGradient6156);fill-opacity:1;fill-rule:evenodd;stroke:#a38503;stroke-width:1.4111501px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
sodipodi:nodetypes="cccccccc" />
<path
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1.41114986px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1"
d="M 88.396719,44.928571 L 88.396719,41.928571"
id="path1912"
sodipodi:nodetypes="cc" />
<path
sodipodi:nodetypes="cc"
id="path6136"
d="M 61.675558,44.928571 L 61.675558,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1.41114986px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path6138"
d="M 67.324442,44.928571 L 67.324442,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1.41114986px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path6140"
d="M 72.973326,44.928571 L 72.973326,41.964285"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1.41114986px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path6142"
d="M 78.534431,44.928571 L 78.534431,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1.41114986px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path6144"
d="M 82.778851,44.928571 L 82.778851,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1.41114986px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path6146"
d="M 58.893688,17.726124 L 58.893688,43.628368 L 92.40573,43.628368 L 58.893688,17.726124 z "
style="opacity:0.4;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.41115046px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
sodipodi:nodetypes="cccc" />
</g>
<path
style="opacity:0.4;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:0.9999997px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 28.530931,25.46829 L 28.499421,14.788571 L 14.24226,25.482858 L 28.530931,25.46829 z "
id="path6148"
sodipodi:nodetypes="cccc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 30 KiB

View File

@ -1 +0,0 @@
SUBDIRS = apps

View File

@ -1,6 +0,0 @@
## Process this file with automake to produce Makefile.in
appicondir = $(datadir)/icons/hicolor/48x48/apps
appicon_DATA = glade-3.png
EXTRA_DIST = $(appicon_DATA)

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.3 KiB

View File

@ -1 +0,0 @@
SUBDIRS = 16x16 22x22 24x24 32x32 48x48 scalable

View File

@ -1 +0,0 @@
SUBDIRS = apps

View File

@ -1,6 +0,0 @@
## Process this file with automake to produce Makefile.in
appicondir = $(datadir)/icons/hicolor/scalable/apps
appicon_DATA = glade-3.svg
EXTRA_DIST = $(appicon_DATA)

View File

@ -1,648 +0,0 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://web.resource.org/cc/"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="48px"
height="48px"
id="svg4908"
sodipodi:version="0.32"
inkscape:version="0.44+devel"
sodipodi:docname="glade5.svg"
sodipodi:docbase="/home/andreas/project/application icons/48x48"
inkscape:output_extension="org.inkscape.output.svg.inkscape"
inkscape:export-filename="/home/andreas/project/application icons/48x48/glade5.png"
inkscape:export-xdpi="90"
inkscape:export-ydpi="90"
sodipodi:modified="true">
<defs
id="defs4910">
<linearGradient
id="linearGradient22140">
<stop
style="stop-color:black;stop-opacity:0;"
offset="0"
id="stop22142" />
<stop
id="stop22148"
offset="0.5"
style="stop-color:black;stop-opacity:1;" />
<stop
style="stop-color:black;stop-opacity:0;"
offset="1"
id="stop22144" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient22140"
id="linearGradient23044"
gradientUnits="userSpaceOnUse"
x1="18.142136"
y1="35"
x2="18.142136"
y2="42.040661" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient23042"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-89.10259,-31.49999)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<linearGradient
inkscape:collect="always"
id="linearGradient22122">
<stop
style="stop-color:black;stop-opacity:1;"
offset="0"
id="stop22124" />
<stop
style="stop-color:black;stop-opacity:0;"
offset="1"
id="stop22126" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient23040"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-41.10259,45.50001)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<linearGradient
inkscape:collect="always"
id="linearGradient7025">
<stop
style="stop-color:#e6ce46;stop-opacity:1"
offset="0"
id="stop7027" />
<stop
style="stop-color:#d6ba1c;stop-opacity:1"
offset="1"
id="stop7029" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7025"
id="linearGradient10840"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(53,1.428571)"
x1="13.630114"
y1="28.5"
x2="25.208096"
y2="41.180992" />
<linearGradient
inkscape:collect="always"
id="linearGradient7780">
<stop
style="stop-color:#888a85;stop-opacity:1;"
offset="0"
id="stop7782" />
<stop
style="stop-color:#888a85;stop-opacity:0;"
offset="1"
id="stop7784" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7752">
<stop
style="stop-color:#888a85;stop-opacity:1"
offset="0"
id="stop7754" />
<stop
style="stop-color:#888a85;stop-opacity:0"
offset="1"
id="stop7756" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7744">
<stop
style="stop-color:#888a85;stop-opacity:1"
offset="0"
id="stop7746" />
<stop
style="stop-color:#888a85;stop-opacity:0"
offset="1"
id="stop7748" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7736">
<stop
style="stop-color:#c1c7bc;stop-opacity:1;"
offset="0"
id="stop7738" />
<stop
style="stop-color:#e8eae6;stop-opacity:1"
offset="1"
id="stop7740" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7728">
<stop
style="stop-color:#d3d7cf;stop-opacity:1"
offset="0"
id="stop7730" />
<stop
style="stop-color:#eeeeec;stop-opacity:1"
offset="1"
id="stop7732" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7720">
<stop
style="stop-color:#555753;stop-opacity:1;"
offset="0"
id="stop7722" />
<stop
style="stop-color:#555753;stop-opacity:0;"
offset="1"
id="stop7724" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient7686">
<stop
style="stop-color:#555753;stop-opacity:1;"
offset="0"
id="stop7688" />
<stop
style="stop-color:#555753;stop-opacity:0;"
offset="1"
id="stop7690" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient6997">
<stop
style="stop-color:#babdb6;stop-opacity:1;"
offset="0"
id="stop6999" />
<stop
style="stop-color:#d7d9d5;stop-opacity:1"
offset="1"
id="stop7001" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient6905">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop6907" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop6909" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient4790">
<stop
style="stop-color:#000000;stop-opacity:1;"
offset="0"
id="stop4792" />
<stop
style="stop-color:#000000;stop-opacity:0;"
offset="1"
id="stop4794" />
</linearGradient>
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient4790"
id="radialGradient4796"
cx="37.030354"
cy="12.98915"
fx="37.030354"
fy="12.98915"
r="4.2929163"
gradientTransform="matrix(-2.1313511,0,0,1.283833,86.543976,-0.1277984)"
gradientUnits="userSpaceOnUse" />
<linearGradient
id="linearGradient269">
<stop
id="stop270"
offset="0.0000000"
style="stop-color:#a3a3a3;stop-opacity:1.0000000;" />
<stop
id="stop271"
offset="1"
style="stop-color:#8a8a8a;stop-opacity:1;" />
</linearGradient>
<linearGradient
id="linearGradient259">
<stop
id="stop260"
offset="0.0000000"
style="stop-color:#729fcf;stop-opacity:1" />
<stop
id="stop261"
offset="1.0000000"
style="stop-color:#204a87;stop-opacity:1.0000000" />
</linearGradient>
<linearGradient
inkscape:collect="always"
id="linearGradient2251">
<stop
style="stop-color:#ffffff;stop-opacity:1;"
offset="0"
id="stop2253" />
<stop
style="stop-color:#ffffff;stop-opacity:0;"
offset="1"
id="stop2255" />
</linearGradient>
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient2251"
id="linearGradient8166"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(3.277938e-2,-1.0071302,-0.999463,-3.303084e-2,45.620229,49.233341)"
x1="32.862488"
y1="36.028366"
x2="34.170048"
y2="38.070381" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6905"
id="linearGradient6959"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(11.30501,19.746952)"
x1="-15.909902"
y1="16.003418"
x2="-23"
y2="16.091806" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6905"
id="linearGradient6962"
gradientUnits="userSpaceOnUse"
gradientTransform="translate(-35,-4.5078057)"
x1="-15.909902"
y1="16.003418"
x2="-23"
y2="16.091806" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient6997"
id="linearGradient7003"
x1="-17.235727"
y1="17.947962"
x2="-17.324116"
y2="32.53204"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7686"
id="linearGradient7692"
x1="35.47406"
y1="36.912945"
x2="35.47406"
y2="39.351414"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(1,0,0,1.0045696,0,-0.1855194)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7720"
id="linearGradient7726"
x1="-8.28125"
y1="12.475584"
x2="-8.28125"
y2="6.2509766"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0.2909091,0,0,0.3497268,-33.090909,9.251366)" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient7728"
id="radialGradient7734"
cx="8.3376141"
cy="40.582108"
fx="8.3376141"
fy="40.582108"
r="20.500002"
gradientTransform="matrix(-0.9959857,6.9120707e-8,1.181422e-6,0.8780487,46.845968,3.0487798)"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7736"
id="linearGradient7742"
x1="38.944931"
y1="12.11484"
x2="37.306168"
y2="13.392819"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(-1,0,0,1,47.000004,0)" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7744"
id="linearGradient7750"
x1="18.384777"
y1="22"
x2="23.292892"
y2="22"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7752"
id="linearGradient7758"
x1="15.114408"
y1="27"
x2="20.019962"
y2="27"
gradientUnits="userSpaceOnUse" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient7780"
id="linearGradient7786"
x1="20.875"
y1="14.249998"
x2="20.875"
y2="18.437498"
gradientUnits="userSpaceOnUse" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient5157"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-41.10259,45.50001)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<radialGradient
inkscape:collect="always"
xlink:href="#linearGradient22122"
id="radialGradient5159"
gradientUnits="userSpaceOnUse"
gradientTransform="matrix(0,-1.000001,1.142856,0,-89.10259,-31.49999)"
cx="7"
cy="39.464806"
fx="7"
fy="39.464806"
r="3.5" />
<linearGradient
inkscape:collect="always"
xlink:href="#linearGradient22140"
id="linearGradient5161"
gradientUnits="userSpaceOnUse"
x1="18.142136"
y1="35"
x2="18.142136"
y2="42.040661" />
</defs>
<sodipodi:namedview
id="base"
pagecolor="#ffffff"
bordercolor="#666666"
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="15.999999"
inkscape:cx="27.406385"
inkscape:cy="33.127804"
inkscape:current-layer="layer1"
showgrid="true"
inkscape:grid-bbox="true"
inkscape:document-units="px"
inkscape:window-width="1674"
inkscape:window-height="968"
inkscape:window-x="0"
inkscape:window-y="26"
showguides="true"
inkscape:guide-bbox="true" />
<metadata
id="metadata4913">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
</cc:Work>
</rdf:RDF>
</metadata>
<g
id="layer1"
inkscape:label="Layer 1"
inkscape:groupmode="layer">
<g
id="g5149"
style="opacity:0.3"
transform="matrix(-0.9583333,0,0,0.714282,47,15.000156)">
<rect
y="35"
x="0"
height="7"
width="4"
id="rect5151"
style="opacity:1;fill:url(#radialGradient5157);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
transform="scale(-1,-1)"
y="-42"
x="-48"
height="7"
width="4"
id="rect5153"
style="opacity:1;fill:url(#radialGradient5159);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
y="35"
x="4"
height="7"
width="40"
id="rect5155"
style="opacity:1;fill:url(#linearGradient5161);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
</g>
<path
style="fill:url(#radialGradient7734);fill-opacity:1;stroke:#888a85;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1"
d="M 43.215995,7.5 L 13.471509,7.5 C 13.314168,7.5 3.5,17.314168 3.5,17.471508 L 3.5,42.215992 C 3.5,42.373332 3.626668,42.5 3.784009,42.5 L 43.215995,42.5 C 43.373336,42.5 43.500004,42.373332 43.500004,42.215992 L 43.500004,7.7840084 C 43.500004,7.6266678 43.373336,7.5 43.215995,7.5 z "
id="rect4916"
sodipodi:nodetypes="ccccccccc" />
<path
style="fill:none;fill-rule:evenodd;stroke:url(#linearGradient7692);stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 35.532117,40.598798 L 35.532117,14.5 L 7.5130099,14.5 L 7.5130099,36.544822 L 24.393398,36.544822"
id="path4974"
sodipodi:nodetypes="ccccc" />
<path
style="opacity:0.64130435;fill:none;fill-opacity:1;stroke:#ffffff;stroke-width:1;stroke-linecap:round;stroke-linejoin:round;stroke-miterlimit:4;stroke-dashoffset:0;stroke-opacity:1"
d="M 4.5,16.875001 L 13.062499,8.5 L 42.5,8.5 L 42.5,41.5 L 4.5,41.5 L 4.5,16.875001 z "
id="rect5887"
sodipodi:nodetypes="cccccc" />
<path
style="fill:none;fill-rule:evenodd;stroke:#555753;stroke-width:0.99999994px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 6.0648146,18.566679 L 35.435184,18.566679"
id="path4976" />
<path
inkscape:r_cy="true"
inkscape:r_cx="true"
style="opacity:0.35714285;color:#000000;fill:url(#radialGradient4796);fill-opacity:1;fill-rule:evenodd;stroke:none;stroke-width:1.00000024;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
d="M 4,17.212006 C 4.8898017,15.865378 11.455677,13.481495 14.873341,12.681969 C 14.666262,14.254915 15.023334,19 15.023334,19 C 12.503686,17.625 4.9537451,17.049892 4,17.212006 z "
id="path5348"
sodipodi:nodetypes="cccc" />
<rect
style="opacity:0.64130435;fill:url(#linearGradient7786);fill-opacity:1.0;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect7778"
width="27"
height="3"
x="8"
y="15" />
<path
style="opacity:1;color:#000000;fill:url(#linearGradient7742);fill-opacity:1;fill-rule:nonzero;stroke:#888a85;stroke-width:1;stroke-linecap:butt;stroke-linejoin:round;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:block;overflow:visible"
d="M 3.500024,17.60468 C 3.486859,16.189538 9.852559,7.3974268 13.735143,7.500906 C 12.762105,7.733901 11.984788,13.668936 13.374508,16.481436 C 10.624508,16.481436 4.463889,15.746506 3.500024,17.60468 z "
id="path2210"
sodipodi:nodetypes="cccc"
inkscape:r_cx="true"
inkscape:r_cy="true" />
<path
sodipodi:nodetypes="cccc"
id="path2247"
d="M 5.78902,15.499999 C 6.517382,14.143041 9.947557,10.391559 11.870143,9.1450438 C 11.631203,10.581831 11.333088,12.855721 11.948728,15.437757 C 11.948728,15.437757 6.569724,15.336642 5.78902,15.499999 z "
style="opacity:1;color:#000000;fill:none;fill-opacity:1;fill-rule:evenodd;stroke:url(#linearGradient8166);stroke-width:1.00000024;stroke-linecap:butt;stroke-linejoin:miter;marker:none;marker-start:none;marker-mid:none;marker-end:none;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;visibility:visible;display:inline;overflow:visible"
inkscape:r_cx="true"
inkscape:r_cy="true" />
<path
sodipodi:type="arc"
style="opacity:0.7826087;fill:none;fill-opacity:1;stroke:#555753;stroke-width:1.62018538;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path4978"
sodipodi:cx="11.136932"
sodipodi:cy="23.604815"
sodipodi:rx="2.3864856"
sodipodi:ry="2.4748738"
d="M 13.523418 23.604815 A 2.3864856 2.4748738 0 1 1 8.7504468,23.604815 A 2.3864856 2.4748738 0 1 1 13.523418 23.604815 z"
transform="matrix(0.6285393,0,0,0.6060913,3.9999997,7.6933267)" />
<path
sodipodi:type="arc"
style="opacity:0.7826087;fill:none;fill-opacity:1;stroke:#555753;stroke-width:1.62018538;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="path5951"
sodipodi:cx="11.136932"
sodipodi:cy="23.604815"
sodipodi:rx="2.3864856"
sodipodi:ry="2.4748738"
d="M 13.523418 23.604815 A 2.3864856 2.4748738 0 1 1 8.7504468,23.604815 A 2.3864856 2.4748738 0 1 1 13.523418 23.604815 z"
transform="matrix(0.6285393,0,0,0.6060915,4.0000003,12.693323)" />
<rect
style="opacity:1;fill:url(#linearGradient7750);fill-opacity:1.0;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect5955"
width="10"
height="2"
x="14"
y="21"
rx="0"
ry="0" />
<rect
style="opacity:1;fill:url(#linearGradient7758);fill-opacity:1.0;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect5957"
width="7"
height="2"
x="14"
y="26"
rx="0"
ry="0" />
<rect
style="opacity:1;fill:#555753;fill-opacity:1;stroke:#555753;stroke-width:1.00000012;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect5963"
width="0.15951318"
height="3"
x="-14.659513"
y="-38.5"
transform="matrix(0,-1,-1,0,0,0)" />
<path
style="fill:none;fill-rule:evenodd;stroke:#555753;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:round;stroke-opacity:1"
d="M 23.906407,31.559768 L 15.5,31.559768 L 15.5,34.500001 L 25.525275,34.500001 L 25.525275,33.295103"
id="path5965"
sodipodi:nodetypes="ccccc" />
<rect
style="opacity:1;fill:url(#linearGradient7726);fill-opacity:1;stroke:none;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1"
id="rect7718"
width="1"
height="4"
x="-36"
y="11"
transform="scale(-1,1)" />
<g
id="g22150"
style="opacity:0.3"
transform="matrix(-0.916667,0,0,0.714282,48,18.00012)">
<rect
y="35"
x="0"
height="7"
width="4"
id="rect22120"
style="opacity:1;fill:url(#radialGradient23040);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
transform="scale(-1,-1)"
y="-42"
x="-48"
height="7"
width="4"
id="rect22134"
style="opacity:1;fill:url(#radialGradient23042);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
<rect
y="35"
x="4"
height="7"
width="40"
id="rect22138"
style="opacity:1;fill:url(#linearGradient23044);fill-opacity:1;stroke:none;stroke-width:3;stroke-linecap:square;stroke-linejoin:miter;stroke-miterlimit:10;stroke-dasharray:none;stroke-dashoffset:1.20000057;stroke-opacity:1" />
</g>
<g
id="g10824"
transform="matrix(-1,0,0,1,103,0.5714291)">
<path
id="path4319"
d="M 57.5,14.928571 L 57.5,44.928571 L 96.5,44.928571 L 57.5,14.928571 z M 63.5,27.928571 L 78.5,38.928571 L 63.5,38.928571 L 63.5,27.928571 z "
style="fill:url(#linearGradient10840);fill-opacity:1;fill-rule:evenodd;stroke:#a38503;stroke-width:1.00000024px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4326"
d="M 61.5,44.928571 L 61.5,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4328"
d="M 67.5,44.928571 L 67.5,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4330"
d="M 73.5,44.928571 L 73.5,41.964285"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4332"
d="M 79.5,44.928571 L 79.5,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
sodipodi:nodetypes="cc"
id="path4334"
d="M 85.5,44.928571 L 85.5,41.928571"
style="fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#a38503;stroke-width:1px;stroke-linecap:round;stroke-linejoin:miter;stroke-opacity:1" />
<path
id="path6126"
d="M 58.500002,16.928575 L 58.500002,43.928586 L 93.500014,43.928586 L 58.500002,16.928575 z "
style="opacity:0.4;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1.0000006px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1" />
</g>
<path
style="opacity:0.4;fill:none;fill-opacity:0.75;fill-rule:evenodd;stroke:#ffffff;stroke-width:1px;stroke-linecap:butt;stroke-linejoin:miter;stroke-opacity:1"
d="M 40.498252,40.542446 L 40.542447,26.532894 L 21.458408,40.563262 L 40.498252,40.542446 z "
id="path12221"
sodipodi:nodetypes="cccc" />
</g>
</svg>

Before

Width:  |  Height:  |  Size: 24 KiB

File diff suppressed because it is too large Load Diff

After

Width:  |  Height:  |  Size: 97 KiB

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 6.2 KiB

View File

@ -0,0 +1,125 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:cc="http://creativecommons.org/ns#"
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:svg="http://www.w3.org/2000/svg"
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
sodipodi:docname="glade-symbolic.svg"
height="16"
id="svg7384"
inkscape:version="0.92.2 2405546, 2018-03-11"
version="1.1"
width="16">
<metadata
id="metadata90">
<rdf:RDF>
<cc:Work
rdf:about="">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title>Gnome Symbolic Icon Theme</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
<sodipodi:namedview
inkscape:bbox-paths="true"
bordercolor="#666666"
borderopacity="1"
inkscape:current-layer="layer9"
inkscape:cx="20.812152"
inkscape:cy="4.0924638"
gridtolerance="10"
inkscape:guide-bbox="true"
guidetolerance="10"
id="namedview88"
inkscape:object-nodes="false"
inkscape:object-paths="false"
objecttolerance="10"
pagecolor="#555753"
inkscape:pageopacity="1"
inkscape:pageshadow="2"
showborder="true"
showgrid="false"
showguides="true"
inkscape:snap-bbox="true"
inkscape:snap-bbox-midpoints="false"
inkscape:snap-global="true"
inkscape:snap-grids="true"
inkscape:snap-nodes="true"
inkscape:snap-others="false"
inkscape:snap-to-guides="true"
inkscape:window-height="1381"
inkscape:window-maximized="1"
inkscape:window-width="2560"
inkscape:window-x="1600"
inkscape:window-y="27"
inkscape:zoom="1"
borderlayer="true"
inkscape:showpageshadow="false">
<inkscape:grid
empspacing="2"
enabled="true"
id="grid4866"
snapvisiblegridlinesonly="true"
spacingx="1"
spacingy="1"
type="xygrid"
visible="true"
originx="0"
originy="0" />
</sodipodi:namedview>
<title
id="title9167">Gnome Symbolic Icon Theme</title>
<defs
id="defs7386" />
<g
inkscape:groupmode="layer"
id="layer9"
inkscape:label="apps"
style="display:inline"
transform="translate(-223.0002,-215)">
<path
inkscape:connector-curvature="0"
d="m 239.00778,222.70429 v 8.31023 h -14 z m -2,3.95138 -4,2.35885 h 4 z"
id="path4349"
sodipodi:nodetypes="cccccccc"
style="display:inline;fill:#3d3846;fill-opacity:1;stroke:none;enable-background:new" />
<circle
r="1.5"
cy="219.51451"
cx="227.50777"
id="circle1750"
style="display:inline;opacity:1;vector-effect:none;fill:#3d3846;fill-opacity:0.99607843;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
<path
style="display:inline;opacity:1;vector-effect:none;fill:none;fill-opacity:0.99607843;stroke:#3d3846;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
d="m 224.00778,229.01452 v -13 h 14 v 4"
id="path1752"
inkscape:connector-curvature="0" />
<rect
style="display:inline;opacity:1;vector-effect:none;fill:#3d3846;fill-opacity:0.99607843;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
id="rect1754"
width="5"
height="1"
x="230.00777"
y="219.01451" />
<circle
style="display:inline;opacity:1;vector-effect:none;fill:#3d3846;fill-opacity:0.99607843;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new"
id="circle1761"
cx="227.50777"
cy="223.51451"
r="1.5" />
<rect
y="223.01451"
x="230.00777"
height="1"
width="5"
id="rect1763"
style="display:inline;opacity:1;vector-effect:none;fill:#3d3846;fill-opacity:0.99607843;stroke:none;stroke-width:2;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;marker:none;marker-start:none;marker-mid:none;marker-end:none;paint-order:normal;enable-background:new" />
</g>
</svg>

After

Width:  |  Height:  |  Size: 5.0 KiB

BIN
data/icons/placeholder.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 240 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 705 B

65
data/meson.build Normal file
View File

@ -0,0 +1,65 @@
desktop_conf = configuration_data()
desktop_conf.set('VERSION', glade_version)
i18n.merge_file(
type: 'desktop',
input: configure_file(
input: 'org.gnome.Glade.desktop.in.in',
output: '@BASENAME@',
configuration: desktop_conf,
),
output: '@BASENAME@',
po_dir: po_dir,
install: true,
install_dir: glade_datadir / 'applications',
)
appdata = glade_name + '.appdata.xml'
i18n.merge_file(
input: 'org.gnome.Glade.appdata.xml.in',
output: '@BASENAME@',
po_dir: po_dir,
install: true,
install_dir: glade_datadir / 'metainfo',
)
# FIXME: replace these by install_subdir once autotools is removed
install_data(
'icons/hicolor/scalable/apps/org.gnome.Glade.svg',
install_dir: glade_datadir / 'icons/hicolor/scalable/apps',
)
icon_symbolic_data = files(
'icons/hicolor/symbolic/apps/glade-brand-symbolic.svg',
'icons/hicolor/symbolic/apps/org.gnome.Glade-symbolic.svg',
)
install_data(
icon_symbolic_data,
install_dir: glade_datadir / 'icons/hicolor/symbolic/apps',
)
pixmaps_data = files(
'icons/deprecated-16x16.png',
'icons/deprecated-22x22.png',
'icons/devhelp.png',
'icons/fixed-bg.png',
'icons/placeholder.png',
'icons/plus.png',
)
install_data(
pixmaps_data,
install_dir: glade_datadir / glade_pixmapdir,
)
its_data = files(
'gettext/its/glade-catalog.its',
'gettext/its/glade-catalog.loc',
)
install_data(
its_data,
install_dir: glade_datadir / 'gettext/its',
)

View File

@ -0,0 +1,171 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>org.gnome.Glade</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>GPL-2.0+ and LGPL-2.0+</project_license>
<name>Glade</name>
<summary>Create or open user interface designs for GTK+ applications</summary>
<description>
<!-- To translators: AppData description first paragraph -->
<p>
Glade is a RAD tool to enable quick &amp; easy development of user interfaces
for the GTK+ 3 toolkit and the GNOME desktop environment.
</p>
<!-- To translators: AppData description second paragraph -->
<p>
The user interfaces designed in Glade are saved as XML and these can be
loaded by applications dynamically as needed by using GtkBuilder or used
directly to define a new GtkWidget derived object class using
GTK+ new template feature.
</p>
<!-- To translators: AppData description third paragraph -->
<p>
By using GtkBuilder, Glade XML files can be used in numerous programming
languages including C, C++, C#, Vala, Java, Perl, Python, and others.
</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://glade.gnome.org/images/glade-main-page.png</image>
</screenshot>
</screenshots>
<provides>
<id>glade.desktop</id>
</provides>
<launchable type="desktop-id">org.gnome.Glade.desktop</launchable>
<url type="homepage">https://glade.gnome.org/</url>
<url type="bugtracker">https://gitlab.gnome.org/GNOME/glade/issues</url>
<url type="donation">https://www.gnome.org/friends/</url>
<url type="help">https://help.gnome.org/users/glade/stable/</url>
<update_contact>juanpablougarte_at_gmail.com</update_contact>
<kudos>
<kudo>HiDpiIcon</kudo>
<kudo>ModernToolkit</kudo>
<kudo>UserDocs</kudo>
</kudos>
<project_group>GNOME</project_group>
<translation type="gettext">glade</translation>
<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">
<description>
<p>Glade 3.38.0 release!</p>
<ul>
<li>Load template files as new GTypes and add them to "User templates" widget group automatically without the need of a catalog</li>
<li>Added JavaScript widget support</li>
<li>Use version data from gir to improve deprecation/target tests</li>
<li>Implement survey using new backend at surveys.gnome.org</li>
<li>Keep survey state in config file</li>
<li>Associate with application/x-gtk-builder (Caolán McNamara)</li>
<li>Project properties dialog improvements. (Use headerbar, stack and stach switcher, add warnings textview)</li>
<li>Improve toolkit target version selection in project properties dialog</li>
<li>Improve treemodel char data type handling</li>
<li>Remove autotools (Iñigo Martínez)</li>
<li>New gjs-1.0 1.64 dependency</li>
<li>Bump Gtk dependency to 3.24</li>
<li>Bump webkit2gtk dependency to 2.28</li>
<li>Fixed all compiler/gir warnings</li>
</ul>
</description>
<issues>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/385">Issue #385: GtkCellRendererText causes deprecated warnings for ghost properties</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/444">Issue #444: show-emoji-icon is missing "minimum version"/since constraint</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/367">Issue #367: Glade removes double/triple slashes from URLs</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/452">Issue #452: GtkComboBox cell renderers editor is too hard to discover</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/363">Issue #363: Toplevel windows are leaked when closing a project</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/462">Issue #462: Crash when creating a new GtkAssistant and pressing it</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/463">Issue #463: Specify file on command line</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/461">Issue #461: Glade resets number of rows and columns in GtkGrid</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/460">Issue #460: 3.37.0: test suite fails because glade uses incorrectly asserts in test units</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/412">Issue #412: Fix inconsistent "top-level", "top level", "toplevel" spelling in translatable strings</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/281">Issue #281: GladeProperty: Do not replace - with _</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/389">Issue #389: GladeProject: show message on invalid GtkBuilder file</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/446">Issue #446: GladeGtkListBox: fix size request issue</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/432">Issue #432: GladeStandarStock, GladeStandarStockImage: fix get_type() functions for introspection</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/447">Issue #447: GladeGtkWindow: Fix CSD support</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/456">Issue #456: Utils: use g_param_spec_uchar() for uchar types</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/459">Issue #459: Gtk catalog: add GtkRecentChooserMenu to Display group</issue>
<issue url="https://gitlab.gnome.org/GNOME/glade/-/issues/433">Issue #433: Implement survey using new backend at surveys.gnome.org</issue>
<issue>Build: use gtk-mac-integration only when creating bundle (Tom Schoonjans)</issue>
<issue>Ignore locale when saving numeric values (Alberto Fanjul)</issue>
<issue>Remove config for external builds (Alberto Fanjul)</issue>
<issue>Python plugin: fix linking error</issue>
<issue>Tests: add python and javascript test case</issue>
<issue>gtk: Add GtkScrolledWindow propagate-natural-width property (Corentin Noël)</issue>
<issue>GladeScrolledWindowEditor: Squeeze width/height properties in two columns</issue>
<issue>Gtk plugin: add missing displayable values</issue>
<issue>Webkit2gtk plugin: add missing displayable values and sandbox web view</issue>
<issue>dtd: Make init-function an element, not an attribute (Adrien Plazas)</issue>
</issues>
</release>
<release version="3.36.0" date="2020-05-06"/>
<release version="3.22.0" date="2018-03-12"/>
</releases>
<content_rating type="oars-1.1">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">none</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="violence-desecration">none</content_attribute>
<content_attribute id="violence-slavery">none</content_attribute>
<content_attribute id="violence-worship">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="sex-homosexuality">none</content_attribute>
<content_attribute id="sex-prostitution">none</content_attribute>
<content_attribute id="sex-adultery">none</content_attribute>
<content_attribute id="sex-appearance">none</content_attribute>
<content_attribute id="language-profanity">none</content_attribute>
<content_attribute id="language-humor">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="social-chat">none</content_attribute>
<content_attribute id="social-info">none</content_attribute>
<content_attribute id="social-audio">none</content_attribute>
<content_attribute id="social-location">none</content_attribute>
<content_attribute id="social-contacts">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
</component>

View File

@ -0,0 +1,15 @@
[Desktop Entry]
Name=Glade
GenericName=Interface Designer
Comment=Create or open user interface designs for GTK+ applications
# Translators: Search terms to find this application. Do NOT translate or localize the semicolons! The list MUST also end with a semicolon!
Keywords=GUI designer;user interface;ui builder;
Exec=glade %F
Terminal=false
StartupNotify=true
Type=Application
# Translators: Do NOT translate or transliterate this text (this is an icon file name)!
Icon=org.gnome.Glade
Categories=GNOME;GTK;Development;GUIDesigner;
MimeType=application/x-gtk-builder;application/x-glade;
X-GNOME-DocPath=glade/glade.xml

View File

@ -1,143 +0,0 @@
## Process this file with automake to produce Makefile.in
# We require automake 1.6 at least.
AUTOMAKE_OPTIONS = 1.6
# This is a blank Makefile.am for using gtk-doc.
# Copy this to your project's API docs directory and modify the variables to
# suit your project. See the GTK+ Makefiles in gtk+/docs/reference for examples
# of using the various options.
# The name of the module, e.g. 'glib'.
DOC_MODULE=gladeui
# The top-level SGML file. You can change this if you want to.
DOC_MAIN_SGML_FILE=$(DOC_MODULE)-docs.sgml
# The directory containing the source code. Relative to $(srcdir).
# gtk-doc will search all .c & .h files beneath here for inline comments
# documenting the functions and macros.
DOC_SOURCE_DIR=../gladeui
# Extra options to pass to gtkdoc-scangobj. Not normally needed.
SCANGOBJ_OPTIONS=
# Extra options to supply to gtkdoc-scan.
# e.g. SCAN_OPTIONS=--deprecated-guards="GTK_DISABLE_DEPRECATED"
SCAN_OPTIONS=
# Extra options to supply to gtkdoc-mkdb.
# e.g. MKDB_OPTIONS=--sgml-mode --output-format=xml
MKDB_OPTIONS=--sgml-mode --output-format=xml
# Extra options to supply to gtkdoc-mktmpl
# e.g. MKTMPL_OPTIONS=--only-section-tmpl
MKTMPL_OPTIONS=
# Extra options to supply to gtkdoc-fixref. Not normally needed.
# e.g. FIXXREF_OPTIONS=--extra-dir=../gdk-pixbuf/html --extra-dir=../gdk/html
# XXX We'll maybe want to use this to cross-ref into GTK+ docs...
FIXXREF_OPTIONS=
# Used for dependencies. The docs will be rebuilt if any of these change.
# e.g. HFILE_GLOB=$(top_srcdir)/gtk/*.h
# e.g. CFILE_GLOB=$(top_srcdir)/gtk/*.c
HFILE_GLOB=$(top_srcdir)/gladeui/*.h
CFILE_GLOB=$(top_srcdir)/gladeui/*.c
# Header files to ignore when scanning.
# e.g. IGNORE_HFILES=gtkdebug.h gtkintl.h
IGNORE_HFILES=\
glade-builtins.h \
glade-debug.h \
glade-accumulators.h \
glade-marshallers.h \
glade-paths.h \
glade-custom.h \
glade-cursor.h \
glade-id-allocator.h \
glade-catalog.h \
glade.h \
glade-design-layout.h \
glade-popup.h \
glade-gtk.h \
glade-palette-expander.h \
glade-palette-item.h \
glade-named-icon-chooser-dialog.h \
glade-palette-box.h
# Images to copy into HTML directory.
# e.g. HTML_IMAGES=$(top_srcdir)/gtk/stock-icons/stock_about_24.png
HTML_IMAGES=
# Extra SGML files that are included by $(DOC_MAIN_SGML_FILE).
# e.g. content_files=running.sgml building.sgml changes-2.0.sgml
content_files=\
version.xml \
catalogintro.sgml \
widgetclasses.sgml \
properties.sgml \
gladepython.sgml
# SGML files where gtk-doc abbrevations (#GtkWidget) are expanded
# These files must be listed here *and* in content_files
# e.g. expand_content_files=running.sgml
expand_content_files=\
catalogintro.sgml \
widgetclasses.sgml \
properties.sgml \
gladepython.sgml
# CFLAGS and LDFLAGS for compiling gtkdoc-scangobj with your library.
# Only needed if you are using gtkdoc-scangobj to dynamically query widget
# signals and properties.
# e.g. INCLUDES=-I$(top_srcdir) -I$(top_builddir) $(GTK_DEBUG_FLAGS)
# e.g. GTKDOC_LIBS=$(top_builddir)/gtk/$(gtktargetlib)
GTKDOC_CFLAGS= \
-I$(top_srcdir)/gladeui \
-I$(top_builddir)/gladeui \
-I$(top_srcdir) \
-I$(top_builddir) \
`pkg-config --cflags gtk+-2.0`
GTKDOC_LIBS=${top_builddir}/gladeui/libgladeui-1.la
# This includes the standard gtk-doc make rules, copied by gtkdocize.
include $(top_srcdir)/gtk-doc.make
# Other files to distribute
# e.g. EXTRA_DIST += version.xml.in
EXTRA_DIST += version.xml.in
# XXX Seems this is no longer working with gtkdoc 1.9 :(
GTK_HOME = http://library.gnome.org/devel/gtk/stable
GDK_HOME = http://library.gnome.org/devel/gdk/stable
GOBJECT_HOME = http://library.gnome.org/devel/gobject/stable
GLIB_HOME = http://library.gnome.org/devel/glib/stable
webdocs: all
rm -rf html-web
mkdir -p html-web
for file in `find html`; do \
ROOT_PATH=`echo $${file} | sed 's/^html//'`; \
if test "" != "$${ROOT_PATH}"; then \
if test -d $$file; then \
echo "Creating directory html-web$${ROOT_PATH}..."; \
mkdir -p html-web$${ROOT_PATH}; \
else \
if echo $$file | grep -q '\.html$$'; then \
echo "Creating file html-web$${ROOT_PATH}..."; \
cat $$file | sed \
-e 's!href="../gtk!href="$(GTK_HOME)!g' \
-e 's!href="../gdk!href="$(GDK_HOME)!g' \
-e 's!href="../gobject!href="$(GOBJECT_HOME)!g' \
-e 's!href="../glib!href="$(GLIB_HOME)!g' \
> html-web$${ROOT_PATH}; \
else \
echo "Copying file html-web$${ROOT_PATH}..."; \
cp $$file html-web$${ROOT_PATH}; \
fi \
fi; \
fi; \
done

View File

@ -35,33 +35,41 @@ 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
are integrating an object "Frobnicator": are integrating an object "Frobnicator":
<programlisting> <programlisting>
<![CDATA[<glade-catalog name="foo" library="foo" depends="gtk+"> <![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<glade-catalog name="foo" library="foo" depends="gtk+">
<init-function>my_catalog_init</init-function> <init-function>my_catalog_init</init-function>
<glade-widget-classes> <glade-widget-classes>
<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/> <glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>
... widget classes go here ... widget classes go here
</glade-widget-classes> </glade-widget-classes>
<glade-widget-group name="foo" title="Foo"> <glade-widget-group name="foo" title="Foo">
<glade-widget-class-ref name="FooFrobnicator"/> <glade-widget-class-ref name="FooFrobnicator"/>
... widget class references go here ... widget class references go here
</glade-widget-group> </glade-widget-group>
... widget groups go here ... widget groups go here
</glade-catalog>]]></programlisting> </glade-catalog>]]></programlisting>
</para> </para>
@ -70,7 +78,7 @@ are integrating an object "Frobnicator":
<title>Toplevel catalog properties and tags</title> <title>Toplevel catalog properties and tags</title>
<para> <para>
When defining the catalog, the 'name' and 'library' When defining the catalog, the 'name' and 'library'
are both manditory attributes of the 'glade-catalog' tag; optionally are both mandatory attributes of the 'glade-catalog' tag; optionally
you can also use 'icon-prefix', 'depends' and 'domain'. you can also use 'icon-prefix', 'depends' and 'domain'.
</para> </para>
@ -101,7 +109,7 @@ Please note that all versioning related support is completely optional.
<term>targetable</term> <term>targetable</term>
<listitem> <listitem>
<para> <para>
A comma separated list of 'major.minor' formed versions describing sensable previous A comma separated list of 'major.minor' formed versions describing sensible previous
targetable versions of the underlying toolkit not including the current version; targetable versions of the underlying toolkit not including the current version;
example: <literal>targetable="0.6,0.8"</literal>. example: <literal>targetable="0.6,0.8"</literal>.
</para> </para>
@ -150,7 +158,7 @@ for your plugin.
<listitem> <listitem>
<para> <para>
The domain in which to search for translatable strings from the The domain in which to search for translatable strings from the
catalog file; please note that all strings from the catalog that will apear in the UI are catalog file; please note that all strings from the catalog that will appear in the UI are
translated using this domain. If the 'domain' is not specified, the library property will translated using this domain. If the 'domain' is not specified, the library property will
be used in it's stead. be used in it's stead.
</para> </para>
@ -162,7 +170,7 @@ be used in it's stead.
<listitem> <listitem>
<para> <para>
Used to specify a namespace to search devhelp docs library with Used to specify a namespace to search devhelp docs library with
(specificly, it is the $(DOC_MODULE) that you specified in your gtk-doc Makefile.am). (specifically, it is the $(DOC_MODULE) that you specified in your gtk-doc Makefile.am).
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -202,12 +210,12 @@ this is described in the next chapter.
<para> <para>
You can also load your catalog from a user directory by specifying You can also load your catalog from a user directory by specifying
additional load path(s) in the environment, for instance: additional load path(s) in the environment, for instance:
<programlisting>GLADE_CATALOG_PATH=~/mycatalogs:~/work/foo/glade</programlisting> <programlisting>GLADE_CATALOG_SEARCH_PATH=~/mycatalogs:~/work/foo/glade</programlisting>
</para> </para>
<para> <para>
Same goes for optional plugin libraries, for instance: Same goes for optional plugin libraries, for instance:
<programlisting>GLADE_MODULE_PATH=~/work/foo/src</programlisting> <programlisting>GLADE_MODULE_SEARCH_PATH=~/work/foo/src</programlisting>
</para> </para>
<para> <para>

99
doc/gladegjs.sgml Normal file
View File

@ -0,0 +1,99 @@
<refentry id="gjssupport" revision="5 Jun 2020">
<refmeta>
<refentrytitle>JavaScript Gtk widgets support</refentrytitle>
<refmiscinfo>Glade UI</refmiscinfo>
</refmeta>
<refnamediv>
<refname>Add GJS/JavaScript support to your catalog</refname>
<refpurpose>
How to write and install a catalog for a JavaScript widget library
</refpurpose>
</refnamediv>
<refsect1>
<title>Introduction</title>
<para>
Glade supports loading widgets programed in JavaScript by linking and running GJS from the gladegjs catalog plugin.
</para>
<para>
So in order for glade to support your JavaScript widgets you will have to:
<varlistentry><listitem>
a) specify gladegjs support code as your plugin library.
</listitem></varlistentry>
<varlistentry><listitem>
b) set glade_gjs_init as you init function.
</listitem></varlistentry>
<varlistentry><listitem>
c) make sure your catalog name is the same as your JavaScript import library since
glade_gjs_init() will use this name to import your widgets into the
interpreter.
</listitem></varlistentry>
<programlisting>
<![CDATA[
<glade-catalog name="gjsplugin" library="gladegjs" domain="glade-3" depends="gtk+">
<init-function>glade_gjs_init</init-function>
<glade-widget-classes>
<glade-widget-class title="MyJSGrid" name="MyJSGrid" generic-name="mygrid"/>
</glade-widget-classes>
<glade-widget-group name="gjs" title="Gjs">
<glade-widget-class-ref name="MyJSGrid"/>
</glade-widget-group>
</glade-catalog>]]>
</programlisting>
</para>
<para>
GJS will look up for your widgets in the same places it looks
for regular catalogs plugins, that is $GLADE_ENV_MODULE_PATH
environment variable and `pkg-config --variable=moduledir gladeui-2.0`
So the easiest thing would be to make a symlink in one of those directory, just
do not forget that the name should be the one specified in your catalog name.
</para>
<para>
gjsplugin.js
<programlisting>
<![CDATA[
#!/usr/bin/gjs
const GObject = imports.gi.GObject;
const Gtk = imports.gi.Gtk;
var MyJSGrid = GObject.registerClass({
GTypeName: 'MyJSGrid',
Properties: {
'string-property': GObject.ParamSpec.string('string-property', 'String Prop',
'Longer description', GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT,
'Foobar'),
'int-property': GObject.ParamSpec.int('int-property', 'Integer Prop',
'Longer description',
GObject.ParamFlags.READWRITE | GObject.ParamFlags.CONSTRUCT,
0, 10, 5)
},
Signals: {'mysignal': {param_types: [GObject.TYPE_INT]}},
}, class MyJSGrid extends Gtk.Grid {
_init(props) {
super._init(props);
this.label = new Gtk.Label ({ visible: true });
this.add (this.label);
this.connect('notify::string-property', this._update.bind(this));
this.connect('notify::int-property', this._update.bind(this));
this._update();
}
_update (obj, pspec) {
this.label.set_text ('JS Properties\nInteger = ' + this.int_property + '\nString = \'' + this.string_property + '\'');
}
});
]]>
</programlisting>
</para>
</refsect1>
</refentry>

View File

@ -1,4 +1,4 @@
<refentry id="pythonsupport" revision="7 Nov 2008"> <refentry id="pythonsupport" revision="26 Feb 2011">
<refmeta> <refmeta>
<refentrytitle>Python Gtk widgets support</refentrytitle> <refentrytitle>Python Gtk widgets support</refentrytitle>
<refmiscinfo>Glade UI</refmiscinfo> <refmiscinfo>Glade UI</refmiscinfo>
@ -12,10 +12,9 @@ How to write and install a catalog for a python widget library
<refsect1> <refsect1>
<title>Introduction</title> <title>Introduction</title>
<para>
Glade supports loading widgets coded in python by linking and running the python Glade supports loading widgets coded in python by linking and running the python
interpreter from the gladepython catalog plugin. interpreter from the gladepython catalog plugin.
<para>
</para> </para>
<para> <para>
@ -35,6 +34,7 @@ glade_python_init() will use this name to import your widgets into the
interpreter. interpreter.
</listitem></varlistentry> </listitem></varlistentry>
pythonplugin.xml
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
<glade-catalog name="pythonplugin" library="gladepython" <glade-catalog name="pythonplugin" library="gladepython"
@ -42,11 +42,11 @@ domain="glade-3" depends="gtk+">
<init-function>glade_python_init</init-function> <init-function>glade_python_init</init-function>
<glade-widget-classes> <glade-widget-classes>
<glade-widget-class title="MyBox" name="MyBox" generic-name="mybox"/> <glade-widget-class title="MyPythonBox" name="MyPythonBox" generic-name="mypythonbox"/>
</glade-widget-classes> </glade-widget-classes>
<glade-widget-group name="python" title="Python"> <glade-widget-group name="python" title="Python">
<glade-widget-class-ref name="MyBox"/> <glade-widget-class-ref name="MyPythonBox"/>
</glade-widget-group> </glade-widget-group>
</glade-catalog>]]> </glade-catalog>]]>
</programlisting> </programlisting>
@ -55,9 +55,9 @@ domain="glade-3" depends="gtk+">
<para> <para>
Glade's python interpreter will look up for your widgets in the same Glade's python interpreter will look up for your widgets in the same
places it looks places it looks
for regular catalogs plugins, that is $GLADE_ENV_CATALOG_PATH for regular catalogs plugins, that is $GLADE_ENV_MODULE_PATH
enviroment variable environment variable
and `pkg-config --variable=catalogdir gladeui-1.0` and `pkg-config --variable=moduledir gladeui-2.0`
So the easiest thing would be to make a symlink in one of those directory, just So the easiest thing would be to make a symlink in one of those directory, just
do not forget that the name should be the one specified in your catalog name. do not forget that the name should be the one specified in your catalog name.
@ -67,14 +67,24 @@ do not forget that the name should be the one specified in your catalog name.
pythonplugin.py pythonplugin.py
<programlisting> <programlisting>
<![CDATA[ <![CDATA[
import gobject from gi.repository import GLib, Gtk, GObject
import gtk
class MyBox(gtk.HBox): class MyPythonBox(Gtk.Box):
__gtype_name__ = 'MyBox' __gtype_name__ = 'MyPythonBox'
def __init__(self): foo = GObject.Property(type=int, nick='An integer')
gtk.HBox.__init__(self) bar = GObject.Property(type=str, nick='A String')
def _update(self, obj, pspec):
self.label.set_text ('Python Properties\nInteger = ' + str(self.foo) + '\nString = \'' + self.bar + '\'')
def __init__ (self):
Gtk.Box.__init__ (self)
self.label = Gtk.Label (visible = True)
self.add (self.label)
self.connect('notify::foo', self._update)
self.connect('notify::bar', self._update)
self._update(None, None)
]]> ]]>
</programlisting> </programlisting>
</para> </para>

View File

@ -1,104 +0,0 @@
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook XML V4.1.2//EN"
"http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd" [
<!ENTITY CatalogIntro SYSTEM "xml/catalogintro.sgml">
<!ENTITY WidgetClasses SYSTEM "xml/widgetclasses.sgml">
<!ENTITY Properties SYSTEM "xml/properties.sgml">
<!ENTITY PythonSupport SYSTEM "xml/gladepython.sgml">
<!ENTITY GladeCommand SYSTEM "xml/glade-command.xml">
<!ENTITY GladeApp SYSTEM "xml/glade-app.xml">
<!ENTITY GladeClipboardView SYSTEM "xml/glade-clipboard-view.xml">
<!ENTITY GladeClipboard SYSTEM "xml/glade-clipboard.xml">
<!ENTITY GladeEditorProperty SYSTEM "xml/glade-editor-property.xml">
<!ENTITY GladeEditor SYSTEM "xml/glade-editor.xml">
<!ENTITY GladePalette SYSTEM "xml/glade-palette.xml">
<!ENTITY GladeParameter SYSTEM "xml/glade-parameter.xml">
<!ENTITY GladePlaceholder SYSTEM "xml/glade-placeholder.xml">
<!ENTITY GladeInspector SYSTEM "xml/glade-inspector.xml">
<!ENTITY GladeProject SYSTEM "xml/glade-project.xml">
<!ENTITY GladePropertyClass SYSTEM "xml/glade-property-class.xml">
<!ENTITY GladeProperty SYSTEM "xml/glade-property.xml">
<!ENTITY GladeSignalEditor SYSTEM "xml/glade-signal-editor.xml">
<!ENTITY GladeUtils SYSTEM "xml/glade-utils.xml">
<!ENTITY GladeWidgetAdaptor SYSTEM "xml/glade-widget-adaptor.xml">
<!ENTITY GladeWidget SYSTEM "xml/glade-widget.xml">
<!ENTITY GladeFixed SYSTEM "xml/glade-fixed.xml">
<!ENTITY GladeBaseEditor SYSTEM "xml/glade-base-editor.xml">
<!ENTITY GladeDesignView SYSTEM "xml/glade-design-view.xml">
<!ENTITY GladeXmlUtils SYSTEM "xml/glade-xml-utils.xml">
<!ENTITY GladeWidgetAction SYSTEM "xml/glade-widget-action.xml">
<!ENTITY version SYSTEM "version.xml">
]>
<book id="index">
<bookinfo>
<title>Glade User Interface Designer Reference Manual</title>
<abstract>
<para>
This document attempts to describe how to use the Glade UI Designer core
library to integrate Glade into your application and how to integrate your
custom GTK+ derived widgets into the Glade UI Designer.
</para>
<para>
You can always get the latest version of this document
<ulink url="http://library.gnome.org/devel/gladeui/unstable/">here</ulink>
and you should have received a copy with the glade-3 tarball.
</para>
</abstract>
<releaseinfo>for &version;</releaseinfo>
<authorgroup>
<author>
<firstname>Tristan</firstname>
<surname>Van Berkom</surname>
</author>
</authorgroup>
</bookinfo>
<part id="catalog">
<title>Adding your custom widgets</title>
&CatalogIntro;
&WidgetClasses;
&Properties;
&PythonSupport;
</part>
<part id="core">
<title>Glade Core</title>
&GladeApp;
&GladeProject;
&GladeWidget;
&GladeFixed;
&GladeProperty;
&GladeWidgetAdaptor;
&GladePropertyClass;
&GladeWidgetAction;
&GladeCommand;
&GladeClipboard;
&GladeBaseEditor;
&GladePlaceholder;
&GladeXmlUtils;
</part>
<part id="dockables">
<title>Dockable Glade UI Widgets</title>
&GladeEditor;
&GladeEditorProperty;
&GladePalette;
&GladeClipboardView;
&GladeInspector;
&GladeSignalEditor;
&GladeDesignView;
</part>
<part id="misc">
<title>Miscellaneous utilities</title>
&GladeParameter;
&GladeUtils;
</part>
<index>
<title>Index</title>
</index>
</book>

90
doc/gladeui-docs.xml Normal file
View File

@ -0,0 +1,90 @@
<?xml version="1.0"?>
<!DOCTYPE book PUBLIC '-//OASIS//DTD DocBook XML V4.5//EN'
'http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd' [
<!ENTITY % local.common.attrib "xmlns:xi CDATA #FIXED 'http://www.w3.org/2003/XInclude'">
<!ENTITY version SYSTEM "version.xml">
]>
<book id="index" xmlns:xi="http://www.w3.org/2003/XInclude">
<bookinfo>
<title>Glade User Interface Designer Reference Manual</title>
<releaseinfo>
for gladeui &version;.
This document attempts to describe how to use the Glade UI Designer core
library to integrate Glade into your application and how to integrate your
custom GTK+ derived widgets into the Glade UI Designer.
The latest version of this documentation can be found on-line at
<ulink role="online-location" url="https://developer.gnome.org/gladeui/stable/">
https://developer.gnome.org/gladeui/stable
</ulink>.
</releaseinfo>
</bookinfo>
<part id="catalog">
<title>Adding your custom widgets</title>
<xi:include href="catalogintro.sgml"/>
<xi:include href="widgetclasses.sgml"/>
<xi:include href="properties.sgml"/>
<xi:include href="gladepython.sgml"/>
<xi:include href="gladegjs.sgml"/>
</part>
<part id="core">
<title>Glade Core</title>
<xi:include href="xml/glade-init.xml"/>
<xi:include href="xml/glade-catalog.xml"/>
<xi:include href="xml/glade-app.xml"/>
<xi:include href="xml/glade-project.xml"/>
<xi:include href="xml/glade-widget.xml"/>
<xi:include href="xml/glade-widget-adaptor.xml"/>
<xi:include href="xml/glade-widget-action.xml"/>
<xi:include href="xml/glade-widget-action-def.xml"/>
<xi:include href="xml/glade-fixed.xml"/>
<xi:include href="xml/glade-property.xml"/>
<xi:include href="xml/glade-property-def.xml"/>
<xi:include href="xml/glade-command.xml"/>
<xi:include href="xml/glade-clipboard.xml"/>
<xi:include href="xml/glade-base-editor.xml"/>
<xi:include href="xml/glade-placeholder.xml"/>
<xi:include href="xml/glade-signal.xml"/>
<xi:include href="xml/glade-signal-def.xml"/>
<xi:include href="xml/glade-name-context.xml"/>
<xi:include href="xml/glade-xml-utils.xml"/>
</part>
<part id="dockables">
<title>Dockable Glade UI Widgets</title>
<xi:include href="xml/glade-editable.xml"/>
<xi:include href="xml/glade-editor.xml"/>
<xi:include href="xml/glade-editor-property.xml"/>
<xi:include href="xml/glade-palette.xml"/>
<xi:include href="xml/glade-inspector.xml"/>
<xi:include href="xml/glade-signal-editor.xml"/>
<xi:include href="xml/glade-previewer.xml"/>
<xi:include href="xml/glade-design-view.xml"/>
<xi:include href="xml/glade-preview.xml"/>
<xi:include href="xml/glade-adaptor-chooser.xml"/>
<xi:include href="xml/glade-property-label.xml"/>
<xi:include href="xml/glade-property-shell.xml"/>
</part>
<part id="misc">
<title>Miscellaneous utilities</title>
<xi:include href="xml/glade-cell-renderer-icon.xml"/>
<xi:include href="xml/glade-object-stub.xml"/>
<xi:include href="xml/glade-signal-model.xml"/>
<xi:include href="xml/glade-utils.xml"/>
</part>
<index id="api-index-full">
<title>Index</title>
<xi:include href="xml/api-index-full.xml"><xi:fallback /></xi:include>
</index>
<index id="api-index-deprecated" role="deprecated">
<title>Index of deprecated symbols</title>
<xi:include href="xml/api-index-deprecated.xml"><xi:fallback /></xi:include>
</index>
<xi:include href="xml/annotation-glossary.xml"><xi:fallback /></xi:include>
</book>

File diff suppressed because it is too large Load Diff

View File

@ -5,15 +5,14 @@ glade_clipboard_get_type
glade_command_get_type glade_command_get_type
glade_editor_get_type glade_editor_get_type
glade_editor_property_get_type glade_editor_property_get_type
glade_fixed_get_type
glade_palette_get_type glade_palette_get_type
glade_placeholder_get_type glade_placeholder_get_type
glade_project_get_type glade_project_get_type
glade_inspector_get_type glade_inspector_get_type
glade_property_get_type glade_property_get_type
glade_signal_get_type
glade_widget_get_type glade_widget_get_type
glade_widget_adaptor_get_type glade_widget_adaptor_get_type
glade_design_view_get_type glade_design_view_get_type
glade_design_layout_get_type
glade_base_editor_get_type glade_base_editor_get_type
glade_widget_action_get_type glade_widget_action_get_type

49
doc/meson.build Normal file
View File

@ -0,0 +1,49 @@
private_doc_headers = [
'glade-builtins.h',
'glade-debug.h',
'glade-design-private.h',
'glade-drag.h',
'glade-accumulators.h',
'glade-marshallers.h',
'glade-paths.h',
'glade-custom.h',
'glade-cursor.h',
'glade-id-allocator.h',
'glade.h',
'glade-design-layout.h',
'glade-popup.h',
'glade-gtk.h',
'glade-palette-expander.h',
'glade-palette-item.h',
'glade-named-icon-chooser-dialog.h',
'glade-palette-box.h',
'glade-private.h',
]
content_files = files(
'catalogintro.sgml',
'gladepython.sgml',
'properties.sgml',
'widgetclasses.sgml',
)
version_conf = configuration_data()
version_conf.set('PACKAGE_STRING', '@0@ @1@'.format(glade_name, glade_version))
content_files += configure_file(
input: 'version.xml.in',
output: '@BASENAME@',
configuration: version_conf,
)
gnome.gtkdoc(
gladeui_name,
main_xml: gladeui_name + '-docs.xml',
module_version: gladeui_major_version.to_string(),
src_dir: gladeui_inc,
ignore_headers: private_doc_headers,
include_directories: top_inc,
dependencies: libgladeui_dep,
content_files: content_files,
install: true,
)

View File

@ -1,19 +1,19 @@
<refentry id="properties" revision="8 Feb 2006"> <refentry id="properties" revision="8 Feb 2006">
<refmeta> <refmeta>
<refentrytitle>Property Class Definitions</refentrytitle> <refentrytitle>Property Definitions</refentrytitle>
<refmiscinfo>Glade UI</refmiscinfo> <refmiscinfo>Glade UI</refmiscinfo>
</refmeta> </refmeta>
<refnamediv> <refnamediv>
<refname>Property Classes</refname> <refname>Property Definitions</refname>
<refpurpose> <refpurpose>
How to augment or define a #GladePropertyClass How to augment or define a #GladePropertyDef
</refpurpose> </refpurpose>
</refnamediv> </refnamediv>
<refsect1> <refsect1>
<title>Property Class Configuration</title> <title>Property Definition Configuration</title>
<para> <para>
Properties are introspected at load time and loaded into #GladePropertyClass structures. Properties are introspected at load time and loaded into #GladePropertyDef structures.
The behaviour of properties can be modified by the catalog and fake properties can be added The behaviour of properties can be modified by the catalog and fake properties can be added
for editing purposes. Here is an example of the xml form: for editing purposes. Here is an example of the xml form:
<programlisting><![CDATA[... <programlisting><![CDATA[...
@ -30,7 +30,6 @@ for editing purposes. Here is an example of the xml form:
... values here ... values here
</displayable-values> </displayable-values>
</property> </property>
...]]></programlisting> ...]]></programlisting>
@ -44,7 +43,7 @@ Properties of the 'property' tag:
<term>id</term> <term>id</term>
<listitem> <listitem>
<para> <para>
This is manditory and specifies the property that we are modifying (or adding) This is mandatory and specifies the property that we are modifying (or adding)
</para> </para>
</listitem> </listitem>
</varlistentry> </varlistentry>
@ -211,7 +210,7 @@ the widget when pasted to a new container that supports the same properties.
<term>save-always</term> <term>save-always</term>
<listitem> <listitem>
<para> <para>
Specifies that the property should be saved regardless of its value (properties at thier Specifies that the property should be saved regardless of its value (properties at their
default values are normally not saved). default values are normally not saved).
</para> </para>
</listitem> </listitem>

View File

@ -16,7 +16,7 @@ Adding support for custom widgets
<para> <para>
Widget support in Glade is provided by the #GladeWidgetAdaptor object, each Widget support in Glade is provided by the #GladeWidgetAdaptor object, each
`glade-widget-class' definition in the catalog will result in the creation `glade-widget-class' definition in the catalog will result in the creation
of an adaptor, which inherits the funcionality of the adaptor created for its of an adaptor, which inherits the functionality of the adaptor created for its
parent, or the closest adaptor available in the ancestry. Adaptor methods can parent, or the closest adaptor available in the ancestry. Adaptor methods can
be overridden by functions in the plugin by specifying them in the catalog. be overridden by functions in the plugin by specifying them in the catalog.
There is also a wealth of options you can use in the `glade-widget-class' without There is also a wealth of options you can use in the `glade-widget-class' without
@ -31,57 +31,43 @@ A typical basic example of a widget class definition is as follows:
Here is the complete example of the form of the `glade-widget-class' definition: Here is the complete example of the form of the `glade-widget-class' definition:
<programlisting> <programlisting>
<![CDATA[<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/> <![CDATA[<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>
<post-create-function>foo_frobnicator_plugin_post_create</post-create-function> <post-create-function>foo_frobnicator_plugin_post_create</post-create-function>
... widget class support functions go here ... widget class support functions go here
<properties> <properties>
<property id="frobnicated" default="False"/> <property id="frobnicated" default="False"/>
... property definitions go here ... property definitions go here
</properties> </properties>
<signals> <signals>
<signal id="frobnicate" since="1.0"/> <signal id="frobnicate" since="1.0"/>
... signal definitions go here ... signal definitions go here
</signals> </signals>
<packing-properties> <packing-properties>
... child packing property definitions go here ... child packing property definitions go here
</packing-properties> </packing-properties>
<actions> <actions>
<action id="launch_editor" name="Edit Frob" stock="gtk-edit"/> <action id="launch_editor" name="Edit Frob" stock="gtk-edit"/>
... context menu action definitions go here ... context menu action definitions go here
</actions> </actions>
<packing-actions> <packing-actions>
... context menu action definitions for child objects go here ... context menu action definitions for child objects go here
</packing-actions> </packing-actions>
<packing-defaults> <packing-defaults>
<parent-class name="GtkVBox"> <parent-class name="GtkVBox">
<child-property id="expand" default="false"/> <child-property id="expand" default="false"/>
</parent-class> </parent-class>
... packing default definitions go here ... packing default definitions go here
</packing-defaults> </packing-defaults>
</glade-widget-class>]]></programlisting> </glade-widget-class>]]></programlisting>
</para> </para>
@ -90,7 +76,7 @@ Here is the complete example of the form of the `glade-widget-class' definition:
<refsect1> <refsect1>
<title>Widget Class Properties</title> <title>Widget Class Properties</title>
<para> <para>
The following are all properies of the `glade-widget-class' tag The following are all properties of the `glade-widget-class' tag
</para> </para>
<variablelist> <variablelist>
<varlistentry> <varlistentry>
@ -182,7 +168,7 @@ tree and will be translated before use in the interface.
<para> <para>
Use this to specify the name of the parent your widget derives from, you Use this to specify the name of the parent your widget derives from, you
can use this option instead of loading a real widget type (this allows you can use this option instead of loading a real widget type (this allows you
to fake derive and still add properties and run your catalog independantly to fake derive and still add properties and run your catalog independently
of any plugins or libraries). of any plugins or libraries).
</para> </para>
</listitem> </listitem>
@ -202,7 +188,7 @@ in Glade context. This property will be inherited from the adaptors parent.
<term>fixed</term> <term>fixed</term>
<listitem> <listitem>
<para> <para>
Used to mark a #GladeWidgetClass for free form placement capacities Used to mark a #GladeWidgetAdaptor for free form placement capacities
to be handled with a #GladeFixed. This property will be inherited from the adaptors parent. to be handled with a #GladeFixed. This property will be inherited from the adaptors parent.
</para> </para>
</listitem> </listitem>
@ -520,7 +506,7 @@ are added to the toolbar.
<para> <para>
Default values can be specified for packing properties on your widget when added Default values can be specified for packing properties on your widget when added
to a said type of parent, as the example shows above; use the `parent-class' to to a said type of parent, as the example shows above; use the `parent-class' to
specify what parent (or derivative of that parent) you are targetting and fill specify what parent (or derivative of that parent) you are targeting and fill
in any `child-property' tags you need for that parent using `id' property to in any `child-property' tags you need for that parent using `id' property to
specify the property name and the `default' property for the value. specify the property name and the `default' property for the value.
</para> </para>
@ -556,7 +542,7 @@ and GENERIC_NAME is the value of an widget class's generic name attribute.
</para> </para>
<para> <para>
To explicity set an icon name for a widget class, the "icon-name" attribute of the To explicitly set an icon name for a widget class, the "icon-name" attribute of the
"glade-widget-class" element can be specified. This will override the default icon "glade-widget-class" element can be specified. This will override the default icon
name assigned to the widget class. name assigned to the widget class.
</para> </para>

40
glade.doap Normal file
View File

@ -0,0 +1,40 @@
<?xml version="1.0" encoding="UTF-8"?>
<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:gnome="http://api.gnome.org/doap-extensions#"
xmlns="http://usefulinc.com/ns/doap#">
<name xml:lang="en">Glade Interface Designer</name>
<description>Glade is a RAD tool to enable quick and easy development of user interfaces for the GTK+ 3 toolkit and the GNOME desktop environment.</description>
<shortdesc xml:lang="en">User Interface Builder for GTK+ applications</shortdesc>
<homepage rdf:resource="http://glade.gnome.org/" />
<developer-forum rdf:resource="https://discourse.gnome.org/tag/glade" />
<download-page rdf:resource="https://download.gnome.org/sources/glade/" />
<bug-database rdf:resource="https://gitlab.gnome.org/GNOME/glade/issues" />
<category rdf:resource="http://api.gnome.org/doap-extensions#apps" />
<programming-language>C</programming-language>
<!-- <maintainer>
<foaf:Person>
<foaf:name>Tristan Van Berkom</foaf:name>
<foaf:mbox rdf:resource="mailto:tristan.van.berkom@gmail.com" />
<gnome:userid>tvb</gnome:userid>
</foaf:Person>
</maintainer> -->
<maintainer>
<foaf:Person>
<foaf:name>Juan Pablo Ugarte</foaf:name>
<foaf:mbox rdf:resource="mailto:juanpablougarte@gmail.com" />
<gnome:userid>jpu</gnome:userid>
</foaf:Person>
</maintainer>
<maintainer>
<foaf:Person>
<foaf:name>Alberto Fanjul Alonso</foaf:name>
<foaf:mbox rdf:resource="mailto:albfan@gnome.org" />
<gnome:userid>albfan</gnome:userid>
</foaf:Person>
</maintainer>
</Project>

View File

@ -1,38 +0,0 @@
<Project xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:rdfs="http://www.w3.org/2000/01/rdf-schema#"
xmlns:foaf="http://xmlns.com/foaf/0.1/"
xmlns:gnome="http://api.gnome.org/doap-extensions#"
xmlns="http://usefulinc.com/ns/doap#">
<name xml:lang="en">Glade Interface Designer</name>
<shortdesc xml:lang="en">User Interface Builder for GTK+ applications</shortdesc>
<homepage rdf:resource="http://glade.gnome.org/" />
<mailing-list rdf:resource="http://lists.ximian.com/mailman/listinfo/glade-devel" />
<download-page rdf:resource="http://download.gnome.org/sources/glade3/" />
<bug-database rdf:resource="http://bugzilla.gnome.org/browse.cgi?product=glade3" />
<!-- DOAP category: This is used to categorize repositories in cgit.
Pulse has taken its best guess at the correct category. You may
want to replace the rdf:resource attribute with one of the following:
http://api.gnome.org/doap-extensions#admin
http://api.gnome.org/doap-extensions#bindings
http://api.gnome.org/doap-extensions#deprecated
http://api.gnome.org/doap-extensions#desktop
http://api.gnome.org/doap-extensions#development
http://api.gnome.org/doap-extensions#infrastructure
http://api.gnome.org/doap-extensions#platform
http://api.gnome.org/doap-extensions#productivity
NOTE: There is an "Other" categorization on cgit, but we do not have a
DOAP category for it. If your module does not belong to one of these
groups, then do not include a category property in your DOAP file.
-->
<category rdf:resource="http://api.gnome.org/doap-extensions#development" />
<maintainer>
<foaf:Person>
<foaf:name>Tristan Van Berkom</foaf:name>
<foaf:mbox rdf:resource="mailto:tristan.van.berkom@gmail.com" />
<gnome:userid>tvb</gnome:userid>
</foaf:Person>
</maintainer>
</Project>

1
gladeui/.gitignore vendored
View File

@ -3,3 +3,4 @@
/gladeui.rc /gladeui.rc
/glade-previewer /glade-previewer
/glade-previewer.rc

View File

@ -1,165 +0,0 @@
lib_LTLIBRARIES = libgladeui-1.la
common_defines = \
-DG_LOG_DOMAIN=\"GladeUI\" \
-DGLADE_DATADIR="\"$(pkgdatadir)\"" \
-DGLADE_LIBDIR="\"$(pkglibdir)\"" \
-DGLADE_CATALOGSDIR="\"$(pkgdatadir)/catalogs\""\
-DGLADE_MODULESDIR="\"$(pkglibdir)/modules\"" \
-DGLADE_PLUGINSDIR="\"$(pkglibdir)/plugins\"" \
-DGLADE_PIXMAPSDIR="\"$(pkgdatadir)/pixmaps\"" \
-DGLADE_LOCALEDIR="\"$(datadir)/locale\"" \
-DGLADE_BINDIR="\"$(bindir)\""
BUILT_SOURCES = glade-marshallers.c glade-marshallers.h
EXTRA_DIST = glade-marshallers.list gladeui.rc.in icon-naming-spec.c
# The glade-3 core library
libgladeui_1_la_SOURCES = \
glade-widget-adaptor.c \
glade-debug.c \
glade-project.c \
glade-parameter.c \
glade-placeholder.c \
glade-custom.c \
glade-inspector.c \
glade-xml-utils.c \
glade-palette.c \
glade-design-layout.c \
glade-design-view.c \
glade-named-icon-chooser-dialog.c \
glade-named-icon-chooser-dialog.h \
glade-cursor.c \
glade-catalog.c \
glade-property.c \
glade-property-class.c \
glade-popup.c \
glade-widget.c \
glade-editor-property.c \
glade-editor.c \
glade-utils.c \
glade-signal.c \
glade-signal-editor.c \
glade-clipboard.c \
glade-command.c \
glade-id-allocator.c \
glade-id-allocator.h \
glade-marshallers.c \
glade-accumulators.c \
glade-builtins.c \
glade-app.c \
glade-fixed.c \
glade-base-editor.c \
glade-popup.h \
glade-marshallers.h \
glade-accumulators.h \
glade-widget-action.c \
glade-name-context.c \
glade-displayable-values.c \
glade-editable.c \
glade-editor-table.c \
glade-cell-renderer-icon.c
libgladeui_1_la_CPPFLAGS = \
$(common_defines) \
-I$(top_srcdir) \
-I$(top_builddir) \
$(GTK_CFLAGS) \
$(IGE_MAC_BUNDLE_FLAG) \
$(IGE_MAC_CFLAGS) \
$(WARN_CFLAGS) \
$(AM_CPPFLAGS)
libgladeui_1_la_CFLAGS = \
$(AM_CFLAGS)
libgladeui_1_la_LDFLAGS = -version-info $(GLADE_CURRENT):$(GLADE_REVISION):$(GLADE_AGE) $(AM_LDFLAGS)
libgladeui_1_la_LIBADD = $(GTK_LIBS) $(IGE_MAC_LIBS)
libgladeuiincludedir=$(includedir)/libgladeui-1.0/gladeui
libgladeuiinclude_HEADERS = \
glade.h \
glade-debug.h \
glade-project.h \
glade-inspector.h \
glade-parameter.h \
glade-placeholder.h \
glade-custom.h \
glade-editor.h \
glade-editor-property.h \
glade-signal-editor.h \
glade-palette.h \
glade-design-layout.h \
glade-design-view.h \
glade-widget.h \
glade-widget-adaptor.h \
glade-property.h \
glade-property-class.h \
glade-utils.h \
glade-clipboard.h \
glade-command.h \
glade-app.h \
glade-builtins.h \
glade-fixed.h \
glade-base-editor.h \
glade-xml-utils.h \
glade-signal.h \
glade-cursor.h \
glade-catalog.h \
glade-widget-action.h \
glade-name-context.h \
glade-displayable-values.h \
glade-editable.h \
glade-editor-table.h \
glade-cell-renderer-icon.h
if PLATFORM_WIN32
libgladeui_1_la_LDFLAGS += -no-undefined
endif
if NATIVE_WIN32
libgladeui_1_la_LDFLAGS += -Wl,gladeui-win32-res.o -export-symbols gladeui.def
libgladeui_1_la_DEPENDENCIES = gladeui-win32-res.o gladeui.def
endif
gladeui-win32-res.o: gladeui.rc
$(WINDRES) $< $@
# gladeui.def: auto-generated DEF file for linker input
# The routines below will scan the header files and extracts symbol declarations.
# The symbol 'custom_get_type' is added manually. It's naming deviates from
# the pattern set by all other public symbols in the glade namespace.
#
gladeui.def: $(libgladeuiinclude_HEADERS)
@echo Generating $@
@(echo EXPORTS; \
echo 'custom_get_type'; \
(cd $(srcdir); cat $(libgladeuiinclude_HEADERS) || echo 'glade_ERROR ()' ) | \
grep -v -E '^# *include' | \
grep -v -E '^# *define' | \
grep -E '[^\(]glade_.*[[:space:]]+\(.*' | \
sed -e 's/[ ]*(.*//' | \
sed -e 's/.*glade_/glade_/' | \
sort; \
) >$@
@ ! grep -q glade_ERROR $@ || ($(RM) $@; false)
#
# Marshaller generation
#
glade-marshallers.h: glade-marshallers.list $(GLIB_GENMARSHAL)
$(GLIB_GENMARSHAL) --prefix=glade_marshal $(srcdir)/glade-marshallers.list --header > glade-marshallers-h.tmp \
&& mv glade-marshallers-h.tmp glade-marshallers.h \
|| ( rm -f glade-marshallers-h.tmp && exit 1)
glade-marshallers.c: glade-marshallers.list $(GLIB_GENMARSHAL)
$(GLIB_GENMARSHAL) --prefix=glade_marshal $(srcdir)/glade-marshallers.list --body --header > glade-marshallers-c.tmp \
&& mv glade-marshallers-c.tmp glade-marshallers.c \
|| ( rm -f glade-marshallers-c.tmp && exit 1 )
CLEANFILES = $(BUILT_SOURCES) gladeui.def

BIN
gladeui/atk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 B

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* glade-clipboard.c - An object for handling Cut/Copy/Paste. * glade-clipboard.c - An object for handling Cut/Copy/Paste.
* *
@ -19,7 +18,7 @@
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA. * USA.
*/ */
@ -31,73 +30,86 @@
gboolean gboolean
glade_single_object_accumulator (GSignalInvocationHint *ihint, _glade_single_object_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy) gpointer dummy)
{ {
GObject *object = g_value_get_object (handler_return); GObject *object = g_value_get_object (handler_return);
g_value_set_object (return_accu, object); g_value_set_object (return_accu, object);
return (object == NULL); return (object == NULL);
} }
gboolean gboolean
glade_integer_handled_accumulator (GSignalInvocationHint *ihint, _glade_integer_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy) gpointer dummy)
{ {
gboolean continue_emission; gboolean continue_emission;
gint retval; gint retval;
retval = g_value_get_int (handler_return); retval = g_value_get_int (handler_return);
g_value_set_int (return_accu, retval >> 1); g_value_set_int (return_accu, retval >> 1);
continue_emission = !(retval & 1); continue_emission = !(retval & 1);
return continue_emission; return continue_emission;
} }
/* From gtkmain.c */ /* From gtkmain.c */
gboolean gboolean
glade_boolean_handled_accumulator (GSignalInvocationHint *ihint, _glade_boolean_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy) gpointer dummy)
{ {
gboolean continue_emission; gboolean continue_emission;
gboolean signal_handled; gboolean signal_handled;
signal_handled = g_value_get_boolean (handler_return); signal_handled = g_value_get_boolean (handler_return);
g_value_set_boolean (return_accu, signal_handled); g_value_set_boolean (return_accu, signal_handled);
continue_emission = !signal_handled; continue_emission = !signal_handled;
return continue_emission; return continue_emission;
} }
gboolean gboolean
glade_string_accumulator (GSignalInvocationHint *ihint, _glade_string_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy) gpointer dummy)
{ {
const gchar *handler_str; const gchar *handler_str;
g_free ((void *)g_value_get_string (return_accu)); g_free ((void *) g_value_get_string (return_accu));
handler_str = g_value_get_string (handler_return); handler_str = g_value_get_string (handler_return);
g_value_set_string (return_accu, handler_str); g_value_set_string (return_accu, handler_str);
return (handler_str == NULL); return (handler_str == NULL);
} }
gboolean gboolean
glade_stop_emission_accumulator (GSignalInvocationHint *ihint, _glade_strv_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return, gpointer dummy)
gpointer dummy)
{ {
g_value_copy (handler_return, return_accu); const gchar **handler_strv;
return FALSE; handler_strv = g_value_get_boxed (handler_return);
g_value_set_boxed (return_accu, handler_strv);
return (handler_strv == NULL);
}
gboolean
_glade_stop_emission_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
{
g_value_copy (handler_return, return_accu);
return FALSE;
} }

View File

@ -1,4 +1,27 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /*
* 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__
@ -6,30 +29,35 @@
G_BEGIN_DECLS G_BEGIN_DECLS
gboolean glade_single_object_accumulator (GSignalInvocationHint *ihint, gboolean _glade_single_object_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy); gpointer dummy);
gboolean glade_integer_handled_accumulator (GSignalInvocationHint *ihint, gboolean _glade_integer_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy); gpointer dummy);
gboolean glade_boolean_handled_accumulator (GSignalInvocationHint *ihint, gboolean _glade_boolean_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy); gpointer dummy);
gboolean glade_string_accumulator (GSignalInvocationHint *ihint, gboolean _glade_string_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy); gpointer dummy);
gboolean glade_stop_emission_accumulator (GSignalInvocationHint *ihint, gboolean _glade_strv_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu, GValue *return_accu,
const GValue *handler_return, const GValue *handler_return,
gpointer dummy); gpointer dummy);
gboolean _glade_stop_emission_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy);
G_END_DECLS G_END_DECLS
#endif /* __GLADE_ACCUMULATORS_H__ */ #endif /* __GLADE_ACCUMULATORS_H__ */

View File

@ -0,0 +1,650 @@
/*
* glade-adaptor-chooser-widget.c
*
* Copyright (C) 2014-2017 Juan Pablo Ugarte
*
* 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:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*/
#include "glade-app.h"
#include "glade-private.h"
#include "gladeui-enum-types.h"
#include "glade-adaptor-chooser-widget.h"
#include "glade-dnd.h"
#include <string.h>
enum
{
COLUMN_ADAPTOR = 0,
COLUMN_GROUP,
COLUMN_NORMALIZED_NAME,
COLUMN_NORMALIZED_NAME_LEN,
N_COLUMN
};
typedef struct __GladeAdaptorChooserWidgetPrivate _GladeAdaptorChooserWidgetPrivate;
struct __GladeAdaptorChooserWidgetPrivate
{
GtkTreeView *treeview;
GtkListStore *store;
GtkTreeModelFilter *treemodelfilter;
GtkSearchEntry *searchentry;
GtkEntryCompletion *entrycompletion;
GtkScrolledWindow *scrolledwindow;
/* Needed for gtk_tree_view_column_set_cell_data_func() */
GtkTreeViewColumn *column_icon;
GtkCellRenderer *icon_cell;
GtkTreeViewColumn *column_adaptor;
GtkCellRenderer *adaptor_cell;
/* Properties */
_GladeAdaptorChooserWidgetFlags flags;
GladeProject *project;
gboolean show_group_title;
gchar *search_text;
};
enum
{
PROP_0,
PROP_SHOW_FLAGS,
PROP_PROJECT,
PROP_SHOW_GROUP_TITLE
};
enum
{
ADAPTOR_SELECTED,
LAST_SIGNAL
};
static guint adaptor_chooser_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE_WITH_PRIVATE (_GladeAdaptorChooserWidget, _glade_adaptor_chooser_widget, GTK_TYPE_BOX)
#define GET_PRIVATE(d) ((_GladeAdaptorChooserWidgetPrivate *) _glade_adaptor_chooser_widget_get_instance_private((_GladeAdaptorChooserWidget*)d))
static void
_glade_adaptor_chooser_widget_init (_GladeAdaptorChooserWidget *chooser)
{
gtk_widget_init_template (GTK_WIDGET (chooser));
}
static void
_glade_adaptor_chooser_widget_dispose (GObject *object)
{
_glade_adaptor_chooser_widget_set_project (GLADE_ADAPTOR_CHOOSER_WIDGET (object), NULL);
G_OBJECT_CLASS (_glade_adaptor_chooser_widget_parent_class)->dispose (object);
}
static void
_glade_adaptor_chooser_widget_finalize (GObject *object)
{
_GladeAdaptorChooserWidgetPrivate *priv = GET_PRIVATE (object);
g_clear_pointer (&priv->search_text, g_free);
G_OBJECT_CLASS (_glade_adaptor_chooser_widget_parent_class)->finalize (object);
}
static void
_glade_adaptor_chooser_widget_set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
{
_GladeAdaptorChooserWidgetPrivate *priv;
g_return_if_fail (GLADE_IS_ADAPTOR_CHOOSER_WIDGET (object));
priv = GET_PRIVATE (object);
switch (prop_id)
{
case PROP_SHOW_FLAGS:
priv->flags = g_value_get_flags (value);
break;
case PROP_PROJECT:
_glade_adaptor_chooser_widget_set_project (GLADE_ADAPTOR_CHOOSER_WIDGET (object),
g_value_get_object (value));
break;
case PROP_SHOW_GROUP_TITLE:
priv->show_group_title = g_value_get_boolean (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
_glade_adaptor_chooser_widget_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{
_GladeAdaptorChooserWidgetPrivate *priv;
g_return_if_fail (GLADE_IS_ADAPTOR_CHOOSER_WIDGET (object));
priv = GET_PRIVATE (object);
switch (prop_id)
{
case PROP_SHOW_FLAGS:
g_value_set_flags (value, priv->flags);
break;
case PROP_PROJECT:
g_value_set_object (value, priv->project);
break;
case PROP_SHOW_GROUP_TITLE:
g_value_set_boolean (value, priv->show_group_title);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static inline gchar *
normalize_name (const gchar *name)
{
gchar *normalized_name = g_utf8_normalize (name, -1, G_NORMALIZE_DEFAULT);
gchar *casefold_name = g_utf8_casefold (normalized_name, -1);
g_free (normalized_name);
return casefold_name;
}
static inline void
store_append_adaptor (GtkListStore *store, GladeWidgetAdaptor *adaptor)
{
gchar *normalized_name = normalize_name (glade_widget_adaptor_get_display_name (adaptor));
gtk_list_store_insert_with_values (store, NULL, -1,
COLUMN_ADAPTOR, adaptor,
COLUMN_NORMALIZED_NAME, normalized_name,
COLUMN_NORMALIZED_NAME_LEN, strlen (normalized_name),
-1);
g_free (normalized_name);
}
static void
on_treeview_row_activated (GtkTreeView *tree_view,
GtkTreePath *path,
GtkTreeViewColumn *column,
_GladeAdaptorChooserWidget *chooser)
{
GtkTreeModel *model = gtk_tree_view_get_model (tree_view);
GtkTreeIter iter;
if (gtk_tree_model_get_iter (model, &iter, path))
{
GladeWidgetAdaptor *adaptor;
gtk_tree_model_get (model, &iter, COLUMN_ADAPTOR, &adaptor, -1);
if (!adaptor)
return;
/* Emit selected signal */
g_signal_emit (chooser, adaptor_chooser_signals[ADAPTOR_SELECTED], 0, adaptor);
g_object_unref (adaptor);
}
}
static void
on_searchentry_search_changed (GtkEntry *entry,
_GladeAdaptorChooserWidget *chooser)
{
_GladeAdaptorChooserWidgetPrivate *priv = GET_PRIVATE (chooser);
const gchar *text = gtk_entry_get_text (entry);
g_clear_pointer (&priv->search_text, g_free);
if (g_utf8_strlen (text, -1))
priv->search_text = normalize_name (text);
gtk_tree_model_filter_refilter (priv->treemodelfilter);
}
static void
on_searchentry_activate (GtkEntry *entry, _GladeAdaptorChooserWidget *chooser)
{
_GladeAdaptorChooserWidgetPrivate *priv = GET_PRIVATE (chooser);
const gchar *text = gtk_entry_get_text (entry);
GladeWidgetAdaptor *adaptor;
/* try to find an adaptor by name */
if (!(adaptor = glade_widget_adaptor_get_by_name (text)))
{
GtkTreeModel *model = GTK_TREE_MODEL (priv->treemodelfilter);
gchar *normalized_name = normalize_name (text);
GtkTreeIter iter;
gboolean valid;
gint count = 0;
valid = gtk_tree_model_get_iter_first (model, &iter);
/* we could not find it check if we can find it by normalized name */
while (valid)
{
gchar *name;
gtk_tree_model_get (model, &iter, COLUMN_NORMALIZED_NAME, &name, -1);
if (g_strcmp0 (name, normalized_name) == 0)
{
gtk_tree_model_get (model, &iter, COLUMN_ADAPTOR, &adaptor, -1);
g_free (name);
break;
}
valid = gtk_tree_model_iter_next (model, &iter);
g_free (name);
count++;
}
/* if not, and there is only one row, then we select that one */
if (!adaptor && count == 1 && gtk_tree_model_get_iter_first (model, &iter))
gtk_tree_model_get (model, &iter, COLUMN_ADAPTOR, &adaptor, -1);
g_free (normalized_name);
}
if (adaptor)
g_signal_emit (chooser, adaptor_chooser_signals[ADAPTOR_SELECTED], 0, adaptor);
}
static gboolean
chooser_match_func (_GladeAdaptorChooserWidget *chooser,
GtkTreeModel *model,
const gchar *key,
GtkTreeIter *iter)
{
gboolean visible;
gint name_len;
gchar *name;
if (!key || *key == '\0')
return TRUE;
gtk_tree_model_get (model, iter,
COLUMN_NORMALIZED_NAME, &name,
COLUMN_NORMALIZED_NAME_LEN, &name_len,
-1);
if (!name)
return FALSE;
visible = (g_strstr_len (name, name_len, key) != NULL);
g_free (name);
return visible;
}
static gboolean
treemodelfilter_visible_func (GtkTreeModel *model, GtkTreeIter *iter, gpointer data)
{
_GladeAdaptorChooserWidgetPrivate *priv = GET_PRIVATE (data);
GladeWidgetAdaptor *adaptor = NULL;
gboolean visible = TRUE;
gtk_tree_model_get (model, iter, COLUMN_ADAPTOR, &adaptor, -1);
if (!adaptor)
return priv->show_group_title && !priv->search_text;
/* Skip classes not available in project target version */
if (priv->project)
{
const gchar *catalog = NULL;
gint major, minor;
catalog = glade_widget_adaptor_get_catalog (adaptor);
glade_project_get_target_version (priv->project, catalog, &major, &minor);
visible = GLADE_WIDGET_ADAPTOR_VERSION_CHECK (adaptor, major, minor);
}
if (visible && priv->flags)
{
GType type = glade_widget_adaptor_get_object_type (adaptor);
_GladeAdaptorChooserWidgetFlags flags = priv->flags;
/* Skip adaptors according to flags */
if (flags & GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_DEPRECATED && GLADE_WIDGET_ADAPTOR_DEPRECATED (adaptor))
visible = FALSE;
else if (flags & GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_TOPLEVEL && GLADE_WIDGET_ADAPTOR_IS_TOPLEVEL (adaptor))
visible = FALSE;
else if (flags & GLADE_ADAPTOR_CHOOSER_WIDGET_WIDGET && !g_type_is_a (type, GTK_TYPE_WIDGET))
visible = FALSE;
else if (flags & GLADE_ADAPTOR_CHOOSER_WIDGET_TOPLEVEL && !GLADE_WIDGET_ADAPTOR_IS_TOPLEVEL (adaptor))
visible = FALSE;
}
if (visible && priv->search_text)
visible = chooser_match_func (data, model, priv->search_text, iter);
g_clear_object (&adaptor);
return visible;
}
static gboolean
entrycompletion_match_func (GtkEntryCompletion *entry, const gchar *key, GtkTreeIter *iter, gpointer data)
{
return chooser_match_func (data, gtk_entry_completion_get_model (entry), key, iter);
}
static void
adaptor_icon_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *tree_model,
GtkTreeIter *iter,
gpointer data)
{
GladeWidgetAdaptor *adaptor;
gtk_tree_model_get (tree_model, iter, COLUMN_ADAPTOR, &adaptor, -1);
if (adaptor)
g_object_set (cell, "sensitive", TRUE, "icon-name", glade_widget_adaptor_get_icon_name (adaptor), NULL);
else
g_object_set (cell, "sensitive", FALSE, "icon-name", "go-down-symbolic", NULL);
g_clear_object (&adaptor);
}
static void
adaptor_text_cell_data_func (GtkTreeViewColumn *tree_column,
GtkCellRenderer *cell,
GtkTreeModel *tree_model,
GtkTreeIter *iter,
gpointer data)
{
GladeWidgetAdaptor *adaptor;
gchar *group;
gtk_tree_model_get (tree_model, iter,
COLUMN_ADAPTOR, &adaptor,
COLUMN_GROUP, &group,
-1);
if (adaptor)
g_object_set (cell,
"sensitive", TRUE,
"text", glade_widget_adaptor_get_display_name (adaptor),
"style", PANGO_STYLE_NORMAL,
NULL);
else
g_object_set (cell,
"sensitive", FALSE,
"text", group,
"style", PANGO_STYLE_ITALIC,
NULL);
g_clear_object (&adaptor);
g_free (group);
}
static void
glade_adaptor_chooser_widget_drag_begin (GtkWidget *widget,
GdkDragContext *context,
gpointer data)
{
GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));
GtkTreeModel *model;
GtkTreeIter iter;
if (gtk_tree_selection_get_selected (selection, &model, &iter))
{
GladeWidgetAdaptor *adaptor;
gtk_tree_model_get (model, &iter, COLUMN_ADAPTOR, &adaptor, -1);
_glade_dnd_set_icon_widget (context,
glade_widget_adaptor_get_icon_name (adaptor),
glade_widget_adaptor_get_display_name (adaptor));
}
}
static void
glade_adaptor_chooser_widget_drag_data_get (GtkWidget *widget,
GdkDragContext *context,
GtkSelectionData *data,
guint info,
guint time,
gpointer userdata)
{
GtkTreeSelection *selection = gtk_tree_view_get_selection (GTK_TREE_VIEW (widget));
GtkTreeModel *model;
GtkTreeIter iter;
if (gtk_tree_selection_get_selected (selection, &model, &iter))
{
GladeWidgetAdaptor *adaptor;
gtk_tree_model_get (model, &iter, COLUMN_ADAPTOR, &adaptor, -1);
_glade_dnd_set_data (data, G_OBJECT (adaptor));
}
}
static void
_glade_adaptor_chooser_widget_constructed (GObject *object)
{
_GladeAdaptorChooserWidget *chooser = GLADE_ADAPTOR_CHOOSER_WIDGET (object);
_GladeAdaptorChooserWidgetPrivate *priv = GET_PRIVATE (chooser);
/* Set cell data function: this save us from alocating name and icon name for each adaptor. */
gtk_tree_view_column_set_cell_data_func (priv->column_icon,
priv->icon_cell,
adaptor_icon_cell_data_func,
NULL, NULL);
gtk_tree_view_column_set_cell_data_func (priv->column_adaptor,
priv->adaptor_cell,
adaptor_text_cell_data_func,
NULL, NULL);
/* Set tree model filter function */
gtk_tree_model_filter_set_visible_func (priv->treemodelfilter,
treemodelfilter_visible_func,
chooser, NULL);
/* Set completion match function */
gtk_entry_completion_set_match_func (priv->entrycompletion,
entrycompletion_match_func,
chooser, NULL);
/* Enable Drag & Drop */
gtk_tree_view_enable_model_drag_source (priv->treeview, GDK_BUTTON1_MASK,
_glade_dnd_get_target (), 1, GDK_ACTION_MOVE | GDK_ACTION_COPY);
g_signal_connect_after (priv->treeview, "drag-begin",
G_CALLBACK (glade_adaptor_chooser_widget_drag_begin),
NULL);
g_signal_connect (priv->treeview, "drag-data-get",
G_CALLBACK (glade_adaptor_chooser_widget_drag_data_get),
NULL);
}
static void
_glade_adaptor_chooser_widget_map (GtkWidget *widget)
{
GtkWidget *toplevel = gtk_widget_get_toplevel (widget);
if (toplevel)
{
_GladeAdaptorChooserWidgetPrivate *priv = GET_PRIVATE (widget);
gint height = gtk_widget_get_allocated_height (toplevel) - 100;
if (height > 512)
height = height * 0.75;
gtk_scrolled_window_set_max_content_height (priv->scrolledwindow, height);
}
GTK_WIDGET_CLASS (_glade_adaptor_chooser_widget_parent_class)->map (widget);
}
static GType
_glade_adaptor_chooser_widget_flags_get_type (void)
{
static GType etype = 0;
if (G_UNLIKELY(etype == 0)) {
static const GFlagsValue values[] = {
{ GLADE_ADAPTOR_CHOOSER_WIDGET_WIDGET, "GLADE_ADAPTOR_CHOOSER_WIDGET_WIDGET", "widget" },
{ GLADE_ADAPTOR_CHOOSER_WIDGET_TOPLEVEL, "GLADE_ADAPTOR_CHOOSER_WIDGET_TOPLEVEL", "toplevel" },
{ GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_TOPLEVEL, "GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_TOPLEVEL", "skip-toplevel" },
{ GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_DEPRECATED, "GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_DEPRECATED", "skip-deprecated" },
{ 0, NULL, NULL }
};
etype = g_flags_register_static (g_intern_static_string ("_GladeAdaptorChooserWidgetFlag"), values);
}
return etype;
}
static void
_glade_adaptor_chooser_widget_class_init (_GladeAdaptorChooserWidgetClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->dispose = _glade_adaptor_chooser_widget_dispose;
object_class->finalize = _glade_adaptor_chooser_widget_finalize;
object_class->set_property = _glade_adaptor_chooser_widget_set_property;
object_class->get_property = _glade_adaptor_chooser_widget_get_property;
object_class->constructed = _glade_adaptor_chooser_widget_constructed;
widget_class->map = _glade_adaptor_chooser_widget_map;
g_object_class_install_property (object_class,
PROP_SHOW_FLAGS,
g_param_spec_flags ("show-flags",
"Show flags",
"Widget adaptors show flags",
_glade_adaptor_chooser_widget_flags_get_type (),
0,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_SHOW_GROUP_TITLE,
g_param_spec_boolean ("show-group-title",
"Show group title",
"Whether to show the group title",
FALSE,
G_PARAM_READWRITE | G_PARAM_CONSTRUCT_ONLY));
g_object_class_install_property (object_class,
PROP_PROJECT,
g_param_spec_object ("project",
"Glade Project",
"If set, use project target version to skip unsupported classes",
GLADE_TYPE_PROJECT,
G_PARAM_READWRITE));
adaptor_chooser_signals[ADAPTOR_SELECTED] =
g_signal_new ("adaptor-selected", G_OBJECT_CLASS_TYPE (klass), 0, 0,
NULL, NULL, NULL,
G_TYPE_NONE, 1,
GLADE_TYPE_WIDGET_ADAPTOR);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/gladeui/glade-adaptor-chooser-widget.ui");
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, treeview);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, store);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, treemodelfilter);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, searchentry);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, entrycompletion);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, column_icon);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, icon_cell);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, column_adaptor);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, adaptor_cell);
gtk_widget_class_bind_template_child_private (widget_class, _GladeAdaptorChooserWidget, scrolledwindow);
gtk_widget_class_bind_template_callback (widget_class, on_treeview_row_activated);
gtk_widget_class_bind_template_callback (widget_class, on_searchentry_search_changed);
gtk_widget_class_bind_template_callback (widget_class, on_searchentry_activate);
}
GtkWidget *
_glade_adaptor_chooser_widget_new (_GladeAdaptorChooserWidgetFlags flags, GladeProject *project)
{
return GTK_WIDGET (g_object_new (GLADE_TYPE_ADAPTOR_CHOOSER_WIDGET,
"show-flags", flags,
"project", project,
NULL));
}
void
_glade_adaptor_chooser_widget_set_project (_GladeAdaptorChooserWidget *chooser,
GladeProject *project)
{
_GladeAdaptorChooserWidgetPrivate *priv;
g_return_if_fail (GLADE_IS_ADAPTOR_CHOOSER_WIDGET (chooser));
priv = GET_PRIVATE (chooser);
if (priv->project)
{
g_object_remove_weak_pointer (G_OBJECT (priv->project), (gpointer *) &priv->project);
priv->project = NULL;
}
if (project)
{
priv->project = project;
g_object_add_weak_pointer (G_OBJECT (project), (gpointer *) &priv->project);
gtk_tree_model_filter_refilter (priv->treemodelfilter);
}
}
void
_glade_adaptor_chooser_widget_populate (_GladeAdaptorChooserWidget *chooser)
{
GList *l;
for (l = glade_app_get_catalogs (); l; l = g_list_next (l))
_glade_adaptor_chooser_widget_add_catalog (chooser, l->data);
}
void
_glade_adaptor_chooser_widget_add_catalog (_GladeAdaptorChooserWidget *chooser,
GladeCatalog *catalog)
{
GList *groups;
g_return_if_fail (GLADE_IS_ADAPTOR_CHOOSER_WIDGET (chooser));
for (groups = glade_catalog_get_widget_groups (catalog); groups;
groups = g_list_next (groups))
_glade_adaptor_chooser_widget_add_group (chooser, groups->data);
}
void
_glade_adaptor_chooser_widget_add_group (_GladeAdaptorChooserWidget *chooser,
GladeWidgetGroup *group)
{
_GladeAdaptorChooserWidgetPrivate *priv;
const GList *adaptors;
g_return_if_fail (GLADE_IS_ADAPTOR_CHOOSER_WIDGET (chooser));
priv = GET_PRIVATE (chooser);
if (priv->show_group_title)
gtk_list_store_insert_with_values (priv->store, NULL, -1,
COLUMN_GROUP, glade_widget_group_get_title (group),
-1);
for (adaptors = glade_widget_group_get_adaptors (group); adaptors;
adaptors = g_list_next (adaptors))
store_append_adaptor (priv->store, adaptors->data);
}

View File

@ -0,0 +1,64 @@
/*
* glade-adaptor-chooser-widget.h
*
* Copyright (C) 2014-2017 Juan Pablo Ugarte
*
* 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:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*/
#ifndef _GLADE_ADAPTOR_CHOOSER_WIDGET_H_
#define _GLADE_ADAPTOR_CHOOSER_WIDGET_H_
#include <gladeui/glade-widget-adaptor.h>
G_BEGIN_DECLS
#define GLADE_TYPE_ADAPTOR_CHOOSER_WIDGET _glade_adaptor_chooser_widget_get_type ()
G_DECLARE_DERIVABLE_TYPE (_GladeAdaptorChooserWidget, _glade_adaptor_chooser_widget, GLADE, ADAPTOR_CHOOSER_WIDGET, GtkBox)
typedef enum
{
GLADE_ADAPTOR_CHOOSER_WIDGET_WIDGET = 1 << 0,
GLADE_ADAPTOR_CHOOSER_WIDGET_TOPLEVEL = 1 << 1,
GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_TOPLEVEL = 1 << 2,
GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_DEPRECATED = 1 << 3
} _GladeAdaptorChooserWidgetFlags;
struct __GladeAdaptorChooserWidgetClass
{
GtkBoxClass parent_class;
};
GtkWidget *_glade_adaptor_chooser_widget_new (_GladeAdaptorChooserWidgetFlags flags,
GladeProject *project);
void _glade_adaptor_chooser_widget_set_project (_GladeAdaptorChooserWidget *chooser,
GladeProject *project);
void _glade_adaptor_chooser_widget_populate (_GladeAdaptorChooserWidget *chooser);
void _glade_adaptor_chooser_widget_add_catalog (_GladeAdaptorChooserWidget *chooser,
GladeCatalog *catalog);
void _glade_adaptor_chooser_widget_add_group (_GladeAdaptorChooserWidget *chooser,
GladeWidgetGroup *group);
G_END_DECLS
#endif /* _GLADE_ADAPTOR_CHOOSER_WIDGET_H_ */

View File

@ -0,0 +1,96 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.21.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<object class="GtkListStore" id="store">
<columns>
<!-- column-name adaptor -->
<column type="GObject"/>
<!-- column-name group -->
<column type="gchararray"/>
<!-- column-name normalized-name -->
<column type="gchararray"/>
<!-- column-name normalized-name-len -->
<column type="gint"/>
</columns>
</object>
<object class="GtkTreeModelFilter" id="treemodelfilter">
<property name="child_model">store</property>
</object>
<object class="GtkEntryCompletion" id="entrycompletion">
<property name="model">treemodelfilter</property>
<property name="text_column">1</property>
<property name="inline_completion">True</property>
<property name="popup_completion">False</property>
<property name="popup_single_match">False</property>
</object>
<template class="_GladeAdaptorChooserWidget" parent="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">6</property>
<property name="orientation">vertical</property>
<property name="spacing">6</property>
<child>
<object class="GtkSearchEntry" id="searchentry">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="primary_icon_name">edit-find-symbolic</property>
<property name="primary_icon_activatable">False</property>
<property name="primary_icon_sensitive">False</property>
<property name="completion">entrycompletion</property>
<property name="input_hints">GTK_INPUT_HINT_WORD_COMPLETION | GTK_INPUT_HINT_NONE</property>
<signal name="activate" handler="on_searchentry_activate" swapped="no"/>
<signal name="search-changed" handler="on_searchentry_search_changed" swapped="no"/>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow" id="scrolledwindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">never</property>
<property name="shadow_type">in</property>
<property name="max_content_height">512</property>
<property name="propagate_natural_width">True</property>
<property name="propagate_natural_height">True</property>
<child>
<object class="GtkTreeView" id="treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="model">treemodelfilter</property>
<property name="headers_visible">False</property>
<property name="enable_search">False</property>
<property name="activate_on_single_click">True</property>
<signal name="row-activated" handler="on_treeview_row_activated" swapped="no"/>
<child internal-child="selection">
<object class="GtkTreeSelection" id="treeview-selection"/>
</child>
<child>
<object class="GtkTreeViewColumn" id="column_icon">
<child>
<object class="GtkCellRendererPixbuf" id="icon_cell"/>
</child>
</object>
</child>
<child>
<object class="GtkTreeViewColumn" id="column_adaptor">
<child>
<object class="GtkCellRendererText" id="adaptor_cell"/>
</child>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</template>
</interface>

View File

@ -0,0 +1,436 @@
/*
* glade-adaptor-chooser.c
*
* Copyright (C) 2017 Juan Pablo Ugarte
*
* 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:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*/
#include "glade-adaptor-chooser-widget.h"
#include "glade-adaptor-chooser.h"
#include "glade-app.h"
typedef struct
{
GladeProject *project;
GtkWidget *gtk_button_box;
GtkWidget *extra_button;
GtkWidget *others_button;
GtkImage *class_image;
GtkLabel *class_label;
GtkWidget *all_button;
GtkWidget *others_chooser;
GtkWidget *all_chooser;
GList *choosers;
gboolean needs_update;
} GladeAdaptorChooserPrivate;
struct _GladeAdaptorChooser
{
GtkBox parent_instance;
};
enum
{
PROP_0,
PROP_PROJECT,
N_PROPERTIES
};
static GParamSpec *properties[N_PROPERTIES];
G_DEFINE_TYPE_WITH_PRIVATE (GladeAdaptorChooser,
glade_adaptor_chooser,
GTK_TYPE_BOX);
#define GET_PRIVATE(d) ((GladeAdaptorChooserPrivate *) glade_adaptor_chooser_get_instance_private((GladeAdaptorChooser*)d))
static void
glade_adaptor_chooser_init (GladeAdaptorChooser *chooser)
{
gtk_widget_init_template (GTK_WIDGET (chooser));
}
static void
glade_adaptor_chooser_finalize (GObject *object)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (object);
g_list_free (priv->choosers);
G_OBJECT_CLASS (glade_adaptor_chooser_parent_class)->finalize (object);
}
static void
glade_adaptor_chooser_set_property (GObject *object,
guint prop_id,
const GValue *value,
GParamSpec *pspec)
{
g_return_if_fail (GLADE_IS_ADAPTOR_CHOOSER (object));
switch (prop_id)
{
case PROP_PROJECT:
glade_adaptor_chooser_set_project (GLADE_ADAPTOR_CHOOSER (object),
g_value_get_object (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
glade_adaptor_chooser_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{
GladeAdaptorChooserPrivate *priv;
g_return_if_fail (GLADE_IS_ADAPTOR_CHOOSER (object));
priv = GET_PRIVATE (object);
switch (prop_id)
{
case PROP_PROJECT:
g_value_set_object (value, priv->project);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
on_adaptor_selected (GtkWidget *widget,
GladeWidgetAdaptor *adaptor,
GladeAdaptorChooser *chooser)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
/* Auto-create toplevel types */
if (GLADE_WIDGET_ADAPTOR_IS_TOPLEVEL (adaptor))
{
glade_command_create (adaptor, NULL, NULL, priv->project);
}
else
{
glade_project_set_add_item (priv->project, adaptor);
glade_project_set_pointer_mode (priv->project, GLADE_POINTER_ADD_WIDGET);
}
gtk_popover_popdown (GTK_POPOVER (gtk_widget_get_parent (widget)));
}
static void
glade_adaptor_chooser_button_add_chooser (GtkWidget *button, GtkWidget *chooser)
{
GtkPopover *popover = gtk_menu_button_get_popover (GTK_MENU_BUTTON (button));
if (!popover)
{
popover = GTK_POPOVER (gtk_popover_new (button));
gtk_menu_button_set_popover (GTK_MENU_BUTTON (button),
GTK_WIDGET (popover));
}
gtk_container_add (GTK_CONTAINER (popover), chooser);
gtk_widget_show (chooser);
}
static GtkWidget *
glade_adaptor_chooser_add_chooser (GladeAdaptorChooser *chooser,
gboolean show_group_title)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
GtkWidget *chooser_widget = g_object_new (GLADE_TYPE_ADAPTOR_CHOOSER_WIDGET,
"show-group-title", show_group_title,
NULL);
priv->choosers = g_list_prepend (priv->choosers, chooser_widget);
g_signal_connect (chooser_widget, "adaptor-selected",
G_CALLBACK (on_adaptor_selected),
chooser);
return chooser_widget;
}
static void
button_box_populate_from_catalog (GladeAdaptorChooser *chooser,
GladeCatalog *catalog)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
GtkWidget *extra_chooser = NULL;
GList *groups;
groups = glade_catalog_get_widget_groups (catalog);
gtk_box_set_homogeneous (GTK_BOX (priv->gtk_button_box), FALSE);
for (; groups; groups = g_list_next (groups))
{
GladeWidgetGroup *group = GLADE_WIDGET_GROUP (groups->data);
if (!glade_widget_group_get_adaptors (group))
continue;
if (glade_widget_group_get_expanded (group))
{
GtkWidget *button, *chooser_widget;
chooser_widget = glade_adaptor_chooser_add_chooser (chooser, FALSE);
button = gtk_menu_button_new ();
gtk_button_set_label (GTK_BUTTON (button), glade_widget_group_get_title (group));
glade_adaptor_chooser_button_add_chooser (button, chooser_widget);
_glade_adaptor_chooser_widget_add_group (GLADE_ADAPTOR_CHOOSER_WIDGET (chooser_widget), group);
gtk_box_pack_start (GTK_BOX (priv->gtk_button_box), button, FALSE, FALSE, 0);
gtk_widget_show (button);
}
else
{
if (!extra_chooser)
{
extra_chooser = glade_adaptor_chooser_add_chooser (chooser, TRUE);
glade_adaptor_chooser_button_add_chooser (priv->extra_button, extra_chooser);
gtk_widget_show (priv->extra_button);
}
_glade_adaptor_chooser_widget_add_group (GLADE_ADAPTOR_CHOOSER_WIDGET (extra_chooser), group);
}
}
}
static void
remove_chooser_widget (GladeAdaptorChooser *chooser, GtkWidget *widget)
{
if (widget)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
priv->choosers = g_list_remove (priv->choosers, widget);
gtk_widget_destroy (widget);
}
}
static void
update_all_others_chooser (GladeAdaptorChooser *chooser)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
GladeCatalog *gtk_catalog;
GList *l;
priv->needs_update = FALSE;
gtk_catalog = glade_app_get_catalog ("gtk+");
remove_chooser_widget (chooser, priv->others_chooser);
remove_chooser_widget (chooser, priv->all_chooser);
priv->others_chooser = glade_adaptor_chooser_add_chooser (chooser, TRUE);
priv->all_chooser = glade_adaptor_chooser_add_chooser (chooser, TRUE);
glade_adaptor_chooser_button_add_chooser (priv->others_button, priv->others_chooser);
glade_adaptor_chooser_button_add_chooser (priv->all_button, priv->all_chooser);
/* then the rest */
for (l = glade_app_get_catalogs (); l; l = g_list_next (l))
{
GladeCatalog *catalog = l->data;
_glade_adaptor_chooser_widget_add_catalog (GLADE_ADAPTOR_CHOOSER_WIDGET (priv->all_chooser), catalog);
if (catalog != gtk_catalog)
_glade_adaptor_chooser_widget_add_catalog (GLADE_ADAPTOR_CHOOSER_WIDGET (priv->others_chooser), catalog);
}
_glade_adaptor_chooser_widget_set_project (GLADE_ADAPTOR_CHOOSER_WIDGET (priv->others_chooser), priv->project);
_glade_adaptor_chooser_widget_set_project (GLADE_ADAPTOR_CHOOSER_WIDGET (priv->all_chooser), priv->project);
}
static void
on_widget_adaptor_registered (GladeApp *app,
GladeWidgetAdaptor *adaptor,
GladeAdaptorChooser *chooser)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
priv->needs_update = TRUE;
}
static void
on_button_clicked (GtkButton *button, GladeAdaptorChooser *chooser)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
if (priv->needs_update)
update_all_others_chooser (chooser);
}
static void
glade_adaptor_chooser_constructed (GObject *object)
{
GladeAdaptorChooser *chooser = GLADE_ADAPTOR_CHOOSER (object);
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
GladeCatalog *gtk_catalog;
/* GTK+ catalog goes first subdivided by group */
gtk_catalog = glade_app_get_catalog ("gtk+");
button_box_populate_from_catalog (chooser, gtk_catalog);
update_all_others_chooser (chooser);
g_signal_connect (glade_app_get(), "widget-adaptor-registered",
G_CALLBACK (on_widget_adaptor_registered),
chooser);
g_signal_connect (priv->others_button, "clicked",
G_CALLBACK (on_button_clicked),
chooser);
g_signal_connect (priv->all_button, "clicked",
G_CALLBACK (on_button_clicked),
chooser);
}
static void
glade_adaptor_chooser_class_init (GladeAdaptorChooserClass *klass)
{
GObjectClass *object_class = G_OBJECT_CLASS (klass);
GtkWidgetClass *widget_class = GTK_WIDGET_CLASS (klass);
object_class->finalize = glade_adaptor_chooser_finalize;
object_class->constructed = glade_adaptor_chooser_constructed;
object_class->set_property = glade_adaptor_chooser_set_property;
object_class->get_property = glade_adaptor_chooser_get_property;
/* Properties */
properties[PROP_PROJECT] =
g_param_spec_object ("project", "Project",
"This adaptor chooser's current project",
GLADE_TYPE_PROJECT,
G_PARAM_READWRITE);
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
gtk_widget_class_set_template_from_resource (widget_class, "/org/gnome/gladeui/glade-adaptor-chooser.ui");
gtk_widget_class_bind_template_child_private (widget_class, GladeAdaptorChooser, gtk_button_box);
gtk_widget_class_bind_template_child_private (widget_class, GladeAdaptorChooser, extra_button);
gtk_widget_class_bind_template_child_private (widget_class, GladeAdaptorChooser, others_button);
gtk_widget_class_bind_template_child_private (widget_class, GladeAdaptorChooser, class_image);
gtk_widget_class_bind_template_child_private (widget_class, GladeAdaptorChooser, class_label);
gtk_widget_class_bind_template_child_private (widget_class, GladeAdaptorChooser, all_button);
}
/* Public API */
/**
* glade_adaptor_chooser_new:
*
* Returns: (transfer full): A new #GladeAdaptorChooser
*/
GtkWidget *
glade_adaptor_chooser_new ()
{
return (GtkWidget*) g_object_new (GLADE_TYPE_ADAPTOR_CHOOSER, NULL);
}
static void
glade_adaptor_chooser_update_adaptor (GladeAdaptorChooser *chooser)
{
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
GladeWidgetAdaptor *adaptor;
if (priv->project && (adaptor = glade_project_get_add_item (priv->project)))
{
gtk_image_set_from_icon_name (priv->class_image,
glade_widget_adaptor_get_icon_name (adaptor),
GTK_ICON_SIZE_BUTTON);
gtk_label_set_label (priv->class_label,
glade_widget_adaptor_get_display_name (adaptor));
}
else
{
gtk_image_set_from_pixbuf (priv->class_image, NULL);
gtk_label_set_label (priv->class_label, "");
}
}
static void
on_project_weak_notify (gpointer data, GObject *project)
{
GladeAdaptorChooser *chooser = data;
GladeAdaptorChooserPrivate *priv = GET_PRIVATE (chooser);
priv->project = NULL;
}
void
glade_adaptor_chooser_set_project (GladeAdaptorChooser *chooser,
GladeProject *project)
{
GladeAdaptorChooserPrivate *priv;
GList *l;
g_return_if_fail (GLADE_IS_ADAPTOR_CHOOSER (chooser));
priv = GET_PRIVATE (chooser);
if (priv->project)
{
g_signal_handlers_disconnect_by_func (G_OBJECT (priv->project),
G_CALLBACK (glade_adaptor_chooser_update_adaptor),
chooser);
g_object_weak_unref (G_OBJECT (priv->project), on_project_weak_notify, chooser);
priv->project = NULL;
}
if (project)
{
priv->project = project;
g_object_weak_ref (G_OBJECT (project), on_project_weak_notify, chooser);
g_signal_connect_swapped (G_OBJECT (project), "notify::add-item",
G_CALLBACK (glade_adaptor_chooser_update_adaptor),
chooser);
gtk_widget_set_sensitive (GTK_WIDGET (chooser), TRUE);
}
else
gtk_widget_set_sensitive (GTK_WIDGET (chooser), FALSE);
/* Set project in chooser for filter to work */
for (l = priv->choosers; l; l = g_list_next (l))
_glade_adaptor_chooser_widget_set_project (l->data, project);
/* Update class image and label */
glade_adaptor_chooser_update_adaptor (chooser);
}
/**
* glade_adaptor_chooser_get_project:
* @chooser: a #GladeAdaptorChooser
*
* Returns: (transfer full): A #GladeProject
*/
GladeProject *
glade_adaptor_chooser_get_project (GladeAdaptorChooser *chooser)
{
g_return_val_if_fail (GLADE_IS_ADAPTOR_CHOOSER (chooser), NULL);
return GET_PRIVATE (chooser)->project;
}

View File

@ -0,0 +1,43 @@
/*
* glade-adaptor-chooser.h
*
* Copyright (C) 2017 Juan Pablo Ugarte
*
* 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:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*/
#ifndef _GLADE_ADAPTOR_CHOOSER_H_
#define _GLADE_ADAPTOR_CHOOSER_H_
#include <gladeui/glade-widget-adaptor.h>
#include <gladeui/glade-project.h>
G_BEGIN_DECLS
#define GLADE_TYPE_ADAPTOR_CHOOSER (glade_adaptor_chooser_get_type ())
G_DECLARE_FINAL_TYPE (GladeAdaptorChooser, glade_adaptor_chooser, GLADE, ADAPTOR_CHOOSER, GtkBox)
GtkWidget *glade_adaptor_chooser_new (void);
void glade_adaptor_chooser_set_project (GladeAdaptorChooser *chooser,
GladeProject *project);
GladeProject *glade_adaptor_chooser_get_project (GladeAdaptorChooser *chooser);
G_END_DECLS
#endif /* _GLADE_ADAPTOR_CHOOSER_H_ */

View File

@ -0,0 +1,114 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.20.0 -->
<interface domain="glade">
<requires lib="gtk+" version="3.20"/>
<template class="GladeAdaptorChooser" parent="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="spacing">4</property>
<child>
<object class="GtkMenuButton" id="all_button">
<property name="name">adaptor-search-button</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">All available widgets and objects</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">edit-find-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkImage" id="class_image">
<property name="visible">True</property>
<property name="can_focus">False</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
<child>
<object class="GtkLabel" id="class_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="tooltip_text" translatable="yes">Click on a placeholder to create this class
(use middle button to create more than one)</property>
<property name="ellipsize">end</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">2</property>
</packing>
</child>
<child>
<object class="GtkMenuButton" id="others_button">
<property name="name">adaptor-others-button</property>
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Non-GTK+ widgets and objects</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">view-more-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">3</property>
</packing>
</child>
<child>
<object class="GtkButtonBox" id="gtk_button_box">
<property name="name">adaptor-gtk-buttonbox</property>
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="layout_style">expand</property>
<child>
<object class="GtkMenuButton" id="extra_button">
<property name="name">adaptor-extra-button</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="tooltip_text" translatable="yes">Extra GTK+ objects</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">pan-down-symbolic</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">2</property>
<property name="non_homogeneous">True</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="pack_type">end</property>
<property name="position">4</property>
</packing>
</child>
</template>
</interface>

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* Copyright (C) 2001 Ximian, Inc. * Copyright (C) 2001 Ximian, Inc.
* *
@ -30,182 +29,62 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLADE_TYPE_APP (glade_app_get_type()) #define GLADE_TYPE_APP glade_app_get_type ()
#define GLADE_APP(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_APP, GladeApp)) G_DECLARE_DERIVABLE_TYPE (GladeApp, glade_app, GLADE, APP, GObject)
#define GLADE_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_APP, GladeAppClass))
#define GLADE_IS_APP(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_APP))
#define GLADE_IS_APP_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_APP))
#define GLADE_APP_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GLADE_APP, GladeAppClass))
#define GLADE_TYPE_POINTER_MODE (glade_pointer_mode_get_type()) #define GLADE_ENV_CATALOG_PATH "GLADE_CATALOG_SEARCH_PATH"
#define GLADE_ENV_MODULE_PATH "GLADE_MODULE_SEARCH_PATH"
#define GLADE_ENV_CATALOG_PATH "GLADE_CATALOG_PATH" #define GLADE_ENV_TESTING "GLADE_TESTING"
#define GLADE_ENV_MODULE_PATH "GLADE_MODULE_PATH" #define GLADE_ENV_PIXMAP_DIR "GLADE_PIXMAP_DIR"
#define GLADE_ENV_ICON_THEME_PATH "GLADE_ICON_THEME_PATH"
typedef struct _GladeApp GladeApp; #define GLADE_ENV_BUNDLED "GLADE_BUNDLED"
typedef struct _GladeAppPrivate GladeAppPrivate;
typedef struct _GladeAppClass GladeAppClass;
/**
* GladePointerMode:
* @GLADE_POINTER_SELECT: Mouse pointer used for selecting widgets
* @GLADE_POINTER_ADD_WIDGET: Mouse pointer used for adding widgets
* @GLADE_POINTER_DRAG_RESIZE: Mouse pointer used for dragging and
* resizing widgets in containers
*
* Indicates what the pointer is used for in the workspace.
*/
enum _GladePointerMode
{
GLADE_POINTER_SELECT = 0,
GLADE_POINTER_ADD_WIDGET,
GLADE_POINTER_DRAG_RESIZE
};
typedef enum _GladePointerMode GladePointerMode;
struct _GladeApp
{
GObject parent_instance;
GladeAppPrivate *priv;
};
struct _GladeAppClass struct _GladeAppClass
{ {
GObjectClass parent_class; GObjectClass parent_class;
/* class methods */
void (* show_properties) (GladeApp* app,
gboolean raise);
void (* hide_properties) (GladeApp* app);
/* signals */ gpointer padding[6];
void (* update_ui_signal) (GladeApp *app);
void (* signal_editor_created) (GladeApp *app, GladeSignalEditor *signal_editor);
}; };
void glade_init (void);
GType glade_app_get_type (void) G_GNUC_CONST;
GladeApp* glade_app_new (void); GladeApp* glade_app_new (void);
GladeApp* glade_app_get (void);
GKeyFile* glade_app_get_config (void);
gint glade_app_config_save (void);
GType glade_pointer_mode_get_type (void) G_GNUC_CONST; gboolean glade_app_do_event (GdkEvent *event);
GladeApp* glade_app_get (void); gboolean glade_app_get_catalog_version (const gchar *name,
gint *major,
gint *minor);
GList *glade_app_get_catalogs (void);
GladeCatalog *glade_app_get_catalog (const gchar *name);
GladeClipboard* glade_app_get_clipboard (void);
void glade_app_update_ui (void); void glade_app_add_project (GladeProject *project);
void glade_app_remove_project (GladeProject *project);
GList* glade_app_get_projects (void);
gboolean glade_app_is_project_loaded (const gchar *project_path);
GladeProject* glade_app_get_project_by_path (const gchar *project_path);
void glade_app_set_window (GtkWidget *window); void glade_app_set_window (GtkWidget *window);
GtkWidget* glade_app_get_window (void);
GtkWidget* glade_app_get_window (void); void glade_app_set_accel_group (GtkAccelGroup *accel_group);
GtkAccelGroup *glade_app_get_accel_group (void);
gboolean glade_app_get_catalog_version (const gchar *name, gint *major, gint *minor); void glade_app_search_docs (const gchar *book,
const gchar *page,
GList *glade_app_get_catalogs (void); const gchar *search);
GladeCatalog *glade_app_get_catalog (const gchar *name);
GladeEditor* glade_app_get_editor (void);
GladePalette* glade_app_get_palette (void);
GladeClipboard* glade_app_get_clipboard (void);
GladeProject* glade_app_get_project (void);
GladeProject* glade_app_check_get_project (void);
void glade_app_set_project (GladeProject *project);
GladePointerMode glade_app_get_pointer_mode (void);
void glade_app_set_pointer_mode (GladePointerMode mode);
void glade_app_add_project (GladeProject *project);
void glade_app_remove_project (GladeProject *project);
GList* glade_app_get_projects (void);
GKeyFile* glade_app_get_config (void);
gboolean glade_app_is_project_loaded (const gchar *project_path);
GladeProject* glade_app_get_project_by_path (const gchar *project_path);
void glade_app_show_properties (gboolean raise);
void glade_app_hide_properties (void);
void glade_app_command_copy (void);
void glade_app_command_cut (void);
void glade_app_command_paste (GladePlaceholder *placeholder);
void glade_app_command_delete (void);
void glade_app_command_delete_clipboard (void);
void glade_app_command_undo (void);
void glade_app_command_redo (void);
gint glade_app_config_save (void);
void glade_app_set_transient_parent (GtkWindow *parent);
GtkWindow *glade_app_get_transient_parent (void);
void glade_app_set_accel_group (GtkAccelGroup *accel_group);
GtkAccelGroup *glade_app_get_accel_group (void);
GtkWidget *glade_app_undo_button_new (void);
GtkWidget *glade_app_redo_button_new (void);
GList *glade_app_get_selection (void);
/* These handle selection on a global scope and take care
* of multiple project logic.
*/
gboolean glade_app_is_selected (GObject *object);
void glade_app_selection_set (GObject *object,
gboolean emit_signal);
void glade_app_selection_add (GObject *object,
gboolean emit_signal);
void glade_app_selection_remove (GObject *object,
gboolean emit_signal);
void glade_app_selection_clear (gboolean emit_signal);
void glade_app_selection_changed (void);
void glade_app_queue_selection_changed (void);
/* package paths */ /* package paths */
const gchar *glade_app_get_catalogs_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_catalogs_dir (void) G_GNUC_CONST; const gchar *glade_app_get_modules_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_pixmaps_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_modules_dir (void) G_GNUC_CONST; const gchar *glade_app_get_locale_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_bin_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_plugins_dir (void) G_GNUC_CONST; const gchar *glade_app_get_lib_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_pixmaps_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_locale_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_bin_dir (void) G_GNUC_CONST;
G_END_DECLS G_END_DECLS

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* Copyright (C) 2006 Juan Pablo Ugarte. * Copyright (C) 2006 Juan Pablo Ugarte.
* *
@ -19,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__
@ -28,69 +28,53 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLADE_TYPE_BASE_EDITOR (glade_base_editor_get_type ()) #define GLADE_TYPE_BASE_EDITOR glade_base_editor_get_type ()
#define GLADE_BASE_EDITOR(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), GLADE_TYPE_BASE_EDITOR, GladeBaseEditor)) G_DECLARE_DERIVABLE_TYPE (GladeBaseEditor, glade_base_editor, GLADE, BASE_EDITOR, GtkBox)
#define GLADE_BASE_EDITOR_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), GLADE_TYPE_BASE_EDITOR, GladeBaseEditorClass))
#define GLADE_IS_BASE_EDITOR(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), GLADE_TYPE_BASE_EDITOR))
#define GLADE_IS_BASE_EDITOR_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), GLADE_TYPE_BASE_EDITOR))
#define GLADE_BASE_EDITOR_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), GLADE_TYPE_BASE_EDITOR, GladeBaseEditorClass))
typedef struct _GladeBaseEditor GladeBaseEditor;
typedef struct _GladeBaseEditorPrivate GladeBaseEditorPrivate;
typedef struct _GladeBaseEditorClass GladeBaseEditorClass;
struct _GladeBaseEditor
{
GtkVBox parent;
GladeBaseEditorPrivate *priv;
};
struct _GladeBaseEditorClass struct _GladeBaseEditorClass
{ {
GtkVBoxClass parent_class; GtkBoxClass parent_class;
void (*child_selected) (GladeBaseEditor *, GladeWidget *); void (*child_selected) (GladeBaseEditor *editor, GladeWidget *gchild);
gboolean (*change_type) (GladeBaseEditor *, GladeWidget *, GType); gboolean (*change_type) (GladeBaseEditor *editor, GladeWidget *gchild, GType type);
gchar * (*get_display_name) (GladeBaseEditor *, GladeWidget *); gchar * (*get_display_name) (GladeBaseEditor *editor, GladeWidget *gchild);
GladeWidget * (*build_child) (GladeBaseEditor *, GladeWidget *, GType); GladeWidget * (*build_child) (GladeBaseEditor *editor, GladeWidget *parent, GType type);
gboolean (*delete_child) (GladeBaseEditor *, GladeWidget *, GladeWidget *); gboolean (*delete_child) (GladeBaseEditor *editor, GladeWidget *parent, GladeWidget *gchild);
gboolean (*move_child) (GladeBaseEditor *, GladeWidget *, GladeWidget *); gboolean (*move_child) (GladeBaseEditor *editor, GladeWidget *gparent, GladeWidget *gchild);
gpointer padding[6];
}; };
GType glade_base_editor_get_type (void);
GladeBaseEditor *glade_base_editor_new (GObject *container, GladeBaseEditor *glade_base_editor_new (GObject *container,
GladeEditable *main_editable, GladeEditable *main_editable,
...); ...);
void glade_base_editor_append_types (GladeBaseEditor *editor, void glade_base_editor_append_types (GladeBaseEditor *editor,
GType parent_type, GType parent_type,
...); ...);
void glade_base_editor_add_editable (GladeBaseEditor *editor, void glade_base_editor_add_editable (GladeBaseEditor *editor,
GladeWidget *gchild, GladeWidget *gchild,
GladeEditorPageType page); GladeEditorPageType page);
void glade_base_editor_add_default_properties (GladeBaseEditor *editor, void glade_base_editor_add_default_properties (GladeBaseEditor *editor,
GladeWidget *gchild); GladeWidget *gchild);
void glade_base_editor_add_properties (GladeBaseEditor *editor, void glade_base_editor_add_properties (GladeBaseEditor *editor,
GladeWidget *gchild, GladeWidget *gchild,
gboolean packing, gboolean packing,
...); ...);
void glade_base_editor_add_label (GladeBaseEditor *editor, void glade_base_editor_add_label (GladeBaseEditor *editor,
gchar *str); gchar *str);
void glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor, void glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor,
gboolean val); gboolean val);
/* Convenience functions */ /* Convenience functions */
GtkWidget *glade_base_editor_pack_new_window (GladeBaseEditor *editor, GtkWidget *glade_base_editor_pack_new_window (GladeBaseEditor *editor,
gchar *title, gchar *title,
gchar *help_markup); gchar *help_markup);
G_END_DECLS G_END_DECLS

View File

@ -0,0 +1,259 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.21.0 -->
<interface>
<requires lib="gtk+" version="3.20"/>
<requires lib="gladeui" version="0.0"/>
<template class="GladeBaseEditor" parent="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="events"/>
<property name="orientation">vertical</property>
<property name="spacing">8</property>
<signal name="realize" handler="glade_base_editor_realize_callback" swapped="no"/>
<child>
<object class="GtkPaned" id="paned">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events"/>
<property name="orientation">vertical</property>
<property name="wide_handle">True</property>
<child>
<object class="GtkPaned">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="wide_handle">True</property>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="events"/>
<property name="orientation">vertical</property>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events"/>
<property name="hscrollbar_policy">never</property>
<property name="vscrollbar_policy">always</property>
<child>
<object class="GtkTreeView" id="treeview">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events">GDK_BUTTON_MOTION_MASK | GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK | GDK_KEY_PRESS_MASK | GDK_TOUCH_MASK</property>
<property name="reorderable">True</property>
<property name="rules_hint">True</property>
<property name="search_column">2</property>
<signal name="button-press-event" handler="glade_base_editor_popup_handler" swapped="no"/>
<signal name="cursor-changed" handler="glade_base_editor_treeview_cursor_changed" swapped="no"/>
<signal name="key-press-event" handler="glade_base_editor_treeview_key_press_event" swapped="no"/>
<child internal-child="selection">
<object class="GtkTreeSelection"/>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="border_width">4</property>
<child>
<object class="GtkButtonBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="layout_style">expand</property>
<child>
<object class="GtkButton" id="help_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">help-browser</property>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButtonBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="halign">end</property>
<property name="layout_style">expand</property>
<child>
<object class="GtkButton" id="add_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events"/>
<signal name="clicked" handler="glade_base_editor_add_activate" swapped="no"/>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">list-add</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkButton" id="delete_button">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="receives_default">True</property>
<property name="events"/>
<signal name="clicked" handler="glade_base_editor_delete_activate" swapped="no"/>
<child>
<object class="GtkImage">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_name">list-remove</property>
</object>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">False</property>
</packing>
</child>
<child>
<object class="GtkBox">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="orientation">vertical</property>
<child>
<object class="GtkLabel" id="tip_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="margin_left">4</property>
<property name="margin_right">4</property>
<property name="use_markup">True</property>
<property name="xalign">0</property>
</object>
<packing>
<property name="expand">False</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
<child>
<object class="GtkScrolledWindow">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="events"/>
<property name="hscrollbar_policy">never</property>
<child>
<object class="GtkViewport">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="events"/>
<child>
<object class="GtkGrid" id="table">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="events"/>
<property name="margin_left">4</property>
<property name="margin_right">4</property>
<property name="orientation">vertical</property>
<property name="row_spacing">4</property>
<property name="column_spacing">4</property>
<child>
<object class="GtkLabel" id="message_label">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="use_markup">True</property>
</object>
<packing>
<property name="left_attach">0</property>
<property name="top_attach">0</property>
</packing>
</child>
</object>
</child>
</object>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">1</property>
</packing>
</child>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">False</property>
</packing>
</child>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">False</property>
</packing>
</child>
<child>
<object class="GladeSignalEditor" id="signal_editor">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="events"/>
</object>
<packing>
<property name="resize">True</property>
<property name="shrink">False</property>
</packing>
</child>
</object>
<packing>
<property name="expand">True</property>
<property name="fill">True</property>
<property name="position">0</property>
</packing>
</child>
</template>
</interface>

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* glade-clipboard.c - An object for handling Cut/Copy/Paste. * glade-clipboard.c - An object for handling Cut/Copy/Paste.
* *
@ -19,7 +18,7 @@
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA. * USA.
*/ */
@ -34,47 +33,54 @@
#include "glade-displayable-values.h" #include "glade-displayable-values.h"
struct _GladeParamSpecObjects { struct _GladeParamSpecObjects
GParamSpec parent_instance; {
GParamSpec parent_instance;
GType type; /* Object or interface type accepted
* in this object list. GType type; /* Object or interface type accepted
*/ * in this object list.
*/
}; };
typedef struct _GladeStockItem { typedef struct _GladeStockItem
gchar *value_name; {
gchar *value_nick; gchar *value_name;
gchar *clean_name; gchar *value_nick;
gint value; gchar *clean_name;
gint value;
} GladeStockItem; } GladeStockItem;
/************************************************************ /************************************************************
* Auto-generate the enum type for stock properties * * Auto-generate the enum type for stock properties *
************************************************************/ ************************************************************/
/* Hard-coded list of stock images (and displayable translations) from gtk+ that are not stock "items" */ /* Hard-coded list of stock images (and displayable translations) from gtk+ that are not stock "items" */
static const gchar *builtin_stock_images[] = static const gchar *builtin_stock_images[] = {
{ "gtk-dialog-authentication", /* GTK_STOCK_DIALOG_AUTHENTICATION */
"gtk-dialog-authentication", /* GTK_STOCK_DIALOG_AUTHENTICATION */ "gtk-dnd", /* GTK_STOCK_DND */
"gtk-dnd", /* GTK_STOCK_DND */ "gtk-dnd-multiple", /* GTK_STOCK_DND_MULTIPLE */
"gtk-dnd-multiple", /* GTK_STOCK_DND_MULTIPLE */ "gtk-color-picker", /* GTK_STOCK_COLOR_PICKER */
"gtk-color-picker", /* GTK_STOCK_COLOR_PICKER */ "gtk-directory", /* GTK_STOCK_DIRECTORY */
"gtk-directory", /* GTK_STOCK_DIRECTORY */ "gtk-file", /* GTK_STOCK_FILE */
"gtk-file", /* GTK_STOCK_FILE */ "gtk-missing-image" /* GTK_STOCK_MISSING_IMAGE */
"gtk-missing-image" /* GTK_STOCK_MISSING_IMAGE */
}; };
static const gchar *builtin_stock_displayables[] = static const gchar *builtin_stock_displayables[] = {
{ /* GTK_STOCK_DIALOG_AUTHENTICATION */
N_("Authentication"), /* GTK_STOCK_DIALOG_AUTHENTICATION */ N_("Authentication"),
N_("DnD"), /* GTK_STOCK_DND */ /* GTK_STOCK_DND */
N_("DnD Multiple"), /* GTK_STOCK_DND_MULTIPLE */ N_("Drag and Drop"),
N_("Color Picker"), /* GTK_STOCK_COLOR_PICKER */ /* GTK_STOCK_DND_MULTIPLE */
N_("Directory"), /* GTK_STOCK_DIRECTORY */ N_("Drag and Drop Multiple"),
N_("File"), /* GTK_STOCK_FILE */ /* GTK_STOCK_COLOR_PICKER */
N_("Missing Image") /* GTK_STOCK_MISSING_IMAGE */ N_("Color Picker"),
/* GTK_STOCK_DIRECTORY */
N_("Directory"),
/* GTK_STOCK_FILE */
N_("File"),
/* GTK_STOCK_MISSING_IMAGE */
N_("Missing Image")
}; };
static GSList *stock_prefixs = NULL; static GSList *stock_prefixs = NULL;
@ -83,254 +89,306 @@ static gboolean stock_prefixs_done = FALSE;
/* FIXME: func needs documentation /* FIXME: func needs documentation
*/ */
void void
glade_standard_stock_append_prefix (const gchar *prefix) glade_standard_stock_append_prefix (const gchar * prefix)
{ {
if (stock_prefixs_done) if (stock_prefixs_done)
{ {
g_warning ("glade_standard_stock_append_prefix should be used in catalog init-function"); g_warning
return; ("glade_standard_stock_append_prefix should be used in catalog init-function");
} return;
}
stock_prefixs = g_slist_append (stock_prefixs, g_strdup (prefix));
stock_prefixs = g_slist_append (stock_prefixs, g_strdup (prefix));
} }
static GladeStockItem * static GladeStockItem *
new_from_values (const gchar *name, const gchar *nick, gint value) new_from_values (const gchar * name, const gchar * nick, gint value)
{ {
GladeStockItem *new_gsi = NULL; GladeStockItem *new_gsi = NULL;
gchar *clean_name; gchar *clean_name;
size_t len = 0; size_t len = 0;
guint i = 0; guint i = 0;
guint j = 0; guint j = 0;
new_gsi = (GladeStockItem *) g_malloc0 (sizeof(GladeStockItem));
new_gsi->value_name = g_strdup (name); new_gsi = (GladeStockItem *) g_malloc0 (sizeof (GladeStockItem));
new_gsi->value_nick = g_strdup (nick);
new_gsi->value = value; new_gsi->value_name = g_strdup (name);
new_gsi->value_nick = g_strdup (nick);
new_gsi->value = value;
clean_name = g_strdup (name); clean_name = g_strdup (name);
len = strlen (clean_name); len = strlen (clean_name);
while (i+j <= len) while (i + j <= len)
{ {
if (clean_name[i+j] == '_') if (clean_name[i + j] == '_')
j++; j++;
clean_name[i] = clean_name[i+j];
i++;
}
new_gsi->clean_name = g_utf8_collate_key (clean_name, i - j); clean_name[i] = clean_name[i + j];
i++;
g_free (clean_name); }
return new_gsi; new_gsi->clean_name = g_utf8_collate_key (clean_name, i - j);
g_free (clean_name);
return new_gsi;
} }
static gint static gint
compare_two_gsi (gconstpointer a, gconstpointer b) compare_two_gsi (gconstpointer a, gconstpointer b)
{ {
GladeStockItem *gsi1 = (GladeStockItem *) a; GladeStockItem *gsi1 = (GladeStockItem *) a;
GladeStockItem *gsi2 = (GladeStockItem *) b; GladeStockItem *gsi2 = (GladeStockItem *) b;
return strcmp (gsi1->clean_name, gsi2->clean_name); return strcmp (gsi1->clean_name, gsi2->clean_name);
} }
static GArray * static GArray *
list_stock_items (gboolean include_images) list_stock_items (gboolean include_images)
{ {
GtkStockItem item; GtkStockItem item;
GSList *l = NULL, *stock_list = NULL, *p = NULL; GSList *l = NULL, *stock_list = NULL, *p = NULL;
gchar *stock_id = NULL, *prefix = NULL; gchar *stock_id = NULL, *prefix = NULL;
gint stock_enum = 0, i = 0; gint stock_enum = 0, i = 0;
GEnumValue value; GEnumValue value;
GArray *values = NULL; GArray *values = NULL;
GladeStockItem *gsi; GladeStockItem *gsi;
GSList *gsi_list = NULL; GSList *gsi_list = NULL;
GSList *gsi_list_list = NULL; GSList *gsi_list_list = NULL;
stock_list = g_slist_reverse (gtk_stock_list_ids ()); if (gdk_display_get_default () == NULL)
{
values = g_array_sized_new (TRUE, TRUE, sizeof (GEnumValue), 1);
values = g_array_sized_new (TRUE, TRUE, sizeof (GEnumValue), value.value = 0;
g_slist_length (stock_list)); value.value_name = "dummy";
value.value_nick = "Dummy";
g_array_append_val (values, value);
/* We want gtk+ stock items to appear first */ return values;
if ((stock_prefixs && strcmp (stock_prefixs->data, "gtk-")) || }
stock_prefixs == NULL)
stock_prefixs = g_slist_prepend (stock_prefixs, g_strdup ("gtk-"));
for (p = stock_prefixs; p; p = g_slist_next (p))
{
prefix = p->data;
for (l = stock_list; l; l = g_slist_next (l)) G_GNUC_BEGIN_IGNORE_DEPRECATIONS
{ stock_list = g_slist_reverse (gtk_stock_list_ids ());
stock_id = l->data; G_GNUC_END_IGNORE_DEPRECATIONS
if (g_str_has_prefix (stock_id, prefix) == FALSE ||
gtk_stock_lookup (stock_id, &item) == FALSE )
continue;
gsi = new_from_values (item.label, stock_id, stock_enum++ ); values = g_array_sized_new (TRUE, TRUE, sizeof (GEnumValue),
gsi_list = g_slist_insert_sorted (gsi_list, gsi, (GCompareFunc) compare_two_gsi); g_slist_length (stock_list));
}
gsi_list_list = g_slist_append (gsi_list_list, gsi_list); /* We want gtk+ stock items to appear first */
gsi_list = NULL; if ((stock_prefixs && strcmp (stock_prefixs->data, "gtk-")) ||
stock_prefixs == NULL)
stock_prefixs = g_slist_prepend (stock_prefixs, g_strdup ("gtk-"));
/* Images are appended after the gtk+ group of items */ for (p = stock_prefixs; p; p = g_slist_next (p))
if (include_images && !strcmp (prefix, "gtk-")) {
{ prefix = p->data;
for (i = 0; i < G_N_ELEMENTS (builtin_stock_images); i++)
{
gsi = new_from_values (builtin_stock_images[i], builtin_stock_images[i], stock_enum++);
gsi_list = g_slist_insert_sorted (gsi_list, gsi, (GCompareFunc) compare_two_gsi);
}
gsi_list_list = g_slist_append (gsi_list_list, gsi_list);
gsi_list = NULL;
}
}
for (p = gsi_list_list; p; p = g_slist_next (p)) for (l = stock_list; l; l = g_slist_next (l))
{ {
stock_id = l->data;
for (l = (GSList *) p->data; l; l = g_slist_next (l)) G_GNUC_BEGIN_IGNORE_DEPRECATIONS
{ if (g_str_has_prefix (stock_id, prefix) == FALSE ||
gsi = (GladeStockItem *) l->data; gtk_stock_lookup (stock_id, &item) == FALSE)
value.value = gsi->value; continue;
value.value_name = g_strdup (gsi->value_name); G_GNUC_END_IGNORE_DEPRECATIONS
value.value_nick = g_strdup (gsi->value_nick);
values = g_array_append_val (values, value);
g_free (gsi->value_nick); gsi = new_from_values (item.label, stock_id, stock_enum++);
g_free (gsi->value_name); gsi_list =
g_free (gsi->clean_name); g_slist_insert_sorted (gsi_list, gsi,
g_free (gsi); (GCompareFunc) compare_two_gsi);
} }
g_slist_free ((GSList *) p->data);
}
g_slist_free (gsi_list_list); gsi_list_list = g_slist_append (gsi_list_list, gsi_list);
gsi_list = NULL;
stock_prefixs_done = TRUE; /* Images are appended after the gtk+ group of items */
g_slist_free (stock_list); if (include_images && !strcmp (prefix, "gtk-"))
{
for (i = 0; i < G_N_ELEMENTS (builtin_stock_images); i++)
{
gsi =
new_from_values (builtin_stock_images[i],
builtin_stock_images[i], stock_enum++);
gsi_list =
g_slist_insert_sorted (gsi_list, gsi,
(GCompareFunc) compare_two_gsi);
}
gsi_list_list = g_slist_append (gsi_list_list, gsi_list);
gsi_list = NULL;
}
}
return values; for (p = gsi_list_list; p; p = g_slist_next (p))
{
for (l = (GSList *) p->data; l; l = g_slist_next (l))
{
gsi = (GladeStockItem *) l->data;
value.value = gsi->value;
value.value_name = g_strdup (gsi->value_name);
value.value_nick = g_strdup (gsi->value_nick);
values = g_array_append_val (values, value);
g_free (gsi->value_nick);
g_free (gsi->value_name);
g_free (gsi->clean_name);
g_free (gsi);
}
g_slist_free ((GSList *) p->data);
}
g_slist_free (gsi_list_list);
stock_prefixs_done = TRUE;
g_slist_free_full (stock_list, g_free);
return values;
} }
static gchar * static gchar *
clean_stock_name (const gchar *name) clean_stock_name (const gchar * name)
{ {
gchar *clean_name, *str; gchar *clean_name, *str;
size_t len = 0; size_t len = 0;
guint i = 0; guint i = 0;
guint j = 0; guint j = 0;
g_assert (name && name[0]);
str = g_strdup (name); g_assert (name && name[0]);
len = strlen (str);
while (i+j <= len) str = g_strdup (name);
{ len = strlen (str);
if (str[i+j] == '_')
j++;
str[i] = str[i+j];
i++;
}
clean_name = g_strndup (str, i - j);
g_free (str);
return clean_name; while (i + j <= len)
{
if (str[i + j] == '_')
j++;
str[i] = str[i + j];
i++;
}
clean_name = g_strndup (str, i - j);
g_free (str);
return clean_name;
} }
GType GType
glade_standard_stock_get_type (void) glade_standard_stock_get_type (void)
{ {
static GType etype = 0; static GType etype = 0;
if (etype == 0) { if (etype == 0)
GArray *values = list_stock_items (FALSE); {
gint i, n_values = values->len; GArray *values = list_stock_items (FALSE);
GEnumValue *enum_values = (GEnumValue *)values->data; gint i, n_values = values->len;
GtkStockItem item; GEnumValue *enum_values = (GEnumValue *) values->data;
GtkStockItem item;
etype = g_enum_register_static ("GladeStock", etype = g_enum_register_static ("GladeStock",
(GEnumValue *)g_array_free (values, FALSE)); (GEnumValue *) g_array_free (values,
FALSE));
/* Register displayable by GType, i.e. after the types been created. */ if (gdk_display_get_default () == NULL)
for (i = 0; i < n_values; i++) return etype;
{
if (gtk_stock_lookup (enum_values[i].value_nick, &item)) /* Register displayable by GType, i.e. after the types been created. */
{ for (i = 0; i < n_values; i++)
gchar *clean_name = clean_stock_name (item.label); {
glade_register_translated_value (etype, enum_values[i].value_nick, clean_name); G_GNUC_BEGIN_IGNORE_DEPRECATIONS
g_free (clean_name); gboolean valid_item = gtk_stock_lookup (enum_values[i].value_nick, &item);
} G_GNUC_END_IGNORE_DEPRECATIONS
}
} if (valid_item)
return etype; {
gchar *clean_name = clean_stock_name (item.label);
if (!glade_get_displayable_value (etype, enum_values[i].value_nick))
glade_register_translated_value (etype, enum_values[i].value_nick, clean_name);
g_free (clean_name);
}
}
}
return etype;
} }
GType GType
glade_standard_stock_image_get_type (void) glade_standard_stock_image_get_type (void)
{ {
static GType etype = 0; static GType etype = 0;
if (etype == 0) { if (etype == 0)
GArray *values = list_stock_items (TRUE); {
gint i, n_values = values->len; GArray *values = list_stock_items (TRUE);
GEnumValue *enum_values = (GEnumValue *)values->data; gint i, n_values = values->len;
GtkStockItem item; GEnumValue *enum_values = (GEnumValue *) values->data;
GtkStockItem item;
etype = g_enum_register_static ("GladeStockImage", etype = g_enum_register_static ("GladeStockImage",
(GEnumValue *)g_array_free (values, FALSE)); (GEnumValue *) g_array_free (values,
FALSE));
/* Register displayable by GType, i.e. after the types been created. */ if (gdk_display_get_default () == NULL)
for (i = 0; i < n_values; i++) return etype;
{
if (gtk_stock_lookup (enum_values[i].value_nick, &item))
{
gchar *clean_name = clean_stock_name (item.label);
/* These are translated, we just cut out the mnemonic underscores */ /* Register displayable by GType, i.e. after the types been created. */
glade_register_translated_value (etype, enum_values[i].value_nick, clean_name); for (i = 0; i < n_values; i++)
g_free (clean_name); {
} G_GNUC_BEGIN_IGNORE_DEPRECATIONS
} gboolean valid_item = gtk_stock_lookup (enum_values[i].value_nick, &item);
G_GNUC_END_IGNORE_DEPRECATIONS
if (valid_item)
{
gchar *clean_name = clean_stock_name (item.label);
for (i = 0; i < G_N_ELEMENTS (builtin_stock_images); i++) /* These are translated, we just cut out the mnemonic underscores */
{ if (!glade_get_displayable_value (etype, enum_values[i].value_nick))
/* these ones are translated from glade3 */ glade_register_translated_value (etype, enum_values[i].value_nick, clean_name);
glade_register_displayable_value (etype, g_free (clean_name);
builtin_stock_images[i], GETTEXT_PACKAGE, }
builtin_stock_displayables[i]); }
}
} for (i = 0; i < G_N_ELEMENTS (builtin_stock_images); i++)
return etype; {
/* these ones are translated from glade */
if (!glade_get_displayable_value (etype, builtin_stock_images[i]))
glade_register_displayable_value (etype,
builtin_stock_images[i],
GETTEXT_PACKAGE,
builtin_stock_displayables[i]);
}
}
return etype;
} }
/**
* glade_standard_stock_spec:
*
* Returns: (transfer full): a #GParamSpec describing a list of builtin stock item
*/
GParamSpec * GParamSpec *
glade_standard_stock_spec (void) glade_standard_stock_spec (void)
{ {
return g_param_spec_enum ("stock", _("Stock"), return g_param_spec_enum ("stock", _("Stock"),
_("A builtin stock item"), _("A builtin stock item"),
GLADE_TYPE_STOCK, GLADE_TYPE_STOCK, 0, G_PARAM_READWRITE);
0, G_PARAM_READWRITE);
} }
/**
* glade_standard_stock_image_spec:
*
* Returns: (transfer full): a #GParamSpec describing a list of builtin stock image
*/
GParamSpec * GParamSpec *
glade_standard_stock_image_spec (void) glade_standard_stock_image_spec (void)
{ {
return g_param_spec_enum ("stock-image", _("Stock Image"), return g_param_spec_enum ("stock-image", _("Stock Image"),
_("A builtin stock image"), _("A builtin stock image"),
GLADE_TYPE_STOCK_IMAGE, GLADE_TYPE_STOCK_IMAGE, 0, G_PARAM_READWRITE);
0, G_PARAM_READWRITE);
} }
/**************************************************************** /****************************************************************
@ -340,81 +398,71 @@ glade_standard_stock_image_spec (void)
GType GType
glade_glist_get_type (void) glade_glist_get_type (void)
{ {
static GType type_id = 0; static GType type_id = 0;
if (!type_id) if (!type_id)
type_id = g_boxed_type_register_static type_id = g_boxed_type_register_static
("GladeGList", ("GladeGList",
(GBoxedCopyFunc) g_list_copy, (GBoxedCopyFunc) g_list_copy, (GBoxedFreeFunc) g_list_free);
(GBoxedFreeFunc) g_list_free); return type_id;
return type_id;
} }
/**************************************************************** /****************************************************************
* Built-in GladeParamSpecObjects for object list properties * * Built-in GladeParamSpecObjects for object list properties *
* (Used as a pspec to desctibe an AtkRelationSet, but can * * (Used as a pspec to describe an AtkRelationSet, but can *
* for any object list property) * * for any object list property) *
****************************************************************/ ****************************************************************/
static void static void
param_objects_init (GParamSpec *pspec) param_objects_init (GParamSpec * pspec)
{ {
GladeParamSpecObjects *ospec = GLADE_PARAM_SPEC_OBJECTS (pspec); GladeParamSpecObjects *ospec = GLADE_PARAM_SPEC_OBJECTS (pspec);
ospec->type = G_TYPE_OBJECT; ospec->type = G_TYPE_OBJECT;
} }
static void static void
param_objects_set_default (GParamSpec *pspec, param_objects_set_default (GParamSpec * pspec, GValue * value)
GValue *value)
{ {
if (value->data[0].v_pointer != NULL) if (value->data[0].v_pointer != NULL)
{ {
g_free (value->data[0].v_pointer); g_free (value->data[0].v_pointer);
} }
value->data[0].v_pointer = NULL; value->data[0].v_pointer = NULL;
} }
static gboolean static gboolean
param_objects_validate (GParamSpec *pspec, param_objects_validate (GParamSpec * pspec, GValue * value)
GValue *value)
{ {
GladeParamSpecObjects *ospec = GLADE_PARAM_SPEC_OBJECTS (pspec); GladeParamSpecObjects *ospec = GLADE_PARAM_SPEC_OBJECTS (pspec);
GList *objects, *list, *toremove = NULL; GList *objects, *list, *toremove = NULL;
GObject *object; GObject *object;
objects = value->data[0].v_pointer; objects = value->data[0].v_pointer;
for (list = objects; list; list = list->next) for (list = objects; list; list = list->next)
{ {
object = list->data; object = list->data;
if (G_TYPE_IS_INTERFACE (ospec->type) && if (!(G_OBJECT_TYPE (object) == ospec->type ||
glade_util_class_implements_interface g_type_is_a (G_OBJECT_TYPE (object), ospec->type)))
(G_OBJECT_TYPE (object), ospec->type) == FALSE) toremove = g_list_prepend (toremove, object);
toremove = g_list_prepend (toremove, object); }
else if (G_TYPE_IS_INTERFACE (ospec->type) == FALSE &&
g_type_is_a (G_OBJECT_TYPE (object),
ospec->type) == FALSE)
toremove = g_list_prepend (toremove, object);
} for (list = toremove; list; list = list->next)
{
object = list->data;
objects = g_list_remove (objects, object);
}
if (toremove)
g_list_free (toremove);
for (list = toremove; list; list = list->next) value->data[0].v_pointer = objects;
{
object = list->data;
objects = g_list_remove (objects, object);
}
if (toremove) g_list_free (toremove);
value->data[0].v_pointer = objects;
return toremove != NULL; return toremove != NULL;
} }
static gint static gint
param_objects_values_cmp (GParamSpec *pspec, param_objects_values_cmp (GParamSpec * pspec,
const GValue *value1, const GValue * value1, const GValue * value2)
const GValue *value2)
{ {
guint8 *p1 = value1->data[0].v_pointer; guint8 *p1 = value1->data[0].v_pointer;
guint8 *p2 = value2->data[0].v_pointer; guint8 *p2 = value2->data[0].v_pointer;
@ -427,160 +475,179 @@ param_objects_values_cmp (GParamSpec *pspec,
GType GType
glade_param_objects_get_type (void) glade_param_objects_get_type (void)
{ {
static GType objects_type = 0; static GType objects_type = 0;
if (objects_type == 0) if (objects_type == 0)
{ {
static /* const */ GParamSpecTypeInfo pspec_info = { static /* const */ GParamSpecTypeInfo pspec_info = {
sizeof (GladeParamSpecObjects), /* instance_size */ sizeof (GladeParamSpecObjects), /* instance_size */
16, /* n_preallocs */ 16, /* n_preallocs */
param_objects_init, /* instance_init */ param_objects_init, /* instance_init */
0xdeadbeef, /* value_type, assigned further down */ 0xdeadbeef, /* value_type, assigned further down */
NULL, /* finalize */ NULL, /* finalize */
param_objects_set_default, /* value_set_default */ param_objects_set_default, /* value_set_default */
param_objects_validate, /* value_validate */ param_objects_validate, /* value_validate */
param_objects_values_cmp, /* values_cmp */ param_objects_values_cmp, /* values_cmp */
}; };
pspec_info.value_type = GLADE_TYPE_GLIST; pspec_info.value_type = GLADE_TYPE_GLIST;
objects_type = g_param_type_register_static objects_type = g_param_type_register_static
("GladeParamObjects", &pspec_info); ("GladeParamObjects", &pspec_info);
} }
return objects_type; return objects_type;
} }
/**
* glade_param_spec_objects:
*
* Returns: (transfer full): a #GParamSpec describing a list of #GObject
*/
GParamSpec * GParamSpec *
glade_param_spec_objects (const gchar *name, glade_param_spec_objects (const gchar * name,
const gchar *nick, const gchar * nick,
const gchar *blurb, const gchar * blurb,
GType accepted_type, GType accepted_type, GParamFlags flags)
GParamFlags flags)
{ {
GladeParamSpecObjects *pspec; GladeParamSpecObjects *pspec;
pspec = g_param_spec_internal (GLADE_TYPE_PARAM_OBJECTS, pspec = g_param_spec_internal (GLADE_TYPE_PARAM_OBJECTS,
name, nick, blurb, flags); name, nick, blurb, flags);
pspec->type = accepted_type; pspec->type = accepted_type;
return G_PARAM_SPEC (pspec); return G_PARAM_SPEC (pspec);
} }
void void
glade_param_spec_objects_set_type (GladeParamSpecObjects *pspec, glade_param_spec_objects_set_type (GladeParamSpecObjects * pspec, GType type)
GType type)
{ {
pspec->type = type; pspec->type = type;
} }
GType GType
glade_param_spec_objects_get_type (GladeParamSpecObjects *pspec) glade_param_spec_objects_get_type (GladeParamSpecObjects * pspec)
{ {
return pspec->type; return pspec->type;
} }
/* This was developed for the purpose of holding a list /**
* glade_standard_objects_spec:
*
* This was developed for the purpose of holding a list
* of 'targets' in an AtkRelation (we are setting it up * of 'targets' in an AtkRelation (we are setting it up
* as a property) * as a property)
*
* Returns: (transfer full): a #GParamSpec describing a list of #GObject
*/ */
GParamSpec * GParamSpec *
glade_standard_objects_spec (void) glade_standard_objects_spec (void)
{ {
return glade_param_spec_objects ("objects", _("Objects"), return glade_param_spec_objects ("objects", _("Objects"),
_("A list of objects"), _("A list of objects"),
G_TYPE_OBJECT, G_TYPE_OBJECT, G_PARAM_READWRITE);
G_PARAM_READWRITE);
} }
/* Pixbuf Type */ /**
* glade_standard_pixbuf_spec:
*
* Returns: (transfer full): a #GParamSpec describing a #GdkPixbuf
*/
GParamSpec * GParamSpec *
glade_standard_pixbuf_spec (void) glade_standard_pixbuf_spec (void)
{ {
return g_param_spec_object ("pixbuf", _("Image File Name"), return g_param_spec_object ("pixbuf", _("Image File Name"),
_("Enter a filename, relative path or full path to " _("Enter a filename, relative path or full path to "
"load the image"), GDK_TYPE_PIXBUF, "load the image"), GDK_TYPE_PIXBUF,
G_PARAM_READWRITE); G_PARAM_READWRITE);
} }
/* GdkColor */ /**
* glade_standard_gdkcolor_spec:
*
* Returns: (transfer full): a #GParamSpec describing a #GdkColor
*/
GParamSpec * GParamSpec *
glade_standard_gdkcolor_spec (void) glade_standard_gdkcolor_spec (void)
{ {
return g_param_spec_boxed ("gdkcolor", _("GdkColor"), return g_param_spec_boxed ("gdkcolor", _("Color"),
_("A GDK color value"), GDK_TYPE_COLOR, _("A GDK color value"), GDK_TYPE_COLOR,
G_PARAM_READWRITE); G_PARAM_READWRITE);
} }
/**************************************************************** /****************************************************************
* Basic types follow * * Basic types follow *
****************************************************************/ ****************************************************************/
/**
* glade_standard_int_spec:
*
* Returns: (transfer full): a #GParamSpec describing an int
*/
GParamSpec * GParamSpec *
glade_standard_int_spec (void) glade_standard_int_spec (void)
{ {
return g_param_spec_int ("int", _("Integer"), return g_param_spec_int ("int", "Integer",
_("An integer value"), "An integer value",
G_MININT, G_MAXINT, G_MININT, G_MAXINT, 0, G_PARAM_READWRITE);
0, G_PARAM_READWRITE);
} }
/**
* glade_standard_uint_spec:
*
* Returns: (transfer full): a #GParamSpec describing an uint
*/
GParamSpec * GParamSpec *
glade_standard_uint_spec (void) glade_standard_uint_spec (void)
{ {
return g_param_spec_uint ("uint", _("Unsigned Integer"), return g_param_spec_uint ("uint", "Unsigned Integer",
_("An unsigned integer value"), "An unsigned integer value",
0, G_MAXUINT, 0, G_PARAM_READWRITE); 0, G_MAXUINT, 0, G_PARAM_READWRITE);
} }
/**
* glade_standard_string_spec:
*
* Returns: (transfer full): a #GParamSpec describing a string
*/
GParamSpec * GParamSpec *
glade_standard_string_spec (void) glade_standard_string_spec (void)
{ {
return g_param_spec_string ("string", _("String"), return g_param_spec_string ("string", _("String"),
_("An entry"), "", _("An entry"), "", G_PARAM_READWRITE);
G_PARAM_READWRITE);
} }
/**
* glade_standard_strv_spec:
*
* Returns: (transfer full): a #GParamSpec describing an array of strings
*/
GParamSpec * GParamSpec *
glade_standard_strv_spec (void) glade_standard_strv_spec (void)
{ {
return g_param_spec_boxed ("strv", _("Strv"), return g_param_spec_boxed ("strv", "Strv",
_("String array"), "String array", G_TYPE_STRV, G_PARAM_READWRITE);
G_TYPE_STRV,
G_PARAM_READWRITE);
} }
/**
* glade_standard_float_spec:
*
* Returns: (transfer full): a #GParamSpec describing a float
*/
GParamSpec * GParamSpec *
glade_standard_float_spec (void) glade_standard_float_spec (void)
{ {
return g_param_spec_float ("float", _("Float"), return g_param_spec_float ("float", "Float",
_("A floating point entry"), "A floating point entry",
0.0F, G_MAXFLOAT, 0.0F, 0.0F, G_MAXFLOAT, 0.0F, G_PARAM_READWRITE);
G_PARAM_READWRITE);
} }
/**
* glade_standard_boolean_spec:
*
* Returns: (transfer full): a #GParamSpec describing a boolean
*/
GParamSpec * GParamSpec *
glade_standard_boolean_spec (void) glade_standard_boolean_spec (void)
{ {
return g_param_spec_boolean ("boolean", _("Boolean"), return g_param_spec_boolean ("boolean", "Boolean",
_("A boolean value"), FALSE, "A boolean value", FALSE, G_PARAM_READWRITE);
G_PARAM_READWRITE);
}
GType
glade_item_appearance_get_type (void)
{
static GType etype = 0;
if (etype == 0)
{
static const GEnumValue values[] = {
{ GLADE_ITEM_ICON_AND_LABEL, "GLADE_ITEM_ICON_AND_LABEL", "icon-and-label" },
{ GLADE_ITEM_ICON_ONLY, "GLADE_ITEM_ICON_ONLY", "icon-only" },
{ GLADE_ITEM_LABEL_ONLY, "GLADE_ITEM_LABEL_ONLY", "label-only" },
{ 0, NULL, NULL }
};
etype = g_enum_register_static ("GladeItemAppearance", values);
}
return etype;
} }

View File

@ -1,4 +1,27 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /*
* 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__
@ -12,9 +35,8 @@ typedef struct _GladeParamSpecObjects GladeParamSpecObjects;
#define GLADE_TYPE_STOCK (glade_standard_stock_get_type()) #define GLADE_TYPE_STOCK (glade_standard_stock_get_type())
#define GLADE_TYPE_STOCK_IMAGE (glade_standard_stock_image_get_type()) #define GLADE_TYPE_STOCK_IMAGE (glade_standard_stock_image_get_type())
#define GLADE_TYPE_GLIST (glade_glist_get_type()) #define GLADE_TYPE_GLIST (glade_glist_get_type())
#define GLADE_TYPE_PARAM_OBJECTS (glade_param_objects_get_type()) #define GLADE_TYPE_PARAM_OBJECTS (glade_param_objects_get_type())
#define GLADE_TYPE_ITEM_APPEARANCE (glade_item_appearance_get_type())
#define GLADE_IS_STOCK(pspec) \ #define GLADE_IS_STOCK(pspec) \
(G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GLADE_TYPE_STOCK)) (G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GLADE_TYPE_STOCK))
@ -33,16 +55,15 @@ GType glade_standard_stock_get_type (void) G_GNUC_CONST;
GType glade_standard_stock_image_get_type (void) G_GNUC_CONST; GType glade_standard_stock_image_get_type (void) G_GNUC_CONST;
GType glade_glist_get_type (void) G_GNUC_CONST; GType glade_glist_get_type (void) G_GNUC_CONST;
GType glade_param_objects_get_type (void) G_GNUC_CONST; GType glade_param_objects_get_type (void) G_GNUC_CONST;
GType glade_item_appearance_get_type (void) G_GNUC_CONST;
GParamSpec *glade_param_spec_objects (const gchar *name, GParamSpec *glade_param_spec_objects (const gchar *name,
const gchar *nick, const gchar *nick,
const gchar *blurb, const gchar *blurb,
GType accepted_type, GType accepted_type,
GParamFlags flags); GParamFlags flags);
void glade_param_spec_objects_set_type (GladeParamSpecObjects *pspec, void glade_param_spec_objects_set_type (GladeParamSpecObjects *pspec,
GType type); GType type);
GType glade_param_spec_objects_get_type (GladeParamSpecObjects *pspec); GType glade_param_spec_objects_get_type (GladeParamSpecObjects *pspec);
GParamSpec *glade_standard_pixbuf_spec (void); GParamSpec *glade_standard_pixbuf_spec (void);

File diff suppressed because it is too large Load Diff

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* Copyright (C) 2001 Ximian, Inc. * Copyright (C) 2001 Ximian, Inc.
* Copyright (C) 2004 Imendio AB * Copyright (C) 2004 Imendio AB
@ -43,39 +42,27 @@ typedef struct _GladeWidgetGroup GladeWidgetGroup;
* @name: The name of the catalog * @name: The name of the catalog
* *
* Called once at glade startup time for every catalog, catalogs * Called once at glade startup time for every catalog, catalogs
* are initialized in order of dependancies. * are initialized in order of dependencies.
*/ */
typedef void (*GladeCatalogInitFunc) (const gchar *name); typedef void (*GladeCatalogInitFunc) (const gchar *name);
/**
* GladeProjectConvertFunc:
* @project: A #GladeProject
* @new_format: The format to convert @project to
*
* Generally format transperency is implemented at load/save time,
* but if some objects need to be setup differently, or some new
* objects created (like real GtkAdjustment objects for old inline
* property values) this is the place to do those things, be careful
* to use the GladeCommand api because conversions are undoable.
*
* Returns: FALSE if any errors occurred during the conversion.
*/
typedef gboolean (*GladeProjectConvertFunc) (GladeProject *project,
GladeProjectFormat new_format);
typedef struct { typedef struct {
gint major; gint major;
gint minor; gint minor;
} GladeTargetableVersion; } GladeTargetableVersion;
void glade_catalog_add_path (const gchar *path);
void glade_catalog_remove_path (const gchar *path);
const GList *glade_catalog_get_extra_paths (void);
const GList *glade_catalog_load_all (void); const GList *glade_catalog_load_all (void);
G_CONST_RETURN gchar *glade_catalog_get_name (GladeCatalog *catalog); const gchar *glade_catalog_get_name (GladeCatalog *catalog);
G_CONST_RETURN gchar *glade_catalog_get_icon_prefix(GladeCatalog *catalog); const gchar *glade_catalog_get_prefix (GladeCatalog *catalog);
G_CONST_RETURN gchar *glade_catalog_get_domain (GladeCatalog *catalog); const gchar *glade_catalog_get_icon_prefix(GladeCatalog *catalog);
G_CONST_RETURN gchar *glade_catalog_get_book (GladeCatalog *catalog); const gchar *glade_catalog_get_domain (GladeCatalog *catalog);
const gchar *glade_catalog_get_book (GladeCatalog *catalog);
GList *glade_catalog_get_targets (GladeCatalog *catalog); GList *glade_catalog_get_targets (GladeCatalog *catalog);
@ -99,14 +86,6 @@ gboolean glade_widget_group_get_expanded (GladeWidgetGroup *group);
const GList *glade_widget_group_get_adaptors (GladeWidgetGroup *group); const GList *glade_widget_group_get_adaptors (GladeWidgetGroup *group);
gboolean glade_catalog_convert_project (GladeCatalog *catalog,
GladeProject *project,
GladeProjectFormat new_format);
gboolean glade_catalog_supports_libglade (GladeCatalog *catalog);
gboolean glade_catalog_supports_gtkbuilder (GladeCatalog *catalog);
G_END_DECLS G_END_DECLS
#endif /* __GLADE_CATALOG_H__ */ #endif /* __GLADE_CATALOG_H__ */

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* Copyright (C) 2008 Tristan Van Berkom. * Copyright (C) 2008 Tristan Van Berkom.
* *
@ -24,46 +23,59 @@
#include "glade-cell-renderer-icon.h" #include "glade-cell-renderer-icon.h"
#include "glade-marshallers.h" #include "glade-marshallers.h"
static void glade_cell_renderer_icon_get_property (GObject *object, static void glade_cell_renderer_icon_get_property (GObject *object,
guint param_id, guint param_id,
GValue *value, GValue *value,
GParamSpec *pspec); GParamSpec *pspec);
static void glade_cell_renderer_icon_set_property (GObject *object, static void glade_cell_renderer_icon_set_property (GObject *object,
guint param_id, guint param_id,
const GValue *value, const GValue *value,
GParamSpec *pspec); GParamSpec *pspec);
static gboolean glade_cell_renderer_icon_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
const GdkRectangle *background_area,
const GdkRectangle *cell_area,
GtkCellRendererState flags);
static gboolean glade_cell_renderer_icon_activate (GtkCellRenderer *cell, typedef struct _GladeCellRendererIconPrivate
GdkEvent *event, {
GtkWidget *widget, guint active : 1;
const gchar *path, guint activatable : 1;
GdkRectangle *background_area, } GladeCellRendererIconPrivate;
GdkRectangle *cell_area,
GtkCellRendererState flags);
enum { enum
{
ACTIVATE, ACTIVATE,
LAST_SIGNAL LAST_SIGNAL
}; };
enum { enum
{
PROP_0, PROP_0,
PROP_ACTIVATABLE, PROP_ACTIVATABLE,
PROP_ACTIVE, PROP_ACTIVE,
N_PROPERTIES
}; };
static GParamSpec *properties[N_PROPERTIES];
static guint icon_cell_signals[LAST_SIGNAL] = { 0 }; static guint icon_cell_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE (GladeCellRendererIcon, glade_cell_renderer_icon, GTK_TYPE_CELL_RENDERER_PIXBUF) G_DEFINE_TYPE_WITH_PRIVATE (GladeCellRendererIcon,
glade_cell_renderer_icon,
GTK_TYPE_CELL_RENDERER_PIXBUF)
static void static void glade_cell_renderer_icon_init (GladeCellRendererIcon *cellicon)
glade_cell_renderer_icon_init (GladeCellRendererIcon *cellicon)
{ {
cellicon->activatable = TRUE; GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (cellicon);
cellicon->active = FALSE;
g_object_set (G_OBJECT (cellicon), "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE, NULL); priv->activatable = TRUE;
priv->active = FALSE;
g_object_set (G_OBJECT (cellicon), "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE,
NULL);
} }
static void static void
@ -76,74 +88,76 @@ glade_cell_renderer_icon_class_init (GladeCellRendererIconClass *class)
object_class->set_property = glade_cell_renderer_icon_set_property; object_class->set_property = glade_cell_renderer_icon_set_property;
cell_class->activate = glade_cell_renderer_icon_activate; cell_class->activate = glade_cell_renderer_icon_activate;
g_object_class_install_property (object_class, properties[PROP_ACTIVE] =
PROP_ACTIVE, g_param_spec_boolean ("active", "Icon state",
g_param_spec_boolean ("active", "Icon state", "The icon state of the button",
"The icon state of the button", FALSE,
FALSE, G_PARAM_READABLE | G_PARAM_WRITABLE);
G_PARAM_READABLE | G_PARAM_WRITABLE));
properties[PROP_ACTIVATABLE] =
g_object_class_install_property (object_class, g_param_spec_boolean ("activatable",
PROP_ACTIVATABLE, "Activatable",
g_param_spec_boolean ("activatable", "Activatable", "The icon button can be activated",
"The icon button can be activated", TRUE,
TRUE, G_PARAM_READABLE | G_PARAM_WRITABLE);
G_PARAM_READABLE | G_PARAM_WRITABLE));
/* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
icon_cell_signals[ACTIVATE] = icon_cell_signals[ACTIVATE] =
g_signal_new ("activate", g_signal_new ("activate",
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST, G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GladeCellRendererIconClass, activate), G_STRUCT_OFFSET (GladeCellRendererIconClass, activate),
NULL, NULL, NULL, NULL,
glade_marshal_VOID__STRING, _glade_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
G_TYPE_NONE, 1,
G_TYPE_STRING);
} }
static void static void
glade_cell_renderer_icon_get_property (GObject *object, glade_cell_renderer_icon_get_property (GObject *object,
guint param_id, guint param_id,
GValue *value, GValue *value,
GParamSpec *pspec) GParamSpec *pspec)
{ {
GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object); GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object);
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (cellicon);
switch (param_id) switch (param_id)
{ {
case PROP_ACTIVE: case PROP_ACTIVE:
g_value_set_boolean (value, cellicon->active); g_value_set_boolean (value, priv->active);
break; break;
case PROP_ACTIVATABLE: case PROP_ACTIVATABLE:
g_value_set_boolean (value, cellicon->activatable); g_value_set_boolean (value, priv->activatable);
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break; break;
} }
} }
static void static void
glade_cell_renderer_icon_set_property (GObject *object, glade_cell_renderer_icon_set_property (GObject *object,
guint param_id, guint param_id,
const GValue *value, const GValue *value,
GParamSpec *pspec) GParamSpec *pspec)
{ {
GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object); GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object);
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (cellicon);
switch (param_id) switch (param_id)
{ {
case PROP_ACTIVE: case PROP_ACTIVE:
cellicon->active = g_value_get_boolean (value); priv->active = g_value_get_boolean (value);
break; break;
case PROP_ACTIVATABLE: case PROP_ACTIVATABLE:
cellicon->activatable = g_value_get_boolean (value); priv->activatable = g_value_get_boolean (value);
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break; break;
} }
} }
@ -154,18 +168,18 @@ glade_cell_renderer_icon_new (void)
} }
static gint static gint
glade_cell_renderer_icon_activate (GtkCellRenderer *cell, glade_cell_renderer_icon_activate (GtkCellRenderer *cell,
GdkEvent *event, GdkEvent *event,
GtkWidget *widget, GtkWidget *widget,
const gchar *path, const gchar *path,
GdkRectangle *background_area, const GdkRectangle *background_area,
GdkRectangle *cell_area, const GdkRectangle *cell_area,
GtkCellRendererState flags) GtkCellRendererState flags)
{ {
GladeCellRendererIcon *cellicon; GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (cell);
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (cellicon);
cellicon = GLADE_CELL_RENDERER_ICON (cell);
if (cellicon->activatable) if (priv->activatable)
{ {
g_signal_emit (cell, icon_cell_signals[ACTIVATE], 0, path); g_signal_emit (cell, icon_cell_signals[ACTIVATE], 0, path);
return TRUE; return TRUE;
@ -177,37 +191,49 @@ glade_cell_renderer_icon_activate (GtkCellRenderer *cell,
gboolean gboolean
glade_cell_renderer_icon_get_active (GladeCellRendererIcon *icon) glade_cell_renderer_icon_get_active (GladeCellRendererIcon *icon)
{ {
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (icon);
g_return_val_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon), FALSE); g_return_val_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon), FALSE);
return icon->active; return priv->active;
} }
void void
glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon, glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon,
gboolean setting) gboolean setting)
{ {
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (icon);
g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon)); g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon));
g_object_set (icon, "active", setting ? TRUE : FALSE, NULL); if (priv->active != setting)
{
priv->active = setting ? TRUE : FALSE;
g_object_notify_by_pspec (G_OBJECT (icon), properties[PROP_ACTIVE]);
}
} }
gboolean gboolean
glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon *icon) glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon *icon)
{ {
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (icon);
g_return_val_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon), FALSE); g_return_val_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon), FALSE);
return icon->activatable; return priv->activatable;
} }
void void
glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon, glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon,
gboolean setting) gboolean setting)
{ {
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (icon);
g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon)); g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon));
if (icon->activatable != setting) if (priv->activatable != setting)
{ {
icon->activatable = setting ? TRUE : FALSE; priv->activatable = setting ? TRUE : FALSE;
g_object_notify (G_OBJECT (icon), "activatable"); g_object_notify_by_pspec (G_OBJECT (icon), properties[PROP_ACTIVATABLE]);
} }
} }

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* Copyright (C) 2010 Tristan Van Berkom. * Copyright (C) 2010 Tristan Van Berkom.
* *
@ -28,43 +27,26 @@
G_BEGIN_DECLS G_BEGIN_DECLS
#define GLADE_TYPE_CELL_RENDERER_ICON glade_cell_renderer_icon_get_type ()
#define GLADE_TYPE_CELL_RENDERER_ICON (glade_cell_renderer_icon_get_type ()) G_DECLARE_DERIVABLE_TYPE (GladeCellRendererIcon, glade_cell_renderer_icon, GLADE, CELL_RENDERER_ICON, GtkCellRendererPixbuf)
#define GLADE_CELL_RENDERER_ICON(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GLADE_TYPE_CELL_RENDERER_ICON, GladeCellRendererIcon))
#define GLADE_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GLADE_TYPE_CELL_RENDERER_ICON, GladeCellRendererIconClass))
#define GLADE_IS_CELL_RENDERER_ICON(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GLADE_TYPE_CELL_RENDERER_ICON))
#define GLADE_IS_CELL_RENDERER_ICON_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GLADE_TYPE_CELL_RENDERER_ICON))
#define GLADE_CELL_RENDERER_ICON_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GLADE_TYPE_CELL_RENDERER_ICON, GladeCellRendererIconClass))
typedef struct _GladeCellRendererIcon GladeCellRendererIcon;
typedef struct _GladeCellRendererIconClass GladeCellRendererIconClass;
struct _GladeCellRendererIcon
{
GtkCellRendererPixbuf parent;
guint active : 1;
guint activatable : 1;
};
struct _GladeCellRendererIconClass struct _GladeCellRendererIconClass
{ {
GtkCellRendererPixbufClass parent_class; GtkCellRendererPixbufClass parent_class;
void (* activate) (GladeCellRendererIcon *cell_renderer_icon, void (* activate) (GladeCellRendererIcon *cell_renderer_icon,
const gchar *path); const gchar *path);
}; };
GType glade_cell_renderer_icon_get_type (void) G_GNUC_CONST;
GtkCellRenderer *glade_cell_renderer_icon_new (void); GtkCellRenderer *glade_cell_renderer_icon_new (void);
gboolean glade_cell_renderer_icon_get_active (GladeCellRendererIcon *icon); gboolean glade_cell_renderer_icon_get_active (GladeCellRendererIcon *icon);
void glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon, void glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon,
gboolean setting); gboolean setting);
gboolean glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon *icon); gboolean glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon *icon);
void glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon, void glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon,
gboolean setting); gboolean setting);
G_END_DECLS G_END_DECLS

View File

@ -1,4 +1,3 @@
/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/* /*
* glade-clipboard.c - An object for handling Cut/Copy/Paste. * glade-clipboard.c - An object for handling Cut/Copy/Paste.
* *
@ -19,7 +18,7 @@
* *
* You should have received a copy of the GNU General Public License * You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software * along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA. * USA.
*/ */
@ -41,92 +40,83 @@
#include "glade-placeholder.h" #include "glade-placeholder.h"
#include "glade-project.h" #include "glade-project.h"
typedef struct _GladeClipboardPrivate
{
GList *widgets; /* A list of GladeWidget's on the clipboard */
gboolean has_selection; /* TRUE if clipboard has selection */
} GladeClipboardPrivate;
enum enum
{ {
PROP_0, PROP_0,
PROP_HAS_SELECTION PROP_HAS_SELECTION,
N_PROPERTIES
}; };
static GParamSpec *properties[N_PROPERTIES];
G_DEFINE_TYPE_WITH_PRIVATE (GladeClipboard, glade_clipboard, G_TYPE_OBJECT)
static void static void
glade_project_get_property (GObject *object, glade_project_get_property (GObject *object,
guint prop_id, guint prop_id,
GValue *value, GValue *value,
GParamSpec *pspec) GParamSpec *pspec)
{ {
GladeClipboard *clipboard = GLADE_CLIPBOARD (object); GladeClipboard *clipboard = GLADE_CLIPBOARD (object);
GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
switch (prop_id) switch (prop_id)
{ {
case PROP_HAS_SELECTION: case PROP_HAS_SELECTION:
g_value_set_boolean (value, clipboard->has_selection); g_value_set_boolean (value, priv->has_selection);
break; break;
default: default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec); G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break; break;
} }
} }
static void static void
glade_clipboard_class_init (GladeClipboardClass *klass) glade_clipboard_class_init (GladeClipboardClass * klass)
{ {
GObjectClass *object_class; GObjectClass *object_class;
object_class = G_OBJECT_CLASS (klass); object_class = G_OBJECT_CLASS (klass);
object_class->get_property = glade_project_get_property; object_class->get_property = glade_project_get_property;
g_object_class_install_property (object_class, properties[PROP_HAS_SELECTION] =
PROP_HAS_SELECTION, g_param_spec_boolean ("has-selection",
g_param_spec_boolean ("has-selection", "Has Selection",
"Has Selection", "Whether clipboard has a selection of items to paste",
"Whether clipboard has a selection of items to paste", FALSE,
FALSE, G_PARAM_READABLE);
G_PARAM_READABLE));
/* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
} }
static void static void
glade_clipboard_init (GladeClipboard *clipboard) glade_clipboard_init (GladeClipboard *clipboard)
{ {
clipboard->widgets = NULL; GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
clipboard->selection = NULL;
clipboard->has_selection = FALSE;
}
GType priv->widgets = NULL;
glade_clipboard_get_type (void) priv->has_selection = FALSE;
{
static GType type = 0;
if (!type) {
static const GTypeInfo info = {
sizeof (GladeClipboardClass),
(GBaseInitFunc) NULL,
(GBaseFinalizeFunc) NULL,
(GClassInitFunc) glade_clipboard_class_init,
(GClassFinalizeFunc) NULL,
NULL,
sizeof (GladeClipboard),
0,
(GInstanceInitFunc) glade_clipboard_init
};
type = g_type_register_static (G_TYPE_OBJECT,
"GladeClipboard", &info, 0);
}
return type;
} }
static void static void
glade_clipboard_set_has_selection (GladeClipboard *clipboard, gboolean has_selection) glade_clipboard_set_has_selection (GladeClipboard *clipboard,
gboolean has_selection)
{ {
g_assert (GLADE_IS_CLIPBOARD (clipboard)); GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
if (clipboard->has_selection != has_selection) if (priv->has_selection != has_selection)
{ {
clipboard->has_selection = has_selection; priv->has_selection = has_selection;
g_object_notify (G_OBJECT (clipboard), "has-selection"); g_object_notify_by_pspec (G_OBJECT (clipboard), properties[PROP_HAS_SELECTION]);
} }
} }
@ -137,13 +127,30 @@ glade_clipboard_set_has_selection (GladeClipboard *clipboard, gboolean has_sele
* Returns: TRUE if this clipboard has selected items to paste. * Returns: TRUE if this clipboard has selected items to paste.
*/ */
gboolean gboolean
glade_clipboard_get_has_selection (GladeClipboard *clipboard) glade_clipboard_get_has_selection (GladeClipboard *clipboard)
{ {
g_assert (GLADE_IS_CLIPBOARD (clipboard)); GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
return clipboard->has_selection; g_return_val_if_fail (GLADE_IS_CLIPBOARD (clipboard), FALSE);
return priv->has_selection;
} }
/**
* glade_clipboard_widgets:
* @clipboard: a #GladeClipboard
*
* Returns: (element-type GladeWidget) (transfer none): a #GList of #GladeWidgets
*/
GList *
glade_clipboard_widgets (GladeClipboard *clipboard)
{
GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
g_return_val_if_fail (GLADE_IS_CLIPBOARD (clipboard), NULL);
return priv->widgets;
}
/** /**
* glade_clipboard_new: * glade_clipboard_new:
@ -153,13 +160,13 @@ glade_clipboard_get_has_selection (GladeClipboard *clipboard)
GladeClipboard * GladeClipboard *
glade_clipboard_new (void) glade_clipboard_new (void)
{ {
return GLADE_CLIPBOARD (g_object_new (GLADE_TYPE_CLIPBOARD, NULL)); return GLADE_CLIPBOARD (g_object_new (GLADE_TYPE_CLIPBOARD, NULL));
} }
/** /**
* glade_clipboard_add: * glade_clipboard_add:
* @clipboard: a #GladeClipboard * @clipboard: a #GladeClipboard
* @widgets: a #GList of #GladeWidgets * @widgets: (element-type GladeWidget): a #GList of #GladeWidgets
* *
* Adds @widgets to @clipboard. * Adds @widgets to @clipboard.
* This increases the reference count of each #GladeWidget in @widgets. * This increases the reference count of each #GladeWidget in @widgets.
@ -167,95 +174,51 @@ glade_clipboard_new (void)
void void
glade_clipboard_add (GladeClipboard *clipboard, GList *widgets) glade_clipboard_add (GladeClipboard *clipboard, GList *widgets)
{ {
GladeWidget *widget; GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
GList *list; GladeWidget *widget;
GList *list;
/* g_return_if_fail (GLADE_IS_CLIPBOARD (clipboard));
* Clear selection for the new widgets.
*/
glade_clipboard_selection_clear (clipboard);
/* glade_clipboard_clear (clipboard);
* Add the widgets to the list of children.
*/
for (list = widgets; list && list->data; list = list->next)
{
widget = list->data;
clipboard->widgets =
g_list_prepend (clipboard->widgets,
g_object_ref (G_OBJECT (widget)));
glade_clipboard_selection_add (clipboard, widget); /*
} * Add the widgets to the list of children.
*/
for (list = widgets; list && list->data; list = list->next)
{
widget = list->data;
priv->widgets =
g_list_prepend (priv->widgets, g_object_ref_sink (G_OBJECT (widget)));
}
glade_clipboard_set_has_selection (clipboard, TRUE);
} }
/** /**
* glade_clipboard_remove: * glade_clipboard_clear:
* @clipboard: a #GladeClipboard * @clipboard: a #GladeClipboard
* @widgets: a #GList of #GladeWidgets
* *
* Removes @widgets from @clipboard. * Removes all widgets from the @clipboard.
*/ */
void void
glade_clipboard_remove (GladeClipboard *clipboard, GList *widgets) glade_clipboard_clear (GladeClipboard *clipboard)
{ {
GladeWidget *widget; GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
GList *list; GladeWidget *widget;
GList *list;
for (list = widgets; list && list->data; list = list->next) g_return_if_fail (GLADE_IS_CLIPBOARD (clipboard));
{
widget = list->data;
clipboard->widgets = for (list = priv->widgets; list && list->data; list = list->next)
g_list_remove (clipboard->widgets, widget); {
glade_clipboard_selection_remove (clipboard, widget); widget = list->data;
g_object_unref (G_OBJECT (widget));
}
/* g_object_unref (G_OBJECT (widget));
* Only default selection if nescisary }
*/
if ((g_list_length (clipboard->selection) < 1) && priv->widgets =
(list = g_list_first (clipboard->widgets)) != NULL) (g_list_free (priv->widgets), NULL);
{
glade_clipboard_selection_add glade_clipboard_set_has_selection (clipboard, FALSE);
(clipboard, GLADE_WIDGET (list->data));
}
}
void
glade_clipboard_selection_add (GladeClipboard *clipboard,
GladeWidget *widget)
{
g_return_if_fail (GLADE_IS_CLIPBOARD (clipboard));
g_return_if_fail (GLADE_IS_WIDGET (widget));
clipboard->selection =
g_list_prepend (clipboard->selection, widget);
glade_clipboard_set_has_selection (clipboard, TRUE);
}
void
glade_clipboard_selection_remove (GladeClipboard *clipboard,
GladeWidget *widget)
{
g_return_if_fail (GLADE_IS_CLIPBOARD (clipboard));
g_return_if_fail (GLADE_IS_WIDGET (widget));
clipboard->selection =
g_list_remove (clipboard->selection, widget);
if (g_list_length (clipboard->selection) == 0)
glade_clipboard_set_has_selection (clipboard, FALSE);
}
void
glade_clipboard_selection_clear (GladeClipboard *clipboard)
{
g_return_if_fail (GLADE_IS_CLIPBOARD (clipboard));
clipboard->selection =
(g_list_free (clipboard->selection), NULL);
glade_clipboard_set_has_selection (clipboard, FALSE);
} }

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