2011-02-01 Tristan Van Berkom * configure.ac, NEWS: * gladuei/glade-design-private.h, gladeui/glade-design-layout.[ch], gladeui/glade-design-view.[ch]: Relicensed LGPL, Juan Pablo Ugarte, Vincent Geddes and I are the only Copyright holders for these files and I have thier consent to relicense these files LGPL. * gladeui/glade-debug.c: Avoid showing an unavoidable warning regarding gdk_window_set_composited(). 2011-01-31 Juan Pablo Ugarte * 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() o added design-view construct only property o use _glade_design_view_freeze/thaw() to avoid scrolling to selection from the layout. 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 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 * gladeui/glade-design-view.[ch]: o improved viewport scrolling to selected toplevel, now we only scroll if the selection was not triggered by the layout. o implemented _glade_design_view_freeze/thaw() o removed glade_design_view_get_layout() declaration o removed gladeui/glade-design-layout.h include o handle widget adding and removal on project's add-widget and remove-widget signals o added widget-visibility-changed handler to add/remove toplevels on visibility change * gladeui/glade-design-private.h: added new file to declare private API. * gladeui/glade-app.c: replaced GladeDesignLayout API with the new private one * gladeui/glade-project.[ch]: o added GladeProject::widget-visibility-changed signal o added glade_project_widget_visibility_changed() function * gladeui/glade-widget.c: o added visible property. o use glade_project_widget_visibility_changed() to emit signal on widget visibility change * gladeui/glade.h: removed glade-design-layout.h since now its private * gladeui/Makefile.am: do not install private header glade-design-layout.h * plugins/gtk+/Makefile.am: do not install headers 2011-01-29 Tristan Van Berkom * plugins/gtk+/glade-model-data.c: Avoid committing the data if the data did not change... committing the data when there is no change can cause the editor to load itself, this editor does not deal with that well. Fixes crasher bug 622839. * plugins/gtk+/gtk+.xml.in: Add support for editing GtkOffscreenWindow, tricked this out by just using the "parent" xml attribute and deriving GtkWindow and disabling all the irrelevant GtkWindow properties. * src/main.c, src/glade-window.c: Make Glade use GtkApplication, now Glade is a single instance app. * data/icons/Makefile.am, data/desktop.in.in: Rename the 'glade-3' icon to 'glade' 2011-01-28 Tristan Van Berkom * gladeui/glade-xml-utils.h, gladeui/glade-widget-adaptor.[ch], gladeui/glade-widget.[ch]: Added 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 support to GtkContainer, GtkMenuShell, GtkMenuItem, GtkToolBar, GtkToolItem, GtkToolPalette, GtkToolItemGroup, GtkActionGroup, GtkTextTagTable adaptors. 2011-01-27 Tristan Van Berkom * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added support for GtkRecentFilter as well as reading and writing the new and tags that are recently added to GtkRecentFilter's GtkBuildable implementation. * plugins/gtk+/gtk+.xml.in, plugins/gtk+/glade-gtk.c: Added support to GtkFileFilter for reading and writing the new and tags that are recently added to GtkFileFilter's GtkBuildable implementation. * plugins/gtk+/gtk+.xml.in: Added GtkRecentManager to the palette. 2011-01-26 Tristan Van Berkom * plugins/gtk+/Makefile.am, plugins/gtk+/glade-string-list.[ch]: Added Boxed type and GladeEditorProperty to manage/edit a list of strings that can be translatable. This property editor uses a treeview and supports reordering of rows with Drag'n'Drop as well as deletion of rows using the 'Delete' key. Every row can have individual i18n information set via the common i18n dialog. * plugins/gtk+/glade-gtk.c, plugins/gtk+/gtk+.xml.in: Add GtkComboBoxText support to Glade and use the GladeStringList boxed type to edit the list of translatable items. * gladeui/glade-popup.c: Fixed property popup to not show DevHelp link when the property is a virtual one. 2011-01-25 Juan Pablo Ugarte * gladeui/glade-design-layout.[ch]: o Made GladeDesignLayout an offscreen container, all its children are redirected offscreen and composited later on. This allow us drawing "pretty" selections over widgets. o added new function derived from glade_design_layout_widget_event(), glade_design_layout_do_event() to marshal events from the override class handler o added glade_design_layout_selection_set() o reworked cursors pointer in an array to ease setting them. o replaced glade_design_layout_get_pointer_region () with gdl_get_activity_from_pointer() o removed call to gtk_widget_size_allocate() in glade_design_layout_update_child() fixes rendering glith while resizing * gladeui/glade-design-view.c: set layout selection on project's selection-changed signal * gladeui/glade-app.[ch]: o added glade_app_do_event() o set custom gdk event handler to marshal event to GladeDesignLayouts using glade_design_layout_do_event() * gladeui/glade-utils.[ch]: removed unused function glade_util_draw_selection_nodes() * gladeui/glade-widget.[ch]: o moved IS_GLADE_WIDGET_EVENT macro to header. o replaced glade_widget_connect_signal_handlers() with glade_widget_add_events() 2011-01-24 Tristan Van Berkom * 41 files: Fixed typo in LGPL License file headers. * plugins/gtk+/glade-attributes.c: Relicensing to LGPL. 2011-01-22 Tristan Van Berkom * gladeui/glade-command.[ch]: Removed glade_command_set_naming_policy(). * gladeui/glade-project.[ch]: Removed naming policy, object ids are always unique. * gladeui/glade-editor-property.c, glade-property-class.[ch], gladeui/glade-property.c, gladeui/glade-signal-editor.c, gladeui/glade-utils.[ch], gladeui/glade-widget.c, gladeui/glade-xml-utils.h, plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-icon-sources.c, plugins/gtk+/glade-model-data.c: Removed 'widget' argument from glade_property_class_make_gvalue_from_string() and from glade_utils_value_from_string() since you never need a common ancestor to search a widget by name anymore. * gladeui/glade-project.[ch], src/glade-window.c: Edit->Preferences becomes File->Properties along with some internal renames (closes bug 609485). 2011-01-21 Tristan Van Berkom * gladeui/glade-palette.c: Dont strdup the adaptor names in the local hash table (those strings are constant data, no need to dup them). * gladeui/glade-base-editor.c: Fixed many memory leaks in this rusty code, fixed nasty bug where type_edited() was using the wrong enum to fetch the current type name, fixed to make "Add Item" button always add items to the root. 2011-01-20 Johannes Schmid * gladeui/glade-signal-model.c: Add the "swapped" property of the signal to the dnd string * gladeui/glade-signal-editor.c: Fix creating of the rich dnd icon with proper cairo drawing (thanks to Benjamin Otte) * gladeui/glade-app.c: Bring back "signal-editor-created" signal 2011-01-19 Tristan Van Berkom * plugins/gtk+/gtk+.xml.in: Remove GtkTreeSelection from the palette, it's only available as the internal selection of a GtkTreeView. * gladeui/glade-editor-property.c, gladeui/glade-widget-adaptor.c: Pluggin more memory leaks. 2011-01-16 Tristan Van Berkom * plugins/gtk+/glade-gtk.c: Fixed warnings from glade_gtk_box_get_first_blank() when project closes. * gladeui/glade-project.[ch]: - Added glade_project_widget_changed() to manually notify a "row-change" - Add property references to the MISC_COLUMN (i.e. "Image Widget of button1" texts). * gladeui/glade-widget.c: Notify widget row changes when parentless widget references are added/removed from a widget. * gladeui/glade-catalog.c, gladeui/glade-inspector.c, gladeui/glade-property-class.c, gladeui/glade-utils.c, gladeui/glade-widget-adaptor.c, gladeui/glade-widget.c, gladeui/glade-xml-utils.c, plugins/gtk+/glade-gtk.c: Plugging leaks found with valgrind. * gladeui/glade-builtins.c: Removed _() annotations for strings that dont need to be translated. * gladeui/glade-project.c, gladeui/glade-property-class.c, gladeui/glade-widget-adaptor.c, gladeui/glade-widget.c, plugins/gtk+/glade-gtk.c, plugins/gtk+/glade-model-data.c: Plugged more leaks found with valgrind. 2011-01-15 Emilio Pozuelo Monfort * plugins/gtk+/Makefile.am: Don't install .in files. 2011-01-15 Johannes Schmid * 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() * gladeui/glade-app.c: * gladeui/glade-signal-editor.c: Added "signal-editor-created" signal 2011-01-13 Javier Jardón * glade3.doap: Update doap file to glade.doap instead glade3.doap 2011-01-13 Javier Jardón * configure.ac: The bugzilla product is now glade instead glade3