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.
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.
* 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()