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
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>
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()
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`.
Remove object from project before extracting children since we clear up
GladeWidget back references for internal children.
Fix issue #484 "Crash with GtkRecentChooserDialog"
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."
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
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"
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"
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
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.
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"
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"
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.
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
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
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.
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"
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.
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.
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"
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"
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.
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"
- 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"
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).
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
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
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.
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
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,
> | ^~~~~~~~~~~~~~~~~~~~~~
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);
> | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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
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.
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.
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.
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.
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
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().
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.
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.
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.
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
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.
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
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"
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"
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"
This reverts commit b9763bfada7c9ecc2532563a97c387f8c20962b5.
Revert "GtkPopover: rework support code to fix bugs and warnings"
This reverts commit d2bedbab24c64198b373345e973d00e1f9fdc33c.
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
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"
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"
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>
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>
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.
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.
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>
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
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
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
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
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
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.
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)
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.
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
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.
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.
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 ;-)
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.
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.
o Removed duplicate declaration of GtkListBoxRow
o Removed redundant declaration of displayable values
for the GtkSelectionMode type (they were previously
declared by GtkListBox)
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.
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.
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.
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.
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
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
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
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
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
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)
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.
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
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.
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).
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.
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
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).
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.
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).
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.
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.
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
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.
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
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"
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.
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
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.
Made GtkAboutDialog logo and logo-icon-name properties optional since they
are mutually exclusive.
The editor is responsible for enabling then accordingly.
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.
This reverts commit 2d04be13169d95677332f49d43e81ed00bfb4e8d.
Revert "Added message dialog at startup to advertise the user survey."
This reverts commit 5716cbb64b281e2325d21bb4ae53a4ba7a07e906.
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
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.
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
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
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
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
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.
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()
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.
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.
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.
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.
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.
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.
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.
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()
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
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.
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).
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).
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.
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.
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"
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.
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
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")"
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.
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!
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
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
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.
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
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).
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.
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.
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 ?)
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.
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.
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.
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").
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).
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.
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.
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.
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.
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.
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
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.
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.
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.
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.
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).
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.
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
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).
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.
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.
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.
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
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
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.
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.
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.
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.
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.
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).
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.
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.
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.
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.
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.
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
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.
Parse the "deprecated" parts of gtk+.xml.in on properties and signals,
and update GladeProject to format the deprecation messages when verifying
the project.
... 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.
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).
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).
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
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
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.
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.
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.
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.
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.
Deprecated glade_editor_show_info(), glade_editor_hide_info() functions and GladeEditor:show-info properties.
Exported glade_editor_reset_dialog_run() function
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.
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.
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
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"
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()
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()
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
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
(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
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.
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.
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.
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."
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
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)
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
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
* 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
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)
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
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
with a deprecation overlay pixbuf if a widget is deprecated.
* data/icons/Makefile.am, icons: Added deprecation overlay graphics
contributed by Florent Thévenet.
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
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
* 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.
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
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.
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).
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.
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.
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.
* 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
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
* 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().
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.
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
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.
* 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
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.
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.
as well as reading and writing the new <mime-types> <patterns> and <applications> tags
that are recently added to GtkRecentFilter's GtkBuildable implementation.
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.
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.
as well as reading and writing the new <mime-types> <patterns> and <applications> tags
that are recently added to GtkRecentFilter's GtkBuildable implementation.
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
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.
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.
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.
* 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()
* 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.
* 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.
* 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.
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.
- 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.
* 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()
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.
- 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()
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).
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.
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.
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.
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.
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.
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
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).
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.
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.
- 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(-)
- 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.
* 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).
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.
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.
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
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).
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.
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.
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.
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).
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.
the fixed_layout stuff
* plugins/gtk+/gtk+.xml.in: Removing Ruler classes, added GtkBox, GtkPaned, GtkButtonBox
base classes that are now instantiatable
* 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.
* 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.
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).
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.
* 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.
- 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.
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>.
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.
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).
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.
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.
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.
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."
- 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.
- 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.
- 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().
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.
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.
* 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).
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).
* 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).
* 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.
- 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)
- 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
- 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:
* 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
instead of GladeCellRendererButton which was more convoluted (included only an icon when editing).
* plugins/gtk+/Makefile.am: Removed glade-cell-renderer-button.[ch]
* 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.
* 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.
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.
* 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).
- 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.
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.
* 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.
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).
- 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).
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>
* 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.
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.
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.
* 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).
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
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>
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
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
GtkAdjustment properties and installed glade_gtk_adjustment_write_widget() to write the properties out
in the following order: "lower", "upper", "value" (fixes bug 578484).
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).
* 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.
(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).
* 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).
* 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.
* 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).
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).
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.
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.
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
* 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).
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).
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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-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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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-09-29 Alexander Shopov <ash@contact.bg>
* bg.po: Updated Bulgarian translation by
Alexander Shopov <ash@contact.bg>
svn path=/trunk/; revision=1965
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
* 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 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
* 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
* gladeui/glade-design-layout.c: Fixed calculation to get deepest
wrapped glade widget (bug 539924 - fix by Pavel Kostyuchenko).
svn path=/trunk/; revision=1906
* 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
* 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
* 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
* 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
* 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-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
* gladeui/glade-property.c: Applied patch from Pavel Kostyuchenko to fix project
modified state flag glitches (bug 532017).
svn path=/trunk/; revision=1820
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* plugins/gtk+/glade-gtk.c: Implemented dual format for atk
properties, afaics accelerators are loaded and saved identically.
svn path=/trunk/; revision=1773
* 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
* 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
* 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
* 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-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
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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-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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* gladeui/glade-design-layout.c: Do not override GtkWidget::event().
Ensures that child widgets only receive events when necessary.
svn path=/trunk/; revision=1489
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* gladeui/glade-editor-propertyc: Ensure parameter list passed to
gtk_dialog_set_alternative_button_order() are terminated (#424509).
svn path=/trunk/; revision=1354
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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
* 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-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
* 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
* 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
* 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
* 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
* 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
* 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
* 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-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-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
* 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-17 Christian Persch <chpe@svn.gnome.org>
* autogen.sh: Set the required gdu version in autogen too. Bug
#392411.
svn path=/trunk/; revision=1110
* 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
{"project_new",glade_python_project_new,METH_VARARGS,"Create a new project."},
{"project_open",glade_python_project_open,METH_VARARGS,"Open an existing project."},
{"project_save",glade_python_project_save,METH_VARARGS,"Save the current project."},
{"project_close",glade_python_project_close,METH_VARARGS,"Close the current project."},
{"project_get",glade_python_project_get,METH_VARARGS,"Get the current project."},
{"project_set",glade_python_project_set,METH_VARARGS,"Set the current project."},
{"project_list",glade_python_project_list,METH_VARARGS,"List all projects."},
{"widget_new",glade_python_widget_new,METH_VARARGS,"Create a new GtkWidget."},
{"widget_delete",glade_python_widget_delete,METH_VARARGS,"Delete a GtkWidget."},
{"widget_set",glade_python_widget_set,METH_VARARGS,"Set a GtkWidget's property."},
{"widget_get",glade_python_widget_get,METH_VARARGS,"Get a GtkWidget's property."},
{"widget_list",glade_python_widget_list,METH_VARARGS,"List all widgets."},
{"get_adaptor_for_type",glade_python_get_adaptor_for_type,METH_VARARGS,"Get the corresponding GladeWidgetAdaptor. Use this function to create your own derived Adaptor."},
d="M 29.294093,2.4999998 L 8.7293434,2.4999998 C 8.6152711,2.4999998 1.5,9.7905242 1.5,9.9074054 L 1.5,28.289021 C 1.5,28.405903 1.5918342,28.499999 1.7059065,28.499999 L 29.294093,28.499999 C 29.408166,28.499999 29.5,28.405903 29.5,28.289021 L 29.5,2.7109774 C 29.5,2.5940958 29.565495,2.4084486 29.294093,2.4999998 z "
d="M 1.3527051,9.6855718 C 2.0121209,8.6892491 6.877972,6.9254979 9.4107408,6.3339567 C 9.2572783,7.4977242 9.5218979,11.008446 9.5218979,11.008446 C 7.6546325,9.9911316 2.0595082,9.5656294 1.3527051,9.6855718 z "
d="M 1.5000141,9.9760969 C 1.4909238,8.9290832 5.8863647,2.4241096 8.5672434,2.5006702 C 7.8953721,2.673055 7.3586439,7.0641785 8.3182291,9.1450482 C 6.4193865,9.1450482 2.1655515,8.6012994 1.5000141,9.9760969 z "
id="path2210"
sodipodi:nodetypes="cccc"
inkscape:r_cx="true"
inkscape:r_cy="true" />
<path
sodipodi:nodetypes="cccc"
id="path2247"
d="M 2.6785155,8.0439173 C 3.1887299,7.1200246 5.5915523,4.5658067 6.9383154,3.7171098 C 6.7709389,4.6953545 6.5621107,6.2435454 6.9933638,8.0015394 C 6.9933638,8.0015394 3.2253952,7.9326947 2.6785155,8.0439173 z "
d="M 57.5,14.928571 L 57.5,44.928571 L 96.5,44.928571 L 57.5,14.928571 z M 63.236662,27.131021 L 77.534429,37.865171 L 63.148883,37.953788 L 63.236662,27.131021 z "
d="M 43.215995,7.5 L 13.471509,7.5 C 13.314168,7.5 3.5,17.314168 3.5,17.471508 L 3.5,42.215992 C 3.5,42.373332 3.626668,42.5 3.784009,42.5 L 43.215995,42.5 C 43.373336,42.5 43.500004,42.373332 43.500004,42.215992 L 43.500004,7.7840084 C 43.500004,7.6266678 43.373336,7.5 43.215995,7.5 z "
d="M 4,17.212006 C 4.8898017,15.865378 11.455677,13.481495 14.873341,12.681969 C 14.666262,14.254915 15.023334,19 15.023334,19 C 12.503686,17.625 4.9537451,17.049892 4,17.212006 z "
d="M 3.500024,17.60468 C 3.486859,16.189538 9.852559,7.3974268 13.735143,7.500906 C 12.762105,7.733901 11.984788,13.668936 13.374508,16.481436 C 10.624508,16.481436 4.463889,15.746506 3.500024,17.60468 z "
id="path2210"
sodipodi:nodetypes="cccc"
inkscape:r_cx="true"
inkscape:r_cy="true" />
<path
sodipodi:nodetypes="cccc"
id="path2247"
d="M 5.78902,15.499999 C 6.517382,14.143041 9.947557,10.391559 11.870143,9.1450438 C 11.631203,10.581831 11.333088,12.855721 11.948728,15.437757 C 11.948728,15.437757 6.569724,15.336642 5.78902,15.499999 z "
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>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/502">Fix issue #502 sync draw-indicator on setting xalign (Caolán McNamara)</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/499">Fix issue #499 and #509 "Drop overzealous check using only the first child"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/385">Fix Segfault in gnome-builder when widget doesn't have a name (Peter Maatman)</issue>
<issueurl="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>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/484">Fix issue #484 "Crash with GtkRecentChooserDialog"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/194">Fix issue #194 "Using List Store can result in program crash."</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/53">Fix issue #53 "Can't choose a FileChooserDialog for a FileChooserButton"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/355">Fix issue #355 "Make notification text selectable"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/360">Fix issue #360 "No examples in documentation on using custom catalogues with gtkBuilder"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/406">Fix issue #406 "AtkObject::accessible-role should not be translatable"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/479">Fix issue #479 "Glade 3.36.0 segfaults when opening a file"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/471">Fix issue #471 "XML not updated after adding element"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/474">Fix issue #474 "GtkLabel: setup text attribute issues"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/480">Fix issue #480 "version field not always updated in XML"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/470">Fix issue #470 "Widgets of type need placeholders to add children"</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/472">Fix issue #472 "gnome-nightly: About dialog should display git commit rev"</issue>
</issues>
</release>
<releaseversion="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>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>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/385">Issue #385: GtkCellRendererText causes deprecated warnings for ghost properties</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/444">Issue #444: show-emoji-icon is missing "minimum version"/since constraint</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/367">Issue #367: Glade removes double/triple slashes from URLs</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/452">Issue #452: GtkComboBox cell renderers editor is too hard to discover</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/363">Issue #363: Toplevel windows are leaked when closing a project</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/462">Issue #462: Crash when creating a new GtkAssistant and pressing it</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/463">Issue #463: Specify file on command line</issue>
<issueurl="https://gitlab.gnome.org/GNOME/glade/-/issues/461">Issue #461: Glade resets number of rows and columns in GtkGrid</issue>
<issueurl="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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.