Compare commits

...

4816 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
Yaron Shahrabani
bf924d1b77 Updated Hebrew translation 2010-12-09 14:41:11 +02:00
Yaron Shahrabani
36cc51ff56 Updated Hebrew translation 2010-12-09 12:12:49 +02:00
Yaron Shahrabani
a0e295705e Updated Hebrew translation 2010-12-07 17:29:15 +02:00
Chao-Hsiung Liao
f64644c316 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2010-12-04 19:54:32 +08:00
Johannes Schmid
5a713f9810 Fix bgo#635545 - glade3 fails to build using jhbuild 2010-11-27 12:10:01 +01:00
Johannes Schmid
bcca13ef8c gladeui: Fix previewer build 2010-11-26 15:09:27 +01:00
Gheyret T.Kenji
cd34d93077 Added UG translation 2010-11-20 11:25:42 +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
Jordi Mas
229ca02ce3 Fixes to Catalan translation 2010-11-16 19:34:46 -05: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
Peter Kragelj
c51f387fa8 Updated Slovenian translation 2010-11-14 12:08:04 +01:00
Gheyret T.Kenji
e30ac594ca Added UG translation 2010-11-14 00:04:57 +01:00
Gheyret T.Kenji
8f1057080b Added UG translation 2010-11-13 22:09:05 +01:00
Johannes Schmid
23b5457003 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-12 14:25:42 +01:00
Takeshi AIHANA
9eaad35d74 Updated Japanese translation. 2010-11-06 00:03:04 +09: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
Xandru Armesto
7070760c32 Updated asturian translation 2010-11-02 19:26:37 +01:00
Ivar Smolin
93b3cfd69d [l10n] Updated Estonian translation 2010-11-01 08:16:43 +02:00
Carles Ferrando
f0b101e85e Updated Catalan (Valencian) translation 2010-10-29 00:47:30 +01:00
Ivar Smolin
15fce214dd [l10n] Updated Estonian translation 2010-10-27 11:21:20 +03:00
Tristan Van Berkom
72be027849 Adding missing previewer program from last commit. 2010-10-17 22:23:32 +09: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
Jorge González
4f8ce04e5e Updated Spanish translation 2010-10-12 13:51:09 +02:00
Fran Diéguez
1a5a25a063 Updated Galician translations 2010-10-12 13:37:02 +02:00
Tristan Van Berkom
305e44f087 Merge branch 'master' into offscreen 2010-10-12 17:53:14 +09:00
Tristan Van Berkom
0b6f713fbb 2010-10-12 Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
Implemented preview feature for Glade.

	* gladeui/Makefile.am, gladeui/glade-previewer.c: Added program to preview
	  glade files.

	* gladeui/glade-project.[ch]: Implemented glade_project_preview() to spawn a
	  child preview process, reap it when it dies and close all previews when
	  project closes.

	* src/glade-window.c: Added toolbar button to spawn the preview.

	* gladeui/glade-xml-utils.[ch]: Added glade_xml_dump_from_context().

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added actions to preview a widget.

	* gladeui/glade-app.[ch]: Added glade_app_get_bin_dir() for resolving of previewer path.
2010-10-12 17:49:14 +09:00
Tristan Van Berkom
649c798eec * gladeui/glade-inspector.c: Fixed project leakage at dispose time. 2010-10-11 21:11:29 +09:00
Tristan Van Berkom
f671dd07b9 Merge branch 'master' into offscreen 2010-10-09 15:21:00 +09:00
Tristan Van Berkom
c3ee4f5bf9 * configure.ac: Default GTK+ version is 3.0, compiling --with-gtk=2.0 is
just a hack to enable building glade for 2.0 while it doesnt run for 3.0.
2010-10-09 15:20:35 +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
Marek Černocký
928784bdc3 Updated Czech translation 2010-10-01 11:38:32 +02:00
noch
4cc5b82909 Updated hy.po file 2010-09-27 12:34:07 +05:00
Piotr Drąg
d648025a37 Updated Polish translation 2010-09-25 16:01:01 +02:00
Lucian Adrian Grijincu
52a922cda0 Added Romanian translation
Signed-off-by: Lucian Adrian Grijincu <lucian.grijincu@gmail.com>
2010-09-24 12:53:55 +03:00
Piotr Drąg
1c0861b79d Updated Polish translation 2010-09-23 20:36:58 +02:00
Xandru Armesto
5a9f293be4 Updated asturian translation 2010-09-23 19:29:12 +02:00
Xandru Armesto
5c25fa6ab7 Added asturian language 2010-09-23 19:28:52 +02:00
Pablo Castellano
613508b97c Updated .gitignore files 2010-09-23 15:41:51 +02:00
Tristan Van Berkom
45f902d4ae * gladeui/glade-inspector.c, gladeui/glade-named-icon-chooser-dialog.c:
Some build fixes to help compile against GTK+ 3.0
2010-09-21 13:41:37 +09:00
Pablo Castellano
aab7131874 Add --with-gtk=2.0|3.0 configure flag 2010-09-21 13:23:20 +09:00
Takayuki KUSANO
1a94f123cd Fix Japanese translation 2010-09-20 22:10:50 +09:00
Takayuki KUSANO
e1c15252b6 Updated Japanese translation 2010-09-20 17:38:59 +09:00
Juan Pablo Ugarte
53797de6b5 Fixed compitation for gtk+-3.0 2010-09-19 17:24:04 -03:00
Andrea Zagli
bace149036 [l10n] Updated Italian translation 2010-09-19 11:04:27 +02:00
Peter Kragelj
566490658e Updated Slovenian translation 2010-09-13 21:41:42 +02: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
YunQiang Su
070c493458 Update Simplified Chinese help translation. 2010-09-05 03:53:41 +08:00
Aron Xu
f275d1eea5 Small update of Simplified Chinese translation. 2010-09-05 03:30:57 +08:00
Daniel Nylander
72e9198e56 Updated Swedish translation 2010-09-03 01:28:58 +02:00
Christian.Kirbach
541d65525e Updated German translation 2010-09-01 14:36:51 +02:00
Philip Withnall
f1577332c9 Update British English translation 2010-08-31 09:41:13 +01:00
noch
f592a2fb38 Added Armenian translation - po file. Modified LINGUAS. 2010-08-31 10:23:43 +05:00
Jorge González
a0048820a3 Updated Spanish translation 2010-08-31 05:12:56 +02:00
Gabor Kelemen
eaf57a2b2c Updated Hungarian translation 2010-08-31 02:09:47 +02:00
Fran Diéguez
49b17ec94b Updated Galician translations 2010-08-30 10:36:43 +02:00
Tristan Van Berkom
7de5f2964e Fixed changelog 2010-08-30 14:51:03 +09:00
Tristan Van Berkom
73ceebc315 * plugins/gtk+/glade-gtk.c: Enable GtkAssistant(child):complete property
and override property name and tooltip for the Glade environment to say:
	  "Initially Complete"/"Whether this page will initially be marked as complete
	  regardless of user input."
2010-08-30 14:47:35 +09:00
Tristan Van Berkom
39ab659776 * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
Fixed GtkComboBox/GtkIconView popup actions (was missing
	  the GtkWidgetClass actions such as add/remove parent)
	  Fixes bug 628146.
2010-08-30 01:32:17 +09:00
Gabor Kelemen
e712edec2b Updated Hungarian translation 2010-08-29 16:22:09 +02:00
Tristan Van Berkom
f8048511d2 * gladeui/glade-project.[ch]:
- Added MISC column to the project model (displayable information
	    about whether the widget is an internal child of a composite widget
	    or a frame's label or notebook's tab).

	* gladeui/glade-inspector.c: Fixed regression in the inspector; inspector
	  was failing to display information about frame labels and internal action
	  areas and such.
2010-08-29 15:00:15 +09:00
Tristan Van Berkom
c25a2225da Simplified a return_if_fail() statement 2010-08-29 14:17:52 +09:00
Tristan Van Berkom
6a7a0a4fed * gladeui/glade-project.c: Applied Johannes Schmid's changes in bug 623879. 2010-08-29 14:16:49 +09:00
Tristan Van Berkom
9f9c22710a * gladeui/glade-project.c:
- Simplified code to use glade_widget_get_children() instead
	    of glade_widget_adaptor_get_children()
	  - Added treemodel stamp and attempt to stamp and validate all
	    GtkTreeIters.
2010-08-26 13:12:29 +09:00
Tristan Van Berkom
b1a1a26e70 * plugins/gtk+/glade-gtk.c: Fixed glade_gtk_frame_add_child() to remove any previous
placeholders.
2010-08-26 13:12:29 +09:00
Yair Hershkovitz
0043346f85 Updated Hebrew translation 2010-08-22 10:15:47 +03:00
Branko Kokanović
897b130dc7 Updated Serbian translation 2010-08-24 05:33:42 +02:00
Petr Kovar
627f5941ff Update Czech translation by Marek Cernocky 2010-08-23 23:01:25 +02:00
Gabor Kelemen
6875d93b53 Updated Hungarian translation 2010-08-23 13:06:26 +02:00
Ask H. Larsen
bd3d35bd46 Updated Danish translation 2010-08-22 13:16:20 +02:00
Tristan Van Berkom
8ea7dec798 Fixed expand/fill child properties to be save-always 2010-08-21 12:49:36 -04:00
Christopher Swift
605cddf7f2 Updated British English translation 2010-08-20 13:39:37 +01:00
Leonid Kanter
933d5687d2 Updated Russian translation from Yuri Myasoedov 2010-08-20 12:57:11 +03:00
Claude Paroz
66cb26c2eb Updated French translation
Contributed by Claude Paroz and Bruno Brouard
2010-08-18 21:47:43 +02:00
Gintautas Miliauskas
0bebc2e83d Updated Lithuanian translation (thanks to Aurimas Cernius). 2010-08-17 17:35:16 +03:00
Tristan Van Berkom
003833ae17 Changes for GTK+ 3.0 cleanup
- Added convenience glade_utils_cairo_draw_[line/rectangle] to cover
   parts where the gdk drawing api is removed.
 - use gdk_pixbuf_new_from_xpm_data()/gdk_pixbuf_render_pixmap_and_mask()
   instead of the removed gdk_pixmap_new_from_xpm_d().
2010-08-16 20:02:53 -04:00
Leonid Kanter
3802892cad Updated Russian translation from Yuri Myasoedov 2010-08-16 14:03:38 +03:00
Daniel Nylander
b955e46332 Updated Swedish translation 2010-08-06 13:29:52 +02:00
Pablo Castellano
a412ba9c75 Fix macro to use gtk_adjustment_set_* instead of the obsolete adj->* 2010-08-03 22:32:17 +02:00
Leonid Kanter
1010095f54 updated Russian translation by Yuri Myasoedov 2010-08-03 10:53:26 +03:00
Takayuki KUSANO
f6733a4e50 Forgot to update DOC_LINGUAS for 'ja'. 2010-08-02 17:28:06 +09: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
Takayuki KUSANO
fffcf1e80f Fix conflict. 2010-07-25 01:30:19 +09:00
Hiroyuki Sekihara
c2a78ed8fc Added Japanese translation of help document 2010-07-25 01:28:35 +09:00
Aron Xu
0bef3cc286 Complete Simplified Chinese translation. 2010-07-23 17:04:21 +08:00
Aron Xu
46ea2e27d2 Update Simplified Chinese translation. 2010-07-23 16:35:57 +08:00
Andre Klapper
fc4d07a3f4 Update POTFILES.in to make l10n.gnome.org happy. Fixes bug #624209. 2010-07-19 20:17:40 +02:00
Mario Blättermann
2c012526f6 [i18n] Updated German translation 2010-07-18 21:40:12 +02:00
Fran Diéguez
14ad45cd97 Fixed headers in galician translation file 2010-07-18 19:54:47 +02:00
Yaron Shahrabani
6d0d40c9f1 Updated Hebrew translation. 2010-07-16 18:49:06 +03:00
Chao-Hsiung Liao
80336a1326 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2010-07-12 19:30:58 +08:00
Tao Wang
cb848883c0 Update Simplified Chinese translations. 2010-07-12 15:49:50 +08:00
Tao Wang
759969a8ec Update Simplified Chinese translations. 2010-07-12 15:49:05 +08: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
Peter Kragelj
284674ad97 Updated Slovenian translation 2010-06-23 14:58:20 +02:00
Peter Kragelj
e5ac6bb113 Updated Slovenian translation 2010-06-23 14:58:09 +02:00
Matej Urbančič
8810439972 Added sl for Slovenian translation 2010-06-21 20:12:31 +02:00
Peter Kragelj
14a3085bea Updated Slovenian translation 2010-06-21 20:11:42 +02:00
Jorge González
7a1b196be6 Updated Spanish translation 2010-06-16 06:04:59 +02:00
Tristan Van Berkom
b6dd2b5baa * gladeui/Makefile.am, gladeui/glade-custom.[ch]: Removed support for old
fashioned custom widgets from glade-2.

	* plugins/python/Makefile.am: Fixed to link with new core library (libgladeui-2).
2010-06-15 16:50:59 -04:00
Tristan Van Berkom
9240c83ddd * configure.ac: Require GTK+ 3.0 and change package domain from glade3 -> glade
* src/Makefile.am, gladeui/Makefile.am: application 'glade-3' -> 'glade',
	  library libgladeui-1 -> libgladeui-2

	* plugins/Makefile.am, plugins/gnome/*: Removed libgnomeui support.

	* plugins/gtk/gtk+.xml.in, plugins/gtk/glade-gtk.c: Removed all reference to
	  deprecated GTK+ widgets (anything removed in 3.0).
2010-06-15 16:43:51 -04:00
Fran Diéguez
0da5ff316c Created Galician translations 2010-06-12 17:29:51 +02:00
Javier Jardón
8aac220111 Fix warning: Quote the definition of AM_CHECK_PYMOD
So we follow current automake recommendations:
http://sources.redhat.com/automake/automake.html#Extending-aclocal
2010-06-10 05:21:52 +02:00
Javier Jardón
23aa3575b6 Use gtk_show_uri() to show help and urls 2010-06-10 04:31:46 +02:00
Javier Jardón
3c6dcdba42 Fix the user and developer url location
The user manual is in http://glade.gnome.org/manual/index.html
and the developer one is in http://library.gnome.org/devel/gladeui/
2010-06-10 04:13:26 +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
Andika Triwidada
e2ed70bbe6 Updated Indonesian translation 2010-06-05 15:53:30 +07:00
Kristjan Schmidt
665dfc69e9 Add Esperanto 2010-06-03 17:52:26 +02:00
Kristjan Schmidt
e0cbc69b30 Add Esperanto 2010-06-03 17:52:16 +02:00
Andika Triwidada
dd8c4de11b Move updated id.po to proper directory 2010-06-03 01:58:49 +07:00
Andika Triwidada
bfa1f4f936 Updated Indonesian translation 2010-06-03 01:56:59 +07:00
Andika Triwidada
e708e59c6a Updated Indonesian translation 2010-05-30 10:52:46 +07:00
Andika Triwidada
c7386d14ba Initial Indonesian translation
Added id into LINGUAS
2010-05-29 17:27:00 +07:00
Mattias Põldaru
732c6bba5c Estonian translation updated 2010-05-28 17:08:33 +03:00
Kjartan Maraas
3d09f2c77f Updated Norwegian bokmål translation 2010-05-24 00:46:02 +02:00
Thomas Thurman
1537472bc8 Updated Shavian translation 2010-05-20 19:49:31 -04:00
Tristan Van Berkom
2dd93a4be3 * gladeui/glade-project.c: Fixed crasher on cross-project copy paste by reordering
the sequence of events in glade_project_add_object().
2010-05-15 12:12:32 -04:00
Tristan Van Berkom
125a84002d Merge branch 'master' into project-tree-model 2010-05-14 18:00:52 -04:00
Tristan Van Berkom
cfcd778e68 * gladeui/glade-widget.c: Added some clarification to the docs of glade_widget_get_children(),
fixed glade_widget_get_children() to not call g_list_append() in a loop.
2010-05-14 18:00:52 -04:00
Tristan Van Berkom
473df94ba6 Added ChangeLog entry for Johannes's work, fixed some compile warnings. 2010-05-14 18:00:52 -04:00
Johannes Schmid
ab6e2bc223 Cache the list of objects in the projects
Fixes some memory leaks and is probably also better performance-wise
2010-05-14 18:00:52 -04:00
Johannes Schmid
6e4749517b inspector: Bring back old search entry 2010-05-14 18:00:52 -04:00
Johannes Schmid
5edd5f4c08 Improved search to us partial match instead of prefix match 2010-05-14 18:00:52 -04:00
Johannes Schmid
c1b860db38 Free the signals correctly
This code is never reached but was wrong nevertheless.
2010-05-14 18:00:52 -04:00
Johannes Schmid
b11ef9648d Make all members of GladeSignalClass const as they should. 2010-05-14 18:00:52 -04:00
Johannes Schmid
66e2d57348 Allow destroying (and recreation) of GladeApp object
That is what happens when a glade file is loaded in anjuta, then closes and opened again.
Currently, we hold an extra reference on GladeApp to avoid destroying it but that's not clean
of course and leaves a big mem leak.
We cannot free the catalogs though as they register GTypes that we cannot unregister. Thus,
we have to keep them in memory once they were loaded.
2010-05-14 18:00:51 -04:00
Johannes Schmid
661df87340 Remove debug messages 2010-05-14 18:00:51 -04:00
Johannes Schmid
f63432f936 glade-inspector: Add a GtkEntryCompletion to the search entry 2010-05-14 18:00:51 -04:00
Johannes Schmid
a24cecf24f Fix glade_widget_get_children() to always return a correct list 2010-05-14 18:00:51 -04:00
Johannes Schmid
deb99978b8 Fix selection handling in inspector and deleting of widgets 2010-05-14 18:00:51 -04:00
Johannes Schmid
4a6b8ddb98 glade-widget: Add a g_return_if_fail() if we cannot find an apator for widgets
Also checks in glade-project.c if we found a widget.
2010-05-14 18:00:51 -04:00
Johannes Schmid
3e9ef43262 signal-editor: As this derives from GtkVBox there is no need to call get_widget()
Also fixed files that calles get_widget() to just use the editor instead.
2010-05-14 18:00:51 -04:00
Johannes Schmid
4c51cd70f7 signal-editor: move column-enum from .h to .c as it is really a private thing. 2010-05-14 18:00:51 -04:00
Johannes Schmid
76add087ec signal-editor: clean-up public members and remove silly signals all over.
If there is a need for these signals it should be done in another way.
2010-05-14 18:00:51 -04:00
Johannes Schmid
3321216ba7 glade-widget: Don't list children without associated GladeWidget but do it in-place 2010-05-14 18:00:51 -04:00
Johannes Schmid
a4cb802064 glade-project: Fixed bug in glade_project_get_widget_by_name()
It should correctly interate on the list of toplevels. In addition, fixed adjust_naming_policy to
avoid a now unnecessary check if this is really a toplevel.
2010-05-14 18:00:51 -04:00
Johannes Schmid
34484fe850 glade-inspector: Fixed searching and removed lots of obsolete code 2010-05-14 18:00:51 -04:00
Johannes Schmid
a8dd0de686 glade-widget: Don't duplicate the list of children 2010-05-14 18:00:51 -04:00
Johannes Schmid
3b30c7ecba gladeui: Port inspector to use GladeProject as GtkTreeModel.
Also fixed some smaller things in the model itself and added support for icons.
2010-05-14 18:00:51 -04:00
Johannes Schmid
9b43efd181 gladeui: Added nice enum for the model columns
...and removed some hacky testing code
2010-05-14 18:00:51 -04:00
Johannes Schmid
412b3e5353 gladeui: fixed addition and removal of widgets
There were some checks that are no longer necessary as our project tree is dynamic which
prevented the emission of the "add_widget"-signal.
2010-05-14 18:00:51 -04:00
Johannes Schmid
348cfa1055 gladeui: Finished tree model for GladeProject 2010-05-14 18:00:51 -04:00
Johannes Schmid
e99e1138a5 gladeui: Fix a Gtk-Critical in GladePalette
Actually gtk+ should provide a gtk_tool_item_group_new_with_label_widget() method but
it doesn't and using the construct properties seems broken.
2010-05-14 18:00:50 -04:00
Johannes Schmid
24246fa09f gladeui: Initial tree model for GladeProject
Add an implementation of the GtkTreeModel interface to GladeProject
2010-05-14 18:00:50 -04:00
Johannes Schmid
3ebc71feca gladeui: Add glade_widget_get_children() convenience layer 2010-05-14 18:00:50 -04:00
Thomas Thurman
f22eeab182 Updated Shavian transliteration 2010-05-12 18:41:24 -04:00
Fran Diéguez
235c84683e Updated Galician translation 2010-05-04 23:21:09 +02:00
Javier Jardón
a9c478b397 Remove some unneded GTK+ version checks
We already depends on GTK+ 2.20
2010-05-04 21:33:52 +02:00
Jorge González
c3381a9cbf Updated Spanish translation 2010-05-04 19:22:20 +02:00
Javier Jardón
5334887523 Update POTFILES.in file
Added src/glade-close-button.c and removed
plugins/gtk+/glade-cell-renderer-button.c
2010-05-03 20:10:54 +02:00
Javier Jardón
95bf1f13ce Do not show the event box in signal editor 2010-05-03 19:48:49 +02:00
Mario Blättermann
1b7ccd6588 Updated German translation 2010-05-02 15:45:04 +02:00
Jorge González
562957ea21 Updated Spanish translation 2010-04-20 08:02:43 +02:00
Olav Vitters
6f89358a99 Fix doap file 2010-04-18 11:36:36 +02:00
Francisco Diéguez
3f319cc840 Updated Galician translations 2010-04-17 15:51:30 +02:00
Jorge González
5fdb4b13b4 Updated Spanish translation 2010-04-16 19:05:18 +02:00
Fran Diéguez
c895948aed Updated Galician translation 2010-04-14 13:25:44 +02:00
Mario Reyer
9e26e40525 Updated German doc translation 2010-04-07 21:13:05 +02:00
Jordi Serratosa
0f7e9d0ae5 Fixes to Catalan translation 2010-04-02 14:01:14 +02:00
Tristan Van Berkom
799fad0649 * gladeui/glade-project.c:
- Stop showing preferences at project new time (now we have tooltips that tell you this stuff),
	    finally closing bug 574095.
2010-04-01 13:38:32 -04:00
Tristan Van Berkom
fb59ec50d6 2010-04-01 Tristan Van Berkom <tvb@gnome.org>
* gladeui/glade-project.c: Display GTK+ in caps and always assume GTK+ as a project dependency
	  (so that empty projects still depend on GTK+ for display purposes).
2010-04-01 13:30:53 -04:00
Tristan Van Berkom
0247d941ce * src/glade-window.c:
- Added option to show/hide statusbar in the View menu and session data.
2010-03-31 22:24:12 -04:00
Tristan Van Berkom
b5752c7d5d * gladeui/glade-signal-editor.c: Save some space in treeview column headers. 2010-03-31 22:08:13 -04:00
Tristan Van Berkom
a70df15164 * gladeui/glade-base-editor.c: Fixed to unref in ->dispose() and to unset the loaded widget
in the signal editor when doing so.
2010-03-31 22:00:10 -04:00
Tristan Van Berkom
fa97bcf995 * src/Makefile.am, src/glade-close-button.[ch]: Using Paolo Borelli's close button code for notebook
tab close buttons.

	* src/glade-window.c:
	  - Added option to disable toolbar in View menu and session data (bug 586194).
	  - Added option to show notebook tabs for open projects also in the View menu and session data.

	* gladeui/glade-palette.c: Made "both" mode use text horizontally again, still get alot of unwanted
	  ellipsize here.

	* gladeui/glade-project.c: Added the targets-changed signal to refresh views with data about
	  target project versions (notebook tabs).
2010-03-31 21:46:38 -04:00
Tristan Van Berkom
9fe32a42d7 * plugins/gtk+/gtk+.xml.in: Removed GtkUIManager as its not really editable in Glade but still
asks for an icon at startup.
2010-03-30 18:03:46 -04:00
Tristan Van Berkom
680b92511d * gladeui/glade-signal-editor.c: Fixed access to signal name in object dialog hander (was a crasher).
* gladeui/glade-widget.c: Fixed GladeWidget to update support warnings on newly added signals.
2010-03-30 11:48:52 -04:00
Tristan Van Berkom
7d9925eab3 2010-03-30 Tristan Van Berkom <tvb@gnome.org>
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Block the glade_gtk_text_buffer_changed()
	  handler when updating the buffer text (this feedback loop was causing segfaults when undoing
	  modifications to a text buffer's text).
2010-03-30 10:51:26 -04:00
Tristan Van Berkom
f232b9789a * gladeui/glade-popup.c: Allow adding new actions to action groups from the palette ("Add widget here").
* plugins/gtk+/glade-accels.[ch]: Moved individual accelerator [de]serialization here, special integration
	  for action types, for actions only show one accelerator and dont load/save the "activate" signal name.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added support for GtkActionGroup <--> GtkAction
	  relationships and support for editing/loading/saving of accelerators which can be associated with
	  actions inside an action group.
2010-03-29 19:58:17 -04:00
Tristan Van Berkom
2cf0d26f39 * gladeui/glade-signal-editor.c:
- Reordered support icon to come before the signal name and let the column be user
	    resizable along with the others (non-resizable unellipzised signal name columns expand over time)
2010-03-29 16:46:25 -04:00
Tristan Van Berkom
5916da88b5 * gladeui/glade-editor-property.[ch]:
- Fixed an assertion and page-size != 0 for adjustment properties in libglade mode

	* gladeui/glade-signal-editor.c:
	  - Dont show swapped column in libglade mode
2010-03-29 16:32:07 -04:00
Tristan Van Berkom
57d26c0650 Fixing typo in changelog 2010-03-29 16:07:08 -04:00
Tristan Van Berkom
845366bc4e * gladeui/glade-editor-property.[ch]:
- Give object dialogs a bigger default size and hide the column headers

	* gladeui/glade-signal-editor.c:
	  - Now show an icon and tooltip in rows for signals that are only
	    supported in the future, refresh them when support changes.

	* gladeui/glade-widget-adaptor.h, gladeui/glade-property-class.h: Added some version checking macros.

	* gladeui/glade-signal.[ch]: Add support warning meta data to signals

	* gladeui/glade-project.c:
	  - Simplify code with new version checking macros
	  - Do the verify on signals for widgets as well as project warnings
	    (update the signals a verify time).

	* gladeui/glade-widget.c: GladeWidget takes a new "support-changed" to broadcast support changes
	  on the widget.

	* gladeui/glade-signal-editor.c:
2010-03-29 16:05:00 -04:00
Jonh Wendell
320f07d836 Given credits to pt_BR translator Antonio Fernandes 2010-03-29 09:26:22 -03:00
Tristan Van Berkom
1c8096a39d 2010-03-29 Tristan Van Berkom <tvb@gnome.org>
* gladeui/glade-editor-property.[ch]: Added glade_editor_property_show_object_dialog()

	* gladeui/glade-signal-editor.c:
	  - Use glade_editor_property_show_object_dialog() to select project objects for signal user data.
	  - Added tooltips for the column headers
2010-03-29 03:56:52 -04:00
Tristan Van Berkom
c4dc31af6f * plugins/gtk+/glade-model-data.c, plugins/gtk+/glade-attributes.c: Use GladeCellRendererIcon
instead of GladeCellRendererButton which was more convoluted (included only an icon when editing).

	* plugins/gtk+/Makefile.am: Removed glade-cell-renderer-button.[ch]
2010-03-29 00:04:13 -04:00
Tristan Van Berkom
65cc1458a9 2010-03-28 Tristan Van Berkom <tvb@gnome.org>
* gladeui/Makefile.am, gladeui/glade-cell-renderer-icon.[ch]: Added activatable pixbuf renderer

	* gladeui/glade-signal-editor.c: Use new activatable pixbuf renderer to render a devhelp icon
	  and fire signal contextual devhelp searches.
2010-03-28 20:52:42 -04:00
Tristan Van Berkom
69012ceaca 2010-03-28 Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
* gladeui/glade-base-editor.c: Avoid GtkEntry feedback loop with g_signal_handlers_block_by_func(),
	fixes bug 609612.
2010-03-28 19:29:23 -04:00
Tristan Van Berkom
5def911c59 * gladeui/glade-xml-utils.h: Added "swapped" attribute definition
* gladeui/glade-signal.c: Added "swapped" attribute and read/write from xml, swapped attribute is
	always saved, if its missing on load and user_data (object) is set, we assume a swapped default.

	* gladeui/glade-signal-editor.c: Allow toggling "swapped" flag of a signal if user data is set.

	* gladeui/glade-widget.c: Account for new signal "swapped" flag when modifying local signals.
2010-03-28 19:17:46 -04:00
Tristan Van Berkom
b45ddd32b5 * gladeui/glade-widget-adaptor.[ch]: Add a "scrollable" flag on the adaptor class vtable
introspected by checking if (widget_class->set_scroll_adjustments_signal) != 0.

	* gladeui/glade-utils.[ch]: Added glade_util_check_and_warn_scrollable() to check and warn the
	  user if they are trying to add a non-scrollable widget to a scrolled window.

	* gladeui/glade-app.c, gladeui/glade-popup.c, gladeui/glade-placeholder.c, plugins/gtk+/glade-gtk.c:
	Consult glade_util_check_and_warn_scrollable() before executing commands that introduce objects
	to the project.
2010-03-28 16:34:06 -04:00
Tristan Van Berkom
3693cac925 2010-03-28 Tristan Van Berkom <tvb@gnome.org>
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
	  - Sync attributes when they are set to be used directly and not by the model (fixes loaded state
	    of explicitly set cell renderer properties).
	  - Fix last patch to reset cellrenderer attributes from a GladeProperty::value-changed signal
	    instead of the property mutator implementation (as the "columns" property is construct-only
	    and the widget is rebuilt - property reference lists are unavailable at ->set_property time).
2010-03-28 13:31:06 -04:00
Tristan Van Berkom
f1bcd41832 * plugins/gtk+/glade-gtk.c:
- Check for type compatibility before setting cell renderer attributes
	  - Clear cell renderer attributes before setting liststore column types and resync them after
	    (Avoids cricital warnings where the underlying data types changed and dont match the properties
	    of the renderers)
	  - Fill in the gaps in model data while loading some columns with non serializable types
	    (fixes severe bug: model data was loaded with missing columns of data).

	* plugins/gtk+/glade-column-types.c, plugins/gtk+/glade-model-data.c:
	  allow model data with explicitly G_TYPE_INVALID types.
2010-03-27 23:10:03 -04:00
Tristan Van Berkom
799a017db3 * gladeui/glade-marshallers.list, gladeui/glade-placeholder.c:
Make GladePlaceholder a scrollable widget (hypothetically) to avoid runtime warnings.

	* plugins/gtk+/gtk+.xml.in: Disabled "has-separator" of GtkMessageDialog as it ignores the separator
	  and the setting is useless (not to mention setting it causes runtime warnings: fixes bug 587288).

	* gladeui/glade-project.[ch]: Expose glade_project_get_target_version()

	* plugins/gtk+/glade-gtk.c:
	  - check project target gtk+ version to decide initial state
	    of GtkEntry::buffer.
	  - Substitute the old manual evaluation with GPC_VERSION_CHECK()
	  - Avoid critical warnings when setting GtkColorButton properties to NULL
	  - Avoid critical warnings when setting GtkComboBoxEntry::text-column < 0

	* gladeui/glade-property-class.h: Created convenience macro GPC_VERSION_CHECK

	* gladeui/glade-utils.c: Allow loading of libraries installed in optional non-system prefixes;
	  (so that GtkSourceView catalog is buildable and usable from your jhbuild environment)
	  assume a path that is: ${prefix}/lib/glade3/modules/../../ and search it after the initial
	  module search path.
2010-03-27 14:51:33 -04:00
Inaki Larranaga Murgoitio
99eaffb84a Updated Basque language 2010-03-27 12:39:21 +01:00
Inaki Larranaga Murgoitio
6a441a3e0b Updated Basque language 2010-03-27 12:17:26 +01:00
Marek Černocký
3970ba1d82 Update Czech translation 2010-03-27 11:45:53 +01:00
Tristan Van Berkom
b6abe222bd 2010-03-26 Tristan Van Berkom <tvb@gnome.org>
* gladeui/glade-palette.c: Left aligned and ellipsize end widget group titles (restored normal
	  Glade palette behavior) and added tooltip to group title (closing bug 558983).

	* src/glade-window.c: Added an idle function to reload GtkPaned positions from the session data
	  in the case the window fires up maximized.
2010-03-26 13:48:01 -04:00
Tristan Van Berkom
06f3ccfce1 fixing changelog. 2010-03-25 18:55:36 -04:00
Tristan Van Berkom
6afb3f1859 * plugins/gtk+/gtk+.xml.in, plugins/gnome/gnome.xml.in, plugins/gnome/canvas.xml.in,
plugins/gnome/gtkunixprint.xml.in: Added missing displayable values and rooted out latest
	resulting startup warnings for GTK+ 2.20.

	* gladeui/glade-widget-adaptor.[ch]: Save the original missing icon name if the icon was
	  not found.

	* gladeui/glade-catalog.c: Print a summery of all missing icon names for thier classes
	  (cleans up start up warnings).
2010-03-25 18:55:07 -04:00
Tristan Van Berkom
a5ac996b30 Fixed broken Makefile.am (still needed newly missing glade-palette-item.h) 2010-03-25 17:17:55 -04:00
Tristan Van Berkom
2f6dc34596 * gladeui/Makefile.am, gladeui/glade-palette.c:
- Removed glade-palette-box.[ch], glade-palette-expander.[ch] and glade-palette-item.[ch].
	  - Integrated GtkToolPalette as the internal implementation of Glade's palette (bug 613956).

	* plugins/gtk+/glade-gtk.c: Fix some remaining crashes from the GSEAL() stuff (GtkBoxChild
	  invalid type dereferencing).
2010-03-25 16:55:32 -04:00
Federico Mena Quintero
ecac9eaae9 bgo#594231 - Fix vertical orientation of VBoxes and other vertical widgets
We disable the "orientation" property for GtkVBox, GtkHBox, and all
the other concrete classes with a default orientation.  That property
will remain accessible for GtkBox and the other orientable base
classes.

Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-03-25 14:31:54 -06:00
Tristan Van Berkom
cd73fa2a3c * plugins/gtk+/gtk+.xml.in: Flag 'save-always' for 'can-focus' property on GtkEntry. 2010-03-24 18:43:34 -04:00
Tristan Van Berkom
d491e8ddc4 2010-03-24 Tristan Van Berkom <tvb@gnome.org>
* gladeui/glade-signal.[ch]: Broke api of glade_signal_write(), this api should never
	  be called outside of the Glade core so its a soft api break.

	* gladeui/glade-widget.c: Call glade_signal_write() with the current project format, fixes bug 600031.
2010-03-24 18:43:34 -04:00
Fran Diéguez
074fb2560e Updated Galician translation 2010-03-24 16:04:36 +01:00
Inaki Larranaga Murgoitio
70256e6621 Updated Basque language 2010-03-22 11:56:08 +01:00
Tristan Van Berkom
c6117db609 2010-03-20 Javier Jardón <jjardon@gnome.org>
* gladeui/glade-builtins.c: Use g_timeout_add_seconds() instead of g_timeout_add()
	  (gnome goal bug 581255).
2010-03-20 14:57:39 -04:00
Tristan Van Berkom
8f91dd5438 2010-03-20 Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>
* src/glade-window.c: Save maximized window state of main window and
	  all dockable editors in the session data (fixes bug 607670).
2010-03-20 13:55:25 -04:00
Daniel Nylander
1c3a1626e0 Updated Swedish translation 2010-03-18 21:02:46 +01:00
Gintautas Miliauskas
50e4134b5f Updated Lithuanian translation. 2010-03-18 19:47:59 +02:00
Christian Persch
e74974611a Save glade files with UTF-8 encoding
This avoid putting character entities for non-ASCII characters
in the extractable strings. Bug #596205.
2010-03-17 18:04:47 +01:00
Tristan Van Berkom
03a23359da 2010-03-11 Aaron Brown <aaron.j.brown@hotmail.com>
* src/glade-window.c: Changed "Close without saving" acelerator key
	  from 'c' to 'w', fixes bug 612538.

2010-03-10  Tristan Van Berkom <tvb@gnome.org>

	* plugins/gtk+/gtk+.xml.in: Marked GtkSpinner since="2.20"
2010-03-13 16:17:03 -05:00
Tristan Van Berkom
e3ea0626ce * configure.ac, NEWS: Rolling Glade 3.7.0 2010-03-10 17:49:05 -05:00
Tristan Van Berkom
0c0399d8ac * plugins/gtk+/gtk+.xml.in: Removed alot of virtually defined properties that were not available
in GTK+ 2.14, now they are available.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-entry-editor.c: Enhanced the GtkEntry editor
	  to allow the user to chose between the "text" and the "buffers" exclusively.

	* plugins/gtk+/gtk+.xml.in: Fixed translation details pointed out by Johannes H. Jensen
	  in bug 607348.
2010-03-10 15:41:41 -05:00
Christian.Kirbach
3be45d0775 Updated German translation 2010-03-10 19:48:02 +01:00
Javier Jardón
556b354606 Added Changelog to commit b01a2ba2366b (Deprecate GtkInputDialog) 2010-03-10 19:08:19 +01:00
Javier Jardón
06fe7cb387 Added Changelog to commit b786869af 2010-03-10 19:03:47 +01:00
Tristan Van Berkom
793cdeb850 * plugins/gtk+/glade-model-data.c: Fixed crasher when double freeing the data tree
in some idle handlers (idle handlers needed for advanced focus handling/keynav), fixes crash bug 608011.
	  Also make sure to create the adjustment with a 0 page size.
2010-03-10 12:55:48 -05:00
Jorge González
19cf732116 Updated Spanish translation 2010-03-10 08:55:25 +01:00
Jorge González
98cd4d0668 Updated Spanish translation 2010-03-10 08:29:14 +01:00
Matej Urbančič
0c5efa81ec Updated Slovenian translation 2010-03-10 08:03:27 +01:00
Javier Jardón
b786869af0 Deprecated GtkGammaCurve and GtkCurve 2010-03-10 04:35:48 +01:00
Tristan Van Berkom
b01a2ba236 Deprecated input dialog. 2010-03-09 19:29:32 -05:00
Tristan Van Berkom
1b750f3d5d * plugins/gtk+/gtk+.xml.in: Updated newly added symbols in GTK+ on widgets already
in the catalog; added new objects from GTK+:
	  - GtkEntryBuffer
	  - GtkSpinner
	  - GtkCellRendererSpinner
2010-03-09 19:18:55 -05:00
Tristan Van Berkom
79984447e2 2010-03-09 Tristan Van Berkom <tvb@gnome.org>
* plugins/gtk+/glade-gtk.c: Fixed GtkBox & GtkTable regressions introduced
	  by GSEAL patches.
2010-03-09 16:30:36 -05:00
Tristan Van Berkom
a226760c33 2010-03-09 Tristan Van Berkom <tvb@gnome.org>
* plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-column-types.[ch],
	  plugins/gtk+/glade-model-data.c: Allow litteral string values for
	  column types in the tree store editor, Glade will serialize/deserialize
	  the string litterally and if there is a valid type returned from
	  g_type_from_name() (i.e. a valid introduced type by that name); then
	  that GType will be used to setup the column types of runtime treestores
	  in the project; otherwise it will use G_TYPE_POINTER for those columns.

	  This closes bug 597095.

2010-03-09  Marco Diego Aurélio Mesquita <marcodiegomesquita@gmail.com>

	* gladeui/glade-project.c: Avoid collapsing commands when a project is freshly saved
	  (this fixes a false "unmodified" state after changing the same property before and
	  after project save).
2010-03-09 16:30:36 -05:00
David Planella
b033c97af9 Updated Catalan translation 2010-03-09 20:28:00 +01:00
Inaki Larranaga Murgoitio
e0d54c9cfc Updated Basque language 2010-03-04 21:25:44 +01:00
Gabor Kelemen
77b79ffb8a Updated Hungarian translation 2010-03-04 00:42:23 +01:00
Gabor Kelemen
a6d323cf87 Updated Hungarian translation 2010-03-04 00:33:00 +01:00
Leonid Kanter
cddd39a204 Update Russian translation by Yuri Myasoedov 2010-03-03 18:11:14 +02:00
Inaki Larranaga Murgoitio
aff1244cc2 Updated Basque language 2010-03-02 12:28:30 +01:00
Duarte Loreto
ff211aeb05 Updated Portuguese translation 2010-03-01 00:51:44 +00:00
Branko Kokanović
ef3ca5371a Updated Serbian translations 2010-02-28 23:01:41 +01:00
Antonio Fernandes C. Neto
f3507a6c45 Updated Brazilian Portuguese translation.
Reviewed by Vladimir Melo.
2010-02-28 08:23:16 -03:00
Branko Kokanović
516d5ad909 Updated Serbian translations 2010-02-27 12:07:02 +01:00
Yavor Doganov
9e2b8232e3 Updated Bulgarian translation 2010-02-25 18:10:07 +02:00
Fran Diéguez
0cb48e829a Updated Galician Translation 2010-02-25 10:57:29 +01:00
Bruce Cowan
031c14a567 Updated British English translation 2010-02-24 16:33:55 +00:00
Claude Paroz
7cdb9041b5 Updated French translation 2010-02-19 23:15:13 +01:00
Mario Blättermann
c1727f5127 Updated German translation 2010-02-19 21:42:45 +01:00
Matej Urbančič
7a2a5f50a5 Updated Slovenian translation 2010-02-15 18:41:03 +01:00
Theppitak Karoonboonyanan
0a0c6d07fb Updated Thai translation. 2010-02-15 21:21:11 +07:00
Fran Diéguez
4c7477c343 Updated Galician Translation 2010-02-15 13:05:39 +01:00
Jorge González
2faf649faa Updated Spanish translation 2010-02-15 12:02:15 +01:00
Javier Jardón
9660e3c269 Revert "Use accessor functions instead direct access. Fourth patch"
This patch was committed by error. It's still not complete

This reverts commit 1901f70802ff5589ad1f2d4f4038dfe30d5e543f.
2010-02-14 03:25:48 +01:00
Gabor Kelemen
e69e42374b Fix some typos, bug #571464 2010-02-13 22:37:18 +01:00
Gabor Kelemen
6d99cff715 Mark a string for translation, bug #581167 2010-02-13 21:11:29 +01:00
Gabor Kelemen
fdb1d49f07 Mark some strings for translation, bug #581167 2010-02-13 21:11:28 +01:00
Gabor Kelemen
c535dbcaa3 Fix some typos, bug #571464 2010-02-13 21:11:28 +01:00
Frederic Peters
825d869db5 Remove deprecated Encoding key from desktop file
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=592698
2010-02-12 06:18:57 +01:00
Javier Jardón
1901f70802 Use accessor functions instead direct access. Fourth patch
Use gtk_dialog_get_widget_for_response() to substitute some access
Only missing:
GTK_INPUT_DIALOG ()->save_button
GTK_FONT_SELECTION_DIALOG ()->fontsel
GTK_WIDGET_UNSET_FLAGS (widget, GTK_TOPLEVEL)

https://bugzilla.gnome.org/show_bug.cgi?id=594957
2010-02-12 03:40:39 +01:00
Fran Diéguez
dc69ecf44f Updated Galician Translation 2010-02-11 15:34:48 +01:00
Javier Jardón
f8bbea40f0 Use accessor functions instead direct access. Third patch
Substitute GTK_WIDGET_REALIZED() and GTK_WIDGET_MAPPED()

https://bugzilla.gnome.org/show_bug.cgi?id=594957
2010-02-11 01:14:01 +01:00
Matej Urbančič
82f055a727 Updated Slovenian translation 2010-02-10 16:35:30 +01:00
Theppitak Karoonboonyanan
ca5af214c6 Updated Thai translation. 2010-02-08 11:28:49 +07:00
Javier Jardón
b5e6b74426 Fix accessor function
Use gtk_widget_style_attach() to replace
widget->style = gtk_style_attach (widget->style, widget->window);

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=609041
2010-02-07 23:53:50 +01:00
Jorge González
f797737dc8 Updated Spanish translation 2010-02-07 22:55:42 +01:00
Mario Blättermann
ec98d20a53 Updated German translation 2010-02-07 22:48:34 +01:00
Javier Jardón
900a72c1f0 Fix .desktop file
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=588971
2010-02-07 22:25:15 +01:00
Marios Zindilis
98d484f93b Updated Greek translation 2010-02-05 09:28:48 -08:00
Ísis Binder
559eca0896 Updated Brazilian Portuguese Translation 2010-02-04 10:03:34 -03:00
Theppitak Karoonboonyanan
2f9d8f93bd Updated Thai translation. 2010-01-29 16:58:51 +07:00
Javier Jardón
eb1340a060 README: Glade requires GTK+ >= 2.20 2010-01-28 05:27:09 +01:00
Javier Jardón
22788e3f90 Fix shortcuts to devhelper documentation
Remove the trailing whitespace of the string passed to devhelp

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=576477
2010-01-28 05:11:56 +01:00
Claude Paroz
09ce0401f7 Updated French translation 2010-01-23 15:30:58 +01:00
Adam Buchbinder
35c3e06af2 Fix default generation of GtkSpinButtons
Every new GtkSpinButton added has the default adjustment "page
size" value set to 10, but this is deprecated.
It should be set to 0.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=557851

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-01-19 19:40:28 +01:00
Christian.Kirbach
32c9e846cc Updated German translation 2010-01-18 12:10:00 +01:00
Inaki Larranaga Murgoitio
51b2254861 Updated Basque language 2010-01-13 17:07:19 +01:00
Inaki Larranaga Murgoitio
dd96d7d415 Updated Basque language 2010-01-13 17:05:58 +01:00
Daniel Nylander
4a3235adcf Updated Swedish translation 2010-01-09 16:40:19 +01:00
Maxim V. Dziumanenko
d257b51f2a Add Ukrainian translation 2010-01-09 15:14:43 +02:00
Maxim V. Dziumanenko
085ff4cf5d Add Ukrainian translation 2010-01-09 15:14:06 +02:00
Maxim V. Dziumanenko
2bbd60567c Update Ukrainian translation 2010-01-05 17:07:12 +02:00
Javier Jardón
de68d3619c [docs] Fix doc location link
Use http://library.gnome.org/devel/gladeui/unstable/
instead http://glade.gnome.org/docs/index.html
2009-12-18 13:34:00 +01:00
Kjartan Maraas
7185392524 Updated Norwegian bokmål translation. 2009-12-17 21:26:13 +01:00
Javier Jardón
4dda3ade88 Use accessor functions instead direct access. Second patch
GTK+ 2.19.0 is now the required version
I've used all the GTK+ 2.19.1 api available, still missing:
GTK_WIDGET_UNSET_FLAGS (widget, GTK_TOPLEVEL);
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
GTK_WIDGET_REALIZED ()
GTK_WIDGET_MAPPED ()

https://bugzilla.gnome.org/show_bug.cgi?id=594957
2009-12-04 20:18:06 +01:00
Javier Jardón
2d7e9abe72 Use accessor functions instead direct access.
GTK+ 2.17.10 is now the required version
I've used all the GTK+ 2.18.* api available, still missing:
GTK_WIDGET_UNSET_FLAGS (widget, GTK_TOPLEVEL);
GTK_WIDGET_SET_FLAGS (widget, GTK_REALIZED);
GTK_WIDGET_REALIZED ()
GTK_WIDGET_MAPPED ()
GTK_VIEWPORT ()->bin_window
GTK_ENTRY ()->editing_canceled

https://bugzilla.gnome.org/show_bug.cgi?id=594957
2009-12-04 20:14:58 +01:00
Thomas Thurman
7475d2d597 Shavian translation 2009-11-20 12:47:31 -05:00
Daniel Nylander
ab8a2ff5d7 Updated Swedish translation 2009-11-15 22:17:38 +01:00
Matej Urbančič
7982f195cb Updated Slovenian translation 2009-11-14 11:32:17 +01:00
苏运强
c238ef04d9 Added Simplified Chinese translation of glade3 user guide. 2009-11-13 00:18:55 +08:00
Jorge González
01f44e89fb Updated Spanish translation 2009-11-10 00:59:24 +01:00
Khaled Hosny
d85ead5ce8 Updated Arabic translation 2009-11-09 21:45:45 +02:00
Tristan Van Berkom
bcbb36d3a8 * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Disable default saving behaviour of order dependant
GtkAdjustment properties and installed glade_gtk_adjustment_write_widget() to write the properties out
	in the following order: "lower", "upper", "value" (fixes bug 578484).
2009-11-09 13:24:07 -02:00
Antón Méixome
06b17c1014 Updated Galician Translation 2009-11-07 14:36:38 +01:00
Jorge González
6d44cf5cca Updated Spanish translation 2009-11-02 01:35:05 +01:00
Matej Urbančič
347721e361 Updated Slovenian translation 2009-10-28 14:13:56 +01:00
Gil Forcada
763a0132c4 Minor fixes to Catalan translation 2009-10-16 22:44:10 +02:00
Carles Ferrando
4e24db40ca Added Catalan (Valencian) translation 2009-10-16 22:43:53 +02:00
Javier Jardón
0471db0fc3 Support silent build rules with automake 1.11 (GnomeBug:591376) 2009-10-09 14:46:52 +02:00
Petr Kovar
c89364b83f Updated Czech translation by Marek Cernocky
Reviewed by: Petr Kovar.
2009-10-06 00:37:06 +02:00
Philip Withnall
81572d93ce Bug 595838 — String fixes 2009-09-22 23:29:05 +01:00
Philip Withnall
a5180194f1 Updated British English translation
Fixing permissions.
2009-09-22 17:14:30 -04:00
Philip Withnall
d56cc444e1 Updated British English translation 2009-09-21 15:47:19 +01:00
Kjartan Maraas
187828ed5f Updated Norwegian bokmål translation. 2009-09-21 10:57:16 +02:00
Ilkka Tuohela
b5bc9ee346 Updated Finnish translation 2009-09-16 09:56:22 +03:00
Ilkka Tuohela
0a3bb43bd5 Updated Finnish translation 2009-09-15 17:10:12 +03:00
Tristan Van Berkom
428ac42f3a Further fixing bug 595156 so that internal widgets found inside the
copied subhierarchy still come out as copies (like getting an action area
inside an internal vbox which was copied).
2009-09-14 12:35:32 -04:00
Tristan Van Berkom
80e8236a07 Fixed gnome bug 595156 (crasher)
* gladeui/glade-widget.c: Fixed crasher while copying internal widgets (bug 595156)
2009-09-14 12:02:24 -04:00
Inaki Larranaga Murgoitio
b9cbed2935 Updated Basque language 2009-09-11 10:03:35 +02:00
Inaki Larranaga Murgoitio
db7bf2e530 Updated Basque language 2009-09-10 18:48:39 +02:00
Kjartan Maraas
8cc87caf51 Update Norwegian bokmål translation. 2009-09-01 12:03:25 +02:00
Baris Cicek
47734ff952 Updated Turkish translation. 2009-08-29 00:05:49 +03:00
Yavor Doganov
2e245e8161 Updated Bulgarian translation 2009-08-26 20:59:08 +03:00
Ivar Smolin
62fdd4a389 Updating Estonian translation 2009-08-23 19:35:21 +03:00
Milo Casagrande
cd03cf7106 Updated Italian translation
* Fixes part of bug 591923
2009-08-16 16:48:39 +02:00
Andre Klapper
405b2cb7ed Reset correct "Last Translator" value 2009-08-15 22:57:58 +02:00
Andre Klapper
38395ac770 Add additional fuzzy strings based on poedit's .mo database 2009-08-15 22:56:23 +02:00
Mario Blättermann
256cd7cc14 Updated German doc translation, added screenshot 2009-08-09 15:05:31 +02:00
Chao-Hsiung Liao
626f2edc50 Updated Traditional Chinese translation(Hong Kong and Taiwan) 2009-08-02 22:22:56 +08:00
Ivar Smolin
9475ee1a78 Updating Estonian translation 2009-07-27 23:06:15 +03:00
Petr Kovar
e4a5542461 Added Czech help translation by Marek Cernocky 2009-07-26 20:38:39 +02:00
Ivar Smolin
c1f9ee4144 Updating Estonian translation 2009-07-23 18:54:50 +03:00
Andrea Zagli
f242fb57d7 Updated Italian translation (close bug #589186) 2009-07-22 12:52:16 +02:00
Tristan Van Berkom
e68c4987ab * plugins/gtk+/glade-gtk.c: Fixed loading state of assigned GtkTreeModels of GtkCellRendererCombo
objects (bug 566928).
2009-07-01 12:51:21 -04:00
Tristan Van Berkom
282bf24731 Committing actual --enable-mac-bundle option 2009-06-29 15:49:09 -04:00
Tristan Van Berkom
30c329a4a3 * configure.ac, NEWS: Rolling Glade 3.6.7 2009-06-29 15:46:35 -04:00
Tristan Van Berkom
e6c028b11f OOps, really fixed the editable types in the base editor now. 2009-06-29 15:18:38 -04:00
Tristan Van Berkom
8dfa07101f * configure.ac, gladeui/glade-app.c: Added --enable-mac-bundle configure option to
special case runtime path lookups to bundling builds.

* gladeui/glade-popup.[ch]: Added glade_popup_is_popup_event () to check the correct
GdkEventButton state for a context menu (in a platform independant way).

* gladeui/glade-base-editor.c, gladeui/glade-editor-property.c, gladeui/glade-palette-item.c,
gladeui/glade-placeholder.c, gladeui/glade-widget.c, gladeui/glade-inspector.c: Use new
popup function to detect whether to show a context menu or not (bug 587128).

* gladeui/glade-base-editor.c: Fixed crashes with editable treeview column types (bug 586715).
2009-06-29 14:57:28 -04:00
Tristan Van Berkom
ddb3374e1f Oops, removed trailing debug prints. 2009-06-27 18:04:07 -04:00
Tristan Van Berkom
932c9c8aa9 Fixed GtkTextView crashes.
* plugins/gtk+/gtk+.xml.in, glade/gtk+/glade-gtk.c: Fixed GtkTextView crashes when
editing the textview in line, now we update the associated GtkTextBuffer:text property
if available or the GtkTextView:text virtual property when in libglade mode.
2009-06-27 17:59:58 -04:00
Tristan Van Berkom
608a792e39 Enhanced performance wrt GtkAction and GtkActivatable:use-action-appearance in the Glade runtime
(improved usability).

  * plugins/gtk+/glade-gtk.c:
  - Added sync_use_appearance() to reset the use-appearance property when local	widget property
    updates demand that the appearance be resynchronized (this is actually a bug in GTK+ somewhere).
  - Avoid tampering with the virtual GtkBox:size property while loading a project.

  * plugins/gtk+/gtk+.xml.in: Attributed use-action-appearance property with "needs-sync"
  for better chances at a good visual result when copy/pasting etc.

  * plugins/gtk+/glade-activatable-editor.c: Reverse order in which the image is
  removed from GtkImageMenuItems (so that mucking with stock doesnt recreate one
  2 lines further), now image menu items with controlling actions dont get orphaned images.

  * gladeui/glade-widget-adaptor.c: Sync remaining properties at load time
  which were not specified in the glade file (now the use-action-appearance
  property shows up right even if default and not present in the Glade file).
2009-06-25 14:59:01 -04:00
Tristan Van Berkom
537020886d Fixed translatable stock ids (bug 352446)
* plugins/gtk+/glade-gtk.c: glade_gtk_button_write_widget (), make stock
button labels save as non-translatable automatically (bug 352446).
2009-06-25 13:42:55 -04:00
Tristan Van Berkom
3b6eacaae4 Avoid updating widgets with properties floating outside the widget.
* gladeui/glade-property.c: glade_property_sync_impl(), dont sync properties
that are the primary property of that klass for the said widget (properties
can float outside of widget->properties in some cases, shouldnt effect the
widget though).
2009-06-25 13:18:50 -04:00
Tristan Van Berkom
e9c9e54acf Rolling Glade 3.6.6
* configure.ac, NEWS: Rolling Glade 3.6.6
2009-06-22 22:06:00 -04:00
Tristan Van Berkom
e4139f37b4 Introspect lowest possible GTK+ dependancy if the dependancy information is missing
* gladeui/glade-project.c: Added algorythm to introspect lowest possible
version of GTK+ to depend on for a project, this helps cases where the
versioning data is missing, instead of defaulting to latest which may
cause problems for people specifically targetting GTK+ 2.12 (bug 586046).

* plugins/gtk+/gtk+.xml.in: Mark accel-groups property as since GTK+ 2.16.
2009-06-22 21:36:59 -04:00
Tristan Van Berkom
0620f1e70d Make Glade introspect lowest possible version when loading an old unversioned file.
* gladeui/glade-project.c: Added glade_project_introspect_gtk_version() to loop
over loaded project widgets and set the target version when a malformed file
is loaded without a version (bug 572756).
2009-06-22 21:36:03 -04:00
Tristan Van Berkom
9dc7aeaaf3 Fix runtime path resolution on osx.
* gladeui/glade-app.c, gladeui/Makefile.am: Find quartz specific runtime prefix
using ige_mac_bundle_get_path().
2009-06-22 21:19:50 -04:00
Tristan Van Berkom
51a9515f02 Case the GTK+ version and call non-deprecated symbols when in GTK+ 2.16.
* src/glade-window.c: Case the GTK+ version and call non-deprecated symbols when in GTK+ 2.16 (bug 572756).
2009-06-20 13:21:40 -04:00
Tristan Van Berkom
f102cf5cfc Use GtkComboBox instead of deprecated GtkOptionMenu.
* gladeui/glade-xml-utils.h, gladeui/glade-editor-property.c: Use GtkComboBox
instead of deprecated GtkOptionMenu (Sam Thursfield - bug 572756).
2009-06-20 13:07:55 -04:00
Tristan Van Berkom
30dbe49970 Fix usage of deprecated GTK+ symbols (bug 572756)
* src/glade-window.c, gladeui/glade-editor-property.c,
plugins/gtk+/glade-accels.c, plugins/gtk+/glade-cell-renderer-button.c,
plugins/gtk+/glade-gtk.c:
Replace use of deprecated GTK+ functions (Sam Thursfield - bug 572756).
2009-06-20 12:59:23 -04:00
Tristan Van Berkom
b02be58e94 Fix deprecated symbols (bug 572756)
* gladeui/glade-clipboard-view.c, gladeui/glade-command.c, gladeui/glade-property-class.c,
gladeui/glade-utils.c, plugins/gtk+/glade-gtk.c: Replaced symbols with new glib
variants (Sam Thursfield - bug 572756)
2009-06-20 12:51:01 -04:00
Tristan Van Berkom
a862f710db Fixing merge conflict 2009-06-20 11:32:59 -04:00
Tristan Van Berkom
db2769e89d Make Message Dialog text translatable
plugins/gtk+/gtk+.xml.in: Make GtkMessageDialog texts translatable (bug 586063)
2009-06-20 11:21:03 -04:00
James Liggett
020ae58855 * gladeui/glade-widget.c: Fix bug 585860
Make sure that the project view is not NULL in glade_widget_show.
2009-06-18 13:26:22 -07:00
Tristan Van Berkom
decde0ca56 fixing changelog 2009-06-15 12:30:50 -04:00
Tristan Van Berkom
ccd4edefb1 * plugins/gtk+/gtk+.xml.in: Make assistant page-titles translatable (bug 503146), marked since 2.10 on
some assistant properties.

	* gladeui/glade-editor-property.c: show resource dialog button when creating (seems we
	were relying on a show_all() call that isnt called for packing properties).
2009-06-15 12:30:04 -04:00
Tristan Van Berkom
b7ef9f280a * configure.in, NEWS: Rolling Glade 3.6.5 (added more output in configure.ac
config summery).

	* gladeui/glade-project.[ch], gladeui/glade-command.c, gladeui/glade-inspector.c:
	Really fixing widget naming policies again, this time I hope it sticks (bug 580745).

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Fixed dissapearing
	dialogs on ESC (bug 582559)

	* plugins/python/Makefile.am: Fixed relocated link problems with python
	plugin build (bug 582982, patch by Arun Raghavan).
2009-06-12 19:25:22 -04:00
Ivar Smolin
acf30dc9ad Updating Estonian translation 2009-06-12 14:57:39 +03:00
Ivar Smolin
35328e8fde Updating Estonian translation 2009-06-12 02:04:16 +03:00
Tristan Van Berkom
1e3d5d6598 * configure.ac, src/Makefile.am, src/glade-window.c: Use ige-mac-integration
if available for quartz builds (set the menubar as the application menu and
	correctly handle the quit button).
2009-06-11 13:17:34 -04:00
Tristan Van Berkom
9702a3429b adding commit entry and NEWS for 3.6.4 release 2009-06-06 14:23:38 -04:00
Tristan Van Berkom
cd43350649 * plugins/gtk+/glade-gtk.c: Sync up size requests of fixed/layout children
at load time (bug 584334).
2009-06-06 13:49:22 -04:00
Ask H. Larsen
25b00661cd Updated Danish translation 2009-05-30 18:24:08 +02:00
Tristan Van Berkom
703256967d Fixing changelog so it does not indicate a non-existant release of 3.6.4... 2009-05-27 11:31:37 -04:00
Tristan Van Berkom
3b8b7e8520 * gladeui/glade-base-editor.c, gladeui/glade-inspector.c, gladeui/glade-palette-item.c,
gladeui/glade-placeholder.c, gladeui/glade-widget.c: Made Glade barely usable on the Mac,
	now all popup menus will popup on (GDK_MOD[1-3]_MASK && event->button == 1) as well as
	on (event->button == 3) since Mac is missing the right mouse button and ports X server
	setup doesnt seem to emulate it.

	* gladeui/glade-property-class.c: Add me to authors.
2009-05-27 11:30:50 -04:00
Tristan Van Berkom
9c1d7b93c9 Rolling 3.6.4 release 2009-05-27 11:29:46 -04:00
Antón Méixome
6624239dce Updated Galician Translation. 2009-05-18 14:41:34 +02:00
Juan Pablo Ugarte
e28fd448e1 * gladeui/glade-base-editor.c: fixed bug in glade_base_editor_add_default_properties()
It was setting the wrong type model.

* gladeui/glade-widget-adaptor.c: use parent icon if none is found for the class
  This helps a lot for custom composite widget.
2009-05-17 17:26:24 -03:00
Jennie Petoumenou
c3b47bdd38 Updated Greek translation 2009-05-08 17:47:21 +01:00
Jorge Gonzalez
e3a029c22f Updated Spanish translation 2009-05-04 00:06:12 +02:00
David Planella
6112efac2b Updated Catalan translation by Gil Forcada and David Planella 2009-05-02 14:09:40 +02:00
Tristan Van Berkom
0f372f4c1b * gladeui/glade-project.c: Check project naming policy at add_object() time (bug 580745). 2009-04-29 11:25:59 -04:00
Maxim V. Dziumanenko
34b21ae0e6 Updated Ukrainian translation 2009-04-28 12:48:57 +03:00
Juan Pablo Ugarte
f86b49b362 * plugins/gtk+/glade-gtk.c:
o fixed icon source state write bug on write_icon_sources()
  o fixed loading bug in glade_gtk_icon_factory_read_sources()
    we either use g_list_append() or steal/insert to add new icon sources
2009-04-24 21:56:04 -03:00
Tristan Van Berkom
fc99cccb08 * NEWS, configure.ac: Rolling 3.6.3
* plugins/gtk+/gtk+.xml.in: Removed buggy query dialog from notebook (closing bug 578727).
2009-04-22 10:29:57 -04:00
Tristan Van Berkom
66e31dd00b * src/glade-window.c: Removed hard coded size request to palette (Bug 579624)
(added some default pane positions).
2009-04-22 09:55:56 -04:00
Tristan Van Berkom
73b06a15d3 2009-04-22 Tristan Van Berkom <tvb@gnome.org>
* plugins/gtk+/glade-gtk.c: Made Atk proxy objects always have unique names (at
	least as unique as the widget they are created for) (bug 579565).

2009-04-22  Davyd Madeley <davyd@madeley.id.au>

	* plugins/gtk+/glade-gtk.c: Fixed output format for GtkLabel attributes (bug 579793).
2009-04-22 09:28:46 -04:00
Juan Pablo Ugarte
1ca1df8f07 * doc/gladepython.sgml: added Glade Python plugin documentation.
* doc/gladeui-docs.sgml, doc/Makefile.am: added reference to the new docs.
2009-04-21 22:09:40 -03:00
Davyd Madeley
83c69f0591 Add DOAP file 2009-04-21 13:32:39 +08:00
Tristan Van Berkom
ec6f436fb2 * plugins/gtk+/gtk+.xml.in: Fixed GtkButton to only allow real stock items,
gave GtkImage a default icon-size of GTK_ICON_SIZE_BUTTON (better than invalid).
2009-04-18 16:27:11 -04:00
Tristan Van Berkom
702933ef37 ...more selection paranoia.. 2009-04-18 14:58:44 -04:00
Tristan Van Berkom
b15f23e0c0 * plugins/gtk+/glade-activatable-editor.c,
gladeui/glade-editor-property.c: Maintain current widget selection
	during commits of related-action (was causing crashes when the
	selection changed as a result of a commit, bug 578869).
2009-04-18 14:51:29 -04:00
Tristan Van Berkom
8d4298272d Bumping required GTK+ version in the .pc and rolling 3.6.2.
* configure.ac, NEWS, data/gladeui.pc.in: Bumping
	required GTK+ version in the .pc and rolling 3.6.2.


svn path=/trunk/; revision=2189
2009-04-16 03:50:33 +00:00
Tristan Van Berkom
bd3329123a Added glade_gtk_cell_renderer_read_widget() and now
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: 
	Added glade_gtk_cell_renderer_read_widget() and now
	glade_gtk_cell_layout_read_child() doesnt load attributes
	if the object property has been explicitly specified in
	the Glade file (fixes bug 566928).


svn path=/trunk/; revision=2188
2009-04-15 19:11:19 +00:00
Jorge Gonzalez Gonzalez
189fb384af Updated Spanish translation
svn path=/trunk/; revision=2187
2009-04-12 14:23:57 +00:00
Nickolay V. Shmyrev
ba987003b5 Запускаете
svn path=/trunk/; revision=2186
2009-04-11 23:56:03 +00:00
Goran Rakic
2b3feb8938 Updated Serbian translation (by Milan Skocic)
svn path=/trunk/; revision=2185
2009-04-10 10:26:26 +00:00
Goran Rakic
ecd5790152 Updated Serbian translation (by Milan Skocic)
svn path=/trunk/; revision=2184
2009-04-10 10:25:47 +00:00
Tristan Van Berkom
d63417b80c GtkWindow adaptor was skipping GtkWidget adaptor when chaining up in
* plugins/gtk+/glade-gtk.c: GtkWindow adaptor was skipping GtkWidget
	adaptor when chaining up in ->write_widget() (causeing atk props,
	accelerators and signals in libglade to be missed - bug 578211).


svn path=/trunk/; revision=2183
2009-04-07 16:24:34 +00:00
Tristan Van Berkom
790e55c9e9 Rolling 3.6.1
* NEWS, configure.ac: Rolling 3.6.1
	
	* gladeui/glade-command.c: Fix win32 crasher (bug 575206) again (seems
	I missed it was klass->name that was null, fixed it so it would never
	be null, and added g_assert() where the crash was.

	* gladeui/glade-widget.c: Fix broken hash table maintenence in 
	glade_widget_remove_property() (bug 575885).


svn path=/trunk/; revision=2181
2009-04-06 16:39:24 +00:00
Petr Kovar
0ef04df245 Fixed Czech translation.
2009-03-31  Petr Kovar  <pknbe@volny.cz>

	* cs.po: Fixed Czech translation.

svn path=/trunk/; revision=2180
2009-03-31 14:09:48 +00:00
Andre Klapper
3f4f974b65 Updated Czech translation by Václav Švejcar.
2009-03-30  Andre Klapper  <a9016009@gmx.de>

	* cs.po: Updated Czech translation by Václav Švejcar.


svn path=/trunk/; revision=2179
2009-03-30 14:26:15 +00:00
Tristan Van Berkom
9a9719325c Fixed Mal-ordering of atk properties, signals and accelerators in Libglade
Fixed Mal-ordering of atk properties, signals and accelerators in
	Libglade format output.
	
	* gladeui/glade-widget.[ch]: Now export glade_widget_write_signals(),
	only write signals from the core when in builder format.

	* plugins/gtk+/glade-gtk.c: glade_gtk_widget_write_widget(), write
	properties out as "properties -> atk -> signals -> accelerators when
	in libglade format, leave signals to core when in builder format.


svn path=/trunk/; revision=2178
2009-03-25 15:31:12 +00:00
Tristan Van Berkom
708b5afc20 Fix broken hash table maintenence in glade_widget_remove_property() (bug
* gladeui/glade-widget.c: Fix broken hash table maintenence in 
	glade_widget_remove_property() (bug 575885).


svn path=/trunk/; revision=2177
2009-03-23 00:48:29 +00:00
Tristan Van Berkom
8f28813497 Fix win32 crasher (bug 575206) again (seems I missed it was klass->name
* gladeui/glade-command.c: Fix win32 crasher (bug 575206) again (seems
	I missed it was klass->name that was null, fixed it so it would never
	be null, and added g_assert() where the crash was


svn path=/trunk/; revision=2176
2009-03-23 00:17:23 +00:00
Tristan Van Berkom
8ed32ac994 fixed a little win32 crasher
svn path=/trunk/; revision=2175
2009-03-22 01:48:37 +00:00
Matej Urbančič
8a03314ede Updated Slovenian translation
svn path=/trunk/; revision=2174
2009-03-18 13:59:46 +00:00
Djihed Afifi
eb742fc74e Updated Arabic translation
svn path=/trunk/; revision=2173
2009-03-18 09:22:44 +00:00
Matej Urbančič
9aa90a5a3b Updated Slovenian translation
svn path=/trunk/; revision=2172
2009-03-16 18:43:32 +00:00
Tristan Van Berkom
12ca59bc8c Rolling Glade 3.6.0
* NEWS, configure.ac: Rolling Glade 3.6.0

	* gladeui/glade-command.c: Remove widgets from their project before removing
	  them from their parents (fixes bug 567809)

	* src/glade-window.c: Dont access NULL GError when glade_project_save()
	  returns FALSE with no error (user canceled save) (Fixed bug 574706).


svn path=/trunk/; revision=2170
2009-03-16 18:09:51 +00:00
Rajesh Ranjan
cae4992048 maithili added
svn path=/trunk/; revision=2169
2009-03-16 07:26:16 +00:00
Takeshi AIHANA
609dc28665 Updated Japanese translation.
2009-03-16  Takeshi AIHANA <takeshi.aihana@gmail.com>

	* ja.po: Updated Japanese translation.

svn path=/trunk/; revision=2168
2009-03-15 23:03:21 +00:00
Kostas Papadimas
397eb11ffd Updated Greek Translation by Jennie Petoumenou.
svn path=/trunk/; revision=2167
2009-03-14 15:41:49 +00:00
Claude Paroz
c044c4381f Updated French translation.
2009-03-14  Claude Paroz  <claude@2xlibre.net>

	* fr.po: Updated French translation.

svn path=/trunk/; revision=2166
2009-03-14 10:49:17 +00:00
Gabor Kelemen
d3d0934385 Translation updated.
2009-03-14  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.
	

svn path=/trunk/; revision=2165
2009-03-14 10:30:44 +00:00
Kenneth Nielsen
5a1644b177 Updated Danish translation
svn path=/trunk/; revision=2164
2009-03-14 03:46:43 +00:00
Nickolay V. Shmyrev
4609c809d5 Updated Russian translation.
2009-03-13  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

	* ru.po: Updated Russian translation.


svn path=/trunk/; revision=2163
2009-03-13 23:09:51 +00:00
Ani Peter
5f571ef774 Updated Malayalam Translation
svn path=/trunk/; revision=2162
2009-03-13 20:14:54 +00:00
Ani Peter
32196241ac Updated Malayalam Translation
svn path=/trunk/; revision=2161
2009-03-13 20:14:42 +00:00
Ignacio Casal Quinteiro
5c052f3434 Updated Galician translation
svn path=/trunk/; revision=2160
2009-03-13 18:15:19 +00:00
Hendrik Richter
cc2784631e Updated German translation.
2009-03-13  Hendrik Richter  <hendrikr@gnome.org>

	* de.po: Updated German translation.

svn path=/trunk/; revision=2159
2009-03-13 15:49:52 +00:00
Hendrik Richter
da48bf7c28 Updated German translation.
2009-03-11  Hendrik Richter  <hendrikr@gnome.org>

	* de.po: Updated German translation.

svn path=/trunk/; revision=2158
2009-03-11 20:45:52 +00:00
Krishnababu Krothapalli
7a240f3cdc Updated Telugu Translaiton
svn path=/trunk/; revision=2157
2009-03-11 12:39:46 +00:00
Krishnababu Krothapalli
70478aa292 Updated Changelog entry
svn path=/trunk/; revision=2156
2009-03-11 12:39:00 +00:00
Gintautas Miliauskas
cd7b64e0b0 Updated Lithuanian translation.
2009-03-11  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Updated Lithuanian translation.



svn path=/trunk/; revision=2155
2009-03-10 23:24:57 +00:00
Duarte Loreto
08263ad72c Updated Portuguese translation.
2009-03-10  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=2154
2009-03-10 23:15:01 +00:00
Manoj Kumar Giri
f7222ea71a Added entries for Oriya language Translation updation.
svn path=/trunk/; revision=2153
2009-03-10 15:44:22 +00:00
Manoj Kumar Giri
a4b8ba5483 Updated Oriya Translation.
svn path=/trunk/; revision=2152
2009-03-10 15:43:05 +00:00
Juan Pablo Ugarte
e77fdc7ac6 reverted fix for bug #573513. (bug #574260)
* gladeui/glade-property.c: reverted fix for bug #573513. (bug #574260)

* plugins/gtk+/glade-gtk.c: fixed bug #573513 again.

svn path=/trunk/; revision=2151
2009-03-09 18:50:25 +00:00
Petr Kovar
e3b5d91e87 Updated Czech translation.
2009-03-08  Petr Kovar  <pknbe@volny.cz>

	* cs.po: Updated Czech translation.

svn path=/trunk/; revision=2150
2009-03-08 20:03:25 +00:00
miloc
e6d7bc2079 Updated Italian translation by Andrea Zagli
svn path=/trunk/; revision=2149
2009-03-07 15:55:26 +00:00
Jorge Gonzalez Gonzalez
f428d8da6b Updated Spanish translation
svn path=/trunk/; revision=2148
2009-03-05 22:22:12 +00:00
Theppitak Karoonboonyanan
84adf48246 Updated Thai translation.
2009-03-05  Theppitak Karoonboonyanan  <thep@linux.thai.net>

	* th.po: Updated Thai translation.


svn path=/trunk/; revision=2147
2009-03-05 07:38:43 +00:00
Daniel Nylander
a67ae40d53 sv.po: Updated Swedish translation
svn path=/trunk/; revision=2146
2009-03-05 00:03:54 +00:00
Gabor Kelemen
5c67935dbe Translation updated.
2009-03-03  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.
	

svn path=/trunk/; revision=2145
2009-03-03 18:16:09 +00:00
Philip Withnall
93c5a74da8 Updated British English translation.
2009-03-03  Philip Withnall  <philip@tecnocode.co.uk>

	* en_GB.po: Updated British English translation.


svn path=/trunk/; revision=2144
2009-03-03 17:38:20 +00:00
Og B. Maciel
401724b3dc Updated Brazilian Portuguese translation.
svn path=/trunk/; revision=2143
2009-03-03 03:50:00 +00:00
Juan Pablo Ugarte
776cc8d94a reverted string changes, i hope i did not miss anything
svn path=/trunk/; revision=2142
2009-03-02 23:55:24 +00:00
Juan Pablo Ugarte
2caf195780 fixed typos, bugs #571884 and #571867
* plugins/gtk+/glade-label-editor.c, plugins/gtk+/glade-store-editor.c,
  plugins/gtk+/glade-icon-sources.c: fixed typos, bugs #571884 and #571867

* plugins/gtk+/gtk+.xml.in: fixed typos, and mark missing translatable strings
  bugs #573661, #571861

* gladeui/glade-property.c: do not write disabled props on
  glade_property_write() fixes bug #573513

* plugins/gtk+/glade-gtk.c: added convenience function 
  glade_gtk_container_create_editable() to disable custom editables part of bug #573513.

* gladeui/glade-signal-editor.c: fixed Bug #573453
  "Signal connect-after is not functional." using Ryu Jinno`s patch as reference.

svn path=/trunk/; revision=2141
2009-03-02 22:54:39 +00:00
Daniel Nylander
baebd78166 sv.po: Updated Swedish translation
svn path=/trunk/; revision=2140
2009-03-02 09:15:44 +00:00
Daniel Nylander
6967c87fec sv.po: Updated Swedish translation
svn path=/trunk/; revision=2139
2009-03-02 09:13:44 +00:00
Daniel Nylander
d7c38a2cfd sv.po: Updated Swedish translation
svn path=/trunk/; revision=2138
2009-03-02 08:54:32 +00:00
Daniel Nylander
fc224f9ce0 sv.po: Updated Swedish translation
svn path=/trunk/; revision=2137
2009-03-02 08:52:18 +00:00
Nickolay V. Shmyrev
d379539fee Updated Russian translation.
2009-03-01  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

	* ru.po: Updated Russian translation.


svn path=/trunk/; revision=2136
2009-03-01 18:42:03 +00:00
Nickolay V. Shmyrev
3b8e16b709 Updated Russian translation.
2009-03-01  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

	* ru.po: Updated Russian translation.


svn path=/trunk/; revision=2135
2009-03-01 18:35:54 +00:00
Ilkka Tuohela
8d40815c39 Updated Finnish translation
svn path=/trunk/; revision=2134
2009-02-28 16:27:41 +00:00
Jorge Gonzalez Gonzalez
f648857881 Updated Spanish translation
svn path=/trunk/; revision=2133
2009-02-28 12:24:57 +00:00
Jorge Gonzalez Gonzalez
b5640af6fe Updated Spanish translation
svn path=/trunk/; revision=2132
2009-02-28 11:59:43 +00:00
Jorge Gonzalez Gonzalez
88a07467e8 Updated Spanish translation
svn path=/trunk/; revision=2131
2009-02-28 11:20:31 +00:00
Jorge Gonzalez Gonzalez
f29210a841 Updated Spanish translation
svn path=/trunk/; revision=2130
2009-02-28 11:07:46 +00:00
Christian Kirbach
721b6db968 Updated German translation.
* de.po: Updated German translation.

svn path=/trunk/; revision=2129
2009-02-24 23:49:07 +00:00
Simos Xenitellis
aab0ef1886 Added Greek translation (Marios Zindilis)
svn path=/trunk/; revision=2128
2009-02-24 18:03:51 +00:00
Mario Blättermann
eb5b446a98 Added German doc translation
svn path=/trunk/; revision=2127
2009-02-24 11:10:56 +00:00
Gabor Kelemen
7186dad535 Translation updated.
2009-02-23  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.

svn path=/trunk/; revision=2126
2009-02-23 16:52:44 +00:00
Baris Cicek
f7f3f2f5bb Updated Turkish Translation
svn path=/trunk/; revision=2125
2009-02-21 13:33:29 +00:00
Philip Withnall
ee40a48dbd Updated British English translation.
2009-02-20  Philip Withnall  <philip@tecnocode.co.uk>

	* en_GB.po: Updated British English translation.


svn path=/trunk/; revision=2124
2009-02-20 23:35:22 +00:00
Raivis Dejus
a9d3f861c5 updated latvian translation
svn path=/trunk/; revision=2123
2009-02-19 11:49:09 +00:00
Raivis Dejus
6b46e84144 Added 'lv' (latvian) entry. Add latvian translation.
2009-02-19  Raivis Dejus  <orvils@gmail.com>

	* LINGUAS: Added 'lv' (latvian) entry.
	* lv.po: Add latvian translation.


svn path=/trunk/; revision=2122
2009-02-19 11:47:57 +00:00
Inaki Larranaga Murgoitio
1a290c4b33 Added image in Basque language.
2009-02-17  Inaki Larranaga Murgoitio  <dooteo@euskalgnu.org>

	* eu/figures/main-window.png: Added image in Basque language.


svn path=/trunk/; revision=2121
2009-02-17 15:31:33 +00:00
Changwoo Ryu
e001cee90c Updated Korean translation
svn path=/trunk/; revision=2120
2009-02-17 03:47:24 +00:00
Inaki Larranaga Murgoitio
5bed237ae3 Added 'eu' for Basque in DOC_LINGUAS. Added Basque translation.
2009-02-16  Inaki Larranaga Murgoitio  <dooteo@euskalgnu.org>

        * Makefile.am: Added 'eu' for Basque in DOC_LINGUAS.
        * eu/eu.po: Added Basque translation.

svn path=/trunk/; revision=2119
2009-02-16 11:57:08 +00:00
Iñaki Larrañaga Murgoitio
869674487b svn path=/trunk/; revision=2118
svn path=/trunk/; revision=2118
2009-02-16 11:55:50 +00:00
Jorge Gonzalez Gonzalez
3ce7e7a1d3 Updated Spanish translation
svn path=/trunk/; revision=2116
2009-02-16 09:25:40 +00:00
Daniel Nylander
532063352d sv.po: Updated Swedish translation
svn path=/trunk/; revision=2115
2009-02-14 23:08:57 +00:00
Kenneth Nielsen
20c6a3210b Updated Danish translation
svn path=/trunk/; revision=2114
2009-02-14 03:16:09 +00:00
Gabor Kelemen
83cc2fa509 Translation updated.
2009-02-12  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.

svn path=/trunk/; revision=2113
2009-02-12 13:48:40 +00:00
Inaki Larranaga Murgoitio
754e5a29a0 Added 'eu' (Basque) entry. Add Basque translation.
2009-02-10  Inaki Larranaga Murgoitio  <dooteo@euskalgnu.org>

	* LINGUAS: Added 'eu' (Basque) entry.
	* eu.po: Add Basque translation.


svn path=/trunk/; revision=2112
2009-02-10 12:10:53 +00:00
Clytie Siddall
d0b490d4ed Updated Vietnamese translation
svn path=/trunk/; revision=2111
2009-02-10 07:58:12 +00:00
Jonh Wendell
9dde1b0783 Updated Brazilian Portuguese translation by Igor Soares.
2009-02-09  Jonh Wendell <jwendell@gnome.org>

	* pt_BR.po: Updated Brazilian Portuguese translation by Igor Soares.


svn path=/trunk/; revision=2110
2009-02-09 17:31:15 +00:00
Jonh Wendell
1da7dfb46c Set the svn:ignore property.
2009-02-09  Jonh Wendell <jwendell@gnome.org>

	* lots of directories: Set the svn:ignore property.


svn path=/trunk/; revision=2109
2009-02-09 17:26:58 +00:00
Claude Paroz
862b3aebb5 Updated French translation.
2009-02-06  Claude Paroz  <claude@2xlibre.net>

	* fr.po: Updated French translation.

svn path=/trunk/; revision=2108
2009-02-06 20:46:21 +00:00
Tristan Van Berkom
082b62cfd1 fixing news typo
svn path=/trunk/; revision=2106
2009-02-05 19:48:37 +00:00
Tristan Van Berkom
c5e3c607fd Rolling Glade 3.5.7
* NEWS: Rolling Glade 3.5.7


svn path=/trunk/; revision=2104
2009-02-05 19:47:06 +00:00
Tristan Van Berkom
5af63e5874 Added "commit" signal to allow custom editors to do command group/macros
* gladeui/glade-editor-property.c: Added "commit" signal to allow custom editors to do
	command group/macros serialized around property changes.

	* plugins/gtk+/glade-activatable-editor.[ch], plugins/gtk+/Makefile.am, po/POTFILES.in:
	New activatable editor to handle activatable properties in smart ways.

	* plugins/gtk+/glade-gtk.c: Made various properties insensitive when activatable
	properties are in effect.

	* plugins/gtk+/glade-tool-button-editor.c: Made tables insensitive when activatable
	properties are in effect.

	* plugins/gtk+/glade-button-editor.c: Allow use of use-stock choice while activatable
	properties are in effect.



svn path=/trunk/; revision=2103
2009-02-05 17:47:10 +00:00
Jonh Wendell
00cceaccba Updated Brazilian Portuguese translation.
2009-01-28  Jonh Wendell <jwendell@gnome.org>

	* pt_BR.po: Updated Brazilian Portuguese translation.


svn path=/trunk/; revision=2102
2009-01-28 17:13:53 +00:00
Tristan Van Berkom
21efc28202 Updated and virtualized properties from gtk+ 2.16
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Updated and virtualized properties from gtk+ 2.16


svn path=/trunk/; revision=2101
2009-01-27 22:32:46 +00:00
Tristan Van Berkom
f8dc325b55 Bumping version for Anjuta dependancy
2009-01-27  Tristan Van Berkom <tvb@gnome.org>

	* configure.ac: Bumping version for Anjuta dependancy

	* plugins/gtk+/gtk+.xml.in: Added some metadata about GtkAction
	
2009-01-23  Tristan Van Berkom <tvb@gnome.org>

	* plugins/gtk+/glade-entry-editor.c, plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: 
	updated for new GtkEntry property name changes.


svn path=/trunk/; revision=2100
2009-01-27 21:15:59 +00:00
Ilkka Tuohela
bd39a1e078 Updated Finnish translation
svn path=/trunk/; revision=2099
2009-01-27 03:41:28 +00:00
Andre Klapper
981793f402 Updated German translation.
2009-01-25  Andre Klapper  <a9016009@gmx.de>

	* de.po: Updated German translation.


svn path=/trunk/; revision=2098
2009-01-25 19:07:52 +00:00
Jorge Gonzalez Gonzalez
0652308838 Updated Spanish translation
svn path=/trunk/; revision=2097
2009-01-23 16:00:39 +00:00
Changwoo Ryu
a6b75da168 Updated Korean translation
svn path=/trunk/; revision=2096
2009-01-23 06:39:02 +00:00
Yair Hershkovitz
2daa8b6bfc updated hebrew translation
svn path=/trunk/; revision=2095
2009-01-21 13:15:43 +00:00
Juan Pablo Ugarte
9f6a673227 added GladeDesignLayout::widget-event signal. Patch by Pavel Kostyuchenko
* gladeui/glade-design-layout.[ch]: added GladeDesignLayout::widget-event
  signal. Patch by Pavel Kostyuchenko (bug 542337).

* gladeui/glade-accumulators.[ch]: added glade_integer_handled_accumulator()

* gladeui/glade-signal-editor.[ch], gladeui/glade-signal-editor.[ch],
  gladeui/glade-app.[ch], src/glade-window.c: 
  "Improvement of GladeSignalEditor" Bug 540691 by Pavel Kostyuchenko.

* plugins/gnome/glade-gnome.c: Fixed compiler warnings in
  glade_gnome_bonobodockitem_get_props()

svn path=/trunk/; revision=2094
2009-01-20 22:25:11 +00:00
Hendrik Richter
ba8042e318 Updated German translation.
2009-01-20  Hendrik Richter  <hendrikr@gnome.org>

	* de.po: Updated German translation.

svn path=/trunk/; revision=2093
2009-01-20 20:45:49 +00:00
Hendrik Richter
f246e6209d Updated German translation.
2009-01-20  Hendrik Richter  <hendrikr@gnome.org>

	* de.po: Updated German translation.

svn path=/trunk/; revision=2092
2009-01-20 20:45:18 +00:00
Tristan Van Berkom
0236ffa38b Rolling Glade 3.5.
* NEWS, configure.ac: Rolling Glade 3.5.

	* po/POTFILES.in: Added glade-entry-editor.c


svn path=/trunk/; revision=2090
2009-01-19 19:00:55 +00:00
Kjartan Maraas
4cd3702ad3 Updated Norwegian bokmål translation.
2009-01-19  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=2089
2009-01-19 10:57:20 +00:00
Matej Urbančič
b9ef4bd3ad Updated Slovenian translation
svn path=/trunk/; revision=2088
2009-01-16 17:27:42 +00:00
Tristan Van Berkom
102b99c7e8 some unfinished work
svn path=/trunk/; revision=2087
2009-01-15 17:02:39 +00:00
Tristan Van Berkom
08db7bc56d Added file chooser dialog to pixbuf properties (bug 567817).
* gladeui/glade-editor-property.[ch]: Added file chooser dialog
	to pixbuf properties (bug 567817).


svn path=/trunk/; revision=2086
2009-01-15 17:01:37 +00:00
Og B. Maciel
617e836b08 Updated Brazilian Portuguese translation.
svn path=/trunk/; revision=2085
2009-01-15 14:40:07 +00:00
Tristan Van Berkom
c641d481ae Added new editor for GtkEntry with radio buttons for its mutually
* plugins/gtk+/Makefile.am, plugins/gtk+/gtk+.xml.in, 
	plugins/gtk+/glade-entry-editor.[ch]: Added new editor
	for GtkEntry with radio buttons for its mutually exclusive
	icon properties.


svn path=/trunk/; revision=2084
2009-01-15 02:19:41 +00:00
Kjartan Maraas
7919ef39fc Try to fix this
svn path=/trunk/; revision=2083
2009-01-12 12:40:21 +00:00
Kjartan Maraas
94380e01e7 Updated Norwegian bokmål translation.
2009-01-07  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=2082
2009-01-07 11:11:46 +00:00
Jorge Gonzalez Gonzalez
2b0d0b1b1d Updated Spanish translation
svn path=/trunk/; revision=2081
2009-01-06 10:08:32 +00:00
Juan Pablo Ugarte
949562ffa8 Rolling 3.5.5
* NEWS, configure.ac: Rolling 3.5.5

svn path=/trunk/; revision=2079
2009-01-05 21:30:25 +00:00
Juan Pablo Ugarte
697efdef42 call gtk_tree_view_expand_all() in glade_inspector_set_project()
* gladeui/glade-inspector.c: call gtk_tree_view_expand_all() in
  glade_inspector_set_project() 

svn path=/trunk/; revision=2078
2009-01-05 20:47:33 +00:00
Juan Pablo Ugarte
4d676890d1 fixed Bug #525839 "Glade hangs in toolbar editor" replaced assert with if
* gladeui/glade-widget.c: fixed Bug #525839 "Glade hangs in toolbar editor"
  replaced assert with if statement in glade_widget_copy_properties()

* gladeui/glade-signal-editor.c: fixed Bug #522542 "glade-3 crashes when
  pressing Enter in signal handler entry field"
  removed unnecessary treeview row-activated handler.

svn path=/trunk/; revision=2077
2009-01-05 20:33:56 +00:00
Tristan Van Berkom
7313fc9a46 Added some important fixes
svn path=/trunk/; revision=2076
2009-01-05 20:07:59 +00:00
Jorge Gonzalez Gonzalez
7eb3b72967 Updated Spanish translation
svn path=/trunk/; revision=2075
2009-01-03 15:23:01 +00:00
Jorge Gonzalez Gonzalez
8600c6ec9f Updated Spanishi translation
svn path=/trunk/; revision=2074
2009-01-02 20:52:25 +00:00
Tristan Van Berkom
0870dc9332 Converted pclass booleans to bitfields, now disabled property classes are
* gladeui/glade-widget-adator.c, gladeui/glade-property-class.[ch]:
	Converted pclass booleans to bitfields, now disabled property classes
	are kept around so that we dont screw up inheritance.

	* gladeui/glade-catalog.[ch]: Fixed version types to guint16.


svn path=/trunk/; revision=2073
2008-12-29 18:14:35 +00:00
Tristan Van Berkom
7976e924c1 Made it possible to tab into the i18n button.
* plugins/gtk+/glade-cell-renderer-button.c: Made it possible
	to tab into the i18n button.

	* plugins/gtk+/glade-model-data.c: Added sequential editing mode option
	(TODO: maybe add this to session data ?)


svn path=/trunk/; revision=2072
2008-12-29 17:23:05 +00:00
Jorge Gonzalez Gonzalez
3bbd605cbf Updated Spanish translation
svn path=/trunk/; revision=2071
2008-12-27 11:40:28 +00:00
Tristan Van Berkom
4492ba3062 Rolling 3.5.4
* NEWS, configure.ac: Rolling 3.5.4


svn path=/trunk/; revision=2069
2008-12-15 21:05:31 +00:00
Przemysław Grzegorczyk
42dc9cffd5 Cleaned up gtk and glib includes to use only toplevel headers. Patch from
2008-12-15  Przemysław Grzegorczyk  <pgrzegorczyk@gmail.com>

	* src/glade-window.c:
	* src/glade-window.h:
	* gladeui/glade-palette-box.h:
	* gladeui/glade-design-view.h:
	* gladeui/glade-design-layout.h:
	* gladeui/glade-palette-expander.c:
	* gladeui/glade-palette-expander.h:
	* gladeui/glade-widget-adaptor.c:
	* gladeui/glade-palette-item.c:
	* gladeui/glade-palette-item.h:
	* gladeui/glade-palette.h:
	* gladeui/glade-named-icon-chooser-dialog.h:
	* gladeui/glade-app.c:
	* gladeui/glade-property-class.h: Cleaned up gtk and glib includes
	to use only toplevel headers. Patch from Maxim Ermilov. Bug #561260.

svn path=/trunk/; revision=2068
2008-12-15 16:56:51 +00:00
Tristan Van Berkom
c3d6e7105c fixed focus again.
svn path=/trunk/; revision=2067
2008-12-13 06:39:25 +00:00
Tristan Van Berkom
c953aadc3c Removed old search code.
* gladeui/glade-inspector.c: Removed old search code.
	
	* plugins/gtk+/gtk+.xml.in: Added missing displayable values.
	
	* plugins/gtk+/glade-column-types.c: Fixed crashers on empty input, keep focus on
	current cell when editing is canceled.

	* plugins/gtk+/glade-model-data.c: keep focus on current cell when editing is canceled.


svn path=/trunk/; revision=2066
2008-12-13 06:13:20 +00:00
Tristan Van Berkom
aa044addc8 Relicensed LGPL.
* gladeui/glade-name-context.[ch], gladeui/glade-editable.[ch]: Relicensed LGPL.

	* plugins/gtk+/glade-image-editor.c, plugins/gtk+/glade-image-item-editor.c,
	plugins/gtk+/glade-button-editor.c, plugins/gtk+/glade-label-editor.c,
	plugins/gtk+/glade-cell-renderer-editor.c, plugins/gtk+/glade-tool-button-editor.c,
	gladeui/glade-editor-table.c, gladeui/glade-base-editor.c: 
	Now editable portions of properties dont expand in tables, leaving more freedom 
	for labels to expand in tight spots, no more item_labels in radio buttons (they dont expand).

	* gladeui/glade-widget-adaptor.c: Fixed regression, now disabled classes are not
	reinstalled in subclasses.


svn path=/trunk/; revision=2065
2008-12-11 07:01:29 +00:00
Michael Gratton
cf4628150c Rolling 3.5.3
* NEWS, configure.ac: Rolling 3.5.3

2008-12-09  Michael Gratton  <mike@vee.net>

	* gladeui/glade-property-class.c: Change spin button page size to
	0 for numeric property values editorsm, stops a lot of GTK
	warnings.


svn path=/trunk/; revision=2063
2008-12-09 22:43:47 +00:00
Juan Pablo Ugarte
0a39a2e0d6 Added new icon files, most of them are a combination of other icons.
2008-12-09  Juan Pablo Ugarte <juanpablougarte@gmail.com>
	
	* plugins/gtk+/icons/22x22/widget-gtk-uimanager.png,
	plugins/gtk+/icons/22x22/widget-gtk-cellrenderertoggle.png,
	plugins/gtk+/icons/22x22/widget-gtk-entrycompletion.png,
	plugins/gtk+/icons/22x22/widget-gtk-cellrendererprogress.png,
	plugins/gtk+/icons/22x22/widget-gtk-recentaction.png,
	plugins/gtk+/icons/22x22/widget-gtk-windowgroup.png,
	plugins/gtk+/icons/22x22/widget-gtk-cellrendereraccel.png,
	plugins/gtk+/icons/22x22/widget-gtk-volumebutton.png,
	plugins/gtk+/icons/22x22/widget-gtk-treestore.png,
	plugins/gtk+/icons/22x22/widget-gtk-cellrendererpixbuf.png,
	plugins/gtk+/icons/22x22/widget-gtk-liststore.png,
	plugins/gtk+/icons/22x22/widget-gtk-cellrendererspin.png,
	plugins/gtk+/icons/22x22/widget-gtk-cellrenderertext.png,
	plugins/gtk+/icons/22x22/widget-gtk-iconfactory.png,
	plugins/gtk+/icons/22x22/widget-gtk-scalebutton.png,
	plugins/gtk+/icons/22x22/widget-gtk-cellrenderercombo.png
	plugins/gtk+/icons/16x16/widget-gtk-cellrenderertoggle.png,
	plugins/gtk+/icons/16x16/widget-gtk-treeviewcolumn.png,
	plugins/gtk+/icons/16x16/widget-gtk-entrycompletion.png,
	plugins/gtk+/icons/16x16/widget-gtk-cellrendererprogress.png,
	plugins/gtk+/icons/16x16/widget-gtk-recentaction.png,
	plugins/gtk+/icons/16x16/widget-gtk-windowgroup.png,
	plugins/gtk+/icons/16x16/widget-gtk-cellrendereraccel.png,
	plugins/gtk+/icons/16x16/widget-gtk-volumebutton.png,
	plugins/gtk+/icons/16x16/widget-gtk-treestore.png,
	plugins/gtk+/icons/16x16/widget-gtk-cellrendererpixbuf.png,
	plugins/gtk+/icons/16x16/widget-gtk-liststore.png,
	plugins/gtk+/icons/16x16/widget-gtk-cellrendererspin.png,
	plugins/gtk+/icons/16x16/widget-gtk-cellrenderertext.png,
	plugins/gtk+/icons/16x16/widget-gtk-iconfactory.png,
	plugins/gtk+/icons/16x16/widget-gtk-scalebutton.png,
	plugins/gtk+/icons/16x16/widget-gtk-cellrenderercombo.png:
	Added new icon files, most of them are a combination of other icons.

	* plugins/gtk+/icons/22x22/widget-gtk-action.png,
	  plugins/gtk+/icons/22x22/widget-gtk-actiongroup.png,
	  plugins/gtk+/icons/22x22/widget-gtk-radioaction.png,
	  plugins/gtk+/icons/22x22/widget-gtk-toggleaction.png,
	  plugins/gtk+/icons/16x16/widget-gtk-action.png,
	  plugins/gtk+/icons/16x16/widget-gtk-actiongroup.png,
	  plugins/gtk+/icons/16x16/widget-gtk-radioaction.png,
	  plugins/gtk+/icons/16x16/widget-gtk-toggleaction.png:
	  new icons by Mike Gratton <mike@vee.net> bug #561979


svn path=/trunk/; revision=2062
2008-12-09 19:25:03 +00:00
Tristan Van Berkom
a1f85b847a Updated to reflect current temporary dual licensing scheme, package is to
* COPYING: Updated to reflect current temporary dual licensing scheme, package is to be LGPL, with
	code portions that are still marked as GPL until they can be relicensed, both licenses are included
	in the package already.

	* plugins/gtk+/glade-store-editor.h plugins/gtk+/glade-icon-factory-editor.h
	plugins/gtk+/glade-image-item-editor.c plugins/gtk+/glade-image-editor.c plugins/gtk+/glade-image-item-editor.h
	plugins/gtk+/glade-model-data.c plugins/gtk+/glade-icon-sources.c plugins/gtk+/glade-tool-button-editor.c
	plugins/gtk+/glade-image-editor.h plugins/gtk+/glade-model-data.h plugins/gtk+/glade-icon-sources.h
	plugins/gtk+/glade-tool-button-editor.h plugins/gtk+/glade-text-button.c plugins/gtk+/glade-button-editor.c
	plugins/gtk+/glade-column-types.c plugins/gtk+/glade-text-button.h plugins/gtk+/glade-label-editor.c
	plugins/gtk+/glade-column-types.h plugins/gtk+/glade-button-editor.h plugins/gtk+/glade-cell-renderer-editor.c
	plugins/gtk+/glade-label-editor.h plugins/gtk+/glade-cell-renderer-editor.h plugins/gtk+/glade-treeview-editor.c
	plugins/gtk+/glade-convert.c plugins/gtk+/glade-store-editor.c plugins/gtk+/glade-icon-factory-editor.c
	plugins/gtk+/glade-treeview-editor.h: First files to safely be completely relicensed under LGPL.


svn path=/trunk/; revision=2061
2008-12-09 19:14:55 +00:00
Tristan Van Berkom
0c97337671 Bumping gtk+ required version to 2.14
* configure.ac: Bumping gtk+ required version to 2.14

	* gladeui/glade-xml-utils.c, gladeui/glade-widget-adaptor.[ch],
	gladeui/glade-property-class.[ch], gladeui/glade-project.c: Added support
	for "builder-since" versioning (since builder supported this property/widget).

	* plugins/gtk+/gtk+.xml.in: Marked appropriate properties and objects "builder-since"
	and brought up to date new properties and signals introduced in 2.14.

	* gladeui/glade-base-editor.c: Plugged resource leak in finalize().


svn path=/trunk/; revision=2060
2008-12-09 18:46:04 +00:00
Tristan Van Berkom
a2a5cd045b added explanation string in the search entry. "< search widgets >" with
* gladeui/glade-inspector.c: added explanation string in the search entry.
	"< search widgets >" with italic style and insensitive color.


svn path=/trunk/; revision=2059
2008-11-29 05:41:37 +00:00
Tristan Van Berkom
cd5e15cc49 Fixed bug with iface props, they were getting listed once per implementing
* gladeui/glade-widget-adaptor.c: Fixed bug with iface props, they were getting listed
	once per implementing subclass (subclasses of implementors had it listed > 2 times).


svn path=/trunk/; revision=2058
2008-11-28 16:56:41 +00:00
Tristan Van Berkom
20ffe751e3 Added GCompletion/GtkTreeModelFilter to the inspector with a new search
* gladeui/glade-inspector.c: Added GCompletion/GtkTreeModelFilter to the inspector with
	a new search entry.


svn path=/trunk/; revision=2057
2008-11-28 05:32:32 +00:00
Jorge Gonzalez Gonzalez
2a7af8d70e Updated Spanish translation
svn path=/trunk/; revision=2056
2008-11-26 19:36:10 +00:00
Tristan Van Berkom
e16bf17b63 better size allocation for the treeview editor.
svn path=/trunk/; revision=2055
2008-11-25 23:18:04 +00:00
Tristan Van Berkom
6a12e1ac7b Now include signal editor outside notebook, update signal editor on page
* gladeui/glade-base-editor.c: Now include signal editor outside notebook, update signal
	editor on page changes.


svn path=/trunk/; revision=2054
2008-11-25 21:29:23 +00:00
Tristan Van Berkom
ac6045c960 - Renderers watch project format changes and now sync attributes in an
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: 
	  - Renderers watch project format changes and now sync attributes in an idle
	    when moving into builder format (fixes renderer appearance after undo of project
	    conversions).


svn path=/trunk/; revision=2053
2008-11-25 19:01:52 +00:00
Tristan Van Berkom
2ed7671459 Fixed conversions for combo boxes.
* plugins/gtk+/glade-convert.c: Fixed conversions for combo boxes.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: 
	  - Added editor support for Combo Box


svn path=/trunk/; revision=2052
2008-11-25 18:36:41 +00:00
Tristan Van Berkom
21605e922f Added editor support for Icon View.
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added editor support for Icon View.

	* plugins/gtk+/glade-cell-renderer-editor.c: Export a new function to get the model from
	the renderer regardless of the layout type.

	* plugins/gtk+/glade-treeview-editor.c: Now supports editing any view that can have a model,
	and pops up the store editor automatically on the right of the normal widget editor.


svn path=/trunk/; revision=2051
2008-11-25 17:09:00 +00:00
Tristan Van Berkom
0b940e4d7f fixed a remaining crasher...
svn path=/trunk/; revision=2050
2008-11-25 06:20:53 +00:00
Tristan Van Berkom
be4f87989f Fixed check for wrapperless objects returned by adaptor_get_children().
* gladeui/glade-command.c: Fixed check for wrapperless objects returned by adaptor_get_children().


svn path=/trunk/; revision=2049
2008-11-25 05:29:43 +00:00
Tristan Van Berkom
f8371bbb8c Hijack the cntl-n accelerator too now.
* gladeui/glade-utils.c: Hijack the cntl-n accelerator too now.

	* plugins/gtk+/glade-column-types.c, plugins/gtk+/glade-model-data.c, plugins/gtk+/glade-store-editor.c:
	Enhanced model editing, now there is completion in type names, and column types are defined inline
	with no add or delete keys, model data can be edited and navigated without using the pointer either.


svn path=/trunk/; revision=2048
2008-11-25 05:13:54 +00:00
Tristan Van Berkom
59e2219908 - Fixed gtk_image_menu_item_set_stock() to not override the label value if
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: 
	  - Fixed gtk_image_menu_item_set_stock() to not override the label value if not
	    in use_stock mode (fixes missing labels in pasted imagemenuitems).


svn path=/trunk/; revision=2047
2008-11-24 04:18:46 +00:00
Tristan Van Berkom
b2d4144368 - Added load/save support for <action-widgets> of GtkDialog (response ids).
svn path=/trunk/; revision=2046
2008-11-24 02:41:10 +00:00
Tristan Van Berkom
a10762dcfa Now add/remove parentless widget props from the project in
* gladeui/glade-command.c: Now add/remove parentless widget props from the project in 
	  command_add/remove.

	* gladeui/glade-widget.c: 
	  - glade_widget_dup_properties/glade_widget_copy_properties take 2 new args, whether copy
	    parentless widget properties or not, and whether to copy them exactly or not.
	  - added glade_widget_get_parentless_reffed_widgets() to return a list of reffed parentless
	    widgets.


svn path=/trunk/; revision=2045
2008-11-23 23:49:53 +00:00
Tristan Van Berkom
82c2cad382 glade_widget_build_object() now calls glade_widget_set_object() internally
* gladeui/glade-widget.c: glade_widget_build_object() now calls glade_widget_set_object() 
	internally and then uses glade_widget_adaptor_set_property() for non construct properties.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: 
	  - Made GtkTreeView:model property query user at create time.
	  - Fixed to never sync properties when in attribute mode, to sync attributes
	    after adding cells to cell layouts, and to not set attributes to orphan cells
	    (net result: copy/paste of treeviews now result in a nice runtime replica).
	  - Did some reordering in glade-gtk.c


svn path=/trunk/; revision=2044
2008-11-23 20:24:27 +00:00
Jorge Gonzalez Gonzalez
93bf0105b2 Updated Spanish translation
svn path=/trunk/; revision=2043
2008-11-23 12:53:11 +00:00
Tristan Van Berkom
61e3f47c32 added niceness
svn path=/trunk/; revision=2042
2008-11-22 22:34:22 +00:00
Tristan Van Berkom
6d8d9fadf6 New editor to group the treeview and model together in the base editor
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-treeview-editor.[ch]: New editor to group
	  the treeview and model together in the base editor treeview editor

	* gladeui/glade-editor-table.c: 
	  - Load propertes up a realize time (some sizes need negotiation when loaded editables
	    are going into dialogs that are not yet on screen).


svn path=/trunk/; revision=2041
2008-11-22 22:17:16 +00:00
Tristan Van Berkom
735576a9c2 Fixed a warning hiding a never built label
* gladeui/glade-editor-table.c: Fixed a warning hiding a never built label

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: 
	  - First itteration on the treeview editor, removed annoying actions for column/cell
	    hierarchy and do it all in the editor, added position packing property to treeview
	    column for this (treeview column still implemented generically as a cell layout).


svn path=/trunk/; revision=2040
2008-11-22 20:17:17 +00:00
Tristan Van Berkom
d4a36f7c56 - Removed apis to add popups, now they are autogenerated - Added
* gladeui/glade-base-editor.c: 
	  - Removed apis to add popups, now they are autogenerated
	  - Added glade_base_editor_append_types(), glade_base_editor_new() now
	    only adds types supported by the container object, use _append_types() to
	    define hierarcic type relations for children.

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Now the toolbar editor
	  can add menus and edit menus inside the gtkmenutoolbutton (fixed bug 429438).


svn path=/trunk/; revision=2039
2008-11-22 18:35:11 +00:00
Tristan Van Berkom
151e42b3e4 Added GladeEPropCellAttribute
* plugins/gtk+/glade-cell-renderer-editor.c: Added GladeEPropCellAttribute

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Integrated new eprop
	  for cell renderer attributes, avoid setting attributes for columns that
	  exceed model bounds (except on load).


svn path=/trunk/; revision=2038
2008-11-20 20:54:03 +00:00
Tristan Van Berkom
c9e4cf009a Added all remaining metadatas for cell renderers (all cell renderers and
* plugins/gtk+/gtk+.xml.in: Added all remaining metadatas for cell renderers
	  (all cell renderers and attributes now implemented).

	* plugins/gtk+/glade-column-types.c: Fixed to populate enums/flags only
	after all catalogs parsed, now they are listed in alphabetical order too.


svn path=/trunk/; revision=2037
2008-11-20 19:10:12 +00:00
Tristan Van Berkom
a41091f48d hide property/attribute when not needed, fixed saving properties.
svn path=/trunk/; revision=2036
2008-11-19 19:27:28 +00:00
Tristan Van Berkom
7aa8246273 oops, missed these in my last commit
svn path=/trunk/; revision=2035
2008-11-19 18:58:40 +00:00
Tristan Van Berkom
db79e474a4 Added a new editor for cell renderers
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-cell-renderer-editor.c:
	Added a new editor for cell renderers

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added metadata for
	all attributes and auxilary properties in the catalog, and added hooks
	to manipulate, load and save cell renderers, reused most of Juan Pablo's
	work for this, and also for treeview column child renderer support.


svn path=/trunk/; revision=2034
2008-11-19 18:17:58 +00:00
Jorge Gonzalez Gonzalez
62a3f660e6 Updated Spanish translation
svn path=/trunk/; revision=2033
2008-11-16 12:14:40 +00:00
Tristan Van Berkom
18127438cd Added new backend ->depends() vfunc to determine toplevel dependancies
* gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.h: Added
	new backend ->depends() vfunc to determine toplevel dependancies (for
	glade file output ordering).

	* gladeui/glade-project.[ch]: 
	  - Sort dependancies using glade_widget_adaptor_depends()

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: 
	  - Added ->depends() func for GtkWidget and GtkSizeGroup


svn path=/trunk/; revision=2032
2008-11-15 22:38:48 +00:00
Tomasz Dominikowski
fa51f12878 Updated Polish translation
2008-11-15  Tomasz Dominikowski  <tdominikowski@aviary.pl>

	* pl.po: Updated Polish translation

svn path=/trunk/; revision=2031
2008-11-15 21:58:37 +00:00
Tristan Van Berkom
8d9a6b1b6a added glade_utils_hijack_key_press ()
* gladeui/glade-utils.c: added glade_utils_hijack_key_press ()

	* src/glade-window.c: Moved hijack_key_press to glade_utils

	* gladeui/glade-editor.[ch]:
	  - Added "widget" property
	  - added glade_editor_dialog_for_widget()

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added "Edit Separately" action



svn path=/trunk/; revision=2030
2008-11-15 19:54:46 +00:00
Tristan Van Berkom
4020dd82f2 Update glade-app accel group.
* src/glade-window.c: Update glade-app accel group.

	* gladeui/glade-project.[ch], gladeui/glade-app.c: Remove accel group notion from projects

	* gladeui/glade-base-editor.c:
	  - Use global accel group (with keypress editor hijack in place)
	  - No longer modal
	  - added "container" property on the editor
	  - dedicated dialogs self destruct if their container changes


svn path=/trunk/; revision=2029
2008-11-15 18:54:53 +00:00
Tristan Van Berkom
61746a3853 Fixed recursion in the eprops when updating values (due to exterior
* gladeui/glade-editor-property.[ch]: Fixed recursion in the eprops when
	updating values (due to exterior callers calling ->load() when the project
	changes for thier custom editors), this fixes glitches when editing multiline
	text entries.


svn path=/trunk/; revision=2028
2008-11-15 17:56:51 +00:00
Tristan Van Berkom
2a1e635844 Fixed win32 api for deprecated api usage (bug 559678).
* gladeui/glade-app.c: Fixed win32 api for deprecated api usage (bug 559678).


svn path=/trunk/; revision=2027
2008-11-13 21:42:08 +00:00
Tristan Van Berkom
09b96eea7e Delete dangling submenus when moving children around in the menu editor
* plugins/gtk+/glade-gtk.c: Delete dangling submenus when moving children
	  around in the menu editor (bug 560145).


svn path=/trunk/; revision=2026
2008-11-13 19:36:26 +00:00
Tristan Van Berkom
6732db245e Refixed use of uninitialized variable (bug 559678).
* gladeui/glade-utils.c: Refixed use of uninitialized variable (bug 559678).

	* plugins/gnome/glade-gnome.c: Fixed build breakage (bug 560668).


svn path=/trunk/; revision=2025
2008-11-13 18:58:33 +00:00
Tristan Van Berkom
0a649c0e2f Fixed loading of images and only set image data when in the correct edit
* plugins/gtk+/glade-gtk.c: Fixed loading of images and only set image
	data when in the correct edit mode.

	* plugins/gtk+/glade-convert.c: Fixed toolbutton conversions to search
	icon factories from the beginning of the object list and not the current
	list position.

	* gladeui/glade-project.c: When changing resource paths, reload all pixbuf
	properties automagically (this wont work for custom pixbufs like icon factory
	has).


svn path=/trunk/; revision=2024
2008-11-12 17:12:00 +00:00
Tristan Van Berkom
a5c32c738b Now save project resource directory in glade file comments if user
* gladeui/glade-project.c: Now save project resource directory in glade file
	comments if user specified a relative or absolute path in the prefs dialog,
	otherwise resources are loaded from the project's directory.


svn path=/trunk/; revision=2023
2008-11-08 15:02:46 +00:00
Kjartan Maraas
da504be250 Add bug number
svn path=/trunk/; revision=2022
2008-11-08 11:26:03 +00:00
Kjartan Maraas
69ef04b036 Try to avoid using deprecated glib api.
2008-11-08  Kjartan Maraas  <kmaraas@gnome.org>

	* gladeui/glade-utils.c: (glade_utils_get_pspec_from_funcname),
	(glade_util_ui_message), (glade_util_gtk_combo_find):
	* src/glade-window.c: (confirm_close_project):
	Try to avoid using deprecated glib api.

svn path=/trunk/; revision=2021
2008-11-08 11:25:37 +00:00
Tristan Van Berkom
07e09d7236 Set the toplevel window accel-groups property when converting.
* plugins/gtk+/glade-convert.c: Set the toplevel window accel-groups property when
	converting.


svn path=/trunk/; revision=2020
2008-11-07 21:09:22 +00:00
Tristan Van Berkom
3277f95c53 moved signal and children serialization from
* gladeui/glade-widget.c, gladeui/glade-widget-adaptor.c: moved signal and
	children serialization from glade_widget_adaptor_object_write_widget() to
	glade_widget_write() (bug #559531)


svn path=/trunk/; revision=2019
2008-11-07 20:56:30 +00:00
Tristan Van Berkom
bde43f1aed Faked the accel-group property and added accel-groups object list to
* plugins/gtk+/gtk+.xml.in: Faked the accel-group property and added
	accel-groups object list to GtkWindow... work in progress.

	* plugins/gtk+/glade-image-item-editor.c: Adjusted for accel-group property
	which is only avaiable for stock items.

	* plugins/gtk+/glade-gtk.c: Fixed sensitivity for accel-group/stock at load time.

	* gladeui/glade-editor-property.c: Labels dont go insensitive anymore, I think that
	was a general usability problem, the inputs still go insensitive and there are always 
	useful tooltips, the insensitivity message still gets across.

	* gladeui/glade-editor-table.c: Fixed breaking weak refs from dispose.


svn path=/trunk/; revision=2018
2008-11-07 20:49:58 +00:00
Tristan Van Berkom
a3a6a84366 update changelog with bug number.
svn path=/trunk/; revision=2017
2008-11-05 21:50:11 +00:00
Tristan Van Berkom
14feeffc1f Added parameter-spec parsing, need to updated docs still.
* gladeui/glade-xml-utils.c, gladeui/glade-property-class.c: Added 
	parameter-spec parsing, need to updated docs still.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-attributes.c,
	plugins/gtk+/glade-icon-sources.c, plugins/gtk+/glade-accels.c, plugins/gtk+/glade-model-data.c,
	plugins/gtk+/glade-column-types.c:
	- Removed all custom parameter spec implementations in the plugin and replaced them
	  with automatically generated ones parsed by the xml.
	- Fixed hierarchy bugs, some classes were not saving.


svn path=/trunk/; revision=2016
2008-11-05 21:48:24 +00:00
Guntupalli Karunakar
55db023bf4 Add Hindi translation
svn path=/trunk/; revision=2015
2008-11-01 18:04:12 +00:00
Tristan Van Berkom
8dadf185ff making menu conversions seemless
* plugins/gtk+/glade-image-item-editor.[ch], plugins/gtk+/glade-gtk.c:
	making menu conversions seemless

	* gladeui/glade-widget.c: Remove widgets from layout on hide,
	hide widgets when adding parentless prop refs.


svn path=/trunk/; revision=2014
2008-10-31 22:01:23 +00:00
Tristan Van Berkom
1e70cf40ae Added glade_widget_[un]lock() and glade_command_[un]lock_widget().
* gladeui/glade-widget.[ch], gladeui/glade-command.[ch]: Added
	glade_widget_[un]lock() and glade_command_[un]lock_widget().

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-convert.c,
	plugins/gtk+/glade-image-item-editor.c: Dual format menu editing support
	depending on my gtk+ patch on bug 527672, TODO: still need to add accel-groups
	to GtkWindow on the glade side of things.


svn path=/trunk/; revision=2013
2008-10-31 02:23:01 +00:00
Tristan Van Berkom
e710eec25f fixed a weird bug with spec->owner_type = 0.
svn path=/trunk/; revision=2012
2008-10-29 02:38:26 +00:00
Tristan Van Berkom
5da2903182 Fixed some glitches, now its usable, closing case for now, we have
* plugins/gtk+/glade-attributes.c: Fixed some glitches, now its usable, closing case
	for now, we have attributes, they are global for the label but better that way for i18n'ing.


svn path=/trunk/; revision=2011
2008-10-29 01:35:50 +00:00
Tristan Van Berkom
68a6386f9e Rewrote GtkLabel implementation from top to bottom with custom editor (now
* plugins/gtk+/glade-label-editor.[ch], plugins/gtk+/Makefile.am,
	plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Rewrote GtkLabel implementation from 
	top to bottom with custom editor (now all those conflicting properties are dummy proofed) 
	


svn path=/trunk/; revision=2010
2008-10-28 22:15:04 +00:00
Tristan Van Berkom
ca1507bd0d Added liststore/treestore editor widget (only to better format the
* plugins/gtk+/glade-store-editor.[ch], plugins/gtk+/Makefile.am,
	plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c:
	Added liststore/treestore editor widget (only to better format the "columns"
	and "data" properties so that it takes the whole width with the treeview.


svn path=/trunk/; revision=2009
2008-10-28 16:42:46 +00:00
Tristan Van Berkom
6766371fcc Added icon factory editor widget (only to better format the "sources"
* plugins/gtk+/glade-icon-factory-editor.[ch], plugins/gtk+/Makefile.am,
	plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c:
	Added icon factory editor widget (only to better format the "sources" property
	so that it takes the whole width with the treeview.


svn path=/trunk/; revision=2008
2008-10-28 16:17:40 +00:00
Tristan Van Berkom
936511a43d Fixed bugs around load/save of button/imagemenuitem label (stock driven)
* gladeui/glade-gtk.c: Fixed bugs around load/save of button/imagemenuitem
	label (stock driven) properties.

	* plugins/gtk+/glade-image-item-editor.c: Fixed a null dereference, glade_command_create()
	sometimes ends up changeing the selection, so the editable may be reloaded in the
	midst of its flow.

	* gladeui/glade-property.c, gladeui/glade-widget-adaptor.c: Now check for pclass->save
	and pclass->enabled *before* calling glade_property_write(), this allows plugins to
	mark props as save="False" and save those properties with custom values, still allowing
	them to use the GladeProperty api.


svn path=/trunk/; revision=2007
2008-10-28 06:11:11 +00:00
Tristan Van Berkom
e86dd963ab Reimplemented GtkMenuItem and subclasses from top to bottom
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: 
	Reimplemented GtkMenuItem and subclasses from top to bottom

	* plugins/gtk+/glade-image-item-editor.[ch], plugins/gtk+/Makefile.am:
	New GtkImageMenuItem editor (that embeds the child image editor when needed)

	* gladeui/glade-command.[ch]: Added glade_command_[un]protect_widget()

	* gladeui/glade-widget.[ch]: Added glade_widget_[un]protect()
	protected widgets come with a message and cannot be manually deleted
	from the project.

	* plugins/gtk+/glade-image-editor.c, plugins/gtk+/glade-button-editor.c,
	plugins/gtk+/glade-tool-button-editor.c, gladeui/glade-editor-table.c:
	Fixed to:
	- not reffer to child editables in finalize
	- always removed external signals and weak references from finalize

	* gladeui/glade-base-editor.c: Fixed to allow properties expand/fill
	in both label and entry.


svn path=/trunk/; revision=2006
2008-10-28 05:07:30 +00:00
Tristan Van Berkom
c20614b4dd Override type of GtkImage::icon-size to use real GTK_TYPE_ICON_SIZE for
* plugins/gtk+/glade-image-editor.[ch], plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c,
	gladeui/glade-property-class.c: Override type of GtkImage::icon-size to use real
	GTK_TYPE_ICON_SIZE for editing purposes (needed to fix the core a bit for this), also
	improved image editor to keep sizes contextual to image edit mode.


svn path=/trunk/; revision=2005
2008-10-27 20:00:34 +00:00
Tristan Van Berkom
72e543f080 - Reimplemented GtkImage from ground up. - Reimplemented stock on
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: 
	- Reimplemented GtkImage from ground up.
	- Reimplemented stock on GtkButton.
	- Made toolbutton editables show up in the toolbar editor

	* gladeui/glade-base-editor.[ch]: Added glade_base_editor_add_editable()

	* plugins/gtk+/glade-button-editor.c, plugins/gtk+/glade-tool-bar-editor.c:
	Implement new Editable vfunc set_show_name()

	* gladeui/glade-editor-table.c, gladeui/glade-editable.c, gladeui/glade-editor.c:
	Added new vfunc set_show_name()

	* plugins/gtk+/Makefile.am, plugins/gtk+/glade-image-editor.[ch]: New editor
	widget for GtkImage

	* gladeui/glade-property-class.[ch]: string props can now be "stock" or "stock-icon"

	* gladeui/glade-widget-adaptor.c: No more stock enum eprops

	* gladeui/glade-editor-property.c: Handle string types with "stock" or "stock-icon"


svn path=/trunk/; revision=2004
2008-10-27 17:46:35 +00:00
Tristan Van Berkom
70d528b5ed Added GtkToolButtonEditor editable implementation.
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-tool-button-editor.[ch]:
	Added GtkToolButtonEditor editable implementation.

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Reimplemented toolbuttons
	from ground up.

	* gladeui/glade-editor-property.c: object dialog now doesnt do "new" for unmentioned
	abstract or uninstantiatable types, also enhanced dialog title.

	* gladeui/glade-project.c: Moved "parse-finished" emission to /after/ resolving
	object properties (doh !).


svn path=/trunk/; revision=2003
2008-10-26 08:12:09 +00:00
Tristan Van Berkom
b327ccf0f5 Fixed a crasher in project conversions.
* gladeui/glade-command.c: Fixed a crasher in project conversions.


svn path=/trunk/; revision=2002
2008-10-26 03:50:47 +00:00
Tristan Van Berkom
1ce0de4d00 Properly convert toolbutton:icon both ways.
* gladeui/glade-convert.c: Properly convert toolbutton:icon both ways.

	* plugins/gtk+/glade-gtk.c: Undid a little toolbutton support so that
	stock-id remains untouched and is accessible in builder format, TODO
	rework toolbars and menus (will be simpler) with GladeEditable.


svn path=/trunk/; revision=2001
2008-10-25 21:43:00 +00:00
Tristan Van Berkom
d8370a0b5b Ignore parent-changes on internal widgets (that causes problems when
* plugins/gtk+/glade-gtk.c: Ignore parent-changes on internal widgets (that
	causes problems when internal widgets get destroyed at project close time).

	* plugins/gtk+/glade-button-editor.c: Fixed custom/standard commands,
	now standard mode sets up a default label etc also.

	* gladeui/glade-project.c, gladeui/glade-property.c, gladeui/glade-widget.c,
	gladeui/glade-property-class.[ch], gladeui/glade-xml-utils.h:
	Removed hack for GtkToolButton:icon --> iconfactory (will do in glade-convert.c
	properly).


svn path=/trunk/; revision=2000
2008-10-25 18:15:48 +00:00
Tristan Van Berkom
867115d53e Fixed a warning.
* plugins/gtk+/glade-cell-renderer-button.c: Fixed a warning.

	* plugins/gtk+/glade-column-types.c, plugins/gtk+/glade-model-data.c,
	plugins/gtk+/glade-icon-sources.c: Made sure add/remove works when
	deleting unedited icon sources, all add buttons result in focus and
	start-editing of an important cell in the underlying treeview.

	* gladeui/glade-utils.c: Fixed generic enum types to use enum_class->minimum
	as the default value.


svn path=/trunk/; revision=1999
2008-10-25 16:37:55 +00:00
Tristan Van Berkom
7e67585e8e mark some props save-always for overridden defaults in children (this one
* plugins/gtk+/gtk+.xml.in: mark some props save-always for overridden
	defaults in children (this one is bug 555726)


svn path=/trunk/; revision=1998
2008-10-25 06:16:24 +00:00
Tristan Van Berkom
208b9b5330 updating changelog to reflect bug report.
svn path=/trunk/; revision=1997
2008-10-25 06:06:33 +00:00
Tristan Van Berkom
77a9f9eac3 Fixed glade_property_class_make_adjustment() for floating and double
* gladeui/glade-property-class.c: Fixed glade_property_class_make_adjustment()
	for floating and double values (page inc and size were not properly set).

	* gladeui/glade-app.c: Fixed a warning

	* gladeui/glade-editor-table.c: Was loading invisible properties, oops.
	
	* doc/properties.sgml: Documented custom-layout property.


svn path=/trunk/; revision=1996
2008-10-25 06:01:51 +00:00
Tristan Van Berkom
b27b083455 finished with gtkiconfactory.
svn path=/trunk/; revision=1995
2008-10-24 23:44:28 +00:00
Tristan Van Berkom
7e6a4bb9e6 fixing modifications of icon sources (the string_from_value wasnt good)x
svn path=/trunk/; revision=1994
2008-10-24 18:51:54 +00:00
Tristan Van Berkom
101b8add8f string_from_enum, now returns the nick and not the name (generally all
* gladeui/glade-property-class.c: string_from_enum, now returns the nick and not the
	name (generally all around nicer menus when no displayable values and also smaller
	nicer glade files). Displayable values are now consequently indexed by nick and not name.

	* gladeui/glade-displayable-values.[ch]: Added reverse lookup glade_get_value_from_displayable()

	* gladeui/glade-utils.[ch]: When doing glade_utils_enum/flag_value_from_string(), allow
	displayable values (also added glade_utils_enum/flag_string_from_value_displayable()).

	* plugins/gtk+/glade-icon-sources.c: Use all around displayable values for items
	in the treeview.


svn path=/trunk/; revision=1993
2008-10-24 15:42:05 +00:00
Tristan Van Berkom
23d26f5773 Added new #GladeEditable implementation for GtkButton general page.
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-button-editor.[ch]:
	Added new #GladeEditable implementation for GtkButton general page.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Completely reworked GtkButton, 
	much cleaner and less code now.



svn path=/trunk/; revision=1992
2008-10-24 08:47:12 +00:00
Tristan Van Berkom
45ad67db76 Fixed a warning.
* src/glade-window.c: Fixed a warning.

also fixed some errors in previous commit.


svn path=/trunk/; revision=1991
2008-10-23 19:03:25 +00:00
Tristan Van Berkom
d38ad3ce78 - Added GladeEditable interface used as pages by GladeEditor - Added
* gladeui/Makefile.am, gladeui/glade-editable.[ch], gladeui/glade-editor-table.[ch]:
	- Added GladeEditable interface used as pages by GladeEditor
	- Added GladeEditorTable widget to implmenemt the editable as the traditional table
	  with sorted properties

	* gladeui/glade-editor.[ch]: Removed lots of code, now uses GladeEditables returned
	  by thier adaptors.

	* gladeui/glade-editor-property.c: Removed obsolete doc-search signal.

	* gladeui/glade-widget-adaptor.[ch]: Added GladeCreateEditableFunc to allow backends
	  to define layouts of pages in the editor.


svn path=/trunk/; revision=1990
2008-10-23 17:30:14 +00:00
Tristan Van Berkom
d8cb7c328b Rewrote displayable values so no need for redundancies anymore (bug
* gladeui/Makefile.am, gladeui/glade-displayable-values.[ch]: Rewrote displayable
	values so no need for redundancies anymore (bug 556452). Also now displayable values
	are more accessible for the plugin.

	* plugins/gtk+/gtk+.xml.in, plugins/gnome/*.xml.in: Removed redundant displayable value
	declarations (alot of them !).


svn path=/trunk/; revision=1989
2008-10-23 02:51:59 +00:00
Juan Pablo Ugarte
d9816500b0 fixed bug in glade_gtk_assistant_verify_property() new value should be >=
* plugins/gtk+/glade-gtk.c: fixed bug in glade_gtk_assistant_verify_property()
  new value should be >= that current

* plugins/gtk+/gtk+.xml.in: renamed virtual property GtkAssistant::size to n-pages

svn path=/trunk/; revision=1988
2008-10-22 22:56:20 +00:00
Tristan Van Berkom
58a16f5491 new pspec and eprop for GtkIconSources in GtkIconFactories.
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-icon-sources.[ch]:
	new pspec and eprop for GtkIconSources in GtkIconFactories.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added load/save/set_property/string_from_value
	support for icon sources in icon factories.


svn path=/trunk/; revision=1987
2008-10-22 22:33:30 +00:00
Tristan Van Berkom
c5619eb46d Use glade-cell-renderer-button for color attributes.
* plugins/gtk+/glade-attributes.c: Use glade-cell-renderer-button for color attributes.

	* plugins/gtk+/glade-cell-renderer-button.c: no more button-text property

	* plugins/gtk+/glade-text-button.c: Now use a GTK_STOCK_EDIT icon in the cell renderer button


svn path=/trunk/; revision=1986
2008-10-21 20:49:03 +00:00
Tristan Van Berkom
96a3fe3b7c Implement property lookups with a hash table, fixed mem leaks
* gladeui/glade-widget.c: Implement property lookups with a hash table, fixed mem leaks

	* gladeui/glade-property.c: Read properties from the passed node directly, fixed mem leaks

	* gladeui/glade-widget-adaptor.c: Read properties in the order they are listed in the file, 
	not by the order of the properties in the object (helps load performance).

	* gladeui/glade-project.c: Fixed mem leaks, release widget property references before
	destroying all the glade widgets.


svn path=/trunk/; revision=1985
2008-10-21 18:05:14 +00:00
Tristan Van Berkom
5018c66950 Implemented something based on Pavel's patch, wordwrapping in the editor
* gladeui/glade-editor.c, gladeui/glade-editor-property.c: Implemented something
	based on Pavel's patch, wordwrapping in the editor works better now.

	* gladeui/glade-project.c: Fixed regression, now the inspector updates on widget
	name changes.


svn path=/trunk/; revision=1984
2008-10-21 15:04:02 +00:00
Tristan Van Berkom
cdb0d7b338 Abolished "View->Context Help" and added a context menu to editor
* src/glade-window.c, gladeui/glade-editor.c, gladeui/glade-editor-property.[ch],
	gladeui/glade-popup.[ch]: Abolished "View->Context Help" and added a context menu
	to editor properties.


svn path=/trunk/; revision=1983
2008-10-21 04:06:31 +00:00
Tristan Van Berkom
5baf9db1fb Now can optionally make the entry non editable.
* plugins/gtk+/glade-cell-renderer-button.[ch], plugins/gtk+/glade-text-button.[ch]:
	Now can optionally make the entry non editable.

	* plugins/gtk+/glade-model-data.c: Added pixbuf editing support.

	* doc/widgetclasses.sgml, doc/properties.sgml: Clarified docs.

	* gladeui/glade-editor-property.[ch]: Removed resource editor, edit pixbuf with
	string editor.

	* gladeui/glade-widget-adaptor.c, gladeui/glade-property-class.c,
	gladeui/glade-project.[ch]: Completely removed concept of resources, glade
	no longer copies along pixbufs, pixbuf properties can include full paths
	or relative paths, in the glade runtime; any pixbufs are only ever loaded
	from the glade project directory (only the basename is used).


svn path=/trunk/; revision=1982
2008-10-21 02:16:28 +00:00
Tristan Van Berkom
98169f37d9 Added i18n support to string values in datastores.
* plugins/gtk+/glade-cell-renderer-button.[ch], plugins/gtk+/glade-text-button.[ch],
	plugins/gtk+/glade-model-data.c: Added i18n support to string values in datastores.


svn path=/trunk/; revision=1981
2008-10-20 01:02:47 +00:00
Tristan Van Berkom
7c0ea19f5f Now support editing enum types
* plugins/gtk+/glade-model-data.c: Now support editing enum types

	* plugins/gtk+/glade-column-types.c: Generate a list of enum and flag column types to select from.


svn path=/trunk/; revision=1979
2008-10-18 09:52:19 +00:00
Tristan Van Berkom
7f8c517afc - Added lots of actions on the treeview column - Marked GtkNotebook::pages
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-model-data.c:
	  - Added lots of actions on the treeview column
	  - Marked GtkNotebook::pages as invisible

	* gladeui/glade-editor.c: Allow query dialogs on invisible properties
	  if requested.


svn path=/trunk/; revision=1978
2008-10-17 21:32:35 +00:00
Tristan Van Berkom
ed3bb93774 Fixed property commands to not unify across separate groups, and also to
* gladeui/glade-command.c: Fixed property commands to not unify across separate groups,
	and also to unify when they are not lists.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-model-data.c:
	  - Data properties now have DnD working
	  - Adding TreeViewColumn support
	  - Fixing liststore support to work for treestore


svn path=/trunk/; revision=1977
2008-10-17 18:47:57 +00:00
Tristan Van Berkom
47479fa15e fixed a silly bug
svn path=/trunk/; revision=1976
2008-10-17 01:01:11 +00:00
Tristan Van Berkom
e098b68565 fixed ui a bit
svn path=/trunk/; revision=1975
2008-10-16 22:35:59 +00:00
Tristan Van Berkom
c3a2cd32e5 Cleaned up code, now data will dynamically reorder itself upon column
* plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-column-types.c, plugins/gtk+/glade-model-data.c:
	Cleaned up code, now data will dynamically reorder itself upon column changes, data is mostly
	all editable save for some glitches, and all columns have unique names to which the data is
	directly related.


svn path=/trunk/; revision=1974
2008-10-16 22:22:14 +00:00
Juan Pablo Ugarte
40af51e38e applied proposed patch for bug #547431 '"Scale" ambiguous for translation'
* plugins/gtk+/glade-attributes.c: applied proposed patch for bug #547431
  '"Scale" ambiguous for translation' <Theppitak Karoonboonyanan>

svn path=/trunk/; revision=1973
2008-10-16 21:40:51 +00:00
Tristan Van Berkom
4f1e473e08 Encapsulated name tracking mechanism
* gladeui/Makefile.am, gladeui/glade-name-context.[ch]: Encapsulated name tracking mechanism

	* gladeui/glade-project.c, gladeui/glade-command.c: Now added a naming policy to the project
	with prefs and load/save support + a glade command to set it - also revamped the prefs dialog,
	it also pops up automatically for new projects.

	* gladeui/glade-editor.c, gladeui/glade-editor-property.c, gladeui/glade-property-class.c,
	gladeui/glade-property.c, gladeui/glade-widget.c: All effected since now 
	glade_property_class_make_gvalue_from_string () needs a GladeWidget argument to do
	hierachic context sensitive searches... that and naming is much cleaner now.
	
	* src/glade-window.c: remember to pass ownership of the project to the app.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-column-types.c, plugins/gtk+/glade-model-data.c:
	BEWARE: Dangerous and still a work in progress.


svn path=/trunk/; revision=1972
2008-10-16 14:31:42 +00:00
Jorge Gonzalez Gonzalez
9c7ab5ccec Updated Spanish translation
svn path=/trunk/; revision=1971
2008-10-12 20:29:28 +00:00
Leonardo Ferreira Fontenelle
cb722323c0 Merged more terminology fixes in Brazilian Portuguese translation from
2008-10-12  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>

	* pt_BR.po: Merged more terminology fixes in Brazilian Portuguese
	translation from branch gnome-2-4.

svn path=/trunk/; revision=1970
2008-10-12 17:40:35 +00:00
Leonardo Ferreira Fontenelle
0234683731 Merged from branch gnome-2-24.
2008-10-11  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>

	* pt_BR.po: Merged from branch gnome-2-24.

svn path=/trunk/; revision=1968
2008-10-11 17:20:44 +00:00
Tristan Van Berkom
4f74b453ae Implemented new "context" i18n metadata.
* gladeui/glade-property.[ch], gladeui/glade-command.[ch], 
	gladeui/glade-editor-property.c: Implemented new "context" i18n
	metadata.

	* gladeui/glade-widget.c: Fixed to hide non-window widgets in glade_widget_hide()


svn path=/trunk/; revision=1967
2008-10-01 00:10:23 +00:00
Alexander Shopov
54ddfac5b7 Updated Bulgarian translation by Alexander Shopov <ash@contact.bg>
2008-09-29  Alexander Shopov  <ash@contact.bg>

	* bg.po: Updated Bulgarian translation by
	Alexander Shopov <ash@contact.bg>

svn path=/trunk/; revision=1965
2008-09-29 19:31:05 +00:00
Tristan Van Berkom
6c5e4e2aa4 Exported glade_column_list_copy/free()
* plugins/gtk+/glade-column-types.[ch]: Exported glade_column_list_copy/free()

	* plugins/gtk+/glade-model-data.[ch], plugins/gtk+/Makefile.am: Added model data
	  pspec, editor not compĺete yet...
	
	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Implemented new pspec as
	  list/treestore's "data" property with load/save support.

	* plugins/gtk+/glade-convert.c: Made combos convert correctly with new modeldata
	  pspec.

	* gladeui/glade-utils.[ch]: Added glade_utils_liststore_from_enum_type()


svn path=/trunk/; revision=1963
2008-09-29 17:19:07 +00:00
Juan Pablo Ugarte
ee72eaea33 added missing files. close bug #554258 "glade-column-types.h missing"
* plugins/gtk+/glade-column-types.[ch]: added missing files.
  close bug #554258 "glade-column-types.h missing"

svn path=/trunk/; revision=1962
2008-09-29 14:58:57 +00:00
Tristan Van Berkom
7613e0d461 Added load/save/edit support for GtkTreeStore/GtkListStore basic columns
* plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-column-types.[ch],	
	  plugins/gtk+/Makefile.am, plugins/gtk+/gtk+.xml.in: Added load/save/edit
	  support for GtkTreeStore/GtkListStore basic columns and data definitions
	  (store data still not translatable...) - Juan Pablo Ugarte

	* gladeui/glade-utils.c: Added convenience funcs glade_utils_string_from_value()
	  and glade_utils_value_from_string(), these actually use glade-property-class api.


svn path=/trunk/; revision=1961
2008-09-28 04:37:44 +00:00
Matej Urbančič
036d95a4d8 Updated Slovenian translation
svn path=/trunk/; revision=1958
2008-09-25 15:36:47 +00:00
Juan Pablo Ugarte
2a9084c3c8 fixed bug #543314 "Crash when adding an Input DIalog" added
* plugins/gtk+/glade-gtk.c: fixed bug #543314 
  "Crash when adding an Input DIalog"
  added glade_gtk_dialog_stop_offending_signals()
  to stop "hierarchy-changed" and "screen-changed"
  default handlers in GtkInputDialog and GtkFileChooserWidget

svn path=/trunk/; revision=1956
2008-09-22 18:42:22 +00:00
Tristan Van Berkom
3e54b22676 Fixed adjustments when values are null in libglade mode
* gladeui/glade-editor-property.c: Fixed adjustments when values are null in
	libglade mode

	* plugins/gtk+/gtk+.xml.in: Reorganized groups, added some more metadatas

	* plugins/gtk+/glade-convert.c: 
	  - Convert "text" property of TextView to a textbuffer and text property 
	    in builder format.
	  - Convert "tooltip" <--> "tooltip-text"
	
	* gladeui/glade-popup.c, gladeui/glade-inspector.c: enhanced menu for 
	inspector empty spots (paste toplevels)

	* gladeui/glade-editor-property.c: Adjustments in libglade had bugs, hardcoded
	default values here and made sure object is NULL on default.

	* gladeui/glade-widget.[ch]: Removed glade_widget_project_notify()

	* gladeui/glade-command.c: 
	  - glade_command_remove() implicitly makes commands to unset any properties 
	    reffering to the object being removed from the project.
	  - project conversions now cleanup unsupported widgets/properties

	* gladeui/glade-palette.c, gladeui/glade-app.c: Moved toplevel widget creation
	code from gladeapp to gladepalette.


svn path=/trunk/; revision=1955
2008-09-22 17:54:58 +00:00
Guntupalli Karunakar
ff13e3b8e1 Added Hindi translation
svn path=/trunk/; revision=1954
2008-09-22 14:37:03 +00:00
Kenneth Nielsen
988703ced3 Updated Danish translation
svn path=/trunk/; revision=1953
2008-09-21 22:58:24 +00:00
Tristan Van Berkom
aef7ac6431 New "construct-object-function" used to construct object instances by way
* gladeui/glade-widget.c, gladeui/glade-widget-adaptor.[ch],
	gladeui/glade-xml-utils.c: New "construct-object-function" used to construct
	object instances by way of the plugin (glade_widget_adaptor_construct_object ()).


svn path=/trunk/; revision=1949
2008-09-21 15:55:59 +00:00
Tristan Van Berkom
1baaef3b10 Set sizegroup_add action sensitive/insensitive depending on project format
* plugins/gtk+/glade-gtk.c: Set sizegroup_add action sensitive/insensitive
	  depending on project format

	* plugins/gtk+/gtk+.xml.in: Set libglade-unsupported && create-type on alot of properties

	* gladeui/glade-editor-property.c: Set eprop insensitive also if its in an unsupported
	  format

	* gladeui/glade-xml-utils.h, gladeui/glade-property-class.c: Added "create-type"

	* gladeui/glade-property.[ch]: Now property states can be flagged and
	  also include format_disabled state.


svn path=/trunk/; revision=1948
2008-09-21 14:50:44 +00:00
Tristan Van Berkom
7aabb01a14 Added all objects.
svn path=/trunk/; revision=1946
2008-09-21 01:05:10 +00:00
Tristan Van Berkom
a8a21709c5 Added "supports" catalog element to supply supported formats, added
* gladeui/glade-xml-utils.h, gladeui/glade-catalog.[ch], 
	gladeui/glade-widget-adaptor.[ch], gladeui/glade-property-class.[ch],
	gladeui/glade-project.c, glade-palette-item.c: Added "supports" catalog element
	to supply supported formats, added libglade-only and libglade-unsupported properties
	for widget classes and property classes, those metadata will show up in the editor
	like versioning info, in the verify logs as well, and the palette will adjust
	sensitivity according to the new properties.

	* plugins/gtk+/gtk+.xml.in, plugins/gnome/gnome.xml.in: Added supports
	elements and marked widgets/properties as libglade-only/libglade-unsupported in
	the gtk+ catalog.


svn path=/trunk/; revision=1945
2008-09-20 23:49:05 +00:00
Tristan Van Berkom
83c9c86f79 - Made sure that the first toplevel in the project is selected and visible
* src/glade-window.c, gladeui/glade-inspector.c, gladeui/glade-utils.c,
	gladeui/glade-app.c:
	  - Made sure that the first toplevel in the project is selected and visible 
	    at load time in both the workspace and inspector
	  - Sorted objects from widgets in the inspector view.


svn path=/trunk/; revision=1944
2008-09-20 21:32:00 +00:00
Kenneth Nielsen
3c551ef9f2 Updated Danish translation
svn path=/trunk/; revision=1943
2008-09-20 20:15:27 +00:00
Tristan Van Berkom
6affd5900d UPDATING TODO
svn path=/trunk/; revision=1941
2008-09-20 19:39:38 +00:00
Tristan Van Berkom
d1fb1d2bf1 Updated.
* TODO: Updated.

	* plugins/gtk+/gtk+.xml.in: 
	  - Added sizegroup support stuff

	* plugins/gtk+/glade-gtk.c: 
	  - Added GtkWidgetClass support for add to size group
	    action with dynamic submenu
	  - added sizegroup virtual "widgets" property
	  - added custom load/save support for "widgets" property

	* gladeui/glade-popup.c: Added support for dynamic action submenus

	* gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.h: Added
	  GladeActionSubmenuFunc backend support for creation of dynamic
	  action submenus.

	* gladeui/glade-widget.[ch] removed deadcode glade_widget_create_action_menu()

	* gladeui/glade-project.c: Added readonly "format" property


svn path=/trunk/; revision=1940
2008-09-20 19:36:17 +00:00
Tristan Van Berkom
d85b9c2821 reverted inclusion of missing sr.po, was breaking the build.
svn path=/trunk/; revision=1939
2008-09-20 16:04:59 +00:00
Tristan Van Berkom
6871c98fbd Improved error messages in load_module() routine.
* gladeui/glade-utils.c: Improved error messages in load_module() routine.

	* plugins/gtk+/gtk+.xml.in: Enabled object properties all over.


svn path=/trunk/; revision=1938
2008-09-20 15:48:56 +00:00
Goran Rakic
218ede5b30 Imported Serbian translation from glade-2
svn path=/trunk/; revision=1936
2008-09-20 11:27:08 +00:00
Tristan Van Berkom
351a89ed42 Now we have a conversion routine that is run in the plugin to convert some
Now we have a conversion routine that is run in the plugin to
	convert some data for one format to another (builder on the way...)
	In this patch we use it to handle GtkAdjustment property conversions.
	(NOTE: Completely undoable)
	
	* gladeui/glade-editor-property.c: Made adjustment eprop fallback on
	  object dialog in builder cases.

	* gladeui/glade-command.[ch]: Added glade_command_set_project_format()

	* gladeui/gldae-catalog.c, gladeui/glade-xml-utils.h: Added GladeProjectConvertFunc

	* plugins/gtk+/Makefile.am, plugins/gtk+/glade-convert.c,
	plugins/gtk+/gtk+.xml.in: New file to handle conversion routines, 
	added some objects.


svn path=/trunk/; revision=1935
2008-09-19 22:31:18 +00:00
Tristan Van Berkom
0ff63d41d0 - switch notebook pages to display the selected widget (bug 392045).
svn path=/trunk/; revision=1933
2008-09-18 22:25:34 +00:00
Juan Pablo Ugarte
1af47d8375 o set packing GtkBox::position as save-always (bug #551060) o set packing
* plugins/gtk+/gtk+.xml.in:
  o set packing GtkBox::position as save-always (bug #551060)
  o set packing GtkToolbar::expand as save-always (bug #544654)

svn path=/trunk/; revision=1932
2008-09-18 21:13:36 +00:00
Tristan Van Berkom
6849d36bc5 updating todo
svn path=/trunk/; revision=1931
2008-09-18 20:50:22 +00:00
Tristan Van Berkom
093a2a15d2 - take into account cancelation of query dialog in add_parent action
code (bug 549685)


svn path=/trunk/; revision=1930
2008-09-18 20:13:51 +00:00
Tristan Van Berkom
9489e6b7d9 insert before/after in box is working now (bug 550636).
* plugins/gtk+/glade-gtk.c: insert before/after in box is working now (bug 550636).


svn path=/trunk/; revision=1929
2008-09-18 19:57:09 +00:00
Tristan Van Berkom
745b219331 - Show glade widgets in the workspace on selection changes in the project
* src/glade-window.c: 
	  - Show glade widgets in the workspace on selection changes in the project 
	    and not on item-activated.
	  - Rename "Dock Editor" -> "Dock Properties" as per bug 487613.
	
	* gladeui/glade-design-layout.c: Fixed expose event to chain to parent class
	  after drawing an orange box (non window widgets are usualy GTK_NO_WINDOW).

	* gladeui/glade-widget.c: Made glade_widget_show() show the toplevel of any
	  GtkWidget object, also now shows toplevel non window glade widgets in the
	  workspace, if the widget is referenced by a property that as a result parents
	  the widget (i.e. bears a "parentless-widget" property reference), then the
	  referencing widget is shown instead.

	* gladeui/glade-popup.c: Added devhelp icon to documentation menu item, added
	  docs icon to normal menu.


svn path=/trunk/; revision=1928
2008-09-18 19:05:01 +00:00
Christian Persch
5a3e0443c2 Replace the deprecated G_GNUC_PRETTY_FUNCTION with G_STRFUNC. Bug #512559.
* gladeui/glade-app.c: (glade_app_show_properties),
	(glade_app_hide_properties):
	* gladeui/glade-command.c: (glade_command_pop_group): Replace the
	deprecated G_GNUC_PRETTY_FUNCTION with G_STRFUNC. Bug #512559.

svn path=/trunk/; revision=1927
2008-09-18 17:32:43 +00:00
Christian Persch
4a663d6fb4 Install the catalogue DTD. Bug #552767.
* plugins/Makefile.am: Install the catalogue DTD. Bug #552767.

svn path=/trunk/; revision=1926
2008-09-18 17:18:02 +00:00
Matej Urbančič
d6045dfd2a Updated Slovenian translation
svn path=/trunk/; revision=1925
2008-09-18 14:44:53 +00:00
Djihed Afifi
8e3fba92b4 Updated Arabic Translation by Anas Afif Emad.
* Updated Arabic Translation by Anas Afif Emad. 

svn path=/trunk/; revision=1921
2008-09-18 02:02:37 +00:00
Christian Kirbach
059cbbd673 Updated German translation.
* de.po: Updated German translation.


svn path=/trunk/; revision=1920
2008-09-17 21:39:38 +00:00
Tristan Van Berkom
08bb853ea1 Exposed doc_search() command for palette popup
* gladeui/glade-editor.[ch]: Exposed doc_search() command for palette popup

	* gladeui/glade-popup.[ch]: Added glade_popup_palette_pop(), with add
	  widget as toplevel feature & doc search feature.

	* gladeui/glade-palette-item.c: Handle right-click for popup

	* gladeui/glade-inspector.c: Make inspector list widgets in natural order

	* gladeui/glade-project.c: Fixed widget order list (bug 422823)

	* gladeui/glade-gtk.c: Fixed widget order inside GtkTable
	  (bug 422823 - patch by Pavel Kostyuchenko)


svn path=/trunk/; revision=1919
2008-09-17 18:21:55 +00:00
Philip Withnall
0413a95096 Updated British English translation.
2008-09-17  Philip Withnall  <philip@tecnocode.co.uk>

	* en_GB.po: Updated British English translation.


svn path=/trunk/; revision=1915
2008-09-17 06:16:47 +00:00
Sandeep Shedmake
eb442f5af7 Updated Marathi Translations
svn path=/trunk/; revision=1914
2008-09-17 05:48:42 +00:00
Tristan Van Berkom
d13b806a17 Reverted the above patch portion where built objects only had thier
* gladeui/glade-widget.c: Reverted the above patch portion where built
	  objects only had thier construct props set, this caused errors, fixed.

Also fixed a bug in previous copy of glade-editor-proeprty.c


svn path=/trunk/; revision=1913
2008-09-16 23:41:29 +00:00
Daniel Nylander
9bcbb72ef5 sv.po: Updated Swedish translation
svn path=/trunk/; revision=1912
2008-09-16 22:20:20 +00:00
Jorge Gonzalez Gonzalez
1cc8fc85e3 Updated Spanish translation
svn path=/trunk/; revision=1911
2008-09-16 21:47:13 +00:00
Tristan Van Berkom
b7d9801253 Added version macros
* gladeui/glade-xml-utils.h: Added version macros

	* plugins/gtk+/gtk+.xml.in: Added version 2.14

	* gladeui/glade-project.c: Now glade loads and saves requires
	  metadata as comments at the toplevel in libglade and older versions
	  of gtk+ that dont recognize versioning (i.e. gtk+ < 2.14) (bug 536310)


svn path=/trunk/; revision=1910
2008-09-16 20:44:30 +00:00
Tristan Van Berkom
3e9cc04cf3 Fixed projects menu bug (bug 532156, fix by Pavel Kostyuchenko).
* src/glade-window.c: Fixed projects menu bug (bug 532156, fix by 
	  Pavel Kostyuchenko).


svn path=/trunk/; revision=1909
2008-09-16 18:39:36 +00:00
Pavel Kostyuchenko
7a250eda93 Creating toplevel widget through unified glade-palette interface. Removed
2008-09-16  Pavel Kostyuchenko <ShprotX@gmail.com>

        * gladeui/glade-app.c:
          Creating toplevel widget through unified glade-palette interface.
          Removed error message when pasting non-toplevel widgets without
          a parent.

        * gladeui/glade-command.h: A new function for getting depth of command recursion

        * gladeui/glade-command.c:
          A new function for getting depth of command recursion.
          A return value of glade_command_set_property_execute function is valid
          and is respected by glade_command_set_properties_list.
          indicate success/failure of their execution.
          Glade-command can be unified to null.
          Setting property command is always executed as a group, so if there is
          any recursive command, they will be added to that group.
          Removed parentless widget message level lowered from critical to
          message.
          Widget is treated as toplevel only if it has no parent.
          Removed an assertion from glade_command_create that doesn't allow
          creation of non-GtkWindow parentless widgets

        * gladeui/glade-editor-property.c:
          Object selection dialog will be optionally filled by parentless
          non-GtkWindow widgets only
          Unparenting root widgets before setting another property to them

        * gladeui/glade-inspector.c:
          Popup for clicking even on empty part of widget list

        * gladeui/glade-palette.h:
          A unified function for creating root widgets

        * gladeui/glade-palette.c:
          A unified function for creating root widgets
          A new button for creating root widgets

        * gladeui/glade-placeholder.[ch]:
          glade_placeholder_get_project has been made public for using in
          glade-popup

        * gladeui/glade-popup.c:
          A new function glade_popup_simple_pop for creating a context menu on
          an empty space of glade-inspector
          New context menu items for adding widgets

        * gladeui/glade-popup.h:
          A new function glade_popup_simple_pop for creating a context menu on
          an empty space of glade-inspector

        * gladeui/glade-project.c:
          Unifying command even if there's redo items.
          Unifying atomic commands only.
          Unifying to null

        * gladeui/glade-property-class.[ch]:
          A new field for making properties that points to parentless widgets

        * gladeui/glade-property.h:
          Added a return value to glade_property_set* functions to indicate
          success/failure that is used in glade-command

        * gladeui/glade-property.c:
          Ignoring parentless_widget properties while duplicating properties.
          Additional check while adding/removing property reference
          Added a return value to glade_property_set* functions to indicate
          success/failure that is used in glade-command.
          Determining that property is changed using glade-proproperty method
          instead of direct comparing GValue.
          Loading properties through glade-widget-adaptor interface instead of
          getting them directly.
          remove_object method now unsets referencing property instead of
          setting it.
          Removed dummy duplicated setting of property while unsetting
          referencing property.

        * gladeui/glade-property.h:
          Added a return value to glade_property_set* functions to indicate
          success/failure that is used in glade-command.

        * gladeui/glade-widget.c:
          Removed setting widget properties to template/default values while
          building a new object, because they will be set later in constructor.
          Reloading properties after duplicating a widget.
          A new function for removing parent reference, that was made by setting
          parentless_widget property to the widget.
          Saving and loading parentless_widget properties while rebuilding,
          because they cannot be duplicated.
          Corrected destroying of an old widget while rebuilding. Seems like
          it's not fully correct still.

        * gladeui/glade-widget.h:
          A new function for removing parent reference, that was made by setting
          parentless_widget property to the widget.

        * gladeui/glade-xml-utils.h:
          A new tag "parentless-widget" as a property attribute

        * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
          Removed an old hack for "image" property of GtkMessageDialog.
          A new implementation of "image" property using parentless_widget
          kind of property.
          Added an ability of working with parentless widgets using
          "remove parent" and "add parent" items of context menu


svn path=/trunk/; revision=1908
2008-09-16 18:25:52 +00:00
Tristan Van Berkom
70e6510afb Made insert/remove column/row on gtktable take packing property order into
* plugins/gtk+/glade-gtk.c: Made insert/remove column/row on gtktable
	  take packing property order into account (bug 503355 fix by Eli Collins).


svn path=/trunk/; revision=1907
2008-09-16 15:40:33 +00:00
Tristan Van Berkom
8a3fe78961 Fixed calculation to get deepest wrapped glade widget (bug 539924 - fix by
* gladeui/glade-design-layout.c: Fixed calculation to get deepest
	  wrapped glade widget (bug 539924 - fix by Pavel Kostyuchenko).


svn path=/trunk/; revision=1906
2008-09-16 15:01:41 +00:00
Juan Pablo Ugarte
18e1bcf1de added glade_gtk_label_string_from_value() to avoid param spec warnings
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
  added glade_gtk_label_string_from_value() to avoid
  param spec warnings


svn path=/trunk/; revision=1905
2008-09-15 20:25:23 +00:00
Changwoo Ryu
1e9f96871f Updated Korean translation.
svn path=/trunk/; revision=1904
2008-09-15 11:11:29 +00:00
Djihed Afifi
7dccfce3c6 Updated Arabic Translation by Djihed Afifi.
* Updated Arabic Translation by Djihed Afifi. 

svn path=/trunk/; revision=1903
2008-09-15 09:35:47 +00:00
Praveen Arimbrathodiyil
8df1fe6731 Malayalam translation updated by Hari Vishnu
svn path=/trunk/; revision=1902
2008-09-14 20:56:11 +00:00
Ilkka Tuohela
91a87e9a5e Updated Finnish translation
svn path=/trunk/; revision=1901
2008-09-14 12:06:48 +00:00
Djihed Afifi
c67da8739c Updated Arabic Translation by Djihed Afifi.
* Updated Arabic Translation by Djihed Afifi. 

svn path=/trunk/; revision=1900
2008-09-14 10:14:29 +00:00
Luca Ferretti
29f6f1d1f0 Updated Italian translation by Andrea Zagli.
2008-09-14  Luca Ferretti  <elle.uca@libero.it>

	* it.po: Updated Italian translation by Andrea Zagli.

svn path=/trunk/; revision=1899
2008-09-14 09:27:32 +00:00
Yair Hershkovitz
b042beccd4 updated hebrew translation
svn path=/trunk/; revision=1898
2008-09-13 19:31:35 +00:00
Baris Cicek
a5a06c16f1 Updated Turkish Translation
svn path=/trunk/; revision=1897
2008-09-13 04:25:33 +00:00
Alexander Shopov
8cc74013e5 Updated Bulgarian translation by Yavor Doganov <yavor@gnu.org>
2008-09-12  Alexander Shopov  <ash@contact.bg>

	* bg.po: Updated Bulgarian translation by
	Yavor Doganov <yavor@gnu.org>

svn path=/trunk/; revision=1896
2008-09-12 05:12:47 +00:00
Rajesh Ranjan
2dc600d130 hindi update by Rajesh Ranjan
svn path=/trunk/; revision=1895
2008-09-11 10:19:56 +00:00
Gabor Keleman
7e0985b4e8 Small update
svn path=/trunk/; revision=1894
2008-09-10 20:30:54 +00:00
Gabor Kelemen
603b0239de Translation updated.
2008-09-10  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.

svn path=/trunk/; revision=1893
2008-09-10 16:44:06 +00:00
Leonardo Ferreira Fontenelle
417ffa2a7d Brazilian Portuguese translation updated by Vladimir Melo.
2008-09-09  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>

	* pt_BR.po: Brazilian Portuguese translation updated by Vladimir Melo.

svn path=/trunk/; revision=1892
2008-09-10 01:58:29 +00:00
Matej Urbančič
3a8148e875 Updated Slovenian translation
svn path=/trunk/; revision=1891
2008-09-09 13:27:37 +00:00
Nickolay V. Shmyrev
3c1572ee66 Updated Russian translation by Yuriy Penkin.
2008-09-07  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

	* ru.po: Updated Russian translation by Yuriy Penkin.


svn path=/trunk/; revision=1890
2008-09-07 17:23:19 +00:00
Duarte Loreto
dadb9ee59d Updated Portuguese translation.
2008-09-07  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1889
2008-09-07 17:08:50 +00:00
Theppitak Karoonboonyanan
bed660170d Updated Thai translation.
2008-09-04  Theppitak Karoonboonyanan  <thep@linux.thai.net>

	* th.po: Updated Thai translation.


svn path=/trunk/; revision=1888
2008-09-04 15:07:46 +00:00
Philip Withnall
5e68351a5f Updated British English translation.
2008-09-03  Philip Withnall  <philip@tecnocode.co.uk>

	* en_GB.po: Updated British English translation.


svn path=/trunk/; revision=1887
2008-09-03 22:01:41 +00:00
Claude Paroz
2937169bab Updated French translation by Robert-André Mauchin.
2008-09-02  Claude Paroz  <claude@2xlibre.net>

	* fr.po: Updated French translation by Robert-André Mauchin.

svn path=/trunk/; revision=1886
2008-09-02 20:04:16 +00:00
Claude Paroz
b0201ec49d Trivial change in a string to remove duplicate (io -> I/O).
2008-09-02  Claude Paroz  <claude@2xlibre.net>

	* gladeui/glade-utils.c: (glade_util_copy_file):
	  Trivial change in a string to remove duplicate (io -> I/O).

svn path=/trunk/; revision=1885
2008-09-02 19:49:41 +00:00
Daniel Nylander
6794b8ef13 sv.po: Updated Swedish translation
svn path=/trunk/; revision=1884
2008-09-02 12:40:14 +00:00
Jorge Gonzalez Gonzalez
8015936d24 Updated Spanish translation
svn path=/trunk/; revision=1883
2008-09-02 09:57:44 +00:00
Ignacio Casal Quinteiro
d14ddd4429 Updated Galician translation
svn path=/trunk/; revision=1882
2008-09-01 19:29:17 +00:00
Tristan Van Berkom
cda0e3c794 response-id now only available for buttons that are in the action area of
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
	  response-id now only available for buttons that are in the
	  action area of dialogs (bug 464502)


svn path=/trunk/; revision=1881
2008-09-01 18:05:35 +00:00
Daniel Nylander
6148a965e6 sv.po: Updated Swedish translation
svn path=/trunk/; revision=1880
2008-08-27 22:55:39 +00:00
Ilkka Tuohela
0171078d00 Updated Finnish translation
svn path=/trunk/; revision=1879
2008-08-27 09:51:02 +00:00
Sweta Kothari
7bef073413 Committed Translation by Sweta Kothari
svn path=/trunk/; revision=1878
2008-08-27 06:20:44 +00:00
Djihed Afifi
e0a90111e5 Updated Arabic Translation by Djihed Afifi.
* Updated Arabic Translation by Djihed Afifi. 

svn path=/trunk/; revision=1877
2008-08-26 14:16:45 +00:00
Sweta Kothari
5b7f6494df Added gujarati translation
svn path=/trunk/; revision=1876
2008-08-26 12:20:26 +00:00
Priit Laes
60f3be42df Translation updated by Ivar Smolin
2008-08-25  Priit Laes  <plaes at svn dot gnome dot org>

	* et.po: Translation updated by Ivar Smolin

svn path=/trunk/; revision=1875
2008-08-24 23:07:52 +00:00
Sandeep Shedmake
8dbfaab79a Updated Marathi Translations
svn path=/trunk/; revision=1874
2008-08-18 11:49:16 +00:00
Sandeep Shedmake
e1d2a82bea Updated Marathi Translations
svn path=/trunk/; revision=1873
2008-08-18 11:44:49 +00:00
Sandeep Shedmake
81a67fd19b Adding Marathi Translations
svn path=/trunk/; revision=1872
2008-08-18 08:56:17 +00:00
Sandeep Shedmake
1958898e04 Updating Marathi Translations
svn path=/trunk/; revision=1871
2008-08-18 08:53:45 +00:00
Sandeep Shedmake
4fe712012a Adding Marathi Language
svn path=/trunk/; revision=1870
2008-08-18 08:52:04 +00:00
Vincent Geddes
2f97cbc8a4 Forgot to add ChangeLog entry for last commit.
* Forgot to add ChangeLog entry for last commit.

svn path=/trunk/; revision=1869
2008-08-17 13:27:26 +00:00
Vincent Geddes
87adcc7933 Don't include the private header file `glade-marshallers.h'. Rather
* gladeui/glade-base-editor.h: Don't include the
	  private header file `glade-marshallers.h'. Rather
          include it `glade-base-editor.c'. 

svn path=/trunk/; revision=1868
2008-08-17 13:23:33 +00:00
Duarte Loreto
79473cb3cd Updated Portuguese translation.
2008-08-17  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1867
2008-08-17 10:16:47 +00:00
Leonardo Ferreira Fontenelle
742ba516b6 Brazilian Portuguese translation updated by Igor Pires Soares.
2008-08-15  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>

	* pt_BR.po: Brazilian Portuguese translation updated by Igor Pires
	Soares.

svn path=/trunk/; revision=1866
2008-08-16 01:15:50 +00:00
Ilkka Tuohela
1cd8079167 Updated Finnish translation
svn path=/trunk/; revision=1865
2008-08-14 07:33:58 +00:00
Theppitak Karoonboonyanan
77812b5f54 Updated Thai translation.
2008-08-12  Theppitak Karoonboonyanan  <thep@linux.thai.net>

	* th.po: Updated Thai translation.


svn path=/trunk/; revision=1864
2008-08-12 13:58:48 +00:00
Yair Hershkovitz
c5ec874f31 updated hebrew translation
svn path=/trunk/; revision=1863
2008-08-12 12:53:14 +00:00
Jorge Gonzalez Gonzalez
46c13af1c7 Updated Spanish translation
svn path=/trunk/; revision=1862
2008-08-10 10:43:24 +00:00
Tristan Van Berkom
40586399fc Silently ignore unrecognized signals in glade file instead of aborting
* gladeui/glade-project.c: Silently ignore unrecognized signals in glade file
	  instead of aborting (bug 533728 - fix by Pavel Kostyuchenko).


svn path=/trunk/; revision=1861
2008-08-09 15:36:39 +00:00
Tristan Van Berkom
da22878dff Worked around special child type naming discrepencies between formats from
* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in:
	  Worked around special child type naming discrepencies between
	  formats from the plugin side (bug 533217 - fix by Pavel Kostyuchenko).


svn path=/trunk/; revision=1860
2008-08-09 14:59:56 +00:00
Jorge Gonzalez Gonzalez
103cdc2baa Updated Spanish translation
svn path=/trunk/; revision=1859
2008-08-08 19:01:19 +00:00
Ignacio Casal Quinteiro
125718caa3 Updated Galician translation
svn path=/trunk/; revision=1858
2008-08-07 18:07:50 +00:00
Jorge Gonzalez Gonzalez
3fa6bb98b1 Updated Spanish translation
svn path=/trunk/; revision=1857
2008-08-07 16:22:48 +00:00
Tristan Van Berkom
b384e3d17b - Update loaded assistant pages properly (bug 540531 - fix by Antti Kaijanmäki)
svn path=/trunk/; revision=1856
2008-08-06 23:53:39 +00:00
Tristan Van Berkom
09277b1cc9 Now objects and resource property fields are updated correctly (bug 542335
* gladeui/glade-editor-property.c: Now objects and resource property fields are updated
	  correctly (bug 542335 - fix by Pavel Kostyuchenko).


svn path=/trunk/; revision=1855
2008-08-06 23:39:52 +00:00
Tristan Van Berkom
5ceaff940b Made checkbutton::draw-indicator save-always (bug 543008)
* plugins/gtk+/gtk+.xml.in: Made checkbutton::draw-indicator save-always (bug 543008)


svn path=/trunk/; revision=1854
2008-08-06 23:13:11 +00:00
Tristan Van Berkom
e3e1339e26 adding attributes editor
svn path=/trunk/; revision=1853
2008-08-06 22:31:50 +00:00
Tristan Van Berkom
05a78c9b35 New internal pspec type for attributes and new editor widget for them.
* plugins/gtk+/Makefile.am, plugins/gtk+/glade-attributes.[ch]: 
	  New internal pspec type for attributes and new editor widget for them.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: 
	  Load/Save/Edit pango attributes on GtkLabel

	* gladeui/glade-utils.[ch]: Added enum value <--> string converters.


svn path=/trunk/; revision=1852
2008-08-06 22:21:03 +00:00
Djihed Afifi
820a8ddc96 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1851
2008-08-06 08:30:29 +00:00
Ignacio Casal Quinteiro
5da665cf92 Updated Galician translation
svn path=/trunk/; revision=1850
2008-08-04 19:03:21 +00:00
Jorge Gonzalez Gonzalez
ed59d5d4e4 Updated spanish translation
svn path=/trunk/; revision=1849
2008-08-04 18:22:34 +00:00
Tristan Van Berkom
4b1843ec1d ammended docs for widget icon installations.
svn path=/trunk/; revision=1848
2008-08-02 17:31:51 +00:00
Duarte Loreto
5d6c14d164 Updated Portuguese translation.
2008-07-31  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1847
2008-07-31 11:56:53 +00:00
Djihed Afifi
9b010ac611 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1846
2008-07-29 01:28:21 +00:00
Leonardo Ferreira Fontenelle
8d69a127f9 Terminology improvements by Fabrício Godoy.
2008-07-25  Leonardo Ferreira Fontenelle  <leonardof@gnome.org>

	* pt_BR.po: Terminology improvements by Fabrício Godoy.

svn path=/trunk/; revision=1845
2008-07-26 00:51:38 +00:00
Juan Pablo Ugarte
94982e0587 added name parameter to GladeCatalogInitFunc.
* gladeui/glade-catalog.c: added name parameter to
  GladeCatalogInitFunc.

* python/glade-python.c: New plugin to support python widget
  at runtime.

* m4/python.m4, glade3/configure.ac, plugins/Makefile.am,
  plugins/python/Makefile.am:
  added python check and build rules.

* gnome/glade-gnome.c: updated glade_gnomeui_init() prototype


svn path=/trunk/; revision=1844
2008-07-24 18:36:33 +00:00
Chao-Hsiung Liao
df0f167b75 3.5.2
svn path=/trunk/; revision=1843
2008-07-19 00:53:42 +00:00
Juan Pablo Ugarte
88e95018b3 save main window paned positions.
* src/glade-window.c: save main window paned positions.

svn path=/trunk/; revision=1842
2008-07-18 20:48:09 +00:00
Yannig MARCHEGAY
3f24058e57 Updated Occitan translation
svn path=/trunk/; revision=1841
2008-07-03 07:08:00 +00:00
Theppitak Karoonboonyanan
302a8f84d5 Updated Thai translation.
2008-06-20  Theppitak Karoonboonyanan  <thep@linux.thai.net>

	* th.po: Updated Thai translation.


svn path=/trunk/; revision=1840
2008-06-20 10:08:03 +00:00
Priit Laes
ce7553211b Translation updated by Ivar Smolin
2008-06-13  Priit Laes  <plaes at svn dot gnome dot org>

	* et.po: Translation updated by Ivar Smolin

svn path=/trunk/; revision=1838
2008-06-13 06:27:40 +00:00
Djihed Afifi
baef1c5da6 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1837
2008-06-11 21:36:39 +00:00
Gabor Keleman
7032bb6fb7 small update
svn path=/trunk/; revision=1836
2008-06-10 22:44:29 +00:00
Gabor Kelemen
973208b142 Translation updated.
2008-06-09  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.

svn path=/trunk/; revision=1835
2008-06-09 21:38:06 +00:00
Yair Hershkovitz
d977320cd3 updated hebrew translation
svn path=/trunk/; revision=1834
2008-06-09 21:02:06 +00:00
Ignacio Casal Quinteiro
98d437af4e Updated Galician Translation.
svn path=/trunk/; revision=1833
2008-06-04 12:41:11 +00:00
Richard Hult
4ae4d154f5 Remove copy-and-paste mistake (by the looks of it). Fixes issue with
2008-05-27  Richard Hult  <richard@imendio.com>

	* gladeui/glade-xml-utils.h: Remove copy-and-paste mistake (by the
	looks of it). Fixes issue with duplicate symbols when linking on
	Mac.

svn path=/trunk/; revision=1832
2008-05-27 17:51:07 +00:00
Clytie Siddall
f872d7c940 Updated Vietnamese translation
svn path=/trunk/; revision=1830
2008-05-24 14:29:37 +00:00
Djihed Afifi
6394c56d80 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1829
2008-05-22 22:56:48 +00:00
Vincent van Adrighem
708dbc69ee Translation updated.
2008-05-20  Vincent van Adrighem  <adrighem@gnome.org>

	* nl.po: Translation updated.

svn path=/trunk/; revision=1828
2008-05-20 09:39:36 +00:00
Djihed Afifi
337d539218 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1827
2008-05-19 01:08:35 +00:00
Tristan Van Berkom
bf42e82488 Fixed boldness in reset dialog treeview.
* gladeui/glade-editor.c: Fixed boldness in reset dialog treeview.


svn path=/trunk/; revision=1826
2008-05-13 20:36:31 +00:00
Tristan Van Berkom
aabf2d8038 Fixed boldness in reset dialog treeview.
* gladeui/glade-editor.c: Fixed boldness in reset dialog treeview.


svn path=/trunk/; revision=1825
2008-05-13 20:36:06 +00:00
Tristan Van Berkom
1a9181ab40 Fixed bold/grey/italics in treeview.
* plugins/gtk+/glade-accels.c: Fixed bold/grey/italics in treeview.


svn path=/trunk/; revision=1824
2008-05-13 20:17:58 +00:00
Tristan Van Berkom
1ab33e48e6 fixed !
svn path=/trunk/; revision=1823
2008-05-11 18:11:53 +00:00
Tristan Van Berkom
1a43428c0c fixing changelog
svn path=/trunk/; revision=1822
2008-05-11 17:54:52 +00:00
Tristan Van Berkom
370ad0ce3c Applied patch from Pavel Kostyuchenko to fix project modified state flag
* gladeui/glade-property.c: Applied patch from Pavel Kostyuchenko to fix project
	  modified state flag glitches (bug 532017).


svn path=/trunk/; revision=1820
2008-05-11 17:50:16 +00:00
Tristan Van Berkom
85c334e505 Applied patch from Pavel Kostyuchenko to prevent hangs in anjuta (bug
* gladeui/glade-widget.c: Applied patch from Pavel Kostyuchenko to prevent
	  hangs in anjuta (bug 531585).

	* gladeui/glade-property.c, gladeui/glade-property-class.c: Applied patch from 
	  Pavel Kostyuchenko to unify duplicate implementation property comparisons (bug 532013)


svn path=/trunk/; revision=1818
2008-05-11 15:04:45 +00:00
Tristan Van Berkom
ef648a1a69 Avoid feedback loops when committing properties, fixes bug 527896.
* gladeui/glade-editor-property.c: Avoid feedback loops when committing properties,
	  fixes bug 527896.

	* src/glade-window.c: Updated copyright dates.


svn path=/trunk/; revision=1817
2008-05-05 16:42:09 +00:00
Yair Hershkovitz
0496c09395 updated hebrew translation
svn path=/trunk/; revision=1814
2008-05-05 10:29:10 +00:00
Yuriy Penkin
6f9b22341a Added Russian translation.
2008-05-04  Yuriy Penkin <yuriy.penkin@gmail.com>

	* Makefile.am:
	* ru/ru.po: Added Russian translation.


svn path=/trunk/; revision=1813
2008-05-03 20:37:09 +00:00
Jorge Gonzalez Gonzalez
d7b8174241 Updated Spanish translation
svn path=/trunk/; revision=1812
2008-05-03 11:41:55 +00:00
Tristan Van Berkom
fb5b69e8d0 fixed broken trunk
svn path=/trunk/; revision=1811
2008-05-02 17:38:45 +00:00
Tristan Van Berkom
a4358b60b3 Removed unused prototypes
* gladeui/glade-utils.h, gladeui/glade-builtins.h: Removed unused prototypes

	* gladeui/glade-editor.c: Added safety check.

	* gladeui/glade-property.c: Dont load virtual properties.

	* gladeui/glade-property-class.c: Fixed bug where G_PARAM_SPEC_BOXED was
	  used to check if the value held a boxed type.


svn path=/trunk/; revision=1810
2008-05-02 02:37:35 +00:00
Tristan Van Berkom
0e3c444b38 removed
svn path=/trunk/; revision=1809
2008-05-02 02:29:30 +00:00
Tristan Van Berkom
ea0d3d4033 Removed.
* plugins/gtk+/glade-keys.c: Removed.

	* plugins/gtk+/glade-accels.c: Removed old modifier and handbuilt keycode
	  menus and obnoxious comboboxrenderers in favour of one simple accelrenderer.


svn path=/trunk/; revision=1808
2008-05-02 02:27:10 +00:00
Ignacio Casal Quinteiro
f4ab868ec2 Updated Galician Translation.
svn path=/trunk/; revision=1807
2008-04-29 21:22:23 +00:00
Yair Hershkovitz
6c76799968 updated hebrew translation
svn path=/trunk/; revision=1806
2008-04-27 16:47:24 +00:00
Philip Withnall
8507726f65 Updated British English translation.
2008-04-22  Philip Withnall  <pwithnall@svn.gnome.org>

	* en_GB.po: Updated British English translation.


svn path=/trunk/; revision=1805
2008-04-22 06:07:08 +00:00
Priit Laes
9d2e5e978d Translation updated by Ivar Smolin
2008-04-20  Priit Laes  <plaes at svn dot gnome dot org>

	* et.po: Translation updated by Ivar Smolin

svn path=/trunk/; revision=1804
2008-04-20 17:44:36 +00:00
Juan Pablo Ugarte
7fd3d8fcc7 added glade_property_class_compare()
* gladeui/glade-property-class.[ch]: added glade_property_class_compare()
	
* gladeui/glade-editor-property.c: use new compare function in
  glade_editor_property_commit() instead of g_param_values_cmp()
  since GBoxed comparison is not well defined.
  Fixes bug #528511.

svn path=/trunk/; revision=1800
2008-04-17 20:29:33 +00:00
Juan Pablo Ugarte
bae179208a make glade_widget_build_object() do not apply catalog defaults if the
* gladeui/glade-widget.c: make glade_widget_build_object() do not apply
  catalog defaults if the object we are creating is for loading purposes.

svn path=/trunk/; revision=1799
2008-04-16 23:22:10 +00:00
Matej Urbančič
c72f2c0bbd Updated Slovenian translation
svn path=/trunk/; revision=1798
2008-04-13 17:47:24 +00:00
Jorge Gonzalez Gonzalez
f4da36e5d9 Updated Spanish translation
svn path=/trunk/; revision=1797
2008-04-12 14:08:34 +00:00
Tristan Van Berkom
d1f3913cde Fixed invisible labels in the menu editor.
* gladeui/glade-editor-property.c: Fixed invisible labels in
	the menu editor.

	* gladeui/glade-widget.c, gladeui/glade-widget.h, gladeui/glade-xml-utils.c,
	gladeui/glade-utils.c, gladeui/glade-xml-utils.h, gladeui/glade-utils.h,
	gladeui/glade-property.c, gladeui/glade-property-class.c,
	gladeui/glade-property-class.h, gladeui/glade-project.c, gladeui/glade-project.h:
	implemented "factory-stock-id" in the catalog, this allows you to take a resource
	image file property formerly hacked as a custom property in libglade, and glade
	will generate a hidden icon factory in builder files so that it will be loaded
	through the stock system instead, "factory-stock-id" depicts the name of the
	stock property of the property-class in question.


svn path=/trunk/; revision=1796
2008-04-12 05:45:03 +00:00
Tristan Van Berkom
bdabf9e719 - Added construct "class" property so that dupping doesnt crash.
svn path=/trunk/; revision=1795
2008-04-11 18:43:04 +00:00
Tristan Van Berkom
9e84484717 Fixed bold modified state for disabled properties.
* gladeui/glade-property.c: Fixed bold modified state for 
	disabled properties.

	* plugins/gtk+/gtk+.xml.in: Made default width/height match
	the default-width default-height set for each dialog as reasonable
	default values.


svn path=/trunk/; revision=1794
2008-04-11 18:25:33 +00:00
Tristan Van Berkom
072bcf8ae8 added translator comments to some strings
svn path=/trunk/; revision=1793
2008-04-10 22:47:13 +00:00
Jorge Gonzalez Gonzalez
b0b8e74728 Updated Spanish translation
svn path=/trunk/; revision=1792
2008-04-10 22:07:02 +00:00
Tristan Van Berkom
5a3db79a01 Now load insensitive when widgets are unsupported, and use a warning icon
* gladeui/glade-palette-item.c, gladeui/glade-palette.c,
	gladeui/glade-palette-item.h, gladeui/glade-palette.h:
	Now load insensitive when widgets are unsupported, and use
	a warning icon when they are deprecated, use tooltips from
	glade_project_verify_adaptor ().

	* gladeui/glade-app.[ch]: Added glade_app_check_get_project ()

	* gladeui/glade-project.c, gladeui/glade-project.h: fix some mistakes


svn path=/trunk/; revision=1791
2008-04-10 21:32:44 +00:00
Tristan Van Berkom
3eb37daede Added padding on top of undocked tools, removed custom label handling of
* src/glade-window.c: Added padding on top of undocked tools, removed
	custom label handling of widget name.

	* gladeui/glade-editor-property.c: Adapted and applied Thomas Rydzynski's patch
	so that text wraps in property editor (bug 351902)

	* gladeui/glade-editor.c: Trash the class entry and put a class header
	on the whole editor widget, fixed a bug on my signal disconnections.


svn path=/trunk/; revision=1790
2008-04-10 19:39:58 +00:00
Tristan Van Berkom
300994b538 Preferences dialog is not modal anymore ;-)
svn path=/trunk/; revision=1789
2008-04-10 03:53:01 +00:00
Tristan Van Berkom
2606b29fcc Loaded and watched the new support_warning on GladeWidget
* gladeui/glade-editor.c, gladeui/glade-editor.h:
	Loaded and watched the new support_warning on GladeWidget

	* gladeui/glade-editor-property.c, gladeui/glade-editor-property.h:
	Loaded and watched the new support_warning on GladeProperty
	
	* gladeui/glade-widget.c, gladeui/glade-widget.h: Keep a support-warning
	property around as metadata updated by GladeProject.

	* gladeui/glade-property.c, gladeui/glade-property.h:
	Added new support_warning and state properties.

	* gladeui/glade-project.c, gladeui/glade-project.h:
	Now GladeProject generates strings to show in the normal
	UI along with longer style reports, always updates widgets
	warning message metadata when they come into the project 
	or when the format or target versions change.

	* gladeui/glade-signal.c: Removed a bogus return.


svn path=/trunk/; revision=1788
2008-04-10 03:10:11 +00:00
Tristan Van Berkom
1e2f5fb3af Rolling 3.5.2. quick bugfix release
* NEWS, configure.ac: Rolling 3.5.2. quick bugfix release

	* gladeui/glade-widget-adaptor.c: oops, was parsing booleans
	as doubles, fixed bugs with builder-unsupported and deprecated.


svn path=/trunk/; revision=1786
2008-04-09 20:40:54 +00:00
Tristan Van Berkom
8aa2a06810 Rolling 3.5.1.
* NEWS, configure.ac: Rolling 3.5.1.


svn path=/trunk/; revision=1784
2008-04-09 19:42:44 +00:00
Tristan Van Berkom
d068240cc0 Documented newly added catalog tags.
* doc/catalogintro.sgml, doc/widgetclasses.sgml, doc/properties.sgml:
	Documented newly added catalog tags.


svn path=/trunk/; revision=1783
2008-04-09 19:29:41 +00:00
Tristan Van Berkom
b5a7583569 enhanced output and fixed a crasher in my last patch.
svn path=/trunk/; revision=1782
2008-04-09 18:58:47 +00:00
Tristan Van Berkom
8f4cf88752 fixed signals and properties to inherit the base version
of the widget in question.


svn path=/trunk/; revision=1781
2008-04-09 18:36:18 +00:00
Tristan Van Berkom
1dd08365a6 Filled in all since, deprecated and builder-unsupported properties.
* plugins/gtk+/gtk+.xml.in: Filled in all since, deprecated and
	  builder-unsupported properties.

	* gladeui/glade-widget.c, gladeui/glade-widget.h, gladeui/glade-widget-adaptor.c,
	gladeui/glade-command.c, gladeui/glade-widget-adaptor.h,
	gladeui/glade-utils.h, gladeui/glade-catalog.c, 
	gladeui/glade-catalog.h, gladeui/glade-app.c, gladeui/glade-app.h, 
	gladeui/glade-property-class.c, gladeui/glade-property-class.h, 
	gladeui/glade-project.c, gladeui/glade-project.h:
	Added versioning support, you can always chose the target version of
	your project starting with gtk+ 2.8 - a project preferences dialog has
	been added where you can switch your format, switch your target version
	and test for incompatabilities. incompatability error dialogs are also
	launched on save as. Target versions are saved to the glade file; 
	TODO: patch GtkBuilder to test the required gtk+ version from
	<requires lib="gtk+" version="2.8"> and at least warn, also let
	third party widget developers test thier own versions using builder.

	* gladeui/glade-xml-utils.h, gladeui/glade-xml-utils.c: routines
	for parsing version numbers.


	* gladeui/glade-utils.c: glade_util_ui_message() takes a widget to
	embed arg now.


svn path=/trunk/; revision=1780
2008-04-09 18:06:02 +00:00
Tristan Van Berkom
d62e5925b3 fixed distcheck errors.
svn path=/trunk/; revision=1778
2008-04-08 04:26:07 +00:00
Tristan Van Berkom
fb79368d16 Reverted the project format menu from edit
* src/glade-window.c: Reverted the project format menu from edit

	* src/glade-utils.c: Add file format option to "save as" dialog,
	also added new filters for .ui files.


svn path=/trunk/; revision=1777
2008-04-08 03:34:49 +00:00
Tristan Van Berkom
636521d77c fixed a few minor errors (was missing the "parent" attribute
on widget classes)



svn path=/trunk/; revision=1776
2008-04-07 12:46:21 +00:00
Tristan Van Berkom
c43aaea090 Run gtkdocize with --flavour=no-tmpl
* autogen.sh: Run gtkdocize with --flavour=no-tmpl
	
	* configure.ac: Require gtk-doc 1.9 and bump to 3.5.0 dev version.
	
	* doc/gladeui-overrides.txt, doc/children.sgml, doc/tmpl/*: Removed unneeded.

	* doc/gladeui-docs.sgml, doc/widgetclasses.sgml,
	doc/catalogintro.sgml, doc/Makefile.am: Mega docs update, added new
	files and completely rediscribed the catalog in its new form.

	* gladeui/glade-design-view.c, gladeui/glade-widget.c, 
	gladeui/glade-widget-adaptor.c, gladeui/glade-command.c,
	gladeui/glade-widget-adaptor.h, gladeui/glade-base-editor.c,
	gladeui/glade-widget-action.c, gladeui/glade-xml-utils.c,
	gladeui/glade-utils.c, gladeui/glade-catalog.c, gladeui/glade-property.c,
	gladeui/glade-project.c: Added some description statements to newly 
	documented files, fixed some warnings in other sources.

M    ChangeLog
M    configure.ac
M    doc/gladeui-docs.sgml
M    doc/widgetclasses.sgml
M    doc/catalogintro.sgml
D    doc/gladeui-overrides.txt
M    doc/Makefile.am
D    doc/children.sgml
D    doc/tmpl
M    doc/gladeui-sections.txt
M    doc/gladeui.types
M    doc/properties.sgml
M    gladeui/glade-design-view.c
M    gladeui/glade-widget.c
M    gladeui/glade-widget-adaptor.c
M    gladeui/glade-command.c
M    gladeui/glade-widget-adaptor.h
M    gladeui/glade-base-editor.c
M    gladeui/glade-widget-action.c
M    gladeui/glade-xml-utils.c
M    gladeui/glade-utils.c
M    gladeui/glade-catalog.c
M    gladeui/glade-property.c
M    gladeui/glade-project.c
M    autogen.sh

svn path=/trunk/; revision=1775
2008-04-07 12:23:11 +00:00
Tristan Van Berkom
c79fc7cbe1 Updated with new syms.
* doc/gladeui-sections.txt: Updated with new syms.


svn path=/trunk/; revision=1774
2008-04-06 21:54:52 +00:00
Tristan Van Berkom
ad1df421de Implemented dual format for atk properties, afaics accelerators are loaded
* plugins/gtk+/glade-gtk.c: Implemented dual format for atk
	  properties, afaics accelerators are loaded and saved identically.


svn path=/trunk/; revision=1773
2008-04-06 10:01:51 +00:00
Tristan Van Berkom
ea8be1ba20 mini unused var commit
svn path=/trunk/; revision=1772
2008-04-06 00:35:28 +00:00
Tristan Van Berkom
3b86d7f0e1 Added basic builder support, format can be chosen via a radiomenuitem in
* gladeui/glade-widget.[ch], gladeui/glade-widget-adaptor.c
	  gladeui/glade-xml-utils.[ch], gladeui/glade-project.c,
	  gladeui/glade-property.c, gladeui/glade-signal.c, 
	  plugins/gtk+/glade-gtk.c, src/glade-window.c:
	  Added basic builder support, format can be chosen via a
	  radiomenuitem in the "Edit" menu, currently supports different
	  names for the interface and widget tags, and saves special
	  child widgets accordingly (i.e. notebook tabs and frame labels).


svn path=/trunk/; revision=1771
2008-04-06 00:31:29 +00:00
Tristan Van Berkom
7b9f3bf947 removed dumb comments
svn path=/trunk/; revision=1770
2008-04-05 20:42:06 +00:00
Tristan Van Berkom
9270859133 gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.h, allow the
* gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.h,
	  allow the plugin to handle read_child() write_child() (mostly
	  just to allow you to skip some children like fake AtkObjects,
	  but can also be used to parse/write packing stuff (i.e. the
	  <child> tag) in custom ways).


svn path=/trunk/; revision=1769
2008-04-05 20:28:08 +00:00
Tristan Van Berkom
14cc6063b6 Now recurse through the plugin to read and write widget children,
* gladeui/glade-widget.[ch], glade-widget-adaptor.c:
	  Now recurse through the plugin to read and write widget
	  children, allowiong you to do stuff before or after children
	  are written/read from the xml file.


svn path=/trunk/; revision=1768
2008-04-05 19:52:17 +00:00
Tristan Van Berkom
cd91636a64 Resurected <requires> code and saving the generic comment again, still
* gladeui/glade-project.c: Resurected <requires> code and
	  saving the generic comment again, still need to load the
	  comment.


svn path=/trunk/; revision=1767
2008-04-04 19:13:27 +00:00
Johan Dahlin
85ed0ae123 reviewed by: Tristan
2008-04-03  Johan Dahlin  <jdahlin@async.com.br>

    reviewed by: Tristan

    * gladeui/glade-project.c:
    * gladeui/glade-project.h:

    Add file format to GladeProject and public accessors.


svn path=/trunk/; revision=1766
2008-04-03 20:36:39 +00:00
Tristan Van Berkom
7f4d683952 Fixed crasher on null string when parsing modifiers.
* plugins/gtk+/glade-gtk.c: Fixed crasher on null string
	  when parsing modifiers.


svn path=/trunk/; revision=1765
2008-04-03 20:22:27 +00:00
Tristan Van Berkom
64bb8141c6 merging builder branch into trunk
A    plugins/gtk+/glade-keysyms.c
M    plugins/gtk+/glade-gtk.c
M    plugins/gtk+/gtk+.xml.in
A    plugins/gtk+/glade-accels.c
M    plugins/gtk+/Makefile.am
A    plugins/gtk+/glade-accels.h
M    ChangeLog
M    gladeui/glade-editor.c
M    gladeui/glade-editor-property.c
M    gladeui/glade-editor-property.h
M    gladeui/glade-widget.c
M    gladeui/glade-widget.h
M    gladeui/glade-widget-adaptor.c
M    gladeui/glade-command.c
M    gladeui/glade-widget-adaptor.h
M    gladeui/glade-parser.c
M    gladeui/glade-xml-utils.c
M    gladeui/glade-base-editor.c
M    gladeui/glade-utils.c
D    gladeui/glade-parser.h
M    gladeui/glade-signal-editor.c
M    gladeui/glade-xml-utils.h
D    gladeui/glade-keysyms.c
M    gladeui/glade-property.c
M    gladeui/glade-property-class.c
M    gladeui/glade-property.h
M    gladeui/glade-builtins.c
M    gladeui/glade-property-class.h
M    gladeui/glade-builtins.h
M    gladeui/glade-project.c
M    gladeui/glade-signal.c
M    gladeui/Makefile.am
M    gladeui/glade-signal.h

svn path=/trunk/; revision=1764
2008-04-03 19:52:40 +00:00
Priit Laes
1b84fad310 Translation updated by Ivar Smolin
2008-03-24  Priit Laes  <plaes at svn dot gnome dot org>

	* et.po: Translation updated by Ivar Smolin

svn path=/trunk/; revision=1751
2008-03-24 16:15:15 +00:00
Laurent Dhima
ba89cefa33 Updated Translation
svn path=/trunk/; revision=1750
2008-03-20 11:00:14 +00:00
Priit Laes
45ee41a498 Translation updated by Ivar Smolin
2008-03-20  Priit Laes  <plaes at svn dot gnome dot org>

	* et.po: Translation updated by Ivar Smolin

svn path=/trunk/; revision=1748
2008-03-20 09:35:06 +00:00
Laurent Dhima
1c3c3ef3fd Updated Translation
svn path=/trunk/; revision=1747
2008-03-19 19:16:59 +00:00
Baris Cicek
09580ecc2a Updated Turkish Translation
svn path=/trunk/; revision=1744
2008-03-11 21:02:37 +00:00
Alexander Shopov
f694e3d4e5 Updated Bulgarian translation by Yavor Doganov <yavor@gnu.org>
2008-03-11  Alexander Shopov  <ash@contact.bg>

	* bg.po: Updated Bulgarian translation by
	Yavor Doganov <yavor@gnu.org>

svn path=/trunk/; revision=1742
2008-03-11 07:40:49 +00:00
Tristan Van Berkom
45ebd89bed Fixing changelog and one assertion
svn path=/trunk/; revision=1741
2008-03-11 00:18:56 +00:00
Tristan Van Berkom
481aceb852 Moved widget name policing to gladeproject.
* gladeui/glade-widget.c, gladeui/glade-project.c: Moved
	  widget name policing to gladeproject.

	* gladeui/glade-editor.c: Dont commit name values if name
	  already exists in the project.


svn path=/trunk/; revision=1739
2008-03-10 23:54:04 +00:00
Kenneth Nielsen
fb149e09a5 Updated Danish translation
svn path=/trunk/; revision=1737
2008-03-10 22:54:37 +00:00
Takeshi AIHANA
b0138d75b0 Updated Japanese translation.
2008-03-11  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1736
2008-03-10 21:26:18 +00:00
Duarte Loreto
50972cd591 Updated Portuguese translation.
2008-03-10  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1735
2008-03-10 21:06:50 +00:00
Yannig MARCHEGAY
f948572eac Updated Occitan translation
svn path=/trunk/; revision=1734
2008-03-10 19:33:28 +00:00
Ignacio Casal Quinteiro
d99136455f Updated Galician Translation.
svn path=/trunk/; revision=1733
2008-03-10 19:28:28 +00:00
Tristan Van Berkom
a2b09ad9bf fixed compile and warnings when setting GtkWindow::icon-name
svn path=/trunk/; revision=1732
2008-03-10 18:18:52 +00:00
Tristan Van Berkom
d8d4b24484 fixing changelog
svn path=/trunk/; revision=1731
2008-03-10 17:56:31 +00:00
Tristan Van Berkom
c15c79c24c Now if an empty project is loaded and anothther project with widgets is
* gladeui/glade-app.c: Now if an empty project is loaded
	  and anothther project with widgets is loaded, they will
	  also be shown at load time (first widget in the layout
	  gets autoloaded).



svn path=/trunk/; revision=1730
2008-03-10 17:53:59 +00:00
Tristan Van Berkom
9b80dd538b Rolling 3.4.3
* NEWS, configure.ac: Rolling 3.4.3

	* plugins/gtk+/gtk+.xml.in: Backing out GtkScaleButton
	  and GtkVolumeButton as they introduce strings.


svn path=/trunk/; revision=1727
2008-03-10 15:33:26 +00:00
Tristan Van Berkom
dbdf9daf63 Rolling 3.4.2
svn path=/trunk/; revision=1725
2008-03-10 15:17:35 +00:00
Yannig MARCHEGAY
b5f339e1bb Updated Occitan translation
svn path=/trunk/; revision=1724
2008-03-10 12:28:59 +00:00
Jorge Gonzalez Gonzalez
8d98e85041 Updated Spanish translation
svn path=/trunk/; revision=1723
2008-03-10 10:38:09 +00:00
Philip Withnall
11d2b48650 Updated British English translation.
2008-03-10  Philip Withnall  <pwithnall@svn.gnome.org>

	* en_GB.po: Updated British English translation.


svn path=/trunk/; revision=1722
2008-03-10 06:50:42 +00:00
Ani Peter
ade9180eb1 Updated Malayalam Translation
svn path=/trunk/; revision=1721
2008-03-10 06:07:54 +00:00
Ani Peter
8a444c5ed5 Updated Malayalam Translation
svn path=/trunk/; revision=1720
2008-03-10 06:07:42 +00:00
Tristan Van Berkom
31e603cd96 - Add/Remove parent doesnt dup widgets anymore (bug 517388)
* plugins/gtk+/glade-gtk.c: 
	  - Add/Remove parent doesnt dup widgets anymore (bug 517388)


svn path=/trunk/; revision=1719
2008-03-10 02:19:30 +00:00
Leonardo Ferreira Fontenelle
5d5f0b989a Updated Brazilian Portuguese translation.
2008-03-09  Leonardo Ferreira Fontenelle  <leonardof@svn.gnome.org>

	* pt_BR.po: Updated Brazilian Portuguese translation.

svn path=/trunk/; revision=1718
2008-03-10 01:39:35 +00:00
Tristan Van Berkom
1889e49f5c - Added GtkVolumeButton and GtkScaleButton widgets (Ross Burton)
* plugins/gtk+/glade-gtk.c: 
	  - Added GtkVolumeButton and GtkScaleButton widgets (Ross Burton)


svn path=/trunk/; revision=1717
2008-03-10 01:23:21 +00:00
Tristan Van Berkom
d327387875 - Fixed treeview issues with objects dialog, fixing the atk relations bug
* gladeui/glade-editor-property.c: 
	  - Fixed treeview issues with objects dialog, fixing the
	    atk relations bug 512081.


svn path=/trunk/; revision=1716
2008-03-10 00:30:04 +00:00
Tristan Van Berkom
4f4267f63b fixed my previous errors
svn path=/trunk/; revision=1715
2008-03-09 23:53:59 +00:00
Tristan Van Berkom
0d58cab395 When adding a first project, display the first toplevel in the design
* gladeui/glade-app.c: When adding a first project, display the
	  first toplevel in the design layout.

	* gladeui/glade-widget.c: Handle glade_widget_show() with unrealized
	  design-view, connect-after the design-view's realize and retry.


svn path=/trunk/; revision=1714
2008-03-09 23:43:10 +00:00
Tristan Van Berkom
834e1fac49 Made sure idle handlers werent updating treeviews after the object is
* gladeui/glade-base-editor.c: Made sure idle handlers werent
	  updating treeviews after the object is destroyed (also bug 506713).


svn path=/trunk/; revision=1713
2008-03-09 21:59:30 +00:00
Tristan Van Berkom
1ecaf91a1e - Reverted to real time string editing and not using focus-out handlers
* gladeui/glade-editor-property.c: 
	  - Reverted to real time string editing and not using
	    focus-out handlers anymore.


svn path=/trunk/; revision=1712
2008-03-09 21:28:20 +00:00
Tristan Van Berkom
55c0849571 Made sure idle handlers werent updating treeviews after the object is
* gladeui/glade-base-editor.c: Made sure idle handlers werent
	  updating treeviews after the object is destroyed (also bug 506713).


svn path=/trunk/; revision=1711
2008-03-09 21:09:07 +00:00
Tristan Van Berkom
2f75bffd50 - Reset "events" property for newly created widgets (workaround for bug
* plugins/gtk+/glade-gtk.c: 
	  - Reset "events" property for newly created widgets
	    (workaround for bug 472555).

	* gladeui/glade-editor-property.c: added return_if_fail guard
	  as per bug 479468.


svn path=/trunk/; revision=1710
2008-03-09 20:14:39 +00:00
Tristan Van Berkom
c000917cef Fixed a crash detail bug 493418.
* plugins/gtk+/glade-gtk.c: Fixed a crash detail bug 493418.


svn path=/trunk/; revision=1709
2008-03-09 19:16:01 +00:00
Rajesh Ranjan
ad3f12e28e hindi update
svn path=/trunk/; revision=1708
2008-03-09 18:58:57 +00:00
Kjartan Maraas
76ae28e409 Updated Norwegian bokmål translation.
2008-03-09  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=1707
2008-03-09 13:47:26 +00:00
Gabor Kelemen
a712d38bcf Translation updated
2008-03-09  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated


svn path=/trunk/; revision=1706
2008-03-09 04:38:51 +00:00
Yuri Kozlov
de32b892f5 Updated Russian translation.
2008-03-09  Yuri Kozlov  <kozlov.y@gmail.com>

	* ru.po: Updated Russian translation.


svn path=/trunk/; revision=1705
2008-03-08 22:04:33 +00:00
Yannig MARCHEGAY
a26930f33c Updated Occitan translation
svn path=/trunk/; revision=1704
2008-03-08 11:21:08 +00:00
Stéphane Raimbault
6a5890c05f Updated French translation.
2008-03-05  Stéphane Raimbault  <stephane.raimbault@gmail.com>

	* fr.po: Updated French translation.

svn path=/trunk/; revision=1703
2008-03-05 21:52:01 +00:00
Jorge Gonzalez Gonzalez
491e3bddfa Updated Spanish translation
svn path=/trunk/; revision=1701
2008-03-04 09:48:07 +00:00
Gintautas Miliauskas
4612165440 Updated Lithuanian translation.
2008-03-02  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Updated Lithuanian translation.



svn path=/trunk/; revision=1700
2008-03-02 13:29:56 +00:00
Jorge Gonzalez Gonzalez
0c142312b9 Updated Spanish translation
svn path=/trunk/; revision=1699
2008-03-02 12:46:33 +00:00
Jovan Naumovski
473c7bfaed 2008-03-01 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.
svn path=/trunk/; revision=1698
2008-03-01 00:39:50 +00:00
Luca Ferretti
38bd5f4ab0 Added Italian translation by Andrea Zagli.
2008-02-28  Luca Ferretti  <elle.uca@libero.it>

	* Makefile.am:
	* it/figures/*:
	* it/it.po: Added Italian translation by Andrea Zagli.


svn path=/trunk/; revision=1697
2008-02-28 09:55:03 +00:00
Luca Ferretti
1b3e80d672 Updated Italian translation by Andrea Zagli.
2008-02-27  Luca Ferretti  <elle.uca@libero.it>

	* it.po: Updated Italian translation by Andrea Zagli.

svn path=/trunk/; revision=1696
2008-02-27 16:17:13 +00:00
Gabor Kelemen
1d19fbbb6b Translation updated
2008-02-26  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated


svn path=/trunk/; revision=1695
2008-02-25 23:58:01 +00:00
Claude Paroz
5889c99210 Updated French translation.
2008-02-22  Claude Paroz  <claude@2xlibre.net>

	* fr.po: Updated French translation.

svn path=/trunk/; revision=1694
2008-02-22 19:50:52 +00:00
Jonh Wendell
2b9dd0224d Brazilian Portuguese translation updated by Igor Soares.
2008-02-22  Jonh Wendell  <jwendell@gnome.org>

	* pt_BR.po: Brazilian Portuguese translation updated by Igor Soares.

svn path=/trunk/; revision=1693
2008-02-22 12:39:28 +00:00
Yannig MARCHEGAY
2ae323e2d1 Updated Occitan translation
svn path=/trunk/; revision=1692
2008-02-19 22:12:17 +00:00
Matej Urbančič
2e61f4ca40 Updated Slovenian translation
svn path=/trunk/; revision=1691
2008-02-19 12:38:49 +00:00
David Lodge
2a0009d7c2 Updated en_GB translation
svn path=/trunk/; revision=1690
2008-02-17 09:46:42 +00:00
Juan Pablo Ugarte
4a7e5eae45 ignore GtkWindow::accept-focus. Fixes bug #accept-focus "crash, GtkWindow,
* plugins/gtk+/gtk+.xml.in: ignore GtkWindow::accept-focus.
  Fixes bug #accept-focus "crash, GtkWindow, Accept focus"

svn path=/trunk/; revision=1689
2008-02-16 19:06:02 +00:00
Ignacio Casal Quinteiro
f01650f44e Updated Galician Translation.
svn path=/trunk/; revision=1688
2008-02-14 13:25:08 +00:00
Gil Forcada Codinachs
36d8e1752e Updated Catalan translation
svn path=/trunk/; revision=1687
2008-02-14 12:02:14 +00:00
Ilkka Tuohela
2bec178fd7 Updated Finnish translation
svn path=/trunk/; revision=1686
2008-02-13 12:08:58 +00:00
Jorge Gonzalez Gonzalez
5bb7fb2804 Updated Spanish translation
svn path=/trunk/; revision=1685
2008-02-12 18:58:46 +00:00
Hendrik Brandt
33a5e57851 Updated German translation.
2008-02-09  Hendrik Brandt  <heb@gnome-de.org>

        * de.po: Updated German translation.


svn path=/trunk/; revision=1684
2008-02-09 20:49:02 +00:00
Duarte Loreto
77fe278990 Updated Portuguese translation.
2008-02-01  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1683
2008-02-01 23:12:00 +00:00
Theppitak Karoonboonyanan
66af3b8bf2 Updated Thai translation.
2008-01-31  Theppitak Karoonboonyanan  <thep@linux.thai.net>

	* th.po: Updated Thai translation.


svn path=/trunk/; revision=1682
2008-01-31 11:13:59 +00:00
Djihed Afifi
89ee9470dc Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1681
2008-01-31 08:19:12 +00:00
Jonh Wendell
9068a04868 Added pt_BR into DOC_LINGUAS.
2008-01-30  Jonh Wendell  <jwendell@gnome.org>

	* Makefile.am: Added pt_BR into DOC_LINGUAS.

svn path=/trunk/; revision=1680
2008-01-30 12:02:34 +00:00
Maxim Dziumanenko
5d4d6d6539 Update Ukrainian translation.
2008-01-25 Maxim Dziumanenko <dziumanenko@gmail.com>

	* Update Ukrainian translation.


svn path=/trunk/; revision=1679
2008-01-25 15:06:51 +00:00
Yair Hershkovitz
f00f76871b updated hebrew translation
svn path=/trunk/; revision=1678
2008-01-20 14:56:55 +00:00
Yair Hershkovitz
658f84f3fa added hebrew translation
svn path=/trunk/; revision=1677
2008-01-20 12:37:24 +00:00
Baris Cicek
f3643a0c3d Updated Turkish Translation
svn path=/trunk/; revision=1676
2008-01-18 17:24:53 +00:00
Yang Zhang
e5669fe0a1 Updated zh_CN translation
svn path=/trunk/; revision=1675
2008-01-17 14:14:34 +00:00
Yang Hong
cd19e5bb8c 2008-01-15 Juan Pablo Ugarte juanpablougarte@gmail.com>
* src/glade-window.c:
	  o set palette a default size
	  o do not set desing/editor paned position since by default the window is
	    maximized.

2008-01-15  Ivan Baldo ibaldo@adinet.com.uy

	* gladeui/glade-palette-expander.c: fixed bug #495853
	  "palette takes up too much space"

2008-01-15  Yang Hong <hongyang@redflag-linux.com>

	* gladeui/glade-project.c: fixed bug #504603
	  "crash while open .glade file from command line arg"

2008-01-15  Cosimo Cecchi <anarki@lilik.it>

	* gladeui/glade-editor.c: Fixed bug #388869
	  "Property edits dropped due to bad focus-event handling"

svn path=/trunk/; revision=1674
2008-01-15 17:57:11 +00:00
Daniel Nylander
8ce78736bb sv.po: Swedish translation updated
svn path=/trunk/; revision=1673
2008-01-15 03:11:45 +00:00
Vincent Geddes
f4c04842b0 de-mark the string which was marked for translation in the last commit
* de-mark the string which was marked for translation in the last commit

svn path=/trunk/; revision=1672
2008-01-13 17:05:54 +00:00
Jorge Gonzalez Gonzalez
6c6a0fa5b3 Updated Spanish translation
svn path=/trunk/; revision=1671
2008-01-13 17:04:01 +00:00
Vincent Geddes
2d85285c38 Fix a few i18n fumbles (#509128).
* gladeui/glade-project.c, src/glade-window.c: Fix a few i18n fumbles (#509128).

svn path=/trunk/; revision=1670
2008-01-13 13:53:32 +00:00
Yang Zhang
e627e9f788 Updated zh_CN translation from WuWeisheng
svn path=/trunk/; revision=1669
2008-01-06 06:55:38 +00:00
Clytie Siddall
927da0710d Updated Vietnamese translation
svn path=/trunk/; revision=1668
2008-01-04 08:23:37 +00:00
Yannig MARCHEGAY
ae78439190 Updated Occitan translation
svn path=/trunk/; revision=1667
2007-12-31 21:55:04 +00:00
Daniel Nylander
47aebe8ba4 sv.po: Swedish translation updated
svn path=/trunk/; revision=1665
2007-12-29 16:20:24 +00:00
Djihed Afifi
5e41bad5fe Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1664
2007-12-23 13:58:49 +00:00
Jorge Gonzalez Gonzalez
4725c7eabc Updated Spanish translation
svn path=/trunk/; revision=1663
2007-12-23 12:42:09 +00:00
Juan Pablo Ugarte
6a571d2c7b updated displayable values for GtkButtonBox::layout-style added
* plugins/gtk+/gtk+.xml.in:
  updated displayable values for GtkButtonBox::layout-style
  added displayable values for GtkEntry::shadow-type

* gladeui/glade-widget-adaptor.c: fixed bug #477025 "missing icones"
  create_icon_name_for_adaptor() renamed to create_icon_name_for_adaptor()


svn path=/trunk/; revision=1662
2007-12-20 15:55:15 +00:00
Takeshi AIHANA
de022f3ccb Updated Japanese translation.
2007-12-20  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1661
2007-12-20 13:34:24 +00:00
Christian Persch
c651fba1c6 Port to gtk 2.12 tooltips API. Bug #500947. Remove the unnecessary event
2007-12-19  Christian Persch  <chpe@gnome.org>

	* configure.ac:
	* gladeui/glade-app.c: (glade_app_refresh_undo_redo_button):
	* gladeui/glade-base-editor.c: (glade_base_editor_add_properties):
	* gladeui/glade-editor-property.c:
	(glade_editor_property_tooltip_cb),
	(glade_editor_property_sensitivity_cb),
	(glade_editor_property_create_info_button),
	(glade_editor_property_constructor),
	(glade_editor_property_finalize),
	(glade_editor_property_load_common),
	(glade_eprop_text_show_i18n_dialog),
	(glade_eprop_adjustment_table_add_label):
	* gladeui/glade-editor-property.h:
	* gladeui/glade-editor.c: (glade_editor_notebook_page),
	(glade_editor_create_info_button),
	(glade_editor_create_reset_button),
	(glade_editor_table_append_item):
	* gladeui/glade-palette.c: (glade_palette_dispose),
	(glade_palette_new_item), (glade_palette_new_item_group),
	(glade_palette_update_appearance), (glade_palette_init):
	* gladeui/glade-project.c: (glade_project_dispose),
	(glade_project_init):
	* gladeui/glade-project.h:
	* gladeui/glade-property-class.c:
	(glade_property_class_new_from_spec):
	* gladeui/glade-utils.c:
	* gladeui/glade-widget.c: (expose_draw_selection):
	* plugins/gtk+/glade-gtk.c: (glade_gtk_widget_set_property),
	(glade_gtk_widget_get_property):
	* src/glade-window.c: (format_project_list_item_tooltip),
	(refresh_projects_list_menu), (glade_window_init): Port to gtk 2.12
	tooltips API. Bug #500947. Remove the unnecessary event boxes on the property
	labels, part of bug #490157.

svn path=/trunk/; revision=1660
2007-12-19 13:46:35 +00:00
Juan Pablo Ugarte
e2e1a3a0c1 Rolling out 3.4.1
svn path=/trunk/; revision=1657
2007-12-18 16:03:46 +00:00
Juan Pablo Ugarte
20502fc79b fixed bug #503955 'Activating "Add Parent" on an internal widget component
* plugins/gtk+/glade-gtk.c: fixed bug #503955
  'Activating "Add Parent" on an internal widget component causes crash'

svn path=/trunk/; revision=1656
2007-12-18 11:09:43 +00:00
Kjartan Maraas
720d604951 Updated Norwegian bokmål translation.
2007-12-17  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=1655
2007-12-17 15:45:58 +00:00
Vincent Geddes
c23ec4f801 add missing headers to glade.h
svn path=/trunk/; revision=1654
2007-12-10 19:06:41 +00:00
Vincent Geddes
7989fdfea2 and fix Changelog as well
svn path=/trunk/; revision=1653
2007-12-10 18:33:27 +00:00
Vincent Geddes
36c75c0b6d Fix icon theme path for win32
svn path=/trunk/; revision=1652
2007-12-10 18:31:01 +00:00
Juan Pablo Ugarte
d47e1dd7c5 fixed bug introduced while disabling GtkImage::stock, it should be re
* plugins/gtk+/glade-gtk.c: fixed bug introduced while disabling GtkImage::stock,
  it should be re enabled when going back to stock mode :)


svn path=/trunk/; revision=1651
2007-12-05 15:29:26 +00:00
Yannig MARCHEGAY
c7db88be27 Updated Occitan translation
svn path=/trunk/; revision=1650
2007-12-05 14:32:23 +00:00
Christian Persch
8f5839ad80 Use gtk_widget_get_action. Bug #500943.
2007-12-02  Christian Persch  <chpe@gnome.org>

	* src/glade-window.c: (menu_item_selected_cb),
	(ui_connect_proxy_cb): Use gtk_widget_get_action. Bug #500943.

svn path=/trunk/; revision=1648
2007-12-02 12:34:28 +00:00
Christian Persch
ab167896e8 Use g_option_context_set_translation domain, and use N_() when setting the
2007-12-02  Christian Persch  <chpe@gnome.org>

	* src/main.c: (main): Use g_option_context_set_translation domain, and
	use N_() when setting the summary. Bug #500940.

svn path=/trunk/; revision=1647
2007-12-02 12:31:08 +00:00
Yannig MARCHEGAY
867d82264e Updated Occitan translation
svn path=/trunk/; revision=1645
2007-11-20 21:12:22 +00:00
Matej Urbančič
6cde865533 Updated Slovenian translation
svn path=/trunk/; revision=1644
2007-11-13 13:42:09 +00:00
Priit Laes
d075acdbc9 Translation updated by Ivar Smolin.
2007-11-12  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Translation updated by Ivar Smolin.

svn path=/trunk/; revision=1643
2007-11-12 10:28:04 +00:00
Juan Pablo Ugarte
3c7eee45bd commited J. Ali Harlow <ali@avrc.city.ac.uk> patch. (fixes #495057) o
* plugins/gtk+/glade-gtk.c: commited  J. Ali Harlow <ali@avrc.city.ac.uk> patch. (fixes #495057)
  o glade_gtk_assistant_set_child_property() return if the current page is the same as position.

svn path=/trunk/; revision=1642
2007-11-09 20:18:38 +00:00
Kjartan Maraas
13b9c6314f Fix header
svn path=/trunk/; revision=1641
2007-11-02 14:05:44 +00:00
Juan Pablo Ugarte
509f902fe2 added glade_gtk_radio_button_set_property() to avoid bogus warning
* plugins/gtk+/glade-gtk.c: added glade_gtk_radio_button_set_property() to avoid bogus warning

* plugins/gtk+/gtk+.xml.in: added GtkRadioButton set-property-function

svn path=/trunk/; revision=1640
2007-10-27 05:01:34 +00:00
Djihed Afifi
5ebb650cbc Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1639
2007-10-23 20:58:53 +00:00
Djihed Afifi
301cbeb3e7 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1638
2007-10-23 19:55:41 +00:00
Juan Pablo Ugarte
009fbc92d1 added extra variable in glade_widget_embed() to avoid multiples cast
svn path=/trunk/; revision=1637
2007-10-22 16:46:47 +00:00
Juan Pablo Ugarte
494a166e6c changelog entry
svn path=/trunk/; revision=1636
2007-10-22 16:34:45 +00:00
Juan Pablo Ugarte
877a04423f fixed variable redeclaration in glade_widget_embed() bug #488977
* gladeui/glade-widget.c: fixed variable redeclaration in glade_widget_embed() bug #488977

svn path=/trunk/; revision=1635
2007-10-22 16:33:05 +00:00
Djihed Afifi
4f94cdc4d8 Updated Arabic Translation by Youssef Chahibi.
svn path=/trunk/; revision=1634
2007-10-21 19:22:32 +00:00
Djihed Afifi
b136ffae53 Updated Arabic Translation by Youssef Chahibi.
svn path=/trunk/; revision=1633
2007-10-21 16:47:04 +00:00
Baris Cicek
dd36108cc8 Updated Turkish Translation
svn path=/trunk/; revision=1632
2007-10-19 17:47:02 +00:00
Juan Pablo Ugarte
ff938b0eb4 fixed bug #480495, if the widget is realized we just call
* gladeui/glade-widget.c: fixed bug #480495, if the widget is realized we just call
  gtk_widget_unrealize()

svn path=/trunk/; revision=1631
2007-10-18 16:13:02 +00:00
Ignacio Casal Quinteiro
a9ed5afbb2 Updated Galician Translation.
svn path=/trunk/; revision=1630
2007-10-18 13:15:29 +00:00
Juan Pablo Ugarte
456827c97e disable GtkImage::stock when edit type is not in stock mode. This fixs a
* plugins/gtk+/glade-gtk.c: disable GtkImage::stock when edit type is not in stock mode.
  This fixs a bug pasting a filename GtkImage.

* gladeui/glade-property-class.c: glade_property_class_make_object_from_string() now returns NULL
  for pixbuf props on an empty string, so you can set up pixbuf props back to NULL.

* gladeui/glade-widget.c: almost fixed bug #480495, it does not crash anymore.
  It refuses to reparent a widget if it cant embed it.

svn path=/trunk/; revision=1629
2007-10-15 21:02:37 +00:00
Matej Urbančič
f905cd549f Updated Slovenian translation
svn path=/trunk/; revision=1628
2007-10-15 12:48:28 +00:00
Priit Laes
41b5076e81 Translation update by Ivar Smolin.
2007-10-08  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Translation update by Ivar Smolin.

svn path=/trunk/; revision=1627
2007-10-08 16:46:53 +00:00
Yannig MARCHEGAY
80aeac0110 Updated Occitan translation
svn path=/trunk/; revision=1626
2007-10-03 16:45:22 +00:00
Changwoo Ryu
81ae608b8e Updated Korean translation.
2007-10-01  Changwoo Ryu  <cwryu@debian.org>

	* ko.po: Updated Korean translation.

svn path=/trunk/; revision=1625
2007-09-30 17:57:06 +00:00
Takeshi AIHANA
a000322534 Translation improved.
2007-09-28  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Translation improved.

svn path=/trunk/; revision=1624
2007-09-28 15:15:22 +00:00
Leonardo Ferreira Fontenelle
5ee397e7ab Fixes in Brazilian Portuguese translation ("pane", "frame", upper case
2007-09-23  Leonardo Ferreira Fontenelle  <leonardof@svn.gnome.org>

	* pt_BR.po: Fixes in Brazilian Portuguese translation ("pane",
	"frame", upper case etc.).

svn path=/trunk/; revision=1623
2007-09-23 04:24:34 +00:00
Leonardo Ferreira Fontenelle
0e0b9e957c Brazilian Portuguese translation by Joao Emanuel.
2007-09-23  Leonardo Ferreira Fontenelle  <leonardof@svn.gnome.org>

	* pt_BR/pt_BR.po: Brazilian Portuguese translation by Joao Emanuel.

svn path=/trunk/; revision=1622
2007-09-23 03:38:03 +00:00
Tristan Van Berkom
feefb90ff5 Rolling 3.4.0
* NEWS, configure.ac: Rolling 3.4.0


svn path=/trunk/; revision=1620
2007-09-18 13:33:33 +00:00
Gil Forcada Codinachs
7db89a869f Updated Catalan translation
svn path=/trunk/; revision=1619
2007-09-17 10:03:21 +00:00
Artur Flinta
c22a451cbb Updated Polish translation by GNOME PL Team.
2007-09-15  Artur Flinta  <aflinta@svn.gnome.org>

	* pl.po: Updated Polish translation by GNOME PL Team.


svn path=/trunk/; revision=1618
2007-09-15 16:48:10 +00:00
Nickolay V. Shmyrev
ef0f401fda Updated Russian translation.
2007-09-14  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

	* ru.po: Updated Russian translation.


svn path=/trunk/; revision=1617
2007-09-14 15:30:35 +00:00
David Lodge
5e49afd29d Update en_GB translation
svn path=/trunk/; revision=1616
2007-09-14 06:09:59 +00:00
Djihed Afifi
106b8c4544 Updated Arabic Translation by Youssef Chahibi.
svn path=/trunk/; revision=1615
2007-09-13 22:50:55 +00:00
Claude Paroz
95de36f7f1 Updated French translation.
2007-09-13  Claude Paroz  <claude@2xlibre.net>

	* fr.po: Updated French translation.

svn path=/trunk/; revision=1614
2007-09-13 19:52:33 +00:00
Duarte Loreto
d65e68845e Fixed typos in Portuguese translation.
2007-09-13  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Fixed typos in Portuguese translation.

svn path=/trunk/; revision=1613
2007-09-13 08:38:09 +00:00
Jamil Ahmed
8cc12c033d Bengali Translation
* bn.po: Bengali Translation

svn path=/trunk/; revision=1612
2007-09-13 08:05:00 +00:00
Jamil Ahmed
caf7553599 Bengali Translation
svn path=/trunk/; revision=1611
2007-09-13 08:04:40 +00:00
Jamil Ahmed
7730ed5653 Added Bengali (bn)
svn path=/trunk/; revision=1610
2007-09-13 08:04:26 +00:00
SANDRA MARAKKALA DANISHKA NAVIN
83a87d05d3 Added entry for sinhala
svn path=/trunk/; revision=1609
2007-09-11 11:36:36 +00:00
SANDRA MARAKKALA DANISHKA NAVIN
3c389dbe2b Added entry for sinhala
svn path=/trunk/; revision=1608
2007-09-11 11:35:59 +00:00
SANDRA MARAKKALA DANISHKA NAVIN
a20c3e6433 Added entry for sinhala
svn path=/trunk/; revision=1607
2007-09-11 11:34:45 +00:00
Hendrik Richter
25fd5d5688 Updated German translation.
2007-09-11  Hendrik Richter  <hendrikr@gnome.org>

	* de.po: Updated German translation.

svn path=/trunk/; revision=1606
2007-09-11 09:58:36 +00:00
Alessio Frusciante
93c42b2b19 Updated Italian translation.
svn path=/trunk/; revision=1605
2007-09-10 20:01:47 +00:00
Ignacio Casal Quinteiro
5a7b36b038 Updated Galician Translation.
svn path=/trunk/; revision=1604
2007-09-07 17:04:42 +00:00
Maxim Dziumanenko
89d7616a7f Update Ukrainian translation.
2007-09-07 Maxim Dziumanenko <dziumanenko@gmail.com>

	* Update Ukrainian translation.

svn path=/trunk/; revision=1603
2007-09-07 13:13:58 +00:00
Kjartan Maraas
027b57cba6 Updated Norwegian bokmål translation.
2007-09-06  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=1602
2007-09-06 12:06:13 +00:00
Theppitak Karoonboonyanan
e5fa52d96d Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1601
2007-09-05 15:36:33 +00:00
Jovan Naumovski
60de3e5a42 2007-09-05 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.
svn path=/trunk/; revision=1600
2007-09-05 12:57:01 +00:00
Gintautas Miliauskas
7c4017a51c Updated Lithuanian translation (by Vytautas Liuolia).
2007-09-04  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Updated Lithuanian translation (by Vytautas Liuolia).


svn path=/trunk/; revision=1599
2007-09-04 20:26:04 +00:00
Alexander Shopov
daa10316d9 Updated Bulgarian translation by Yavor Doganov <yavor@gnu.org>
2007-09-04  Alexander Shopov  <ash@contact.bg>

	* bg.po: Updated Bulgarian translation by
	Yavor Doganov <yavor@gnu.org>

svn path=/trunk/; revision=1598
2007-09-04 15:21:59 +00:00
Clytie Siddall
9c00856a21 2007-09-03 vi.po Updated Vietnamese translation
Clytie Siddall <clytie@riverland.net.au>

svn path=/trunk/; revision=1597
2007-09-03 13:54:07 +00:00
Priit Laes
bb629af251 Estonian translation updates by Ivar Smolin
2007-09-03  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Estonian translation updates by Ivar Smolin

svn path=/trunk/; revision=1596
2007-09-03 08:06:53 +00:00
Raphael Higino
5442becea3 Corrected my previous wrong ChangeLog entry
svn path=/trunk/; revision=1595
2007-09-02 23:09:37 +00:00
Raphael Higino
7e757f9db0 Updated Brazilian Portuguese translation
svn path=/trunk/; revision=1594
2007-09-02 23:07:23 +00:00
Yannig MARCHEGAY
38e8dbecd8 Updated Occitan translation
svn path=/trunk/; revision=1593
2007-09-01 20:25:26 +00:00
Kenneth Nielsen
de9143844c Updated Danish translation
svn path=/trunk/; revision=1592
2007-09-01 18:11:47 +00:00
Priit Laes
0b52faa7f7 Estonian translation updates by Ivar Smolin
2007-08-30  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Estonian translation updates by Ivar Smolin

svn path=/trunk/; revision=1591
2007-08-31 06:50:56 +00:00
Duarte Loreto
3e55fd1ba7 Updated Portuguese translation.
2007-08-26  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1590
2007-08-26 19:41:02 +00:00
Gabor Kelemen
6f511e517a Translation updated.
2007-08-26 Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.


svn path=/trunk/; revision=1589
2007-08-26 15:31:27 +00:00
Theppitak Karoonboonyanan
66dd451766 Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1588
2007-08-26 15:21:43 +00:00
Raphael Higino
7f471fd5c6 Updated Brazilian Portuguese translation
svn path=/trunk/; revision=1587
2007-08-26 14:26:41 +00:00
Takeshi AIHANA
56266a7d80 Updated Japanese translation.
2007-08-25  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1586
2007-08-25 02:58:47 +00:00
Adam Weinberger
45509c7e72 Updated Canadian English translation.
2007-08-23  Adam Weinberger  <adamw@gnome.org>

	* en_CA.po: Updated Canadian English translation.



svn path=/trunk/; revision=1584
2007-08-23 22:23:33 +00:00
Priit Laes
93883d8c6a Estonian translation updates by Ivar Smolin <okul@linux.ee>
2007-08-23  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Estonian translation updates by Ivar Smolin <okul@linux.ee>

svn path=/trunk/; revision=1583
2007-08-23 07:02:40 +00:00
Daniel Nylander
fb9c9267a7 sv.po: Swedish translation updated
svn path=/trunk/; revision=1582
2007-08-23 06:19:31 +00:00
Ignacio Casal Quinteiro
9630199066 Updated Galician Translation.
svn path=/trunk/; revision=1581
2007-08-22 21:18:50 +00:00
Tristan Van Berkom
12bf32aa9c fixed build with gcc 2.x (again) (bug 469357).
* gladeui/glade-editor-property.c: fixed build with gcc 2.x (again) (bug 469357).


svn path=/trunk/; revision=1580
2007-08-22 19:19:06 +00:00
Tristan Van Berkom
096c8bcd6d Rolling 3.3.4
* NEWS, configure.ac: Rolling 3.3.4


svn path=/trunk/; revision=1578
2007-08-22 18:29:43 +00:00
Ilkka Tuohela
6974a4cb57 Updated Finnish translation
svn path=/trunk/; revision=1577
2007-08-22 13:14:08 +00:00
Priit Laes
3bf69990ba Estonian translation updates by Ivar Smolin <okul@linux.ee>
2007-08-22  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Estonian translation updates by Ivar Smolin <okul@linux.ee>

svn path=/trunk/; revision=1576
2007-08-22 05:45:43 +00:00
Jorge Gonzalez Gonzalez
5d7f56d026 Updated Spanish translation
svn path=/trunk/; revision=1575
2007-08-21 22:44:44 +00:00
Jorge Gonzalez Gonzalez
3da431dcde Updated spanish translation
svn path=/trunk/; revision=1574
2007-08-21 22:25:53 +00:00
Tristan Van Berkom
cc488638c0 new icon for the drag/resize button.
* data/icons/drag-resize.png, data/icons/Makefile.am: new icon for the drag/resize button.

	* src/glade-window.c: "s/Select Widgets/Select/" on the selector button cause
	  it was taking too much space that way. (also used the new icon for drag/resize).


svn path=/trunk/; revision=1573
2007-08-21 19:07:21 +00:00
Yannig MARCHEGAY
13924a988c Updated Occitan translation
svn path=/trunk/; revision=1572
2007-08-21 18:40:22 +00:00
Yannig MARCHEGAY
3a4e571da2 Updated Occitan translation
svn path=/trunk/; revision=1571
2007-08-21 18:37:55 +00:00
Yannig MARCHEGAY
d2230ad011 Updated Occitan translation
svn path=/trunk/; revision=1570
2007-08-21 18:36:39 +00:00
Yannig MARCHEGAY
1e69c0c6d7 Updated Occitan translation
svn path=/trunk/; revision=1569
2007-08-21 18:35:38 +00:00
Yannig MARCHEGAY
2e6d9159c5 Updated Occitan translation
svn path=/trunk/; revision=1568
2007-08-21 10:59:16 +00:00
Priit Laes
6368b09b33 Added et (Estonian) to LINGUAS.
2007-08-21  Priit Laes  <plaes@svn.gnome.org>

    * LINGUAS: Added et (Estonian) to LINGUAS.

svn path=/trunk/; revision=1567
2007-08-21 07:54:18 +00:00
Priit Laes
8d2614ccd1 Estonian translation updates by Ivar Smolin <okul@linux.ee>
2007-08-21  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Estonian translation updates by Ivar Smolin <okul@linux.ee>

svn path=/trunk/; revision=1566
2007-08-21 07:50:37 +00:00
Priit Laes
9114a26958 Estonian translation updates by Ivar Smolin <okul@linux.ee>
2007-08-21  Priit Laes  <plaes@svn.gnome.org>

	* et.po: Estonian translation updates by Ivar Smolin <okul@linux.ee>

svn path=/trunk/; revision=1565
2007-08-21 07:50:06 +00:00
Duarte Loreto
d0696f0c14 Updated Portuguese translation.
2007-08-21  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1564
2007-08-20 23:53:05 +00:00
Jovan Naumovski
6c94c01d27 2007-08-21 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.
svn path=/trunk/; revision=1563
2007-08-20 22:20:10 +00:00
Yannig MARCHEGAY
de4677ebfe Updated Occitan translation
svn path=/trunk/; revision=1562
2007-08-20 18:10:12 +00:00
Tristan Van Berkom
ee3caad266 Unmarked some properties to be "themed-icon", still dont have permission
* plugins/gtk+/gtk+.xml.in: Unmarked some properties to be "themed-icon",
	  still dont have permission to include the themed icon chooser dialog
	  in 3.4.x.


svn path=/trunk/; revision=1561
2007-08-20 15:18:52 +00:00
Yannig MARCHEGAY
4d40940f93 Updated Occitan translation
svn path=/trunk/; revision=1560
2007-08-19 17:25:00 +00:00
Theppitak Karoonboonyanan
875b468f97 Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1559
2007-08-19 06:39:06 +00:00
Yannig MARCHEGAY
d1e4ef83e9 Updated Occitan translation
svn path=/trunk/; revision=1558
2007-08-17 15:43:52 +00:00
Jorge Gonzalez Gonzalez
28eeae85b3 Updated Spanish translation
svn path=/trunk/; revision=1557
2007-08-16 19:39:14 +00:00
Jorge Gonzalez Gonzalez
ae84e8921f Updated Spanish translation
svn path=/trunk/; revision=1556
2007-08-16 19:29:08 +00:00
Adam Weinberger
6cd2ca1404 Updated Canadian English translation.
2007-08-15  Adam Weinberger  <adamw@gnome.org>

	* en_CA.po: Updated Canadian English translation.



svn path=/trunk/; revision=1555
2007-08-15 19:07:35 +00:00
Ilkka Tuohela
d1351a48a3 Updated Finnish translation
svn path=/trunk/; revision=1554
2007-08-15 14:42:43 +00:00
Daniel Nylander
454f680faf sv.po: Updated Swedish translation
svn path=/trunk/; revision=1553
2007-08-15 06:33:16 +00:00
Tristan Van Berkom
b6ffd5f6a2 Marked some properties to be "themed-icon"
* plugins/gtk+/gtk+.xml.in: Marked some properties to be "themed-icon"

	* gladeui/glade-xml-utils.h, gladeui/glade-property-class.[ch], 
	gladeui/glade-editor-property.c: Added a tag to mark string properties
	that are "themed-icon", use the themed icon chooser for those properties.

	* gladeui/glade-name-icon-chooser.[ch], gladeui/icon-naming-spec.c: Added
	  themed icon chooser (bug 359640).


svn path=/trunk/; revision=1552
2007-08-14 18:59:56 +00:00
Tristan Van Berkom
d46816c466 Made toolbar-style optional & save always (plus it responds well in the
* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Made toolbar-style
	  optional & save always (plus it responds well in the UI) (bug 382785).

	* gladeui/glade-widget.c: When building objects based on template params, 
	  dont assign properties that are disabled by GladeProperty.


svn path=/trunk/; revision=1551
2007-08-14 14:42:11 +00:00
Ilkka Tuohela
89a5d5f4bc Updated Finnish translation
svn path=/trunk/; revision=1550
2007-08-13 19:00:12 +00:00
Takeshi AIHANA
cf789e99ad Updated Japanese translation.
2007-08-12  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1549
2007-08-12 15:53:45 +00:00
Daniel Nylander
8488c927c0 sv.po: Swedish translation updated
svn path=/trunk/; revision=1548
2007-08-11 10:21:48 +00:00
Jorge Gonzalez Gonzalez
1bcde45209 Updated Spanish translation
svn path=/trunk/; revision=1547
2007-08-10 12:54:10 +00:00
Theppitak Karoonboonyanan
16ea92946e Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1546
2007-08-10 08:23:58 +00:00
Tristan Van Berkom
30985df0cd Revived accelerators on undocked windows.
* src/glade-window.c: Revived accelerators on undocked windows.


svn path=/trunk/; revision=1545
2007-08-09 04:13:16 +00:00
Tristan Van Berkom
57b4a3efe5 Now saves/restores session data about docking attached state & undocked
* src/glade-window.c: Now saves/restores session data about docking
	  attached state & undocked window sizes/positions.


svn path=/trunk/; revision=1544
2007-08-09 02:46:51 +00:00
Juan Pablo Ugarte
ac9191467c reverting change
svn path=/trunk/; revision=1543
2007-08-08 22:35:38 +00:00
Juan Pablo Ugarte
ce12353eff marked GtkToolba::toolbar-style as save always.
* plugins/gtk+/gtk+.xml.in: marked GtkToolba::toolbar-style as save always.

svn path=/trunk/; revision=1542
2007-08-08 22:20:41 +00:00
Tristan Van Berkom
bacce2441d Fixed some funcs that should be static
* gladeui/glade-builtins.c: Fixed some funcs that should be static


svn path=/trunk/; revision=1541
2007-08-08 21:01:31 +00:00
Tristan Van Berkom
b887d289c8 Changed "<Type the signal's handler here>" and "<Type the object's name
* gladeui/glade-signal-editor.c: Changed "<Type the signal's handler here>" and
	  "<Type the object's name here>" for "<Type here>" so that the signal editor doesnt
	  take quite as much space anymore (bug 464505).


svn path=/trunk/; revision=1540
2007-08-08 17:42:20 +00:00
Tristan Van Berkom
e725eccca3 glade_editor_property_new_from_widget() added "packing" argument.
* gladeui/glade-editor-property.[ch]: glade_editor_property_new_from_widget() added
	  "packing" argument.

	* gladeui/glade-base-editor.[ch]: Fixed va_start() without va_end() in
	  glade_base_editor_add_properties(), also added "packing" argument to
	  glade_base_editor_add_properties().

	* plugins/gtk+/glade-gtk.c: Added "expand" and "homogeneous" packing properties
	  to toolbar children in the toolbar editor (bug 429409).


svn path=/trunk/; revision=1539
2007-08-07 17:03:52 +00:00
Tristan Van Berkom
0a346340af Removed bogus output about python bindings.
* configure.ac: Removed bogus output about python bindings.


svn path=/trunk/; revision=1538
2007-08-07 16:12:10 +00:00
Tristan Van Berkom
7ab3340803 Disabled the "submenu" property of GtkMenuItem (setting this property to
* plugins/gtk+/gtk+.xml.in: Disabled the "submenu" property of GtkMenuItem
	  (setting this property to its default NULL value obviously kills menus, bug 460022)


svn path=/trunk/; revision=1537
2007-08-06 20:31:31 +00:00
Daniel Nylander
7b6b9c91a1 sv.po: Swedish translation updated
svn path=/trunk/; revision=1536
2007-08-06 18:52:16 +00:00
Sunil Mohan Adapa
fa2d1dd0ec Added Telugu translation done by Pramod <pramodfsf@gmail.com>.
2007-08-06  Sunil Mohan Adapa  <sunil@atc.tcs.com>

        * te.po: Added Telugu translation done by
        Pramod <pramodfsf@gmail.com>.


svn path=/trunk/; revision=1535
2007-08-06 18:46:27 +00:00
Ilkka Tuohela
56b6bf400a Updated Finnish translation
svn path=/trunk/; revision=1534
2007-08-06 13:26:01 +00:00
Leonardo Ferreira Fontenelle
3b4d5db814 Same as my last commit, but this time done right.
svn path=/trunk/; revision=1533
2007-08-05 22:08:06 +00:00
Leonardo Ferreira Fontenelle
cd03ca8636 s/_Conteúdo/S_umário; see bug #461308.
2007-08-05  Leonardo Ferreira Fontenelle  <leonardof@svn.gnome.org>

        * pt_BR.po: s/_Conteúdo/S_umário; see bug #461308.

svn path=/trunk/; revision=1532
2007-08-05 20:00:45 +00:00
Leonardo Ferreira Fontenelle
52dc0895e7 Brazilian Portuguese translation updated by Igor Pires Soares
2007-08-04  Leonardo Ferreira Fontenelle  <leonardof@svn.gnome.org>

	* pt_BR.po: Brazilian Portuguese translation updated by Igor Pires
	Soares <igor@projetofedora>.

svn path=/trunk/; revision=1531
2007-08-04 21:33:07 +00:00
Jorge Gonzalez Gonzalez
2e593d90dd Updated Spanish translation
svn path=/trunk/; revision=1530
2007-08-02 21:27:47 +00:00
Theppitak Karoonboonyanan
af43186cf6 Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1529
2007-08-02 14:37:17 +00:00
Theppitak Karoonboonyanan
6a50c66627 Fix minor typos in messages.
2007-08-02  Theppitak Karoonboonyanan  <thep@linux.thai.net>

	* gladeui/glade-widget-action.c, gladeui/glade-project.c: Fix minor
	typos in messages.


svn path=/trunk/; revision=1528
2007-08-02 14:25:21 +00:00
Theppitak Karoonboonyanan
98c351c012 Updated Thai translation by aka.ape <aka.ape@gmail.com>.
* th.po: Updated Thai translation by aka.ape <aka.ape@gmail.com>.


svn path=/trunk/; revision=1527
2007-08-02 14:18:26 +00:00
Tristan Van Berkom
abd43781ef w Made glade window not maximized by default (Bug 462111, by request of
w
	* src/glade-window.c: Made glade window not maximized by default (Bug 462111, by
	  request of Frédéric Bellaiche), seems most apps arent maximized by default on
	  startup anyway.


svn path=/trunk/; revision=1526
2007-08-01 19:17:37 +00:00
Daniel Nylander
e05877145c sv.po: Swedish translation updated
svn path=/trunk/; revision=1525
2007-08-01 17:21:51 +00:00
Tristan Van Berkom
5c035ab827 Fixed compilation with gcc 2.95 (Bug 461923, fix by Jens Granseuer)
* plugins/gtk+/glade-gtk.c: Fixed compilation with gcc 2.95 (Bug 461923, fix by Jens Granseuer)

	* gladeui/glade-builtins.c: Sort the stock icon list alphabetically by locale 
	  (bug 454003, fix by Olivier Delhomme)


svn path=/trunk/; revision=1524
2007-07-31 14:41:18 +00:00
Juan Pablo Ugarte
2d57d53ffc removed every extra documentation, we keep them empty just because
* doc/tmpl/*.sgml: removed every extra documentation, we keep them empty just
  because otherwise the build fails.

* doc/gladeui-docs.sgml, doc/gladeui-sections.txt, doc/gladeui.types: updated
  (GladeWidgetClass  replaced by GladeWidgetAdaptor)

* gladeui/glade-editor.c, gladeui/glade-editor-property.c, gladeui/glade-parameter.c,
  gladeui/glade-widget.c, gladeui/glade-fixed.c, gladeui/glade-clipboard.c,
  gladeui/glade-inspector.[ch], gladeui/glade-widget-adaptor.[ch], gladeui/glade-command.c,
  gladeui/glade-command.h, gladeui/glade-base-editor.[ch], gladeui/glade-palette.[ch],
  gladeui/glade-utils.c, gladeui/glade-signal-editor.c, gladeui/glade-app.c,
  gladeui/glade-placeholder.c, gladeui/glade-property.c, gladeui/glade-property-class.c,
  gladeui/glade-project.c, gladeui/glade-clipboard-view.c:
  Added section's short and long description. (moved from tmpl)


svn path=/trunk/; revision=1523
2007-07-30 19:56:51 +00:00
Tristan Van Berkom
e6e03f1bc4 Rolling 3.3.3
* NEWS, configure.ac: Rolling 3.3.3


svn path=/trunk/; revision=1521
2007-07-30 14:46:04 +00:00
Yannig MARCHEGAY
34ef7038a4 Updated Occitan translation
svn path=/trunk/; revision=1520
2007-07-29 08:58:57 +00:00
Takeshi AIHANA
0f1a268434 Updated Japanese translation.
2007-07-27  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1519
2007-07-27 14:47:54 +00:00
Tristan Van Berkom
9138bc5984 Fixed placeholder menu to also include actions of the parent widget.
* gladeui/glade-popup.c: Fixed placeholder menu to also include actions of the
	  parent widget.

	  - Disable Add/Remove parent actions on GtkToolItem, GtkMenu and GtkMenuItem.


svn path=/trunk/; revision=1518
2007-07-25 22:56:18 +00:00
Tristan Van Berkom
7eca9200dd Added GLADE_TAG_PARENT
* gladeui/glade-xml-utils.h: Added GLADE_TAG_PARENT

	* gladeui/glade-widget-adaptor.c: Made it possible to declare a widget class in the
	  catalog without giving a real type, only automatically derive from a type specified
	  in the catalog (refit Muntyan's patch from bug 352714).


svn path=/trunk/; revision=1517
2007-07-25 20:50:16 +00:00
Tristan Van Berkom
c9edd8b01a Loop through user defined search paths and load catalogs from there first.
* gladeui/glade-catalog.c: Loop through user defined search paths and load
	  catalogs from there first.

	* gladeui/glade-utils.c: Loop through user defined search paths for modules,
	  then fallback on the compile time default, then fallback on default system
	  library paths.

	* gladeui/glade-app.h: Define env variables GLADE_MODULE_PATH & GLADE_CATALOG_PATH


svn path=/trunk/; revision=1516
2007-07-25 20:04:56 +00:00
Tristan Van Berkom
123cb31e81 Set "label-xalign" of GtkFrame to be "save-always" (to counter the evil
* plugins/gtk+/gtk+.xml.in: Set "label-xalign" of GtkFrame to be "save-always"
	  (to counter the evil effects of gtk+ bug 460272, which made it impossible to
	  set the label-xalign to 0.5).


svn path=/trunk/; revision=1515
2007-07-25 15:28:19 +00:00
Tristan Van Berkom
61782c359e Make undoing increasing notebook size work properly (needed to destroy the
* plugins/gtk+/glade-gtk.c: Make undoing increasing notebook size work properly
	  (needed to destroy the added tab label project widget and remove it from the
	  project).



svn path=/trunk/; revision=1514
2007-07-25 13:57:36 +00:00
Tristan Van Berkom
046723ba7f - Dont transfer "transfer-on-paste" properties to newly added placeholders
in glade_gtk_container_replace_child (fixes bug 459953)


svn path=/trunk/; revision=1513
2007-07-24 23:51:24 +00:00
Tristan Van Berkom
f5dfec967f - Now child menu items are selectable (fixed event handling for widgets that are
not in the logical hierarchy)


svn path=/trunk/; revision=1512
2007-07-24 23:07:55 +00:00
Jorge Gonzalez Gonzalez
d1f73bbee6 Updated Spanish translation
svn path=/trunk/; revision=1510
2007-07-24 21:33:38 +00:00
Tristan Van Berkom
775aeb2194 Dont add objects to a project that already contains the said object.
* gladeui/glade-project.c: Dont add objects to a project that already contains the said object.

	* plugins/gtk+/glade-gtk.c: Add tab labels by default to notebook pages (bug 345438)


svn path=/trunk/; revision=1509
2007-07-24 20:33:23 +00:00
Tristan Van Berkom
6eda77f84a Made glade_util_queue_draw_nodes --> glade_util_draw_selection_nodes()
* gladeui/glade-utils.c: Made glade_util_queue_draw_nodes --> glade_util_draw_selection_nodes()
	  (without the idle timeout now)

	* gladeui/glade-widget.c, gladeui/glade-placeholder.c: Use glade_util_draw_selection_nodes(),
	  (selection wasnt being drawn on some widgets, now it's working and there's less "flicker"
	  when drag/resizing widgets too).


svn path=/trunk/; revision=1508
2007-07-24 19:43:49 +00:00
Tristan Van Berkom
ba93bf3734 Set custom label on the property editor sensitive/insensitive according to
* src/glade-window.c: Set custom label on the property editor sensitive/insensitive
	  according to whether there is a project loaded or not

	* gladeui/glade-app.c: Unset editor widget and set insensitive when no project is
	  loaded (fixes segfaults from editing widgets that dont exist when project is
	  closed, also looks consistant with the rest of the insensitive UI with no project
	  loaded).


svn path=/trunk/; revision=1507
2007-07-24 16:53:38 +00:00
Tristan Van Berkom
cfa8ddb4cf Rolling 3.3.2
* NEWS, configure.ac: Rolling 3.3.2


svn path=/trunk/; revision=1505
2007-07-23 21:03:33 +00:00
Tristan Van Berkom
4d4131334f - Fixed order in which we setup packing actions when adding/replacing
* gladeui/glade-widget.[ch]: 
	  - Fixed order in which we setup packing actions when adding/replacing widgets in

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: 
	  - Added a "Remove Slot" packing action to delete placeholders from GtkBox (bug 387963)


svn path=/trunk/; revision=1504
2007-07-23 20:29:15 +00:00
Matic Žgur
79910092a2 Added Slovenian translation
svn path=/trunk/; revision=1503
2007-07-23 19:17:47 +00:00
Matic Žgur
1d78b67fdc Added Slovenian translation
svn path=/trunk/; revision=1502
2007-07-23 19:16:27 +00:00
Tristan Van Berkom
8c6dea6f00 Added parent options in placeholder context menus.
* gladeui/glade-popup.c: Added parent options in placeholder context menus.


svn path=/trunk/; revision=1501
2007-07-23 18:29:02 +00:00
Tristan Van Berkom
174a98bdf5 Adding convenience funcs that help with debugging property values in
* gladeui/glade-widget.[ch]: Adding convenience funcs that help with
	  debugging property values in plugins: glade_widget_property_string(),
	  glade_widget_pack_property_string().

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Reset label/markup/use-underline 
	  properties at realize time, this fixes load time glitches with markup 
	  and mnemonics (bug 396446).


svn path=/trunk/; revision=1500
2007-07-23 14:59:18 +00:00
Vincent Geddes
659dd59520 remove shadow effect
* remove shadow effect

svn path=/trunk/; revision=1499
2007-07-21 14:40:34 +00:00
Vincent Geddes
8d75848196 fix changelog entry
* fix changelog entry

svn path=/trunk/; revision=1498
2007-07-20 14:02:11 +00:00
Vincent Geddes
a8a09060a3 - Use cairo instead of GdkGC to draw frame. - Draw slightly darker border
* gladeui/glade-design-layout:
	  - Use cairo instead of GdkGC to draw frame.
	  - Draw slightly darker border to ensure border is visible on some themes.

svn path=/trunk/; revision=1497
2007-07-20 14:00:10 +00:00
Jorge Gonzalez Gonzalez
6e214241d2 Updated Spanish translation
svn path=/trunk/; revision=1496
2007-07-19 13:11:32 +00:00
Vincent Geddes
c194efe2f8 misc trivial typo fix
svn path=/trunk/; revision=1495
2007-07-18 22:11:13 +00:00
Vincent Geddes
e6a88a9a1d Add About dialog credits for artists and documenters.
* src/glade-window.c: Add About dialog credits for artists and documenters.

svn path=/trunk/; revision=1494
2007-07-18 22:06:27 +00:00
Vincent Geddes
55038cd224 Rename "Help" menu item to "Contents" (as per convention).
* src/glade-window.c: Rename "Help" menu item to "Contents" (as per convention).

svn path=/trunk/; revision=1493
2007-07-18 21:00:52 +00:00
Tristan Van Berkom
a19c419e9c fixed memory leaks of description strings in usage of
* gladeui/glade-command.[ch]: 
	  fixed memory leaks of description strings in usage of glade_command_push_group()
	  
	* gladeui/glade-widget.[ch]: Added convenience apis to set sensitivity on
	  GladeWidgetActions.

	* gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.c: Added
	  deep_post_create() vfunc, in this one you must always chain up to the parent.

	* plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Added "Add/Remove" parent
	  feature (bug 343786), implemented types: Alignment, Viewport, Event Box, Frame,
	  Aspect Frame, Scrolled Window, Expander, Table, Horizontal Box, Vertical Box,
	  Horizontal Panes, Vertical Panes


svn path=/trunk/; revision=1492
2007-07-18 20:19:19 +00:00
Gabor Kelemen
111575fda0 Translation updated.
2007-07-18 Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.


svn path=/trunk/; revision=1491
2007-07-18 20:18:49 +00:00
Juan Pablo Ugarte
24fd649e8b translate action name in gwa_action_update_from_node()
* gladeui/glade-widget-adaptor.c: translate action name in gwa_action_update_from_node()

svn path=/trunk/; revision=1490
2007-07-18 17:36:27 +00:00
Vincent Geddes
f04d417280 Do not override GtkWidget::event(). Ensures that child widgets only
* gladeui/glade-design-layout.c: Do not override GtkWidget::event().
	  Ensures that child widgets only receive events when necessary.

svn path=/trunk/; revision=1489
2007-07-18 15:23:16 +00:00
Vincent Geddes
69708df7b5 Make header file look pretty.
* gladeui/glade-design-layout.h: Make header file look pretty.

svn path=/trunk/; revision=1488
2007-07-18 14:28:56 +00:00
Tristan Van Berkom
c5033b38b3 Dont connect event handlers to child objects of fixed containers that are
* gladeui/glade-fixed.c: Dont connect event handlers to child objects of fixed
	  containers that are not widgets.


svn path=/trunk/; revision=1484
2007-07-17 19:40:58 +00:00
Juan Pablo Ugarte
f3e647a48e simplified displayable value message in
* gladeui/glade-property-class.c: simplified displayable value message in 
  gpc_get_displayable_values_from_node() closes #448915

svn path=/trunk/; revision=1483
2007-07-17 18:31:24 +00:00
Daniel Nylander
c0a047e9ee sv.po: Updated Swedish translation
svn path=/trunk/; revision=1482
2007-07-17 15:17:32 +00:00
Tristan Van Berkom
6ae429f3cc Removed glade_app_widget_event() and the "widget-event" signal
* gladeui/glade-app.[ch]: Removed glade_app_widget_event() and the "widget-event"
	  signal

	* gladeui/glade-design-layout.c: Expose glade_design_layout_widget_event() to
	  be used internally by GladeWidget (no longer listening to "widget-event" signal
	  on glade-app).

	* gladeui/glade-widget.c: glade_widget_event_private() Find the parenting
	  GladeDesignLayout and dispatch the event through glade_design_layout_widget_event()
	  (this fixes multiple projects recieving the same events, bug 456013).


svn path=/trunk/; revision=1481
2007-07-17 14:42:12 +00:00
Tristan Van Berkom
b986ee8f0d untranslate the "half translated" warning message in
* gladeui/glade-widget-adaptor.c: untranslate the "half translated" warning
	message in gwa_displayable_values_check().


svn path=/trunk/; revision=1480
2007-07-17 13:42:32 +00:00
Jorge Gonzalez Gonzalez
d4f70cd912 Updated Spanish translation
svn path=/trunk/; revision=1479
2007-07-17 10:38:56 +00:00
Tristan Van Berkom
09d36e5faa Now undocked windows can be redocked by hitting the close button and UI
* src/glade-window.c: Now undocked windows can be redocked by hitting
	the close button and UI tool components dont sport redundant indicator labels.


svn path=/trunk/; revision=1478
2007-07-16 20:54:05 +00:00
Tristan Van Berkom
349d958a26 fixing translations
svn path=/trunk/; revision=1477
2007-07-16 14:36:07 +00:00
Tristan Van Berkom
5339c7e431 Fixing tabs in changelog
svn path=/trunk/; revision=1476
2007-07-16 14:15:20 +00:00
Gabor Kelemen
0c270c4a07 Translation updated.
2007-07-15 Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.


svn path=/trunk/; revision=1475
2007-07-15 22:12:56 +00:00
Vincent Geddes
0fb5363166 Update to use G_DEFINE_TYPE macros. Removed the manual peeks to get the
* gladeui/glade-widget.c 
         gladeui/glade-design-layout.c
         gladeui/glade-placeholder.c
         gladeui/glade-placeholder.h: Update to use G_DEFINE_TYPE macros. Removed
         the manual peeks to get the parent class.

svn path=/trunk/; revision=1465
2007-07-12 20:49:35 +00:00
Juan Pablo Ugarte
25ab68be16 added gwa_displayable_values_check() and use it to check for displayable
* gladeui/glade-widget-adaptor.c: added gwa_displayable_values_check() and use it to check 
  for displayable values in enums and flags properties in  glade_widget_adaptor_from_catalog()
  this way we can check every properties not only the ones that are explicited in the catalog.

* gladeui/glade-property-class.c: removed displayable values check from 
  glade_property_class_update_from_node()

* plugins/gtk+/gtk+.xml.in: added displayable values for
  GtkToolbar::icon-size
  GtkLabel::wrap-mode
  GtkIconView::selection-mode, orientation
  GtkRange::lower-stepper-sensitivity, upper-stepper-sensitivity
  GtkRuler::metric
  GtkList::selection-mode
  GtkCList::shadow-type, selection-mode, sort-type

svn path=/trunk/; revision=1462
2007-07-12 18:17:31 +00:00
Tristan Van Berkom
deacca9884 added window titles to the undocked tool windows.
svn path=/trunk/; revision=1459
2007-07-11 21:31:17 +00:00
Tristan Van Berkom
8b961b87a4 adjusting newly added menu
svn path=/trunk/; revision=1458
2007-07-11 20:51:05 +00:00
Tristan Van Berkom
de9567b338 Implemented docking view menu.
* src/glade-window.c: Implemented docking view menu.


svn path=/trunk/; revision=1457
2007-07-11 20:14:43 +00:00
Vincent Geddes
bc79aa24b8 s/GLADE_CREATE_REASON/GLADE_TYPE_CREATE_REASON/.
* gladeui/glade-widget-adaptor.h: s/GLADE_CREATE_REASON/GLADE_TYPE_CREATE_REASON/.

svn path=/trunk/; revision=1452
2007-07-11 18:43:17 +00:00
Vincent Geddes
16db0d7395 Ref project when adding it to the app.
* gladeui/glade-app.c (glade_app_add_project): Ref project when
	  adding it to the app. 

svn path=/trunk/; revision=1449
2007-07-11 13:59:14 +00:00
Juan Pablo Ugarte
a7bb7fe231 Removed bindings framework since now all binding work will be done
in the branch until we have a proper framework and a full implementation (python)

svn path=/trunk/; revision=1447
2007-07-11 00:26:49 +00:00
Vincent Geddes
d13019316e fix bug with regards to setting the project as unmodified when undoing the
* gladeui/glade-project: fix bug with regards to setting the
	  project as unmodified when undoing the command that caused
	  the first unsaved command.

svn path=/trunk/; revision=1444
2007-07-10 21:47:43 +00:00
Vincent Geddes
57f71bdbf5 Initialize threading system (#406039).
* configure.ac, src/main.c: Initialize threading system (#406039).
	
	* gladeui/glade-project.c: Remove user name and host
	  from comment in glade file (#453174).

svn path=/trunk/; revision=1441
2007-07-09 18:34:07 +00:00
Runa Bhattacharjee
b9e15e46a6 Added Entry for addition of Bengali India translation and addition of language in LINGUAS
svn path=/trunk/; revision=1440
2007-07-09 12:51:08 +00:00
Runa Bhattacharjee
96a969491b Added Bengali India Translation
svn path=/trunk/; revision=1439
2007-07-09 12:50:53 +00:00
Runa Bhattacharjee
fe133e8160 Added Bengali India (bn_IN) to the list of languages
svn path=/trunk/; revision=1438
2007-07-09 12:49:58 +00:00
Rajesh Ranjan
33e8f6573b hindi glade update
svn path=/trunk/; revision=1437
2007-07-09 09:35:02 +00:00
Vincent Geddes
a4fb3ab3fe Increment version to 3.3.2 as we modified API since the last public
* configure.ac: Increment version to 3.3.2 as we modified API
	  since the last public release. Fixes Anjuta build.

svn path=/trunk/; revision=1436
2007-07-07 13:23:24 +00:00
Juan Pablo Ugarte
3a41a55d57 skip properties that are not readable in glade_property_load_impl() (fixes
* gladeui/glade-property.c: skip properties that are not readable in
  glade_property_load_impl() (fixes #453107 and #453111)

* plugins/gtk+/gtk+.xml.in: added default value to GtkLinkButton::uri property
  fixes #453110

svn path=/trunk/; revision=1435
2007-07-06 21:10:31 +00:00
Vincent Geddes
af8af6ac53 Fix some mishandled dgettext operations (#453105).
* gladeui/glade-property-class.c
	  (glade_property_class_update_from_node), (gpc_get_displayable_values_from_node):
	  Fix some mishandled dgettext operations (#453105).

svn path=/trunk/; revision=1434
2007-07-04 12:52:59 +00:00
Vincent Geddes
741d228af1 New method glade_app_new().
* gladeui/glade-app.h, gladeui/glade-app.c: New method glade_app_new().

	* src/glade-project-window.h, src/glade-project-window.c: Renamed
	  to glade-window.h and glade-window.c respectively. GladeWindow now
	  subclasses GtkWindow instead of GladeApp (#449928).

svn path=/trunk/; revision=1433
2007-07-04 02:15:10 +00:00
Juan Pablo Ugarte
79a959e4f1 svn path=/trunk/; revision=1432
svn path=/trunk/; revision=1432
2007-07-03 21:37:43 +00:00
Juan Pablo Ugarte
1e18d0fe5e set glade_widget_adaptor_child_verify_property() value parameter as
* gladeui/glade-widget-adaptor.[ch]: set glade_widget_adaptor_child_verify_property()
  value parameter as constant.

* gladeui/glade-property.c: added packing property verify check in 
  glade_property_set_value_impl().

svn path=/trunk/; revision=1431
2007-07-03 21:29:28 +00:00
Vincent Geddes
daf67732bb Upgrade to g_slice_new().
* gladeui/glade-binding.c: Upgrade to g_slice_new().
	
	* bindings/python/glade-python.c: Run garbage collector before finalizing
	  interpreter. Use Py_InitializeEx() instead of Py_Initialize() (#453104).

svn path=/trunk/; revision=1430
2007-07-03 21:19:03 +00:00
Juan Pablo Ugarte
75032ddc5a fixed verify-function and child-verify-function tags for GtkBox, GtkTable,
* plugins/gtk+/gtk+.xml.in: fixed verify-function and child-verify-function tags
  for GtkBox, GtkTable, GtkNotebook and GtkAssistant classes.

svn path=/trunk/; revision=1429
2007-07-03 20:25:27 +00:00
Artur Flinta
713e8b8dce Updated Polish translation by GNOME PL Team.
2007-07-03  Artur Flinta  <aflinta@svn.gnome.org>

	* pl.po: Updated Polish translation by GNOME PL Team.


svn path=/trunk/; revision=1428
2007-07-03 18:42:57 +00:00
Nguyen Thai Ngoc Duy
865bebe909 updated vi.po
svn path=/trunk/; revision=1426
2007-07-03 00:16:54 +00:00
Vincent Geddes
a24af636e4 Properly handle dgettext() operations (#453105, Christian Persch).
* gladeui/glade-catalog.c, gladeui/glade-widget-adaptor.c: Properly
	  handle dgettext() operations (#453105, Christian Persch).
	  
	* gladeui/glade-binding.c (glade_binding_load_all): Close GDir when
	  finished reading.

svn path=/trunk/; revision=1425
2007-07-02 21:34:07 +00:00
Vincent Geddes
20454a9f8c Properly handle dgettext() operations (#453105, Christian Persch).
* gladeui/glade-catalog.c: Properly handle dgettext() operations
	  (#453105, Christian Persch).

svn path=/trunk/; revision=1424
2007-07-02 18:29:19 +00:00
Vincent Geddes
db681bf4c9 Revert last change. Do not free catalogs in finalize as a result of
* gladeui/glade-app.c: Revert last change. Do not free catalogs
	  in finalize as a result of #453105.

svn path=/trunk/; revision=1423
2007-07-02 14:34:51 +00:00
Nguyen Thai Ngoc Duy
b28ab80ee5 updated vi.po
svn path=/trunk/; revision=1422
2007-07-01 23:39:57 +00:00
Vincent Geddes
01535eef9b Add glade_catalog_destroy_all(). Use g_slice_new() for mem allocation.
* gladeui/glade-catalog.h, gladeui/glade-catalog.c:
	  Add glade_catalog_destroy_all(). Use g_slice_new() for mem allocation.
	  
	* gladeui/glade-app.c: Free catalogs in finalize.

svn path=/trunk/; revision=1421
2007-07-01 14:19:47 +00:00
Jorge Gonzalez Gonzalez
a6db19a923 Updated Spanish translation
svn path=/trunk/; revision=1420
2007-06-30 12:46:19 +00:00
Clytie Siddall
dff56ba9c2 Updated Vietnamese translation.
svn path=/trunk/; revision=1419
2007-06-30 08:54:09 +00:00
Takeshi AIHANA
0294615a77 Updated Japanese translation.
2007-06-30  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1418
2007-06-30 00:59:59 +00:00
Vincent Geddes
12f3ce6825 s/has-unsaved-changes/modified/
* gladeui/glade-project.c: s/has-unsaved-changes/modified/

svn path=/trunk/; revision=1417
2007-06-29 17:08:43 +00:00
Vincent Geddes
f76a39a6bf Rename glade_project_get_has_unsaved_changes() to
* gladeui/glade-project.c, gladeui/glade-project.h: Rename
	  glade_project_get_has_unsaved_changes() to glade_project_get_modified().
	  Set "modified" to FALSE if we undo the command that caused the first
	  unsaved modification in a project (#392324).
	
	* src/glade-project-window.c: Update for API changes in GladeProject.

svn path=/trunk/; revision=1416
2007-06-29 17:05:56 +00:00
Daniel Nylander
62b803fb40 sv.po: Updated Swedish translation
svn path=/trunk/; revision=1415
2007-06-29 13:09:17 +00:00
Vincent Geddes
bdd65a6810 Moved gladeui/fixed_bg.xpm to plugins/gtk+/fixed-bg.xpm. The graphic is
* gladeui/fixed_bg.xpm, gladeui/Makefile.am,
	  plugins/gtk+/Makefile.am: Moved gladeui/fixed_bg.xpm to plugins/gtk+/fixed-bg.xpm.
	  The graphic is only used by the GTK+ plugin.

svn path=/trunk/; revision=1414
2007-06-29 02:02:06 +00:00
Jorge Gonzalez Gonzalez
752071c66e Updated Spanish translation
svn path=/trunk/; revision=1413
2007-06-28 15:05:52 +00:00
Vincent Geddes
4bde2befb6 fix changelog
* fix changelog

svn path=/trunk/; revision=1412
2007-06-28 14:34:48 +00:00
Vincent Geddes
1567a82a98 HIGify query dialog.
* gladeui/glade-editor.h: HIGify query dialog.

svn path=/trunk/; revision=1411
2007-06-28 14:30:43 +00:00
Vincent Geddes
721746a39e Set log domains "GladeUI-GTK" and "GladeUI-GNOME" respectively.
* plugins/gtk+/Makefile.am, plugins/gnome/Makefile.am: Set log domains
	  "GladeUI-GTK" and "GladeUI-GNOME" respectively.

svn path=/trunk/; revision=1410
2007-06-28 13:29:53 +00:00
Vincent Geddes
7ebb1926c4 Simplify GladeItemAppearance enum
* Simplify GladeItemAppearance enum

svn path=/trunk/; revision=1409
2007-06-28 13:06:49 +00:00
Vincent Geddes
38e82ea996 Move GladeItemAppearance enum from glade-palette-item.h to glade-palette.h
* gladeui/glade-palette.h, gladeui/glade-palette-item.h: Move GladeItemAppearance
	  enum from glade-palette-item.h to glade-palette.h (so it is visible in the docs).
	
	* src/glade-project-window.c (check_reload_project): Set alternatibe button order
	  on message dialog.

svn path=/trunk/; revision=1408
2007-06-28 13:04:27 +00:00
Clytie Siddall
507b974afc Updated Vietnamese translation.
svn path=/trunk/; revision=1407
2007-06-28 06:17:03 +00:00
Vincent Geddes
864b682eea ditto
* ditto

svn path=/trunk/; revision=1406
2007-06-28 01:56:27 +00:00
Vincent Geddes
4d15171563 Make ChangeLog entry more descriptive
* Make ChangeLog entry more descriptive

svn path=/trunk/; revision=1405
2007-06-28 01:55:12 +00:00
Vincent Geddes
25ce30c1c5 Attempt to reload an open project if the user tries to open it again
* src/glade-project-window.c: Attempt to reload an open project if
	  the user tries to open it again (#450483).

svn path=/trunk/; revision=1404
2007-06-28 01:51:15 +00:00
Juan Pablo Ugarte
312c7bca0c gladeui/glade-popup.[ch] - added packing actions to placeholders
* gladeui/glade-popup.[ch]
  - added packing actions to placeholders

* gladeui/glade-widget-action.[ch]: added "important" flag to GWActionClass

* gladeui/glade-widget-adaptor.[ch]:
  - parse important tag in gwa_action_update_from_node()

  - added new "important" parameter to glade_widget_adaptor_pack_action_add() and
    glade_widget_adaptor_action_add()

* gladeui/glade-xml-utils.h: addded GLADE_TAG_IMPORTANT tag

* plugins/gtk+/gtk+.xml.in: marked launch_editor actions as important

* gladeui/glade-inspector.c: make inspector popup include only normal actions.

* src/glade-project-window.c: added important actions to the toolbar.

svn path=/trunk/; revision=1403
2007-06-27 20:23:01 +00:00
Jorge Gonzalez Gonzalez
7b0823643b Updated Spanish translation
svn path=/trunk/; revision=1402
2007-06-27 09:23:56 +00:00
Clytie Siddall
9762ba2078 Updated Vietnamese translation.
svn path=/trunk/; revision=1401
2007-06-27 05:23:39 +00:00
Vincent Geddes
60f84aef60 Update ChangeLog
* Update ChangeLog

svn path=/trunk/; revision=1400
2007-06-27 01:02:32 +00:00
Vincent Geddes
b6dd0ad91f Substitute PLUGINS_WARN_CFLAGS as the warning flags for compiling plugins.
* configure.ac, plugins/gtk+/Makefile.am,
          plugins/gnome/Makefile.am: Substitute PLUGINS_WARN_CFLAGS as the warning flags
          for compiling plugins. Don't use the warning flags defined by GNOME_COMPILE_WARNINGS. 


svn path=/trunk/; revision=1399
2007-06-27 00:59:53 +00:00
Juan Pablo Ugarte
f808abe87c print a message for missing displayable values in
* gladeui/glade-property-class.c: print a message for missing displayable values in
  glade_property_class_update_from_node() and gpc_get_displayable_values_from_node()

* plugins/gtk+/glade-gtk.c: removed inline displayable values in
   glade_gtk_image_type_get_type() and glade_gtk_button_type_get_type()

* plugins/gtk+/gtk+.xml.in: added missing displayable values in GtkToolButton::glade-type,
  GtkButton::glade-type, GtkImage::glade-type and GtkArrow::arrow-type

svn path=/trunk/; revision=1398
2007-06-26 20:34:19 +00:00
Vincent Geddes
475909cac3 Cygwin build fixes. Only apply "-mwindows" ld flag if we are in unstable
* src/Makefile.am
	  configure.ac
	  gladeui/Makefile.am: Cygwin build fixes. Only apply "-mwindows" ld flag
	  if we are in unstable development.

svn path=/trunk/; revision=1397
2007-06-26 19:59:09 +00:00
Ilkka Tuohela
7c3efed4a0 Add fi to LINGUAS file
svn path=/trunk/; revision=1396
2007-06-26 17:12:57 +00:00
Tristan Van Berkom
ca83dcc17d fixing merge conflict on changelog
svn path=/trunk/; revision=1394
2007-06-26 15:27:41 +00:00
Vincent Geddes
13bd94781d remove obsolete GCC_WARN_FLAGS variable
* remove obsolete GCC_WARN_FLAGS variable

svn path=/trunk/; revision=1393
2007-06-26 12:18:44 +00:00
Clytie Siddall
40872f6c43 Updated Vietnamese translation.
svn path=/trunk/; revision=1392
2007-06-25 13:46:43 +00:00
Vincent Geddes
1348bbfdc2 Set log domain for libgladeui to "GladeUI".
* gladeui/Makefile.am: Set log domain for libgladeui to "GladeUI".

svn path=/trunk/; revision=1391
2007-06-24 19:59:36 +00:00
Jorge Gonzalez Gonzalez
f480454da9 Updated Spanish translation
svn path=/trunk/; revision=1390
2007-06-24 11:38:37 +00:00
Juan Pablo Ugarte
36994d860c glade_gtk_tool_button_set_type() return if loading fixes #450177.
* plugins/gtk+/glade-gtk.c: glade_gtk_tool_button_set_type() return if loading 
  fixes #450177. glade_gtk_tool_button_set_icon() show image widget.

svn path=/trunk/; revision=1388
2007-06-23 18:54:35 +00:00
Daniel Nylander
d563ed22b0 sv.po: Updated Swedish translation
svn path=/trunk/; revision=1387
2007-06-23 17:52:12 +00:00
Vincent Geddes
e90a433672 Beautify header file, add tooltips for undo history menus.
* src/glade-project-window.c, src/glade-project-window.h: Beautify
	  header file, add tooltips for undo history menus. 

svn path=/trunk/; revision=1385
2007-06-21 23:19:17 +00:00
Vincent Geddes
d6cfd1e4c9 Fix "missing prototype" errors reported by gcc due to increased warning
* plugins/gnome/glade-gnome.h,
	  plugins/gtk+/glade-gtk.c
	  plugins/gtk+/glade-gtk.h
	  plugins/gtk+/Makefile.am,
	  plugins/gnome/glade-gnome.c,
	  plugins/gnome/Makefile.am,
	  src/glade-project-window.c,
	  gladeui/glade-editor-property.c,
	  gladeui/glade-parameter.c,
	  gladeui/glade-widget.c,
	  gladeui/glade-command.c,
	  gladeui/glade-palette.c,
	  gladeui/glade-utils.c,
	  gladeui/glade-accumulators.c,
	  gladeui/glade-palette.h,
	  gladeui/glade-binding.h,
	  gladeui/glade-app.c,
	  gladeui/glade-property.c,
	  gladeui/glade-builtins.c,
	  gladeui/glade-project.c,
	  gladeui/Makefile.am: Fix "missing prototype" errors reported by
	  gcc due to increased warning level (-Wmissing-prototypes). Added
	  glade-gnome.h with function prototypes as well.

svn path=/trunk/; revision=1384
2007-06-21 22:59:42 +00:00
Vincent Geddes
eb9ddfa865 Fix errors reported by gcc (due to higher warning level).
* plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-gtk.h: Fix errors reported
          by gcc (due to higher warning level).

svn path=/trunk/; revision=1383
2007-06-21 20:15:36 +00:00
Christian Persch
af3ecf88b6 Use gnome-common macro for WARN_CFLAGS. Bug #399134.
2007-06-21  Christian Persch  <chpe@gnome.org>

	* bindings/python/Makefile.am:
	* configure.ac:
	* gladeui/Makefile.am:
	* plugins/gnome/Makefile.am:
	* plugins/gtk+/Makefile.am:
	* src/Makefile.am: Use gnome-common macro for WARN_CFLAGS. Bug
	#399134.

svn path=/trunk/; revision=1382
2007-06-21 17:15:59 +00:00
Vincent Geddes
a89d528d42 Misc cleanups.
* gladeui/glade-app.[ch], gladeui/glade-widget-adaptor.c: Misc cleanups.

svn path=/trunk/; revision=1381
2007-06-21 11:10:31 +00:00
Jorge Gonzalez Gonzalez
508dbe3d36 Updated Spanish translation
svn path=/trunk/; revision=1380
2007-06-21 09:12:35 +00:00
Tristan Van Berkom
ef256f062c Refresh active GladeDesignView upon update_ui calls (fixes occasional
* src/glade-project-window.c: Refresh active GladeDesignView upon
	  update_ui calls (fixes occasional outline glitch in the design-view).


svn path=/trunk/; revision=1379
2007-06-21 04:08:30 +00:00
Tristan Van Berkom
c3506c2e76 Remember notebook page when reconstructing (Fixes bug 394382)
* plugins/gtk+/glade-gtk.c: Remember notebook page when 
	  reconstructing (Fixes bug 394382)


svn path=/trunk/; revision=1378
2007-06-21 03:48:38 +00:00
Vincent Geddes
b2589bb6bf misc update docs again
* misc update docs again

svn path=/trunk/; revision=1377
2007-06-20 19:07:28 +00:00
Vincent Geddes
ef1ee83c54 add more documentation templates
* add more documentation templates

svn path=/trunk/; revision=1376
2007-06-20 18:45:29 +00:00
Vincent Geddes
a9f38f5253 remove file 'plugins/gtk+/gtkunixprint.xml' erronousely added to repo
* remove file 'plugins/gtk+/gtkunixprint.xml' erronousely added to repo

svn path=/trunk/; revision=1375
2007-06-20 18:23:44 +00:00
Vincent Geddes
f228d65a45 Set up documentation for GladeInspector.
* doc/gladeui-docs.sgml, doc/gladeui.types, doc/gladeui-sections.txt,
	  doc/tmpl/glade-inspector.sgml: Set up documentation for GladeInspector.
	  
	* po/POTFILES.in: Add glade-inspector.c
	
	* gladeui/glade-inspector.[ch]: Add convenience function
	  `glade_inspector_new_with_project()'.

svn path=/trunk/; revision=1374
2007-06-20 18:15:41 +00:00
Takeshi AIHANA
6fbff4c189 Updated Japanese translation.
2007-06-20  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1373
2007-06-20 14:31:03 +00:00
Tristan Van Berkom
e71ce57bca s/8space/tab/ --> Changelog entries.
svn path=/trunk/; revision=1372
2007-06-20 13:48:54 +00:00
Juan Pablo Ugarte
94b1780fe1 added extra check in project_remove_widget_cb() iter could be NULL!
* gladeui/glade-inspector.c: added extra check in project_remove_widget_cb()
  iter could be NULL!

svn path=/trunk/; revision=1371
2007-06-20 03:39:40 +00:00
Vincent Geddes
552ea45750 New Inspector implementation. - The Inspector no longer records session
* gladeui/glade-inspector.[ch]: New Inspector implementation.
          - The Inspector no longer records session data. 
          - GtkTreeModel of inspector is now synchronised with project data
            in an incremental fashion, instead of being totally rebuilt on changes.
          
        * gladeui/glade-project-view.[ch]: Removed.
        
        * gladeui/glade-app.[ch]: Remove glade_app_add_project_view(). Inspectors
          are now managed by the frontend.
          
        * src/glade-project-window: A unique GladeInspector is associated with        
          each open project. These inspectors are stored in a GtkNotebook. 

svn path=/trunk/; revision=1370
2007-06-20 01:19:04 +00:00
Tristan Van Berkom
eeb660f9d7 fixing compile warning.
svn path=/trunk/; revision=1369
2007-06-20 01:00:05 +00:00
Tristan Van Berkom
3a903cdd47 - Added Drag/Resize button in the toolbar
* src/glade-project-window.c: 
	  - Added Drag/Resize button in the toolbar

	* gladeui/glade-design-layout.c: More reliable pointer handling

	* gladeui/glade-app.c: New pointer-mode property
	
	* gladeui/glade-fixed.c, gladeui/glade-placeholder.c, gladeui/glade-palette.c:
	  Use pointer-mode to set pointer interaction mode

	* gladeui/glade-builtins.c: Added trailing end marker on the stock list
	  enum paramspec.


svn path=/trunk/; revision=1368
2007-06-20 00:54:54 +00:00
Tristan Van Berkom
2365a039a7 added glade_project_undo_items() and glade_project_redo_items().
* gladeui/glade-project.[ch]: added glade_project_undo_items() and
	glade_project_redo_items().

	* src/glade-project-window.c: Made Undo/Redo buttons use a GtkMenuToolButton
	and include undo/redo history in those buttons


svn path=/trunk/; revision=1367
2007-06-19 20:39:44 +00:00
Tristan Van Berkom
b5f70e1242 Added launch_editor action for toolbars.
* plugins/gtk+/gtk+.xml.in: Added launch_editor action for toolbars.


svn path=/trunk/; revision=1366
2007-06-19 19:33:12 +00:00
Jorge Gonzalez Gonzalez
05afbdf364 Updated Spanish translation
svn path=/trunk/; revision=1365
2007-06-19 09:23:22 +00:00
Juan Pablo Ugarte
19281b20da deleted launch_editor wrapper.
* bindings/python/glade-python-gwa.defs: deleted launch_editor wrapper.

* bindings/python/glade-python-gwa.c: updated

svn path=/trunk/; revision=1364
2007-06-18 19:59:42 +00:00
Jorge Gonzalez Gonzalez
25f97be7c3 Updated Spanish translation
svn path=/trunk/; revision=1363
2007-06-18 18:41:35 +00:00
Tristan Van Berkom
8438e96e8c Rolling 3.3.1
* NEWS, configure.ac: Rolling 3.3.1

	* gladeui/plugins/gtk+/glade-gtk.c: Corrected undo item for
	"remove page" action to say "Removed page from notebook1".



svn path=/trunk/; revision=1361
2007-06-18 15:21:53 +00:00
Vincent Geddes
3dca1e364d More descriptive displayable values for the "toolbar-style" property. We
* plugins/gtk+/gtk+.xml.in: More descriptive displayable values for the 
	  "toolbar-style" property. We now have "Icons only", "Text only",
	   "Text below icons, "Text beside icons".

svn path=/trunk/; revision=1360
2007-06-17 22:37:26 +00:00
Vincent Geddes
e1906e8a3d Fix spelling typos, and clear up a translation ambiguity (#429736).
* gladeui/glade-property-class.c, plugins/gtk+/gtk+.xml.in,
	  plugins/gtk+/glade-gtk.c: Fix spelling typos, and clear up a
	  translation ambiguity (#429736).

svn path=/trunk/; revision=1359
2007-06-17 19:18:41 +00:00
Vincent Geddes
741dfb8b8b Make strings more translatable (#419979).
* gladeui/glade-command.c: Make strings more translatable (#419979).

svn path=/trunk/; revision=1358
2007-06-17 12:18:31 +00:00
Vincent Geddes
e7dab2e6db fix ChangeLog entry
* fix ChangeLog entry

svn path=/trunk/; revision=1357
2007-06-17 01:03:06 +00:00
Vincent Geddes
61a45dea82 Revert previous commit
* Revert previous commit

svn path=/trunk/; revision=1356
2007-06-17 00:57:40 +00:00
Vincent Geddes
8210c08960 Set "set-always" attribute on "toolbar-style" property to "True"
* plugins/gtk+/gtk+.xml.in: Set "set-always" attribute on "toolbar-style"
	  property to "True" (#448218).

svn path=/trunk/; revision=1355
2007-06-17 00:50:37 +00:00
Vincent Geddes
8116707f9b Ensure parameter list passed to gtk_dialog_set_alternative_button_order()
* gladeui/glade-editor-propertyc: Ensure parameter list passed to
	  gtk_dialog_set_alternative_button_order() are terminated (#424509). 

svn path=/trunk/; revision=1354
2007-06-17 00:33:42 +00:00
Jorge Gonzalez Gonzalez
ffe7eb1005 Updated Spanish translation
svn path=/trunk/; revision=1353
2007-06-15 09:28:23 +00:00
Vincent Geddes
f764641c04 Fix and improve URL launching on win32.
* gladeui/glade-utils.c, src/glade-project-window.c: Fix and improve URL
          launching on win32.

svn path=/trunk/; revision=1352
2007-06-14 17:44:56 +00:00
Vincent Geddes
303d39727f Fix problem with last commit
* Fix problem with last commit

svn path=/trunk/; revision=1351
2007-06-14 12:36:06 +00:00
Juan Pablo Ugarte
69cf4ebd56 glade_gtk_image_set_stock() property make reference to
* plugins/gtk+/glade-gtk.c:  glade_gtk_image_set_stock() property make reference
  to GLADE_TYPE_STOCK_IMAGE not GLADE_TYPE_STOCK! fixes bug #444959

svn path=/trunk/; revision=1350
2007-06-13 22:51:25 +00:00
Vincent Geddes
07575986af Change GtkMessageType of _warning_ dialogs from GTK_MESSAGE_INFO to
* gladeui/glade-app.c: Change GtkMessageType of _warning_ dialogs from
          GTK_MESSAGE_INFO to GTK_MESSAGE_WARNING. 

svn path=/trunk/; revision=1349
2007-06-13 22:43:33 +00:00
Juan Pablo Ugarte
480be92efb added some extra checks in glade_widget_adaptor_action_add_real()
* gladeui/glade-widget-adaptor.c: added some extra checks in 
  glade_widget_adaptor_action_add_real()

* plugins/gtk+/glade-gtk.c: added new actions support code
  - glade_gtk_box_notebook_child_insert_action() renamed to
    glade_gtk_box_notebook_child_insert_remove_action()

  - glade_gtk_table_child_insert_action() renamed to 
    glade_gtk_table_child_insert_remove_action()

* plugins/gtk+/gtk+.xml.in: added new actions

  - GtkTable remove_row and remove_column

  - GtkNotebook remove_page

svn path=/trunk/; revision=1348
2007-06-13 21:31:46 +00:00
Tristan Van Berkom
f5342df70e - Fixed cut/paste inside notebooks (widgets wanted to stay on the same
* gladeui/glade-command.c: 
	  - Fixed cut/paste inside notebooks (widgets wanted to stay on the same page they 
	    were cut from)
	  - Fixed special-child-type handling, dont stomp on the special child type for a
	    delete/undo combination (a tab widget deleted and brought back was showing up
	    in the page).


svn path=/trunk/; revision=1347
2007-06-13 20:39:37 +00:00
Vincent Geddes
73d093588b HIG: Use "Edit.." instead of "Edit Menu", and so on.
* plugins/gtk+/gtk+.xml.in: HIG: Use "Edit.." instead of "Edit Menu", and so on.

	* configure.ac: Calculate libtool CURRENT-minus-AGE value.
	
	* gladeui/gladeui.rc.in: Set the DLL name correctly.

svn path=/trunk/; revision=1346
2007-06-13 15:43:31 +00:00
Vincent Geddes
b86c474dfe fix problem with previous commit
* fix problem with previous commit

svn path=/trunk/; revision=1345
2007-06-10 16:23:52 +00:00
Vincent Geddes
1b1e3ff142 Remove invalid warning. It is not required that the 'bindings' directory
* gladeui/glade-binding.c: Remove invalid warning. It is not
	  required that the 'bindings' directory exists.

svn path=/trunk/; revision=1344
2007-06-10 15:24:38 +00:00
Vincent Geddes
09a91be11b Remove 'm4' from EXTRA_DIST. m4 files are included automatically
* Makefile.am: Remove 'm4' from EXTRA_DIST. m4 files are included
	  automatically (#445028).

svn path=/trunk/; revision=1343
2007-06-09 22:31:06 +00:00
Takeshi AIHANA
f65057d536 Updated Japanese translation.
2007-06-09  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1342
2007-06-09 00:33:36 +00:00
Jorge Gonzalez Gonzalez
f09d481f06 Updated Spanish translation
svn path=/trunk/; revision=1341
2007-06-08 12:29:37 +00:00
Juan Pablo Ugarte
401c36b603 in list_stock_items() "gtk-" prefix must be prepended just once. otherwise
* gladeui/glade-builtins.c: in list_stock_items() "gtk-" prefix must be prepended just once.
  otherwise gtk items gets listed twice!

svn path=/trunk/; revision=1340
2007-06-06 22:48:11 +00:00
Juan Pablo Ugarte
b702dbfa03 added packing action list to GladePlaceholder
* gladeui/glade-placeholder.[ch]: added packing action list to GladePlaceholder

* gladeui/glade-popup.c: added packing actions to placeholder popup

* gladeui/glade-widget-adaptor.[ch]: added glade_widget_adaptor_pack_actions_new ()

* gladeui/glade-widget.c: use new function glade_widget_adaptor_pack_actions_new () in
  glade_widget_set_packing_actions()

* plugins/gtk+/glade-gtk.c: take into acount placeholders get paking actions
  glade_gtk_box_notebook_child_insert_action() and glade_gtk_table_child_insert_action() fixed.

svn path=/trunk/; revision=1339
2007-06-06 20:45:33 +00:00
Juan Pablo Ugarte
69e8c4c43e removed every reference to binding script directory. (bug #444605)
* gladeui/glade-app.[ch], gladeui/Makefile.am: removed every reference to 
  binding script directory. (bug #444605)

svn path=/trunk/; revision=1338
2007-06-06 18:51:44 +00:00
Tristan Van Berkom
9e8f851144 Fixed C89 compile (bug 444045, fix by Jens Granseuer)
* gladeui/glade-id-allocator.c: Fixed C89 compile (bug 444045, fix by Jens Granseuer)


svn path=/trunk/; revision=1337
2007-06-06 18:06:07 +00:00
Jorge Gonzalez Gonzalez
b3921cc001 Updated Spanish translation
svn path=/trunk/; revision=1336
2007-06-06 12:38:08 +00:00
Juan Pablo Ugarte
fb41bea359 Added GtkNotebook child packing actions (finally fixes #438881)
* plugins/gtk+/gtk+.xml.in: Added GtkNotebook child packing actions (finally fixes #438881)

* plugins/gtk+/glade-gtk.c: added glade_gtk_notebook_child_action_activate ()

svn path=/trunk/; revision=1335
2007-06-05 20:13:00 +00:00
Tristan Van Berkom
f4b7c3329c Rolling 3.3.0
* configure.ac, NEWS: Rolling 3.3.0


svn path=/trunk/; revision=1333
2007-06-04 15:09:11 +00:00
Jorge Gonzalez Gonzalez
b5f9f0ab0e Updated Spanish translation
svn path=/trunk/; revision=1332
2007-06-02 19:24:10 +00:00
Theppitak Karoonboonyanan
db33e826e6 Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1331
2007-06-02 09:49:00 +00:00
Juan Pablo Ugarte
c00489f881 added packing actions to glade_popup_action_populate_menu()
* gladeui/glade-popup.c: added packing actions to glade_popup_action_populate_menu()

* gladeui/glade-widget-action.c: fixed a couple of typos in glade_widget_action_constructor()

* gladeui/glade-widget-adaptor.[ch]:

  - Added packing actions, just like properties the action tag should be inside an actions or
    packing-actions tag, also you can put an action tag inside other action tag :p

  - added GladeChildActionActivatedFunc child_action_activate to GladeWidgetAdaptorClass

  - added packing_actions list to GladeWidgetAdaptor

  - added new functions:
    glade_widget_adaptor_pack_action_add(), glade_widget_adaptor_pack_action_remove()
    and glade_widget_adaptor_child_action_activate()

* gladeui/glade-widget.[ch]:

  - added packing_actions list to GladeWidget

  - set packing actions in glade_widget_set_parent()

  - added glade_widget_get_pack_action() and glade_widget_remove_pack_action()

* gladeui/glade-xml-utils.h:

  - new tags GLADE_TAG_CHILD_ACTION_ACTIVATE_FUNCTION, GLADE_TAG_ACTIONS 
    and GLADE_TAG_PACKING_ACTIONS.

  - removed unused tag GLADE_TAG_ACTION_GROUP

* plugins/gtk+/gtk+.xml.in: Added a couple of child packing actions (fixes #438881)

  - GtkBox:  insert_before and insert_after

  - GtkTable: insert_row/after, insert_row/before, insert_column/after and insert_column/before

* plugins/gtk+/glade-gtk.c: added child-action-activate-function functions
  glade_gtk_box_child_action_activate () and glade_gtk_table_child_action_activate()

svn path=/trunk/; revision=1330
2007-05-31 19:36:28 +00:00
Juan Pablo Ugarte
7db080a100 - memory leak fixed in glade_widget_action_class_clone()
* gladeui/glade-widget-action.[ch]:

  - memory leak fixed in glade_widget_action_class_clone()

  - glade_widget_action_set_sensitive() declared and used in 
    gobject set_property() method.

  - GladeWidgetAction "klass" property renamed to "class"

* gladeui/glade-widget.c:
  - fixed check in glade_widget_get_action()

  - adapted to reflect GladeWidgetAction property rename.

svn path=/trunk/; revision=1327
2007-05-24 20:13:22 +00:00
Kenneth Nielsen
6b51338ab0 Updated Danish translation
svn path=/trunk/; revision=1326
2007-05-24 18:22:33 +00:00
Juan Pablo Ugarte
b9d029623f added gladeui/glade-widget-action.[ch]
* gladeui/Makefile.am: added gladeui/glade-widget-action.[ch]

* gladeui/glade-popup.[ch]:
  - added glade_popup_action_populate_menu()

  - adapted popup code to reflect action changes.

* gladeui/glade-widget-action.[ch]: GladeWidgetAction GObject sources.

* gladeui/glade-widget-adaptor.[ch]:

  - action-activated signal removed

  - added GladeActionActivateFunc

  - added glade_widget_adaptor_action_add() and glade_widget_adaptor_action_remove()

  - glade_widget_adaptor_action_activate() reworked. 

  - load symbol and other catalog stuff in gwa_derived_class_init()

  - added the posibility to override GObject constructor from the catalog.
    This is a good place to add/remove actions, use GWA_GET_OCLASS() to chain up.

* gladeui/glade-widget.[ch]:
  - removed action-activated signal

  - added glade_widget_get_action (), glade_widget_remove_action() and
    glade_widget_create_action_menu()

* gladeui/glade-xml-utils.h: added GLADE_TAG_ACTION_ACTIVATE_FUNCTION and 
  GLADE_TAG_CONSTRUCTOR_FUNCTION tags

* plugins/gtk+/glade-gtk.c:
  - added glade_gtk_menu_shell_action_activate() glade_gtk_menu_item_action_activate()
    and glade_gtk_toolbar_action_activate()

  - removed glade_gtk_menu_post_create() and glade_gtk_menu_launch_editor_action()

* plugins/gtk+/gtk+.xml.in:
  - glade_gtk_menu_post_create() removed

  - added action-activate-function for MenuShell MenuItem and Toolbar.


svn path=/trunk/; revision=1325
2007-05-23 19:38:46 +00:00
Juan Pablo Ugarte
4e6685d2bb S (bug 435912)
* Patch reaplied with the missing '}' :S (bug 435912)

svn path=/trunk/; revision=1324
2007-05-18 17:58:04 +00:00
Tristan Van Berkom
5084b69aac Added glade_widget_adaptor_from_pspec() and made
* gladeui/glade-widget-adaptor.[ch]: Added glade_widget_adaptor_from_pspec()
	  and made glade_widget_adaptor_from_pclass() always return the owning
	  adaptor and not the adaptor for the class which the property was originally
	  created for.

	* gladeui/glade-editor.[ch]: Removed some deadcode

	* gladeui/glade-editor-property.c: Use glade_widget_adaptor_from_pspec()
	  where appropriate (Fixing bug 423425)


svn path=/trunk/; revision=1322
2007-05-18 16:55:28 +00:00
Tristan Van Berkom
cf0e4a521b last fix broke the build, backing it out.
svn path=/trunk/; revision=1321
2007-05-18 16:00:15 +00:00
Juan Pablo Ugarte
3cbee45c07 ops, removing action_activate, function in gwa_extend_with_node_load_sym()
svn path=/trunk/; revision=1320
2007-05-16 19:21:47 +00:00
Juan Pablo Ugarte
82815b4b53 fixed bogus type punned warnings adding a local variable in
* gladeui/glade-widget-adaptor.[ch]: fixed bogus type punned warnings adding a 
  local variable in gwa_extend_with_node_load_sym() as pointed by galtgendo@o2.pl
  (bug 435912)

* gladeui/glade-xml-utils.[ch]: glade_xml_load_sym_from_node() now returns
   wheater or not the symbol was found.

svn path=/trunk/; revision=1319
2007-05-16 18:39:01 +00:00
Tristan Van Berkom
079d69565a Set "response-id" property to be "save-always" fixing bug 410272.
* plugins/gtk+/gtk+.xml.in: Set "response-id" property to be "save-always" fixing
	  bug 410272.


svn path=/trunk/; revision=1317
2007-05-16 16:20:38 +00:00
David Lodge
f7c8203d48 Updated en_GB translation
svn path=/trunk/; revision=1316
2007-05-15 21:09:47 +00:00
Subhransu Behera
d6d49a7012 Updated Oriya Translation
svn path=/trunk/; revision=1315
2007-05-14 12:17:46 +00:00
Subhransu Behera
a9b43c39f6 Added Oriya (or) to the list
svn path=/trunk/; revision=1314
2007-05-14 12:16:46 +00:00
Yannig MARCHEGAY
4f8c480bb2 Occitan first translation
svn path=/trunk/; revision=1313
2007-05-13 16:45:59 +00:00
Yannig MARCHEGAY
d7ad98d571 + Occitan
svn path=/trunk/; revision=1312
2007-05-13 16:44:34 +00:00
Theppitak Karoonboonyanan
6a8eed62fc Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1310
2007-05-12 17:12:34 +00:00
Tristan Van Berkom
5016bb38bc Set "resize" and "shrink" properties to be "save-always" since gtkpaned.c
* plugins/gtk+/gtk+.xml.in: Set "resize" and "shrink" properties to be "save-always"
	  since gtkpaned.c does some hardcoded stuff when adding widgets. Fixes bug 364215.


svn path=/trunk/; revision=1308
2007-05-09 20:49:09 +00:00
Tristan Van Berkom
da60beeef4 Removed notion of custom widget editors.
* gladeui/glade-widget-adaptor.[ch], gladeui/glade-widget.[ch], gladeui/glade-editor.c,
	  gladeui/glade-xml-utils.h:
	  Removed notion of custom widget editors.

	* plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: removed custom editor hooks,
	  implemented menu editor via actions only (toolbar editor temporarily disabled).


svn path=/trunk/; revision=1307
2007-05-09 15:26:30 +00:00
Juan Pablo Ugarte
fb940f780a Removed GladeBindingScript.
* bindings/python/glade-python.c, gladeui/glade-binding.c, 
  gladeui/glade-binding.h: Removed GladeBindingScript.

svn path=/trunk/; revision=1306
2007-05-08 20:12:14 +00:00
Juan Pablo Ugarte
4cedef0e6d added save_always member in GladePropertyClass.
* gladeui/glade-property-class.c, gladeui/glade-property-class.h:
  added save_always member in GladePropertyClass.

* gladeui/glade-property.c: always save if class or property save_always is true.

* gladeui/glade-xml-utils.h: added GLADE_TAG_SAVE_ALWAYS tag.

* plugins/gtk+/glade-gtk.c: removed, now unnecesary, call to 
  glade_widget_property_set_save_always() in glade_gtk_dialog_post_create()

* plugins/gtk+/gtk+.xml.in: set save-always true in GtkDialog's "type-hint" and 
  GtkScrolledWindow's "can-focus" properties.

svn path=/trunk/; revision=1305
2007-05-08 17:57:29 +00:00
Tristan Van Berkom
d62004b9d9 python bindings disabled by default
svn path=/trunk/; revision=1303
2007-05-07 20:43:32 +00:00
Vincent Geddes
fefe02e7b9 update ChangeLog
* update ChangeLog

svn path=/trunk/; revision=1302
2007-05-04 17:25:36 +00:00
Vincent Geddes
742fe2b036 Update documentation templates.
* doc/tmpl/glade-project.sgml, doc/tmpl/glade-app.sgml,
          doc/tmpl/glade-widget.sgml, doc/tmpl/glade-property.sgml,
	  doc/tmpl/glade-widget-class.sgml, doc/tmpl/glade-fixed.sgml
	  doc/tmpl/glade-utils.sgml: Update documentation templates.

svn path=/trunk/; revision=1301
2007-05-04 17:23:55 +00:00
Jorge Gonzalez Gonzalez
eca174d59e Updated Spanish translation
svn path=/trunk/; revision=1300
2007-05-03 19:08:45 +00:00
Juan Pablo Ugarte
84eaad73e1 - diabled "has-separator" property in GtkColorSelectionDialog,
* plugins/gtk+/gtk+.xml.in:
  - diabled "has-separator" property in GtkColorSelectionDialog,
    GtkFontSelectionDialog and GtkInputDialog to avoid a gtk warning.

  - GtkComboBox "model" property disabled.

* plugins/gtk+/glade-gtk.c:
    - Make every GtkInputDialog's internal GtkOptionMenu insensitive.
      This is a workaround for bug #433975

    - Warning fixed in glade_gtk_paned_set_child_property() and
       glade_gtk_text_view_post_create()


svn path=/trunk/; revision=1295
2007-05-02 18:32:58 +00:00
Tristan Van Berkom
737f62c3f5 Removed submenus for the ancestry since Vincent did that magic to the
* gladeui/glade-popup.[ch], gladeui/glade-widget.c, gladeui/glade-project-view.c: 
	  Removed submenus for the ancestry since Vincent did that magic to the project view, 
	  all is cleaner now.

	* gladeui/glade-widget-adaptor.c: Removed #include "glade-binding.h" and
	  all the scripting crap that went with it.


svn path=/trunk/; revision=1294
2007-05-02 18:22:02 +00:00
Vincent Geddes
df677a7ed6 fix incorrect Changelog entry
* fix incorrect Changelog entry

svn path=/trunk/; revision=1292
2007-05-01 21:05:33 +00:00
Vincent Geddes
e91e026a3d Expand and scroll to selection. Fixes #392225.
* gladeui/glade-inspector.c: Expand and scroll to selection. Fixes #392225.

svn path=/trunk/; revision=1288
2007-05-01 20:44:48 +00:00
Tristan Van Berkom
1d28bf2cbc Added 'exact' argument to glade_widget_dup() and added
* gladeui/glade-widget.[ch]: Added 'exact' argument to glade_widget_dup() and
	  added glade_widget_copy_signals()

	* gladeui/glade-command.c: dup the widget "exactly" when pasting widgets that
	  were cut (not copied), fixing bug 432519


svn path=/trunk/; revision=1287
2007-05-01 20:35:44 +00:00
Ignacio Casal Quinteiro
60605d63cf Updated Galician Translation
svn path=/trunk/; revision=1285
2007-04-30 19:27:57 +00:00
Tristan Van Berkom
6ba04830a8 - added a general launch_editor action signal handler. - hooked the
* plugins/gtk+/glade-gtk.c:
	    - added a general launch_editor action signal handler.
	    - hooked the launch_editor action signal in the GtkMenuItem post_create function.
	    - hooked the launch_editor action signal in the GtkMenuBar post_create function.
	    - created a GtkMenu post_create function containing a hook for the launch_editor
	      action signal.
	  (bug 433055)

	* plugins/gtk+/gtk+.xml.in: 
	    - Added "launch_editor" action to GtkMenuItem.
	    - Added "launch_editor" action to GtkMenuBar.
	    - Added "launch_editor" action and post_create function to GtkMenu.
	  (bug 433055)


svn path=/trunk/; revision=1284
2007-04-30 14:39:53 +00:00
Vincent Geddes
ca8fcea878 added entry
* ChangeLog: added entry

svn path=/trunk/; revision=1283
2007-04-29 12:40:01 +00:00
Vincent Geddes
dfb41bb25e Override GtkWidget::show_all to ensure hidden selector button is not
* gladeui/glade-palette.c: Override GtkWidget::show_all to ensure
	  hidden selector button is not accidentally made visible.
	  
	* gladeui/atk.xpm, gladeui/Makefile.am, data/icons/atk.png,
	  data/icons/Makefile.am: Moved gladeui/atk.xpm to data/icons/atk.png
	  
	* gladeui/glade-editor.c: Update to use atk.png instead of atk.xpm. 

svn path=/trunk/; revision=1282
2007-04-29 12:37:43 +00:00
David Lodge
d09930f9a2 Updated en_GB translation
svn path=/trunk/; revision=1281
2007-04-27 06:04:11 +00:00
Vincent Geddes
c5387f7d86 install some missing header files. Fixes an Anjuta compilation error.
* gladeui/Makefile.am: install some missing header files. Fixes an
	  Anjuta compilation error.

        * gladeui/glade-app.c: Update to use g_object_ref_sink ().
        
        * gladeui/glade-palette-expander.c: Correctly handle internal widget.

svn path=/trunk/; revision=1280
2007-04-26 21:53:37 +00:00
Vincent Geddes
27f06c2f00 - Hide private implementation details (Added GladeProjectPrivate). - Added
* gladeui/glade-project.h, gladeui/glade-project.c:
	  - Hide private implementation details (Added GladeProjectPrivate).
          - Added private field accessors glade_project_get_path, glade_project_get_name,
            glade_project_get_objects, and glade_project_get_has_unsaved_changes.
          - Removed project->name field.
          - Removed glade_project_display_name method.
          
        * gladeui/glade-editor-property.c, gladeui/glade-project-view.c,
	  gladeui/glade-cursor.c, gladeui/glade-signal-editor.c, gladeui/glade-app.c
	  gladeui/glade-property-class.c: Update for change in GladeProject.
   
        * src/glade-project-window.c: Update for change in GladeProject. Added
          methods for formatting paths and names. Fix display of tooltips for
          items in the project list menu.
          
        * gladeui/glade-palette-item.c, gladeui/glade-palette.c: Update to use 
          g_object_ref_sink().     

svn path=/trunk/; revision=1278
2007-04-26 00:55:20 +00:00
Juan Pablo Ugarte
846ff2f331 fixed a bug in GladeEPropUnichar
* gladeui/glade-editor-property.c: fixed a bug in GladeEPropUnichar

svn path=/trunk/; revision=1276
2007-04-25 21:34:49 +00:00
Juan Pablo Ugarte
fa29db2b90 make glade core not hold a reference to internals objects.
* gladeui/glade-widget.c, gladeui/glade-project.c: make glade core not hold
  a reference to internals objects.

svn path=/trunk/; revision=1274
2007-04-24 21:14:53 +00:00
Luca Ferretti
a4550ddc8f Forgot to perform 'svn add it.po' in previous commit
svn path=/trunk/; revision=1273
2007-04-24 07:03:51 +00:00
Jorge Gonzalez Gonzalez
37d5bc64bf Updated Spanish translation.
svn path=/trunk/; revision=1271
2007-04-23 15:05:39 +00:00
Luca Ferretti
b631f09f76 Added Italian translation by Andrea Zagli. ditto.
2007-04-23  Luca Ferretti  <elle.uca@libero.it>

	* it.po: Added Italian translation by Andrea Zagli.
	* LINGUAS: ditto.


svn path=/trunk/; revision=1270
2007-04-23 14:49:16 +00:00
Jorge Gonzalez Gonzalez
ccf65f8c47 Updated Spanish translation.
svn path=/trunk/; revision=1268
2007-04-23 14:41:42 +00:00
David Lodge
f34ed2e7e5 Updated British English translation
svn path=/trunk/; revision=1267
2007-04-22 19:05:47 +00:00
David Lodge
9579a6e175 Updated British English translation
svn path=/trunk/; revision=1266
2007-04-22 19:04:25 +00:00
Vincent Geddes
27998f519f Update ChangeLog
* Update ChangeLog

svn path=/trunk/; revision=1265
2007-04-21 22:06:29 +00:00
Vincent Geddes
81f6e84002 Performed house cleaning. - Use g_slice_new where appropriate. - Hide
* glade-id-allocator.c, glade-id-allocator.h: Performed house cleaning.
          - Use g_slice_new where appropriate.
          - Hide private implementation details.
          - Added g_return_if_fail guards.
          
        * gladeui/glade-project.c: Use GladeIDAllocator for allocating unsaved numbers.

svn path=/trunk/; revision=1264
2007-04-21 21:40:39 +00:00
Vincent Geddes
e86ce4eb6e Clean up toplevel embedding code, remove unused embedding implementation.
* gladeui/glade-widget.c: Clean up toplevel embedding code, remove
	  unused embedding implementation. Fix embedding warning.

svn path=/trunk/; revision=1263
2007-04-21 16:41:44 +00:00
Vincent Geddes
a0c5dd7c49 Fixed spelling error "Maximun" -> "Maximum".
* plugins/gtk+/gtk+.xml.in: Fixed spelling error "Maximun" -> 
"Maximum".

svn path=/trunk/; revision=1262
2007-04-21 13:17:21 +00:00
Jorge Gonzalez Gonzalez
8e8c04dddd Updated spanish translation.
svn path=/trunk/; revision=1260
2007-04-21 11:21:09 +00:00
Vincent Geddes
db021e5d62 Rename user visible "Gnome" strings to "GNOME". (#412309, Duarte
* README, configure.ac, plugins/gnome/gnome.xml.in,
	  plugins/gnome/glade-gnome.c, plugins/gnome/canvas.xml.in:
	  Rename user visible "Gnome" strings
	  to "GNOME". (#412309, Duarte "HappyGuy" Loreto).

svn path=/trunk/; revision=1259
2007-04-20 17:49:22 +00:00
Ignacio Casal Quinteiro
0076da27fd Updated Galician Translation
svn path=/trunk/; revision=1258
2007-04-19 09:01:59 +00:00
Vincent Geddes
ee8db2b813 Remove undefined functions.
* gladeui/glade-widget-adaptor.h: Remove undefined functions.

svn path=/trunk/; revision=1256
2007-04-16 23:02:00 +00:00
Vincent Geddes
107a7a7311 Removed "-mwindows" linker flag.
* src/Makefile.am: Removed "-mwindows" linker flag.

svn path=/trunk/; revision=1255
2007-04-16 21:18:16 +00:00
Vincent Geddes
32392cbce4 Check for windres on win32. Define version using separate number
* configure.ac: Check for windres on win32. Define version using
	  separate number components (major, minor, micro).
	  
	* data/icons/glade-3.ico: New application icon in win32 ICO format.
	
	* gladeui/gladeui.rc.in, gladeui/Makefile.am, src/glade-3.rc.in,
	  src/Makefile.am: Added win32 resources for the libgladeui dll
	  and the application executable.

svn path=/trunk/; revision=1254
2007-04-16 21:13:55 +00:00
Juan Pablo Ugarte
5a6c3b1a3f stop GtkFileChooserDefault "hierarchy-changed" and "screen-changed"
* plugins/gtk+/glade-gtk.c: stop GtkFileChooserDefault "hierarchy-changed"
  and "screen-changed" default handlers (fixes bug #415021)

* plugins/gtk+/glade-gtk.c: added GtkFileChooserWidget post-create function

* plugins/gtk+/gtk+.xml.in: added GtkFileChooserWidget

* plugins/gtk+/icons/22x22/widget-gtk-filechooserwidget.png,
  plugins/gtk+/icons/16x16/widget-gtk-filechooserwidget.png: new icons,
  they are the same as GtkFileChooserDialog but without the borders :)

svn path=/trunk/; revision=1253
2007-04-16 20:54:35 +00:00
Juan Pablo Ugarte
4beeca05d4 stop GtkFileChooserDefault "hierarchy-changed" and "screen-changed"
* plugins/gtk+/glade-gtk.c: stop GtkFileChooserDefault "hierarchy-changed" and 
  "screen-changed" default handlers (fixes bug #415021)

svn path=/trunk/; revision=1251
2007-04-16 18:51:29 +00:00
Djihed Afifi
ba2fe53da9 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1250
2007-04-14 18:49:23 +00:00
Vincent Geddes
430d6b652d Added french translation (fr).
* help/Makefile.am: Added french translation (fr).

svn path=/trunk/; revision=1249
2007-04-12 16:16:57 +00:00
Vincent Geddes
48cacc47ea Auto-generate `gladeui.def' for DLL symbol exports. Remove
* gladeui/Makefile.am: Auto-generate `gladeui.def' for DLL symbol
	  exports. Remove -DINSIDE_LIBGLADEUI from libgladeui_1_la_CPPFLAGS.

	* gladeui/glade-accumulators.h, gladeui/glade-app.h,
	  gladeui/glade-base-editor.h, gladeui/glade-binding.h,
	  gladeui/glade-builtins.h, gladeui/glade-catalog.h,
	  gladeui/glade-clipboard-view.h, gladeui/glade-clipboard.h,
	  gladeui/glade-command.h, gladeui/glade-custom.h,
	  gladeui/glade-debug.h, gladeui/glade-design-view.h,
	  gladeui/glade-editor-property.h, gladeui/glade-editor.h,
	  gladeui/glade-fixed.h, gladeui/glade-palette.h,
	  gladeui/glade-parameter.h, gladeui/glade-placeholder.h,
	  gladeui/glade-project-view.h, gladeui/glade-project.h,
	  gladeui/glade-property-class.h, gladeui/glade-property.h,
	  gladeui/glade-signal-editor.h, gladeui/glade-utils.h,
	  gladeui/glade-widget-adaptor.h, gladeui/glade-widget.h,
	  gladeui/glade.h:
	  Remove LIBGLADEUI_API function attributes.

	* plugins/gnome/glade-gnome.c, plugins/gtk+/glade-gtk.c,
	  plugins/gtk+/glade-gtk.h:
	  Remove GLADEGTK_API and GLADEGNOME_API function attributes.

svn path=/trunk/; revision=1248
2007-04-12 14:35:17 +00:00
Ignacio Casal Quinteiro
c2730cb354 Updated Galician Translation
svn path=/trunk/; revision=1246
2007-04-08 19:21:01 +00:00
Christian Persch
2e8f124368 - Don't use sscanf. Bug #424547, patch by Ivan Baldo and myself.
2007-04-08  Christian Persch  <chpe@gnome.org>

	* gladeui/glade-property-class.c:
	(glade_property_class_make_object_from_string):
	* gladeui/glade-xml-utils.c: (glade_xml_get_value_int):
	- Don't use sscanf. Bug #424547, patch by Ivan Baldo and myself.

svn path=/trunk/; revision=1245
2007-04-08 18:12:09 +00:00
Tristan Van Berkom
b562f2b56b s/8 spaces/tab charachter in some broken changelog statements.
svn path=/trunk/; revision=1243
2007-04-04 20:01:45 +00:00
Tristan Van Berkom
75a0b5cefb Make "label" property of GtkToolButton translatable
* plugins/gtk+/gtk+.xml.in: Make "label" property of GtkToolButton translatable


svn path=/trunk/; revision=1240
2007-04-04 17:45:44 +00:00
Vincent Geddes
8469aa54bf - Remove hard-coded newlines from license text. Enable "wrap-license"
* src/glade-project-window.c:
          - Remove hard-coded newlines from license text. Enable "wrap-license"
            property on GtkAboutDialog. Fixes #409120.
          - s/this program/Glade/ in license text.

svn path=/trunk/; revision=1239
2007-04-02 20:40:16 +00:00
Vincent Geddes
702000312f removed the GtkPageSetupUnixDialog and GtkPrintUnixDialog widgets from the
* plugins/gtk+/gtk+.xml.in: removed the GtkPageSetupUnixDialog and 
	  GtkPrintUnixDialog widgets from the gtk+ catalog. Fixes #392340.

	* plugins/gtk+/gtkunixprint.xml.in: added new, separate catalog for
	  the unix print widgets.

	* plugins/gtk+/Makefile.am: modified the make file to include the new
	  unix print catalog if found by configure.

	* configure.ac: modified configure to check for the existence of
	  the unix print widgets.

	* po/POTFILES.in: added the new unix print catalog to the list of 
	  translatable files.

svn path=/trunk/; revision=1238
2007-04-02 20:18:12 +00:00
Vincent Geddes
279700e43b Renamed all icons.
* plugins/gtk+/icons/*, plugins/gnome/icons/*: Renamed all icons.

        * gladeui/glade-project-view.c, gladeui/glade-widget-adaptor.[ch],
          gladeui/glade-palette-item.c, gladeui/glade-clipboard-view.c:
          Use GtkIconTheme for loading and managing widget icons.
          New "icon-name" property on GladeWidgetAdaptor.

        * gladeui/glade-catalog: Added catalog property "icon-prefix". The
          default value of this property is set to the catalog name.

        * gladeui/glade-app.c: Add GtkIconTheme search path for widget icons.

        * plugins/gtk+/icons/16x16/Makefile.am,
          plugins/gtk+/icons/22x22/Makefile.am,
          plugins/gnome/icons/16x16/Makefile.am,
          plugins/gnome/icons/22x22/Makefile.am: Renamed icon files.

        * gladeui/glade-widget-adaptor.c: Use g_type_class_add_private().

        * doc/widgetclasses.sgml, doc/catalogintro.sgml: Update documentation.

svn path=/trunk/; revision=1237
2007-04-01 13:58:37 +00:00
Vincent Geddes
2ebf2703fd Fix changelog
svn path=/trunk/; revision=1236
2007-03-31 01:16:58 +00:00
Christian Persch
af3c6c7f4c Don't use atoi/atof. Bug #414358.
2007-03-30  Christian Persch  <chpe@gnome.org>

	* gladeui/glade-parameter.c: (glade_parameter_get_integer),
	(glade_parameter_get_float):
	* gladeui/glade-xml-utils.c: (glade_xml_get_property_int): Don't use
	atoi/atof. Bug #414358.

svn path=/trunk/; revision=1235
2007-03-30 20:48:31 +00:00
Vincent Geddes
ef4eac919e Fix warnings on when building on win32 platforms.
* src/main.c: Fix warnings on when building on win32 platforms.

svn path=/trunk/; revision=1234
2007-03-30 17:57:14 +00:00
Claude Paroz
dbb1c37ca1 Added French translation of Glade3 manual.
svn path=/trunk/; revision=1232
2007-03-23 21:14:17 +00:00
Vincent Geddes
19e02e33a1 Updated screenshot.
* C/figures/main-window.png: Updated screenshot.

svn path=/trunk/; revision=1228
2007-03-22 21:01:16 +00:00
Vincent Geddes
09f0e47a87 Use Shift+Ctrl+Z as the accelerator for Redo, as specified by the HIG.
* src/glade-project-window.c: Use Shift+Ctrl+Z as the accelerator for Redo,
          as specified by the HIG.


svn path=/trunk/; revision=1227
2007-03-22 20:45:35 +00:00
Vincent Geddes
1aa68c0a3c Rewrote expander widget implementation.
* gladeui/glade-palette-expander.[ch]: Rewrote expander widget implementation.
        
        * gladeui/glade-palette.c: Update for change in expander widget.

svn path=/trunk/; revision=1226
2007-03-22 19:54:41 +00:00
Ignacio Casal Quinteiro
dfdeb5a6d0 Updated Galician Translation.
svn path=/trunk/; revision=1225
2007-03-21 22:30:48 +00:00
Vincent Geddes
df11c3953f Remove incorrect "Application" category from Categories. Add "GNOME" to
* data/glade3.desktop.in.in: Remove incorrect "Application" category
          from Categories. Add "GNOME" to Categories. Fixes #417618.

svn path=/trunk/; revision=1222
2007-03-20 20:04:54 +00:00
Vincent Geddes
ba6e996eba typo in ChangeLog
svn path=/trunk/; revision=1220
2007-03-15 00:07:20 +00:00
Vincent Geddes
f702d1d4bb Update licensing information. After we reorganised the package structure,
* COPYING: Update licensing information. After we reorganised
          the package structure, the LGPL-licensed pixmaps were in a
          put into different directories.

svn path=/trunk/; revision=1219
2007-03-14 23:35:35 +00:00
Laurent Dhima
6d7bc3c8d5 Added sq (Albanian). Added Albanian translation.
* LINGUAS: Added sq (Albanian).
* sq.po: Added Albanian translation.


svn path=/trunk/; revision=1216
2007-03-13 18:25:29 +00:00
Tristan Van Berkom
7b31634063 Fixed broken statement in glade_util_url_show_win32().
* gladeui/glade-utils.c: Fixed broken statement in
	  glade_util_url_show_win32().

	* gladeui/glade-app.c: Fixed names of global vars in
	  win32 code.


svn path=/trunk/; revision=1213
2007-03-13 16:27:22 +00:00
Hendrik Brandt
9a3acb646b Updated German translation.
2007-03-13  Hendrik Brandt  <heb@gnome-de.org>

        * de.po: Updated German translation.


svn path=/trunk/; revision=1211
2007-03-13 15:15:46 +00:00
Gintautas Miliauskas
f46ec11967 Updated Lithuanian translation.
2007-03-13  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Updated Lithuanian translation.


svn path=/trunk/; revision=1209
2007-03-13 01:54:59 +00:00
David Lodge
ef685a443f Updated en_GB translation
svn path=/trunk/; revision=1204
2007-03-12 21:29:50 +00:00
Alexander Shopov
7ee04cfd73 Updated Bulgarian translation by Yavor Doganov <yavor@gnu.org>
2007-03-12  Alexander Shopov  <ash@contact.bg>

	* bg.po: Updated Bulgarian translation by
	Yavor Doganov <yavor@gnu.org>

svn path=/trunk/; revision=1203
2007-03-12 21:18:59 +00:00
Nikos Charonitakis
70e9602193 fixed Greek translation
svn path=/trunk/; revision=1199
2007-03-12 16:01:59 +00:00
Nikos Charonitakis
dcb62be0c4 Added Greek to LINGUAS
svn path=/trunk/; revision=1196
2007-03-12 14:44:08 +00:00
Felix I
6c9c57419b Updated Translation
svn path=/trunk/; revision=1190
2007-03-12 08:08:27 +00:00
Maxim Dziumanenko
6c606222a6 Update Ukrainian translation.
2007-03-12 Maxim Dziumanenko <dziumanenko@gmail.com>

	* Update Ukrainian translation.


svn path=/trunk/; revision=1188
2007-03-12 07:38:04 +00:00
Simos Xenitellis
7415f81b95 Added Greek translation by Eleni Maria Stea
svn path=/trunk/; revision=1186
2007-03-12 06:52:40 +00:00
Kwok-Koon Cheung
70a73c1b75 Update zh_HK and zh_TW translation
svn path=/trunk/; revision=1183
2007-03-12 06:40:19 +00:00
Ilkka Tuohela
7f5cff6422 Updated Finnish translation
svn path=/trunk/; revision=1180
2007-03-12 05:30:25 +00:00
Leonardo Ferreira Fontenelle
19bd09da6c Brazilian Portuguese translation of last-minute string changes.
2007-03-12  Leonardo Ferreira Fontenelle  <leonardof@svn.gnome.org>

	* pt_BR.po: Brazilian Portuguese translation of last-minute string
	changes.

svn path=/trunk/; revision=1178
2007-03-12 05:05:04 +00:00
Tristan Van Berkom
9544e9c830 Fix handling of atk properties specified by the plugin.
* gladeui/glade-property-class.c: Fix handling of atk
	properties specified by the plugin.

	* plugins/gtk/gtk+.xml.in: Specified atk relation properties
	for GtkWidgetClass and also specified the acceleretor property
	for GtkWidgetClass (fixes bug 383121).

	* TODO: Updated 


svn path=/trunk/; revision=1174
2007-03-11 17:40:53 +00:00
Gabor Kelemen
e04b0fbba9 Translation updated.
2007-03-11  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.


svn path=/trunk/; revision=1173
2007-03-11 00:27:05 +00:00
Ilkka Tuohela
9511ea2c53 Updated Finnish translation
svn path=/trunk/; revision=1171
2007-03-10 19:35:10 +00:00
Alexander Shopov
5da321fce4 Added Bulgarian translation by Yavor Doganov <yavor@gnu.org> Added
2007-03-10  Alexander Shopov  <ash@contact.bg>

	* bg/bg.po: Added Bulgarian translation by
	Yavor Doganov <yavor@gnu.org>
	* bg/figures/main-window.png: Added screenshot.
	* Makefile.am: added bg (Bulgarian) to DOC_LINGUAS.

svn path=/trunk/; revision=1169
2007-03-10 13:44:44 +00:00
Alexander Shopov
98c3b25ff2 I forgot to svn add it in last commit.
2007-03-10  Alexander Shopov  <ash@contact.bg>

	* bg.po: I forgot to svn add it in last
	commit.

svn path=/trunk/; revision=1168
2007-03-10 12:50:55 +00:00
Alexander Shopov
c51f9e4c1f Updated Bulgarian translation by Yavor Doganov <yavor@doganov.org> Added
2007-03-10  Alexander Shopov  <ash@contact.bg>

	* bg.po: Updated Bulgarian translation by
	Yavor Doganov <yavor@doganov.org>
	* LINGUAS: Added bg (Bulgarian)

svn path=/trunk/; revision=1166
2007-03-10 12:47:33 +00:00
Žygimantas Beručka
0a2abd2f67 Updated Lithuanian translation.
svn path=/trunk/; revision=1164
2007-03-09 10:47:58 +00:00
Johan Dahlin
959299d07e Updated Swedish translation.
* sv.po: Updated Swedish translation.

svn path=/trunk/; revision=1162
2007-03-09 02:07:52 +00:00
Josep Puigdemont i Casamajó
5054fb819b Updated Catalan translation by Xavier Conde.
svn path=/trunk/; revision=1161
2007-03-08 06:35:08 +00:00
Ani Peter
d83c8d0ba8 Updated malayalam translation
svn path=/trunk/; revision=1159
2007-03-07 11:16:51 +00:00
Ani Peter
d63700db2b Added and updated Malayalam file
svn path=/trunk/; revision=1158
2007-03-07 11:16:01 +00:00
Juan Pablo Ugarte
e108681a59 gladeui/glade-editor.c: use g_type_is_a() to compare types
in glade_editor_property_class_comp() (fixes bug #396436)

svn path=/trunk/; revision=1157
2007-03-06 20:45:04 +00:00
David Lodge
ad796b62ad Updated en_GB translation
svn path=/trunk/; revision=1155
2007-03-06 12:59:22 +00:00
David Lodge
32fa62f896 Updated en_GB translation
svn path=/trunk/; revision=1154
2007-03-06 12:50:22 +00:00
Gintautas Miliauskas
0fe10047b8 Added credit for translator.
2007-03-06  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Added credit for translator.



svn path=/trunk/; revision=1153
2007-03-06 12:40:46 +00:00
Gintautas Miliauskas
0532c0eb33 Updated Lithuanian translation (fixed plural expression)
2007-03-06  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Updated Lithuanian translation (fixed plural expression)


svn path=/trunk/; revision=1152
2007-03-06 12:31:46 +00:00
Gintautas Miliauskas
63c95ac7f7 Added Lithuanian translation. Added lt.
2007-03-06  Gintautas Miliauskas  <gintas@akl.lt>

	* lt.po: Added Lithuanian translation.
	* LINGUAS: Added lt.


svn path=/trunk/; revision=1151
2007-03-06 12:28:26 +00:00
Tristan Van Berkom
b2ec11c40d Define GCC_WARN_FLAGS in configure.ac, if use gcc, put -Wall into CFLAGS,
* Define GCC_WARN_FLAGS in configure.ac, if use gcc, put -Wall into CFLAGS,
	otherwise not. Replace -Wall with @GCC_WARN_FLAGS@ in Makefile.am


svn path=/trunk/; revision=1150
2007-03-05 16:30:29 +00:00
Gabor Kelemen
293f65e9e1 Translation updated.
2007-03-05  Gabor Kelemen  <kelemeng@gnome.hu>

	* hu.po: Translation updated.

svn path=/trunk/; revision=1149
2007-03-05 02:56:17 +00:00
Vincent Geddes
d2eee889f6 Updated screenshot.
* C/figures/main-window.png: Updated screenshot.

svn path=/trunk/; revision=1148
2007-03-04 11:18:56 +00:00
Tristan Van Berkom
6c81970c0a - Added property_set_save_always() functions - Introspect initial values
* gladeui/glade-property.[ch], gladeui/glade-widget.[ch]:
	  - Added property_set_save_always() functions
	  - Introspect initial values of all properties even if they're
	    not composite children (sometimes derived widgets set a property
	    to a non-default value).

	* plugins/gtk+/glade-gtk.c: set "save-always" on the "type-hint"
	  property of GtkDialog. Bug #412848.


svn path=/trunk/; revision=1147
2007-03-03 20:30:25 +00:00
Vincent Geddes
205aa959c1 Added required libraries to libgladepython_la_LIBADD. Bug #412827.
* bindings/python/Makefile.am: Added required libraries to 
      libgladepython_la_LIBADD. Bug #412827.

svn path=/trunk/; revision=1146
2007-03-01 00:00:52 +00:00
Djihed Afifi
049183dd84 Updated Arabic Translation by Djihed Afifi.
svn path=/trunk/; revision=1145
2007-02-28 16:56:35 +00:00
Christian Persch
0d0cd0dd82 Use locale independent integer and float parsing routines. Bug #396433.
2007-02-28  Christian Persch  <chpe@svn.gnome.org>

	* gladeui/glade-property-class.c:
	(glade_property_class_make_string_from_object),
	(glade_property_class_make_string_from_gvalue),
	(glade_property_class_make_gvalue_from_string): Use locale independent
	integer and float parsing routines. Bug #396433.

svn path=/trunk/; revision=1144
2007-02-27 23:38:07 +00:00
Ignacio Casal Quinteiro
85c736f130 Updated Galician Translation.
svn path=/trunk/; revision=1143
2007-02-27 14:48:10 +00:00
Vincent Geddes
64bcefb1a7 Added some widget icons, and modified a few existing ones.
* plugins/gtk+/icons/16x16/recentchooserdialog.png,
	  plugins/gtk+/icons/16x16/printdialog.png,
	  plugins/gtk+/icons/16x16/messagedialog.png,
	  plugins/gtk+/icons/16x16/filechooserdialog.png,
	  plugins/gtk+/icons/22x22/printdialog.png,
	  plugins/gtk+/icons/22x22/recentchooserdialog.png,
	  plugins/gtk+/icons/22x22/messagedialog.png,
	  plugins/gtk+/icons/22x22/filechooserdialog.png:
	  Added some widget icons, and modified a few existing ones.

svn path=/trunk/; revision=1142
2007-02-27 10:19:28 +00:00
Stéphane Raimbault
5d05984615 Fixed French translation.
2007-02-26  Stéphane Raimbault  <stephane.raimbault@gmail.com>

	* fr.po: Fixed French translation.

svn path=/trunk/; revision=1141
2007-02-26 22:19:40 +00:00
Stéphane Raimbault
8b3d8398ec Updated French translation by Claude Paroz and Stéphane Raimbault.
2007-02-26  Stéphane Raimbault  <stephane.raimbault@gmail.com>

	* fr.po: Updated French translation by Claude Paroz and Stéphane
	Raimbault.

svn path=/trunk/; revision=1140
2007-02-26 21:04:36 +00:00
Vincent Geddes
bd5565f13d Added some more icons for the GTK+ plugin.
* Added some more icons for the GTK+ plugin.

svn path=/trunk/; revision=1139
2007-02-26 18:31:32 +00:00
Theppitak Karoonboonyanan
d9c219549f Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1138
2007-02-26 09:07:01 +00:00
Raphael Higino
60b812af77 Updated Brazilian Portuguese translation
svn path=/trunk/; revision=1137
2007-02-25 23:46:05 +00:00
Jovan Naumovski
fa8b0fa51d 2007-02-25 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.
svn path=/trunk/; revision=1136
2007-02-25 21:15:02 +00:00
Jovan Naumovski
0f87c0683f 2007-02-25 Jovan Naumovski <jovanna@svn.gnome.org> *mk.po: Updated Macedonian translation.
svn path=/trunk/; revision=1135
2007-02-25 21:13:28 +00:00
Hendrik Brandt
af12b5eedf Updated German translation.
2007-02-25  Hendrik Brandt  <heb@gnome-de.org>

        * de.po: Updated German translation.


svn path=/trunk/; revision=1134
2007-02-25 20:19:25 +00:00
Ole Laursen
8878c1364a Ported the translation from old Glade, updated a couple of strings while I
2007-02-25  Ole Laursen  <olau@hardworking.dk>

	* da.po: Ported the translation from old Glade, updated a couple
	of strings while I was at it.


svn path=/trunk/; revision=1133
2007-02-25 17:52:13 +00:00
Duarte Loreto
6549d5fa4a Updated Portuguese translation.
2007-02-25  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1132
2007-02-25 16:53:47 +00:00
Kjartan Maraas
fe755b5638 Updated Norwegian bokmål translation.
2007-02-25  Kjartan Maraas  <kmaraas@gnome.org>

	* nb.po: Updated Norwegian bokmål translation.

svn path=/trunk/; revision=1131
2007-02-25 13:56:01 +00:00
Ignacio Casal Quinteiro
51bc26736e Updated Galician Translation
svn path=/trunk/; revision=1130
2007-02-23 14:08:32 +00:00
Nickolay V. Shmyrev
92d2faccf0 Updated Russian translation
svn path=/trunk/; revision=1129
2007-02-23 11:08:21 +00:00
Daniel Nylander
238311cc9e sv.po: Swedish translation updated
svn path=/trunk/; revision=1128
2007-02-22 21:09:58 +00:00
Changwoo Ryu
d93758e28f Updated Korean translation.
2007-02-23  Changwoo Ryu  <cwryu@debian.org>

	* ko.po: Updated Korean translation.

svn path=/trunk/; revision=1127
2007-02-22 19:30:53 +00:00
Juan Pablo Ugarte
b8b257cba2 plugins/gnome/canvas.xml.in, plugins/gnome/gnome.xml.in,
src/glade-project-window.c, gladeui/glade-signal-editor.c:
Marked new translatable strings. Closes bugs #410735 and #410731.

svn path=/trunk/; revision=1126
2007-02-22 15:32:25 +00:00
Nickolay V. Shmyrev
2ab2c983d8 Updated Russian translation
svn path=/trunk/; revision=1125
2007-02-22 10:11:48 +00:00
Juan Pablo Ugarte
7011d3817c make glade_property_new() always return instrospected value
* gladeui/glade-property.[ch]: make glade_property_new() always
  return instrospected value (catalog_default parameter removed)

* gladeui/glade-widget.c: added glade_widget_set_catalog_defaults()
  to set catalog default values in glade_widget_constructor() when
  the widget is created by the user.

* plugins/gtk+/glade-gtk.c: glade_gtk_menu_item_get_children()
  added GtkImageMenuItem support. fix bug #404322

* plugins/gtk+/gtk+.xml.in: GtkMenuItem get-children function
 renamed to glade_gtk_menu_item_get_children

svn path=/trunk/; revision=1124
2007-02-21 23:03:23 +00:00
Nickolay V. Shmyrev
75085f54d0 Updated Russian translation
svn path=/trunk/; revision=1123
2007-02-21 22:57:47 +00:00
Nickolay V. Shmyrev
73da185336 Updated Russian translation.
2007-02-21  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

	* ru.po: Updated Russian translation.


svn path=/trunk/; revision=1122
2007-02-21 17:33:13 +00:00
Ilkka Tuohela
a0040418cc Added Finnish translation
svn path=/trunk/; revision=1121
2007-02-21 16:35:27 +00:00
Takeshi AIHANA
0085a789ec Updated Japanese translation.
2007-02-22  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1120
2007-02-21 15:18:13 +00:00
Stéphane Raimbault
76f781bfb5 Updated French translation by Jonathan Ernst.
2007-02-20  Stéphane Raimbault  <stephane.raimbault@gmail.com>

	* fr.po: Updated French translation by Jonathan Ernst.

svn path=/trunk/; revision=1119
2007-02-20 22:14:04 +00:00
Vincent Geddes
cb6e4f5f23 Remove redundant call to `gtk_window_set_position()' in
* src/glade-utils.c: Remove redundant call to `gtk_window_set_position()'
          in `glade_util_file_dialog_new()'. Fixes #408879.

svn path=/trunk/; revision=1118
2007-02-20 21:08:37 +00:00
Artur Flinta
603ce2104e Updated Polish translation by GNOME PL Team.
2007-02-20  Artur Flinta  <aflinta@cvs.gnome.org>

	* pl.po: Updated Polish translation by GNOME PL Team.


svn path=/trunk/; revision=1117
2007-02-20 21:02:03 +00:00
Nguyen Thai Ngoc Duy
60dff0e2cd updated vi.po
svn path=/trunk/; revision=1116
2007-02-19 08:52:21 +00:00
Vincent Geddes
30d01fc96e credit Andreas Nilsson for new icon
svn path=/trunk/; revision=1115
2007-02-18 23:09:53 +00:00
Daniel Nylander
a7ebbef3a9 sv.po: Swedish translation updated
svn path=/trunk/; revision=1114
2007-02-18 19:53:03 +00:00
Vincent Geddes
b712f9a705 credit Nickolay V. Shmyrev for fixing #408874
svn path=/trunk/; revision=1113
2007-02-17 23:50:16 +00:00
Vincent Geddes
72bfe5b7ea Remove duplicate labels for stock items.
* src/glade-project-window.c: Remove duplicate labels for stock items.

svn path=/trunk/; revision=1111
2007-02-17 21:00:47 +00:00
Christian Persch
03c8b253f5 Set the required gdu version in autogen too. Bug #392411.
2007-02-17  Christian Persch  <chpe@svn.gnome.org>

	* autogen.sh: Set the required gdu version in autogen too. Bug
	#392411.

svn path=/trunk/; revision=1110
2007-02-17 13:48:56 +00:00
David Lodge
ba032aaf5c Updated (British) English translation
svn path=/trunk/; revision=1108
2007-02-16 23:40:25 +00:00
Djihed Afifi
5d506d1e80 Updated Arabic Translation.
svn path=/trunk/; revision=1107
2007-02-16 15:47:03 +00:00
Juan Pablo Ugarte
e19eaa029d added glade_widget_property_original_default()
* gladeui/glade-widget.[ch]: added glade_widget_property_original_default()

* gladeui/glade-property.[ch]: added glade_property_original_default()
  and glade_property_original_reset()

* plugins/gtk+/glade-gtk.c: fixed bug 397043
  "Not able to set label and stock separately in GtkImageMenuItems"

* plugins/gtk+/gtk+.xml.in: added generic-name to GtkMenuShell.

svn path=/trunk/; revision=1106
2007-02-15 21:33:22 +00:00
Tristan Van Berkom
cdcad13568 Fixed sources to build with gcc 2.95 (bug 406504)
* Fixed sources to build with gcc 2.95 (bug 406504)


svn path=/trunk/; revision=1105
2007-02-15 20:05:31 +00:00
Duarte Loreto
e7634f6928 Updated Portuguese translation.
2007-02-15  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1104
2007-02-15 01:38:49 +00:00
Tristan Van Berkom
b024946da4 rolling 3.1.5
svn path=/trunk/; revision=1102
2007-02-13 22:37:18 +00:00
Vincent Geddes
6bafa1216c Added python.m4
svn path=/trunk/; revision=1101
2007-02-13 20:26:49 +00:00
Vincent Geddes
b5fd382be5 New file.
* m4/python.m4: New file.
	
	* configure.ac, bindings/Makefile.am, bindings/python/Makefile.am,
	  bindings/python/glade-python.c: Improved configure check for Python.

svn path=/trunk/; revision=1100
2007-02-13 20:25:55 +00:00
Vincent Geddes
00eb79ad1c Changed description in the About dialog.
* src/glade-project-window.c: Changed description in the About
	  dialog.

svn path=/trunk/; revision=1099
2007-02-13 19:28:38 +00:00
Christian Persch
c69ec55d4c Call GNOME_DOC_INIT unconditionally. Bug #392411.
2007-02-13  Christian Persch  <chpe@svn.gnome.org>

	* Makefile.am:
	* configure.ac: Call GNOME_DOC_INIT unconditionally. Bug #392411.

svn path=/trunk/; revision=1098
2007-02-13 15:43:22 +00:00
Ignacio Casal Quinteiro
3a638d60aa Updated Galician Translation
svn path=/trunk/; revision=1097
2007-02-12 09:21:27 +00:00
Jordi Mas
6fa00e444f Updated Catalan translation by Xavier Conde Rueda <xavi.conde@gmail.com>.
2007-02-11  Jordi Mas <jmas@softcatala.org>

	* ca.po: Updated Catalan translation by
	Xavier Conde Rueda <xavi.conde@gmail.com>.

	* LINGUAS: Added Catalan language


svn path=/trunk/; revision=1096
2007-02-11 17:55:39 +00:00
Theppitak Karoonboonyanan
94a378a491 Updated Thai translation.
* th.po: Updated Thai translation.


svn path=/trunk/; revision=1095
2007-02-11 16:33:49 +00:00
Djihed Afifi
82c07ab513 Updated Arabic Translation.
svn path=/trunk/; revision=1094
2007-02-11 12:45:59 +00:00
David Lodge
89ad16cb1c Update (British) English translation
svn path=/trunk/; revision=1093
2007-02-11 09:58:20 +00:00
Theppitak Karoonboonyanan
7e662b0c61 Added Thai translation by Supranee Thirawatthanasuk <supranee@opentle.org>
* th.po: Added Thai translation by
	Supranee Thirawatthanasuk <supranee@opentle.org> and me.
	* LINGUAS: Added th.


svn path=/trunk/; revision=1092
2007-02-11 08:30:00 +00:00
Stéphane Raimbault
3ba60c5ed7 Added French translation by Jonathan Ernst, Claude Paroz and Stéphane
2007-02-10  Stéphane Raimbault  <stephane.raimbault@gmail.com>

	* fr.po: Added French translation by Jonathan Ernst, Claude
	Paroz and Stéphane Raimbault.

svn path=/trunk/; revision=1091
2007-02-10 17:16:28 +00:00
Vincent Geddes
f81607b327 - Added a private initialisation function `glade_init_check()' for
* gladeui/glade.h, gladeui/glade-app.[ch]:
          - Added a private initialisation function `glade_init_check()' for
            libgladeui.
          - Removed the 'bad' public variables that defined various installation
            paths. These paths can now be obtained from static class methods on
            GladeApp (static as in the Java and C++ sense).        
        
        * src/main.c, src/glade-project-window.c, gladeui/glade-catalog.c,
          gladeui/glade-binding.c, gladeui/glade-cursor.c,
          gladeui/glade-palette.c gladeui/glade-widget-adaptor.c, 
          gladeui/glade-utils.c, bindings/python/glade-python.c: Use the new
          GladeApp methods for obtaining installation paths.
          
        * gladeui/glade-palette-box.[ch]: Use G_DEFINE_TYPE() and
          g_type_class_add_private().

svn path=/trunk/; revision=1090
2007-02-10 15:36:06 +00:00
Duarte Loreto
48d861d1ef Updated Portuguese translation.
2007-02-10  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1088
2007-02-10 13:48:43 +00:00
Vincent Geddes
35c7f9286d - Add summary of the application's functionality in the '--help' output
* src/main.c:
	  - Add summary of the application's functionality in the '--help'
	    output (with g_option_context_set_summary()).
	  - Set translation domain for the main option group.          

        * docs/catalogintro.sgml: pkg-config file is now 'gladeui-1.0'.
        
        * data/glade-3.desktop.in.in: Added 'GUIDesigner' to 'Categories'.

svn path=/trunk/; revision=1087
2007-02-09 23:13:23 +00:00
Juan Pablo Ugarte
a545abf96d fixed bug in glade_util_have_devhelp() (devhelp 0.13 returns "Devhelp
* gladeui/glade-utils.c: fixed bug in glade_util_have_devhelp()
  (devhelp 0.13 returns "Devhelp 0.13" the 'h' is not capital anymore)

* gladeui/glade-binding.[ch], src/glade-project-window.c,
  bindings/python/glade-python.c: console striped out.

* bindings/python/glade-python-gwa.c: regenerated with pygtk-codegen-2.0


svn path=/trunk/; revision=1086
2007-02-09 20:23:38 +00:00
Djihed Afifi
e69c828569 Updated Arabic Translation.
svn path=/trunk/; revision=1085
2007-02-09 17:42:42 +00:00
Djihed Afifi
7e36e23ab2 Updated Arabic Translation.
svn path=/trunk/; revision=1084
2007-02-08 20:24:52 +00:00
David Lodge
528949f451 Updated (British) English translation
svn path=/trunk/; revision=1083
2007-02-08 20:15:16 +00:00
Duarte Loreto
58218634cf Updated Portuguese translation.
2007-02-08  Duarte Loreto <happyguy_pt@hotmail.com>

	* pt.po: Updated Portuguese translation.

svn path=/trunk/; revision=1082
2007-02-08 17:06:50 +00:00
Vincent Geddes
e3e54e4c49 update ChangeLog
svn path=/trunk/; revision=1081
2007-02-08 01:09:47 +00:00
Vincent Geddes
5b14b631d5 Replaced C++ style comments with the more portable ISO C syntax.
* gladeui/*.[ch]: Replaced C++ style comments with the more portable ISO C syntax.
          
        * gladeui/glade-app.[ch]: Use the G_DEFINE_TYPE() and
          g_type_class_add_private() idioms for registering the class.
          
        * README.cvs: Renamed to 'README.svn'.
        
        * plugins/gtk+/icons/16x16/Makefile.am, plugins/gtk+/icons/22x22/Makefile.am:
          Added some icons.
          
        * src/glade-project-window.c: Set the label for the Selector toolbutton.

svn path=/trunk/; revision=1080
2007-02-08 01:05:36 +00:00
Tristan Van Berkom
d7bb186f2b Removed $(top_srcdir) from CFLAGS.
* bindings/python/Makefile.am: Removed $(top_srcdir) from CFLAGS.

	* bindings/python/glade-python.c: Fixed use of a variable 'stdout',
	  called it '__stdout' instead.

	* bindings/python/glade-python-gwa.c, bindings/python/glade-python-gwa.override:
	  Added #define NO_IMPORT_PYGOBJECT


svn path=/trunk/; revision=1079
2007-02-07 15:53:42 +00:00
Takeshi AIHANA
426b5048fa Updated Japanese translation.
2007-02-07  Takeshi AIHANA <takeshi.aihana@gmail.com>

        * ja.po: Updated Japanese translation.

svn path=/trunk/; revision=1078
2007-02-07 07:10:20 +00:00
Vincent Geddes
a81492562f Add ChangeLog entry
svn path=/trunk/; revision=1077
2007-02-06 21:45:40 +00:00
Vincent Geddes
598264a1f2 Added new application icon, in sizes 16x16, 22x22, 32x32, 48x48, and
* data/icons/hicolor/: Added new application icon, in sizes 16x16,
	  22x22, 32x32, 48x48, and scalable. 

	* data/icons/glade-3.png: Removed.

svn path=/trunk/; revision=1075
2007-02-06 21:32:21 +00:00
Tristan Van Berkom
0bb1111aa8 updated the todo
svn path=/trunk/; revision=1074
2007-02-06 18:41:05 +00:00
Tristan Van Berkom
2b135ea8ed Now translate "Unsaved %d" for unsaved project names.
* src/glade-project.c: Now translate "Unsaved %d" for unsaved project
	  names.


svn path=/trunk/; revision=1073
2007-02-06 16:35:44 +00:00
Tristan Van Berkom
e3873059a5 Fixed domain 'glade-3' -> 'glade3' (bug 404917)
* plugins/gtk+/gtk+.xml.in, plugins/gnome/gnome.xml.in, 
	  plugins/gnome/canvas.xml.in, plugins/gnome/bonobo.xml.in:
	  Fixed domain 'glade-3' -> 'glade3' (bug 404917)

	* src/glade-project-window.c: Fixed translation of 'comments' and
	  'liscence' properties of the about dialog (bug 404917).


svn path=/trunk/; revision=1072
2007-02-06 16:03:14 +00:00
Tristan Van Berkom
d33826b60a changed glade_eprop_text_show_i18n_dialog() to call a command to change
* gladeui/glade-editor-property.c: changed glade_eprop_text_show_i18n_dialog()
	  to call a command to change the i18n metadata on the label property
	  instead of changing it directly.  This allows the change to be
	  un-/re-done (bug 352454).

	* gladeui/glade-command.[ch]: added the glade_command_set_i18n command.


svn path=/trunk/; revision=1071
2007-02-06 15:08:20 +00:00
Tristan Van Berkom
e07036e534 Add ellipsis to the label of the "Open" action.
* src/glade-project-window.c: Add ellipsis to the label of the "Open"
	  action.


svn path=/trunk/; revision=1070
2007-02-05 18:52:32 +00:00
Juan Pablo Ugarte
d2c2238c6e Fixed typo (bug 404324
* gladeui/glade-property-class.c, plugins/gtk+/gtk+.xml.in:
  Fixed typo (bug 404324

svn path=/trunk/; revision=1069
2007-02-05 13:54:39 +00:00
Amanpreet Singh Alam
86e24b151d Adding Punjabi translation by AS Alam
svn path=/trunk/; revision=1068
2007-02-04 02:43:43 +00:00
Juan Pablo Ugarte
8cb9023d45 fixed bug present in 64bit archs changed G_TYPE_UINT with G_TYPE_GTYPE in
* gladeui/glade-base-editor.c: fixed bug present in 64bit archs
  changed G_TYPE_UINT with G_TYPE_GTYPE in glade_base_editor_init()

svn path=/trunk/; revision=1067
2007-02-02 21:44:56 +00:00
Tristan Van Berkom
13cd1b35ac Changed the hierarchy changed signal for a "widget-event" signal.
* gladeui/glade-app.[ch]: Changed the hierarchy changed signal
	  for a "widget-event" signal.

	* gladeui/glade-design-layout.c: Catch the "widget-event" signal
	  and propagate the event from there, dont raise the event_window anymore.

	* gladeui/glade-widget.c: 
	  - Removed "enter-notify-event"
	  - Catch "event" signal on GtkWidget instances and forward
	    the event to GladeApp
	  - When handling selection and SHIFT is down, dont stop emmission
	    (better handling of drag/resize)

	* gladeui/glade-fixed.c: Only drag/resize with shift down
	
	* gladeui/glade-marshallers.list: added new marshaller


svn path=/trunk/; revision=1066
2007-02-01 22:31:16 +00:00
Tristan Van Berkom
086b27dc3b o Removed search algorythm for child widgets, removed
* gladeui/glade-widget.[ch]: 
	  o Removed search algorythm for child widgets, removed glade_widget_event_widget (), 
	    removed popup-menu signal handler, removed call to gtk_window_set_decorated() 
	    on toplevel project widgets, removed widget->setup_events(), removed hide_on_delete()
	  o Added glade_widget_event() to feed events directly to widgets from the design layout.
	  o Call glade_app_hierarchy_changed() upon add/remove/replace operations

	* gladeui/glade-utils.c: Removed glade_utils_deep_fixed_event() and the
	  hacky widget grab that went with it.

	* gladeui/glade-app.[ch]: Added glade_app_hierarchy_changed() and added
	  "hierarchy-changed" signal.
	
	* gladeui/glade-design-layout.c: 
	  o Make sure event window is always on top by trapping GladeApp's "hierarchy-changed"
	    signal
	  o Feed events directly to the proper GladeWidget, if its not handled then pass it
	    on to the underlying widgets (using gtk_widget_event() directly).

	* gladeui/glade-cursor.c: Removed the recursive cursor setting routine.

	* gladeui/glade-fixed.c: Simplified immensely by removing redundant code,
	  now there is only one GladeWidget to deal with, no searching and gropeing
	  for the appropriate widget to operate on.


svn path=/trunk/; revision=1065
2007-01-31 07:12:33 +00:00
Daniel Nylander
c15f54b24e sv.po: Swedish translation updated
svn path=/trunk/; revision=1064
2007-01-30 21:21:47 +00:00
Ignacio Casal Quinteiro
0d7ca93920 Updated Galician Translation
svn path=/trunk/; revision=1063
2007-01-30 18:57:40 +00:00
Tristan Van Berkom
c575cc2204 updating todo list
svn path=/trunk/; revision=1062
2007-01-29 20:52:46 +00:00
Tristan Van Berkom
6aa59c7bca Now works like a pure widget, uses gtk_widget_size_allocate() to resize
* gladeui/glade-design-layout.[ch]: 
	  Now works like a pure widget, uses gtk_widget_size_allocate() to resize 
	  children and gtk_widget_queue_resize() to resize itself (removed default
	  size control for now).

	* gladeui/glade-xml-utils.[ch], gladeui/glade-widget.[ch], 
	  gladeui/glade-widget-adaptor.[ch], plugins/gtk/gtk+.xml.in,
	  plugins/gtk/glade-gtk.c, plugins/gnome/glade-gnome.c: 
	  - Added glade_xml_get_property_int()
	  - Added default-width/height to catalog/GWA
	  - Added toplevel-width/height properties to GladeWidget
	  - Use default-width/height in catalogs instead of gtk_window_set_default_size()
	    in plugin code.


svn path=/trunk/; revision=1061
2007-01-28 20:01:45 +00:00
Tristan Van Berkom
5d9236611b updating TODO
svn path=/trunk/; revision=1060
2007-01-28 07:04:59 +00:00
Tristan Van Berkom
aa0ee5e581 Re-Implemented hack for accelerators to work cooperatively with text
* src/glade-project-window.c: Re-Implemented hack for accelerators to
	  work cooperatively with text entries in the editor. (fixes bug 396447)


svn path=/trunk/; revision=1059
2007-01-28 07:00:50 +00:00
Tristan Van Berkom
593dbc262a Made 'pasting' an explicit arg of glade_command_add(), this fixes the
* gladeui/glade-command.c: Made 'pasting' an explicit arg of glade_command_add(),
	  this fixes the broken clipboard selection search (since we now use dupped 
	  widgets only in pastes), now packing defaults and packing property tranfers
	  on paste both work.

	* gladeui/glade-widget.c: Removed redundant code.


svn path=/trunk/; revision=1058
2007-01-28 06:06:10 +00:00
Tristan Van Berkom
1934d006ed Set project properly in glade_command_remove() (this fixes undo/redo of
* gladeui/glade-command.c: Set project properly in glade_command_remove()
	  (this fixes undo/redo of add/remove commands in the menueditor... along
	  with the following fixes).

	* gladeui/glade-widget-adaptor.[ch], gladeui/glade-xml-utils.h: 
	  Added GWA_USE_PLACEHOLDERS(), a boolean on the GWA that is loaded 
	  from the catalog.

	* gladeui/glade-utils.[ch]: Removed glade_util_[any_]container_relation.

	* gladeui/glade-widget.[ch]: Added glade_widget_placeholder_relation

	* gladeui/glade-app.c, gladeui/glade-fixed.c: Adjusted callers for new
	  glade-widget api.

	* gladeui/glade-fixed.[ch]: Removed the "use-placehodlers" property
	  since it is now redundant with the new GWA_USE_PLACEHOLDERS (this
	  simplifies things a little).

	* gladeui/glade-binding.c: Fixed obnoxious startup errors (bug 399178),
	  glade_binding_get_all(), use g_list_prepend()/g_list_reverse() instead
	  of g_list_append() to build a list.

	* gladeui/glade-base-editor.c: Use the right adaptor for gwa_get_children
	  in glade_base_editor_change_type () (was using adaptor for the destination
	  type).
	
	* plugins/gtk/glade-gtk.c: Remove use of "use-placeholders" property
	  on GladeFixed objects.

	* plugins/gtk/gtk+.xml.in: Setup the "use-placeholders" attribute properly
	  (TRUE on GtkContainer, FALSE on GtkMenuShell, GtkMenuItem, GtkToolBar,
	  GtkFixed, GtkLayout).


svn path=/trunk/; revision=1057
2007-01-27 20:15:57 +00:00
Hendrik Richter
cbf167ca8f Added German translation.
svn path=/trunk/; revision=1056
2007-01-26 09:48:40 +00:00
Christian Persch
1b3a82de4d Correct DOC_LINGUAS.
2007-01-25  Christian Persch  <chpe@svn.gnome.org>

	* help/Makefile.am: Correct DOC_LINGUAS.

svn path=/trunk/; revision=1055
2007-01-25 20:52:20 +00:00
Tristan Van Berkom
a769fa158c fixed conditionally building gnome & python.
* Makefile.am, configure.ac, plugins/Makefile.am, bindings/Makefile.am:
	  fixed conditionally building gnome & python.

	* data/libgladeui-1.0.pc.in: Renamed to gladeui-1.0.pc.in.
	  Updated for change in location of header files.

	* gladeui/glade.h, gladeui/glade-xml-utils.c: Cleaned up 'glade.h'.     
	  - Moved GLADE_TAG_* defines to glade-xml-utils.h.
	  - Nuked GLADE_GENERIC_BORDER_WIDTH.

	* gladeui/*.h, plugins/gtk+/glade-gtk.[ch],
	  plugins/gnome/glade-gnome.ch, bindings/python/*.[ch]:
	  Changed header files location for libgladeui. 	


svn path=/trunk/; revision=1054
2007-01-25 19:29:08 +00:00
Tristan Van Berkom
3c5eb7fa33 Change window title in line with HIG.
* src/glade-project-window.c: Change window title in line with HIG.


svn path=/trunk/; revision=1053
2007-01-25 18:51:56 +00:00
Tristan Van Berkom
5d19da185b ignore' properties for the directory tree. Delete all '.cvsignore' files.
* set 'svn:ignore' properties for the directory tree. 
	  Delete all '.cvsignore' files.


svn path=/trunk/; revision=1052
2007-01-25 18:49:39 +00:00
David Lodge
9f94480d13 Added (British) English doc translation
svn path=/trunk/; revision=1051
2007-01-23 21:54:08 +00:00
Tristan Van Berkom
eb33dd583d Reorganised package structure, moved a lot of files and directories.
* Reorganised package structure, moved a lot of files
	  and directories. Modified the Makefile.am in most directories.

	* po/POTFILES.in, po/POTFILES.skip: Update for reorganisation.

	* configure.ac: Add files to AC_CONFIG_FILES. Change AC_CONFIG_SRCDIR.


svn path=/trunk/; revision=1050
2007-01-23 19:49:04 +00:00
David Lodge
7b9410c2c8 Updated (British) English translation
svn path=/trunk/; revision=1049
2007-01-23 19:30:04 +00:00
Tristan Van Berkom
6273d283c0 Fix for bug 345603:
* src/glade-command.c, src/glade-command.h:
	  - Redesigned the implementation of the following commands:
	    - glade_command_delete
	    - glade_command_create
	    - glade_command_cut
	    - glade_command_copy
	    - glade_command_paste
            These are now command aliases.
	    - Added a new drag-and-drop command, glade_command_dnd, to replace former
	      glade_command_cut/glade_command_paste command pairs.
	    - Added the following set of canonical commands which comprise the implementation
	      of the command aliases:
	    - glade_command_add
	    - glade_command_remove
	    - glade_command_clipboard_add
	    - glade_command_clipboard_remove

	* src/glade-gtk.c:
	  Replaced the cut/paste command pair with the dnd command in 
	  glade_gtk_menu_shell_move_child().
	
	* src/glade-base-editor.c:
	  Replaced the cut/paste command pair with the dnd command in 
	  glade_base_editor_change_type() and glade_base_editor_move_child(). 


svn path=/trunk/; revision=1048
2007-01-22 20:42:10 +00:00
Tristan Van Berkom
511aa4e3c8 updated hacking file for svn.
svn path=/trunk/; revision=1047
2007-01-22 20:08:13 +00:00
Tristan Van Berkom
a13faa06d6 modify translator-credits prop for About dialog.
* src/glade-project-window.c: modify translator-credits prop
	  for About dialog.


svn path=/trunk/; revision=1046
2007-01-21 16:38:25 +00:00
Tristan Van Berkom
acd4246964 use xmlSubstituteEntitiesDefault() when loading/saving glade files in
* src/glade-parser.c: use xmlSubstituteEntitiesDefault() when
	  loading/saving glade files in order to maintain '&' charachters
	  in labels (fixes bug 396311).
o

svn path=/trunk/; revision=1045
2007-01-21 06:18:01 +00:00
Tristan Van Berkom
6cc7d36903 renamed configure.in -> configure.ac
2007-01-17  Tristan Van Berkom <tvb@gnome.org>

	* autogen.sh: renamed configure.in -> configure.ac

2007-01-07  Vincent Geddes <vincent.geddes@gmail.com>

        * configure.in: Quote some macro arguments. Use AS_HELP_STRING
	  to format the messages for AC_ARG_ENABLE macros. Other cleanups
	  and updates.

	* src/glade-editor-property.c: Modified some dialogs for HIG
	  compliance. Mostly about adjusting border widths and spacings,
	  and setting mnemonics. Title for "Edit Text Property" dialog
	  is now a simpler "Edit Text". Title for "Select Flags" dialog
	  is also now a more descriptive "Select Events".

	* src/glade-project-window.c: Set URL for online help to
	  "http://glade.gnome.org/manual/index.html".


svn path=/trunk/; revision=1044
2007-01-18 01:54:46 +00:00
Christian Persch
3c4caead21 Include config.h.
2007-01-17  Christian Persch  <chpe@svn.gnome.org>

	* src/glade-accumulators.c:
	* src/glade-base-editor.c:
	* src/glade-binding.c:
	* src/glade-clipboard.c:
	* src/glade-cursor.c:
	* src/glade-debug.c:
	* src/glade-design-layout.c:
	* src/glade-design-view.c:
	* src/glade-gnome.c:
	* src/glade-id-allocator.c:
	* src/glade-palette-box.c:
	* src/glade-palette-expander.c:
	* src/glade-palette-item.c:
	* src/glade-parameter.c:
	* src/glade-placeholder.c:
	* src/glade-signal.c:
	* src/glade-xml-utils.c: Include config.h.

        * src/glade-app.c: (glade_app_init): Bind the gettext domain. Bug
	#397429.

svn path=/trunk/; revision=1043
2007-01-17 20:40:41 +00:00
Tristan Van Berkom
898a4ec20b removed an obsolete file
svn path=/trunk/; revision=1042
2007-01-17 20:22:00 +00:00
Djihed Afifi
5565259291 Updated Arabic Translation.
svn path=/trunk/; revision=1041
2007-01-13 06:05:23 +00:00
Christian Persch
27f29606e0 Remove +x from po files
svn path=/trunk/; revision=1040
2007-01-08 01:43:45 +00:00
Gabor Kelemen
3336630e86 Hungarian translation added. Add hu.
2007-01-08  Gabor Kelemen  <kelemeng@gnome.hu> 

	* hu.po: Hungarian translation added.
	* LINGUAS: Add hu.

svn path=/trunk/; revision=1039
2007-01-08 01:37:15 +00:00
Ignacio Casal Quinteiro
a1befa9065 Updated Galician Translation
svn path=/trunk/; revision=1038
2007-01-07 23:28:38 +00:00
Clytie Siddall
555419cbc3 vi.po: Updated Vietnamese translation.
svn path=/trunk/; revision=1035
2007-01-05 04:05:02 +00:00
Clytie Siddall
82fa538d59 vi.po: Updated Vietnamese translation.
svn path=/trunk/; revision=1034
2007-01-05 04:04:40 +00:00
Christian Persch
3754dc78ec No need to check for a AC_PROG_CXX.
2007-01-03  Christian Persch  <chpe@svn.gnome.org>

	* configure.in: No need to check for a AC_PROG_CXX.

svn path=/trunk/; revision=1033
2007-01-03 18:46:33 +00:00
Christian Persch
5ea4f37648 Add version to bugzilla info in the .desktop file. Bug #392395.
2007-01-03  Christian Persch  <chpe@svn.gnome.org>

	* Makefile.am:
	* configure.in:
	* glade-3.desktop.in.in:
	* po/POTFILES.in:
	* po/POTFILES.skip:
	Add version to bugzilla info in the .desktop file. Bug #392395.

svn path=/trunk/; revision=1032
2007-01-03 18:39:43 +00:00
Christian Persch
e5cfac5072 Use the correct way to define paths, using _CPPFLAGS in Makefile.am. Fixes
2007-01-03  Christian Persch  <chpe@svn.gnome.org>

	* configure.in:
	* glade-3.desktop.in:
	* pixmaps/16x16/Makefile.am:
	* pixmaps/22x22/Makefile.am:
	* pixmaps/Makefile.am:
	* src/Makefile.am:
	* src/glade-app.c:
	* src/glade-binding.c:
	* src/glade-paths.sh.in:
	* src/glade-project-window.c:
	* src/libgladeui-1.0.pc.in:
	* widgets/Makefile.am:
	Use the correct way to define paths, using _CPPFLAGS in Makefile.am.
	Fixes build problem with autoconf 2.60 wrt. datarootdir. Bug #392379.

svn path=/trunk/; revision=1031
2007-01-03 18:33:32 +00:00
Tristan Van Berkom
69075b5e2f Updating the TODO
svn path=/trunk/; revision=1030
2007-01-03 15:26:49 +00:00
David Lodge
5d9752a931 Updated English (British) translation
svn path=/trunk/; revision=1029
2007-01-02 06:34:10 +00:00
Daniel Nylander
f1626507e0 Added Swedish translation. Added screenshot.
2006-12-28  Daniel Nylander <po@danielnylander.se>

	* sv/sv.po: Added Swedish translation.
	* sv/figures/main-window.png: Added screenshot.
2006-12-28 11:59:10 +00:00
Daniel Nylander
250a8a1c26 Updated Swedish translation.
2006-12-28  Daniel Nylander <po@danielnylander.se>

	* sv.po: Updated Swedish translation.
2006-12-28 11:57:34 +00:00
Kjartan Maraas
32d849ed57 Add a missing file. Updated Norwegian bokmål translation.
2006-12-27  Kjartan Maraas  <kmaraas@gnome.org>

	* POTFILES.in: Add a missing file.
	* nb.po: Updated Norwegian bokmål translation.
2006-12-27 17:29:25 +00:00
Tristan Van Berkom
ab24f5cce2 Rolling 3.1.4
* configure.in, NEWS: Rolling 3.1.4
2006-12-18 20:38:27 +00:00
Tristan Van Berkom
43f12233a6 Fixed loading of "special-child-type" from the catalog, fixes bugs with
* src/glade-widget-adaptor.c: Fixed loading of "special-child-type" from
	  the catalog, fixes bugs with GtkFrame, GtkNotebook (bug 373251), GtkExpander etc.

	* src/gtk+.xml.in: Disable the "label" property of expanders, expander labels are
	  identified by thier internal label widget, when setting the "label" property the
	  widget gets lost from the hierarchy, so thats fixed (bug 386352).
2006-12-18 20:30:55 +00:00
Tristan Van Berkom
1752371dc9 updated news 2006-12-18 15:22:47 +00:00
Tristan Van Berkom
ec5a9488a4 Rolling 3.1.3
* configure.in, NEWS: Rolling 3.1.3

	* Changed a bunch of sources to remove forward declarations of enum types
	  since they are not supported by c++ compilers.
2006-12-18 15:17:18 +00:00
Tristan Van Berkom
ccfe31edf1 removed unused variable. 2006-12-17 18:26:15 +00:00
Tristan Van Berkom
4404fa8402 glade_widget_sync_custom_properties() dont sync construct_only props, does
* src/glade-widget.c: glade_widget_sync_custom_properties()
	  dont sync construct_only props, does bad things inside constructors.
	  (really need to fix this bad concept of sync'ing props).

	* widgets/canvas.xml.in: ignore some virtual properties on the icon list.
2006-12-17 18:23:30 +00:00
Tristan Van Berkom
951aad043b Fixed a bug in set_property() (setting "window-placement-set" could result
* gtk/gtkscrolledwindow.c: Fixed a bug in set_property()
	(setting "window-placement-set" could result in a crash because
	of boolean/enum mixup)
2006-12-16 20:32:51 +00:00
Tristan Van Berkom
1558ef97f9 Fixed a crash due to gtk_message_dialog_set_image "image" 2.10 property
* src/glade-gtk.c, widgets/gtk+.xml.in:
	  Fixed a crash due to gtk_message_dialog_set_image "image" 2.10
	  property crashing on NULL images (bug 386563).
2006-12-16 18:56:59 +00:00
Tristan Van Berkom
91fc1bbc6b updating TODO 2006-12-13 19:52:40 +00:00
Tristan Van Berkom
1bca8496b9 updating TODO. 2006-12-13 19:13:32 +00:00
Tristan Van Berkom
cc4d059b0d new function glade_util_get_file_mtime().
* src/glade-utils.[ch]: new function glade_util_get_file_mtime().

	* src/glade-project-window.c: Test project files for external
	  changes in gpw_save(). Adjust border width of main window contents.

	* src/glade-project.c: stat project file when opening or saving.
2006-12-13 19:13:04 +00:00
Tristan Van Berkom
c1fabcc84d src/glade-base-editor.c src/glade-clipboard-view.c src/glade-command.c
* src/glade-base-editor.c src/glade-clipboard-view.c src/glade-command.c
	src/glade-command.h src/glade-design-layout.c src/glade-design-view.c
	src/glade-editor-property.c src/glade-editor-property.h
	src/glade-editor.c src/glade-gnome.c src/glade-gtk.c
	src/glade-palette-box.c src/glade-palette-item.c src/glade-palette.c
	src/glade-project-view.c src/glade-project-window.c
	src/glade-project.c src/glade-property-class.c
	src/glade-property-class.h src/glade-property.c src/glade-property.h
	src/glade-python-gwa.c src/glade-python.c src/glade-utils.c
	src/glade-utils.h src/glade-widget-adaptor.c
	src/glade-widget-adaptor.h src/glade-widget.c src/glade-widget.h

	Renamed reserved C++ keywords "new", "class", "virtual", "template" and "this"
	as a prerequisite for adding gtkmm bindings
2006-12-12 22:13:56 +00:00
Tristan Van Berkom
2af1867826 updated TODO 2006-12-12 19:29:38 +00:00
Tristan Van Berkom
9d4969a06a Merged changeset 'GLADE3_3_0_BRANCHPOINT_1' --> 'GLADE3_3_0_MERGEPOINT_2'
* configure.in, NEWS: Merged changeset 'GLADE3_3_0_BRANCHPOINT_1' --> 'GLADE3_3_0_MERGEPOINT_2'
	  into HEAD
2006-12-12 17:48:38 +00:00
Tristan Van Berkom
972cf70422 The pkg-config entry is now `libgladeui-1.0.pc'.
* configure.in, src/Makefile.am, src/.cvsignore: The pkg-config
	  entry is now `libgladeui-1.0.pc'.

	* doc/catalogintro.sgml: Update for change in pkg-config entry.
2006-12-12 15:47:30 +00:00
Tristan Van Berkom
3701418fdf doc/widgetclasses.sgml - changed the description of the "name" property of
* doc/widgetclasses.sgml
	  - changed the description of the "name" property of the
	    glade-widget-class tag.

	* src/glade-utils.[ch]
	  - changed glade_util_get_type_from_name() to being able to use the
	    name arg directly as the "get type" function.

	* src/glade-widget-adaptor.c
	  - changed glade_widget_adaptor_from_catalog() to now check for a
	    "get-type-function" property.  If one is found, it is used to get
	    the widget type instead of "name" property.

	* src/glade.h: added the "get-type-function" property definition.
2006-12-08 20:14:04 +00:00
Tristan Van Berkom
b613089232 updating the TODO 2006-12-08 19:46:50 +00:00
Tristan Van Berkom
6cf4c5acc3 New files.
* help/ChangeLog, help/Makefile.am, help/glade.omf.in,
	  help/.cvsignore, help/C/glade.xml, help/C/legal.xml,
	  help/C/figures/main-window.png, m4/.cvsignore: New files.

	* configure.in:
	  - Check for gnome-doc-utils and scrollkeeper
	  - Use AC_CONFIG_FILES instead of AC_OUTPUT with args.
	    AC_OUTPUT with args is deprecated.
	  - set macro dir with AC_CONFIG_MACRO_DIR.

	* Makefile.am:
	  - Update for gnome-doc-utils integration.
	  - Conditionally set SUBDIRS if docs building is enabled.
	  - Set `ACLOCAL_AMFLAGS = -I m4' as recommended in
	    Autoconf manual.

	* .cvsignore: Add `gnome-doc-utils.make'.

	* src/glade-utils.[ch]: New function `glade_util_url_show'.

	* src/glade-project-window.c:
	  - Add functionality for launching the GNOME user manual.
	  - Set URL hook for GtkAboutDialog.
	  - If devhelp is not available, the online developer reference
	    is displayed instead.

	* src/glade-paths.sh.in: New variable GLADE_GNOMEHELPDIR.

	* glade-3.desktop.in: Add "X-GNOME-DocPath" entry.
	  Add "GTK" to "Categories".
2006-12-07 17:44:16 +00:00
Tristan Van Berkom
75c655e3c1 fixing todo 2006-12-06 20:58:00 +00:00
Juan Pablo Ugarte
c7feacceda added AC_CHECK_HEADERS(Python.h)
* configure.in: added AC_CHECK_HEADERS(Python.h)

* src/glade-binding.[ch]: scripts indexed by GType name instead of GType
  this way we do not need glade_util_get_type_from_name() anymore.

* src/glade-widget-adaptor.c: fixed regression in
  gwa_setup_introspected_props_from_pspecs() Interface introduced
  properties where skipped.

* src/glade-gtk.c: Added GtkAssistant support code.

* widgets/gtk+.xml.in: Added gtk+ 2.10 widget classes.
  GtkAssistant, GtkLinkButton, GtkPageSetupUnixDialog,
  GtkPrintUnixDialog, GtkRecentChooserWidget and GtkRecentChooserDialog.
2006-12-06 20:27:58 +00:00
Tristan Van Berkom
ac99547ca2 updating the TODO 2006-12-06 19:59:30 +00:00
Tristan Van Berkom
caceef779a Starting on blockers for 3.2
* TODO: Starting on blockers for 3.2
2006-12-05 19:35:01 +00:00
Sebastien Bacher
c08aa95c84 generated files updated after build 2006-12-05 16:24:18 +00:00
Sebastien Bacher
bb01cfb71a generated files updated after build 2006-12-05 16:17:59 +00:00
Sebastien Bacher
3b178438a6 require intltool 0.35, roll 3.1.2
2006-12-05  Sebastien Bacher <seb128@ubuntu.com>

	* NEWS:
	* configure.in: require intltool 0.35, roll 3.1.2
2006-12-05 15:52:10 +00:00
Tristan Van Berkom
0883606a6d Rolling 3.1.1
* configure.in, NEWS: Rolling 3.1.1
2006-12-04 02:44:14 +00:00
Tristan Van Berkom
cd38657cc2 - Refactor GladePalette code slightly - Selector button can now be hidden.
* src/glade-palette.[ch]:
	  - Refactor GladePalette code slightly
	  - Selector button can now be hidden.
	  - Palette items are now implemented as toggle buttons.

	* src/glade-palette-item.[ch]: GladePaletteItem is now a
	  subclass of GtkToggleButton instead of GtkRadioButton.

	* src/glade-app.c, src/glade-fixed.c, src/glade-placeholder.c:
	  update for change in GladePalette API.

	* src/glade-design-layout.c: Improved drawing code.

	* src/glade-project-window.c:
	  - Refactored recent files code.
	  - Added "Widget Selector" button to main toolbar. Is an
	    external selector button for the palette
	  - Fixed #373255 - "Doesn't warn about unsaved document
	    on quit"

	* pixmaps/selector.png: New selector button.
2006-12-04 01:50:42 +00:00
Juan Pablo Ugarte
d11faf5dda removed glade_gnome_about_dialog_get_children()
* widgets/gnome.xml.in: removed glade_gnome_about_dialog_get_children()

* src/glade-gnome.c: Code cleanup
  o removed every g_return_if_fail()
  o removed glade_gnome_about_dialog_get_children()
  o glade_gnome_dpe_set_property() reworked. (lots of function merged)
  o glade_gnome_dps_set_property() fixed.
2006-11-30 20:51:34 +00:00
Juan Pablo Ugarte
1c90a02568 o reference adaptor->type class in glade_widget_adaptor_constructor()
* src/glade-widget-adaptor.c:
  o reference adaptor->type class in glade_widget_adaptor_constructor()
    because gwa_setup_properties() and gwa_list_signals() need this.
  o added extra checks in adaptor methods
    g_type_is_a (G_OBJECT_TYPE (object), adaptor->type)
    now we can safelly get rid of checks in the plugin code.
2006-11-28 22:42:43 +00:00
Juan Pablo Ugarte
612769dc28 *** empty log message *** 2006-11-22 22:47:13 +00:00
Juan Pablo Ugarte
fce7b7af47 added PYGTK_REQ_MAYOR, PYGTK_REQ_MINOR and PYGTK_REQ_MICRO to config.h
* configure.in: added PYGTK_REQ_MAYOR, PYGTK_REQ_MINOR and
  PYGTK_REQ_MICRO to config.h

* src/glade-python.c: check for pygobject >= 2.12.0

* src/glade-python-gwa.override: fixed packing property bug in
  glade_python_support_init_value()

* src/glade-python-gwa.c: updated.

* src/glade-project-window.c: show clipboard.

* src/glade-catalog.c: check catalog's language is valid.

* src/glade-binding.c: added a warning message when we can not load
  a module.
2006-11-22 22:26:16 +00:00
Tristan Van Berkom
d2f0788064 dllexported functions with LIBGLADEUI_API.
* src/glade-design-view.h: dllexported functions with
          LIBGLADEUI_API.
2006-11-22 14:16:02 +00:00
Tristan Van Berkom
8549c3d0b2 Fixed a segfault in glade_widget_dup(), some things are done before
* src/glade-property.c: Fixed a segfault in glade_widget_dup(), some things
	  are done before setting the "class", so I made sure not to touch the
	  class member during object construction time.
2006-11-21 23:17:32 +00:00
Juan Pablo Ugarte
e29d9b0f62 Added python/pygtk checks.
* configure.in: Added python/pygtk checks.

* src/Makefile.am: added glade-binding.[ch] and BUILD_PYTHON rules

* src/glade-app.c:
  o added glade_scripts_dir and glade_bindings_dir globals
  o loading / unloading bindings.

* src/glade-binding.[ch]: GladeBinding support this is the glue code
  between glade core and bindings modules.

* src/glade-catalog.c: support for loading catalogs supported by
  bindings, added language member to GladeCatalog.

* src/glade-marshallers.list: added new marshallers BOOLEAN:STRING and
  BOOLEAN:OBJECT,STRING

* src/glade-paths.sh.in: added GLADE_BINDINGSDIR and GLADE_SCRIPTSDIR.

* src/glade-popup.c: added support for GWAAction
  (shows context actions as menu items)

* src/glade-project-window.c: added window which a console for each
  GladeBinding that provide a console.

* glade-python-gwa.c: GladeWidgetAdaptor python wrapper.

* glade-python-gwa.[defs override]: files used by pygtk-codegen-2.0
  to create glade-python-gwa.c

* glade-python.c: GladeBinding plugin for python language.

* src/glade-widget-adaptor.[ch]:
  o added GWAAction support.
  o added "action-activated" signal
  o added glade_create_reason_get_type() so the enum can be exposed in
    bindings as a GEnum.
  o added "adaptor" property to glade-widget-class this way non C catalog
    plugins can define the GladeWidgetAdaptor derived class.
    <glade-widget-class name="Custom" adaptor="CustomAdaptor"/>
  o setup binding scripts as actions.
  o added glade_widget_adaptor_emit_action_activated()
    (used in glade-popup.c)

* src/glade-widget.[ch]: added "action-activated" signal.

* src/glade.h: added GLADE_TAG_LANGUAGE, GLADE_TAG_ACTION_GROUP,
  GLADE_TAG_ACTION, GLADE_TAG_STOCK, glade_scripts_dir and
  glade_bindings_dir.
2006-11-21 19:25:22 +00:00
Tristan Van Berkom
e6484fc8f9 - glade_property_set_enabled(), when enableing a property, sync its value
* src/glade-property.c:
	  - glade_property_set_enabled(), when enableing a property, sync its
	    value incase it has any visual feedback.
	  - removed the horrid code that dealt with the project and selection
	    when calling glade_widget_rebuild()
	  - use new glade_widget_object_set_property()/glade_widget_child_set_property().

	* src/glade-widget.c:
	  - glade_widget_rebuild(), added the afore mentioned horrid code - doesnt
	    seem so horrid over here.
	  - added apis to proxy property setting onto the object (via the gwa).
	  - Now sync all properties again at sync_custom_props() time (since there's
	    no set_function anymore and property->class->virtual isnt enough).

	* src/glade-design-layout.c: Added commented alternative code for
	  resizing, TODO remove the direct property setting stuff and handle it
	  somewhere appropriate.

	* src/glade-fixed.c: Commented out a g_return_if_fail and temporarily
	  put an if (statement) return; need to work on handling events differently
	  now (its no big deal, there are just some extra events now comming from the
	  toplevels at focus change times and stuff that are irrelevent to the
	  glade widgets and so the code complains).

	* src/glade-gnome.c, src/glade-gtk.c: Ported to the new api for
	  set_property/get_property/verify_property.

	* src/glade-property-class.[ch]: Removed get/set/verify property backend hooks

	* src/glade-widget-adaptor.[ch]: Added get/set/verify property backend hooks,
	  now the adaptor is a solid self-contained proxy to the plugin.
2006-11-21 04:47:16 +00:00
Josep Puigdemont i Casamajó
45db3756e8 Updated Catalan translation by Xavier Conde. 2006-11-16 21:50:36 +00:00
Juan Pablo Ugarte
68308571b2 o manage all GModules with a hash table. o added
* src/glade-catalog.[ch]:
  o manage all GModules with a hash table.
  o added glade_catalog_modules_close()

* src/glade-app.c:
  o call glade_catalog_modules_close() when the app finalize.
  o removed unnecesary headers.
* src/glade-gnome.c: fixed some warnings.

* src/glade-utils.c: slight optimization in function
  glade_util_get_type_from_name (), check if type is already registered.

* src/glade.h: removed unneeded #ifdef GLADE_H check.

* src/glade-widget-adaptor.[ch]:
  o removed module member from GladeWidgetAdaptorPriv since now we keep
    all the openned modules inside glade-catalog.c
  o added glade_abort_if_derived_adaptors_exist().
2006-11-09 17:00:50 +00:00
Tristan Van Berkom
8d0cbc8e70 - Use the new GtkRecent API, and make it screen aware. - Added the notion
* src/glade-project-window.c:
	  - Use the new GtkRecent API, and make it screen aware.
	  - Added the notion of a 'default_path' for file open/save
	    operations. Replaces the previous recent-file based
	    implementation.
	  - Hide statusbar grip when window is in maximised state.
	  - Set a reasonable default size for props editor and tree.

	* src/glade-popup.c: Removed the "Properties" context action as
	  it doesn't really make sense in the single-window ui.

	* widgets/gtk+.xml.in: Added some displayable values for the
	  GtkWindow::type-hint property.
2006-10-29 17:17:58 +00:00
Tristan Van Berkom
5434edf163 Rolling 3.1.0
* NEWS: Rolling 3.1.0
2006-10-27 18:07:00 +00:00
Tristan Van Berkom
7191d96f41 Merged changeset 'GLADE3_3_0_BRANCHPOINT' --> 'GLADE3_3_0_MERGEPOINT_1'
* Merged changeset 'GLADE3_3_0_BRANCHPOINT' --> 'GLADE3_3_0_MERGEPOINT_1'
	  into HEAD
2006-10-27 16:02:35 +00:00
Tristan Van Berkom
eabfbe7965 Adding zh_HK & zh_TW
* LINGUAS: Adding zh_HK & zh_TW
2006-10-27 15:30:00 +00:00
Tristan Van Berkom
389880070b Bumped required gtk+ version to 2.10 for the 3.1 series
* configure.in: Bumped required gtk+ version to 2.10 for the
	  3.1 series
2006-10-27 15:20:36 +00:00
Tristan Van Berkom
90ba661ff9 o integrate ui into one main window. o A GtkNotebook is used to display
* src/glade-project-window.c:
	  o integrate ui into one main window.
	  o A GtkNotebook is used to display GladeDesignView's.

	* src/glade-project-view.[ch]: add "item-activated" signal.

	* src/glade-design-layout.[ch], src/glade-design-view.[ch]:
	  new files.

	* src/glade-widget.[ch]:
	  o Added functions for embedding toplevel GladeWidgets
	  o glade_widget_show() modified to manage embedding of
	    toplevels.
2006-10-26 00:45:22 +00:00
Kwok-Koon Cheung
3a66616b3a Update again 2006-10-23 01:04:38 +00:00
Kwok-Koon Cheung
d953dd0466 Updated Chinese (Hong Kong) translation. Updated Chinese (Taiwan)
* zh_HK.po: Updated Chinese (Hong Kong) translation.
	* zh_TW.po: Updated Chinese (Taiwan) translation.
2006-10-23 01:00:45 +00:00
Kwok-Koon Cheung
aaae7278e7 Remove non-existant file.
* POTFILES.in: Remove non-existant file.
2006-10-23 00:11:43 +00:00
Tristan Van Berkom
812eb6a362 Removed the python check
* configure.in: Removed the python check

	* src/glade-widget-adaptor.c: Fixed properties
	  (some were being ignored).

	* src/glade-gtk.c, widget/gtk+.xml:
	  Gave some love to some 2.10 properties
2006-10-20 17:01:24 +00:00
Tristan Van Berkom
266771b18b Added glade-widget-adaptor.[ch], removed glade-widget-class.[ch].
Added glade-widget-adaptor.[ch], removed glade-widget-class.[ch].

	Modified most sources to cope with the major api change.
2006-10-19 17:15:10 +00:00
Juan Pablo Ugarte
8fddd5af80 *** empty log message *** 2006-10-18 19:49:16 +00:00
Juan Pablo Ugarte
dd2645dc25 added po/LINGUAS file 2006-10-18 19:08:19 +00:00
Juan Pablo Ugarte
3a732d0288 relicense pixmaps under GNU LGPL
* COPYING: relicense pixmaps under GNU LGPL

* COPYING.GPL, COPYING.LGPL: new files

* Makefile.am: added license files to EXTRA_DIST.
2006-10-17 18:40:34 +00:00
Juan Pablo Ugarte
0cb731b8ad *** empty log message *** 2006-10-09 22:12:44 +00:00
Tristan Van Berkom
2ce79f62c2 updating todo. 2006-10-05 13:37:42 +00:00
Tristan Van Berkom
de6f321928 updated todo. 2006-10-05 01:50:50 +00:00
Tristan Van Berkom
29239dd427 Updated with general goals/tasklist.
* TODO: Updated with general goals/tasklist.
2006-10-04 18:27:32 +00:00
Kwok-Koon Cheung
fd156da836 New Chinese (Hong Kong) translation. New Chinese (Taiwan) translation.
* zh_HK.po: New Chinese (Hong Kong) translation.
	* zh_TW.po: New Chinese (Taiwan) translation.
2006-10-04 17:53:42 +00:00
Tristan Van Berkom
3678b14b60 Added private data struct. Removed notion of a GladeProjectViewType.
* src/glade-project.view.[ch]: Added private data struct.
	  Removed notion of a GladeProjectViewType.

	* src/glade-project-window.c: update for GladeProjectView changes
2006-10-01 02:31:40 +00:00
Tristan Van Berkom
3c76ae3db9 bumping version to 3.1.0
* configure.in: bumping version to 3.1.0

	* glade.h: include gaurd against libglade
2006-09-29 18:02:02 +00:00
Tristan Van Berkom
7655fcfc62 fixing libtool versioning 2006-09-29 17:03:40 +00:00
Tristan Van Berkom
0c47c3a778 rolling 3.0.2 2006-09-29 16:03:26 +00:00
Juan Pablo Ugarte
05c04a83ec Renamed every function to avoid namming clash with libglade (now Anjuta 2
* src/glade-parser.[ch]: Renamed every function to avoid namming clash
  with libglade (now Anjuta 2 can continue with glade3 plugin)

* src/glade-project.c: adapted to new functions names.
2006-09-29 15:38:25 +00:00
Juan Pablo Ugarte
bda0f64207 fixed bug 353126 "glade3.0.1 lost icons in gtkmenuitem"
* src/glade-property-class.c: fixed bug 353126
  "glade3.0.1 lost icons in gtkmenuitem"
  glade_property_class_make_object_from_string() now returns a new
  pixfuf for each missing file name.

* src/glade-editor-property.c: make GladeEPropResource change property
  value on focus-out event.
2006-09-23 17:10:24 +00:00
Tristan Van Berkom
07fa13cd60 - Set some HIG-ish defaults on dialogs 2006-09-22 22:27:58 +00:00
Tristan Van Berkom
7cfd494195 updated todo for 3.0.2 2006-09-22 19:27:12 +00:00
Tristan Van Berkom
58da7d872c - Ignore "enable-grid-lines" 2.10 property on treeview since
it causes crashes on load (fixes bug 353611)
	  - Added displayable values for "enable-grid-lines" 2.10 property
2006-09-22 19:10:18 +00:00
Tristan Van Berkom
daee37c347 Added GLADE_TYPE_STOCK_IMAGE (and standard pspec for it), this is stock
* src/glade-builtins.[ch]: Added GLADE_TYPE_STOCK_IMAGE (and standard
	  pspec for it), this is stock items plus the additional "stock images"
	  from gtkstock.h (closing bug 353522).

	* src/glade-editor-property.c: recognize new stock image pspec type.

	* src/glade-gtk.c, widgets/gtk+.xml.in:
	  - Bulletproofed toolbar code wrt stock images (also use stock "images"
	    instead of items here)
	  - Use stock "images" for GtkImage
	  - GtkImage "type" property now defaults to "stock"
	  - GtkImage stock id now defaults to "gtk-missing-image"
2006-09-22 18:41:30 +00:00
Juan Pablo Ugarte
034ed1e444 src/glade-project.c reworked glade_project_update_comment() update every
* src/glade-project.c reworked glade_project_update_comment()
  update every line generated by glade (not just the first one)
2006-09-20 19:18:29 +00:00
Juan Pablo Ugarte
78602aad6e o Removed function glade_interface_add_comment() o Added new member
* src/glade-parser.[ch]:
  o Removed function glade_interface_add_comment()
  o Added new member comment to GladeInterface.

* src/glade-project.[ch]: fixed Bug 342889
  "Put some comment telling about glade-3 in glade files"
  o Added new function glade_project_update_comment().
  o Added new member comment to GladeProject.
2006-09-19 23:26:00 +00:00
Juan Pablo Ugarte
68f51c5bfd o Added new member weight. o glade_property_class_get_displayable_value()
* src/glade-property-class.[ch]:
  o Added new member weight.
  o glade_property_class_get_displayable_value() returns is now const.

* src/glade-editor-property.c: adapted to the new
  glade_property_class_get_displayable_value() declaration.

* src/glade-editor.c: Fixed bug 345893. "Need to order
  properties in the editor and widget-groups in the palette"

* src/glade-widget-class.c:
  added glade_widget_class_properties_set_weight().

* src/glade-xml-utils.[ch]: added glade_xml_get_property_double().

* src/glade.h: added new tag GLADE_TAG_WEIGHT.

* widgets/gtk+.xml.in: set weight in several properties.
  GtkWidget's tooltip, GtkBox packing properties, GtkButton GtkImage
2006-09-18 20:26:38 +00:00
David Lodge
4dfa2e80a4 Updated English (British) translation Added en_GB to LINGUAS
2006-09-14  David Lodge <dave@cirt.net>

	* en_GB.po: Updated English (British) translation
	* configure.in: Added en_GB to LINGUAS
2006-09-14 20:32:29 +00:00
Juan Pablo Ugarte
9a8448174a o added support for removing a BonoboDockItem from BonoboDock. o added
* src/glade-gnome.c:
  o added support for removing a BonoboDockItem from BonoboDock.
  o added missing g_return_if_fail() in several functions

* widgets/bonobo.xml.in: added glade_gnome_bonobodock_remove_item()
2006-09-13 20:37:13 +00:00
Juan Pablo Ugarte
c815a61e1d *** empty log message *** 2006-09-12 22:16:15 +00:00
Juan Pablo Ugarte
8ca884cb25 GtkImage support improved. Finally no more g_object_set_data() :)
* src/glade-gtk.c: GtkImage support improved. Finally no more
  g_object_set_data() :)

* src/glade-project.c: Emit "parse-finished" after setting project's
  loading flag.

* src/glade-property-class.[ch]:
  make glade_property_class_make_object_from_string () returns a missing
  image icon if resource file is not found. This also make glade do not
  forget missing files.

* src/glade-gnome.c:  fixed a silly warning in
  glade_gnome_date_edit_post_create()
2006-09-12 22:14:50 +00:00
Juan Pablo Ugarte
5c33581869 added glade_gnome_date_edit_post_create() Fixed bug 351589 "GnomeDateEdit
* src/glade-gnome.c: added glade_gnome_date_edit_post_create()
  Fixed bug 351589 "GnomeDateEdit widget displays time when it shouldn't"

* widgets/gnome.xml.in: added GnomeDateEdit's post-create-function
2006-09-08 19:40:35 +00:00
Juan Pablo Ugarte
2ce1bd64c0 added glade_gtk_combo_box_entry_get_internal_child() Fixed bug 354716
* src/glade-gtk.c: added glade_gtk_combo_box_entry_get_internal_child()
  Fixed bug 354716 "cut&paste ComboBoxEntry crashes Glade"

* widgets/gtk+.xml.in: added GtkComboBoxEntry's
  get-internal-child-function.
2006-09-08 16:39:32 +00:00
Tristan Van Berkom
35aaba2556 Backing out multiple consecutive pastes from 3.0, reopening bug 345603.
* src/glade-command.c: Backing out multiple consecutive pastes from 3.0,
	  reopening bug 345603.
2006-09-06 19:13:52 +00:00
Juan Pablo Ugarte
79a1988998 small optimization, there is no need to move a child if the new parent is
* src/glade-base-editor.c, src/glade-gtk.c: small optimization, there is
  no need to move a child if the new parent is the same as the old one.
  (in GladeBaseEditor "move-child" signal handlers)

* src/glade-command.c: fixed a warnign in glade_command_delete_execute()
  Widgets in the clipboard have no parents.
2006-09-05 18:41:02 +00:00
Juan Pablo Ugarte
98febc5aab Fixed bug 345075 "GtkPaned is invisible on load". added new functions
* src/glade-gtk.c: Fixed bug 345075 "GtkPaned is invisible on load".
  added new functions glade_gtk_paned_set_child_property() and
  glade_gtk_paned_get_child_property().

* src/glade-editor.c: do not load invisible packing properties in
  glade_editor_load_packing_page().

* widgets/gtk+.xml.in: GtkPaned support improved.
  o Added new virtual child property "first".
  o Added child-set-property-function and child-get-property-function

* src/glade-utils.[ch]: added convenience function
  glade_util_object_is_loading()

* src/glade-editor-property.c: Fixed bug 352825 "segmentation fault when
  saving after adding multiple accelerators to buttons"
  set ACCEL_COLUMN_REAL_SIGNAL in key_edited() when a new slot is
  appended and free string allocated by gtk_tree_model_get().
2006-08-28 21:46:05 +00:00
Francisco Javier F. Serrador
43dee6b3fc Updated Spanish translation.
2006-08-25  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
2006-08-25 00:11:13 +00:00
Tristan Van Berkom
b3661ef778 Remove glade_util_uri_list_parse().
* src/glade-utils.[ch]: Remove glade_util_uri_list_parse().

	* src/glade-project-window.c: Rewrite gpw_drag_data_received()
	  (fixing bug 352458).
2006-08-24 15:54:11 +00:00
Juan Pablo Ugarte
9178f3caac signal editor UI improved (bug 127149) o Handler column now uses a
* src/glade-signal-editor.[ch]: signal editor UI improved (bug 127149)
  o Handler column now uses a GtkCellRendererCombo with inline entry
    completion.
  o added completion to User Data column.
  o Lookup column disabled.
2006-08-22 23:04:39 +00:00
Juan Pablo Ugarte
857885c4c8 glade_widget_class_add_signals() simplification.
* src/glade-widget-class.c: glade_widget_class_add_signals() simplification.
2006-08-22 20:46:30 +00:00
Tristan Van Berkom
496bc51d50 translatable label in menu items. 2006-08-22 20:28:58 +00:00
Tristan Van Berkom
13178ce846 use non locale specific functions to write out floats and doubles too 2006-08-22 19:11:06 +00:00
Tristan Van Berkom
03ae74e36b Reverted to use of floating point precision in adjustments - use non
* src/glade-editor-property.c, src/glade-property-class.c: Reverted to use
	  of floating point precision in adjustments - use non locale specific
	  functions to write them out.
2006-08-22 18:43:19 +00:00
Tristan Van Berkom
c032eaca50 Fixed non-translatable strings on many properties: title of
* widgets/gtk+.xml.in, widgets/gnome.xml.in: Fixed non-translatable strings on many
	  properties: title of GtkFileChooserButton, GtkColorButton and GtkFontButton,
	  text of GtkEntry, GtkProgressBar and GnomeDruidPageStandard, title and text of
	  GnomeDruidPageEdge, all text properties of GtkAboutDialog.
	  (reported by Olivier Rolland)
2006-08-22 13:59:06 +00:00
Changwoo Ryu
9dc94d3309 Added ko in ALL_LINGUAS.
2006-08-22  Changwoo Ryu  <cwryu@debian.org>

	* configure.in: Added ko in ALL_LINGUAS.
2006-08-22 13:50:00 +00:00
Changwoo Ryu
5df84a4a12 Added Korean translation.
2006-08-22  Changwoo Ryu  <cwryu@debian.org>

	* ko.po: Added Korean translation.
2006-08-22 13:48:44 +00:00
Tristan Van Berkom
78221f25f8 Fixed missing translatable attribute on some properties. 2006-08-21 18:06:16 +00:00
Tristan Van Berkom
e137cd6b38 wrapping 3.0.1 tarball
* configure.in, NEWS: wrapping 3.0.1 tarball
2006-08-20 17:36:29 +00:00
Tristan Van Berkom
f603960d7d Fixed to not stick on class->toplevel widget classes, this avoids
* src/glade-palette.c: Fixed to not stick on class->toplevel widget classes,
	  this avoids segfaults when trying to add toplevels to placeholders.
2006-08-20 16:45:54 +00:00
Juan Pablo Ugarte
09fcd5a044 Palette can be locked as in glade2 with CONTROL-Click (bug 303679)
* src/glade-palette.c: Palette can be locked as in glade2 with
  CONTROL-Click (bug 303679)
2006-08-19 22:07:18 +00:00
Juan Pablo Ugarte
d698dd3f2b sort signals alphabetically in glade_widget_class_add_signals() (bug
* src/glade-widget-class.c: sort signals alphabetically in
  glade_widget_class_add_signals() (bug 352013)
2006-08-19 19:55:15 +00:00
Tristan Van Berkom
8d257417ab o Use Unicode characters where appropriate. o Set website property for
* src/glade-project-window.c:
	  o Use Unicode characters where appropriate.
	  o Set website property for About dialog.
	  o Beefed up Projects menu. Added "Previous" and "Next" actions.
	    Removed the tab alignment.

	* glade-3.desktop.in, src/main.c: Removed the "3" from the application
	  title.

	* configure.in: Fixed typo.
2006-08-19 18:48:55 +00:00
Tristan Van Berkom
6fd54b7ccf o Fixed textview segfault (bug 352054) by checking nulls from
gdk_window_get_user_data().
2006-08-19 18:27:15 +00:00
Tristan Van Berkom
ccb0a36d1c Added glade_widget_remove_property ()
* src/glade-widget.[ch]: Added glade_widget_remove_property ()

	* src/glade-editor-property.c: Hide widget when no property loaded

	* src/glade-editor.c: Fixed packing up so that invisible children
	  dont screw up the layout.

	* src/glade-gtk.c: Removed "border-width" on action area and vbox
	  in GtkDialogs that expose them, also removed "spacing" on the
	  action area - these props are controlled by "content-area-border",
	  "button-spacing" and "action-area-border" style props on the dialog.

	* src/glade-property.c: Added #if 0 debugging code.
2006-08-19 17:34:51 +00:00
Juan Pablo Ugarte
8506cd7aee glade_widget_class_list_signals () now list signals implemented by
* src/glade-widget-class.c: glade_widget_class_list_signals () now list
  signals implemented by interfaces.
  Added gwc_iface_not_implemented_by_parent () and
  glade_widget_class_add_signals().
2006-08-19 02:04:11 +00:00
Tristan Van Berkom
7c90674ca2 Fixed expanders, now there's always a placehodler when needed.
* src/glade-gtk.c, widgets/gtk+.xml.in: Fixed expanders,
	  now there's always a placehodler when needed.
2006-08-18 17:00:22 +00:00
Tristan Van Berkom
affc8a7fac adding a critical bugx 2006-08-18 02:51:41 +00:00
Tristan Van Berkom
064c0fda01 Now adjustments are saved as decimal values instead of doubles (glade--
* src/glade-editor-property.c, src/glade-property-class.c:
	  Now adjustments are saved as decimal values instead of doubles
	  (glade-- code generator didnt like doubles... we'll create
	  adjustment objects anyway in the future builder).
2006-08-17 16:36:21 +00:00
Tristan Van Berkom
d7785c4b69 Now you can paste widgets to your hearts content. (bug 345603)
* src/glade-command.c: Now you can paste widgets to your hearts content.
	  (bug 345603)
2006-08-17 16:23:05 +00:00
Tristan Van Berkom
d5b73e3fec updating TODO list for 3.0.1 bugfix release targets.
updating TODO list for 3.0.1 bugfix release targets.
2006-08-17 00:20:16 +00:00
Juan Pablo Ugarte
37b805c49a fixed bug 345604 "Pasting a widget does not paste the packing options"
* src/glade-command.c: fixed bug 345604
  "Pasting a widget does not paste the packing options"

* src/glade-property-class.[ch]: added transfer_on_paste property to
  GladePropertyClass.

* src/glade-widget.[ch]: exported glade_widget_dup_properties()

* src/glade.h added GLADE_TAG_TRANSFER_ON_PASTE tag.

* widgets/gtk+.xml.in: set transfer-on-paste on corresponding packing
  properties.
2006-08-16 20:35:54 +00:00
Francisco Javier F. Serrador
c74ca729cb Updated Spanish translation.
2006-08-16  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
2006-08-16 20:33:51 +00:00
Juan Pablo Ugarte
e6119e8d9e GladeBaseEditor fix 2006-08-13 17:46:37 +00:00
Tristan Van Berkom
dc814a5cbf Wrapping the 3.0 tarball.
* configure.in, NEWS: Wrapping the 3.0 tarball.
2006-08-12 03:04:15 +00:00
Tristan Van Berkom
6a0f60206b Added --without-devhelp option (for users suffering of DevHelp 0.11)
* src/main.c, src/glade-project-window.c: Added --without-devhelp option
	  (for users suffering of DevHelp 0.11)

	* src/glade-app.c, src/glade-popup.c: Fixed bug with contect menu on placeholders.
2006-08-12 01:34:01 +00:00
Tristan Van Berkom
e7b7a1c516 GtkDialog's main vbox now has 2 placeholders instead of 3.
* src/glade-gtk.c: GtkDialog's main vbox now has 2 placeholders
	  instead of 3.

	* src/glade-3.pc.in: Change description field to
	  "Glade Interface Designer".

	* glade-3.desktop.in: Enable startup notification.
2006-08-12 01:02:09 +00:00
Tristan Van Berkom
6657a2b440 Updated the about dialog for the 3.0 release.
* src/glade-project-window.c: Updated the about dialog for the 3.0 release.
2006-08-12 00:54:28 +00:00
Tristan Van Berkom
0a148b5806 Change 'Recent Projects' to 'Open Recent' in menu.
* src/glade-project-window.c: Change 'Recent Projects' to 'Open Recent'
	  in menu.
2006-08-11 23:55:07 +00:00
Tristan Van Berkom
8749ac89d0 o Fixed a bug where loaded projects were never marked with unsaved changes
* src/glade-project.c:
	  o Fixed a bug where loaded projects were never marked with unsaved changes
	    (since loaded propjects were infinately project->loading == TRUE).
2006-08-11 19:52:40 +00:00
Tristan Van Berkom
f416917492 o Setup packing properties so they are available to the plugin at
* src/glade-widget.c:
	  o Setup packing properties so they are available to the plugin at replace_child time.
2006-08-11 19:36:14 +00:00
Tristan Van Berkom
fbd00de821 Fixed bookkeeping of special-child-type when redoing a paste command.
* src/glade-command.c: Fixed bookkeeping of special-child-type when redoing
	  a paste command.
2006-08-11 19:20:21 +00:00
Tristan Van Berkom
7c83e9906c Unparent all widgets before closing the project, this stops the recursive
* src/glade-project.c: Unparent all widgets before closing the project,
	  this stops the recursive "destroy" signal from happening and allows us
	  to better manage the project widgets (not to mention it avoids a buggy
	  assertion from the GtkNotebook at destruction time).
2006-08-11 18:38:39 +00:00
Tristan Van Berkom
236133446f Improved notebook code some more.
* src/glade-gtk.c: Improved notebook code some more.

	* src/glade-widget.c: Removed g_criticals in functions that return
	  FALSE to signify not-found properties.
2006-08-11 17:54:09 +00:00
Tristan Van Berkom
275d9b2827 Fixed glade_util_get_placeholder_from_pointer to work for notebook tabs.
* src/glade-utils.c: Fixed glade_util_get_placeholder_from_pointer to
	  work for notebook tabs.

	* src/glade-gtk.c, widgets/gtk+.xml.in: Reworked to simplify code and
	  reduce alot of code.

	* src/glade-utils.c: Now use the toplevel to get the mouse coordinates
	  for the placeholder searching.
2006-08-10 22:46:51 +00:00
Tristan Van Berkom
25bfda4ca2 fixing searching of placeholders in notebook tabs. 2006-08-10 18:41:42 +00:00
Tristan Van Berkom
426e2891a6 augmenting notebook code... 2006-08-10 03:47:43 +00:00
Tristan Van Berkom
16b097056a updating the blocker list 2006-08-10 03:27:22 +00:00
Tristan Van Berkom
99c063d109 Now check if placeholders are GTK_WIDGET_MAPPED() before returning them,
* src/glade-utils.c: Now check if placeholders are GTK_WIDGET_MAPPED()
	  before returning them, since placeholders "overlap" inside notebooks.

	* src/glade-command.c: bookkeeping on "special-child-type" for cut/copy/paste
	  consistancy.

	* src/glade-gtk.c, widgets/gtk+.xml.in: Tons of code added to manage notebooks.

	* src/glade-widget.c: Change the order of an if statement (avoid
	  comparing irrelevent memory).
2006-08-10 03:23:17 +00:00
Juan Pablo Ugarte
5ea548603a GladeEPropText simplification. Fixed a bug were each time a text property
* src/glade-editor-property.c: GladeEPropText simplification.
  Fixed a bug were each time a text property was loaded one byte per
  multibyte character was lost.
2006-08-09 20:59:55 +00:00
Tristan Van Berkom
15cf5048cb Fixed compiler warning. 2006-08-09 17:42:56 +00:00
Tristan Van Berkom
de75d2028e Use GTK_IS_WINDOW() instead of GTK_IS_TOPLEVEL since GTK_IS_TOPLEVEL seems
* src/glade-cursor.c: Use GTK_IS_WINDOW() instead of GTK_IS_TOPLEVEL since
          GTK_IS_TOPLEVEL seems to return TRUE for some GObjects. (was getting
          crashes using a custom widget catalog because of this).
2006-08-09 15:31:49 +00:00
Tristan Van Berkom
53fcbe29a3 glade_project_new_widget_name() strips trailing digits from base_name
* src/glade-project.c: glade_project_new_widget_name() strips trailing digits from
	  base_name argument, so glade_project_new_widget_name("blah1") is "blah2".

	* src/glade-widget.c: Make sure the newly duplicated widget gets a new unique
	  name.
2006-08-09 13:54:55 +00:00
Juan Pablo Ugarte
fa56fc8907 *** empty log message *** 2006-08-08 19:16:02 +00:00
Juan Pablo Ugarte
f02782c580 reworked glade_app_command_paste () placeholders can not be selected
* src/glade-app.c: reworked glade_app_command_paste () placeholders can
  not be selected anymore.

* src/glade-command.c: in glade_command_cut_copy_paste_common () we try
  to use the placeholder which has the pointer over it first.

* src/glade-fixed.[ch]: add new property "use-placeholders".

* src/glade-gtk.c: set "use-placeholders" for GtkBox and GtkTable.

* src/glade-popup.c: reworked glade_popup_create_placeholder_menu () and
  glade_popup_placeholder_paste_cb (), placeholders do not get selected
  anymore.

* src/glade-utils.[ch] glade_util_selected_placeholder () removed,
  added glade_util_get_placeholder_from_pointer ().
2006-08-08 18:48:46 +00:00
Tristan Van Berkom
8caed58a66 GtkDialog's main vbox now has 2 placeholders instead of 3.
* src/glade-gtk.c: GtkDialog's main vbox now has 2 placeholders
	  instead of 3.

	* src/glade-3.pc.in: Change description field to
	  "Glade Interface Designer".

	* glade-3.desktop.in: Enable startup notification.
2006-08-08 16:08:32 +00:00
Juan Pablo Ugarte
91d6be87e6 Added widget search in project view treeview (close bug 349860)
* src/glade-project-view.c: Added widget search in project view treeview
	  (close bug 349860)
2006-08-06 00:10:44 +00:00
Tristan Van Berkom
d69871314b No more selection on placeholders.
* src/glade-placeholder.c: No more selection on placeholders.
2006-08-04 20:41:20 +00:00
Tristan Van Berkom
3cc7c2a811 Fixed spelling and formatting typos.
* doc/catalogintro.sgml, doc/children.sgml, doc/gladeui-docs.sgml,
	  doc/tmpl/glade-app.sgml, doc/tmpl/glade-fixed.sgml,
	  doc/tmpl/glade-palette.sgml, doc/tmpl/glade-project.sgml,
	  src/glade-editor.c: Fixed spelling and formatting typos.

	* src/glade-palette.c: Add documentation.

	* widgets/glade-catalog.dtd: Removed xml document tag
	  (DTD expressions are not xml). Add 'toplevel' attribute to
	  'glade-widget-class' attribute list.

	* widgets/gtk+.xml.in: Change default widget
	  properties (in line with HIG).
	  o The scrolling policies of GtkScrolledWindow are now
	    GTK_POLICY_AUTOMATIC.
	  o The GtkDialog 'has-separator' property is now set to FALSE.
	  o The GtkFrame 'shadow-type' property is now GTK_SHADOW_NONE.

	* src/glade-gtk.c: Changed glade_gtk_frame_post_create(). By default,
	  GtkFrame's are now more HIG compliant.

	* pixmaps/22x22/Makefile.am: Another icon.
2006-08-04 05:41:33 +00:00
Juan Pablo Ugarte
0a2150992c Added comment about the fact that textview hangs glade3 when it
recieves double-clicks
2006-08-03 18:12:51 +00:00
Juan Pablo Ugarte
efdd302f68 *** empty log message *** 2006-08-03 18:11:15 +00:00
Juan Pablo Ugarte
86b230c8a7 fixed bug 348570 "GladeFixed drag/resize "sticks"" added
* src/glade-fixed.c, src/glade-utils.[ch]: fixed bug 348570
  "GladeFixed drag/resize "sticks"" added glade_util_set_grabed_widget()

* src/glade-gtk.c: fixed bug 348964
  "Double-clicking in a TextView hangs Glade3"  added callback to stop
  GtkTextView's double clicks.
2006-08-02 19:03:43 +00:00
Tristan Van Berkom
9814924627 updating blockers 2006-08-02 15:47:52 +00:00
Tristan Van Berkom
f52db42e5b fixed possible segfault. 2006-08-01 23:27:04 +00:00
Tristan Van Berkom
33746a0815 fixed win32 compilation 2006-08-01 23:13:07 +00:00
Tristan Van Berkom
a58cfd5587 Fixed typo in the about dialog.
* src/glade-project-window.c: Fixed typo in the about dialog.
2006-08-01 16:08:22 +00:00
Francisco Javier F. Serrador
673cddaa57 Updated Spanish translation.
2006-07-29  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
2006-07-29 18:29:50 +00:00
Juan Pablo Ugarte
9a6f3568d4 Fixed a GtkImage loading bug. (more cleanup)
* src/glade-gtk.c: Fixed a GtkImage loading bug. (more cleanup)

* widgets/gtk+.xml.in: renamed GtkImage "glade-stock" and "stock"
  set-functions to make it more understandable.
2006-07-28 18:30:01 +00:00
Tristan Van Berkom
4c9d46e194 Updated
* TODO: Updated
2006-07-27 19:33:20 +00:00
Tristan Van Berkom
665323424c More icons.
* pixmaps/16x16/Makefile.am, pixmaps/22x22/Makefile.am: More icons.
2006-07-27 18:29:40 +00:00
Tristan Van Berkom
fce7f7a3ff now you can add a widget to a placeholder child or fixed child of a fixed widget. 2006-07-27 17:57:41 +00:00
Tristan Van Berkom
4d150f3094 removing debug 2006-07-27 17:45:32 +00:00
Tristan Van Berkom
b4109cdda8 Refined tooltip text a little.
* src/glade-editor.c: Refined tooltip text a little.
2006-07-27 17:43:15 +00:00
Tristan Van Berkom
610e8fc300 o Fixed bug where signals were not disconnecting when children
were deleted/cut from GladeFixed parents.
2006-07-27 17:12:20 +00:00
Juan Pablo Ugarte
cf1a41b3a3 Fixed small bug in glade_gtk_image_post_create() glade-image-post-ran must
* src/glade-gtk.c: Fixed small bug in glade_gtk_image_post_create()
  glade-image-post-ran must be set if the widget was created by the user.
2006-07-27 15:50:24 +00:00
Tristan Van Berkom
048042dcbd o New we can add a widget to a fixed inside a table 2006-07-27 15:45:53 +00:00
Tristan Van Berkom
916bfd4ff5 Drags now move scrolled windows around if the fixed widget happens to be
* src/glade-fixed.c: Drags now move scrolled windows around if
	  the fixed widget happens to be in a scrolled window.
2006-07-27 05:34:23 +00:00
Tristan Van Berkom
78777548ea More icons.
* pixmaps/16x16/Makefile.am, pixmaps/22x22/Makefile.am: More icons.

	* src/glade-gtk.c: fix compiler warning.

	* src/glade-palette.c: document a function.

	* src/glade-project-window.c:
	  o Increase border width of property editor window.

	* src/glade-utils.c: Changed implementation of
	  glade_util_widget_set_tooltip(). All tooltips are now
	  stored in only one GtkTooltips object.

	* src/glade-editor.c:
	  o Removed scrolled window from signal editor page.
	  o All pages (except signal editor page) are now packed into an
	    alignment instead of a vbox.
	  o Class field now displayed using a non-editable entry.
	  o Modified the utility buttons at the bottom of the editor.
	    Devhelp button now uses the "devhelp" named icon if available.
	  o Lots of other minor ui changes.
2006-07-27 03:36:36 +00:00
Juan Pablo Ugarte
4067fc15f2 adapted to the new glade_command_set_property() prototype.
* src/glade-base-editor.c, src/glade-editor-property.c:
  adapted to the new glade_command_set_property() prototype.

* src/glade-command.[ch]: changed prototype of
  glade_command_set_property(), added glade_command_set_property_value()

* src/glade-fixed.c: do not call gtk_widget_grab_focus() in
  glade_fixed_event() it makes widgets fight for the focus on some
  situations.

* src/glade-gtk.c: GtkEntry and GtkTextView support improved.
  Now text property can be edited from the instance itself.
2006-07-27 02:33:02 +00:00
Juan Pablo Ugarte
d06079ce45 include time.h 2006-07-26 16:48:50 +00:00
Tristan Van Berkom
f6b1610705 converted translations to utf8: da es ms nn pl pt ru sv ta tr
* po/*.po: converted translations to utf8: da es ms nn pl pt ru sv ta tr
2006-07-26 03:34:31 +00:00
Tristan Van Berkom
eeb3190219 Reset cursor after creating a widget.
* src/glade-placeholder.c: Reset cursor after creating a widget.

	* src/glade-command.c: glade_command_push_group () now formats its own string.

	* src/glade-base-editor.c: simplify code by letting glade_command_push_group ()
	  format its own string.

	* src/glade-fixed.c, src/glade-gtk.c: Added cuter names for undo/redo items
	  pertaining to drag/resize.
2006-07-26 03:09:03 +00:00
Tristan Van Berkom
ea5604d8f2 Dont require that an object be "toplevel" to be saved, just that it has no
* src/glade-project.c: Dont require that an object be "toplevel" to be
	  saved, just that it has no parent (toplevel means that it can _only_
	  be top-level, and gwidget->parent == NULL means that it _happens_ to
	  be top-level.

	* src/glade-cursor.c: Hacked the cursor code to violently set cursors
	  on all visible project widgets, this fixes bug 348657.

	* TODO: Updated.
2006-07-26 02:18:24 +00:00
Juan Pablo Ugarte
8ee0799d48 *** empty log message *** 2006-07-25 17:18:32 +00:00
Juan Pablo Ugarte
98b840fb5c Fixed bug 347850 "Selection Bug consequence"
* src/glade-gtk.c: Fixed bug 347850 "Selection Bug consequence"

* src/glade_widget.c: check added in glade_widget_event_private ()
  Some synthetic events (like focus-change) dont come with a window.

* widgets/gtk+.xml.in: ignore GtkEntry editable property
2006-07-25 17:12:44 +00:00
Tristan Van Berkom
1ea3067afb Updated.
* TODO: Updated.
2006-07-25 16:09:09 +00:00
Tristan Van Berkom
4c539a64cd GtkBox can now have 0 items without freezing/crashing (bug 347149)
* src/glade-gtk.c: GtkBox can now have 0 items without freezing/crashing
	  (bug 347149)
2006-07-25 16:03:48 +00:00
Juan Pablo Ugarte
04ad469313 made glade3 comment more script friendly
* src/glade-parser.c: made glade3 comment more script friendly
2006-07-24 22:08:51 +00:00
Juan Pablo Ugarte
d85c3633dc Fixed bug 342889 "Put some comment telling about glade-3 in glade files"
* src/glade-parser.c: Fixed bug 342889
  "Put some comment telling about glade-3 in glade files"
2006-07-24 21:48:42 +00:00
Juan Pablo Ugarte
205ad88fd0 Fixed bug 348369 "GtkImage doesnt load properly"
* src/glade-gtk.c: Fixed bug 348369 "GtkImage doesnt load properly"
2006-07-24 19:30:57 +00:00
Tristan Van Berkom
cc725bf982 Added text-view handling of virtual "text" property (bug 347961)
* src/glade-gtk.c, widgets/gtk+.xml.in:
	  Added text-view handling of virtual "text" property (bug 347961)

	* doc/gladeui-sections.txt, doc/gladeui-docs.sgml: updated.
2006-07-22 22:10:25 +00:00
Tristan Van Berkom
e061236d8d o Removed some debug prints.
* src/glade-widget.c:
	  o Removed some debug prints.

	* src/glade-fixed.c:
	  o Use gtk_widget_translate_coordinates() for child coordinates (some widgets
	    like GtkEntry dont respect gtk_widget_get_pointer(), we trust containers only).
2006-07-22 20:57:38 +00:00
Tristan Van Berkom
47dee8c08d Use gtk_widget_get_pointer on the event widget to retrieve the mouse
* src/glade-widget.c: Use gtk_widget_get_pointer on the event widget
	  to retrieve the mouse position, not gdk_window_get_pointer on any
	  arbitrary event widget of that window.

	* src/glade-fixed.c: Use gtk_widget_get_pointer() where we were using
	  gdk_window_get_pointer().

	* src/glade-command.c: disabling the debug print.

	* TODO: Updated
2006-07-22 18:56:45 +00:00
Tristan Van Berkom
d222647688 adjusting comment. 2006-07-20 03:34:26 +00:00
Tristan Van Berkom
8e80a430f9 expose internal entry of GtkComboBoxEntry.
* src/glade-gtk.c, widgets/gtk+.xml.in: expose internal entry of GtkComboBoxEntry.
2006-07-20 03:26:26 +00:00
Tristan Van Berkom
84a3441681 Bookkeep colours for insensitive tooltips in a theme friendly manner.
* src/glade-editor-property.[ch]: Bookkeep colours for insensitive tooltips in
	  a theme friendly manner.
2006-07-19 18:42:15 +00:00
Tristan Van Berkom
9508b78cab "s/== TRUE/!= FALSE/g" (musnt be checking for litteral truths, that is
* src/glade-palette-item.c, src/glade-project-window.c, src/glade-widget-class.c:
	  "s/== TRUE/!= FALSE/g" (musnt be checking for litteral truths, that is error
	  prone).
2006-07-18 17:15:25 +00:00
Tristan Van Berkom
01c7c0d387 Fixed jumpy focus widget bug (bug 347851)
* src/glade-editor.c: Fixed jumpy focus widget bug (bug 347851)
2006-07-18 15:02:18 +00:00
Tristan Van Berkom
c7b4d9aded minor touch-up 2006-07-17 13:58:45 +00:00
Juan Pablo Ugarte
5f29ae88c9 Fixed bug 346139 "GTK warns of multiple widgets contained in a button with
* src/glade-gtk.c: Fixed bug 346139
	  "GTK warns of multiple widgets contained in a button with an image"
	  Simplified GtkButton and GtkImage, Glade3 no longer tries to "remember"
	  properties values (Undo/Redo should be enougth)
2006-07-14 16:43:08 +00:00
Juan Pablo Ugarte
63e7208e0f fixed a warning in glade_gtk_menu_shell_delete_child() 2006-07-13 21:53:06 +00:00
Juan Pablo Ugarte
0c4e3578b1 added files glade-base-editor.[ch]
* src/Makefile.am: added files glade-base-editor.[ch]

	* src/glade-accumulators.[ch]: new accumulators
	  glade_string_accumulator() and glade_stop_emission_accumulator ()

	* src/glade-app.c, src/glade-project.c and src/glade-command.c:
	  use of GladeWidgetClass toplevel flag.

	* src/glade-gtk.c: Use of GladeBaseEditor for GtkMenuBar, GtkToolBar
	  and GtkMenu editors.

	* src/glade-marshallers.list: added OBJECT:OBJECT,UINT
	  BOOLEAN:OBJECT,UINT BOOLEAN:OBJECT,OBJECT and STRING:OBJECT

	* src/glade-property.[ch]: Added old_value parameter to GladeProject
	  "value_changed" signal.

	* src/glade-widget-class.[ch]: added toplevel flag to GladeWidgetClass

	* src/glade.h: added GLADE_XML_TAG_TOPLEVEL

	* src/glade-base-editor.[ch]: Created GladeBaseEditor class from
	  GtkMenuBarEditor code from glade-gtk.c

	* widgets/gtk+.xml.in:
	  o added launch-editor-function for GtkToolbar and GtkMenu.
	  o Set GtkTextView post-create-function to empty (we do not need a
	    placeholder in it).
	  o Set toplevel="True" in GtkWindow and GtkMenu.

	* doc/widgetclasses.sgml: added toplevel property docs

	* po/POTFILES.in: added src/glade-base-editor.c
2006-07-13 21:38:19 +00:00
Valek Frob
8ce781c124 Updated russian translation. 2006-07-12 18:54:54 +00:00
Tristan Van Berkom
927d5d3221 Added new icons.
* pixmaps/16x16/Makefile.am, pixmaps/22x22/Makefile.am:
	  Added new icons.

	* src/glade-widget.class.c, src/glade-cursor.c:
	  Rework custom cursor code.
2006-07-06 21:45:22 +00:00
Tristan Van Berkom
ddeae654c8 Check for --disable-gnome arg.
* configure.in: Check for --disable-gnome arg.
2006-07-06 18:48:39 +00:00
Tristan Van Berkom
c9197e4632 fixed broken build. 2006-07-06 16:46:52 +00:00
Nguyen Thai Ngoc Duy
70f816e104 Fixed misspelled 'phạm vị' 2006-07-06 13:43:51 +00:00
Juan Pablo Ugarte
07451bee3c *** empty log message *** 2006-07-05 20:35:10 +00:00
Juan Pablo Ugarte
3bc5abdfe4 fixed bug 345353 "Implement "finish" signal on GladeProject"
* src/glade-project.[ch]: fixed bug 345353
  "Implement "finish" signal on GladeProject"

* src/glade-gtk.c: removed idle functions, replaced conecting to
  GladeProject::parse-finished signal.
2006-07-05 20:23:38 +00:00
Juan Pablo Ugarte
277a397364 fixed bug 343712 "Gnome stock items not recognized by glade-3" Added
* src/glade-builtins.[ch]: fixed bug 343712
  "Gnome stock items not recognized by glade-3"
  Added glade_standard_stock_append_prefix () and reworked/optimized
  glade_standard_stock_get_type ()

* src/glade-catalog.c: make every catalog init function be called before
  loading any of them.

* src/glade-gnome.c: Added GNOME stock items using gtk_stock_add () in
  glade_gnomeui_init ()
2006-07-05 18:59:50 +00:00
Tristan Van Berkom
1062e5e485 Fixed compiler warnings by adding an include. 2006-07-03 17:46:13 +00:00
Tristan Van Berkom
65730f850e o Added "#if 0" debugging code and removed an old comment that doesnt make
* src/glade-command.c:
	  o Added "#if 0" debugging code and removed an old comment that doesnt make
	    sence anymore.
	  o Now refresh packing properties in set-property commands, as we keep a
	    reference to the GladeProperty, which may be reset on the GladeWidget in
	    question when added to a child.

	* src/glade-gtk.c: Removed a large complex code segment in
	  glade_gtk_table_set_child_property() that in the end wasnt needed at all.
2006-06-30 03:42:28 +00:00
Francisco Javier F. Serrador
098a0fbc29 Updated Spanish translation.
2006-06-30  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation.
2006-06-29 23:46:20 +00:00
Tristan Van Berkom
3d2ccb5298 Major rework underway, phase one complete: Move undo/redo stack logic from
* src/glade-project.[ch], src/glade-command.[ch]: Major rework underway,
	  phase one complete: Move undo/redo stack logic from glade-command to glade-project
	  and add a "changed" signal on the project ("update-ui" is fired also anytime
	  the "changed" signal is fired).

	* src/glade-app.c, src/glade-project-window.c: small changes to accomadated afore
	  mentioned api changes.

	* src/glade-marshallers.list: Added new signal VOID:OBJECT,BOOLEAN
2006-06-29 20:57:42 +00:00
Tristan Van Berkom
36d1b08667 o gtk_window_set_decorated() all GtkWindows (bug 344817) o Fixed
* src/glade-widget.[ch]:
	  o gtk_window_set_decorated() all GtkWindows (bug 344817)
	  o Fixed glade_widget_rebuild(), now properties of internal widgets to composite
	    widgets' properties get transported along.
	  o Fixed popups to only get spawned by the widget in question
	    and not an unknown internal child.
	  o Added widget superuser modes (used by the backend to check when
	    its responsable for maintaining container sizes).
	  o glade_widget_rebuild () fixed so that properties on rebuilt internal
	    children are transfered.

	* src/glade-project.c: let glade-widget take care of property superuser mode
	  at load time.

	* src/glade-fixed.ch: connect_after on button_press to give a chance to
	  the selection

	* src/glade-command.c: Fixed unifies for properties (check that they
	  are on the same widgets).

	* src/glade-gtk.c:
	  o GtkBox check superuser mode to adjust box size
2006-06-25 19:54:14 +00:00
Tristan Van Berkom
ac959a05e5 Added 'default-palette-state' element and attribute declarations.
* widgets/glade-catalog.dtd: Added 'default-palette-state'
	  element and attribute declarations.

	* widgets/gtk+.xml.in, widgets/gnome.xml.in:
	  o Obsolete widget groups are now marked as unexpanded in the
	    palette by default.
	  o Add support for GtkIconView.

	* src/glade-catalog.[ch], src/glade-palette.c:
	  o Add support for parsing 'default-palette-state' catalog tag.
	  o GladePalette now sets the expanded state for widget groups
	    from glade_widget_group_get_expanded().

	* glade-3.desktop.in: Add "GenericName" field, set
	  to "User Interface Designer".
2006-06-25 17:42:26 +00:00
Tristan Van Berkom
b1c78e0f59 Fixed 'unifies' in set propery commands to compare property widgets.
* src/glade-property.c: Fixed 'unifies' in set propery commands to compare
	  property widgets.
2006-06-25 07:12:45 +00:00
Tristan Van Berkom
922158ec52 o Added proxy signals for events used by parenting GladeFixed objects,
* src/glade-widget.[ch]:
	  o Added proxy signals for events used by parenting GladeFixed objects,
	    this way they recieve the event via the "event" signal, and therefore
	    earlier on in the food chain.
	  o Call ->setup_events() recursively in glade_widget_connect_signal_handlers()
	    (now we get all needed events from internal children of composite widgets)

	* src/glade-fixed.[ch]:
	  o Reduced code by using gtk_widget_get_pointer ()
	  o Adjusted to use the new signals on GladeWidget
	  o Removed the redundant override of ->setup_events vfunc.

	* src/glade-marshallers.list: Added BOOLEAN:BOXED type for event signals.
2006-06-25 06:51:32 +00:00
Tristan Van Berkom
89716f6f0b o Unset drag source / drag dest on GladeWidget objects. 2006-06-24 21:31:20 +00:00
Tristan Van Berkom
155705b2e5 Updated.
* TODO: Updated.

	* doc/gladeui-sections.txt: Updated

	* doc/Makefile.am: Ignoring some headers.

	* configure.in: Package name is now glade3-2.91.3 and not glade-3-2.91.3,
	  this conforms with gnome server scripts and matches the cvs name and
	  bugzilla name.
2006-06-24 19:32:21 +00:00
Tristan Van Berkom
787b428bd4 Updated.
* TODO: Updated.
2006-06-24 18:56:35 +00:00
Tristan Van Berkom
a148117c63 Fixing changelog. 2006-06-24 18:29:12 +00:00
Tristan Van Berkom
b43898486c Pass FALSE to gtk_get_option_group() and call gtk_init (NULL, NULL) later
* src/main.c: Pass FALSE to gtk_get_option_group() and call gtk_init (NULL, NULL)
	  later on; this way we pass --version without any display.
2006-06-24 18:23:44 +00:00
Tristan Van Berkom
ebb839fc24 Fixed a crasher in the menu-editor (when a widget name changes and we
* src/glade-gtk.c: Fixed a crasher in the menu-editor
	  (when a widget name changes and we recieve the project's signal,
	  deffer the treeview update to an idle func to avoid the crash).
2006-06-24 17:17:44 +00:00
Tristan Van Berkom
e6e6460a57 added the changelog 2006-06-24 16:36:25 +00:00
Tristan Van Berkom
0b24b97fce o Changed application name to "Glade 3" o Destroy GladeProjectWindow
* src/main.c:
	  o Changed application name to "Glade 3"
	  o Destroy GladeProjectWindow object before exiting.

	* src/glade-app.c:
	  o Fix compiler warning (invalid pointer assignment)

	* src/glade-project-window.c:
	  o Remove WINDOW_TITLE macro. The application name
	    can now be retrieved by calling g_get_application_name()
	  o Change format of window title text.
	  o The window title and statusbar messages now inform users
	    of a project's read-only status.

	* glade-3.desktop.in:
	  o Changed "Name" field to "Glade 3 Interface Designer".
	  o Changed "Comment" field (more in line with HIG).
	  o Changed "Icon" field from "glade-3.png" to "glade-3"
	  o Added "X-GNOME-Bugzilla" fields.
2006-06-24 04:30:21 +00:00
Tristan Van Berkom
95edd61e01 Dont call verify funcs in superuser mode
* src/glade-property.c: Dont call verify funcs in superuser mode

	* src/glade-command.c: Now unification/collapse of multiple properties
	  works seemlessly

	* src/glade-editor.c, src/glade-editor-property.c: Added docs.

	* src/glade-property-class.c: compare 'packing' in glade_property_class_match().

	* src/glade-widget-class.c: Fix compiler warnings.
2006-06-24 03:47:12 +00:00
Tristan Van Berkom
c0adf25cc9 Added a weak reference to the GladeProperty and clear itself when the
* src/glade-editor-property.[ch]: Added a weak reference to the
	  GladeProperty and clear itself when the GladeProperty goes away,
	  also ditch the "closed" handler for projects, projects closing will
	  result in GladeProperty finalizing if all goes well.
	  (btw, this fixes a crash when the user hits cancel in a query dialog).
2006-06-24 00:27:02 +00:00
Tristan Van Berkom
e1c49b6dc4 Fixed undo/redo of GtkBox children drags.
* src/glade-gtk.c: Fixed undo/redo of GtkBox children drags.
2006-06-23 23:47:16 +00:00
Tristan Van Berkom
7cc445ed29 Check for NULL GError return locations from g_option_context_parse ()
* src/main.c: Check for NULL GError return locations from
	  g_option_context_parse () (when it returns FALSE).
2006-06-23 05:18:40 +00:00
Francisco Javier F. Serrador
fe92acad39 Updated Spanish translation.
2006-06-23  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
2006-06-22 22:38:07 +00:00
Tristan Van Berkom
5e663f75e1 adding the plus 2006-06-22 20:58:02 +00:00
Tristan Van Berkom
f9c7f9ebd0 src/glade-widget-class.[ch] Create cursors for adding widgets
* src/glade-widget-class.[ch] Create cursors for adding widgets

	* src/glade-cursor.c: when setting "add" type... lookup the widget_class
	  cursor.

	* pixmaps/Makefile.am: added plus.png
2006-06-22 20:57:22 +00:00
Tristan Van Berkom
9dc38f0d93 improved drag inside GtkBox... TODO: reorder children properly so that
* src/glade-gtk.c: improved drag inside GtkBox... TODO: reorder children
	  properly so that undo/redo works.

	* src/glade-fixed.c: Fixed updates to fixed->mouse_[x,y] on configures.
2006-06-22 20:40:57 +00:00
Tristan Van Berkom
fb82854a6c 's/g_return_if_fail/g_return_val_if_fail/'
* src/glade-palette.c: 's/g_return_if_fail/g_return_val_if_fail/'

	* src/glade.h, src/glade-builtins.h: Only the forward declaration
	  goes in glade.h.

	* src/glade-widget-class.c, widgets/gtk+.xml.in:
	  Fixed inheritance of the "->fixed" member in glade_widget_class_merge().
2006-06-22 18:41:31 +00:00
Juan Pablo Ugarte
0a98636856 *** empty log message *** 2006-06-21 18:03:33 +00:00
Tristan Van Berkom
6f94dc2916 Added glade-palette-item.[ch], glade-palette-box.[ch] and
* src/Makefile.am: Added glade-palette-item.[ch],
	  glade-palette-box.[ch] and glade-palette-expander.[ch]
	  to build sources.
2006-06-21 01:50:16 +00:00
Tristan Van Berkom
97b88b88f5 Added glade-palette-item.[ch], glade-palette-box.[ch] and
* src/Makefile.am: Added glade-palette-item.[ch],
	  glade-palette-box.[ch] and glade-palette-expander.[ch]
	  to build sources.

	* src/glade.h, src/glade-builtins.[ch]: Declare an enum
	  GladeItemAppearance and define a GType for it.

	* src/glade-palette.[ch]: Entirely reworked. new API.

	* src/glade-app.c, src/glade-fixed.c,
	  src/glade-placeholder.c: Recognize new palette API.

	* src/glade-project-window.c: Added UI functionality
	  to support features in the new palette.
2006-06-21 00:59:16 +00:00
Tristan Van Berkom
a76e96fb5f Added bugs 345438, 303679 and 345470 to the blockers.
* TODO: Added bugs 345438, 303679 and 345470 to the blockers.
2006-06-20 21:05:25 +00:00
Tristan Van Berkom
2f24963205 Added bugs 345438 and 303679 to the blockers.
* TODO: Added bugs 345438 and 303679 to the blockers.
2006-06-20 18:14:43 +00:00
Tristan Van Berkom
0185e3b17e Added bug 345438 to the blockers.
* TODO: Added bug 345438 to the blockers.
2006-06-20 15:57:04 +00:00
Tristan Van Berkom
db094f73ca Used the gtknotebook page property to negotiate pages when editing tabless
* src/glade-gtk.c, widgets/gtk+.xml.in: Used the gtknotebook page
	  property to negotiate pages when editing tabless notebooks
	  (this property is not used correctly by libglade anyway... as it
	  would be set before any pages are added).
2006-06-19 22:52:40 +00:00
Tristan Van Berkom
3a71ee740f Rework for new icons.
* pixmaps/Makefile.am: Rework for new icons.

	* configure.in: Add new Makefiles for output.

	* src/glade-clipboard-view.c, src/glade-project-view.c:
	  o Treeview widgets now use 16x16 icons.
	  o More padding between icons and widget labels.

	* src/glade-palette.c: Now uses 22x22 icons.

	* src/glade-widget-class.[ch]:
	  o Widget classes now have a 16x16 'small' icon and a
	    22x22 'large' icon.
	  o Abstract widget classes do not need to have icons.

	* src/glade-project-window.c: fix memory leak in
	  gpw_save_as ().
2006-06-19 22:16:36 +00:00
Juan Pablo Ugarte
242fdd1561 fixed bug 345209 "glade 3's signal naming inconsistent with glade 2's"
at glade_signal_write() and glade_signal_new_from_signal_info()
2006-06-19 22:05:21 +00:00
Juan Pablo Ugarte
8924bae76e *** empty log message *** 2006-06-19 21:15:22 +00:00
Tristan Van Berkom
3681a72697 Updated.
* TODO: Updated.
2006-06-19 21:02:48 +00:00
Tristan Van Berkom
5cfcdae0af Added missing changelog entry. 2006-06-19 18:05:18 +00:00
Tristan Van Berkom
f7cbae0273 removing debug print (oops) 2006-06-18 04:47:14 +00:00
Tristan Van Berkom
d3038a8e45 Added glade_property_[push/pop]_superuser()
* src/glade-property.[ch]: Added glade_property_[push/pop]_superuser()

	* src/glade-command.c: refined set_property_execute() and started using
	  glade_property_push/pop_superuser().

	* src/glade-project.c: super-user property mode at load time.

	* src/glade-fixed.c: Added "can-resize" property

	* src/glade-widget-class.c: Made sure to parse a "Fixed" if there are no
	  other child tags.

	* src/glade-gtk.c, widgets/gtk+.xml.in: Implemented drag on GtkBox children
2006-06-17 20:30:23 +00:00
Francisco Javier F. Serrador
aa13bb6750 Updated Spanish translation.
2006-06-15  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
2006-06-15 01:06:49 +00:00
Tristan Van Berkom
acb6a548e2 fixed typos
* doc/catalogintro.sgml: fixed typos

	* src/glade-command.c: Removed unneeded "if"

	* src/glade-fixed.[ch]: connect/disconnect child now takes GObject arg
	  instead of GladeWidget (for cases of widget rebuilds), removed redundant
	  variables

	* src/glade-gnome.c, src/glade-gtk.c: changed glade_widget_class_container_add
	  to glade_widget_add_child()

	* src/glade-widget.c:
	  o Fixed glade_widget_rebuild() in regards to using the
	    _add_child()/_remove_child() api and visibility.
	  o Fixed more event related selection bugs (by retrieving the mouse
	    pointer with window_get_pointer())
	  o Fixed GladeWidgetDataTag to use the quark everywhere
2006-06-14 20:57:37 +00:00
Tristan Van Berkom
57448a5fd9 o Made widgets visible by default and toplevels invisible by default
* TODO: Updated.
2006-06-12 22:52:31 +00:00
Tristan Van Berkom
e908e07e30 Updated.
* TODO: Updated.
2006-06-12 20:41:53 +00:00
Tristan Van Berkom
9b1ccedfd9 Vincent pointed out compile errors on gcc 4.x, fixed.
* src/glade-widget-class.c: Vincent pointed out compile errors on gcc 4.x,
	  fixed.

	* src/glade-gtk.c: Simplified table code a little bit, improved table
	  rezising when shrinking left/up with full-table widgets.

	* src/glade-utils.c: Fixed the module load code to report errors better
	  (and dont check system paths for the module, only the glade-3 modules dir.

	* widgets/gtk+.xml.in: Reorganized groups to be more usefull and logical
	  (inspired by gazpacho ordering).
2006-06-12 19:04:24 +00:00
Tristan Van Berkom
9e9e557121 Keep the same row/col span when performing a drag
* src/glade-gtk.c: Keep the same row/col span when performing a drag
2006-06-12 02:49:40 +00:00
Tristan Van Berkom
8408d4ee48 Fixed drag, now is smoother and allows for growing out properly
* src/glade-gtk.c: Fixed drag, now is smoother and allows for growing out
	  properly
2006-06-12 02:16:10 +00:00
Tristan Van Berkom
3b2eabc1e3 Dont fight with parenting GladeFixed widgets for setting the cursor
* src/glade-placeholder.c: Dont fight with parenting GladeFixed widgets
	  for setting the cursor

	* src/glade-fixed.c: Fixed event handling, now fixed inside fixed inside
	  fixed with child widgets with or without thier own windows and events
	  that come from parent widgets... all of this seems to be working perfectly.
2006-06-12 02:09:55 +00:00
Tristan Van Berkom
073ea0ae3f Normal menu items for property editor, palette, and clipboard (now they
* src/glade-project-window.c: Normal menu items for property
	  editor, palette, and clipboard (now they only "show" windows, making
	  them accessable with less clicks.

	* src/glade-project-view.c: now double clicks show project widgets,
	  and never hide them.
2006-06-12 01:02:54 +00:00
Tristan Van Berkom
c7ee76cd83 Fixed bug 2006-06-11 11:11:32 +00:00
Tristan Van Berkom
020446e22f updated
* doc/tmpl/*: updated

	* src/glade-fixed.[ch], src/glade-widget.[ch]:
	  Improved, now made replace_child a vfunc... fixed some
	  event related bugs.

	* src/glade-gtk.c, widgets/gtk+.xml.in: Added free-form placement
	  for GtkTable widget.

	* src/glade-utils.c: added glade_util_deep_fixed_event(), used to
	  propagate events down to fixed containers that dont have windows.
2006-06-11 10:35:47 +00:00
Tristan Van Berkom
70b5c89a75 o Changed the way we retrieve the mouse position in child events, so that
we dont rely on the nature of the properties.
2006-06-10 12:37:57 +00:00
Tristan Van Berkom
2374fe671a o Now you can have a GladeFixed inside a GladeFixed, in any hierarchical order
you wish, the cursor updates properly in regard to the rules:
	    - Add sign with class selected on the palette
	    - Only direct children may be used for drag/resize, or thier direct child
	      placeholders in turn, cursor will display correctly in those cases.
2006-06-10 11:28:04 +00:00
Tristan Van Berkom
876b4e4748 Removed g_debug()
* src/glade-catalog.c: Removed g_debug()
2006-06-10 09:35:19 +00:00
Tristan Van Berkom
82e48a4b50 o Use event widget and not signal widget to use with
* src/glade-widget.c:
	  o Use event widget and not signal widget to use with
	    gtk_widget_translate_coordinates(), this fixes the imfamous bug 327379
	  o Recurse through non-project objects when looking for widget at mouse event;
	    this fixes the internal widget selection bug (bug 338894).

	* src/glade-placeholder.c: Placeholders dont ever get selection anymore, its
	  only confusing for no reason, adds extra clicks to select relevent widgets
	  (note that every second click was going to the parent; making the parent
	  fight with the placeholder for selection... since its pointless, its gone).

	* TODO: Updated
2006-06-10 09:15:45 +00:00
Tristan Van Berkom
d23f8ceafb Fixed bug that was using uninitialized data to configure children at load
* src/glade-fixed.c: Fixed bug that was using uninitialized data
	  to configure children at load time.
2006-06-10 07:42:15 +00:00
Tristan Van Berkom
b1b086b02d Fixing typo 2006-06-09 22:12:46 +00:00
Tristan Van Berkom
ed2e3af6f2 o Fixed "paste at mouse position" o Fixed cursors a bit... event handling
* src/glade-fixed.c:
	  o Fixed "paste at mouse position"
	  o Fixed cursors a bit... event handling a bit too

	* src/glade-placeholder.c: Special case fixed stuff for now,
	  so that drag/resize works at least from deep placeholders.

	* src/glade-widget.c: Touched the event handling code.
2006-06-09 22:10:59 +00:00
Tristan Van Berkom
16743369c6 Made changes for changed files.
* src/Makefile.am, po/POTFILES.in: Made changes for changed files.

	* src/glade-fixed.[ch]: The new GladeWidget derived free form placement
	  support object.

	* src/glade-fixed-manager.[ch]: Removed.

	* doc/catalogintro.sgml: made mention of new 'fixed' property on
	  'glade-widget-class' tag

	* doc/gladeui-sections.txt, doc/Makefile.am,
	  doc/tmpl/*, doc/gladeui.types: Updated for file changes.

	* src/glade-app.c, src/glade-command.c, src/glade-gnome.c, src/glade.h:
	  Changed for new apis in glade-widget and glade-fixed.

	* src/glade-gtk.c:
	  o Changed for new apis in glade-widget and glade-fixed.
	  o Restructured, now *all* class supports are listed class
	    by class

	* src/glade-property-class.h: Fixed docs.

	* src/glade-widget-class.[ch]:
	  o Added glade_widget_class_query ()
	  o Added glade_widget_class_create_widget ()
	  o Added glade_widget_class_create_internal ()

	* src/glade-widget.[ch]: API is stablizing now... lots of cleanup done,
	  added construct properties used in the constructor to create properties and
	  runtime instances.

	* widgets/gtk+.xml.in:
	  o Toolbars expand=False by default in GtkVBoxes
	  o GtkPaned now works a little stabler
	  o GtkFixed/GtkLayout marked 'fixed'.
2006-06-09 09:43:15 +00:00
Tristan Van Berkom
6902e0f83b Temporary evil externing untill GladeWidget migration is complete.
* src/glade-fixed-manager.c: Temporary evil externing untill GladeWidget
	  migration is complete.

	* src/glade-widget.[ch]: Completely reworked file structure and changed
	  a few things:
	  o button_press_event() vfunc now available to be called on mouse clicks
	    of the said widget.
	  o added container api abstraction provided by fixed manager and reffitted
	    for my anticipated integration
2006-06-08 02:41:28 +00:00
Tristan Van Berkom
66b079666d o Reverting the simplification of gtkbox, the regression was that the box
* src/glade-gtk.c, widgets/gtk+.xml.in:
	  o Reverting the simplification of gtkbox, the regression was that the box
	    placeholders were not adjusting properly on undo/redo of create/delete/cut/paste
	    commands.
	  o Fixing GtkFixed/GtkLayout to not call glade_gtk_container_add/remove_child for
	    its children.

	* src/glade-command.c: Slight simplifications made.
2006-06-07 18:00:32 +00:00
Tristan Van Berkom
897c5a14f8 fixed double free in glade_command_add_signal_finalize()
* src/glade-command.c: fixed double free in glade_command_add_signal_finalize()

	* src/glade-signal-editor: Fixed signal editor to truely delete handler/userdata
	  when it previously only appeared to.
2006-06-07 03:36:51 +00:00
Tristan Van Berkom
ee495edde6 Updated for 3.0 blockers.
* TODO: Updated for 3.0 blockers.
2006-06-06 18:22:14 +00:00
Tristan Van Berkom
4b850e3a1c Only GtkWidgetClass descendants have accelerators.
* src/glade-widget-class.c: Only GtkWidgetClass descendants have
	  accelerators.
2006-06-06 18:21:08 +00:00
Tristan Van Berkom
ecacf3f1cb o Fixed segfaults on color-button o Fixed color-button & font-button
* src/glade-gtk.c, widgets/gtk+.xml.in:
	  o Fixed segfaults on color-button
	  o Fixed color-button & font-button (dropped unused properties)
	  o Fixed initial label text on buttons (and subclass defaults)
2006-06-06 14:31:25 +00:00
Tristan Van Berkom
947f877bca accelerator key selection list is split up nicer now. 2006-06-06 04:45:39 +00:00
Tristan Van Berkom
c7f2b09fe2 fixing bugs in previous commit. 2006-06-05 23:51:05 +00:00
Tristan Van Berkom
9ea11b1eef o Added submenues to the accel key combo. 2006-06-05 21:31:16 +00:00
Tristan Van Berkom
cd7c077bc3 strcmp() --> g_utf8_collate() 2006-06-05 18:17:36 +00:00
Tristan Van Berkom
64affed8ef accel dialog: Make combo have an entry and avoided segfaults... also now a
* src/glade-editor-property.c: accel dialog: Make combo have an entry and
	  avoided segfaults... also now a little easier to remove accelerators.
2006-06-05 17:28:57 +00:00
Tristan Van Berkom
21a488e56d Updated
* TODO: Updated
2006-06-05 04:40:57 +00:00
Tristan Van Berkom
f1519c8113 Added GtkToolItem child support to GtkToolbar and new widgets classes
* widgets/gtk+.xml.in: Added GtkToolItem child support to GtkToolbar and
	  new widgets classes GtkToolItem, GtkSeparatorToolItem, GtkToolButton,
	  GtkMenuToolButton, GtkToggleToolButton and GtkRadioToolButton.

	* src/glade-gtk.c:
	  o added GtkToolbar support functions.
	  o cleanup glade_gtk_menu_shell_get_child_property() and
	    glade_gtk_menu_shell_set_child_property() functions.
	  o tried to make Menu editor UI prettier separating a bit
	    name/type from properties.
2006-06-05 04:35:03 +00:00
Tristan Van Berkom
6126666eb4 Fixing windows build 2006-06-05 04:31:11 +00:00
Tristan Van Berkom
26620fb9cb Added autogenerated keysyms (but not autogenerating them at the moment).
* src/Makefile.am, src/glade-keysyms.c: Added autogenerated keysyms
	  (but not autogenerating them at the moment).

	* src/glade-builtins.[ch]: Added GLADE_TYPE_ACCEL_GLIST, GLADE_PARAM_SPEC_ACCEL
	  and some convenience funcs.

	* src/glade-editor-property.c: Added GladeEpropAccel.

	* src/glade-editor.c: take accel props into account

	* src/glade-parser.c: Make strings for GdkModifierType in dump_widget.

	* src/glade-property-class.c, src/glade-widget-class.c:
	  o Now you can get the GladeWidgetClass from the GladePropertyClass
	  o Added string conversion from GladeParamSpecAccel properties
	    (but vise versa)
	  o GladeWidgetClassSignal --> GladeSignalClass, not GSignalQuery struct
	    is included too.

	* src/glade-property.c, src/glade-widget.c: Load/save support for accel properties.
2006-06-05 04:17:27 +00:00
Tristan Van Berkom
52ac2c4117 o Application menus now marked for translation
* src/glade-project-window.c: Action groups now assigned a
	  translation domain for application menus.
2006-06-03 21:52:59 +00:00
Tristan Van Berkom
e58cc74406 o stdlib.h now included on all platforms 2006-06-03 21:39:21 +00:00
Tristan Van Berkom
1529559ff3 Fix for bug 337959.
* src/glade-project-window.c, src/glade-app.[ch],
          src/glade-utils.[ch]: Fix for bug 337959.

        * src/main.c, glade-editor-property.c: Fixed memory leaks.
2006-06-03 21:30:02 +00:00
Tristan Van Berkom
cce24e22b9 o Now bookless classes' info buttons are show insensitive. o No info
* src/glade-editor-property.c, src/glade-editor.c:
	  o Now bookless classes' info buttons are show insensitive.
	  o No info buttons on query dialogs.

	* Many files: changed "== TRUE" to be "!= FALSE"
2006-06-03 17:57:50 +00:00
Tristan Van Berkom
fd104da64a Fixed segfault on widget copying.
2006-06-02  Tristan Van Berkom <tvb@gnome.org>

	* src/glade-widget.c: Fixed segfault on widget copying.

2006-06-02  Juan Pablo Ugarte <juanpablougarte@gmail.com>

	* src/glade-gtk.c, widgets/gtk+.xml.in: removed support functions from
	  GtkBox... it all still works.
2006-06-02 19:34:41 +00:00
Tristan Van Berkom
c56a2ceaf7 completing the commit 2006-06-02 16:59:16 +00:00
Tristan Van Berkom
99f302ab2f Fixed spelling mistakes in alot of sources (bugs 342972 & 343087)
* Fixed spelling mistakes in alot of sources (bugs 342972 & 343087)
2006-06-02 16:52:14 +00:00
Tristan Van Berkom
f0fe930807 Added -mwindows to glade3_LDFLAGS in win32 compile mode
* src/Makefile.am: Added -mwindows to glade3_LDFLAGS in win32 compile mode

	* src/glade-xml-utils.c: Fallback on default namespace when searching
	  funcs from the catalog (this seems to only be needed in windows builds)

	* src/glade-utils.c: glade_util_have_devhelp() fixed with better warning messages
	  and the function was returning -1 (TRUE) when there was no devhelp in the
	  program path (*doh*).
2006-05-28 04:33:52 +00:00
Clytie Siddall
63573c8191 vi.po: Updated Vietnamese translation. 2006-05-27 09:03:41 +00:00
Tristan Van Berkom
612e183b3c Added gnome catalog relevent files for translation.
* po/POTFILES.in: Added gnome catalog relevent files for translation.

	* src/glade-devhelp.[ch]: Removed.

	* configure.in, src/Makefile.am: shuffled, devhelp removed

	* src/glade-project-window.c, src/glade-utils.[ch]: implement
	  devhelp search as `devhelp -s \"search string\"`. (spawn it)
2006-05-27 01:22:27 +00:00
Clytie Siddall
025d0b5377 vi.po: Updated Vietnamese translation. 2006-05-26 05:39:45 +00:00
Francisco Javier F. Serrador
9d4e29716e Updated Spanish translation.
2006-05-25  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
2006-05-25 20:03:55 +00:00
Clytie Siddall
c4525f82d6 vi.po: Updated Vietnamese translation. 2006-05-25 12:18:29 +00:00
Tristan Van Berkom
d5280a78fe fixing compile warnings (constifying) 2006-05-25 04:08:38 +00:00
Francisco Javier F. Serrador
e54c109201 Updated Spanish translation.
2006-05-23  Francisco Javier F. Serrador  <serrador@openshine.com>

	* es.po: Updated Spanish translation.
2006-05-23 01:28:52 +00:00
Tristan Van Berkom
fbb818c1ba Installed unwanted garbage to pass distcheck.
* src/Makefile.am, widgets/Makefile.am: Installed unwanted garbage
	  to pass distcheck.

	* src/glade-devhelp.c: Navigational buttons insensitive at startup.

	* src/glade-catalog.c: Unexposed a private function.

	* src/glade-xml-utils.c: made alloc_string glade_xml_alloc_string,
	  alloc_propname: ditto.

	* src/glade-property.c, src/glade-signal.c:
	  Adjustemtnts made for glade-xml api above

	* src/glade-widget.c:
	  o Adjustemtnts made for glade-xml api above
	  o Properties applied to new objects in two steps now,
	    code around build_object cleaned up... now build_object
	    used also in load code.
2006-05-22 20:54:54 +00:00
Tristan Van Berkom
adc5b5594e touch up after initial edit. 2006-05-18 05:59:10 +00:00
Tristan Van Berkom
85465a487a catalog book specifications now on widget classes
* src/glade.h, src/glade-catalog.c, src/glade-widget-class.[ch]:
	  catalog book specifications now on widget classes

	* src/glade-editor.c, src/glade-editor-property.c: Now get the
	  book name directly from the widget class.

	* doc/catalogintro.sgml: documented added "book" property.

	* widgets/bonobo.xml.in: added gnome catalog dependancy

	* widgets/gnome.xml.in, widgets/gtk+.xml.in: Added book specifications.
2006-05-18 05:19:29 +00:00
Tristan Van Berkom
eb1ec8b868 added check for GnomeUI libs (PKG_CHECK_MODULES)
* configure.in: added check for GnomeUI libs (PKG_CHECK_MODULES)

	* widgets/Makefile.am: New catalogs added (bonobo.xml gnome.xml)

	* widgets/bonobo.xml.in: Created new catalog for libbonoboui.

	* widgets/gnome.xml.in: Created new catalog for libgnomeui.

	* widgets/canvas.xml.in: empty file just to declare the module.
	  GnomeCanvas is declared in gnome catalog.

	* widgets/gtk+.xml.in: added GtkMenuItem "stock-item" property.
	  o added glade_gtk_box_get_internal_child()
	  o disabled GtkLayout's hadjustment and vadjustment properties.

	* src/Makefile.am: added gladegnome conditional build.

	* src/glade-builtins.[ch]: added glade_standard_pixbuf_spec(),
	  glade_standard_gdkcolor_spec() and glade_standard_uint_spec().
	  Fixed stock order in glade_standard_stock_get_type()

	* src/glade-editor-property.c: added G_PARAM_SPEC_VALUE_ARRAY
	  support to GladeEPropText.

	* src/glade-gnome.c: New support file for gnome/bonobo catalogs.

	* src/glade-gtk.h: Created to include it in others plugings.

	* src/glade-gtk.c:
	  o added GtkMenuItem stock-item property.
	  o Moved GladeGtkImageType and GladeGtkButtonType to glade-gtk.h
	  o Moved GLADE_CREATE_USER block from idle function to
	    glade_gtk_button_post_create()

	* src/glade-project.c: fixed bug in glade_project_resource_fullpath()
	  project->path could be NULL.

	* src/glade-property-class.c: added G_PARAM_SPEC_VALUE_ARRAY
	  support in glade_property_class_make_string_from_gvalue() and
	  glade_property_class_make_gvalue_from_string()
2006-05-18 04:06:50 +00:00
Tristan Van Berkom
afebbfc713 o Bumped version to 2.91.3 (for anjuta to get the devhelp 0.12 requirement
correctly).
	  o Bumped version to 2.91.3 (for anjuta to get the devhelp 0.12 requirement
	    correctly).
2006-05-15 18:58:09 +00:00
Tristan Van Berkom
636183398b removed unused var HAVE_DEVHELP
(since WITH_DEVHELP is what is actually used).
2006-05-15 14:23:05 +00:00
Tristan Van Berkom
ef16f6b9d6 Bumping required devhelp version to 0.12 (current devhelp cvs).
* configure.in: Bumping required devhelp version to 0.12
	  (current devhelp cvs).
2006-05-15 14:08:45 +00:00
Tristan Van Berkom
ef236a1a61 Make label inside eventbox visible by default, and dont show the info
* src/glade-editor-property.c: Make label inside eventbox visible
	  by default, and dont show the info button by default.

	* src/glade-gtk.c: Root out the evil calls to gtk_widget_show_all ()
	  (for contextual devhelpish bugs). and plugged a leaked GladeEditorProperty.
2006-05-13 03:38:11 +00:00
Tristan Van Berkom
a121614e3f bullet-proofed glade_util_read_prop_name().
* src/glade-utils.c: bullet-proofed glade_util_read_prop_name().
2006-05-13 00:39:45 +00:00
Tristan Van Berkom
ef7d9f23c2 Applied patch for bug 340692
* doc/Makefile.am: Applied patch for bug 340692

	* src/glade-command.c: glade_command_set_property (), return if
	  the command doesnt change the property.

	* src/glade-editor-property.c: GladeEPropText, if string property is NULL
	  and we recieve "" from the entry, set the property to NULL, if we get
	  NULL from the entry and the property is "", then set the property to
	  "", otherwise set the property to the entry text. (this fixes 339832)

	* src/glade-property.[ch]: constified GValue argument to
	  glade_property_equals_value ().
2006-05-06 07:38:07 +00:00
Tristan Van Berkom
31f5587dd5 Fixed up GtkTable to not refresh placehlolders when doing a
* src/glade-gtk.c: Fixed up GtkTable to not refresh placehlolders when
	  doing a glade_gtk_table_replace_child() replacing a placeholder with
	  a GladeWidget (only the other way around), this way placeholders are
	  preserved during the operation of pasting multiple widgets to a GtkTable
	  (and each pasted widget has its own seperate place in the table).

	* src/glade-command.c: Fixed "props recorded" marker to be marked on a per
	  widget basis, this was causing only one widget in a list of pasted widgets
	  to have its newly introspected packing props recorded (now they are all
	  recorded)

	* src/glade-popup.c: Create insensitive 'paste' items when the clipboard
	  has no selection.

	* src/glade-editor.[ch]: Insensitive "Documentation" and "Reset" buttons when
	  no widget is loaded.
2006-05-06 03:52:46 +00:00
Tristan Van Berkom
fe72b3063a updated.
* doc/gladeui-sections.txt: updated.

	* doc/Makefile.am: Ignome glade-devhelp.h

	* src/glade-devhelp.c: Fixed glitch with radio button notebook
	  tab emulator.

	* src/glade-editor-property.c: Fixed invisible check buttons for
	  optional properties

	* src/glade-project-window.c: Moved the devhelp creating code into
	  glade_project_window_create() where it belongs, now devhelp is
	  invisible by default.

	* src/glade-utils.c:
	  glade_util_get_hbuttons --> glade_util_get_devhelp_hbuttons.
2006-05-04 05:32:28 +00:00
Tristan Van Berkom
f5d3fb6fe6 actually add the "abstract" section.
* doc/gladeui-docs.sgml: actually add the "abstract" section.

	* src/glade-devhelp.c: Improved ui, but navigational buttons on top since
	  I seem to intuitively always look there for them.

	* src/glade-utils.c:
	  o Fixed return without value warnings
	  o Print the error from GModule when it fails.
2006-05-02 04:57:53 +00:00
Tristan Van Berkom
43e6944f56 o Now default on the gtk+ reference manual and put a "documentation"
help menu item pointing to the glade builder documentaiton.
2006-05-01 05:48:47 +00:00
Tristan Van Berkom
c6346f3853 put me as an author, removed the introductory chapter and added its
* doc/gladeui-docs.sgml: put me as an author, removed the introductory
	  chapter and added its content as the "abstract".

	* src/glade-editor.c: Fixed a visibility bug on the class & name entries.

	* src/glade-devhelp.[ch], src/glade-utils.c, src/glade-project-window.c:
	  o Added navigational buttons (forward, back)
	  o Gained realestate by hiding the notebook tabs and putting search &
	    document buttons along side the navigational buttons.
	  o Added api to return a list of buttons in the hbox
	  o Get the buttons and put them in a size group with the expand/collapse
	    buttons (to align the plugin buttons in the project window).
2006-05-01 05:20:17 +00:00
Vincent Geddes
45bcece3b7 Glade now installs theme friendly icons (GNOME Goal #2)
2006-04-28  Vincent Geddes <vgeddes@metroweb.co.za>

	* Glade now installs theme friendly icons (GNOME Goal #2)

2006-04-30  Yevgen Muntyan <muntyan@tamu.edu>

	* src/glade-project-window.c: fixed bug 339855
	  (recent project ordering) and bug 339249.


2006-04-30  Tristan Van Berkom <tvb@gnome.org>

	* src/glade-editor.c: Beautified the editor (added alignments and
	  a gtk-clear icon for the reset button
2006-04-30 07:48:21 +00:00
Tristan Van Berkom
9a9a9fe0d1 o Added an option to completely hide the devhelp window (but it comes
back in full window if a devhelp button is pressed.
2006-04-30 06:42:43 +00:00
Tristan Van Berkom
f9d9a7765b o Cleanup build in src/Makefile.am o Now build and install a devhelp
* configure.in, src/Makefile.am, src/glade-paths.sh.in:
	  o Cleanup build in src/Makefile.am
	  o Now build and install a devhelp module if a usable version
	    of libdevhelp is available

	* src/glade-devhelp.[ch]: A loadable devhelp dockable widgets
	  built into a plugin module.

	* src/glade-app.c, src/glade.h: Added a global for glade_plugins_dir.

	* src/glade-project-window.c, src/glade-utils.[ch]: Detect if there
	  is a devhelp plugin installed and load the devhelp window into
	  the project window in a paned window with the project view.
2006-04-30 06:27:36 +00:00
Tristan Van Berkom
11453fc01c o Put "Documentation" button on the right
* src/glade-editor.c:
	  o Put "Documentation" button on the right

	* src/glade-project-window.c:
	  Added "View->Context Help" Option
2006-04-28 23:47:53 +00:00
Tristan Van Berkom
35fed04113 o Put "Documentation" button on the right o Now searches should end up at
* src/glade-editor.c:
	  o Put "Documentation" button on the right
	  o Now searches should end up at the page index instead
	    of the "struct GtkWidget;" index (for example).
2006-04-28 22:59:26 +00:00
Tristan Van Berkom
dd9622eed8 Added info buttons and apis to enable/disable them + signals emitted to
* src/glade-editor-property.[ch]: Added info buttons and
	  apis to enable/disable them + signals emitted to say what
	  doc book, page and searchstring should be used

	* src/glade-editor.[ch]: Same as glade-editor-property

	* src/glade-utils.c: Added functions for detecting and launching devhelp

	* src/glade-project-window.c: Check if we have devhelp installed; if we do
	  then show help buttons and launch devhelp upon "gtk-doc-search" signals

	* pixmaps/devhelp.png, pixmaps/Makefile.am: Added devhelp book icon

	* src/glade-app.c: Replace a gtk_widget_show_all with a gtk_widget_show
	  on the editor (to avoid needlessly showing hidden buttons).

	* src/glade-project.c: translated property nicks and blurbs.

	* src/glade-property-class.[ch]: Added 'virtual' member and resolve
	  it at initialization.

	* src/glade-widget-class.c: use g_build_filename instead of
	  g_strdup_printf for icon loading.
dified Files:
2006-04-28 02:05:35 +00:00
Tristan Van Berkom
1b58a8af1b Relesed 2.91.1, now we are working on 2.91.2
* configure.in: Relesed 2.91.1, now we are working on 2.91.2
2006-04-26 20:28:48 +00:00
Tristan Van Berkom
ebb0937e4f Updated NEWS 2006-04-26 18:54:06 +00:00
Tristan Van Berkom
cc9d9e932d added atk.xpm to $(libgladeuiinclude_HEADERS)
* src/Makefile.am: added atk.xpm to $(libgladeuiinclude_HEADERS)

	* doc/gladeui-sections.txt: Updated with new apis.

	* widgets/gtk+.xml.in: Listed all atk action properties needed for the gtk
	  catalog.

	* src/glade-property-class.c, src/glade.h:
	  o Added GLADE_TAG_ATK_ACTION & GLADE_TAG_ATK_PROPERTY tag support and
	    stripped out introspection on atk properties.
	  o Synonymous '-' and '_' in property names at catalog load time.

	* src/main.c: backed out the "GTK_MODULES=$GTK_MODULES:gail" module loading thing.

	* src/glade-widget.c: Synonymous '-' and '_' in glade_widget_get_[packing_]property().
2006-04-26 15:13:25 +00:00
Tristan Van Berkom
51e05628e0 Allowed negative custom integer specs.
* src/glade-builtins.c: Allowed negative custom integer specs.

	* src/glade-palette.c: Removed notion of class->in_palette

	* src/glade-widget-class.[ch]: Removed notion of class->in_palette and
	  cleaned up the parsing of generic_name and widget titles.
	  (modifies muntyan's patch on bug 336594).
2006-04-25 18:33:06 +00:00
Tristan Van Berkom
1bfcde2f8a Fixed crasher because of read-only check where project could be NULL.
* src/glade-project.c: Fixed crasher because of read-only check where
	  project could be NULL.
2006-04-25 13:02:10 +00:00
Tristan Van Berkom
7372123c49 Fixed load & save of internal buttons
* src/glade-gtk.c: Fixed load & save of internal buttons

	* src/glade-property.[ch]: Added glade_property_load()
	  (to introspect property values on internal children of composite
	  widgets at creation time).

	* src/glade-widget.c: introspect property values on internal children of composite
	  widgets at creation time
2006-04-24 22:24:29 +00:00
Tristan Van Berkom
6f75c47b02 Fixing errors in my patch. 2006-04-24 17:36:29 +00:00
Tristan Van Berkom
00859f541e Updated
* TODO: Updated

	* doc/gladeui-sections.txt updated

	* src/glade-app.[ch]: Majorly reduced the api, now GladeApp is a
	  singleton. Added "active-project" signal.

	* src/glade-builtins.[ch]: Removed unused variable. Enhanced objects
	  pspec type to recognize interfaces. Added glade_param_spec_objects_get_type()

	* src/glade-clipboard-view.c: Trying a cute border.

	* src/glade-command.c, src/glade-fixed-manager.c,
	  src/glade-placehodler.c, src/glade-popup.c, src/glade-project-view.c,
	  src/glade-project-window.c:
	  Updated for glade-app changes

	* src/glade-editor-property.c: Implemented objects pspec

	* src/glade-editor.[ch]: Added atk tab, added cuteness.

	* src/glade-gtk.c:
	  o Translated image type names
	  o Added button types (translated)
	  o Support for button label & use-underline properties

	* src/glade-parser.c:
	  o Updated for glade-app changes
	  o Added save support for atk actions and relations.

	* src/glade-project.c:
	  o Updated for glade-app changes
	  o Fixed glade_project_fix_object_props for object lists

	* src/glade-property-class.[ch]:
	  o Hardcoded atk relations and action names
	  o Added glade_property_class_make_gvalue(),
	    glade_property_class_get_from_gvalue(),
	    glade_property_class_new_atk_action(),
	    glade_property_class_list_atk_relations(),
	    glade_property_class_atk_realname()
	  o Fixed glade_property_class_is_object()
	    (object lists qualify)

	* src/glade-property.[ch]:
	  o Integrated property load proceedure into glade-property,
	    loading code much cleaner and less redundant.
	    (Added glade_property_read())
	  o Implemented atk properties (save/load)

	* src/glade-utils.[ch]: Added glade_util_read_prop_name(),
	  glade_util_added_in_list(), glade_util_removed_from_list(),
	  glade_util_class_implements_interface()

	* src/glade-widget-class.c: Introspect atk properties

	* src/glade-widget.c: Simplified load code, moved property load
	  code to glade-property, save atk props properly.

	* src/glade.h: Removed the unused atk-relation tag.

	* src/main.c: Load gail (for atk action introspection)

	* src/atk.xpm: New atk icon

	* widgets/gtk+.xml.in:
	  o GtkLabel label property --> translatable
	  o GtkButton label property --> translatable, multi-line
	  o Added GtkButton "type" property and GtkButton remove-child-function
2006-04-24 15:36:45 +00:00
Tristan Van Berkom
df0658fbed Disabled some pointless/obsolete properties.
* widgets/gtk+.xml.in: Disabled some pointless/obsolete properties.
2006-04-19 20:11:31 +00:00
Tristan Van Berkom
adcc6ab623 Simplified code and added comments
* src/glade-editor-property.c: Simplified code and added comments

	* src/glade-property-class.c: Fixed possible deadlock in
	  glade_property_class_make_string_from_flags

	* src/glade-widget.c: Enhanced trace output

	* widgets/gtk+.xml.in: Disabled some pointless/obsolete properties.
2006-04-19 20:11:09 +00:00
Daniel Nylander
329f64a77f Updated Swedish translation.
2006-04-19  Daniel Nylander  <po@danielnylander.se>

        * sv.po: Updated Swedish translation.
2006-04-18 22:30:45 +00:00
Tristan Van Berkom
b6e5040700 Added webdocs target to tailor docs for the web (to cross-link to the
* doc/Makefile.am: Added webdocs target to tailor docs for the web (to cross-link
	  to the developer.g.o api docs properly).

	* doc/gladeui-sections.txt, doc/tmpl/*: Updated sections for new apis
2006-04-18 18:33:07 +00:00
Tristan Van Berkom
f614504ece o Added #include "config.h" for GETTEXT_PACKAGE, now glade-gtk shares the
* src/glade-gtk.c:
	  o Added #include "config.h" for GETTEXT_PACKAGE, now glade-gtk shares the same
	    domain as libgladeui-1.
2006-04-18 16:40:31 +00:00
Tristan Van Berkom
c43af646b1 Open file in "a+" mode and not "w", which was truncating the file only to
* src/glade-utils.c: Open file in "a+" mode and not "w", which was
	  truncating the file only to check if it was writable ( ! doh ! )

	* src/glade-widget.[ch]:
	  o Added GladeCreateReason argument to glade_widget_new_for_internal_child(),
	    now internal children get post create functions called for them.
	  o Fixed bug 336581 (apply internal widget names at load time).

	* src/glade-gtk.c: Added per dialog support for dialog buttons
	  (get_children(), get_internal_child() && create internals in post_create())
	  (Fixing bug 337196)

	* widgets/gtk+.xml.in: Removed redundant declaration of glade_gtk_dialog_post_create()
	  in the GtkMessageDialog, added "get-children-function" support to GtkDialog.
2006-04-18 14:53:58 +00:00
Kjartan Maraas
68c4dd4ace Remove obsolete entry for no_NO. And the translation.
2006-04-17  Kjartan Maraas  <kmaraas@gnome.org>

	* configure.in: Remove obsolete entry for no_NO.
	* po/no.po: And the translation.
2006-04-17 12:08:15 +00:00
Vincent van Adrighem
6fa728cce4 Translation added.
2006-04-14  Vincent van Adrighem  <adrighem@gnome.org>

	* nl.po: Translation added.
2006-04-14 12:21:26 +00:00
Francisco Javier F. Serrador
123b92a3bd Updated Spanish translation
2006-04-13  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation
2006-04-13 10:06:10 +00:00
Tristan Van Berkom
0d0b6a0258 Fixed broken build (I commited with an error of undefined W_OK for
* src/glade-utils.c: Fixed broken build (I commited with an error
	  of undefined W_OK for g_access), now we actually try to open the
	  file for writing to see if its writable.

	* doc/catalogintro.sgml: Added a bit about the new init-function by Juan.
2006-04-11 18:17:10 +00:00
Clytie Siddall
8b94ffcc13 vi.po: Updated Vietnamese translation. 2006-04-11 08:56:20 +00:00
Tristan Van Berkom
8b28f4a6f1 o Manage the sensitivities of all the ui actions. o Fix some issues with
* src/glade-project-window.c:
	  o Manage the sensitivities of all the ui actions.
	  o Fix some issues with the Undo & Redo actions.

	* src/glade-project.[ch]:
	  o Detect if project file is read-only. New property "read-only"
	  o Detect if project has a selection. New property "has-selection"

	* src/glade-clipboard.[ch]:
	  o Detect if clipboard has selected items to paste.
	    New property "has-selection"

	* src/glade-utils.h: New function: glade_util_file_is_writeable ().
2006-04-10 15:19:22 +00:00
Tristan Van Berkom
e43a7ff0cf o Use glib instead of libpopt for command-line parsing. o Added
* src/main.c:
	  o Use glib instead of libpopt for command-line parsing.
	  o Added '--version' option.
	  o Do not try to open non-existent files supplied
	    on command-line.

	* configure.in: Remove libpopt dependency.
2006-04-10 14:29:53 +00:00
Clytie Siddall
e89c68c7c2 vi.po: Updated Vietnamese translation. 2006-04-10 12:44:59 +00:00
Tristan Van Berkom
83799c59c2 Removed GDK_WINDOW_TYPE_HINT_UTILITY hint from palette, as this does weird
* src/glade-project-window.c: Removed GDK_WINDOW_TYPE_HINT_UTILITY hint from
	  palette, as this does weird things like remove it from the tab list on
	  some window managers.

	* src/glade-catalog.c: Fixed possible segfault by assigning GError * to NULL.
2006-04-05 20:48:55 +00:00
Tristan Van Berkom
ce7cf80af9 new GladeEditorProperty class GladeEPropAdjustment.
* src/glade-editor-property.c: new GladeEditorProperty class
	  GladeEPropAdjustment.

	* src/glade-gtk.c: removed old GtkSpinButton adjustment support.
	  added glade_gtk_spin_button_set_adjustment ().

	* src/glade-property-class.c: added support for GtkAdjustment
	  properties.

	* widgets/gtk+.xml.in: added default adjustment values for
	  GtkSpinButton and GtkRange. Disabled GtkViewport and
	  GtkScrolledWindow adjustment properties.
2006-04-05 19:40:45 +00:00
Francisco Javier F. Serrador
c4dfd6ac4a Updated Spanish translation.
2006-04-05  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation.
2006-04-05 15:47:45 +00:00
Tristan Van Berkom
5210b07656 Added glade_widget_is_dupping()
* src/glade-widget.[ch]: Added glade_widget_is_dupping()

	* src/glade-property.c: Dont call verify functions if the project is
	  loading or there is a widget recursive dup happening.

	* src/glade-property-class.h: Clarified docs

	* src/glade-gtk.c: Removed obsolete call to glade_project_is_loading() in
	  a verify function.
2006-04-04 22:15:38 +00:00
Tristan Van Berkom
44073633cf Refitted Yevgen Muntyan's patch on bug 336579 to apply for "Save" as well
* src/glade-project-window.c: Refitted Yevgen Muntyan's patch on bug 336579
	  to apply for "Save" as well and applied (also enhanced saving untitled projects
	  when prompted at close time).
2006-04-04 16:12:26 +00:00
Tristan Van Berkom
f48c074151 Updated docs to reflect the recently implemented installation method.
2006-04-04  Tristan Van Berkom <tvb@gnome.org>

	* doc/catalogintro.sgml: Updated docs to reflect the recently implemented
	  installation method.

2006-04-04  Yevgen Muntyan <muntyan@tamu.edu>

	* configure.in, src/Makefile.am, src/glade-3.pc.in:
	  New pc file for extention libraries to find where to install there catalogs,
	  pixmaps and library.
2006-04-04 14:47:15 +00:00
Tristan Van Berkom
b93927e934 Added a "parent_name" argument to glade_widget_new_for_internal_child(),
* src/glade-widget.[ch]: Added a "parent_name" argument to
	  glade_widget_new_for_internal_child(), create internal widget names
	  accordingly.

	* src/glade-gtk.c: Adjusted callers to glade_widget_new_for_internal_child().
2006-04-04 13:27:06 +00:00
Tristan Van Berkom
b19d27205b Added GladeCatalogInitFunc so you could define a function to be executed
* src/glade-catalog.c: Added GladeCatalogInitFunc so you could define a function
	  to be executed before instantiating any catalog's object.

	* src/glade-project-view.c: glade_project_view_populate_model now shows toplevels
	  in the right order.

	* src/glade-property.c: fixed a bug in glade_property_write_impl which prevented
	  properties with an empty string as value being saved.

	* src/glade-utils.[c/h]: new function glade_util_load_library() moved from
	  glade_widget_class_load_library()

	* src/glade-widget-class.c: glade_widget_class_load_library() replaced with
	  glade_util_load_library()

	* src/glade.h: added tag GLADE_TAG_INIT_FUNCTION.
2006-04-03 19:56:02 +00:00
Clytie Siddall
8047d1fef8 vi.po: Updated Vietnamese translation. 2006-03-30 06:18:32 +00:00
Tristan Van Berkom
186388d786 glade_project_open() fixed segfault on open faiure.
* src/glade_project.c: glade_project_open() fixed segfault
	  on open faiure.

	* src/glade-property-class.[ch]: Added glade_property_class_void_value()

	* src/glade-widget.c: when creating new objects; ignore voided defaults
	  using glade_property_class_void_value() (and finally added myself as
	  an author).

	* src/glade-editor-property.c: Fixed segfaults & assertions when dealing
	  with NULL colors in GladeEPropColor.

	* widgets/gtk+.xml.in: Dont save virtual "pages" property on notebook,
	  if we dont need it in glade-2 files we dont need it period.
2006-03-29 22:15:42 +00:00
Tristan Van Berkom
1762f4b696 Removed idle handler hack that has been obsoleted by Vincent's smarter
2006-03-22  Tristan Van Berkom <tvb@gnome.org>

	* src/glade-project-window.c: Removed idle handler hack that has
	  been obsoleted by Vincent's smarter one-line patch.

2006-03-19  Vincent Geddes <vgeddes@metroweb.co.za>

	* src/glade_project.c: glade_project_changed() should not set
	  project->changed if project is still in process of being loaded.
2006-03-29 16:13:04 +00:00
Raphael Higino
aa9779bc45 Updated Brazilian Portuguese translation 2006-03-26 15:23:41 +00:00
Tristan Van Berkom
c73f729281 Call gtk_container_set_focus_[vh]adjustment() to fix keynav in the editor.
* src/glade-editor.c: Call gtk_container_set_focus_[vh]adjustment()
	  to fix keynav in the editor.
2006-03-22 16:04:02 +00:00
Tristan Van Berkom
422115143f Made file chooser ENTER activate the open/save button (using
* src/glade-utils.c: Made file chooser ENTER activate the open/save
	  button (using gtk_dialog_set_default_response).
2006-03-21 17:11:12 +00:00
Tristan Van Berkom
2c55d2228f Some more fixes... 2006-03-20 17:03:08 +00:00
Tristan Van Berkom
e489948514 Added a bit about anarchist children
* doc/children.sgml: Added a bit about anarchist children

	* doc/widgetclasses.sgml: Removed the notion of get_anarchist_children()

	* doc/gladeui-sections.txt: removed undefined symbols

	* doc/tmpl/*: auto-updates templates.

	* src/glade-gtk.c: Updated to use the new glade_widget_new_for_internal_child
	  API

	* src/glade-widget-class.[ch], src/glade.h: Removed notion of anarchist children

	* src/glade-widget.[ch]: Added "anarchist" property and "anarchist" argument
	  to glade_widget_new_for_internal_child() (only internal children can be
	  anarchists).

	* src/glade-project-view.[ch]: Dramaticly reworked, now each project has its
	  own metadata struct where signal ids and project view state is stored,
	  project signals now are only disconnected at project close time.
	  The open treeview leafs and scrollbar positions are now saved/restored
	  when switching active projects.

	* src/glade-project-window.c:
	   o Translated window title
	   o Fixed a bug where the loaded project title apears as
	     unsaved.

	* src/glade-utils.c: Added comments.

	* widgets/gtk+.xml.in: Removed mention of the get_anarchist_children func,
	  override the get_children func for GtkCombo to additionally return the
	  combo->list member (which is an anarchist child).
	  Also added a gtk_container_remove remove-function for GtkListItem since
	  it seemed to be empty and causing errors.
2006-03-20 15:09:29 +00:00
Francisco Javier F. Serrador
b4da9d952f Updated Spanish translation.
2006-03-20  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation.
2006-03-20 15:07:44 +00:00
Tristan Van Berkom
9e1d6270f5 Removed glade_widget_class_get_all_children, now
* src/glade-widget-class.[ch], src/glade.h: Removed glade_widget_class_get_all_children,
	  now glade_widget_class_get_children returns all desired children, including
	  orphan ararchist internal children.

	* src/glade-editor-property.c, src/glade-project-view.c, src/glade-project.c,
	  src/glade-widget.c, src/glade-utils.c: Adjusted callers for
	  glade_widget_class_get_children.

	* src/glade-gtk.c, widgets/gtk+.xml.in: Adjusted backend, removed obsolete
	  get_internal_children funcs and added the appropriate get_anarchist_children.

	* doc/tmpl/*, doc/gladeui-sections.txt: Added new symbols... removed old ones.

	* doc/widgetclasses.sgml: added a bit about
	  get-anarchist-children-function
2006-03-16 06:59:02 +00:00
Tristan Van Berkom
c2ad482b52 Improved name generation for new empty projects.
* src/glade-project.c: Improved name generation for new empty projects.

	* src/glade-utils.c: Enable overwrite confirmation in FileChooser dialog
2006-03-16 05:29:37 +00:00
Tristan Van Berkom
6640a4f771 o Reimplemented code for management of projects list menu. o Projects with
* src/glade-project-window.c:
	  o Reimplemented code for management of projects list menu.
	  o Projects with unsaved changes have a '*' prepended to their names.
	  o Refresh window title when all projects have been closed.

	* src/glade-project.c: New GObject property 'has-unsaved-changes'.
	  glade_project_changed() will now emit notify signal for this property.

	* src/glade-app.c: change order in which projects are added to list of
	  open projects in glade_app_add_project().


	* src/glade-project-window.c, src/glade-project.[ch]: Tweaked the
	  project list to look more aligned with unsaved changes indicated
	  (using tab charachters); also reverted to print the project path
	  in the status bar as a tooltip (as this is the only indication as
	  to which project is which).
2006-03-16 04:44:37 +00:00
Tristan Van Berkom
91bdae0145 Removed a ridiculous line of code that was making all container class
* src/glade-property-class.c: Removed a ridiculous line of
	  code that was making all container class properties recognized
	  as packing properties (overlooked from my previous rework in
	  that area).
2006-03-14 14:58:30 +00:00
Clytie Siddall
b47f9a1adf vi.po: Updated Vietnamese translation. 2006-03-10 10:24:34 +00:00
Tristan Van Berkom
47fd7cd57a Added "catalog_default" arg to glade_property_new() and adjusted callers.
* src/glade-property.[ch], src/glade-widget.[ch]: Added
	  "catalog_default" arg to glade_property_new() and adjusted callers.

	* src/glade-property-class.[ch]: Ensure that there are always
	  ->def and ->orig_def members resolved.

	* src/glade-gtk.c:
	  o GtkBox loading issues fixed.
	  o Removed unused code from: glade_gtk_table_has_child and
	    glade_gtk_table_refresh_placeholders.

	* src/glade-widget.c:
	  o Ignore properties properly when creating the object.
	    (glade_widget_params_from_widget_info and
	    glade_widget_build_object functions)
	  o Use the introspected default value for properties when
	    loading a project. glade_widget_properties_from_widget_info

	* widgets/gtk+.xml.in: Avoid warnings.
	  o Ignore GtkWidget has-default property.
	  o Ignore GtkComboBox active, column-span-column and row-span-column properties.
2006-03-01 19:59:12 +00:00
Tristan Van Berkom
3cab166c89 Added file filters "All Files" and "Glade Files" to FileChooser Dialog.
* src/glade-utils.c: Added file filters "All Files" and "Glade Files"
	  to FileChooser Dialog.

	* src/glade-project-window.c: FileChooser save dialog uses 'project->name'
	  or 'project->path' as initial selected filename so that dialog is more
	  intuitive to user.
2006-02-28 01:09:49 +00:00
Tristan Van Berkom
51dfebec98 o Added packing property recording mechianism to create/delete commands
* src/glade-command.c:
	  o Added packing property recording mechianism to create/delete
	    commands (was only there for Cut/Paste).
	  o Call glade_widget_create_packing_properties after calling
	    glade_widget_class_container_add()

	* src/glade-gtk.c, widgets/gtk+.xml.in:
	  o Removed unused code from glade_gtk_table_add_child()
	  o Added support funcs glade_gtk_container_add/remove_child()

	* src/glade-property-class.c: Removed unused function: gpc_load_function
	  (now uses glade-xml-utils implementation)

	* src/glade-widget.[ch]: exposed glade_widget_create_packing_properties()
2006-02-24 20:26:04 +00:00
Clytie Siddall
783a7abbf9 vi.po: Updated Vietnamese translation. 2006-02-24 11:30:16 +00:00
Tristan Van Berkom
eb9d377790 Updated list
* TODO: Updated list

* doc/glade-sections.txt: Updated list

* doc/tmpl/*: updated templates from source

* src/glade-builtins.[ch]: Implemented GladeParamSpecObjects and
  GLADE_TYPE_GLIST boxed type (intended use for AtkRelation properties).

* src/glade-command.c, src/glade-gtk.c: Fixed refcounting for placeholders.
  (updated code for glade_widget_new () also)

* src/glade-project-window.c: Fixed parenthesis in complex statement.

* src/glade-property-class.[ch]:
  o Added support for atk property detection & GladeParamSpecObjects.
  o Added some more logic that belonged here and was in glade-widget-class.c
  o Fixed "make gvalue from object" logic to not leak a reference to a pixbuf
    (it doesnt crash with pixbuf manipulation... not sure if we dont leak pixbufs
    though).

* src/glade-property.c: Simplified code (and fixed limitation of optional properties
  to integer inputs... now any property can be optional).
  Added implicit case to ignore atk_properties

* src/glade-widget-class.c: Deffered some logic to glade-property-class and simplified
  code; also added support for atk properties.
  ATK: Disabled for now, not completely implemented... needs save support in glade-property
  and edit support in GladeEditorProperty... just needed to sync CVS for all the other
	  relevent work.

* src/glade-widget.[ch]: glade_widget_new () takes a boolean query arg now

* src/glade-xml-utils.[ch]: now has glade_xml_load_sym_from_node()
  (it makes sence here because we have access to the xml node structs; so we
  can debug around here a little easier).

* src/glade-editor-property.c: Added prelimenary support for GladeParamSpecObjects
  (readonly view of glade_widget_class_make_string_from_gvalue() ).

* src/glade-fixed-manager.c: Adjusted caller to glade_widget_new().

* src/glade.h: added "atk-relation" tag definition.
2006-02-24 02:04:38 +00:00
Tristan Van Berkom
9d89751931 Packing GladeEditorProperties were being loaded with "use-command" =
* src/glade-editor.c: Packing GladeEditorProperties were being loaded
	  with "use-command" = FALSE, fixed.
2006-02-21 22:26:54 +00:00
Tristan Van Berkom
9c0b27a1cd fixed bug 325791. Various GtkTable and GtkBox support fixes. (added
* src/glade-gtk.c: fixed bug 325791.
	  Various GtkTable and GtkBox support fixes.
	  (added glade_gtk_table_verify_*_attach, glade_gtk_box_set_child_property
	  and glade_gtk_box_remove_child functions)

	* src/glade-command.c: fixed bug 330305.
	  Added glade_command_placeholder_destroyed() destroy handler.

	* src/glade-project.[ch]: added loading state to projects,
	  glade_project_is_loading()

	* widgets/gtk+.xml.in: added GtkTable child-set-property-function,
	  replace-child-function and attach child properties.
	  Added GtkBox remove-child-function and child-set-property-function.
2006-02-21 22:14:34 +00:00
Francisco Javier F. Serrador
f25cd00799 Updated Spanish translation.
2006-02-19  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation.
2006-02-19 21:50:16 +00:00
Jordi Mas
6928630846 Initial Catalan translation 2006-02-17 12:14:59 +00:00
Clytie Siddall
9514cc76b2 vi.po: Updated Vietnamese translation. 2006-02-16 08:24:20 +00:00
Tristan Van Berkom
4854eda9f5 Emergency commit for broken cvs.
* src/glade-utils.c: Emergency commit for broken cvs.
2006-02-16 01:00:36 +00:00
Tristan Van Berkom
3463841ce1 Updated the list.
* TODO: Updated the list.

	* src/glade-app.c:
	  - Revamped glade_app_config_save() to report errors smoothly
	    (fixes bug 310141)

	* src/glade-project-window.c: Now the statusbar message shows the
	  correct project name after "Save As...".
2006-02-15 01:12:12 +00:00
Tristan Van Berkom
9b5aa90b6f Fixed bug in glade_widget_dup_internal () (stupid typo of mine when fixing
* src/glade-widget.c: Fixed bug in glade_widget_dup_internal ()
	  (stupid typo of mine when fixing 320077)

	* src/glade-utils.[ch]: Removed all the Cut/Copy/Paste/Delete
	  stuff, now all in GladeApp.

	* src/glade-app.c: Moved the bulk of code from glade-utils to
	  glade-app (cut/copy/paste/delete) since it was confusing to
	  see the chain of events, it should be simpler overall now.

	* doc/glade-sections.txt, doc/tmpl/*: Adjusted doc structure
	  for new apis and removed old apis.
2006-02-15 00:19:12 +00:00
Tristan Van Berkom
669b275e94 Updated the list.
* TODO: Updated the list.
2006-02-14 17:56:07 +00:00
Tristan Van Berkom
7c577017a8 No more glade_util_ui_message(), deffer that to callers, g_critical()
* src/glade-command.c: No more glade_util_ui_message(), deffer that
	  to callers, g_critical() messages added where inapropriate states
	  are detected.

	* src/glade-utils.c: Take some responsability when calling glade_command
	  for Cut/Copy/Paste/Delete.

	* src/glade-widget.c: Documented some functions, special-cased GtkWindow
	  in glade_widget_dup_internal(), replicating copied GtkWindow "run-time"
	  sizes (bug 320077).
	  Removed useless special-cased call to gtk_widget_show_all() also in
	  glade_widget_dup_internal(); showing widgets is taken care of in
	  glade_widget_show().
2006-02-14 01:53:43 +00:00
Tristan Van Berkom
eac7e6c353 Finished writing up short and long descriptions for all generated docs,
* doc/*.sgml, doc/tmpl/*.sgml: Finished writing up short and long
	  descriptions for all generated docs, also fixed up main page a bit.
2006-02-10 08:02:19 +00:00
Clytie Siddall
3784941d34 vi.po: Updated Vietnamese translation. 2006-02-10 05:58:58 +00:00
Tristan Van Berkom
b964811816 Glade 3.0 --> Glade-3
* configure.in: Glade 3.0 --> Glade-3

	* doc/tmpl/*.sgml, doc/*.sgml, src/*.c: Massive doc updates,
	  migrated some doc from sgml into source files.
2006-02-10 03:41:22 +00:00
Tristan Van Berkom
34e03866c6 Modified Files: ChangeLog doc/Makefile.am doc/children.sgml
Modified Files:
 	ChangeLog doc/Makefile.am doc/children.sgml
 	doc/gladeui-docs.sgml doc/tmpl/glade-app.sgml
 	doc/tmpl/glade-clipboard-view.sgml
 	doc/tmpl/glade-clipboard.sgml
 	doc/tmpl/glade-editor-property.sgml doc/tmpl/glade-editor.sgml
 	doc/tmpl/glade-fixed-manager.sgml doc/tmpl/glade-palette.sgml
 	doc/tmpl/glade-placeholder.sgml
 	doc/tmpl/glade-project-view.sgml doc/tmpl/glade-project.sgml
 	doc/tmpl/glade-property.sgml doc/tmpl/glade-widget.sgml
 	src/glade-project.c
2006-02-09 08:47:48 +00:00
Tristan Van Berkom
30b159c52e Require gtkdocize 1.4
* configure.in: Require gtkdocize 1.4

	* doc/Makefile.am: Ignore glade-popup.h

	* doc/children.sgml, doc/gladeui-docs.sgml, doc/tmpl/glade-app.sgml,
	  doc/tmpl/glade-project.sgml: Doc updates.

	* src/glade-project.c: Made project signals have object type args for
	  GladeWidgets (of type GLADE_TYPE_WIDGET).

	* src/glade-widget.c: GladeWidget GType is now registered as "GladeWidget"
	  and not "Gladewidget".
2006-02-09 07:08:43 +00:00
Tristan Van Berkom
2656e55348 Added (migration of adding-widgets.txt documentation)
* doc/catalogintro.sgml, doc/children.sgml,
	  doc/widgetclasses.sgml, doc/properties.sgml: Added (migration of
	  adding-widgets.txt documentation)

	* widgets/adding-widgets.txt: Removed (migration of
	  adding-widgets.txt documentation to the Reference manual)
2006-02-09 05:58:21 +00:00
Tristan Van Berkom
1b4b28fc2b doc/gladeui-docs.sgml, doc/gladeui-overrides.txt,
* doc/Makefile.am,
  Added Files: doc/gladeui-docs.sgml, doc/gladeui-overrides.txt,
  doc/gladeui-sections.txt, doc/gladeui.types,
  Removed Files: doc/glade-docs.sgml, doc/glade-sections.txt, doc/glade.types:
  Making doc module called "gladeui" instead of "glade" to represent the
  libgladeui library, mostly just to make sure we have namespace wherever
  we install (since "glade" docs could concievably come from libglade, glade-2
  or whatever), these are the initial revisions of these files anyway, so
  no need to surgically move the cvs history.
2006-02-08 23:42:56 +00:00
Tristan Van Berkom
aeeea12c16 Fixed up blurbs on installed properties
* src/glade-property.c: Fixed up blurbs on installed properties

	* src/glade-editor-property.c: Added tooltips on i18n dialog.

	* configure.in: Now really bumping the required GTK+ to 2.8
2006-02-07 18:25:29 +00:00
Tristan Van Berkom
63ff5dd45a Fixed compiler error due to my typo :-/ 2006-02-07 05:35:29 +00:00
Tristan Van Berkom
d6ea83cbdf require automake 1.9
* autogen.sh: require automake 1.9

	* Makefile.am, doc/Makefile.am, doc/.cvsignore, configure.in:
	  Added environment for gtk-doc generation.

	* doc/glade-docs.sgml, doc/glade-sections.txt, doc/glade.types,
	  doc/version.xml.in, doc/tmpl/*: Added initial documentation
	  metadata.

	* src/*.h: Line break LIBGLADEUI_API everywhere so that documentation
	  generation works (wierd trade, I know).

	* po/POTFILES.in: Added glade-custom.c

Modified Files:
	ChangeLog Makefile.am autogen.sh configure.in po/POTFILES.in
	src/glade-app.h src/glade-catalog.h src/glade-clipboard-view.h
	src/glade-clipboard.h src/glade-command.c src/glade-command.h
	src/glade-editor-property.c src/glade-editor-property.h
	src/glade-editor.c src/glade-editor.h
	src/glade-fixed-manager.h src/glade-gtk.c src/glade-palette.h
	src/glade-parameter.h src/glade-placeholder.h
	src/glade-popup.c src/glade-project-view.c
	src/glade-project-view.h src/glade-project-window.c
	src/glade-project.c src/glade-project.h
	src/glade-property-class.c src/glade-property-class.h
	src/glade-property.c src/glade-property.h
	src/glade-signal-editor.h src/glade-signal.c src/glade-utils.c
	src/glade-utils.h src/glade-widget-class.h src/glade-widget.c
	src/glade-widget.h src/glade-xml-utils.h
Added Files:
	doc/.cvsignore doc/Makefile.am doc/glade-docs.sgml
	doc/glade-sections.txt doc/glade.types doc/version.xml.in
	doc/tmpl/glade-app.sgml doc/tmpl/glade-catalog.sgml
	doc/tmpl/glade-clipboard-view.sgml
	doc/tmpl/glade-clipboard.sgml doc/tmpl/glade-command.sgml
	doc/tmpl/glade-editor-property.sgml doc/tmpl/glade-editor.sgml
	doc/tmpl/glade-fixed-manager.sgml doc/tmpl/glade-palette.sgml
	doc/tmpl/glade-parameter.sgml doc/tmpl/glade-parser.sgml
	doc/tmpl/glade-placeholder.sgml
	doc/tmpl/glade-project-view.sgml doc/tmpl/glade-project.sgml
	doc/tmpl/glade-property-class.sgml
	doc/tmpl/glade-property.sgml doc/tmpl/glade-signal-editor.sgml
	doc/tmpl/glade-signal.sgml doc/tmpl/glade-utils.sgml
	doc/tmpl/glade-widget-class.sgml doc/tmpl/glade-widget.sgml
2006-02-07 05:24:08 +00:00
Clytie Siddall
a95bdab588 ----------------------------------------------------------------------
* configure.in	Added vi in ALL_LINGUAS line.
	CVS: ----------------------------------------------------------------------
2006-02-06 12:43:57 +00:00
Clytie Siddall
54a44903fb vi.po: Updated Vietnamese translation. 2006-02-06 12:42:54 +00:00
Tristan Van Berkom
69349a2b43 - Enhanced title of object selection dialog.
* src/glade-editor-property.c:
	    - Enhanced title of object selection dialog.
2006-02-04 04:33:08 +00:00
Tristan Van Berkom
a0d6e6cbc8 - Added glade_editor_property_commit which fixes bug 329514. - Fixed
* src/glade-editor-property.c:
	    - Added glade_editor_property_commit which fixes bug 329514.
	    - Fixed conflict in sensitivity and enabled for optional properties
	      (noticably, now optionaly defaulted to disabled properties show
	       up insensitive untill you check them).

	* src/glade-project-window.c: Filtered out cut/copy/paste accelerators
	  from the editor window (fixing bug 324389).
2006-02-04 04:03:52 +00:00
Tristan Van Berkom
0e7b970920 Added glade_editor_property_commit which fixes bug 329514.
* src/glade-editor-property.c: Added glade_editor_property_commit which
	  fixes bug 329514.
2006-02-04 03:16:43 +00:00
Tristan Van Berkom
7c6c330f2f Updated (removed bug 317949 from list).
* TODO: Updated (removed bug 317949 from list).

	* src/Makefile.am: Added glade-custom.[ch] to the libgladeui library.

	* src/glade-fixed-manager.c: Fixed comment

	* src/glade-placeholder.c: Removed redundant code

	* src/glade-property.c: Added myself as an author since I rewrote this
	  file as an object.

	* src/glade-custom.[ch]: New files, custom widget derivatives to emulate
	  custom widgets as provided by glade 2 (fixes bug 317949)

	* widgets/gtk+.xml.in: added Custom widgets to the obsolete group.
2006-02-03 19:20:00 +00:00
Tristan Van Berkom
3dff751524 Added technical notes for get-function and verify-function
* widgets/adding-widgets.txt: Added technical notes for get-function and
	  verify-function
2006-02-01 21:00:53 +00:00
Tristan Van Berkom
4edd90ef1c Added bug 329514 to blockers.
* TODO: Added bug 329514 to blockers.
2006-02-01 20:50:32 +00:00
Adam Weinberger
9ac1855e66 Updated Canadian English translation.
2006-01-31  Adam Weinberger  <adamw@gnome.org>

	* en_CA.po: Updated Canadian English translation.
2006-02-01 02:06:29 +00:00
Tristan Van Berkom
448e7f47f6 o glade_gtk_menu_editor_reorder () fixed, so you can move a submenu item
* src/glade-gtk.c:
	  o glade_gtk_menu_editor_reorder () fixed, so you can move a
	    submenu item into the menubar.
	  o glade_gtk_menu_bar_append_new_item () now sets "stock"
            property.
	  o glade_gtk_menu_editor_is_child () item has to be a
	    GtkMenuItem. (this prevents treeview to be refresh when adding
	    an image to an item :)

	* widgets/gtk+.xml.in: added new GtkMenuBar displayable values
	  for properties child-pack-direction and pack-direction.
2006-01-31 15:19:04 +00:00
Tristan Van Berkom
4fb106daaa Fixed a stupid segfault typicly in strcmp().
* src/glade-project.c: Fixed a stupid segfault typicly
	  in strcmp().

	* TODO: first go at blockers for glade-3 beta release.
2006-01-31 03:27:15 +00:00
Tristan Van Berkom
c86edf9778 GladeEPropFlags now shows treeview directly in editor - Mikael Hermansson
* src/glade-editor-property.c: GladeEPropFlags now shows
	  treeview directly in editor - Mikael Hermansson

	* src/glade-project.[ch]: Removed "resource-updated" signal,
	  added "resource-added" signal, now resource signals seem to
	  be working more logicly (but there will be no signal fired when
	  a resource's contents is overwritten from a different source).
2006-01-28 23:16:42 +00:00
Francisco Javier F. Serrador
73cacc1ef1 Updated Spanish translation.
2006-01-28  Francisco Javier F. Serrador  <serrador@cvs.gnome.org>

	* es.po: Updated Spanish translation.
2006-01-27 23:01:33 +00:00
Tristan Van Berkom
21a6ee25c8 Relesed 2.91.0, now we are working on 2.91.1
* configure.in: Relesed 2.91.0, now we are working on 2.91.1
2006-01-26 23:09:11 +00:00
1142 changed files with 675190 additions and 74357 deletions

View File

@ -1,25 +0,0 @@
ltconfig
aclocal.m4
autom4te.cache
intl
ABOUT-NLS
config.guess
config.sub
ltmain.sh
config.h.in
stamp-h.in
Makefile.in
configure
configure.lineno
config.log
config.h
config.cache
config.status
intltool-*
glade-3.desktop
stamp-h
stamp-h1
libtool
Makefile
missing
mkinstalldirs

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
_build

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>
Thanks to :
Michal Palczewski <mpalczew@u.washington.edu> - Widget tree window
Archit Baweja <bighead@users.sourceforge.net> - New widgets, _get_type
Shane Butler <shane_b@operamail.com> - Glade Widget signals editor
Tristan Van Berkom <tvb@gnome.org> - Non widget support.
Joaquin Cuenca Abela <e98cuenc@yahoo.com>
Paolo Borelli <pborelli@katamail.com>
Archit Baweja <bighead@users.sourceforge.net>
Shane Butler <shane_b@operamail.com>
Tristan Van Berkom <tvb@gnome.org>
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.

343
COPYING
View File

@ -1,340 +1,5 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
This package is licensed under the GNU LGPL. Some code is still only available under GNU GPL.
Files that are not yet completely licenced under GNU LGPL are still marked as being licended as GNU GPL.
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Library General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
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 promoting the sharing and reuse of software generally.
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
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
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
POSSIBILITY OF SUCH DAMAGES.
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.
Please see COPYING.LGPL for the full text of the LGPL license and the COPYING.GPL
for the full text of the GPL text respectively.

280
COPYING.GPL Normal file
View File

@ -0,0 +1,280 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1989, 1991 Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
License is intended to guarantee your freedom to share and change free
software--to make sure the software is free for all its users. This
General Public License applies to most of the Free Software
Foundation's software and to any other program whose authors commit to
using it. (Some other Free Software Foundation software is covered by
the GNU Lesser General Public License instead.) You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if you
distribute copies of the software, or if you modify it.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must give the recipients all the rights that
you have. You must make sure that they, too, receive or can get the
source code. And you must show them these terms so they know their
rights.
We protect your rights with two steps: (1) copyright the software, and
(2) offer you this license which gives you legal permission to copy,
distribute and/or modify the software.
Also, for each author's protection and ours, we want to make certain
that everyone understands that there is no warranty for this free
software. If the software is modified by someone else and passed on, we
want its recipients to know that what they have is not the original, so
that any problems introduced by others will not reflect on the original
authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that redistributors of a free
program will individually obtain patent licenses, in effect making the
program proprietary. To prevent this, we have made it clear that any
patent must be licensed for everyone's free use or not licensed at all.
The precise terms and conditions for copying, distribution and
modification follow.
GNU GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License applies to any program or other work which contains
a notice placed by the copyright holder saying it may be distributed
under the terms of this General Public License. The "Program", below,
refers to any such program or work, and a "work based on the Program"
means either the Program or any derivative work under copyright law:
that is to say, a work containing the Program or a portion of it,
either verbatim or with modifications and/or translated into another
language. (Hereinafter, translation is included without limitation in
the term "modification".) Each licensee is addressed as "you".
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running the Program is not restricted, and the output from the Program
is covered only if its contents constitute a work based on the
Program (independent of having been made by running the Program).
Whether that is true depends on what the Program does.
1. You may copy and distribute verbatim copies of the Program's
source code as you receive it, in any medium, provided that you
conspicuously and appropriately publish on each copy an appropriate
copyright notice and disclaimer of warranty; keep intact all the
notices that refer to this License and to the absence of any warranty;
and give any other recipients of the Program a copy of this License
along with the Program.
You may charge a fee for the physical act of transferring a copy, and
you may at your option offer warranty protection in exchange for a fee.
2. You may modify your copy or copies of the Program or any portion
of it, thus forming a work based on the Program, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) You must cause the modified files to carry prominent notices
stating that you changed the files and the date of any change.
b) You must cause any work that you distribute or publish, that in
whole or in part contains or is derived from the Program or any
part thereof, to be licensed as a whole at no charge to all third
parties under the terms of this License.
c) If the modified program normally reads commands interactively
when run, you must cause it, when started running for such
interactive use in the most ordinary way, to print or display an
announcement including an appropriate copyright notice and a
notice that there is no warranty (or else, saying that you provide
a warranty) and that users may redistribute the program under
these conditions, and telling the user how to view a copy of this
License. (Exception: if the Program itself is interactive but
does not normally print such an announcement, your work based on
the Program is not required to print an announcement.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Program,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Program, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Program.
In addition, mere aggregation of another work not based on the Program
with the Program (or with a work based on the Program) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may copy and distribute the Program (or a work based on it,
under Section 2) in object code or executable form under the terms of
Sections 1 and 2 above provided that you also do one of the following:
a) Accompany it with the complete corresponding machine-readable
source code, which must be distributed under the terms of Sections
1 and 2 above on a medium customarily used for software interchange; or,
b) Accompany it with a written offer, valid for at least three
years, to give any third party, for a charge no more than your
cost of physically performing source distribution, a complete
machine-readable copy of the corresponding source code, to be
distributed under the terms of Sections 1 and 2 above on a medium
customarily used for software interchange; or,
c) Accompany it with the information you received as to the offer
to distribute corresponding source code. (This alternative is
allowed only for noncommercial distribution and only if you
received the program in object code or executable form with such
an offer, in accord with Subsection b above.)
The source code for a work means the preferred form of the work for
making modifications to it. For an executable work, complete source
code means all the source code for all modules it contains, plus any
associated interface definition files, plus the scripts used to
control compilation and installation of the executable. However, as a
special exception, the source code distributed need not include
anything that is normally distributed (in either source or binary
form) with the major components (compiler, kernel, and so on) of the
operating system on which the executable runs, unless that component
itself accompanies the executable.
If distribution of executable or object code is made by offering
access to copy from a designated place, then offering equivalent
access to copy the source code from the same place counts as
distribution of the source code, even though third parties are not
compelled to copy the source along with the object code.
4. You may not copy, modify, sublicense, or distribute the Program
except as expressly provided under this License. Any attempt
otherwise to copy, modify, sublicense or distribute the Program is
void, and will automatically terminate your rights under this License.
However, parties who have received copies, or rights, from you under
this License will not have their licenses terminated so long as such
parties remain in full compliance.
5. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Program or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Program (or any work based on the
Program), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Program or works based on it.
6. Each time you redistribute the Program (or any work based on the
Program), the recipient automatically receives a license from the
original licensor to copy, distribute or modify the Program subject to
these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
7. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Program at all. For example, if a patent
license would not permit royalty-free redistribution of the Program by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Program.
If any portion of this section is held invalid or unenforceable under
any particular circumstance, the balance of the section is intended to
apply and the section as a whole is intended to apply in other
circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system, which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
8. If the distribution and/or use of the Program is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Program under this License
may add an explicit geographical distribution limitation excluding
those countries, so that distribution is permitted only in or among
countries not thus excluded. In such case, this License incorporates
the limitation as if written in the body of this License.
9. The Free Software Foundation may publish revised and/or new versions
of the General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the Program
specifies a version number of this License which applies to it and "any
later version", you have the option of following the terms and conditions
either of that version or of any later version published by the Free
Software Foundation. If the Program does not specify a version number of
this License, you may choose any version ever published by the Free Software
Foundation.
10. If you wish to incorporate parts of the Program into other free
programs whose distribution conditions are different, write to the author
to ask for permission. For software which is copyrighted by the Free
Software Foundation, write to the Free Software Foundation; we sometimes
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 promoting the sharing and reuse of software generally.
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
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
REPAIR OR CORRECTION.
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
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
POSSIBILITY OF SUCH DAMAGES.
END OF TERMS AND CONDITIONS

437
COPYING.LGPL Normal file
View File

@ -0,0 +1,437 @@
GNU LIBRARY GENERAL PUBLIC LICENSE
Version 2, June 1991
Copyright (C) 1991 Free Software Foundation, Inc.
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
[This is the first released version of the library GPL. It is
numbered 2 because it goes with version 2 of the ordinary GPL.]
Preamble
The licenses for most software are designed to take away your
freedom to share and change it. By contrast, the GNU General Public
Licenses are intended to guarantee your freedom to share and change
free software--to make sure the software is free for all its users.
This license, the Library General Public License, applies to some
specially designated Free Software Foundation software, and to any
other libraries whose authors decide to use it. You can use it for
your libraries, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
this service if you wish), that you receive source code or can get it
if you want it, that you can change the software or use pieces of it
in new free programs; and that you know you can do these things.
To protect your rights, we need to make restrictions that forbid
anyone to deny you these rights or to ask you to surrender the rights.
These restrictions translate to certain responsibilities for you if
you distribute copies of the library, or if you modify it.
For example, if you distribute copies of the library, whether gratis
or for a fee, you must give the recipients all the rights that we gave
you. You must make sure that they, too, receive or can get the source
code. If you link a program with the library, you must provide
complete object files to the recipients so that they can relink them
with the library, after making changes to the library and recompiling
it. And you must show them these terms so they know their rights.
Our method of protecting your rights has two steps: (1) copyright
the library, and (2) offer you this license which gives you legal
permission to copy, distribute and/or modify the library.
Also, for each distributor's protection, we want to make certain
that everyone understands that there is no warranty for this free
library. If the library is modified by someone else and passed on, we
want its recipients to know that what they have is not the original
version, so that any problems introduced by others will not reflect on
the original authors' reputations.
Finally, any free program is threatened constantly by software
patents. We wish to avoid the danger that companies distributing free
software will individually obtain patent licenses, thus in effect
transforming the program into proprietary software. To prevent this,
we have made it clear that any patent must be licensed for everyone's
free use or not licensed at all.
Most GNU software, including some libraries, is covered by the ordinary
GNU General Public License, which was designed for utility programs. This
license, the GNU Library General Public License, applies to certain
designated libraries. This license is quite different from the ordinary
one; be sure to read it in full, and don't assume that anything in it is
the same as in the ordinary license.
The reason we have a separate public license for some libraries is that
they blur the distinction we usually make between modifying or adding to a
program and simply using it. Linking a program with a library, without
changing the library, is in some sense simply using the library, and is
analogous to running a utility program or application program. However, in
a textual and legal sense, the linked executable is a combined work, a
derivative of the original library, and the ordinary General Public License
treats it as such.
Because of this blurred distinction, using the ordinary General
Public License for libraries did not effectively promote software
sharing, because most developers did not use the libraries. We
concluded that weaker conditions might promote sharing better.
However, unrestricted linking of non-free programs would deprive the
users of those programs of all benefit from the free status of the
libraries themselves. This Library General Public License is intended to
permit developers of non-free programs to use free libraries, while
preserving your freedom as a user of such programs to change the free
libraries that are incorporated in them. (We have not seen how to achieve
this as regards changes in header files, but we have achieved it as regards
changes in the actual functions of the Library.) The hope is that this
will lead to faster development of free libraries.
The precise terms and conditions for copying, distribution and
modification follow. Pay close attention to the difference between a
"work based on the library" and a "work that uses the library". The
former contains code derived from the library, while the latter only
works together with the library.
Note that it is possible for a library to be covered by the ordinary
General Public License rather than by this special one.
GNU LIBRARY GENERAL PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
0. This License Agreement applies to any software library which
contains a notice placed by the copyright holder or other authorized
party saying it may be distributed under the terms of this Library
General Public License (also called "this License"). Each licensee is
addressed as "you".
A "library" means a collection of software functions and/or data
prepared so as to be conveniently linked with application programs
(which use some of those functions and data) to form executables.
The "Library", below, refers to any such software library or work
which has been distributed under these terms. A "work based on the
Library" means either the Library or any derivative work under
copyright law: that is to say, a work containing the Library or a
portion of it, either verbatim or with modifications and/or translated
straightforwardly into another language. (Hereinafter, translation is
included without limitation in the term "modification".)
"Source code" for a work means the preferred form of the work for
making modifications to it. For a library, complete source code means
all the source code for all modules it contains, plus any associated
interface definition files, plus the scripts used to control compilation
and installation of the library.
Activities other than copying, distribution and modification are not
covered by this License; they are outside its scope. The act of
running a program using the Library is not restricted, and output from
such a program is covered only if its contents constitute a work based
on the Library (independent of the use of the Library in a tool for
writing it). Whether that is true depends on what the Library does
and what the program that uses the Library does.
1. You may copy and distribute verbatim copies of the Library's
complete source code as you receive it, in any medium, provided that
you conspicuously and appropriately publish on each copy an
appropriate copyright notice and disclaimer of warranty; keep intact
all the notices that refer to this License and to the absence of any
warranty; and distribute a copy of this License along with the
Library.
You may charge a fee for the physical act of transferring a copy,
and you may at your option offer warranty protection in exchange for a
fee.
2. You may modify your copy or copies of the Library or any portion
of it, thus forming a work based on the Library, and copy and
distribute such modifications or work under the terms of Section 1
above, provided that you also meet all of these conditions:
a) The modified work must itself be a software library.
b) You must cause the files modified to carry prominent notices
stating that you changed the files and the date of any change.
c) You must cause the whole of the work to be licensed at no
charge to all third parties under the terms of this License.
d) If a facility in the modified Library refers to a function or a
table of data to be supplied by an application program that uses
the facility, other than as an argument passed when the facility
is invoked, then you must make a good faith effort to ensure that,
in the event an application does not supply such function or
table, the facility still operates, and performs whatever part of
its purpose remains meaningful.
(For example, a function in a library to compute square roots has
a purpose that is entirely well-defined independent of the
application. Therefore, Subsection 2d requires that any
application-supplied function or table used by this function must
be optional: if the application does not supply it, the square
root function must still compute square roots.)
These requirements apply to the modified work as a whole. If
identifiable sections of that work are not derived from the Library,
and can be reasonably considered independent and separate works in
themselves, then this License, and its terms, do not apply to those
sections when you distribute them as separate works. But when you
distribute the same sections as part of a whole which is a work based
on the Library, the distribution of the whole must be on the terms of
this License, whose permissions for other licensees extend to the
entire whole, and thus to each and every part regardless of who wrote
it.
Thus, it is not the intent of this section to claim rights or contest
your rights to work written entirely by you; rather, the intent is to
exercise the right to control the distribution of derivative or
collective works based on the Library.
In addition, mere aggregation of another work not based on the Library
with the Library (or with a work based on the Library) on a volume of
a storage or distribution medium does not bring the other work under
the scope of this License.
3. You may opt to apply the terms of the ordinary GNU General Public
License instead of this License to a given copy of the Library. To do
this, you must alter all the notices that refer to this License, so
that they refer to the ordinary GNU General Public License, version 2,
instead of to this License. (If a newer version than version 2 of the
ordinary GNU General Public License has appeared, then you can specify
that version instead if you wish.) Do not make any other change in
these notices.
Once this change is made in a given copy, it is irreversible for
that copy, so the ordinary GNU General Public License applies to all
subsequent copies and derivative works made from that copy.
This option is useful when you wish to copy part of the code of
the Library into a program that is not a library.
4. You may copy and distribute the Library (or a portion or
derivative of it, under Section 2) in object code or executable form
under the terms of Sections 1 and 2 above provided that you accompany
it with the complete corresponding machine-readable source code, which
must be distributed under the terms of Sections 1 and 2 above on a
medium customarily used for software interchange.
If distribution of object code is made by offering access to copy
from a designated place, then offering equivalent access to copy the
source code from the same place satisfies the requirement to
distribute the source code, even though third parties are not
compelled to copy the source along with the object code.
5. A program that contains no derivative of any portion of the
Library, but is designed to work with the Library by being compiled or
linked with it, is called a "work that uses the Library". Such a
work, in isolation, is not a derivative work of the Library, and
therefore falls outside the scope of this License.
However, linking a "work that uses the Library" with the Library
creates an executable that is a derivative of the Library (because it
contains portions of the Library), rather than a "work that uses the
library". The executable is therefore covered by this License.
Section 6 states terms for distribution of such executables.
When a "work that uses the Library" uses material from a header file
that is part of the Library, the object code for the work may be a
derivative work of the Library even though the source code is not.
Whether this is true is especially significant if the work can be
linked without the Library, or if the work is itself a library. The
threshold for this to be true is not precisely defined by law.
If such an object file uses only numerical parameters, data
structure layouts and accessors, and small macros and small inline
functions (ten lines or less in length), then the use of the object
file is unrestricted, regardless of whether it is legally a derivative
work. (Executables containing this object code plus portions of the
Library will still fall under Section 6.)
Otherwise, if the work is a derivative of the Library, you may
distribute the object code for the work under the terms of Section 6.
Any executables containing that work also fall under Section 6,
whether or not they are linked directly with the Library itself.
6. As an exception to the Sections above, you may also compile or
link a "work that uses the Library" with the Library to produce a
work containing portions of the Library, and distribute that work
under terms of your choice, provided that the terms permit
modification of the work for the customer's own use and reverse
engineering for debugging such modifications.
You must give prominent notice with each copy of the work that the
Library is used in it and that the Library and its use are covered by
this License. You must supply a copy of this License. If the work
during execution displays copyright notices, you must include the
copyright notice for the Library among them, as well as a reference
directing the user to the copy of this License. Also, you must do one
of these things:
a) Accompany the work with the complete corresponding
machine-readable source code for the Library including whatever
changes were used in the work (which must be distributed under
Sections 1 and 2 above); and, if the work is an executable linked
with the Library, with the complete machine-readable "work that
uses the Library", as object code and/or source code, so that the
user can modify the Library and then relink to produce a modified
executable containing the modified Library. (It is understood
that the user who changes the contents of definitions files in the
Library will not necessarily be able to recompile the application
to use the modified definitions.)
b) Accompany the work with a written offer, valid for at
least three years, to give the same user the materials
specified in Subsection 6a, above, for a charge no more
than the cost of performing this distribution.
c) If distribution of the work is made by offering access to copy
from a designated place, offer equivalent access to copy the above
specified materials from the same place.
d) Verify that the user has already received a copy of these
materials or that you have already sent this user a copy.
For an executable, the required form of the "work that uses the
Library" must include any data and utility programs needed for
reproducing the executable from it. However, as a special exception,
the source code distributed need not include anything that is normally
distributed (in either source or binary form) with the major
components (compiler, kernel, and so on) of the operating system on
which the executable runs, unless that component itself accompanies
the executable.
It may happen that this requirement contradicts the license
restrictions of other proprietary libraries that do not normally
accompany the operating system. Such a contradiction means you cannot
use both them and the Library together in an executable that you
distribute.
7. You may place library facilities that are a work based on the
Library side-by-side in a single library together with other library
facilities not covered by this License, and distribute such a combined
library, provided that the separate distribution of the work based on
the Library and of the other library facilities is otherwise
permitted, and provided that you do these two things:
a) Accompany the combined library with a copy of the same work
based on the Library, uncombined with any other library
facilities. This must be distributed under the terms of the
Sections above.
b) Give prominent notice with the combined library of the fact
that part of it is a work based on the Library, and explaining
where to find the accompanying uncombined form of the same work.
8. You may not copy, modify, sublicense, link with, or distribute
the Library except as expressly provided under this License. Any
attempt otherwise to copy, modify, sublicense, link with, or
distribute the Library is void, and will automatically terminate your
rights under this License. However, parties who have received copies,
or rights, from you under this License will not have their licenses
terminated so long as such parties remain in full compliance.
9. You are not required to accept this License, since you have not
signed it. However, nothing else grants you permission to modify or
distribute the Library or its derivative works. These actions are
prohibited by law if you do not accept this License. Therefore, by
modifying or distributing the Library (or any work based on the
Library), you indicate your acceptance of this License to do so, and
all its terms and conditions for copying, distributing or modifying
the Library or works based on it.
10. Each time you redistribute the Library (or any work based on the
Library), the recipient automatically receives a license from the
original licensor to copy, distribute, link with or modify the Library
subject to these terms and conditions. You may not impose any further
restrictions on the recipients' exercise of the rights granted herein.
You are not responsible for enforcing compliance by third parties to
this License.
11. If, as a consequence of a court judgment or allegation of patent
infringement or for any other reason (not limited to patent issues),
conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot
distribute so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you
may not distribute the Library at all. For example, if a patent
license would not permit royalty-free redistribution of the Library by
all those who receive copies directly or indirectly through you, then
the only way you could satisfy both it and this License would be to
refrain entirely from distribution of the Library.
If any portion of this section is held invalid or unenforceable under any
particular circumstance, the balance of the section is intended to apply,
and the section as a whole is intended to apply in other circumstances.
It is not the purpose of this section to induce you to infringe any
patents or other property right claims or to contest validity of any
such claims; this section has the sole purpose of protecting the
integrity of the free software distribution system which is
implemented by public license practices. Many people have made
generous contributions to the wide range of software distributed
through that system in reliance on consistent application of that
system; it is up to the author/donor to decide if he or she is willing
to distribute software through any other system and a licensee cannot
impose that choice.
This section is intended to make thoroughly clear what is believed to
be a consequence of the rest of this License.
12. If the distribution and/or use of the Library is restricted in
certain countries either by patents or by copyrighted interfaces, the
original copyright holder who places the Library under this License may add
an explicit geographical distribution limitation excluding those countries,
so that distribution is permitted only in or among countries not thus
excluded. In such case, this License incorporates the limitation as if
written in the body of this License.
13. The Free Software Foundation may publish revised and/or new
versions of the Library General Public License from time to time.
Such new versions will be similar in spirit to the present version,
but may differ in detail to address new problems or concerns.
Each version is given a distinguishing version number. If the Library
specifies a version number of this License which applies to it and
"any later version", you have the option of following the terms and
conditions either of that version or of any later version published by
the Free Software Foundation. If the Library does not specify a
license version number, you may choose any version ever published by
the Free Software Foundation.
14. If you wish to incorporate parts of the Library into other free
programs whose distribution conditions are incompatible with these,
write to the author to ask for permission. For software which is
copyrighted by the Free Software Foundation, write to the Free
Software Foundation; we sometimes 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 promoting the sharing
and reuse of software generally.
NO WARRANTY
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
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
DAMAGES.
END OF TERMS AND CONDITIONS

5301
ChangeLog

File diff suppressed because it is too large Load Diff

BIN
ChangeLog.old.gz Normal file

Binary file not shown.

68
HACKING
View File

@ -1,68 +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
CVS
~~~
The Glade-3 repository is hosted at cvs.gnome.org
To check out a copy of Glade-3 you can use the following commands:
cvs -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome login
[just press enter when required for a password]
cvs -z3 -d:pserver:anonymous@anoncvs.gnome.org:/cvs/gnome co glade3
You then need to run autogen.sh and make to build Glade-3.
Patches
~~~~~~~
Patches must be in the unified format (diff -u) and must include a
ChangeLog entry. Please send all patches to bugzilla.
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.

225
INSTALL
View File

@ -1,225 +0,0 @@
Basic Installation
==================
Glade uses configure to ease installation. The majority of people
should be able to install & run Glade by entering:
./configure (or ./configure --with-included-gettext for Solaris
machines and practically anything which doesn't have a
recent version of the GNU libc libraries.)
make
make install
glade
(As of Glade 0.5.0 you must install Glade with 'make install' if you want
to build C applications.)
If you have installed GTK+ in a non-standard directory, you will need to
make sure that the gtk-config program is in your PATH, and that the GTK+
libraries can be found when glade is run. If you installed GTK+ with the
prefix /usr/local then gtk-config will be in /usr/local/bin. To make sure
the GTK+ libraries are found, under Linux you can change /etc/ld.so.conf
and run ldconfig or add the libraries directory to LD_LIBRARY_PATH.
Common Problems
===============
The most common problem relates to the gettext translation library.
Usually when linking you see errors like this:
Unresolved reference to dcgettext()
To solve this, try configuring with:
./configure --with-included-gettext
and running make again. As a last resort you can also try
./configure --disable-nls
Generic Configure Instructions
==============================
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, a file
`config.cache' that saves the results of its tests to speed up
reconfiguring, and a file `config.log' containing compiler output
(useful mainly for debugging `configure').
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 at some point `config.cache'
contains results you don't want to keep, you may remove or edit it.
The file `configure.in' is used to create `configure' by a program
called `autoconf'. You only need `configure.in' 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. You can give `configure'
initial values for variables by setting them in the environment. Using
a Bourne-compatible shell, you can do that on the command line like
this:
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
Or on systems that have the `env' program, you can do it like this:
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
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 supports 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' will install the package's files in
`/usr/local/bin', `/usr/local/man', etc. You can specify an
installation prefix other than `/usr/local' by giving `configure' the
option `--prefix=PATH'.
You can specify separate installation prefixes for
architecture-specific files and architecture-independent files. If you
give `configure' the option `--exec-prefix=PATH', the package will use
PATH as the prefix for installing programs and libraries.
Documentation and other data files will still use the regular prefix.
In addition, if you use an unusual directory layout you can give
options like `--bindir=PATH' 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' can not figure out
automatically, but needs to determine by the type of host the package
will run on. Usually `configure' can figure that out, but if it prints
a message saying it can not guess the host type, give it the
`--host=TYPE' option. TYPE can either be a short name for the system
type, such as `sun4', or a canonical name with three fields:
CPU-COMPANY-SYSTEM
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 host type.
If you are building compiler tools for cross-compiling, you can also
use the `--target=TYPE' option to select the type of system they will
produce code for and the `--build=TYPE' option to select the type of
system on which you are compiling the package.
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.
Operation Controls
==================
`configure' recognizes the following options to control how it
operates.
`--cache-file=FILE'
Use and save the results of the tests in FILE instead of
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
debugging `configure'.
`--help'
Print a summary of the options to `configure', and exit.
`--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.
`--version'
Print the version of Autoconf used to generate the `configure'
script, and exit.
`configure' also accepts some other, not widely useful, options.

View File

@ -1,22 +1,22 @@
Glade3 internals
~~~~~~~~~~~~~~~~
Glade internals
~~~~~~~~~~~~~~~
about this document
===================
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.
* 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
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
through the glade3 codebase.
through the glade codebase.
Everyone who spots errors and inaccuracies in this doc, or who wants to
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
way and then automatically serialize it to the xml file.
Glade3 is a complete rewrite of the original glade and takes advantage
of the introspection properties of the GTK+2 toolkit.
Glade is a complete rewrite of the original glade and takes advantage
of the introspection properties of the GTK toolkit.

View File

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

View File

@ -1,26 +0,0 @@
## Process this file with automake to produce Makefile.in
SUBDIRS = src po pixmaps widgets
@INTLTOOL_DESKTOP_RULE@
DESKTOP_IN_FILES = glade-3.desktop.in
DESKTOP_FILES =$(DESKTOP_IN_FILES:.desktop.in=.desktop)
desktopdir = $(datadir)/applications
desktop_DATA = $(DESKTOP_FILES)
appicondir = $(datadir)/pixmaps
appicon_DATA = glade-3.png
EXTRA_DIST = \
glade-3.desktop.in \
glade-3.png \
intltool-extract.in \
intltool-merge.in \
intltool-update.in
CLEANFILES = $(DESKTOP_FILES)
DISTCLEANFILES = intltool-extract intltool-merge intltool-update

1790
NEWS

File diff suppressed because it is too large Load Diff

79
README
View File

@ -1,79 +0,0 @@
Glade
=====
A User Interface Builder 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 differnces 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 glade-3 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.8.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'

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.

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

45
TODO
View File

@ -0,0 +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.
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
API/ABI break
GtkBuilder unsuported features:
==============================
* Property bindings
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,51 +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.in \
&& 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=
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
REQUIRED_AUTOMAKE_VERSION="$automake_version" GNOME_DATADIR="$gnome_datadir" USE_GNOME2_MACROS=1 . $gnome_autogen

View File

@ -1,111 +0,0 @@
dnl Process this file with autoconf to produce a configure script.
AC_PREREQ(2.52)
AC_INIT(glade-3, 2.91.0,
http://bugzilla.gnome.org/enter_bug.cgi?product=glade3)
AC_CANONICAL_SYSTEM
AM_INIT_AUTOMAKE(AC_PACKAGE_NAME, AC_PACKAGE_VERSION)
AM_MAINTAINER_MODE
AM_CONFIG_HEADER(config.h)
AC_PROG_INTLTOOL([0.29])
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=0
GLADE_AGE=0
AC_SUBST(GLADE_REVISION)
AC_SUBST(GLADE_CURRENT)
AC_SUBST(GLADE_AGE)
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.])
ALL_LINGUAS="az da en_CA es fr ja ms nb nn no pl pt pt_BR ru sk sv ta tr uk zh_CN"
AM_GLIB_GNU_GETTEXT
dnl ================================================================
dnl Start of pkg-config checks
dnl ================================================================
PKG_CHECK_MODULES(GLADE, gtk+-2.0 >= 2.6.0 libxml-2.0 >= 2.4.0)
AC_SUBST(GLADE_LIBS)
AC_SUBST(GLADE_CFLAGS)
AC_CHECK_LIB(popt, poptStrippedArgv,, AC_MSG_ERROR([popt 1.5 or newer is required to build
glade 3.0. You can download the latest version from ftp://people.redhat.com/sopwith/popt/]))
glade_version="${VERSION}"
glade_datadir='${datadir}/${PACKAGE}'
glade_libdir='${libdir}/${PACKAGE}'
glade_catalogsdir='${glade_datadir}/catalogs'
glade_modulesdir='${glade_libdir}/modules'
glade_pixmapsdir='${glade_datadir}/pixmaps'
glade_icondir='${datadir}/pixmaps'
glade_localedir='${prefix}/${DATADIRNAME}/locale'
AC_SUBST(glade_version)
AC_SUBST(glade_datadir)
AC_SUBST(glade_libdir)
AC_SUBST(glade_catalogsdir)
AC_SUBST(glade_modulesdir)
AC_SUBST(glade_pixmapsdir)
AC_SUBST(glade_icondir)
AC_SUBST(glade_localedir)
case $host_os in
*mingw* | pw32* | cygwin*)
win32=yes
AC_ARG_ENABLE(popt_dll,
[ --disable-popt-dll disable use of libpopt.dll (use static version instead)],
popt_dll=$enableval, popt_dll=yes)
if test "x$popt_dll" = "xyes"; then
AC_DEFINE(USE_POPT_DLL, 1, [Define to 1 if libpopt.dll is to be used.])
else
AC_DEFINE(POPT_STATIC, 1, [Define to 1 if static version of libpopt is to be used.])
fi
;;
esac
AM_CONDITIONAL(WITH_WIN32, test x"$win32" = "xyes")
AC_OUTPUT([
Makefile
pixmaps/Makefile
widgets/Makefile
po/Makefile.in
src/Makefile
src/libgladeui-1.0.pc
src/glade-paths.sh
])
echo "
Configuration:
Source code location: ${srcdir}
Compiler: ${CC}
"

4
data/.gitignore vendored Normal file
View File

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

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>

Binary file not shown.

After

Width:  |  Height:  |  Size: 437 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 671 B

BIN
data/icons/devhelp.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 651 B

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

Binary file not shown.

After

Width:  |  Height:  |  Size: 216 B

BIN
data/icons/glade.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 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

BIN
data/icons/plus.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 147 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

1
doc/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/version.xml

226
doc/catalogintro.sgml Normal file
View File

@ -0,0 +1,226 @@
<refentry id="catalogintro" revision="8 Feb 2006">
<refmeta>
<refentrytitle>Introducing the Glade Catalog</refentrytitle>
<refmiscinfo>Glade UI</refmiscinfo>
</refmeta>
<refnamediv>
<refname>Writing catalogs</refname>
<refpurpose>
How to write and install a catalog
</refpurpose>
</refnamediv>
<refsect1>
<title>Introduction</title>
<para>
You can provide support for your custom widgets in a few ways, you can
make a package and install it to the system directories, load additional
catalogs in user directories, project directories for example, and
you can optionally provide code support and/or icons, normally you need
to at least have the object type in a library somewhere, but you can work
around this using the 'parent' property described in the next section.
If you dont provide icons for the inspector and palette Glade will simply
print a warning and use a default icon. The catalog file is written in an
XML format and a DTD for the format can be found in the plugins/ directory
of the Glade tarball.
</para>
<para>
In most cases gtk+ derived widgets can be added with little effort and it
is enough to simply specify the widget's type; glade will introspect
its properties and signals - but due to the organic nature of a widget
toolkit there are always exceptions. In this document we'll try to provide
some basic examples and describe a wealth of options that can be used to
enhance UI editing and workaround exceptions.
</para>
<para>
Keep in mind you need to take extra steps to ensure GtkBuilder can pick up your
new object types at runtime. Ussualy all you need is to link your executable
with your widget library assuming it has properly named get_type() functions.
<![CDATA[GtkWindow -> gtk_window_get_type
GtkHBox -> gtk_hbox_get_type
GtkUIManager -> gtk_ui_manager_get_type
GWeatherLocation -> gweather_location_get_type]]>
If not you can always register your widgets with the type system with g_type_ensure ()
</para>
<para>
The catalog file starts by specifying the name of the catalog and the plugin
library to use, the following examples assume you have a namespace "Foo" and
are integrating an object "Frobnicator":
<programlisting>
<![CDATA[<?xml version="1.0" encoding="UTF-8"?>
<glade-catalog name="foo" library="foo" depends="gtk+">
<init-function>my_catalog_init</init-function>
<glade-widget-classes>
<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>
... widget classes go here
</glade-widget-classes>
<glade-widget-group name="foo" title="Foo">
<glade-widget-class-ref name="FooFrobnicator"/>
... widget class references go here
</glade-widget-group>
... widget groups go here
</glade-catalog>]]></programlisting>
</para>
</refsect1>
<refsect1>
<title>Toplevel catalog properties and tags</title>
<para>
When defining the catalog, the 'name' and 'library'
are both mandatory attributes of the 'glade-catalog' tag; optionally
you can also use 'icon-prefix', 'depends' and 'domain'.
</para>
<variablelist>
<varlistentry>
<term>name</term>
<listitem>
<para>
A string identifier for the catalog in question, it will be used to identify your
catalog so that the glade file can explicitly require it and to manage inter
catalog dependencies.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>version</term>
<listitem>
<para>
A 'major.minor' formed version describing the current version of underlying widget kit;
example: <literal>version="1.0"</literal>. This is needed for version checking to work.
Please note that all versioning related support is completely optional.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>targetable</term>
<listitem>
<para>
A comma separated list of 'major.minor' formed versions describing sensible previous
targetable versions of the underlying toolkit not including the current version;
example: <literal>targetable="0.6,0.8"</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>icon-prefix</term>
<listitem>
<para>
Used to form icon names for widgets. This property defaults to the value of the 'name' attribute.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>library</term>
<listitem>
<para>
Used to load the types and introspect properties, unless you are faking your widget
classes (which will be described later on), glade will need to load this library,
it can either be the name of the library containing the widgets or the plugin library
which is assumed to implicitly link to your widget library. The library will be loaded
either by a user specified path, the system plugin directory:
<literal>$prefix/lib/glade-3/modules/</literal>, or from the default system library
paths in the afore mentioned order of precedence.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>depends</term>
<listitem>
<para>
Used for inheritance of support code to work properly (i.e. if your object derives
from an object in gtk+, you'll want the default support code in the gladegtk plugin
to be enabled for your widget too). This property's value is the `name' property of
another installed glade plugin; usually you'll want to declare: 'depends="gtk+"'
for your plugin.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>domain</term>
<listitem>
<para>
The domain in which to search for translatable strings from the
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
be used in it's stead.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>book</term>
<listitem>
<para>
Used to specify a namespace to search devhelp docs library with
(specifically, it is the $(DOC_MODULE) that you specified in your gtk-doc Makefile.am).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>init-function</term>
<listitem>
<para>
Used to retrieve an optional global entry point to your plugin;
if you need to initialize any backends or whatnot this is a good place.
Your catalog's init-function will be called before any widget classes are instantiated.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Validating and installing</title>
<para>
The DTD that is shipped with Glade can be used to validate your catalog
file. Note that properties must be entered in the same order as they are
specified in the DTD for the validation to pass.
</para>
<para>
To validate a file, do this:
<programlisting>xmllint --dtdvalid glade-catalog.dtd --noout my-catalog.xml</programlisting>
</para>
<para>
To install a widget plugin, the catalog XML file should be copied into
the catalog directory, which can be retrieved as:
<programlisting>pkg-config --variable=catalogdir gladeui-1.0</programlisting>
The plugin library should be installed into the modules directory:
<programlisting>pkg-config --variable=moduledir gladeui-1.0</programlisting>
Widget icons if provided (recommended) need to be installed into the icon theme,
this is described in the next chapter.
</para>
<para>
You can also load your catalog from a user directory by specifying
additional load path(s) in the environment, for instance:
<programlisting>GLADE_CATALOG_SEARCH_PATH=~/mycatalogs:~/work/foo/glade</programlisting>
</para>
<para>
Same goes for optional plugin libraries, for instance:
<programlisting>GLADE_MODULE_SEARCH_PATH=~/work/foo/src</programlisting>
</para>
<para>
Currently loading icons without installing them is unsupported.
</para>
</refsect1>
</refentry>

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>

92
doc/gladepython.sgml Normal file
View File

@ -0,0 +1,92 @@
<refentry id="pythonsupport" revision="26 Feb 2011">
<refmeta>
<refentrytitle>Python Gtk widgets support</refentrytitle>
<refmiscinfo>Glade UI</refmiscinfo>
</refmeta>
<refnamediv>
<refname>Add python support to your catalog</refname>
<refpurpose>
How to write and install a catalog for a python widget library
</refpurpose>
</refnamediv>
<refsect1>
<title>Introduction</title>
<para>
Glade supports loading widgets coded in python by linking and running the python
interpreter from the gladepython catalog plugin.
</para>
<para>
So in order for glade to include your python gtk widgets you will have to:
<varlistentry><listitem>
a) specify gladepython support code as your plugin library.
</listitem></varlistentry>
<varlistentry><listitem>
b) set glade_python_init as you init function.
</listitem></varlistentry>
<varlistentry><listitem>
c) make sure your catalog name is the same as your python import library since
glade_python_init() will use this name to import your widgets into the
interpreter.
</listitem></varlistentry>
pythonplugin.xml
<programlisting>
<![CDATA[
<glade-catalog name="pythonplugin" library="gladepython"
domain="glade-3" depends="gtk+">
<init-function>glade_python_init</init-function>
<glade-widget-classes>
<glade-widget-class title="MyPythonBox" name="MyPythonBox" generic-name="mypythonbox"/>
</glade-widget-classes>
<glade-widget-group name="python" title="Python">
<glade-widget-class-ref name="MyPythonBox"/>
</glade-widget-group>
</glade-catalog>]]>
</programlisting>
</para>
<para>
Glade's python interpreter 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>
pythonplugin.py
<programlisting>
<![CDATA[
from gi.repository import GLib, Gtk, GObject
class MyPythonBox(Gtk.Box):
__gtype_name__ = 'MyPythonBox'
foo = GObject.Property(type=int, nick='An integer')
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>
</para>
</refsect1>
</refentry>

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>

1545
doc/gladeui-sections.txt Normal file

File diff suppressed because it is too large Load Diff

18
doc/gladeui.types Normal file
View File

@ -0,0 +1,18 @@
#include <glade.h>
glade_app_get_type
glade_clipboard_get_type
glade_command_get_type
glade_editor_get_type
glade_editor_property_get_type
glade_palette_get_type
glade_placeholder_get_type
glade_project_get_type
glade_inspector_get_type
glade_property_get_type
glade_signal_get_type
glade_widget_get_type
glade_widget_adaptor_get_type
glade_design_view_get_type
glade_base_editor_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,
)

272
doc/properties.sgml Normal file
View File

@ -0,0 +1,272 @@
<refentry id="properties" revision="8 Feb 2006">
<refmeta>
<refentrytitle>Property Definitions</refentrytitle>
<refmiscinfo>Glade UI</refmiscinfo>
</refmeta>
<refnamediv>
<refname>Property Definitions</refname>
<refpurpose>
How to augment or define a #GladePropertyDef
</refpurpose>
</refnamediv>
<refsect1>
<title>Property Definition Configuration</title>
<para>
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
for editing purposes. Here is an example of the xml form:
<programlisting><![CDATA[...
<property id="frobnicate-mode" default="FOO_FROBNICATE_RED">
... spec, tooltip etc
<displayable-values>
<value id="FOO_FROBNICATE_RED" name="Red"/>
<value id="FOO_FROBNICATE_BLUE" name="Blue"/>
... values here
</displayable-values>
</property>
...]]></programlisting>
</para>
<para>
Properties of the 'property' tag:
<variablelist>
<varlistentry>
<term>id</term>
<listitem>
<para>
This is mandatory and specifies the property that we are modifying (or adding)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>name</term>
<listitem>
<para>
The name to be used in the interface.
(if name is not specified; it defaults to the nickname of the #GParamSpec)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>since</term>
<listitem>
<para>
A 'major.minor' formed version describing the version of the owning catalog in which this
property was introduced; example: <literal>since="1.0"</literal>. Properties are initialized
to be supported since the introducing #GladeWidgetAdaptor was supported.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>disabled</term>
<listitem>
<para>
Remove this property from this widget class and derived classes
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>default</term>
<listitem>
<para>
A default value to be used for this property
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>translatable</term>
<listitem>
<para>
For text properties, whether the property value is translatable in glade
interfaces (this will enable the i18n dialog on text properties). Defaults to False.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>common</term>
<listitem>
<para>
If set to "True", the property will end up on the common tab even if
its not a property of GtkWidgetClass.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>optional</term>
<listitem>
<para>
Whether this property is an optional property, this will make the property
insensitive and add a check box to enable it (like width/height-request for
example).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>optional-default</term>
<listitem>
<para>
If this is in fact an optional property; whether it is enabled by default.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>query</term>
<listitem>
<para>
If query is set; the property will be queried from the user in a dialog
when adding the owning widget class instance to the project.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>save</term>
<listitem>
<para>
Whether to save this property to the glade file (default "True")
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>visible</term>
<listitem>
<para>
Whether to show the property in the editor and reset dialog (default "True")
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>custom-layout</term>
<listitem>
<para>
This is used to avoid loading this property in the editor when implementing
a custom #GladeEditable that embeds the base #GladeEditorTable implementation,
custom-layout properties will still show up in the reset dialog (default "False)
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>ignore</term>
<listitem>
<para>
Whether to set the property on the object instance (via g_object_set_property or
plugin override functions) when it changes in the editor (the value in the editor
is the value saved).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>themed-icon</term>
<listitem>
<para>
Depicts a string property that is used for an icon from the theme. These will
the appropriate editor.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>weight</term>
<listitem>
<para>
A numerical value to specify this properties position in the property editor.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>transfer-on-paste</term>
<listitem>
<para>
Used for packing properties; depicts packing properties that should follow
the widget when pasted to a new container that supports the same properties.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>save-always</term>
<listitem>
<para>
Specifies that the property should be saved regardless of its value (properties at their
default values are normally not saved).
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
<para>
Child tags of the 'property' tag:
<variablelist>
<varlistentry>
<term>spec</term>
<listitem>
<para>
Specifies a function to be used to return a #GParamSpec for this property;
this is used to add virtual properties to an object (like the "size" property
on #GtkBox).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>tooltip</term>
<listitem>
<para>
The tooltip to be displayed in the property editor for this property.
The tooltip defaults to the blurb of the associated #GParamSpec.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>visible-lines</term>
<listitem>
<para>
An integer value to specify how many lines will be shown for text properties
in the editor (this doesnt really work because of the complexity of calculating
size of rendered text; instead, just set this to 2 if you want the text property
to be edited in a textview with a scrolled window as opposed to a simple text entry).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>displayable-values</term>
<listitem>
<para>
Allows you to specify user friendly strings for enum and flag values as shown in the
example above, use the `id' property in the value tag to depict the real value name
and the `name' property for the human readable one.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>
</refsect1>
</refentry>

1
doc/version.xml.in Normal file
View File

@ -0,0 +1 @@
@PACKAGE_STRING@

555
doc/widgetclasses.sgml Normal file
View File

@ -0,0 +1,555 @@
<refentry id="widgetclasses" revision="8 Feb 2006">
<refmeta>
<refentrytitle>Widget Adaptor Definitions</refentrytitle>
<refmiscinfo>Glade UI</refmiscinfo>
</refmeta>
<refnamediv>
<refname>Widget Classes</refname>
<refpurpose>
Adding support for custom widgets
</refpurpose>
</refnamediv>
<refsect1>
<title>Forward</title>
<para>
Widget support in Glade is provided by the #GladeWidgetAdaptor object, each
`glade-widget-class' definition in the catalog will result in the creation
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
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
writing code.
</para>
<para>
A typical basic example of a widget class definition is as follows:
<programlisting>
<![CDATA[<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>]]></programlisting>
</para>
<para>
Here is the complete example of the form of the `glade-widget-class' definition:
<programlisting>
<![CDATA[<glade-widget-class name="FooFrobnicator" generic-name="frobnicator" title="Frobnicator"/>
<post-create-function>foo_frobnicator_plugin_post_create</post-create-function>
... widget class support functions go here
<properties>
<property id="frobnicated" default="False"/>
... property definitions go here
</properties>
<signals>
<signal id="frobnicate" since="1.0"/>
... signal definitions go here
</signals>
<packing-properties>
... child packing property definitions go here
</packing-properties>
<actions>
<action id="launch_editor" name="Edit Frob" stock="gtk-edit"/>
... context menu action definitions go here
</actions>
<packing-actions>
... context menu action definitions for child objects go here
</packing-actions>
<packing-defaults>
<parent-class name="GtkVBox">
<child-property id="expand" default="false"/>
</parent-class>
... packing default definitions go here
</packing-defaults>
</glade-widget-class>]]></programlisting>
</para>
</refsect1>
<refsect1>
<title>Widget Class Properties</title>
<para>
The following are all properties of the `glade-widget-class' tag
</para>
<variablelist>
<varlistentry>
<term>name</term>
<listitem>
<para>
The class name of the widget; unless the 'get-type-function' property is present,
this will essentially be used to instantiate the actual class by deriving
'gtk_label_get_type' from 'GtkLabel' and searching for 'gtk_label_get_type' in the
support library.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>since</term>
<listitem>
<para>
A 'major.minor' formed version describing the version of the owning catalog in which this
object class was introduced; example: <literal>since="1.0"</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>deprecated</term>
<listitem>
<para>
A boolean property depicting that this widget is currently deprecated.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>builder-unsupported</term>
<listitem>
<para>
A boolean property depicting that this widget is not supported by #GtkBuilder.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>get-type-function</term>
<listitem>
<para>
Used to explicitly specify the name of the function used to get the type of the widget.
It is optional, but if it is not present, the 'name' property will be used to guess the
name of the function, a process that could lead to unexpected results.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>generic-name</term>
<listitem>
<para>
Used to generate a default name for instances of the
widget in the UI editor. It is also used in conjunction with the 'icon-prefix'
to form an icon name for the widget.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>icon-name</term>
<listitem>
<para>
Used to explicitly set an icon name for this widget.
These icon names are looked up in the current icon theme to retrieve an icon for
the widget.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>title</term>
<listitem>
<para>
Used to display the name of the class in the palette and widget
tree and will be translated before use in the interface.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>parent</term>
<listitem>
<para>
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
to fake derive and still add properties and run your catalog independently
of any plugins or libraries).
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>toplevel</term>
<listitem>
<para>
Used to know whether this widget class is toplevel or not
in Glade context. This property will be inherited from the adaptors parent.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>fixed</term>
<listitem>
<para>
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.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>use-placeholders</term>
<listitem>
<para>
Used to inform the core about adaptors that implement
#GtkContainer editing, and whether or not they use #GladePlaceholder. This property will
be inherited from the adaptors parent.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>default-width</term>
<listitem>
<para>
The default width to load a #GtkWindow derived widget in the #GladeDesignView.
This property will be inherited from the adaptors parent.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>default-height</term>
<listitem>
<para>
The default height to load a #GtkWindow derived widget in the #GladeDesignView.
This property will be inherited from the adaptors parent.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Adapter Methods</title>
<para>
The following are all child tags of the `glade-widget-class' tag
</para>
<variablelist>
<varlistentry>
<term>constructor-function</term>
<listitem>
<para>
Used to override the actual #GObject constructor of the said #GladeWidgetAdaptor
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>post-create-function</term>
<listitem>
<para>
A #GladePostCreateFunc support function that gets called whenever a widget of the said class is instantiated.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>deep-post-create-function</term>
<listitem>
<para>
Same as `post-create-function' except in that you must always chain up
to the super class definition as a rule.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>get-property-function</term>
<listitem>
<para>
A #GladeGetPropertyFunc to get values of properties on an instance in the
runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>set-property-function</term>
<listitem>
<para>
A #GladeSetPropertyFunc to set values of properties on an instance in the
runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>verify-function</term>
<listitem>
<para>
A #GladeVerifyPropertyFunc to set values of properties on an instance in the
runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>add-child-function</term>
<listitem>
<para>
A #GladeAddChildFunc to add children to instances in the runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>remove-child-function</term>
<listitem>
<para>
A #GladeRemoveChildFunc to remove children from instances in the runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>replace-child-function</term>
<listitem>
<para>
A #GladeReplaceChildFunc to replace children inside instances in the runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>get-children-function</term>
<listitem>
<para>
A #GladeGetChildrenFunc to get a list of children inside instances in the runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>child-get-property-function</term>
<listitem>
<para>
A #GladeChildGetPropertyFunc to get packing properties from instances in the runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>child-set-property-function</term>
<listitem>
<para>
A #GladeChildSetPropertyFunc to set packing properties on instances in the runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>child-verify-function</term>
<listitem>
<para>
A #GladeChildVerifyPropertyFunc to verify packing properties on instances in the runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>get-internal-child-function</term>
<listitem>
<para>
A #GladeGetInternalFunc to retrieve an internal child of a composite object in the runtime.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>action-activate-function</term>
<listitem>
<para>
A #GladeActionActivateFunc to run a routine for a plugin defined #GladeWidgetAction.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>child-action-activate-function</term>
<listitem>
<para>
A #GladeChildActionActivateFunc to run a routine for a plugin defined packing #GladeWidgetAction.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>read-widget-function</term>
<listitem>
<para>
A #GladeReadWidgetFunc to load a widget from the xml.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>write-widget-function</term>
<listitem>
<para>
A #GladeWriteWidgetFunc to write a widget from the xml.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>read-child-function</term>
<listitem>
<para>
A #GladeReadWidgetFunc to read a child to the xml.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>write-child-function</term>
<listitem>
<para>
A #GladeWriteWidgetFunc to write a child to the xml.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>create-editor-property-function</term>
<listitem>
<para>
A #GladeCreateEPropFunc to create widgets to be used in Glade's property editor.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>string-from-value-function</term>
<listitem>
<para>
A #GladeStringFromValueFunc to create a string from a #GValue, these strings must
be unique and comparable for undo/redo to work properly.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Action Definitions</title>
<para>
Actions are added under the `actions' and `packing-actions' tags, actions can also
be nested so as to allow grouping in context menus, example:
<programlisting>
<![CDATA[...
<action id="manage_frobs" name="Manage Frobs">
<action id="add_frob" name="Add" stock="gtk-add"/>
<action id="remove_frob" name="Remove" stock="gtk-remove"/>
</action>
...]]></programlisting>
</para>
<para>
Here are the meanings of the `action' tag's properties:
</para>
<variablelist>
<varlistentry>
<term>id</term>
<listitem>
<para>
The string identifier for this action, the action_path argument to your #GladeActionActivateFunc
will be a combination if this id and any parents, for the above example:
<literal>"manage_frobs/add_frob"</literal>.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>name</term>
<listitem>
<para>
A string to be displayed in the UI for this action.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>stock</term>
<listitem>
<para>
An optional Gtk stock icon to represent this action.
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>important</term>
<listitem>
<para>
A boolean option to add emphasis to this action; currently actions marked as `important'
are added to the toolbar.
</para>
</listitem>
</varlistentry>
</variablelist>
</refsect1>
<refsect1>
<title>Packing Defaults</title>
<para>
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
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
specify the property name and the `default' property for the value.
</para>
</refsect1>
<refsect1>
<title>Signals</title>
<para>
The signal elements are currently only needed for versioning support, use
the `signal' child tag as described above and set signal `id' to be supported
since version `since'. Signals are initialized to be supported since the
introducing #GladeWidgetAdaptor was supported.
</para>
</refsect1>
<refsect1>
<title>Icons</title>
<para>
The Glade palette and other components use icons to represent the various widget classes.
It is a good idea to provide icons for your widget classes, as this
enhances the user interface.
</para>
<para>
Glade uses the GTK+ GtkIconTheme facility to provide icons for widget classes. Any icon
available in the current icon theme can be used as an icon for a widget class.
</para>
<para>
By default, an icon name of the format "widget-CATALOG_NAME-GENERIC_NAME"
is assigned to every widget class. CATALOG_NAME is the value of catalog name attribute,
and GENERIC_NAME is the value of an widget class's generic name attribute.
</para>
<para>
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
name assigned to the widget class.
</para>
<para>
Icon files can be installed under any system icon theme folder.
</para>
</refsect1>
</refentry>

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Encoding=UTF-8
_Name=Glade 3.0 GUI builder
_Comment=Design user interfaces
Exec=glade-3 %F
Terminal=false
Type=Application
Icon=glade-3.png
Categories=Application;Development;
MimeType=application/x-glade;

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.0 KiB

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>

6
gladeui/.gitignore vendored Normal file
View File

@ -0,0 +1,6 @@
/glade-marshallers.c
/glade-marshallers.h
/gladeui.rc
/glade-previewer
/glade-previewer.rc

BIN
gladeui/atk.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 914 B

View File

@ -0,0 +1,115 @@
/*
* 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.
*/
#include "config.h"
#include "glade-accumulators.h"
#include <glib-object.h>
gboolean
_glade_single_object_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
{
GObject *object = g_value_get_object (handler_return);
g_value_set_object (return_accu, object);
return (object == NULL);
}
gboolean
_glade_integer_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
{
gboolean continue_emission;
gint retval;
retval = g_value_get_int (handler_return);
g_value_set_int (return_accu, retval >> 1);
continue_emission = !(retval & 1);
return continue_emission;
}
/* From gtkmain.c */
gboolean
_glade_boolean_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
{
gboolean continue_emission;
gboolean signal_handled;
signal_handled = g_value_get_boolean (handler_return);
g_value_set_boolean (return_accu, signal_handled);
continue_emission = !signal_handled;
return continue_emission;
}
gboolean
_glade_string_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return,
gpointer dummy)
{
const gchar *handler_str;
g_free ((void *) g_value_get_string (return_accu));
handler_str = g_value_get_string (handler_return);
g_value_set_string (return_accu, handler_str);
return (handler_str == NULL);
}
gboolean
_glade_strv_handled_accumulator (GSignalInvocationHint *ihint,
GValue *return_accu,
const GValue *handler_return, gpointer dummy)
{
const gchar **handler_strv;
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

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

970
gladeui/glade-app.c Normal file
View File

@ -0,0 +1,970 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Naba Kumar <naba@gnome.org>
*/
#include <config.h>
/**
* SECTION:glade-app
* @Short_Description: The central control point of the Glade core.
*
* This main control object is where we try to draw the line between
* what is the Glade core and what is the main application. The main
* application must derive from the GladeApp object and create an instance
* to initialize the Glade core.
*/
#include "glade.h"
#include "glade-debug.h"
#include "glade-cursor.h"
#include "glade-catalog.h"
#include "glade-design-view.h"
#include "glade-design-layout.h"
#include "glade-marshallers.h"
#include "glade-accumulators.h"
#include <string.h>
#include <glib.h>
#include <glib/gstdio.h>
#include <glib/gi18n-lib.h>
#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>
#ifdef MAC_BUNDLE
# include <gtkosxapplication.h>
#endif
#define GLADE_CONFIG_FILENAME "glade.conf"
enum
{
DOC_SEARCH,
SIGNAL_EDITOR_CREATED,
WIDGET_ADAPTOR_REGISTERED,
LAST_SIGNAL
};
typedef struct _GladeAppPrivate GladeAppPrivate;
struct _GladeAppPrivate
{
GtkWidget *window;
GladeClipboard *clipboard; /* See glade-clipboard */
GList *catalogs; /* See glade-catalog */
GList *projects; /* The list of Projects */
GKeyFile *config; /* The configuration file */
GtkAccelGroup *accel_group; /* Default acceleration group for this app */
};
static guint glade_app_signals[LAST_SIGNAL] = { 0 };
/* installation paths */
static gchar *catalogs_dir = NULL;
static gchar *modules_dir = NULL;
static gchar *pixmaps_dir = NULL;
static gchar *locale_dir = NULL;
static gchar *bin_dir = NULL;
static gchar *lib_dir = NULL;
static GladeApp *singleton_app = NULL;
static gboolean check_initialised = FALSE;
G_DEFINE_TYPE_WITH_PRIVATE (GladeApp, glade_app, G_TYPE_OBJECT);
/*****************************************************************
* GObjectClass *
*****************************************************************/
static GObject *
glade_app_constructor (GType type,
guint n_construct_properties,
GObjectConstructParam *construct_properties)
{
GObject *object;
/* singleton */
if (!singleton_app)
{
object = G_OBJECT_CLASS (glade_app_parent_class)->constructor (type,
n_construct_properties,
construct_properties);
singleton_app = GLADE_APP (object);
}
else
{
g_object_ref (singleton_app);
}
return G_OBJECT (singleton_app);
}
static void
glade_app_dispose (GObject *app)
{
GladeAppPrivate *priv = glade_app_get_instance_private ((GladeApp *) app);
if (priv->clipboard)
{
g_object_unref (priv->clipboard);
priv->clipboard = NULL;
}
/* FIXME: Remove projects */
if (priv->config)
{
g_key_file_free (priv->config);
priv->config = NULL;
}
G_OBJECT_CLASS (glade_app_parent_class)->dispose (app);
}
static void
glade_app_finalize (GObject *app)
{
g_free (catalogs_dir);
g_free (modules_dir);
g_free (pixmaps_dir);
g_free (locale_dir);
g_free (bin_dir);
g_free (lib_dir);
singleton_app = NULL;
check_initialised = FALSE;
G_OBJECT_CLASS (glade_app_parent_class)->finalize (app);
}
/* build package paths at runtime */
static void
build_package_paths (void)
{
const gchar *path;
path = g_getenv (GLADE_ENV_PIXMAP_DIR);
if (path)
pixmaps_dir = g_strdup (path);
#if defined (G_OS_WIN32) || defined (MAC_BUNDLE)
gchar *prefix;
# ifdef G_OS_WIN32
prefix = g_win32_get_package_installation_directory_of_module (NULL);
# else // defined (MAC_BUNDLE)
prefix = quartz_application_get_resource_path ();
# endif
if (!pixmaps_dir)
pixmaps_dir = g_build_filename (prefix, "share", PACKAGE_NAME, "pixmaps", NULL);
catalogs_dir = g_build_filename (prefix, "share", PACKAGE_NAME, "catalogs", NULL);
modules_dir = g_build_filename (prefix, "lib", PACKAGE_NAME, "modules", NULL);
locale_dir = g_build_filename (prefix, "share", "locale", NULL);
bin_dir = g_build_filename (prefix, "bin", NULL);
lib_dir = g_build_filename (prefix, "lib", NULL);
g_free (prefix);
#else
catalogs_dir = g_strdup (GLADE_CATALOGSDIR);
modules_dir = g_strdup (GLADE_MODULESDIR);
if (!pixmaps_dir)
pixmaps_dir = g_strdup (GLADE_PIXMAPSDIR);
locale_dir = g_strdup (GLADE_LOCALEDIR);
bin_dir = g_strdup (GLADE_BINDIR);
lib_dir = g_strdup (GLADE_LIBDIR);
#endif
}
/* initialization function for libgladeui (not GladeApp) */
static void
glade_init_check (void)
{
if (check_initialised)
return;
glade_init_debug_flags ();
/* Make sure path accessors work on osx */
build_package_paths ();
bindtextdomain (GETTEXT_PACKAGE, locale_dir);
bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
check_initialised = TRUE;
}
/*****************************************************************
* GladeAppClass *
*****************************************************************/
const gchar *
glade_app_get_catalogs_dir (void)
{
glade_init_check ();
return catalogs_dir;
}
const gchar *
glade_app_get_modules_dir (void)
{
glade_init_check ();
return modules_dir;
}
const gchar *
glade_app_get_pixmaps_dir (void)
{
glade_init_check ();
return pixmaps_dir;
}
const gchar *
glade_app_get_locale_dir (void)
{
glade_init_check ();
return locale_dir;
}
const gchar *
glade_app_get_bin_dir (void)
{
glade_init_check ();
return bin_dir;
}
const gchar *
glade_app_get_lib_dir (void)
{
glade_init_check ();
return lib_dir;
}
static void
pointer_mode_register_icon (const gchar *icon_name,
gint real_size,
GladePointerMode mode,
GtkIconSize size)
{
GdkPixbuf *pixbuf;
if ((pixbuf = glade_utils_pointer_mode_render_icon (mode, size)))
{
gtk_icon_theme_add_builtin_icon (icon_name, real_size, pixbuf);
g_object_unref (pixbuf);
}
}
static void
register_icon (const gchar *new_icon_name,
gint size,
const gchar *icon_name,
const gchar *file_name)
{
GtkIconTheme *icon_theme = gtk_icon_theme_get_default ();
GdkPixbuf *pixbuf;
GtkIconInfo *info;
if ((info = gtk_icon_theme_lookup_icon (icon_theme, icon_name, size, 0)))
{
pixbuf = gtk_icon_info_load_icon (info, NULL);
}
else
{
gchar *path = g_build_filename (glade_app_get_pixmaps_dir (), file_name, NULL);
pixbuf = gdk_pixbuf_new_from_file (path, NULL);
g_free (path);
}
if (pixbuf)
{
gtk_icon_theme_add_builtin_icon (new_icon_name, size, pixbuf);
g_object_unref (pixbuf);
}
}
/*
* glade_app_register_icon_names:
* @size: icon size
*
* Register a new icon name for most of GladePointerMode.
* After calling this function "glade-selector", "glade-drag-resize",
* "glade-margin-edit" and "glade-align-edit" icon names will be available.
*/
static void
glade_app_register_icon_names (GtkIconSize size)
{
gint w, h, real_size;
if (gtk_icon_size_lookup (size, &w, &h) == FALSE)
return;
real_size = MIN (w, h);
pointer_mode_register_icon ("glade-selector", real_size, GLADE_POINTER_SELECT, size);
pointer_mode_register_icon ("glade-drag-resize", real_size, GLADE_POINTER_DRAG_RESIZE, size);
pointer_mode_register_icon ("glade-margin-edit", real_size, GLADE_POINTER_MARGIN_EDIT, size);
pointer_mode_register_icon ("glade-align-edit", real_size, GLADE_POINTER_ALIGN_EDIT, size);
register_icon ("glade-devhelp", real_size,
GLADE_DEVHELP_ICON_NAME,
GLADE_DEVHELP_FALLBACK_ICON_FILE);
}
/**
* glade_init:
*
* Initialization function for libgladeui (not #GladeApp)
* It builds paths, bind text domain, and register icons
*/
void
glade_init (void)
{
static gboolean init = FALSE;
if (init) return;
glade_init_check ();
/* Register icons needed by the UI */
glade_app_register_icon_names (GTK_ICON_SIZE_LARGE_TOOLBAR);
init = TRUE;
}
static void
glade_app_init (GladeApp *app)
{
static gboolean initialized = FALSE;
GladeAppPrivate *priv = glade_app_get_instance_private (app);
singleton_app = app;
glade_init ();
if (!initialized)
{
GtkIconTheme *default_icon_theme = gtk_icon_theme_get_default ();
const gchar *path;
gtk_icon_theme_append_search_path (default_icon_theme, pixmaps_dir);
/* Handle extra icon theme paths. Needed for tests to work */
if ((path = g_getenv (GLADE_ENV_ICON_THEME_PATH)))
{
gchar **tokens = g_strsplit (path, ":", -1);
gint i;
for (i = 0; tokens[i]; i++)
gtk_icon_theme_append_search_path (default_icon_theme, tokens[i]);
g_strfreev (tokens);
}
glade_cursor_init ();
initialized = TRUE;
}
priv->accel_group = NULL;
/* Initialize app objects */
priv->catalogs = (GList *) glade_catalog_load_all ();
/* Create clipboard */
priv->clipboard = glade_clipboard_new ();
/* Load the configuration file */
priv->config = g_key_file_ref (glade_app_get_config ());
}
static void
glade_app_event_handler (GdkEvent *event, gpointer data)
{
if (glade_app_do_event (event)) return;
gtk_main_do_event (event);
}
static void
glade_app_class_init (GladeAppClass *klass)
{
GObjectClass *object_class;
object_class = G_OBJECT_CLASS (klass);
object_class->constructor = glade_app_constructor;
object_class->dispose = glade_app_dispose;
object_class->finalize = glade_app_finalize;
/**
* GladeApp::doc-search:
* @gladeeditor: the #GladeEditor which received the signal.
* @arg1: the (#gchar *) book to search or %NULL
* @arg2: the (#gchar *) page to search or %NULL
* @arg3: the (#gchar *) search string or %NULL
*
* Emitted when the glade core requests that a doc-search be performed.
*/
glade_app_signals[DOC_SEARCH] =
g_signal_new ("doc-search",
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST, 0, NULL, NULL,
_glade_marshal_VOID__STRING_STRING_STRING,
G_TYPE_NONE, 3,
G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING);
/**
* GladeApp::signal-editor-created:
* @gladeapp: the #GladeApp which received the signal.
* @signal_editor: the new #GladeSignalEditor.
*
* Emitted when a new signal editor created.
* A tree view is created in the default handler.
* Connect your handler before the default handler for setting a custom column or renderer
* and after it for connecting to the tree view signals
*/
glade_app_signals[SIGNAL_EDITOR_CREATED] =
g_signal_new ("signal-editor-created",
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
0, NULL, NULL,
_glade_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_OBJECT);
/**
* GladeApp::widget-adaptor-registered:
* @gladeapp: the #GladeApp which received the signal.
* @adaptor: the newly registered #GladeWidgetAdaptor.
*
* Emitted when a new widget adaptor is registered.
*/
glade_app_signals[WIDGET_ADAPTOR_REGISTERED] =
g_signal_new ("widget-adaptor-registered",
G_TYPE_FROM_CLASS (object_class),
G_SIGNAL_RUN_LAST,
0, NULL, NULL,
_glade_marshal_VOID__OBJECT,
G_TYPE_NONE, 1, G_TYPE_OBJECT);
gdk_event_handler_set (glade_app_event_handler, NULL, NULL);
}
/*****************************************************************
* Public API *
*****************************************************************/
/**
* glade_app_do_event:
* @event: the event to process.
*
* This function has to be called in an event handler for widget selection to work.
* See gdk_event_handler_set()
*
* Returns: true if the event was handled.
*/
gboolean
glade_app_do_event (GdkEvent *event)
{
GdkWindow *window = event->any.window;
GtkWidget *layout;
gpointer widget;
if (window == NULL) return FALSE;
gdk_window_get_user_data (window, &widget);
/* As a slight optimization we could replace gtk_widget_get_ancestor()
* with a custom function that only iterates trough parents with windows.
*/
if (widget && GLADE_WIDGET_IS_EVENT (event->type) &&
(layout = gtk_widget_get_ancestor (widget, GLADE_TYPE_DESIGN_LAYOUT)))
return _glade_design_layout_do_event (GLADE_DESIGN_LAYOUT (layout), event);
return FALSE;
}
/**
* glade_app_config_save
*
* Saves the #GKeyFile to "g_get_user_config_dir()/GLADE_CONFIG_FILENAME"
*
* Returns: 0 on success.
*/
gint
glade_app_config_save ()
{
GIOChannel *channel;
GIOStatus status;
gchar *data = NULL, *filename;
const gchar *config_dir = g_get_user_config_dir ();
GError *error = NULL;
gsize size, written, bytes_written = 0;
static gboolean error_shown = FALSE;
GladeApp *app;
GladeAppPrivate *priv;
/* If we had any errors; wait untill next session to retry.
*/
if (error_shown)
return -1;
app = glade_app_get ();
priv = glade_app_get_instance_private (app);
/* Just in case... try to create the config directory */
if (g_file_test (config_dir, G_FILE_TEST_IS_DIR) == FALSE)
{
if (g_file_test (config_dir, G_FILE_TEST_EXISTS))
{
/* Config dir exists but is not a directory */
glade_util_ui_message
(glade_app_get_window (),
GLADE_UI_ERROR, NULL,
_("Trying to save private data to %s directory "
"but it is a regular file.\n"
"No private data will be saved in this session"), config_dir);
error_shown = TRUE;
return -1;
}
else if (g_mkdir (config_dir, S_IRWXU) != 0)
{
/* Doesnt exist; failed to create */
glade_util_ui_message
(glade_app_get_window (),
GLADE_UI_ERROR, NULL,
_("Failed to create directory %s to save private data.\n"
"No private data will be saved in this session"), config_dir);
error_shown = TRUE;
return -1;
}
}
filename = g_build_filename (config_dir, GLADE_CONFIG_FILENAME, NULL);
if ((channel = g_io_channel_new_file (filename, "w", &error)) != NULL)
{
if ((data =
g_key_file_to_data (priv->config, &size, &error)) != NULL)
{
/* Implement loop here */
while ((status = g_io_channel_write_chars (channel, data + bytes_written, /* Offset of write */
size - bytes_written, /* Size left to write */
&written,
&error)) !=
G_IO_STATUS_ERROR && (bytes_written + written) < size)
bytes_written += written;
if (status == G_IO_STATUS_ERROR)
{
glade_util_ui_message
(glade_app_get_window (),
GLADE_UI_ERROR, NULL,
_("Error writing private data to %s (%s).\n"
"No private data will be saved in this session"),
filename, error->message);
error_shown = TRUE;
}
g_free (data);
}
else
{
glade_util_ui_message
(glade_app_get_window (),
GLADE_UI_ERROR, NULL,
_("Error serializing configuration data to save (%s).\n"
"No private data will be saved in this session"),
error->message);
error_shown = TRUE;
}
g_io_channel_shutdown (channel, TRUE, NULL);
g_io_channel_unref (channel);
}
else
{
glade_util_ui_message
(glade_app_get_window (),
GLADE_UI_ERROR, NULL,
_("Error opening %s to write private data (%s).\n"
"No private data will be saved in this session"),
filename, error->message);
error_shown = TRUE;
}
g_free (filename);
if (error)
{
g_error_free (error);
return -1;
}
return 0;
}
/**
* glade_app_get:
*
* Returns: (transfer none): the #GladeApp
*/
GladeApp *
glade_app_get (void)
{
if (!singleton_app)
{
singleton_app = glade_app_new ();
}
return singleton_app;
}
/**
* glade_app_set_window:
* @window: (transfer full): a #GtkWidget
*
* Set the window of the application
*/
void
glade_app_set_window (GtkWidget *window)
{
GladeApp *app = glade_app_get ();
GladeAppPrivate *priv = glade_app_get_instance_private (app);
priv->window = window;
}
/**
* glade_app_get_catalog:
* @name: the name of the catalog
*
* Returns: (transfer none) (nullable): a #GladeCatalog or %NULL if none is found
*/
GladeCatalog *
glade_app_get_catalog (const gchar *name)
{
GladeApp *app = glade_app_get ();
GladeAppPrivate *priv = glade_app_get_instance_private (app);
GList *list;
GladeCatalog *catalog;
g_return_val_if_fail (name && name[0], NULL);
for (list = priv->catalogs; list; list = list->next)
{
catalog = list->data;
if (!strcmp (glade_catalog_get_name (catalog), name))
return catalog;
}
return NULL;
}
/**
* glade_app_get_catalog_version:
* @name: the name of the #GladeCatalog
* @major: (out) (optional): the major version
* @minor: (out) (optional): the minor version
*
* Returns: %TRUE if the catalog has been found. It is a programming error
* to call this function with an unexisting catalog, returns %FALSE in this
* case and throws a warning.
*/
gboolean
glade_app_get_catalog_version (const gchar *name, gint *major, gint *minor)
{
GladeCatalog *catalog = glade_app_get_catalog (name);
g_return_val_if_fail (catalog != NULL, FALSE);
if (major)
*major = glade_catalog_get_major_version (catalog);
if (minor)
*minor = glade_catalog_get_minor_version (catalog);
return TRUE;
}
/**
* glade_app_get_catalogs:
*
* Returns: (transfer none) (element-type GladeCatalog): a list of #GladeCatalog
*/
GList *
glade_app_get_catalogs (void)
{
GladeApp *app = glade_app_get ();
GladeAppPrivate *priv = glade_app_get_instance_private (app);
return priv->catalogs;
}
/**
* glade_app_get_window:
*
* Returns: (transfer none): a #GtkWidget
*/
GtkWidget *
glade_app_get_window (void)
{
GladeApp *app = glade_app_get ();
GladeAppPrivate *priv = glade_app_get_instance_private (app);
return priv->window;
}
/**
* glade_app_get_clipboard:
*
* Returns: (transfer none): a #GladeClipboard
*/
GladeClipboard *
glade_app_get_clipboard (void)
{
GladeApp *app = glade_app_get ();
GladeAppPrivate *priv = glade_app_get_instance_private (app);
return priv->clipboard;
}
/**
* glade_app_get_projects:
*
* Returns: (element-type GladeCatalog) (transfer none): a list of #GladeCatalog
*/
GList *
glade_app_get_projects (void)
{
GladeApp *app = glade_app_get ();
GladeAppPrivate *priv = glade_app_get_instance_private (app);
return priv->projects;
}
/**
* glade_app_get_config:
*
* Returns: (transfer full): a #GKeyFile
*/
GKeyFile *
glade_app_get_config (void)
{
static GKeyFile *config = NULL;
if (config == NULL)
{
gchar *filename = g_build_filename (g_get_user_config_dir (),
GLADE_CONFIG_FILENAME, NULL);
config = g_key_file_new ();
g_key_file_load_from_file (config, filename, G_KEY_FILE_NONE, NULL);
g_free (filename);
}
return config;
}
gboolean
glade_app_is_project_loaded (const gchar *project_path)
{
GladeApp *app;
GladeAppPrivate *priv;
GList *list;
gboolean loaded = FALSE;
if (project_path == NULL)
return FALSE;
app = glade_app_get ();
priv = glade_app_get_instance_private (app);
for (list = priv->projects; list; list = list->next)
{
GladeProject *cur_project = GLADE_PROJECT (list->data);
if ((loaded = glade_project_get_path (cur_project) &&
(strcmp (glade_project_get_path (cur_project), project_path) == 0)))
break;
}
return loaded;
}
/**
* glade_app_get_project_by_path:
* @project_path: The path of an open project
*
* Finds an open project with @path
*
* Returns: (nullable) (transfer none): A #GladeProject, or NULL if no such open project was found
*/
GladeProject *
glade_app_get_project_by_path (const gchar *project_path)
{
GladeApp *app;
GladeAppPrivate *priv;
GList *l;
gchar *canonical_path;
if (project_path == NULL)
return NULL;
app = glade_app_get ();
priv = glade_app_get_instance_private (app);
canonical_path = glade_util_canonical_path (project_path);
for (l = priv->projects; l; l = l->next)
{
GladeProject *project = (GladeProject *) l->data;
if (glade_project_get_path (project) &&
strcmp (canonical_path, glade_project_get_path (project)) == 0)
{
g_free (canonical_path);
return project;
}
}
g_free (canonical_path);
return NULL;
}
/**
* glade_app_add_project:
* @project: the project to add to the #GladeApp
*/
void
glade_app_add_project (GladeProject *project)
{
GladeApp *app;
GladeAppPrivate *priv;
g_return_if_fail (GLADE_IS_PROJECT (project));
app = glade_app_get ();
priv = glade_app_get_instance_private (app);
/* If the project was previously loaded, don't re-load */
if (g_list_find (priv->projects, project) != NULL)
return;
/* Take a reference for GladeApp here... */
priv->projects = g_list_append (priv->projects, g_object_ref (project));
}
/**
* glade_app_remove_project:
* @project: the project to remove from the #GladeApp
*/
void
glade_app_remove_project (GladeProject *project)
{
GladeApp *app;
GladeAppPrivate *priv;
g_return_if_fail (GLADE_IS_PROJECT (project));
app = glade_app_get ();
priv = glade_app_get_instance_private (app);
priv->projects = g_list_remove (priv->projects, project);
/* Its safe to just release the project as the project emits a
* "close" signal and everyone is responsable for cleaning up at
* that point.
*/
g_object_unref (project);
}
/**
* glade_app_set_accel_group:
* @accel_group: (transfer full): a #GtkAccelGroup to set
*
* Sets @accel_group to app.
* The acceleration group will made available for editor dialog windows
* from the plugin backend.
*/
void
glade_app_set_accel_group (GtkAccelGroup *accel_group)
{
GladeApp *app;
GladeAppPrivate *priv;
g_return_if_fail (GTK_IS_ACCEL_GROUP (accel_group));
app = glade_app_get ();
priv = glade_app_get_instance_private (app);
priv->accel_group = accel_group;
}
/**
* glade_app_get_accel_group:
*
* Returns: (transfer none): the #GtkAccelGroup
*/
GtkAccelGroup *
glade_app_get_accel_group (void)
{
GladeApp *app = glade_app_get ();
GladeAppPrivate *priv = glade_app_get_instance_private (app);
return priv->accel_group;
}
/**
* glade_app_new:
*
* Returns: (transfer full): the #GladeApp
*/
GladeApp *
glade_app_new (void)
{
return g_object_new (GLADE_TYPE_APP, NULL);
}
/**
* glade_app_search_docs:
* @book: the name of a book
* @page: the name of a page
* @search: the search query
*
* Searches for @book, @page and @search in the documentation.
*/
void
glade_app_search_docs (const gchar *book,
const gchar *page,
const gchar *search)
{
GladeApp *app;
app = glade_app_get ();
g_signal_emit (G_OBJECT (app), glade_app_signals[DOC_SEARCH], 0,
book, page, search);
}

91
gladeui/glade-app.h Normal file
View File

@ -0,0 +1,91 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Naba Kumar <naba@gnome.org>
*/
#ifndef __GLADE_APP_H__
#define __GLADE_APP_H__
#include <gladeui/glade-editor.h>
#include <gladeui/glade-palette.h>
#include <gladeui/glade-clipboard.h>
#include <gladeui/glade-catalog.h>
G_BEGIN_DECLS
#define GLADE_TYPE_APP glade_app_get_type ()
G_DECLARE_DERIVABLE_TYPE (GladeApp, glade_app, GLADE, APP, GObject)
#define GLADE_ENV_CATALOG_PATH "GLADE_CATALOG_SEARCH_PATH"
#define GLADE_ENV_MODULE_PATH "GLADE_MODULE_SEARCH_PATH"
#define GLADE_ENV_TESTING "GLADE_TESTING"
#define GLADE_ENV_PIXMAP_DIR "GLADE_PIXMAP_DIR"
#define GLADE_ENV_ICON_THEME_PATH "GLADE_ICON_THEME_PATH"
#define GLADE_ENV_BUNDLED "GLADE_BUNDLED"
struct _GladeAppClass
{
GObjectClass parent_class;
gpointer padding[6];
};
void glade_init (void);
GladeApp* glade_app_new (void);
GladeApp* glade_app_get (void);
GKeyFile* glade_app_get_config (void);
gint glade_app_config_save (void);
gboolean glade_app_do_event (GdkEvent *event);
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_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);
GtkWidget* glade_app_get_window (void);
void glade_app_set_accel_group (GtkAccelGroup *accel_group);
GtkAccelGroup *glade_app_get_accel_group (void);
void glade_app_search_docs (const gchar *book,
const gchar *page,
const gchar *search);
/* package paths */
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_locale_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_bin_dir (void) G_GNUC_CONST;
const gchar *glade_app_get_lib_dir (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GLADE_APP_H__ */

2173
gladeui/glade-base-editor.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,81 @@
/*
* Copyright (C) 2006 Juan Pablo Ugarte.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*/
#ifndef __GLADE_BASE_EDITOR_H__
#define __GLADE_BASE_EDITOR_H__
#include <gladeui/glade-widget.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define GLADE_TYPE_BASE_EDITOR glade_base_editor_get_type ()
G_DECLARE_DERIVABLE_TYPE (GladeBaseEditor, glade_base_editor, GLADE, BASE_EDITOR, GtkBox)
struct _GladeBaseEditorClass
{
GtkBoxClass parent_class;
void (*child_selected) (GladeBaseEditor *editor, GladeWidget *gchild);
gboolean (*change_type) (GladeBaseEditor *editor, GladeWidget *gchild, GType type);
gchar * (*get_display_name) (GladeBaseEditor *editor, GladeWidget *gchild);
GladeWidget * (*build_child) (GladeBaseEditor *editor, GladeWidget *parent, GType type);
gboolean (*delete_child) (GladeBaseEditor *editor, GladeWidget *parent, GladeWidget *gchild);
gboolean (*move_child) (GladeBaseEditor *editor, GladeWidget *gparent, GladeWidget *gchild);
gpointer padding[6];
};
GladeBaseEditor *glade_base_editor_new (GObject *container,
GladeEditable *main_editable,
...);
void glade_base_editor_append_types (GladeBaseEditor *editor,
GType parent_type,
...);
void glade_base_editor_add_editable (GladeBaseEditor *editor,
GladeWidget *gchild,
GladeEditorPageType page);
void glade_base_editor_add_default_properties (GladeBaseEditor *editor,
GladeWidget *gchild);
void glade_base_editor_add_properties (GladeBaseEditor *editor,
GladeWidget *gchild,
gboolean packing,
...);
void glade_base_editor_add_label (GladeBaseEditor *editor,
gchar *str);
void glade_base_editor_set_show_signal_editor (GladeBaseEditor *editor,
gboolean val);
/* Convenience functions */
GtkWidget *glade_base_editor_pack_new_window (GladeBaseEditor *editor,
gchar *title,
gchar *help_markup);
G_END_DECLS
#endif /* __GLADE_BASE_EDITOR_H__ */

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>

653
gladeui/glade-builtins.c Normal file
View File

@ -0,0 +1,653 @@
/*
* 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.
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <glib-object.h>
#include <glib/gi18n-lib.h>
#include <string.h>
#include "glade-builtins.h"
#include "glade-displayable-values.h"
struct _GladeParamSpecObjects
{
GParamSpec parent_instance;
GType type; /* Object or interface type accepted
* in this object list.
*/
};
typedef struct _GladeStockItem
{
gchar *value_name;
gchar *value_nick;
gchar *clean_name;
gint value;
} GladeStockItem;
/************************************************************
* Auto-generate the enum type for stock properties *
************************************************************/
/* Hard-coded list of stock images (and displayable translations) from gtk+ that are not stock "items" */
static const gchar *builtin_stock_images[] = {
"gtk-dialog-authentication", /* GTK_STOCK_DIALOG_AUTHENTICATION */
"gtk-dnd", /* GTK_STOCK_DND */
"gtk-dnd-multiple", /* GTK_STOCK_DND_MULTIPLE */
"gtk-color-picker", /* GTK_STOCK_COLOR_PICKER */
"gtk-directory", /* GTK_STOCK_DIRECTORY */
"gtk-file", /* GTK_STOCK_FILE */
"gtk-missing-image" /* GTK_STOCK_MISSING_IMAGE */
};
static const gchar *builtin_stock_displayables[] = {
/* GTK_STOCK_DIALOG_AUTHENTICATION */
N_("Authentication"),
/* GTK_STOCK_DND */
N_("Drag and Drop"),
/* GTK_STOCK_DND_MULTIPLE */
N_("Drag and Drop Multiple"),
/* GTK_STOCK_COLOR_PICKER */
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 gboolean stock_prefixs_done = FALSE;
/* FIXME: func needs documentation
*/
void
glade_standard_stock_append_prefix (const gchar * prefix)
{
if (stock_prefixs_done)
{
g_warning
("glade_standard_stock_append_prefix should be used in catalog init-function");
return;
}
stock_prefixs = g_slist_append (stock_prefixs, g_strdup (prefix));
}
static GladeStockItem *
new_from_values (const gchar * name, const gchar * nick, gint value)
{
GladeStockItem *new_gsi = NULL;
gchar *clean_name;
size_t len = 0;
guint i = 0;
guint j = 0;
new_gsi = (GladeStockItem *) g_malloc0 (sizeof (GladeStockItem));
new_gsi->value_name = g_strdup (name);
new_gsi->value_nick = g_strdup (nick);
new_gsi->value = value;
clean_name = g_strdup (name);
len = strlen (clean_name);
while (i + j <= len)
{
if (clean_name[i + j] == '_')
j++;
clean_name[i] = clean_name[i + j];
i++;
}
new_gsi->clean_name = g_utf8_collate_key (clean_name, i - j);
g_free (clean_name);
return new_gsi;
}
static gint
compare_two_gsi (gconstpointer a, gconstpointer b)
{
GladeStockItem *gsi1 = (GladeStockItem *) a;
GladeStockItem *gsi2 = (GladeStockItem *) b;
return strcmp (gsi1->clean_name, gsi2->clean_name);
}
static GArray *
list_stock_items (gboolean include_images)
{
GtkStockItem item;
GSList *l = NULL, *stock_list = NULL, *p = NULL;
gchar *stock_id = NULL, *prefix = NULL;
gint stock_enum = 0, i = 0;
GEnumValue value;
GArray *values = NULL;
GladeStockItem *gsi;
GSList *gsi_list = NULL;
GSList *gsi_list_list = NULL;
if (gdk_display_get_default () == NULL)
{
values = g_array_sized_new (TRUE, TRUE, sizeof (GEnumValue), 1);
value.value = 0;
value.value_name = "dummy";
value.value_nick = "Dummy";
g_array_append_val (values, value);
return values;
}
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
stock_list = g_slist_reverse (gtk_stock_list_ids ());
G_GNUC_END_IGNORE_DEPRECATIONS
values = g_array_sized_new (TRUE, TRUE, sizeof (GEnumValue),
g_slist_length (stock_list));
/* We want gtk+ stock items to appear first */
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))
{
stock_id = l->data;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS
if (g_str_has_prefix (stock_id, prefix) == FALSE ||
gtk_stock_lookup (stock_id, &item) == FALSE)
continue;
G_GNUC_END_IGNORE_DEPRECATIONS
gsi = new_from_values (item.label, stock_id, 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;
/* Images are appended after the gtk+ group of items */
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;
}
}
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 *
clean_stock_name (const gchar * name)
{
gchar *clean_name, *str;
size_t len = 0;
guint i = 0;
guint j = 0;
g_assert (name && name[0]);
str = g_strdup (name);
len = strlen (str);
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
glade_standard_stock_get_type (void)
{
static GType etype = 0;
if (etype == 0)
{
GArray *values = list_stock_items (FALSE);
gint i, n_values = values->len;
GEnumValue *enum_values = (GEnumValue *) values->data;
GtkStockItem item;
etype = g_enum_register_static ("GladeStock",
(GEnumValue *) g_array_free (values,
FALSE));
if (gdk_display_get_default () == NULL)
return etype;
/* Register displayable by GType, i.e. after the types been created. */
for (i = 0; i < n_values; i++)
{
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);
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
glade_standard_stock_image_get_type (void)
{
static GType etype = 0;
if (etype == 0)
{
GArray *values = list_stock_items (TRUE);
gint i, n_values = values->len;
GEnumValue *enum_values = (GEnumValue *) values->data;
GtkStockItem item;
etype = g_enum_register_static ("GladeStockImage",
(GEnumValue *) g_array_free (values,
FALSE));
if (gdk_display_get_default () == NULL)
return etype;
/* Register displayable by GType, i.e. after the types been created. */
for (i = 0; i < n_values; i++)
{
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);
/* These are translated, we just cut out the mnemonic underscores */
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);
}
}
for (i = 0; i < G_N_ELEMENTS (builtin_stock_images); i++)
{
/* 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 *
glade_standard_stock_spec (void)
{
return g_param_spec_enum ("stock", _("Stock"),
_("A builtin stock item"),
GLADE_TYPE_STOCK, 0, G_PARAM_READWRITE);
}
/**
* glade_standard_stock_image_spec:
*
* Returns: (transfer full): a #GParamSpec describing a list of builtin stock image
*/
GParamSpec *
glade_standard_stock_image_spec (void)
{
return g_param_spec_enum ("stock-image", _("Stock Image"),
_("A builtin stock image"),
GLADE_TYPE_STOCK_IMAGE, 0, G_PARAM_READWRITE);
}
/****************************************************************
* A GList boxed type used by GladeParamSpecObjects and *
* GladeParamSpecAccel (which is now in the glade-gtk backend) *
****************************************************************/
GType
glade_glist_get_type (void)
{
static GType type_id = 0;
if (!type_id)
type_id = g_boxed_type_register_static
("GladeGList",
(GBoxedCopyFunc) g_list_copy, (GBoxedFreeFunc) g_list_free);
return type_id;
}
/****************************************************************
* Built-in GladeParamSpecObjects for object list properties *
* (Used as a pspec to describe an AtkRelationSet, but can *
* for any object list property) *
****************************************************************/
static void
param_objects_init (GParamSpec * pspec)
{
GladeParamSpecObjects *ospec = GLADE_PARAM_SPEC_OBJECTS (pspec);
ospec->type = G_TYPE_OBJECT;
}
static void
param_objects_set_default (GParamSpec * pspec, GValue * value)
{
if (value->data[0].v_pointer != NULL)
{
g_free (value->data[0].v_pointer);
}
value->data[0].v_pointer = NULL;
}
static gboolean
param_objects_validate (GParamSpec * pspec, GValue * value)
{
GladeParamSpecObjects *ospec = GLADE_PARAM_SPEC_OBJECTS (pspec);
GList *objects, *list, *toremove = NULL;
GObject *object;
objects = value->data[0].v_pointer;
for (list = objects; list; list = list->next)
{
object = list->data;
if (!(G_OBJECT_TYPE (object) == ospec->type ||
g_type_is_a (G_OBJECT_TYPE (object), ospec->type)))
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);
value->data[0].v_pointer = objects;
return toremove != NULL;
}
static gint
param_objects_values_cmp (GParamSpec * pspec,
const GValue * value1, const GValue * value2)
{
guint8 *p1 = value1->data[0].v_pointer;
guint8 *p2 = value2->data[0].v_pointer;
/* not much to compare here, try to at least provide stable lesser/greater result */
return p1 < p2 ? -1 : p1 > p2;
}
GType
glade_param_objects_get_type (void)
{
static GType objects_type = 0;
if (objects_type == 0)
{
static /* const */ GParamSpecTypeInfo pspec_info = {
sizeof (GladeParamSpecObjects), /* instance_size */
16, /* n_preallocs */
param_objects_init, /* instance_init */
0xdeadbeef, /* value_type, assigned further down */
NULL, /* finalize */
param_objects_set_default, /* value_set_default */
param_objects_validate, /* value_validate */
param_objects_values_cmp, /* values_cmp */
};
pspec_info.value_type = GLADE_TYPE_GLIST;
objects_type = g_param_type_register_static
("GladeParamObjects", &pspec_info);
}
return objects_type;
}
/**
* glade_param_spec_objects:
*
* Returns: (transfer full): a #GParamSpec describing a list of #GObject
*/
GParamSpec *
glade_param_spec_objects (const gchar * name,
const gchar * nick,
const gchar * blurb,
GType accepted_type, GParamFlags flags)
{
GladeParamSpecObjects *pspec;
pspec = g_param_spec_internal (GLADE_TYPE_PARAM_OBJECTS,
name, nick, blurb, flags);
pspec->type = accepted_type;
return G_PARAM_SPEC (pspec);
}
void
glade_param_spec_objects_set_type (GladeParamSpecObjects * pspec, GType type)
{
pspec->type = type;
}
GType
glade_param_spec_objects_get_type (GladeParamSpecObjects * pspec)
{
return pspec->type;
}
/**
* glade_standard_objects_spec:
*
* This was developed for the purpose of holding a list
* of 'targets' in an AtkRelation (we are setting it up
* as a property)
*
* Returns: (transfer full): a #GParamSpec describing a list of #GObject
*/
GParamSpec *
glade_standard_objects_spec (void)
{
return glade_param_spec_objects ("objects", _("Objects"),
_("A list of objects"),
G_TYPE_OBJECT, G_PARAM_READWRITE);
}
/**
* glade_standard_pixbuf_spec:
*
* Returns: (transfer full): a #GParamSpec describing a #GdkPixbuf
*/
GParamSpec *
glade_standard_pixbuf_spec (void)
{
return g_param_spec_object ("pixbuf", _("Image File Name"),
_("Enter a filename, relative path or full path to "
"load the image"), GDK_TYPE_PIXBUF,
G_PARAM_READWRITE);
}
/**
* glade_standard_gdkcolor_spec:
*
* Returns: (transfer full): a #GParamSpec describing a #GdkColor
*/
GParamSpec *
glade_standard_gdkcolor_spec (void)
{
return g_param_spec_boxed ("gdkcolor", _("Color"),
_("A GDK color value"), GDK_TYPE_COLOR,
G_PARAM_READWRITE);
}
/****************************************************************
* Basic types follow *
****************************************************************/
/**
* glade_standard_int_spec:
*
* Returns: (transfer full): a #GParamSpec describing an int
*/
GParamSpec *
glade_standard_int_spec (void)
{
return g_param_spec_int ("int", "Integer",
"An integer value",
G_MININT, G_MAXINT, 0, G_PARAM_READWRITE);
}
/**
* glade_standard_uint_spec:
*
* Returns: (transfer full): a #GParamSpec describing an uint
*/
GParamSpec *
glade_standard_uint_spec (void)
{
return g_param_spec_uint ("uint", "Unsigned Integer",
"An unsigned integer value",
0, G_MAXUINT, 0, G_PARAM_READWRITE);
}
/**
* glade_standard_string_spec:
*
* Returns: (transfer full): a #GParamSpec describing a string
*/
GParamSpec *
glade_standard_string_spec (void)
{
return g_param_spec_string ("string", _("String"),
_("An entry"), "", G_PARAM_READWRITE);
}
/**
* glade_standard_strv_spec:
*
* Returns: (transfer full): a #GParamSpec describing an array of strings
*/
GParamSpec *
glade_standard_strv_spec (void)
{
return g_param_spec_boxed ("strv", "Strv",
"String array", G_TYPE_STRV, G_PARAM_READWRITE);
}
/**
* glade_standard_float_spec:
*
* Returns: (transfer full): a #GParamSpec describing a float
*/
GParamSpec *
glade_standard_float_spec (void)
{
return g_param_spec_float ("float", "Float",
"A floating point entry",
0.0F, G_MAXFLOAT, 0.0F, G_PARAM_READWRITE);
}
/**
* glade_standard_boolean_spec:
*
* Returns: (transfer full): a #GParamSpec describing a boolean
*/
GParamSpec *
glade_standard_boolean_spec (void)
{
return g_param_spec_boolean ("boolean", "Boolean",
"A boolean value", FALSE, G_PARAM_READWRITE);
}

85
gladeui/glade-builtins.h Normal file
View File

@ -0,0 +1,85 @@
/*
* glade-clipboard.c - An object for handling Cut/Copy/Paste.
*
* Copyright (C) 2005 The GNOME Foundation.
*
* Author(s):
* Tristan Van Berkom <tvb@gnome.org>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#ifndef __GLADE_BUILTINS_H__
#define __GLADE_BUILTINS_H__
#include <glib-object.h>
#include <gladeui/glade.h>
G_BEGIN_DECLS
typedef struct _GladeParamSpecObjects GladeParamSpecObjects;
#define GLADE_TYPE_STOCK (glade_standard_stock_get_type())
#define GLADE_TYPE_STOCK_IMAGE (glade_standard_stock_image_get_type())
#define GLADE_TYPE_GLIST (glade_glist_get_type())
#define GLADE_TYPE_PARAM_OBJECTS (glade_param_objects_get_type())
#define GLADE_IS_STOCK(pspec) \
(G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GLADE_TYPE_STOCK))
#define GLADE_IS_STOCK_IMAGE(pspec) \
(G_TYPE_CHECK_INSTANCE_TYPE ((pspec), GLADE_TYPE_STOCK_IMAGE))
#define GLADE_IS_PARAM_SPEC_OBJECTS(pspec) \
(G_TYPE_CHECK_INSTANCE_TYPE ((pspec), \
GLADE_TYPE_PARAM_OBJECTS))
#define GLADE_PARAM_SPEC_OBJECTS(pspec) \
(G_TYPE_CHECK_INSTANCE_CAST ((pspec), \
GLADE_TYPE_PARAM_OBJECTS, GladeParamSpecObjects))
GType glade_standard_stock_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_param_objects_get_type (void) G_GNUC_CONST;
GParamSpec *glade_param_spec_objects (const gchar *name,
const gchar *nick,
const gchar *blurb,
GType accepted_type,
GParamFlags flags);
void glade_param_spec_objects_set_type (GladeParamSpecObjects *pspec,
GType type);
GType glade_param_spec_objects_get_type (GladeParamSpecObjects *pspec);
GParamSpec *glade_standard_pixbuf_spec (void);
GParamSpec *glade_standard_gdkcolor_spec (void);
GParamSpec *glade_standard_objects_spec (void);
GParamSpec *glade_standard_stock_spec (void);
GParamSpec *glade_standard_stock_image_spec (void);
GParamSpec *glade_standard_int_spec (void);
GParamSpec *glade_standard_uint_spec (void);
GParamSpec *glade_standard_string_spec (void);
GParamSpec *glade_standard_strv_spec (void);
GParamSpec *glade_standard_float_spec (void);
GParamSpec *glade_standard_boolean_spec (void);
void glade_standard_stock_append_prefix (const gchar *prefix);
G_END_DECLS
#endif /* __GLADE_BUILTINS_H__ */

1098
gladeui/glade-catalog.c Normal file

File diff suppressed because it is too large Load Diff

91
gladeui/glade-catalog.h Normal file
View File

@ -0,0 +1,91 @@
/*
* Copyright (C) 2001 Ximian, Inc.
* Copyright (C) 2004 Imendio AB
* Copyright (C) 2007 The GNOME Foundation
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*/
#ifndef __GLADE_CATALOG_H__
#define __GLADE_CATALOG_H__
#include <glib.h>
#include <gladeui/glade-xml-utils.h>
G_BEGIN_DECLS
#define GLADE_CATALOG(c) ((GladeCatalog *) c)
#define GLADE_IS_CATALOG(c) (c != NULL)
#define GLADE_WIDGET_GROUP(g) ((GladeWidgetGroup *) g)
#define GLADE_IS_WIDGET_GROUP(g) (g != NULL)
typedef struct _GladeCatalog GladeCatalog;
typedef struct _GladeWidgetGroup GladeWidgetGroup;
/**
* GladeCatalogInitFunc:
* @name: The name of the catalog
*
* Called once at glade startup time for every catalog, catalogs
* are initialized in order of dependencies.
*/
typedef void (*GladeCatalogInitFunc) (const gchar *name);
typedef struct {
gint major;
gint minor;
} 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 gchar *glade_catalog_get_name (GladeCatalog *catalog);
const gchar *glade_catalog_get_prefix (GladeCatalog *catalog);
const gchar *glade_catalog_get_icon_prefix(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);
guint16 glade_catalog_get_major_version (GladeCatalog *catalog);
guint16 glade_catalog_get_minor_version (GladeCatalog *catalog);
GList *glade_catalog_get_widget_groups (GladeCatalog *catalog);
GList *glade_catalog_get_adaptors (GladeCatalog *catalog);
gboolean glade_catalog_is_loaded (const gchar *name);
void glade_catalog_destroy_all (void);
const gchar *glade_widget_group_get_name (GladeWidgetGroup *group);
const gchar *glade_widget_group_get_title (GladeWidgetGroup *group);
gboolean glade_widget_group_get_expanded (GladeWidgetGroup *group);
const GList *glade_widget_group_get_adaptors (GladeWidgetGroup *group);
G_END_DECLS
#endif /* __GLADE_CATALOG_H__ */

View File

@ -0,0 +1,239 @@
/*
* Copyright (C) 2008 Tristan Van Berkom.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#include "config.h"
#include "glade-cell-renderer-icon.h"
#include "glade-marshallers.h"
static void glade_cell_renderer_icon_get_property (GObject *object,
guint param_id,
GValue *value,
GParamSpec *pspec);
static void glade_cell_renderer_icon_set_property (GObject *object,
guint param_id,
const GValue *value,
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);
typedef struct _GladeCellRendererIconPrivate
{
guint active : 1;
guint activatable : 1;
} GladeCellRendererIconPrivate;
enum
{
ACTIVATE,
LAST_SIGNAL
};
enum
{
PROP_0,
PROP_ACTIVATABLE,
PROP_ACTIVE,
N_PROPERTIES
};
static GParamSpec *properties[N_PROPERTIES];
static guint icon_cell_signals[LAST_SIGNAL] = { 0 };
G_DEFINE_TYPE_WITH_PRIVATE (GladeCellRendererIcon,
glade_cell_renderer_icon,
GTK_TYPE_CELL_RENDERER_PIXBUF)
static void glade_cell_renderer_icon_init (GladeCellRendererIcon *cellicon)
{
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (cellicon);
priv->activatable = TRUE;
priv->active = FALSE;
g_object_set (G_OBJECT (cellicon), "mode", GTK_CELL_RENDERER_MODE_ACTIVATABLE,
NULL);
}
static void
glade_cell_renderer_icon_class_init (GladeCellRendererIconClass *class)
{
GObjectClass *object_class = G_OBJECT_CLASS (class);
GtkCellRendererClass *cell_class = GTK_CELL_RENDERER_CLASS (class);
object_class->get_property = glade_cell_renderer_icon_get_property;
object_class->set_property = glade_cell_renderer_icon_set_property;
cell_class->activate = glade_cell_renderer_icon_activate;
properties[PROP_ACTIVE] =
g_param_spec_boolean ("active", "Icon state",
"The icon state of the button",
FALSE,
G_PARAM_READABLE | G_PARAM_WRITABLE);
properties[PROP_ACTIVATABLE] =
g_param_spec_boolean ("activatable",
"Activatable",
"The icon button can be activated",
TRUE,
G_PARAM_READABLE | G_PARAM_WRITABLE);
/* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
icon_cell_signals[ACTIVATE] =
g_signal_new ("activate",
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_LAST,
G_STRUCT_OFFSET (GladeCellRendererIconClass, activate),
NULL, NULL,
_glade_marshal_VOID__STRING, G_TYPE_NONE, 1, G_TYPE_STRING);
}
static void
glade_cell_renderer_icon_get_property (GObject *object,
guint param_id,
GValue *value,
GParamSpec *pspec)
{
GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object);
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (cellicon);
switch (param_id)
{
case PROP_ACTIVE:
g_value_set_boolean (value, priv->active);
break;
case PROP_ACTIVATABLE:
g_value_set_boolean (value, priv->activatable);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
}
}
static void
glade_cell_renderer_icon_set_property (GObject *object,
guint param_id,
const GValue *value,
GParamSpec *pspec)
{
GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (object);
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (cellicon);
switch (param_id)
{
case PROP_ACTIVE:
priv->active = g_value_get_boolean (value);
break;
case PROP_ACTIVATABLE:
priv->activatable = g_value_get_boolean (value);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, param_id, pspec);
break;
}
}
GtkCellRenderer *
glade_cell_renderer_icon_new (void)
{
return g_object_new (GLADE_TYPE_CELL_RENDERER_ICON, NULL);
}
static gint
glade_cell_renderer_icon_activate (GtkCellRenderer *cell,
GdkEvent *event,
GtkWidget *widget,
const gchar *path,
const GdkRectangle *background_area,
const GdkRectangle *cell_area,
GtkCellRendererState flags)
{
GladeCellRendererIcon *cellicon = GLADE_CELL_RENDERER_ICON (cell);
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (cellicon);
if (priv->activatable)
{
g_signal_emit (cell, icon_cell_signals[ACTIVATE], 0, path);
return TRUE;
}
return FALSE;
}
gboolean
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);
return priv->active;
}
void
glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon,
gboolean setting)
{
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (icon);
g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon));
if (priv->active != setting)
{
priv->active = setting ? TRUE : FALSE;
g_object_notify_by_pspec (G_OBJECT (icon), properties[PROP_ACTIVE]);
}
}
gboolean
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);
return priv->activatable;
}
void
glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon,
gboolean setting)
{
GladeCellRendererIconPrivate *priv = glade_cell_renderer_icon_get_instance_private (icon);
g_return_if_fail (GLADE_IS_CELL_RENDERER_ICON (icon));
if (priv->activatable != setting)
{
priv->activatable = setting ? TRUE : FALSE;
g_object_notify_by_pspec (G_OBJECT (icon), properties[PROP_ACTIVATABLE]);
}
}

View File

@ -0,0 +1,54 @@
/*
* Copyright (C) 2010 Tristan Van Berkom.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_CELL_RENDERER_ICON_H__
#define __GLADE_CELL_RENDERER_ICON_H__
#include <gtk/gtk.h>
G_BEGIN_DECLS
#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)
struct _GladeCellRendererIconClass
{
GtkCellRendererPixbufClass parent_class;
void (* activate) (GladeCellRendererIcon *cell_renderer_icon,
const gchar *path);
};
GtkCellRenderer *glade_cell_renderer_icon_new (void);
gboolean glade_cell_renderer_icon_get_active (GladeCellRendererIcon *icon);
void glade_cell_renderer_icon_set_active (GladeCellRendererIcon *icon,
gboolean setting);
gboolean glade_cell_renderer_icon_get_activatable (GladeCellRendererIcon *icon);
void glade_cell_renderer_icon_set_activatable (GladeCellRendererIcon *icon,
gboolean setting);
G_END_DECLS
#endif /* __GLADE_CELL_RENDERER_ICON_H__ */

224
gladeui/glade-clipboard.c Normal file
View File

@ -0,0 +1,224 @@
/*
* glade-clipboard.c - An object for handling Cut/Copy/Paste.
*
* Copyright (C) 2001 The GNOME Foundation.
*
* Author(s):
* Archit Baweja <bighead@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#include "config.h"
/**
* SECTION:glade-clipboard
* @Short_Description: A list of #GladeWidget objects not in any #GladeProject.
*
* The #GladeClipboard is a singleton and is an accumulative shelf
* of all cut or copied #GladeWidget in the application. A #GladeWidget
* can be cut from one #GladeProject and pasted to another.
*/
#include <glib/gi18n-lib.h>
#include "glade.h"
#include "glade-clipboard.h"
#include "glade-widget.h"
#include "glade-placeholder.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
{
PROP_0,
PROP_HAS_SELECTION,
N_PROPERTIES
};
static GParamSpec *properties[N_PROPERTIES];
G_DEFINE_TYPE_WITH_PRIVATE (GladeClipboard, glade_clipboard, G_TYPE_OBJECT)
static void
glade_project_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{
GladeClipboard *clipboard = GLADE_CLIPBOARD (object);
GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
switch (prop_id)
{
case PROP_HAS_SELECTION:
g_value_set_boolean (value, priv->has_selection);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
glade_clipboard_class_init (GladeClipboardClass * klass)
{
GObjectClass *object_class;
object_class = G_OBJECT_CLASS (klass);
object_class->get_property = glade_project_get_property;
properties[PROP_HAS_SELECTION] =
g_param_spec_boolean ("has-selection",
"Has Selection",
"Whether clipboard has a selection of items to paste",
FALSE,
G_PARAM_READABLE);
/* Install all properties */
g_object_class_install_properties (object_class, N_PROPERTIES, properties);
}
static void
glade_clipboard_init (GladeClipboard *clipboard)
{
GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
priv->widgets = NULL;
priv->has_selection = FALSE;
}
static void
glade_clipboard_set_has_selection (GladeClipboard *clipboard,
gboolean has_selection)
{
GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
if (priv->has_selection != has_selection)
{
priv->has_selection = has_selection;
g_object_notify_by_pspec (G_OBJECT (clipboard), properties[PROP_HAS_SELECTION]);
}
}
/**
* glade_clipboard_get_has_selection:
* @clipboard: a #GladeClipboard
*
* Returns: TRUE if this clipboard has selected items to paste.
*/
gboolean
glade_clipboard_get_has_selection (GladeClipboard *clipboard)
{
GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
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:
*
* Returns: a new #GladeClipboard object
*/
GladeClipboard *
glade_clipboard_new (void)
{
return GLADE_CLIPBOARD (g_object_new (GLADE_TYPE_CLIPBOARD, NULL));
}
/**
* glade_clipboard_add:
* @clipboard: a #GladeClipboard
* @widgets: (element-type GladeWidget): a #GList of #GladeWidgets
*
* Adds @widgets to @clipboard.
* This increases the reference count of each #GladeWidget in @widgets.
*/
void
glade_clipboard_add (GladeClipboard *clipboard, GList *widgets)
{
GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
GladeWidget *widget;
GList *list;
g_return_if_fail (GLADE_IS_CLIPBOARD (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;
priv->widgets =
g_list_prepend (priv->widgets, g_object_ref_sink (G_OBJECT (widget)));
}
glade_clipboard_set_has_selection (clipboard, TRUE);
}
/**
* glade_clipboard_clear:
* @clipboard: a #GladeClipboard
*
* Removes all widgets from the @clipboard.
*/
void
glade_clipboard_clear (GladeClipboard *clipboard)
{
GladeClipboardPrivate *priv = glade_clipboard_get_instance_private (clipboard);
GladeWidget *widget;
GList *list;
g_return_if_fail (GLADE_IS_CLIPBOARD (clipboard));
for (list = priv->widgets; list && list->data; list = list->next)
{
widget = list->data;
g_object_unref (G_OBJECT (widget));
}
priv->widgets =
(g_list_free (priv->widgets), NULL);
glade_clipboard_set_has_selection (clipboard, FALSE);
}

52
gladeui/glade-clipboard.h Normal file
View File

@ -0,0 +1,52 @@
/*
* glade-clipboard.h
*
* Copyright (C) 2001 The GNOME Foundation.
*
* Author(s):
* Archit Baweja <bighead@users.sourceforge.net>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version 2
* of the License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301,
* USA.
*/
#ifndef __GLADE_CLIPBOARD_H__
#define __GLADE_CLIPBOARD_H__
#include <gladeui/glade.h>
G_BEGIN_DECLS
#define GLADE_TYPE_CLIPBOARD glade_clipboard_get_type ()
G_DECLARE_DERIVABLE_TYPE (GladeClipboard, glade_clipboard, GLADE, CLIPBOARD, GObject)
struct _GladeClipboardClass
{
GObjectClass parent_class;
gpointer padding[4];
};
GladeClipboard *glade_clipboard_new (void);
void glade_clipboard_add (GladeClipboard *clipboard,
GList *widgets);
void glade_clipboard_clear (GladeClipboard *clipboard);
gboolean glade_clipboard_get_has_selection(GladeClipboard *clipboard);
GList *glade_clipboard_widgets (GladeClipboard *clipboard);
G_END_DECLS
#endif /* __GLADE_CLIPBOARD_H__ */

3069
gladeui/glade-command.c Normal file

File diff suppressed because it is too large Load Diff

182
gladeui/glade-command.h Normal file
View File

@ -0,0 +1,182 @@
/*
* Copyright (C) 2002 Joaquín Cuenca Abela
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Joaquín Cuenca Abela <e98cuenc@yahoo.com>
* Archit Baweja <bighead@users.sourceforge.net>
*/
#ifndef __GLADE_COMMAND_H__
#define __GLADE_COMMAND_H__
#include <gladeui/glade-placeholder.h>
#include <gladeui/glade-widget.h>
#include <gladeui/glade-signal.h>
#include <gladeui/glade-property.h>
#include <gladeui/glade-project.h>
#include <glib-object.h>
G_BEGIN_DECLS
#define GLADE_TYPE_COMMAND glade_command_get_type ()
G_DECLARE_DERIVABLE_TYPE (GladeCommand, glade_command, GLADE, COMMAND, GObject)
typedef struct _GladeCommandSetPropData GladeCommandSetPropData;
/**
* GladeCommandSetPropData
* @property: A #GladeProperty to set
* @new_value: The new #GValue to assign to @property
* @old_value: The old #GValue of @property
*
* #GladeProperty can be set in a list as one command,
* for Undo purposes; we store the list of #GladeCommandSetPropData with
* their old and new #GValue.
*/
struct _GladeCommandSetPropData {
GladeProperty *property;
GValue *new_value;
GValue *old_value;
};
struct _GladeCommandClass
{
GObjectClass parent_class;
gboolean (* execute) (GladeCommand *command);
gboolean (* undo) (GladeCommand *command);
gboolean (* unifies) (GladeCommand *command, GladeCommand *other);
void (* collapse) (GladeCommand *command, GladeCommand *other);
gpointer padding[4];
};
void glade_command_push_group (const gchar *fmt,
...) G_GNUC_PRINTF (1, 2);
void glade_command_pop_group (void);
gint glade_command_get_group_depth (void);
const gchar *glade_command_description (GladeCommand *command);
gint glade_command_group_id (GladeCommand *command);
gboolean glade_command_execute (GladeCommand *command);
gboolean glade_command_undo (GladeCommand *command);
gboolean glade_command_unifies (GladeCommand *command,
GladeCommand *other);
void glade_command_collapse (GladeCommand *command,
GladeCommand *other);
/************************ project ******************************/
void glade_command_set_project_target (GladeProject *project,
const gchar *catalog,
gint major,
gint minor);
void glade_command_set_project_domain (GladeProject *project,
const gchar *domain);
void glade_command_set_project_template(GladeProject *project,
GladeWidget *widget);
void glade_command_set_project_license (GladeProject *project,
const gchar *license);
void glade_command_set_project_resource_path (GladeProject *project,
const gchar *path);
/************************** properties *********************************/
void glade_command_set_property_enabled(GladeProperty *property,
gboolean enabled);
void glade_command_set_property (GladeProperty *property,
...);
void glade_command_set_property_value (GladeProperty *property,
const GValue *value);
void glade_command_set_properties (GladeProperty *property,
const GValue *old_value,
const GValue *new_value,
...);
void glade_command_set_properties_list (GladeProject *project,
GList *props); /* list of GladeCommandSetPropData */
/************************** name ******************************/
void glade_command_set_name (GladeWidget *glade_widget, const gchar *name);
/************************ protection ******************************/
void glade_command_lock_widget (GladeWidget *widget,
GladeWidget *locked);
void glade_command_unlock_widget (GladeWidget *widget);
/************************ create/add/delete ******************************/
void glade_command_add (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder,
GladeProject *project,
gboolean pasting);
void glade_command_delete (GList *widgets);
GladeWidget *glade_command_create (GladeWidgetAdaptor *adaptor,
GladeWidget *parent,
GladePlaceholder *placeholder,
GladeProject *project);
/************************ cut/paste/dnd ******************************/
void glade_command_cut (GList *widgets);
void glade_command_paste (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder,
GladeProject *project);
void glade_command_dnd (GList *widgets,
GladeWidget *parent,
GladePlaceholder *placeholder);
/************************ signals ******************************/
void glade_command_add_signal (GladeWidget *glade_widget,
const GladeSignal *signal);
void glade_command_remove_signal (GladeWidget *glade_widget,
const GladeSignal *signal);
void glade_command_change_signal (GladeWidget *glade_widget,
const GladeSignal *old_signal,
const GladeSignal *new_signal);
/************************ set i18n ******************************/
void glade_command_set_i18n (GladeProperty *property,
gboolean translatable,
const gchar *context,
const gchar *comment);
G_END_DECLS
#endif /* __GLADE_COMMAND_H__ */

200
gladeui/glade-cursor.c Normal file
View File

@ -0,0 +1,200 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
*/
#include "config.h"
#include "glade-app.h"
#include "glade-palette.h"
#include "glade-cursor.h"
#include "glade-widget-adaptor.h"
#include <glib.h>
#include <glib/gi18n.h>
#define ADD_PIXBUF_FILENAME "plus.png"
static GladeCursor *cursor = NULL;
static void
set_cursor_recurse (GtkWidget * widget, GdkCursor * gdk_cursor)
{
GList *children, *list;
if (!gtk_widget_get_visible (widget) || !gtk_widget_get_realized (widget))
return;
gdk_window_set_cursor (gtk_widget_get_window (widget), gdk_cursor);
if (GTK_IS_CONTAINER (widget) &&
(children =
glade_util_container_get_all_children (GTK_CONTAINER (widget))) != NULL)
{
for (list = children; list; list = list->next)
{
set_cursor_recurse (GTK_WIDGET (list->data), gdk_cursor);
}
g_list_free (children);
}
}
static void
set_cursor (GladeProject *project,
GdkCursor *gdk_cursor)
{
GList *list;
for (list = (GList *) glade_project_get_objects (project);
list; list = list->next)
{
GObject *object = list->data;
if (GTK_IS_WIDGET (object) &&
gtk_widget_get_has_window (GTK_WIDGET (object)))
{
set_cursor_recurse (GTK_WIDGET (object), gdk_cursor);
}
}
}
/**
* glade_cursor_set:
* @window: a #GdkWindow
* @type: a #GladeCursorType
*
* Sets the cursor for @window to something appropriate based on @type.
* (also sets the cursor on all visible project widgets)
*/
void
glade_cursor_set (GladeProject *project,
GdkWindow *window,
GladeCursorType type)
{
GladeWidgetAdaptor *adaptor;
GdkCursor *the_cursor = NULL;
g_return_if_fail (cursor != NULL);
switch (type)
{
case GLADE_CURSOR_SELECTOR:
the_cursor = cursor->selector;
break;
case GLADE_CURSOR_ADD_WIDGET:
if ((adaptor =
glade_project_get_add_item (project)) != NULL)
{
g_object_get (adaptor, "cursor", &the_cursor, NULL);
if (the_cursor == NULL)
the_cursor = cursor->add_widget;
}
else
the_cursor = cursor->add_widget;
break;
case GLADE_CURSOR_RESIZE_TOP_LEFT:
the_cursor = cursor->resize_top_left;
break;
case GLADE_CURSOR_RESIZE_TOP_RIGHT:
the_cursor = cursor->resize_top_right;
break;
case GLADE_CURSOR_RESIZE_BOTTOM_LEFT:
the_cursor = cursor->resize_bottom_left;
break;
case GLADE_CURSOR_RESIZE_BOTTOM_RIGHT:
the_cursor = cursor->resize_bottom_right;
break;
case GLADE_CURSOR_RESIZE_LEFT:
the_cursor = cursor->resize_left;
break;
case GLADE_CURSOR_RESIZE_RIGHT:
the_cursor = cursor->resize_right;
break;
case GLADE_CURSOR_RESIZE_TOP:
the_cursor = cursor->resize_top;
break;
case GLADE_CURSOR_RESIZE_BOTTOM:
the_cursor = cursor->resize_bottom;
break;
case GLADE_CURSOR_DRAG:
the_cursor = cursor->drag;
break;
default:
break;
}
if (the_cursor != gdk_window_get_cursor (window))
{
set_cursor (project, cursor->selector);
gdk_window_set_cursor (window, the_cursor);
}
}
/**
* glade_cursor_init:
*
* Initializes cursors for use with glade_cursor_set().
*/
void
glade_cursor_init (void)
{
gchar *path;
GError *error = NULL;
GdkDisplay *display;
cursor = g_new0 (GladeCursor, 1);
display = gdk_display_get_default ();
cursor->selector = NULL;
cursor->add_widget = gdk_cursor_new_from_name (display, "crosshair");
cursor->resize_top_left = gdk_cursor_new_from_name (display, "nw-resize");
cursor->resize_top_right = gdk_cursor_new_from_name (display, "ne-resize");
cursor->resize_bottom_left = gdk_cursor_new_from_name (display, "sw-resize");
cursor->resize_bottom_right = gdk_cursor_new_from_name (display, "se-resize");
cursor->resize_left = gdk_cursor_new_from_name (display, "w-resize");
cursor->resize_right = gdk_cursor_new_from_name (display, "e-resize");
cursor->resize_top = gdk_cursor_new_from_name (display, "n-resize");
cursor->resize_bottom = gdk_cursor_new_from_name (display, "s-resize");
cursor->drag = gdk_cursor_new_from_name (display, "move");
cursor->add_widget_pixbuf = NULL;
/* load "add" cursor pixbuf */
path =
g_build_filename (glade_app_get_pixmaps_dir (), ADD_PIXBUF_FILENAME,
NULL);
cursor->add_widget_pixbuf = gdk_pixbuf_new_from_file (path, &error);
if (cursor->add_widget_pixbuf == NULL)
{
g_critical (_("Unable to load image (%s)"), error->message);
g_error_free (error);
error = NULL;
}
g_free (path);
}
const GdkPixbuf *
glade_cursor_get_add_widget_pixbuf (void)
{
g_return_val_if_fail (cursor != NULL, NULL);
return cursor->add_widget_pixbuf;
}

77
gladeui/glade-cursor.h Normal file
View File

@ -0,0 +1,77 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Chema Celorio <chema@celorio.com>
*/
#ifndef __GLADE_CURSOR_H__
#define __GLADE_CURSOR_H__
G_BEGIN_DECLS
/* GladeCursor is just a structures that has a pointer to all the cursors
* that we are going to use. The benefit of this struct is that once
* glade_cursor_init is called you just need to call glade_cursor_set
* with it's enumed value to set the window cursor.
*/
/* Has a pointer to the loaded GdkCursors. It is loaded when _init
* is called
*/
typedef struct _GladeCursor {
GdkCursor *selector;
GdkCursor *add_widget; /* fallback cursor if we cannot use widget_class->cursor */
GdkCursor *resize_top_left;
GdkCursor *resize_top_right;
GdkCursor *resize_bottom_left;
GdkCursor *resize_bottom_right;
GdkCursor *resize_left;
GdkCursor *resize_right;
GdkCursor *resize_top;
GdkCursor *resize_bottom;
GdkCursor *drag;
GdkPixbuf *add_widget_pixbuf; /* a pixbuf of the generic 'add' cursor */
} GladeCursor;
/* Enumed values for each of the cursors for GladeCursor. For every
* GdkCursor above there should be a enum here
*/
typedef enum {
GLADE_CURSOR_SELECTOR,
GLADE_CURSOR_ADD_WIDGET,
GLADE_CURSOR_RESIZE_TOP_LEFT,
GLADE_CURSOR_RESIZE_TOP_RIGHT,
GLADE_CURSOR_RESIZE_BOTTOM_LEFT,
GLADE_CURSOR_RESIZE_BOTTOM_RIGHT,
GLADE_CURSOR_RESIZE_LEFT,
GLADE_CURSOR_RESIZE_RIGHT,
GLADE_CURSOR_RESIZE_TOP,
GLADE_CURSOR_RESIZE_BOTTOM,
GLADE_CURSOR_DRAG
} GladeCursorType;
void glade_cursor_init (void);
void glade_cursor_set (GladeProject *project,
GdkWindow *window,
GladeCursorType type);
const GdkPixbuf* glade_cursor_get_add_widget_pixbuf (void);
G_END_DECLS
#endif /* __GLADE_CURSOR_H__ */

107
gladeui/glade-debug.c Normal file
View File

@ -0,0 +1,107 @@
/*
* Copyright (C) 2003 Joaquin Cuenca Abela
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Joaquin Cuenca Abela <e98cuenc@yahoo.com>
*/
#include "config.h"
#include "glade.h"
#include "glade-debug.h"
#ifdef G_OS_UNIX
#include <signal.h>
#endif
#ifndef RETSIGTYPE
#define RETSIGTYPE void
#endif
static void
glade_log_handler (const char *domain,
GLogLevelFlags level, const char *message, gpointer data)
{
static volatile int want_breakpoint = 0;
/* Ignore this message */
if (g_strcmp0 ("gdk_window_set_composited called but compositing is not supported", message) != 0)
g_log_default_handler (domain, level, message, data);
if (want_breakpoint &&
((level & (G_LOG_LEVEL_CRITICAL /* | G_LOG_LEVEL_WARNING */ )) != 0))
G_BREAKPOINT ();
}
static void
glade_set_log_handler (const char *domain)
{
g_log_set_handler (domain, G_LOG_LEVEL_MASK, glade_log_handler, NULL);
}
/**
* glade_setup_log_handlers:
*
* Sets up a log handler to manage all %G_LOG_LEVEL_MASK errors of domain:
* GLib, GLib-GObject, Gtk, Gdk, and domainless.
*/
void
glade_setup_log_handlers ()
{
glade_set_log_handler ("");
glade_set_log_handler ("GLib");
glade_set_log_handler ("GLib-GObject");
glade_set_log_handler ("Gtk");
glade_set_log_handler ("Gdk");
}
static GladeDebugFlag glade_debug_flags = 0;
static const GDebugKey glade_debug_keys[] = {
{ "ref-counts", GLADE_DEBUG_REF_COUNTS },
{ "widget-events", GLADE_DEBUG_WIDGET_EVENTS },
{ "commands", GLADE_DEBUG_COMMANDS },
{ "properties", GLADE_DEBUG_PROPERTIES },
{ "verify", GLADE_DEBUG_VERIFY }
};
guint
glade_get_debug_flags (void)
{
return glade_debug_flags;
}
void
glade_init_debug_flags (void)
{
static gboolean initialized = FALSE;
if (G_UNLIKELY (!initialized))
{
const gchar *env_string;
initialized = TRUE;
env_string = g_getenv ("GLADE_DEBUG");
if (env_string != NULL)
glade_debug_flags =
g_parse_debug_string (env_string,
glade_debug_keys,
G_N_ELEMENTS (glade_debug_keys));
}
}

56
gladeui/glade-debug.h Normal file
View File

@ -0,0 +1,56 @@
/*
* Copyright (C) 2003 Joaquin Cuenca Abela
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Joaquin Cuenca Abela <e98cuenc@yahoo.com>
*/
#ifndef __GLADE_DEBUG_H__
#define __GLADE_DEBUG_H__
G_BEGIN_DECLS
typedef enum {
GLADE_DEBUG_REF_COUNTS = (1 << 0),
GLADE_DEBUG_WIDGET_EVENTS = (1 << 1),
GLADE_DEBUG_COMMANDS = (1 << 2),
GLADE_DEBUG_PROPERTIES = (1 << 3),
GLADE_DEBUG_VERIFY = (1 << 4)
} GladeDebugFlag;
#ifdef GLADE_ENABLE_DEBUG
#define GLADE_NOTE(type,action) \
G_STMT_START { \
if (glade_get_debug_flags () & GLADE_DEBUG_##type) \
{ action; }; \
} G_STMT_END
#else /* !GLADE_ENABLE_DEBUG */
#define GLADE_NOTE(type, action)
#endif /* GLADE_ENABLE_DEBUG */
void glade_init_debug_flags (void);
guint glade_get_debug_flags (void);
void glade_setup_log_handlers (void);
G_END_DECLS
#endif /* __GLADE_DEBUG_H__ */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,55 @@
/*
* glade-design-layout.css
*
* Copyright (C) 2016 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.
*
* Author: Juan Pablo Ugarte <juanpablougarte@gmail.com>
*
*/
glade-design-layout {
background: none;
border: 4px solid @borders;
color: @theme_selected_fg_color;
border-radius: 4px 4px 0px 4px;
}
glade-design-layout:selected {
border: 4px solid @theme_selected_bg_color;
}
glade-design-layout.handle {
background-color: @borders;
border-radius: 0px 0px 4px 4px;
}
glade-design-layout:selected.handle {
background-color: @theme_selected_bg_color;
border-radius: 0px 0px 4px 4px;
}
glade-design-layout.selection {
border: 2px solid @theme_selected_bg_color;
border-radius: 0px;
background-color:transparent;
background-image: -gtk-gradient (radial,
center center, 0,
center center, 1,
from (alpha(@theme_selected_bg_color, .08)),
to (alpha(@theme_selected_bg_color, .50)));
}

View File

@ -0,0 +1,50 @@
/*
* glade-design-layout.h
*
* Copyright (C) 2006-2007 Vincent Geddes
*
* Authors:
* Vincent Geddes <vgeddes@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __GLADE_DESIGN_LAYOUT_H__
#define __GLADE_DESIGN_LAYOUT_H__
#include <gtk/gtk.h>
#include "glade-design-view.h"
G_BEGIN_DECLS
#define GLADE_TYPE_DESIGN_LAYOUT glade_design_layout_get_type ()
G_DECLARE_DERIVABLE_TYPE (GladeDesignLayout, glade_design_layout, GLADE, DESIGN_LAYOUT, GtkBin)
struct _GladeDesignLayoutClass
{
GtkBinClass parent_class;
gpointer padding[5];
};
GtkWidget *_glade_design_layout_new (GladeDesignView *view);
gboolean _glade_design_layout_do_event (GladeDesignLayout *layout,
GdkEvent *event);
G_END_DECLS
#endif /* __GLADE_DESIGN_LAYOUT_H__ */

View File

@ -0,0 +1,65 @@
/*
* glade-design-private.h
*
* Copyright (C) 2011 Juan Pablo Ugarte
*
* Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __GLADE_DESIGN_PRIVATE_H__
#define __GLADE_DESIGN_PRIVATE_H__
#include "glade-design-view.h"
#include "glade-design-layout.h"
#include "glade-dnd.h"
G_BEGIN_DECLS
void _glade_design_layout_get_colors (GdkRGBA *c1, GdkRGBA *c2,
GdkRGBA *c3, GdkRGBA *c4);
void _glade_design_layout_draw_node (cairo_t *cr,
gdouble x,
gdouble y,
GdkRGBA *fg,
GdkRGBA *bg);
void _glade_design_layout_draw_pushpin (cairo_t *cr,
gdouble needle_length,
GdkRGBA *outline,
GdkRGBA *fill,
GdkRGBA *bg,
GdkRGBA *fg);
void _glade_design_layout_get_hot_point (GladeDesignLayout *layout,
gint *x,
gint *y);
GladeWidget * _glade_design_layout_get_child (GladeDesignLayout *layout);
GtkWidget *_glade_design_layout_get_child_at_position (GtkWidget *widget,
gint x,
gint y);
void _glade_design_layout_set_highlight (GladeDesignLayout *layout,
GladeWidget *drag);
G_END_DECLS
#endif /* __GLADE_DESIGN_PRIVATE_H__ */

866
gladeui/glade-design-view.c Normal file
View File

@ -0,0 +1,866 @@
/*
* glade-design-view.c
*
* Copyright (C) 2006 Vincent Geddes
* 2011-2016 Juan Pablo Ugarte
*
* Authors:
* Vincent Geddes <vincent.geddes@gmail.com>
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*
* 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.
*
*/
/**
* SECTION:glade-design-view
* @Title: GladeDesignView
* @Short_Description: A widget to embed the workspace.
*
* Use this widget to embed toplevel widgets in a given #GladeProject.
*/
#include "config.h"
#include "glade.h"
#include "glade-dnd.h"
#include "glade-utils.h"
#include "glade-design-view.h"
#include "glade-design-layout.h"
#include "glade-design-private.h"
#include "glade-path.h"
#include "glade-adaptor-chooser-widget.h"
#include <glib.h>
#include <glib/gi18n.h>
#define GLADE_DESIGN_VIEW_KEY "GLADE_DESIGN_VIEW_KEY"
enum
{
PROP_0,
PROP_PROJECT
};
typedef struct _GladeDesignViewPrivate
{
GladeProject *project;
GtkWidget *scrolled_window; /* Main scrolled window */
GtkWidget *layout_box; /* Box to pack a GladeDesignLayout for each toplevel in project */
_GladeDrag *drag_target;
GObject *drag_data;
gboolean drag_highlight;
} GladeDesignViewPrivate;
static GtkVBoxClass *parent_class = NULL;
static void glade_design_view_drag_init (_GladeDragInterface *iface);
G_DEFINE_TYPE_WITH_CODE (GladeDesignView, glade_design_view, GTK_TYPE_BOX,
G_ADD_PRIVATE (GladeDesignView)
G_IMPLEMENT_INTERFACE (GLADE_TYPE_DRAG,
glade_design_view_drag_init))
static void
glade_design_layout_scroll (GladeDesignView *view, gint x, gint y, gint w, gint h)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
gdouble vadj_val, hadj_val, vpage_end, hpage_end;
GtkAdjustment *vadj, *hadj;
g_assert (GLADE_IS_DESIGN_VIEW (view));
vadj = gtk_scrolled_window_get_vadjustment (GTK_SCROLLED_WINDOW (priv->scrolled_window));
hadj = gtk_scrolled_window_get_hadjustment (GTK_SCROLLED_WINDOW (priv->scrolled_window));
vadj_val = gtk_adjustment_get_value (vadj);
hadj_val = gtk_adjustment_get_value (hadj);
vpage_end = gtk_adjustment_get_page_size (vadj) + vadj_val;
hpage_end = gtk_adjustment_get_page_size (hadj) + hadj_val;
/* TODO: we could set this value in increments in a timeout callback
* to make it look like its scrolling instead of jumping.
*/
if (y < vadj_val || y > vpage_end || (y + h) > vpage_end)
gtk_adjustment_set_value (vadj, y);
if (x < hadj_val || x > hpage_end || (x + w) > hpage_end)
gtk_adjustment_set_value (hadj, x);
}
static void
on_layout_size_allocate (GtkWidget *widget, GtkAllocation *alloc, GladeDesignView *view)
{
g_assert (GLADE_IS_DESIGN_VIEW (view));
glade_design_layout_scroll (view, alloc->x, alloc->y, alloc->width, alloc->height);
g_signal_handlers_disconnect_by_func (widget, on_layout_size_allocate, view);
}
static void
glade_design_view_update_state (GList *objects, GtkStateFlags state)
{
GList *l;
for (l = objects; l && l->data; l = g_list_next (l))
{
GtkWidget *view, *widget = l->data;
if (GTK_IS_WIDGET (widget) &&
gtk_widget_get_visible (widget) &&
(view = gtk_widget_get_ancestor (widget, GLADE_TYPE_DESIGN_LAYOUT)))
{
gtk_widget_set_state_flags (view, state, TRUE);
}
}
}
static void
glade_design_view_selection_changed (GladeProject *project, GladeDesignView *view)
{
GtkWidget *layout;
GList *selection;
g_assert (GLADE_IS_DESIGN_VIEW (view));
glade_design_view_update_state (glade_project_toplevels (project),
GTK_STATE_FLAG_NORMAL);
if (!(selection = glade_project_selection_get (project)))
return;
glade_design_view_update_state (selection, GTK_STATE_FLAG_SELECTED);
/* Check if its only one widget selected and scroll viewport to show toplevel */
if (g_list_next (selection) == NULL &&
GTK_IS_WIDGET (selection->data) &&
(layout = gtk_widget_get_ancestor (selection->data, GLADE_TYPE_DESIGN_LAYOUT)))
{
GtkAllocation alloc;
gtk_widget_get_allocation (layout, &alloc);
if (alloc.x < 0)
g_signal_connect (layout, "size-allocate", G_CALLBACK (on_layout_size_allocate), view);
else
glade_design_layout_scroll (view, alloc.x, alloc.y, alloc.width, alloc.height);
}
}
static void
glade_design_view_add_toplevel (GladeDesignView *view, GladeWidget *widget)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
GtkWidget *layout;
GList *toplevels;
GObject *object;
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (glade_widget_get_parent (widget) ||
(object = glade_widget_get_object (widget)) == NULL ||
!GTK_IS_WIDGET (object) ||
gtk_widget_get_parent (GTK_WIDGET (object)))
return;
/* Create a GladeDesignLayout and add the toplevel widget to the view */
layout = _glade_design_layout_new (view);
gtk_widget_set_halign (layout, GTK_ALIGN_START);
gtk_box_pack_start (GTK_BOX (priv->layout_box), layout, FALSE, FALSE, 0);
if ((toplevels = glade_project_toplevels (priv->project)))
gtk_box_reorder_child (GTK_BOX (priv->layout_box), layout,
g_list_index (toplevels, GTK_WIDGET (object)));
gtk_container_add (GTK_CONTAINER (layout), GTK_WIDGET (object));
gtk_widget_show (GTK_WIDGET (object));
gtk_widget_show (layout);
}
static void
glade_design_view_remove_toplevel (GladeDesignView *view, GladeWidget *widget)
{
GtkWidget *layout;
GObject *object;
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (glade_widget_get_parent (widget) ||
(object = glade_widget_get_object (widget)) == NULL ||
!GTK_IS_WIDGET (object)) return;
/* Remove toplevel widget from the view */
if ((layout = gtk_widget_get_parent (GTK_WIDGET (object))) &&
gtk_widget_is_ancestor (layout, GTK_WIDGET (view)))
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
gtk_container_remove (GTK_CONTAINER (layout), GTK_WIDGET (object));
gtk_container_remove (GTK_CONTAINER (priv->layout_box), layout);
}
}
static void
glade_design_view_widget_visibility_changed (GladeProject *project,
GladeWidget *widget,
gboolean visible,
GladeDesignView *view)
{
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (visible)
glade_design_view_add_toplevel (view, widget);
else
glade_design_view_remove_toplevel (view, widget);
}
static void
on_project_add_widget (GladeProject *project, GladeWidget *widget, GladeDesignView *view)
{
g_assert (GLADE_IS_DESIGN_VIEW (view));
glade_design_view_add_toplevel (view, widget);
}
static void
on_project_remove_widget (GladeProject *project, GladeWidget *widget, GladeDesignView *view)
{
g_assert (GLADE_IS_DESIGN_VIEW (view));
glade_design_view_remove_toplevel (view, widget);
}
static void
glade_design_view_set_project (GladeDesignView *view, GladeProject *project)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (priv->project)
{
g_object_remove_weak_pointer (G_OBJECT (priv->project), (gpointer *) &priv->project);
g_signal_handlers_disconnect_by_data (priv->project, view);
g_signal_handlers_disconnect_by_data (priv->project, priv->scrolled_window);
g_object_set_data (G_OBJECT (priv->project), GLADE_DESIGN_VIEW_KEY, NULL);
}
priv->project = project;
if (!project)
return;
g_assert (GLADE_IS_PROJECT (project));
g_object_add_weak_pointer (G_OBJECT (project), (gpointer *) &priv->project);
g_signal_connect (project, "add-widget",
G_CALLBACK (on_project_add_widget), view);
g_signal_connect (project, "remove-widget",
G_CALLBACK (on_project_remove_widget), view);
g_signal_connect_swapped (project, "parse-began",
G_CALLBACK (gtk_widget_hide),
priv->scrolled_window);
g_signal_connect_swapped (project, "parse-finished",
G_CALLBACK (gtk_widget_show),
priv->scrolled_window);
g_signal_connect (project, "selection-changed",
G_CALLBACK (glade_design_view_selection_changed), view);
g_signal_connect (project, "widget-visibility-changed",
G_CALLBACK (glade_design_view_widget_visibility_changed), view);
g_object_set_data (G_OBJECT (project), GLADE_DESIGN_VIEW_KEY, view);
}
static void
glade_design_view_set_property (GObject *object,
guint prop_id,
const GValue *value, GParamSpec *pspec)
{
switch (prop_id)
{
case PROP_PROJECT:
glade_design_view_set_project (GLADE_DESIGN_VIEW (object),
g_value_get_object (value));
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
break;
}
}
static void
glade_design_view_get_property (GObject *object,
guint prop_id,
GValue *value,
GParamSpec *pspec)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private ((GladeDesignView *) 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
logo_draw (GtkWidget *widget, cairo_t *cr, GdkRGBA *c)
{
GtkAllocation alloc;
gdouble scale;
gtk_widget_get_allocation (widget, &alloc);
cairo_save (cr);
cairo_set_source_rgba (cr, c->red, c->green, c->blue, .06);
scale = MIN ((alloc.width/1.5)/(glade_path_WIDTH), (alloc.height/1.5)/(glade_path_HEIGHT));
cairo_scale (cr, scale, scale);
cairo_translate (cr, (alloc.width / scale) - glade_path_WIDTH,
(alloc.height / scale) - glade_path_HEIGHT);
cairo_append_path (cr, &glade_path);
cairo_fill (cr);
cairo_restore (cr);
}
static void
on_chooser_adaptor_widget_selected (_GladeAdaptorChooserWidget *chooser,
GladeWidgetAdaptor *adaptor,
GladeProject *project)
{
glade_command_create (adaptor, NULL, NULL, project);
gtk_widget_destroy (gtk_widget_get_ancestor (GTK_WIDGET (chooser), GTK_TYPE_POPOVER));
}
static gboolean
glade_design_view_viewport_button_press (GtkWidget *widget,
GdkEventButton *event,
GladeDesignView *view)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private ((GladeDesignView *) view);
GdkRectangle rect = {event->x, event->y, 8, 8};
GtkWidget *pop, *chooser;
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (event->type != GDK_2BUTTON_PRESS)
return FALSE;
pop = gtk_popover_new (widget);
gtk_popover_set_pointing_to (GTK_POPOVER (pop), &rect);
gtk_popover_set_position (GTK_POPOVER (pop), GTK_POS_BOTTOM);
chooser = _glade_adaptor_chooser_widget_new (GLADE_ADAPTOR_CHOOSER_WIDGET_TOPLEVEL |
GLADE_ADAPTOR_CHOOSER_WIDGET_WIDGET |
GLADE_ADAPTOR_CHOOSER_WIDGET_SKIP_DEPRECATED,
priv->project);
_glade_adaptor_chooser_widget_populate (GLADE_ADAPTOR_CHOOSER_WIDGET (chooser));
g_signal_connect (chooser, "adaptor-selected",
G_CALLBACK (on_chooser_adaptor_widget_selected),
priv->project);
gtk_container_add (GTK_CONTAINER (pop), chooser);
gtk_widget_show (chooser);
gtk_popover_popup (GTK_POPOVER (pop));
return TRUE;
}
static gboolean
glade_design_view_viewport_draw (GtkWidget *widget, cairo_t *cr, GladeDesignView *view)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private ((GladeDesignView *) view);
GtkStyleContext *context = gtk_widget_get_style_context (widget);
GdkRGBA fg_color;
g_assert (GLADE_IS_DESIGN_VIEW (view));
gtk_style_context_get_color (context, gtk_style_context_get_state (context),
&fg_color);
logo_draw (widget, cr, &fg_color);
if (priv->drag_highlight)
{
GdkRGBA c;
gtk_style_context_save (context);
gtk_style_context_get_background_color (context,
gtk_style_context_get_state (context) |
GTK_STATE_FLAG_SELECTED |
GTK_STATE_FLAG_FOCUSED, &c);
gtk_style_context_restore (context);
cairo_set_line_width (cr, 2);
gdk_cairo_set_source_rgba (cr, &c);
cairo_rectangle (cr, 0, 0,
gtk_widget_get_allocated_width (widget),
gtk_widget_get_allocated_height (widget));
cairo_stroke (cr);
}
return FALSE;
}
static void
glade_design_view_init (GladeDesignView *view)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
GtkWidget *viewport;
gtk_widget_set_no_show_all (GTK_WIDGET (view), TRUE);
gtk_orientable_set_orientation (GTK_ORIENTABLE (view),
GTK_ORIENTATION_VERTICAL);
priv->project = NULL;
priv->layout_box = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);
gtk_widget_set_valign (priv->layout_box, GTK_ALIGN_START);
gtk_container_set_border_width (GTK_CONTAINER (priv->layout_box), 0);
priv->scrolled_window = gtk_scrolled_window_new (NULL, NULL);
gtk_scrolled_window_set_policy (GTK_SCROLLED_WINDOW (priv->scrolled_window),
GTK_POLICY_AUTOMATIC, GTK_POLICY_AUTOMATIC);
viewport = gtk_viewport_new (NULL, NULL);
gtk_widget_add_events (viewport, GDK_BUTTON_PRESS_MASK | GDK_BUTTON_RELEASE_MASK);
g_signal_connect (viewport, "button-press-event",
G_CALLBACK (glade_design_view_viewport_button_press),
view);
g_signal_connect (viewport, "draw",
G_CALLBACK (glade_design_view_viewport_draw),
view);
gtk_viewport_set_shadow_type (GTK_VIEWPORT (viewport), GTK_SHADOW_NONE);
gtk_container_add (GTK_CONTAINER (viewport), priv->layout_box);
gtk_container_add (GTK_CONTAINER (priv->scrolled_window), viewport);
gtk_widget_show (priv->scrolled_window);
gtk_widget_show (viewport);
gtk_widget_show_all (priv->layout_box);
gtk_box_pack_start (GTK_BOX (view), priv->scrolled_window, TRUE, TRUE, 0);
gtk_container_set_border_width (GTK_CONTAINER (view), 0);
gtk_style_context_add_class (gtk_widget_get_style_context (GTK_WIDGET (view)),
GTK_STYLE_CLASS_VIEW);
_glade_dnd_dest_set (GTK_WIDGET (view));
}
static void
glade_design_view_dispose (GObject *object)
{
GladeDesignView *view = GLADE_DESIGN_VIEW (object);
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
glade_design_view_set_project (view, NULL);
g_clear_object (&priv->drag_target);
g_clear_object (&priv->drag_data);
G_OBJECT_CLASS (parent_class)->dispose (object);
}
typedef struct
{
GtkWidget *child;
gint x, y;
} FindInContainerData;
static void
find_inside_container (GtkWidget *widget, FindInContainerData *data)
{
GtkAllocation alloc;
gint x, y;
if (data->child || !gtk_widget_get_mapped (widget))
return;
x = data->x;
y = data->y;
gtk_widget_get_allocation (widget, &alloc);
if (x >= alloc.x && x <= (alloc.x + alloc.width) &&
y >= alloc.y && y <= (alloc.y + alloc.height))
{
data->child = widget;
}
}
static void
glade_design_view_drag_highlight (_GladeDrag *dest,
gint x,
gint y)
{
if (GLADE_IS_WIDGET (dest))
{
GObject *obj = glade_widget_get_object (GLADE_WIDGET (dest));
if (GTK_IS_WIDGET (obj))
{
GtkWidget *layout = gtk_widget_get_ancestor (GTK_WIDGET (obj),
GLADE_TYPE_DESIGN_LAYOUT);
if (layout)
_glade_design_layout_set_highlight (GLADE_DESIGN_LAYOUT (layout),
(x<0 || y<0) ? NULL : GLADE_WIDGET (dest));
}
}
_glade_drag_highlight (dest, x, y);
}
static gboolean
glade_design_view_drag_motion (GtkWidget *widget,
GdkDragContext *context,
gint x, gint y,
guint time)
{
GladeDesignView *view = GLADE_DESIGN_VIEW (widget);
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
FindInContainerData data;
_GladeDrag *drag = NULL;
gint xx, yy;
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (!priv->drag_data)
{
GdkAtom target = gtk_drag_dest_find_target (widget, context, NULL);
if (target)
gtk_drag_get_data (widget, context, target, time);
}
data.child = NULL;
gtk_widget_translate_coordinates (widget, GTK_WIDGET (priv->layout_box),
x, y, &data.x, &data.y);
gtk_container_forall (GTK_CONTAINER (priv->layout_box),
(GtkCallback) find_inside_container,
&data);
if (data.child)
{
GladeDesignLayout *layout = GLADE_DESIGN_LAYOUT (data.child);
GladeWidget *gchild = _glade_design_layout_get_child (layout);
GtkWidget *child = GTK_WIDGET (glade_widget_get_object (gchild));
GtkWidget *drag_target;
gtk_widget_translate_coordinates (widget, child, x, y, &xx, &yy);
drag_target = _glade_design_layout_get_child_at_position (child, xx, yy);
if (drag_target)
{
_GladeDrag *gwidget = NULL;
if (GLADE_IS_PLACEHOLDER (drag_target)) {
gwidget = (_GladeDrag *) drag_target;
} else if (GLADE_IS_WIDGET (drag_target)) {
gwidget = (_GladeDrag *) glade_widget_get_from_gobject ((GladeWidget *) drag_target);
}
while (gwidget && !_glade_drag_can_drop (gwidget,
xx, yy, priv->drag_data)) {
if (GLADE_IS_WIDGET (gwidget)) {
gwidget = (_GladeDrag *) glade_widget_get_parent ((GladeWidget *) gwidget);
} else if (GLADE_IS_PLACEHOLDER (gwidget)) {
gwidget = (_GladeDrag *) glade_placeholder_get_parent ((GladePlaceholder *) gwidget);
} else {
gwidget = NULL;
}
}
if (gwidget) {
drag = GLADE_DRAG (gwidget);
}
}
}
else if (_glade_drag_can_drop (GLADE_DRAG (widget), x, y, priv->drag_data))
{
drag = GLADE_DRAG (widget);
xx = x;
yy = y;
}
if (priv->drag_target && priv->drag_target != drag)
{
glade_design_view_drag_highlight (priv->drag_target, -1, -1);
g_clear_object (&priv->drag_target);
}
if (drag)
{
priv->drag_target = g_object_ref (drag);
glade_design_view_drag_highlight (drag, xx, yy);
gdk_drag_status (context, GDK_ACTION_COPY, time);
return TRUE;
}
gdk_drag_status (context, 0, time);
return FALSE;
}
static void
glade_design_view_drag_leave (GtkWidget *widget,
GdkDragContext *context,
guint time)
{
GladeDesignView *view = GLADE_DESIGN_VIEW (widget);
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (priv->drag_target)
glade_design_view_drag_highlight (priv->drag_target, -1, -1);
}
static void
on_source_drag_end (GtkWidget *widget,
GdkDragContext *context,
GladeDesignView *view)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (priv->drag_target)
{
glade_design_view_drag_highlight (priv->drag_target, -1, -1);
g_clear_object (&priv->drag_target);
}
g_clear_object (&priv->drag_data);
}
static void
glade_design_view_drag_data_received (GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
GtkSelectionData *selection,
guint info,
guint time)
{
GtkWidget *source = gtk_drag_get_source_widget (context);
GladeDesignView *view = GLADE_DESIGN_VIEW (widget);
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
g_assert (GLADE_IS_DESIGN_VIEW (view));
g_signal_handlers_disconnect_by_func (source, on_source_drag_end, view);
g_set_object (&priv->drag_data, _glade_dnd_get_data (context, selection, info));
g_signal_connect_object (source, "drag-end", G_CALLBACK (on_source_drag_end), view, 0);
}
static gboolean
glade_design_view_drag_drop (GtkWidget *widget,
GdkDragContext *context,
gint x,
gint y,
guint time)
{
GladeDesignView *view = GLADE_DESIGN_VIEW (widget);
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (priv->drag_data && priv->drag_target)
{
GtkWidget *target;
gint xx, yy;
if (GLADE_IS_WIDGET (priv->drag_target))
target = GTK_WIDGET (glade_widget_get_object (GLADE_WIDGET (priv->drag_target)));
else
target = GTK_WIDGET (priv->drag_target);
gtk_widget_translate_coordinates (widget, target, x, y, &xx, &yy);
_glade_drag_drop (GLADE_DRAG (priv->drag_target), xx, yy, priv->drag_data);
gtk_drag_finish (context, TRUE, FALSE, time);
}
else
gtk_drag_finish (context, FALSE, FALSE, time);
return TRUE;
}
static gboolean
glade_design_view_drag_iface_can_drop (_GladeDrag *drag,
gint x, gint y,
GObject *data)
{
GladeWidget *gwidget;
if (GLADE_IS_WIDGET_ADAPTOR (data) ||
((gwidget = glade_widget_get_from_gobject (data)) &&
glade_widget_get_parent (gwidget)))
return TRUE;
else
return FALSE;
}
static gboolean
glade_design_view_drag_iface_drop (_GladeDrag *drag,
gint x, gint y,
GObject *data)
{
GladeDesignView *view = GLADE_DESIGN_VIEW (drag);
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
GladeWidget *gsource;
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (GLADE_IS_WIDGET_ADAPTOR (data))
{
glade_command_create (GLADE_WIDGET_ADAPTOR (data),
NULL, NULL, priv->project);
return TRUE;
}
else if ((gsource = glade_widget_get_from_gobject (data)))
{
GList widgets = {gsource, NULL, NULL};
glade_command_dnd (&widgets, NULL, NULL);
return TRUE;
}
return FALSE;
}
static void
glade_design_view_drag_iface_highlight (_GladeDrag *drag, gint x, gint y)
{
GladeDesignView *view = GLADE_DESIGN_VIEW (drag);
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
gboolean highlight = !(x < 0 || y < 0);
g_assert (GLADE_IS_DESIGN_VIEW (view));
if (priv->drag_highlight == highlight)
return;
priv->drag_highlight = highlight;
gtk_widget_queue_draw (priv->scrolled_window);
}
static void
glade_design_view_drag_init (_GladeDragInterface *iface)
{
iface->can_drag = NULL;
iface->can_drop = glade_design_view_drag_iface_can_drop;
iface->drop = glade_design_view_drag_iface_drop;
iface->highlight = glade_design_view_drag_iface_highlight;
}
static void
glade_design_view_class_init (GladeDesignViewClass *klass)
{
GObjectClass *object_class;
GtkWidgetClass *widget_class;
parent_class = g_type_class_peek_parent (klass);
object_class = G_OBJECT_CLASS (klass);
widget_class = GTK_WIDGET_CLASS (klass);
object_class->dispose = glade_design_view_dispose;
object_class->get_property = glade_design_view_get_property;
object_class->set_property = glade_design_view_set_property;
widget_class->drag_motion = glade_design_view_drag_motion;
widget_class->drag_leave = glade_design_view_drag_leave;
widget_class->drag_data_received = glade_design_view_drag_data_received;
widget_class->drag_drop = glade_design_view_drag_drop;
g_object_class_install_property (object_class,
PROP_PROJECT,
g_param_spec_object ("project",
"Project",
"The project for this view",
GLADE_TYPE_PROJECT,
G_PARAM_READWRITE |
G_PARAM_CONSTRUCT_ONLY));
}
/* Public API */
/**
* glade_design_view_get_project:
* @view: A #GladeDesignView
*
* Returns: (transfer none): a #GladeProject
*/
GladeProject *
glade_design_view_get_project (GladeDesignView *view)
{
GladeDesignViewPrivate *priv = glade_design_view_get_instance_private (view);
g_return_val_if_fail (GLADE_IS_DESIGN_VIEW (view), NULL);
return priv->project;
}
/**
* glade_design_view_new:
* @project: A #GladeProject
*
* Returns: (transfer full): a new #GladeDesignView
*/
GtkWidget *
glade_design_view_new (GladeProject *project)
{
GladeDesignView *view;
g_return_val_if_fail (GLADE_IS_PROJECT (project), NULL);
view = g_object_new (GLADE_TYPE_DESIGN_VIEW, "project", project, NULL);
return GTK_WIDGET (view);
}
/**
* glade_design_view_get_from_project:
* @project: A #GladeProject
*
* Returns: (transfer none) (nullable): a #GladeDesignView
*/
GladeDesignView *
glade_design_view_get_from_project (GladeProject *project)
{
gpointer p;
g_return_val_if_fail (GLADE_IS_PROJECT (project), NULL);
p = g_object_get_data (G_OBJECT (project), GLADE_DESIGN_VIEW_KEY);
return (p != NULL) ? GLADE_DESIGN_VIEW (p) : NULL;
}

View File

@ -0,0 +1,53 @@
/*
* glade-design-view.h
*
* Copyright (C) 2006 Vincent Geddes
*
* Authors:
* Vincent Geddes <vincent.geddes@gmail.com>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __GLADE_DESIGN_VIEW_H__
#define __GLADE_DESIGN_VIEW_H__
#include <gladeui/glade.h>
#include <gladeui/glade-project.h>
#include <gtk/gtk.h>
G_BEGIN_DECLS
#define GLADE_TYPE_DESIGN_VIEW glade_design_view_get_type ()
G_DECLARE_DERIVABLE_TYPE (GladeDesignView, glade_design_view, GLADE, DESIGN_VIEW, GtkBox)
struct _GladeDesignViewClass
{
GtkBoxClass parent_class;
gpointer padding[4];
};
GtkWidget *glade_design_view_new (GladeProject *project);
GladeProject *glade_design_view_get_project (GladeDesignView *view);
GladeDesignView *glade_design_view_get_from_project (GladeProject *project);
G_END_DECLS
#endif /* __GLADE_DESIGN_VIEW_H__ */

View File

@ -0,0 +1,201 @@
/*
* glade-displayable-values.c
*
* Copyright (C) 2008 Tristan Van Berkom.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <glib/gi18n-lib.h>
#include <string.h>
#include <stdlib.h>
#include "glade-displayable-values.h"
typedef struct
{
gchar *value;
gchar *string;
gboolean disabled:1;
} ValueTab;
static GHashTable *values_hash = NULL;
static gint
find_by_value (ValueTab *a, const gchar *b)
{
return strcmp (a->value, b);
}
static gint
find_by_displayable (ValueTab *a, const gchar *b)
{
return strcmp (a->string, b);
}
void
glade_register_displayable_value (GType type,
const gchar *value,
const gchar *domain,
const gchar *string)
{
g_return_if_fail (value && value[0]);
g_return_if_fail (domain && domain[0]);
glade_register_translated_value (type, value, dgettext (domain, string));
}
void
glade_register_translated_value (GType type,
const gchar *value,
const gchar *string)
{
ValueTab *tab;
gpointer klass;
GList *values;
g_return_if_fail (value && value[0]);
klass = g_type_class_ref (type);
g_return_if_fail (klass != NULL);
if (!values_hash)
values_hash = g_hash_table_new (NULL, NULL);
tab = g_new0 (ValueTab, 1);
tab->value = g_strdup (value);
tab->string = g_strdup (string);
tab->disabled = FALSE;
if ((values = g_hash_table_lookup (values_hash, klass)) != NULL)
{
if (!g_list_find_custom
(values, tab->value, (GCompareFunc) find_by_value))
values = g_list_append (values, tab);
else
{
g_warning ("Already registered displayable value %s for %s (type %s)",
tab->string, tab->value, g_type_name (type));
g_free (tab->string);
g_free (tab->value);
g_free (tab);
}
}
else
{
values = g_list_append (NULL, tab);
g_hash_table_insert (values_hash, klass, values);
}
g_type_class_unref (klass);
}
static ValueTab *
get_value_tab (GType type, const gchar *value, GCompareFunc cmpfunc)
{
GList *values, *tab_iter;
gpointer klass;
ValueTab *tab;
if (!values_hash) return NULL;
klass = g_type_class_ref (type);
if ((values = g_hash_table_lookup (values_hash, klass)) != NULL &&
(tab_iter = g_list_find_custom (values, value, cmpfunc)) != NULL)
tab = tab_iter->data;
else
tab = NULL;
g_type_class_unref (klass);
return tab;
}
gboolean
glade_type_has_displayable_values (GType type)
{
gboolean has;
gpointer klass = g_type_class_ref (type);
has = values_hash && g_hash_table_lookup (values_hash, klass) != NULL;
g_type_class_unref (klass);
return has;
}
const gchar *
glade_get_displayable_value (GType type, const gchar *value)
{
ValueTab *tab;
g_return_val_if_fail (value && value[0], NULL);
if ((tab = get_value_tab (type, value, (GCompareFunc) find_by_value)))
return tab->string;
return NULL;
}
const gchar *
glade_get_value_from_displayable (GType type, const gchar *displayable)
{
ValueTab *tab;
g_return_val_if_fail (displayable && displayable[0], NULL);
if ((tab = get_value_tab (type, displayable, (GCompareFunc) find_by_displayable)))
return tab->value;
return NULL;
}
gboolean
glade_displayable_value_is_disabled (GType type, const gchar *value)
{
ValueTab *tab;
g_return_val_if_fail (value && value[0], FALSE);
if ((tab = get_value_tab (type, value, (GCompareFunc) find_by_value)))
return tab->disabled;
return FALSE;
}
void
glade_displayable_value_set_disabled (GType type,
const gchar *value,
gboolean disabled)
{
ValueTab *tab;
g_return_if_fail (value && value[0]);
if ((tab = get_value_tab (type, value, (GCompareFunc) find_by_value)))
tab->disabled = disabled;
}

View File

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

175
gladeui/glade-dnd.c Normal file
View File

@ -0,0 +1,175 @@
/*
* glade-dnd.c
*
* Copyright (C) 2013 Juan Pablo Ugarte
*
* Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*
* 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.
*
*/
#include "glade.h"
#include "glade-dnd.h"
GtkTargetEntry *
_glade_dnd_get_target (void)
{
static GtkTargetEntry target = {GLADE_DND_TARGET_DATA, GTK_TARGET_SAME_APP, GLADE_DND_INFO_DATA};
return &target;
}
void
_glade_dnd_dest_set (GtkWidget *target)
{
gtk_drag_dest_set (target, 0, _glade_dnd_get_target (), 1, GDK_ACTION_MOVE | GDK_ACTION_COPY);
}
GObject *
_glade_dnd_get_data (GdkDragContext *context,
GtkSelectionData *selection,
guint info)
{
GdkAtom target = gtk_selection_data_get_target (selection);
gchar *target_name = gdk_atom_name (target);
gboolean is_target_data = (g_strcmp0 (target_name, GLADE_DND_TARGET_DATA) == 0);
g_free (target_name);
if (info == GLADE_DND_INFO_DATA && is_target_data)
{
const guchar *data = gtk_selection_data_get_data (selection);
if (data)
return *((GObject **)data);
}
return NULL;
}
void
_glade_dnd_set_data (GtkSelectionData *selection, GObject *data)
{
static GdkAtom type = 0;
if (!type)
type = gdk_atom_intern_static_string (GLADE_DND_TARGET_DATA);
gtk_selection_data_set (selection, type, sizeof (gpointer),
(const guchar *)&data,
sizeof (gpointer));
}
static gboolean
on_drag_icon_draw (GtkWidget *widget, cairo_t *cr)
{
GtkStyleContext *context = gtk_widget_get_style_context (widget);
cairo_pattern_t *gradient;
GtkAllocation alloc;
gint x, y, w, h;
gdouble h2;
GdkRGBA bg;
/* Not needed according to GtkWidget:draw documentation
* But seems like there is a bug when used as a drag_icon that makes the
* cairo translation used here persist when drawing children.
*/
cairo_save (cr);
/* Clear BG */
cairo_set_operator (cr, CAIRO_OPERATOR_CLEAR);
cairo_paint (cr);
cairo_set_operator (cr, CAIRO_OPERATOR_OVER);
gtk_widget_get_allocation (widget, &alloc);
x = alloc.x;
y = alloc.y;
w = alloc.width;
h = alloc.height;
h2 = h/2.0;
G_GNUC_BEGIN_IGNORE_DEPRECATIONS;
gtk_style_context_get_background_color (context, gtk_style_context_get_state (context), &bg);
G_GNUC_END_IGNORE_DEPRECATIONS;
gradient = cairo_pattern_create_linear (x, y, x, y+h);
cairo_pattern_add_color_stop_rgba (gradient, 0, bg.red, bg.green, bg.blue, 0);
cairo_pattern_add_color_stop_rgba (gradient, .5, bg.red, bg.green, bg.blue, .8);
cairo_pattern_add_color_stop_rgba (gradient, 1, bg.red, bg.green, bg.blue, 0);
cairo_set_source (cr, gradient);
cairo_rectangle (cr, x+h2, y, w-h, h);
cairo_fill (cr);
cairo_pattern_destroy (gradient);
gradient = cairo_pattern_create_radial (x+h2, y+h2, 0, x+h2, y+h2, h2);
cairo_pattern_add_color_stop_rgba (gradient, 0, bg.red, bg.green, bg.blue, .8);
cairo_pattern_add_color_stop_rgba (gradient, 1, bg.red, bg.green, bg.blue, 0);
cairo_set_source (cr, gradient);
cairo_rectangle (cr, x, y, h2, h);
cairo_fill (cr);
cairo_translate (cr, w-h, 0);
cairo_set_source (cr, gradient);
cairo_rectangle (cr, x+h2, y, h2, h);
cairo_fill (cr);
cairo_pattern_destroy (gradient);
cairo_restore (cr);
return FALSE;
}
void
_glade_dnd_set_icon_widget (GdkDragContext *context,
const gchar *icon_name,
const gchar *description)
{
GtkWidget *window, *box, *label, *icon;
GdkScreen *screen;
GdkVisual *visual;
screen = gdk_window_get_screen (gdk_drag_context_get_source_window (context));
window = gtk_window_new (GTK_WINDOW_POPUP);
gtk_window_set_type_hint (GTK_WINDOW (window), GDK_WINDOW_TYPE_HINT_DND);
gtk_window_set_screen (GTK_WINDOW (window), screen);
box = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 4);
gtk_container_set_border_width (GTK_CONTAINER (box), 12);
icon = gtk_image_new_from_icon_name (icon_name, GTK_ICON_SIZE_BUTTON);
gtk_widget_set_opacity (icon, .8);
label = gtk_label_new (description);
gtk_box_pack_start (GTK_BOX (box), icon, FALSE, TRUE, 0);
gtk_box_pack_start (GTK_BOX (box), label, FALSE, TRUE, 0);
gtk_widget_show_all (box);
gtk_container_add (GTK_CONTAINER (window), box);
if ((visual = gdk_screen_get_rgba_visual (screen)))
{
gtk_widget_set_visual (window, visual);
gtk_widget_set_app_paintable (window, TRUE);
g_signal_connect (window, "draw", G_CALLBACK (on_drag_icon_draw), NULL);
}
g_object_ref_sink (window);
gtk_drag_set_icon_widget (context, window, 0, 0);
g_object_unref (window);
}

52
gladeui/glade-dnd.h Normal file
View File

@ -0,0 +1,52 @@
/*
* glade-dnd.h
*
* Copyright (C) 2013 Juan Pablo Ugarte
*
* Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __GLADE_DND_H__
#define __GLADE_DND_H__
#define GLADE_DND_INFO_DATA 96323
#define GLADE_DND_TARGET_DATA "glade/x-drag-data"
#include "glade-drag.h"
G_BEGIN_DECLS
GtkTargetEntry *_glade_dnd_get_target (void);
void _glade_dnd_dest_set (GtkWidget *target);
void _glade_dnd_set_data (GtkSelectionData *selection,
GObject *data);
GObject *_glade_dnd_get_data (GdkDragContext *context,
GtkSelectionData *selection,
guint info);
void _glade_dnd_set_icon_widget (GdkDragContext *context,
const gchar *icon_name,
const gchar *description);
G_END_DECLS
#endif /* __GLADE_DND_H__ */

86
gladeui/glade-drag.c Normal file
View File

@ -0,0 +1,86 @@
/*
* glade-drag.c
*
* Copyright (C) 2013 Juan Pablo Ugarte
*
* Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*
* 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.
*
*/
#include "glade-drag.h"
G_DEFINE_INTERFACE (_GladeDrag, _glade_drag, G_TYPE_OBJECT)
static void
_glade_drag_default_init (_GladeDragInterface *iface)
{
}
gboolean
_glade_drag_can_drag (_GladeDrag *source)
{
_GladeDragInterface *iface;
g_return_val_if_fail (GLADE_IS_DRAG (source), FALSE);
iface = GLADE_DRAG_GET_IFACE (source);
if (iface->can_drag)
return iface->can_drag (source);
else
return FALSE;
}
gboolean
_glade_drag_can_drop (_GladeDrag *dest, gint x, gint y, GObject *data)
{
_GladeDragInterface *iface;
g_return_val_if_fail (GLADE_IS_DRAG (dest), FALSE);
iface = GLADE_DRAG_GET_IFACE (dest);
if (iface->can_drop)
return iface->can_drop (dest, x, y, data);
else
return FALSE;
}
gboolean
_glade_drag_drop (_GladeDrag *dest, gint x, gint y, GObject *data)
{
_GladeDragInterface *iface;
g_return_val_if_fail (GLADE_IS_DRAG (dest), FALSE);
iface = GLADE_DRAG_GET_IFACE (dest);
if (iface->drop)
return iface->drop (dest, x, y, data);
else
return FALSE;
}
void
_glade_drag_highlight (_GladeDrag *dest, gint x, gint y)
{
_GladeDragInterface *iface;
g_return_if_fail (GLADE_IS_DRAG (dest));
iface = GLADE_DRAG_GET_IFACE (dest);
if (iface->highlight)
iface->highlight (dest, x, y);
}

74
gladeui/glade-drag.h Normal file
View File

@ -0,0 +1,74 @@
/*
* glade-drag.h
*
* Copyright (C) 2013 Juan Pablo Ugarte
*
* Authors:
* Juan Pablo Ugarte <juanpablougarte@gmail.com>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef _GLADE_DRAG_H_
#define _GLADE_DRAG_H_
#include "glade-widget-adaptor.h"
G_BEGIN_DECLS
#define GLADE_TYPE_DRAG _glade_drag_get_type ()
G_DECLARE_INTERFACE (_GladeDrag, _glade_drag, GLADE, DRAG, GObject)
struct __GladeDragInterface
{
GTypeInterface parent_instance;
gboolean (*can_drag) (_GladeDrag *source);
gboolean (*can_drop) (_GladeDrag *dest,
gint x,
gint y,
GObject *data);
gboolean (*drop) (_GladeDrag *dest,
gint x,
gint y,
GObject *data);
void (*highlight) (_GladeDrag *dest,
gint x,
gint y);
};
gboolean _glade_drag_can_drag (_GladeDrag *source);
gboolean _glade_drag_can_drop (_GladeDrag *dest,
gint x,
gint y,
GObject *data);
gboolean _glade_drag_drop (_GladeDrag *dest,
gint x,
gint y,
GObject *data);
void _glade_drag_highlight (_GladeDrag *dest,
gint x,
gint y);
G_END_DECLS
#endif /* _GLADE_DRAG_DEST_H_ */

222
gladeui/glade-editable.c Normal file
View File

@ -0,0 +1,222 @@
/*
* glade-editable.c
*
* Copyright (C) 2008 Tristan Van Berkom.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <glib/gi18n-lib.h>
#include <string.h>
#include <stdlib.h>
#include "glade-project.h"
#include "glade-widget.h"
#include "glade-editable.h"
G_DEFINE_INTERFACE (GladeEditable, glade_editable, GTK_TYPE_WIDGET)
static GQuark glade_editable_project_quark = 0;
static GQuark glade_editable_widget_quark = 0;
static GQuark glade_editable_loading_quark = 0;
static GQuark glade_editable_destroy_quark = 0;
static void
project_changed (GladeProject *project,
GladeCommand *command,
gboolean execute,
GladeEditable *editable)
{
GladeWidget *widget;
widget = g_object_get_qdata (G_OBJECT (editable), glade_editable_widget_quark);
glade_editable_load (editable, widget);
}
static void
project_closed (GladeProject *project,
GladeEditable *editable)
{
glade_editable_load (editable, NULL);
}
static void
editable_destroyed (GladeEditable *editable)
{
glade_editable_load (editable, NULL);
}
static void
glade_editable_load_default (GladeEditable *editable,
GladeWidget *widget)
{
GladeWidget *old_widget;
GladeProject *old_project;
old_widget = g_object_get_qdata (G_OBJECT (editable), glade_editable_widget_quark);
old_project = g_object_get_qdata (G_OBJECT (editable), glade_editable_project_quark);
if (old_widget != widget)
{
if (old_project)
{
g_signal_handlers_disconnect_by_func (old_project, G_CALLBACK (project_changed), editable);
g_signal_handlers_disconnect_by_func (old_project, G_CALLBACK (project_closed), editable);
g_object_set_qdata (G_OBJECT (editable), glade_editable_widget_quark, NULL);
g_object_set_qdata (G_OBJECT (editable), glade_editable_project_quark, NULL);
}
if (widget)
{
GladeProject *project = glade_widget_get_project (widget);
g_object_set_qdata (G_OBJECT (editable), glade_editable_widget_quark, widget);
g_object_set_qdata (G_OBJECT (editable), glade_editable_project_quark, project);
g_signal_connect (project, "changed",
G_CALLBACK (project_changed), editable);
g_signal_connect (project, "close",
G_CALLBACK (project_closed), editable);
}
}
}
static void
glade_editable_default_init (GladeEditableInterface *iface)
{
glade_editable_project_quark = g_quark_from_static_string ("glade-editable-project-quark");
glade_editable_widget_quark = g_quark_from_static_string ("glade-editable-widget-quark");
glade_editable_loading_quark = g_quark_from_static_string ("glade-editable-loading-quark");
glade_editable_destroy_quark = g_quark_from_static_string ("glade-editable-destroy-quark");
iface->load = glade_editable_load_default;
}
/**
* glade_editable_load:
* @editable: A #GladeEditable
* @widget: the #GladeWidget to load
*
* Loads @widget property values into @editable
* (the editable will watch the widgets properties
* until its loaded with another widget or %NULL)
*/
void
glade_editable_load (GladeEditable *editable, GladeWidget *widget)
{
GladeEditableInterface *iface;
g_return_if_fail (GLADE_IS_EDITABLE (editable));
g_return_if_fail (widget == NULL || GLADE_IS_WIDGET (widget));
/* Connect to the destroy signal once, make sure we unload the widget and disconnect
* to any signals when destroying
*/
if (!GPOINTER_TO_INT (g_object_get_qdata (G_OBJECT (editable), glade_editable_destroy_quark)))
{
g_signal_connect (editable, "destroy", G_CALLBACK (editable_destroyed), NULL);
g_object_set_qdata (G_OBJECT (editable), glade_editable_destroy_quark, GINT_TO_POINTER (TRUE));
}
iface = GLADE_EDITABLE_GET_IFACE (editable);
g_object_set_qdata (G_OBJECT (editable), glade_editable_loading_quark, GINT_TO_POINTER (TRUE));
if (iface->load)
iface->load (editable, widget);
else
g_critical ("No GladeEditable::load() support on type %s",
G_OBJECT_TYPE_NAME (editable));
g_object_set_qdata (G_OBJECT (editable), glade_editable_loading_quark, GINT_TO_POINTER (FALSE));
}
/**
* glade_editable_set_show_name:
* @editable: A #GladeEditable
* @show_name: Whether or not to show the name entry
*
* This only applies for the general page in the property
* editor, editables that embed the #GladeEditorTable implementation
* for the general page should use this to forward the message
* to its embedded editable.
*/
void
glade_editable_set_show_name (GladeEditable *editable, gboolean show_name)
{
GladeEditableInterface *iface;
g_return_if_fail (GLADE_IS_EDITABLE (editable));
iface = GLADE_EDITABLE_GET_IFACE (editable);
if (iface->set_show_name)
iface->set_show_name (editable, show_name);
}
/**
* glade_editable_loaded_widget:
* @editable: A #GladeEditable
*
* Returns: (transfer none) (nullable): a #GladeWidget or %NULL if the editable hasn't been loaded
*/
GladeWidget *
glade_editable_loaded_widget (GladeEditable *editable)
{
return g_object_get_qdata (G_OBJECT (editable), glade_editable_widget_quark);
}
gboolean
glade_editable_loading (GladeEditable *editable)
{
return GPOINTER_TO_INT (g_object_get_qdata (G_OBJECT (editable), glade_editable_loading_quark));
}
void
glade_editable_block (GladeEditable *editable)
{
GladeProject *project;
g_return_if_fail (GLADE_IS_EDITABLE (editable));
project = g_object_get_qdata (G_OBJECT (editable), glade_editable_project_quark);
g_return_if_fail (GLADE_IS_PROJECT (project));
g_signal_handlers_block_by_func (project, G_CALLBACK (project_changed), editable);
}
void
glade_editable_unblock (GladeEditable *editable)
{
GladeProject *project;
g_return_if_fail (GLADE_IS_EDITABLE (editable));
project = g_object_get_qdata (G_OBJECT (editable), glade_editable_project_quark);
g_return_if_fail (GLADE_IS_PROJECT (project));
g_signal_handlers_unblock_by_func (project, G_CALLBACK (project_changed), editable);
}

70
gladeui/glade-editable.h Normal file
View File

@ -0,0 +1,70 @@
/*
* glade-editable.h
*
* Copyright (C) 2008 Tristan Van Berkom.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef __GLADE_EDITABLE_H__
#define __GLADE_EDITABLE_H__
#include <glib.h>
#include <glib-object.h>
G_BEGIN_DECLS
#define GLADE_TYPE_EDITABLE glade_editable_get_type ()
G_DECLARE_INTERFACE (GladeEditable, glade_editable, GLADE, EDITABLE, GtkWidget)
typedef enum
{
GLADE_PAGE_GENERAL,
GLADE_PAGE_COMMON,
GLADE_PAGE_PACKING,
GLADE_PAGE_ATK,
GLADE_PAGE_QUERY,
GLADE_PAGE_SIGNAL
} GladeEditorPageType;
struct _GladeEditableInterface
{
GTypeInterface g_iface;
/* virtual table */
void (* load) (GladeEditable *editable,
GladeWidget *widget);
void (* set_show_name) (GladeEditable *editable,
gboolean show_name);
};
void glade_editable_load (GladeEditable *editable,
GladeWidget *widget);
void glade_editable_set_show_name (GladeEditable *editable,
gboolean show_name);
GladeWidget *glade_editable_loaded_widget (GladeEditable *editable);
gboolean glade_editable_loading (GladeEditable *editable);
void glade_editable_block (GladeEditable *editable);
void glade_editable_unblock (GladeEditable *editable);
G_END_DECLS
#endif /* __GLADE_EDITABLE_H__ */

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,136 @@
/*
* Copyright (C) 2001 Ximian, Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_EDITOR_PROPERTY_H__
#define __GLADE_EDITOR_PROPERTY_H__
#include <gtk/gtk.h>
G_BEGIN_DECLS
/*******************************************************************************
Boiler plate macros (inspired from glade-command.c)
*******************************************************************************/
/* XXX document me ! */
#define GLADE_MAKE_EPROP(type, func, MODULE, OBJ_NAME) \
G_DECLARE_FINAL_TYPE (type, func, MODULE, OBJ_NAME, GladeEditorProperty) \
G_DEFINE_TYPE (type, func, GLADE_TYPE_EDITOR_PROPERTY) \
static void \
func ## _finalize (GObject *object); \
static void \
func ## _load (GladeEditorProperty *me, GladeProperty *property); \
static GtkWidget * \
func ## _create_input (GladeEditorProperty *me); \
static void \
func ## _class_init (type ## Class *klass) \
{ \
GladeEditorPropertyClass *ep_class = GLADE_EDITOR_PROPERTY_CLASS (klass); \
GObjectClass* object_class = G_OBJECT_CLASS (klass); \
ep_class->load = func ## _load; \
ep_class->create_input = func ## _create_input; \
object_class->finalize = func ## _finalize; \
} \
static void \
func ## _init (type *self) \
{ \
}
#define GLADE_TYPE_EDITOR_PROPERTY glade_editor_property_get_type ()
G_DECLARE_DERIVABLE_TYPE (GladeEditorProperty, glade_editor_property, GLADE, EDITOR_PROPERTY, GtkBox)
struct _GladeEditorPropertyClass {
GtkBoxClass parent_class;
void (* load) (GladeEditorProperty *eprop, GladeProperty *property);
GtkWidget *(* create_input) (GladeEditorProperty *eprop);
void (* commit) (GladeEditorProperty *eprop, GValue *value);
void *(* changed) (GladeEditorProperty *eprop, GladeProperty *property);
gpointer padding[4];
};
void glade_editor_property_load (GladeEditorProperty *eprop,
GladeProperty *property);
void glade_editor_property_load_by_widget (GladeEditorProperty *eprop,
GladeWidget *widget);
void glade_editor_property_commit (GladeEditorProperty *eprop,
GValue *value);
void glade_editor_property_commit_no_callback (GladeEditorProperty *eprop,
GValue *value);
void glade_editor_property_set_custom_text (GladeEditorProperty *eprop,
const gchar *custom_text);
const gchar *glade_editor_property_get_custom_text (GladeEditorProperty *eprop);
void glade_editor_property_set_disable_check (GladeEditorProperty *eprop,
gboolean disable_check);
gboolean glade_editor_property_get_disable_check (GladeEditorProperty *eprop);
GtkWidget *glade_editor_property_get_item_label (GladeEditorProperty *eprop);
GladePropertyDef *glade_editor_property_get_property_def (GladeEditorProperty *eprop);
GladeProperty *glade_editor_property_get_property (GladeEditorProperty *eprop);
gboolean glade_editor_property_loading (GladeEditorProperty *eprop);
gboolean glade_editor_property_show_i18n_dialog (GtkWidget *parent,
gchar **text,
gchar **context,
gchar **comment,
gboolean *translatable);
gboolean glade_editor_property_show_resource_dialog (GladeProject *project,
GtkWidget *parent,
gchar **filename);
gboolean glade_editor_property_show_object_dialog (GladeProject *project,
const gchar *title,
GtkWidget *parent,
GType object_type,
GladeWidget *exception,
GladeWidget **object);
/* Generic eprops */
#define GLADE_TYPE_EPROP_NUMERIC (glade_eprop_numeric_get_type())
#define GLADE_TYPE_EPROP_ENUM (glade_eprop_enum_get_type())
#define GLADE_TYPE_EPROP_FLAGS (glade_eprop_flags_get_type())
#define GLADE_TYPE_EPROP_COLOR (glade_eprop_color_get_type())
#define GLADE_TYPE_EPROP_NAMED_ICON (glade_eprop_named_icon_get_type())
#define GLADE_TYPE_EPROP_TEXT (glade_eprop_text_get_type())
#define GLADE_TYPE_EPROP_BOOL (glade_eprop_bool_get_type())
#define GLADE_TYPE_EPROP_CHECK (glade_eprop_check_get_type())
#define GLADE_TYPE_EPROP_UNICHAR (glade_eprop_unichar_get_type())
#define GLADE_TYPE_EPROP_OBJECT (glade_eprop_object_get_type())
#define GLADE_TYPE_EPROP_OBJECTS (glade_eprop_objects_get_type())
GType glade_eprop_numeric_get_type (void) G_GNUC_CONST;
GType glade_eprop_enum_get_type (void) G_GNUC_CONST;
GType glade_eprop_flags_get_type (void) G_GNUC_CONST;
GType glade_eprop_color_get_type (void) G_GNUC_CONST;
GType glade_eprop_named_icon_get_type (void) G_GNUC_CONST;
GType glade_eprop_text_get_type (void) G_GNUC_CONST;
GType glade_eprop_bool_get_type (void) G_GNUC_CONST;
GType glade_eprop_check_get_type (void) G_GNUC_CONST;
GType glade_eprop_unichar_get_type (void) G_GNUC_CONST;
GType glade_eprop_object_get_type (void) G_GNUC_CONST;
GType glade_eprop_objects_get_type (void) G_GNUC_CONST;
G_END_DECLS
#endif /* __GLADE_EDITOR_PROPERTY_H__ */

View File

@ -0,0 +1,266 @@
/*
* Copyright (C) 2013 Tristan Van Berkom.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifdef HAVE_CONFIG_H
#include <config.h>
#endif
#include <glib/gi18n-lib.h>
#include "glade.h"
#include "glade-widget.h"
#include "glade-popup.h"
#include "glade-editable.h"
#include "glade-editor-skeleton.h"
/* GObjectClass */
static void glade_editor_skeleton_dispose (GObject *object);
/* GladeEditableInterface */
static void glade_editor_skeleton_editable_init (GladeEditableInterface *iface);
/* GtkBuildableIface */
static void glade_editor_skeleton_buildable_init (GtkBuildableIface *iface);
typedef struct _GladeEditorSkeletonPrivate GladeEditorSkeletonPrivate;
struct _GladeEditorSkeletonPrivate
{
GSList *editors;
};
static GladeEditableInterface *parent_editable_iface;
static GtkBuildableIface *parent_buildable_iface;
G_DEFINE_TYPE_WITH_CODE (GladeEditorSkeleton, glade_editor_skeleton, GTK_TYPE_BOX,
G_ADD_PRIVATE (GladeEditorSkeleton)
G_IMPLEMENT_INTERFACE (GLADE_TYPE_EDITABLE,
glade_editor_skeleton_editable_init)
G_IMPLEMENT_INTERFACE (GTK_TYPE_BUILDABLE,
glade_editor_skeleton_buildable_init))
static void
glade_editor_skeleton_init (GladeEditorSkeleton *skeleton)
{
}
static void
glade_editor_skeleton_class_init (GladeEditorSkeletonClass *klass)
{
GObjectClass *gobject_class = G_OBJECT_CLASS (klass);
gobject_class->dispose = glade_editor_skeleton_dispose;
}
/***********************************************************
* GObjectClass *
***********************************************************/
static void
glade_editor_skeleton_dispose (GObject *object)
{
GladeEditorSkeleton *skeleton = GLADE_EDITOR_SKELETON (object);
GladeEditorSkeletonPrivate *priv = glade_editor_skeleton_get_instance_private (skeleton);
if (priv->editors)
{
g_slist_free_full (priv->editors, (GDestroyNotify)g_object_unref);
priv->editors = NULL;
}
G_OBJECT_CLASS (glade_editor_skeleton_parent_class)->dispose (object);
}
/*******************************************************************************
* GladeEditableInterface *
*******************************************************************************/
static void
glade_editor_skeleton_load (GladeEditable *editable,
GladeWidget *widget)
{
GladeEditorSkeleton *skeleton = GLADE_EDITOR_SKELETON (editable);
GladeEditorSkeletonPrivate *priv = glade_editor_skeleton_get_instance_private (skeleton);
GSList *l;
/* Chain up to default implementation */
parent_editable_iface->load (editable, widget);
for (l = priv->editors; l; l = l->next)
{
GladeEditable *editor = l->data;
glade_editable_load (editor, widget);
}
}
static void
glade_editor_skeleton_set_show_name (GladeEditable *editable, gboolean show_name)
{
GladeEditorSkeleton *skeleton = GLADE_EDITOR_SKELETON (editable);
GladeEditorSkeletonPrivate *priv = glade_editor_skeleton_get_instance_private (skeleton);
GSList *l;
for (l = priv->editors; l; l = l->next)
{
GladeEditable *editor = l->data;
glade_editable_set_show_name (editor, show_name);
}
}
static void
glade_editor_skeleton_editable_init (GladeEditableInterface *iface)
{
parent_editable_iface = g_type_default_interface_peek (GLADE_TYPE_EDITABLE);
iface->load = glade_editor_skeleton_load;
iface->set_show_name = glade_editor_skeleton_set_show_name;
}
/*******************************************************************************
* GtkBuildableIface *
*******************************************************************************/
typedef struct
{
GSList *editors;
} EditorParserData;
static void
editor_start_element (GMarkupParseContext *context,
const gchar *element_name,
const gchar **names,
const gchar **values,
gpointer user_data,
GError **error)
{
EditorParserData *editor_data = (EditorParserData *)user_data;
gchar *id;
if (strcmp (element_name, "editor") == 0)
{
if (g_markup_collect_attributes (element_name,
names,
values,
error,
G_MARKUP_COLLECT_STRDUP, "id", &id,
G_MARKUP_COLLECT_INVALID))
{
editor_data->editors = g_slist_append (editor_data->editors, id);
}
}
else if (strcmp (element_name, "child-editors") == 0)
;
else
g_warning ("Unsupported tag for GladeEditorSkeleton: %s\n", element_name);
}
static const GMarkupParser editor_parser =
{
editor_start_element,
};
static gboolean
glade_editor_skeleton_custom_tag_start (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
const gchar *tagname,
GMarkupParser *parser,
gpointer *data)
{
if (strcmp (tagname, "child-editors") == 0)
{
EditorParserData *parser_data;
parser_data = g_slice_new0 (EditorParserData);
*parser = editor_parser;
*data = parser_data;
return TRUE;
}
return parent_buildable_iface->custom_tag_start (buildable, builder, child,
tagname, parser, data);
}
static void
glade_editor_skeleton_custom_finished (GtkBuildable *buildable,
GtkBuilder *builder,
GObject *child,
const gchar *tagname,
gpointer user_data)
{
EditorParserData *editor_data = (EditorParserData *)user_data;
GSList *l;
if (strcmp (tagname, "child-editors") != 0)
{
parent_buildable_iface->custom_finished (buildable, builder, child,
tagname, user_data);
return;
}
for (l = editor_data->editors; l; l = l->next)
{
GObject *object;
gchar *id = l->data;
object = gtk_builder_get_object (builder, id);
if (!GLADE_EDITABLE (object))
g_warning ("Object '%s' is not a GladeEditable\n",
object ? G_OBJECT_TYPE_NAME (object) : "(null)");
else
glade_editor_skeleton_add_editor (GLADE_EDITOR_SKELETON (buildable),
GLADE_EDITABLE (object));
}
g_slist_free_full (editor_data->editors, g_free);
g_slice_free (EditorParserData, editor_data);
}
static void
glade_editor_skeleton_buildable_init (GtkBuildableIface *iface)
{
parent_buildable_iface = g_type_interface_peek_parent (iface);
iface->custom_tag_start = glade_editor_skeleton_custom_tag_start;
iface->custom_finished = glade_editor_skeleton_custom_finished;
}
/*******************************************************************************
* API *
*******************************************************************************/
GtkWidget *
glade_editor_skeleton_new (void)
{
return g_object_new (GLADE_TYPE_EDITOR_SKELETON, NULL);
}
void
glade_editor_skeleton_add_editor (GladeEditorSkeleton *skeleton,
GladeEditable *editor)
{
GladeEditorSkeletonPrivate *priv = glade_editor_skeleton_get_instance_private (skeleton);
g_return_if_fail (GLADE_IS_EDITOR_SKELETON (skeleton));
g_return_if_fail (GLADE_IS_EDITABLE (editor));
g_object_ref (editor);
priv->editors = g_slist_prepend (priv->editors, editor);
}

View File

@ -0,0 +1,45 @@
/*
* Copyright (C) 2013 Tristan Van Berkom.
*
* This library is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
* Authors:
* Tristan Van Berkom <tvb@gnome.org>
*/
#ifndef __GLADE_EDITOR_SKELETON_H__
#define __GLADE_EDITOR_SKELETON_H__
#include <gtk/gtk.h>
#include <gladeui/glade-xml-utils.h>
#include <gladeui/glade-editable.h>
G_BEGIN_DECLS
#define GLADE_TYPE_EDITOR_SKELETON glade_editor_skeleton_get_type ()
G_DECLARE_DERIVABLE_TYPE (GladeEditorSkeleton, glade_editor_skeleton, GLADE, EDITOR_SKELETON, GtkBox)
struct _GladeEditorSkeletonClass
{
GtkBoxClass parent_class;
};
GtkWidget *glade_editor_skeleton_new (void);
void glade_editor_skeleton_add_editor (GladeEditorSkeleton *skeleton,
GladeEditable *editor);
G_END_DECLS
#endif /* __GLADE_EDITOR_SKELETON_H__ */

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