=== 0.6.6 === 2006-05-03 Johan Dahlin * NEWS: * gazpacho/__init__.py: * po/ca.po: * po/es.po: * po/fi.po: * po/fr.po: * po/gazpacho.pot: * po/gl.po: * po/it.po: * po/pt_BR.po: * po/ru.po: * po/zh_CN.po: 0.6.6 2006-05-03 Johan Dahlin * gazpacho/catalog.py: * gazpacho/editor.py: * gazpacho/project.py: * gazpacho/widget.py: Fix a couple of issues reported by pylint 2006-04-26 Mattias Karlsson * gazpacho/widgetview.py: Make sure both the workspace and the widget tree is updated when the last widget is removed from the selection. * gazpacho/widgetview.py: The project might not be set for the widget tree when the content is modified. Fixes a crash when creating a new project. * gazpacho/app/app.py: Fixed a few remaining issues related to showing/hiding the preview menu item. 2006-04-23 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/widgets/base/notebook.py: Update page when select widgets. Fixes #339635 2006-04-25 Johan Dahlin * gazpacho/app/app.py (Application._update_open_projects): Make the Project property action insensitive if there are no open projects, fixes #337094. (Application): Only show preview if something is selected. Fixes #330459 * gazpacho/dndhandlers.py (DnDHandler._set_drag_highlight): Optimize _is_valid_drop_zone and do an additional ancestor check in drag_data received. Also do a couple of renames. * gazpacho/placeholder.py: * gazpacho/widget.py: Do not allow windows to be dragged or dropped upon. 2006-04-23 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/editor.py (EditorPropertyName.__init__): Use a KiwiEntry, fixes #333043 2006-04-23 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/loader/custom.py: * tests/test_glade.py: Make sure it's possible to use all unicode characters as invisible character for the gtk.Entry. This fixes a crash in the loader. Fixes #338340 2006-04-19 Johan Dahlin * gazpacho/loader/loader.py (ExpatParser.parse_file): Add support for gzip and bzip2 compressed files. Fixes async bug #2409 2006-04-10 Johan Dahlin * gazpacho/loader/custom.py (ActionAdapter.prop_set_stock_id): Allow invalid stock icons to be set. 2006-04-07 Johan Dahlin * gazpacho/debugwindow.py (DebugWindow.show_exception): Use the topmost frame instead of the innermost, make bugzilla reports be slightly more useful. 2006-04-06 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/loader/loader.py: Make sure we show an error dialog instead of crashing when loading an invalid glade file. Fixes #334460. 2006-04-06 Lorenzo Gil Sanchez * gazpacho/util.py (select_iter): don't scroll the TreeView if it is not realized (avoids nasty warnings) 2006-04-03 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/signaleditor.py: * gazpacho/widget.py: Signal handlers with underscores in their names will now be loaded correctly. Fixes #334905 (reported by Inigo Aldazabal Mensa) * gazpacho/app/app.py: Use radio menu items in the project menu to make it possible to see which project is the current one. Fixes #336547 2006-04-03 Dave Cook reviewed by: Johan Dahlin * gazpacho/loader/loader.py (ObjectBuilder.signal_autoconnect): Ignore signals missing, like libglade. Fixes #336994 2006-04-03 Johan Dahlin * gazpacho/loader/custom.py (ActionAdapter.prop_set_stock_id): Override and set the accelerator if a stock_id is specified. Fixes #336979 (Patrick K. O'Brien) 2006-03-29 Mattias Karlsson * gazpacho/app/app.py: Remove closed projects from the project menu. 2006-03-28 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/editor.py: * gazpacho/uieditor.py: Store gadget references instead of widgets since they usually don't change. Fixes #333018. 2006-03-27 Mattias Karlsson * gazpacho/command.py: * gazpacho/project.py: * gazpacho/widget.py: * gazpacho/widgetadaptor.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/notebook.py: * tests/test_uim.py: Renamed load_widget_from_widget to load_gadget_from_widget. 2006-03-27 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/editor.py: Make sure we handle all unicode characters in the invisible character property. Fixes #335908. * gazpacho/widget.py: * gazpacho/widgets/base/dialog.py: Make sure some dialog related properties are hidden both when creating a dialog from scratch and loading it from file. Fixes #332225. 2006-03-21 Johan Dahlin * setup.py: Use kiwi.dist, to simplify installation. 2006-03-21 Scott Tai reviewed by: Johan Dahlin * setup.py (data_files): Install catalogs in $datadir/catalogs, Fixes #335156 2006-03-10 Johan Dahlin * gazpacho/filewriter.py: * gazpacho/widget.py: * gazpacho/widgetadaptor.py: * gazpacho/widgets/base/base.py: Add adaptor.get_children and use it while saving children. Implement a get_children for widget and container. 2006-03-04 Lorenzo Gil Sanchez * gazpacho/editor.py: * gazpacho/app/app.py: Improve an API so you can refresh just a property of the editor and you also can know which is the gadget currently loaded. 2006-03-03 Johan Dahlin * gazpacho/widgetview.py (WidgetTreeView._on_project_widget_name_changed): Check if iter is None, workaround for bug #333034 i 2006-02-26 Mattias Karlsson * gazpacho/app/app.py: Fixed a crash that occurred when showing the 'file could not be saved' dialog. Fixes #332607. 2006-02-24 Lorenzo Gil Sanchez * gazpacho/properties.py: important PropRegistry refactor: child props are stored in a different bag and now it should be possible to redefine prop subclasses * gazpacho/widget.py (Gadget.get_child_prop): new accesor for child properties * tests/test_properties.py: * tests/test_table.py: * gazpacho/widgets/base/table.py: * gazpacho/editor.py: * gazpacho/filewriter.py (XMLWriter._write_properties): use get_child_prop if the prop is a child property 2006-02-23 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/project.py: * gazpacho/uim.py: Fixed a regression where the project wasn't updated correctly when the name of the widgets changed. Fixes #329120 and #330180. 2006-02-22 Mattias Karlsson reviewed by: Johan Dahlin * catalogs/base.xml: * gazpacho/widgets/base/base.py: * tests/test_saveproperties.py: Set better default propery values for a few widgets. Label::xalign = 0 Frame::label = (widget name) Frame::shadow-type = gtk.SHADOW_NONE Expander::label = (widget name) Expander::expanded = True 2006-02-20 Mattias Karlsson * gazpacho/widget.py: Containers are now valid drop targets when dragging widgets. This makes it possible to drop widget onto e.g. combo boxes. 2006-02-20 Lorenzo Gil Sanchez * gazpacho/properties.py (PropRegistry.override_property): don't allow to call override_property if the property already exists. You have to use override_simple in that case. * gazpacho/widgets/base/image.py: use override_simple for GtkImage::file * gazpacho/widgets/base/button.py: use override_simple for GtkRadioButton::group * gazpacho/widgets/base/base.py: remove a SizeGroupProp class definition since there are two of them * gazpacho/properties.py (PropMeta.new): make it possible to override the 'readable' and 'writable' attributes by initializing them to None and only setting them in new() if they are still None. Now it is possible to use override_simple instead of override_property if we just want to make a property writable/readable and it is not writable/readable in GTK+ Also, for CustomProperty make it readable/writable by default (since it provides get() and set() methods) * gazpacho/widgets/base/base.py (ObjectDataProp.set): make it inherit from BooleanType also so things keep working as before when the multiple inheritance was done inside override_simple. - Remove some whitespace - Don't call override_simple without a reason just to make epydoc happy Instead, use get_prop_type, which is much more transparent. * gazpacho/properties.py (PropRegistry.override_simple): when creating the base class for this property use single inheritance. This keep things a lot simpler to debug. Also use the right PropType as base instead of always using CustomProperty. Custom properties should be used in override_property when we create a totally new property, not when we are overriding a GTK+ one. 2006-02-15 Johan Dahlin * tests/test_saveproperties.py (SavePropertiesTest.testSavePositionProperty): Update test. * catalogs/base.xml: * gazpacho/widgets/base/base.py (LabelAdaptor.post_create): * gazpacho/widgets/base/button.py (ButtonAdaptor.post_create): Set label to name of the widget for label and button (subclasses) 2006-02-13 Lorenzo Gil Sanchez * gazpacho/properties.py (PropRegistry.override_simple) (PropRegistry._create_type_from_pspec): use the name of the property (type_name) when creating the PropType. If we just use the pspec we have problems overriding properties in widget subclasses. See bug #330775 2006-02-10 Johan Dahlin * gazpacho/editor.py: * gazpacho/properties.py: * gazpacho/widgets/base/dialog.py: Disable some properties of internal children which are tied to the current theme. 2006-02-10 Johan Dahlin * gazpacho/app/app.py: * gazpacho/app/bars.py: Rework the code to list the open projects. Add a project properties menu entry. Add a dialog which allows you to modify the domain 2006-02-09 Johan Dahlin * gazpacho/filewriter.py: * gazpacho/loader/loader.py: * gazpacho/loader/tags.py: * gazpacho/project.py: * tests/glade/domain.glade: load and save domain properly from .glade files 2006-02-09 Johan Dahlin * gazpacho/actioneditor.py: * gazpacho/app/app.py: * gazpacho/command.py: * gazpacho/context.py: * gazpacho/interfaces.py: * gazpacho/main.py: * gazpacho/placeholder.py: * gazpacho/sizegroupeditor.py: * gazpacho/widget.py: * tests/common.py: * tests/test_glade.py: * tests/test_sizegroup.py: * tests/utils.py: Use kiwi.components, register the application window. Remove app.window replace it with app.get_window Requires r2495 of kiwi 2006-02-07 Johan Dahlin * gazpacho/actioneditor.py: * gazpacho/annotator.py: * gazpacho/catalog.py: * gazpacho/gaction.py: * gazpacho/placeholder.py: * gazpacho/project.py: * gazpacho/uieditor.py: * gazpacho/uim.py: * gazpacho/util.py: * gazpacho/widget.py: Move out a couple of functions of utils. 2006-02-06 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/widgets/base/box.py: * tests/test_box.py: When reducing the size of boxes placeholders are now removed before widets. Fixes #329916. 2006-02-05 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/app/app.py: * gazpacho/loader/loader.py: * gazpacho/project.py: Notify the user about unsupported widgets when loading a project. 2006-02-04 Johan Dahlin * gazpacho/main.py: * gazpacho/widgetadaptor.py: * setup.py: Make external libraries work aswell, fixes regression since landing of #326848 2006-02-04 Johan Dahlin * gazpacho/app/bars.py (MAIN_UI_STRING): * gazpacho/app/app.py (Application._preview_cb): Add a preview action. 2006-02-04 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/actioneditor.py: * gazpacho/app/bars.py: * gazpacho/sizegroupeditor.py: * gazpacho/widgetview.py: Refactoring the views so that they will reuse the 'Delete' actions when handling the delete key press. 2006-02-04 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/actioneditor.py: * gazpacho/sizegroupeditor.py: * gazpacho/uimstate.py: * tests/test_sizegroup.py: Refactoring the popup menus in the action and sizegroup views. They are now created through the uimanager. 2006-02-03 Mattias Karlsson * gazpacho/placeholder.py: * gazpacho/project.py: * gazpacho/util.py: * gazpacho/widget.py: * tests/test_widgetselection.py: Refactoring. Moved the circle_select method from util to WidgetSelection and renamed it to just circle. 2006-02-03 Johan Dahlin * gazpacho/catalog.py (_parse_gazpacho_path): Use os.pathsep instead of ':', to make it work in win32. Spotted by pobrien 2006-02-01 Johan Dahlin * gazpacho/widgets/base/table.py (TableAdaptor.fill_empty): Fix regression since r2124, it should be empty, since ContainerAdapter now fills it automatically. 2006-02-01 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/commandmanager.py: * gazpacho/placeholder.py: * gazpacho/project.py: * gazpacho/sizegroup.py: * gazpacho/sizegroupeditor.py: * gazpacho/uimstate.py: * gazpacho/widget.py: * gazpacho/widgets/base/notebook.py: * gazpacho/widgetview.py: * tests/test_sizegroup.py: * tests/test_widgetselection.py: Added support for multiple selections. It's currently only useful for adding widgets to sizegroups. 2006-02-01 Johan Dahlin * gazpacho/actioneditor.py: * gazpacho/app/app.py: * gazpacho/app/dialogs.py: * gazpacho/catalog.py: * gazpacho/commandmanager.py: * gazpacho/dialogs.py: * gazpacho/editor.py: * gazpacho/sizegroupeditor.py: * gazpacho/uieditor.py: Use kiwi.dialogs, remove dialogs. part of #326848 Requires kiwi r2322 2006-02-01 Johan Dahlin * gazpacho/command.py: * gazpacho/dndhandlers.py: * gazpacho/widget.py: * tests/test_widget.py: Move copy_widget into a method on gadget 2006-01-31 Johan Dahlin * gazpacho/gaction.py (GAction.write): Mark short-label as translatable aswell. So we can get translated toolitems aswell. 2006-01-30 Johan Dahlin * gazpacho/app/app.py: * gazpacho/app/bars.py: * gazpacho/catalog.py: * gazpacho/cursor.py: * gazpacho/environ.py: * gazpacho/main.py: * gazpacho/palette.py: * gazpacho/properties.py: * gazpacho/sizegroupeditor.py: * gazpacho/widgetadaptor.py: * setup.py: * tests/common.py: Use kiwi.environ, requires r2278 of kiwi 2006-01-30 Johan Dahlin * gazpacho/stockicons.py (StockIconList._populate_icons): Do not assume there will always be a - in the stock id. Fixes #329094 * gazpacho/catalog.py: * gazpacho/environ.py: * gazpacho/widgets/base/combobox.py: Load libraries in order, remove insane amount of hacks in combobox.py 2006-01-29 Johan Dahlin * catalogs/base.xml: * gazpacho/catalog.py: * gazpacho/library.py: * gazpacho/widgetadaptor.py: * gazpacho/widgetregistry.py: * gazpacho/widgets/base/bars.py: * gazpacho/widgets/base/base.py: * gazpacho/widgets/base/box.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/combobox.py: * gazpacho/widgets/base/statusbar.py: * gazpacho/widgets/base/textview.py: * gazpacho/widgets/base/window.py: Register adaptors a bit saner way, if there's an adaptor for the base class, use it instead of WidgetAdaptor. Remove SimpleContainer and always create a placeholder in fill_empty and override it when it's neccessary (bars, iconview, boxes) 2006-01-28 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/app/app.py: * gazpacho/command.py: * gazpacho/commandmanager.py: * gazpacho/placeholder.py: * gazpacho/popup.py: * gazpacho/project.py: * gazpacho/uimstate.py: * gazpacho/util.py: * gazpacho/widget.py: * gazpacho/widgets/base/notebook.py: * gazpacho/widgetview.py: * tests/test_box.py: * tests/test_radiobuttons.py: * tests/test_widgetselection.py: Refactoring. The widget selection code has been removed from Project and a WidgetSelection class has been added. 2006-01-27 Johan Dahlin * gazpacho/editor.py: (EditorPropertyFlags.__init__): Rewrite using Kiwi List * README: * gazpacho/actioneditor.py: * gazpacho/clipboard.py: * gazpacho/editor.py: * gazpacho/gaction.py: * gazpacho/kiwiutils.py: * gazpacho/main.py: * gazpacho/palette.py: * gazpacho/project.py: * gazpacho/signaleditor.py: * gazpacho/sizegroup.py: * gazpacho/sizegroupeditor.py: * gazpacho/stockicons.py: * gazpacho/widget.py: * gazpacho/widgets/base/custom.py: * tests/common.py: Depend on kiwi 1.9.3 or higher, remove kiwiutils. Partly fixes #326848