=== Gazpacho 0.6.2 === 2005-09-07 Lorenzo Gil Sanchez * NEWS: updated for 0.6.2 * gazpacho/application.py (__version__): increase version number 2005-09-06 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/command.py: * gazpacho/widget.py: * gazpacho/palette.py: * gazpacho/constants.py: * gazpacho/placeholder.py: * gazpacho/dndhandlers.py: Big refactoring of the drag and drop code. The dnd code from Widget and Placeholder have been moved to special DnDHandler classes. In addition to this it's now possible to drag a widget ontop of another widget and extend it, by either creating a new box containing both the source and target widget or by appending the source widget to the the parent box next to the target. 2005-09-06 Johan Dahlin * gazpacho/loader/custom.py (DialogAdapter.get_internal_child_name) (ColorSelectionDialogAdapter.get_internal_child_name): Correct names, they are different from C structure names. Fixes #315357 (Zeeshan Ali) 2005-09-01 Mattias Karlsson * gazpacho/placeholder.py: It should not be possible to drop a widget onto one of its children. Fixes #314581. 2005-09-01 Johan Dahlin * gazpacho/main.py (check_gtk): Add some extra checks and clean up a bit * gazpacho/application.py (SingleCloseConfirmationDialog.run): New method, call show and call main. 2005-08-31 Johan Dahlin * gazpacho/widgets/base/combobox.py (Items.load): Create a new model if it does not already exist. * gazpacho/loader/custom.py (ComboBoxAdapter.prop_set_items): Only set the text column if it's not already set * tests/glade/combobox.glade: Add test * gazpacho/widgets/base/combobox.py: Add support for GtkComboBox::items, 2005-08-30 Mattias Karlsson * gazpacho/debugwindow.py: HIG fixes. Buttons should use header capitalization. 2005-08-30 Johan Dahlin * gazpacho/cairoannotator.py: * gazpacho/gdkannotator.py: * gazpacho/util.py: * gazpacho/widget.py: Merge annotator code into a single source file 2005-08-29 Mattias Karlsson * gazpacho/actioneditor.py: It's now possible to add accelerators even if they conflict with the mnemonics in the dialog. Fixes #312809. * gazpacho/widget.py: It's no longer possible to drop a widget onto itself (i.e. not a valid drop target). Fixes Bug 314621. 2005-08-26 Johan Dahlin * gazpacho/palette.py (Palette._widget_table_create): Do not enable DND for toplevel windows, fixes #314609 * catalogs/base.xml: Disable Popup menu until 311478 is resolved. * gazpacho/bugreportdialog.py (BugReportDialog.__init__): Button order. * gazpacho/widget.py (Widget._connect_signal_handlers): We don't need to connect to signals for all children. Remove unused code. * gazpacho/filewriter.py (XMLWriter._write_basic_information): If name is set, write it to the file. We can now remove a custom hack. 2005-08-25 Johan Dahlin * gazpacho/loader/custom.py (TreeViewColumnAdapter.add): Work around for PyGTK bug 314527, fixes #313384 2005-08-25 Johan Dahlin * gazpacho/loader/proxy.py (Proxy._connect_methods): Fix minor bug, variant of patch by Harry Wright, fixes 314218 * gazpacho/filewriter.py: * gazpacho/loader/custom.py: * gazpacho/loader/loader.py: * gazpacho/properties.py: * gazpacho/widgets/base/base.py: * gazpacho/widgets/base/box.py: * gazpacho/widgets/base/notebook.py: * tests/glade/focus.glade: Add persistent property attribute, use it instead of empty save methods in a few cases. Add a qdata property base class to use in state which is saved in qdata. Ignore has-focus, only is-focus should be used. Use qdata for has-focus and visible Add a test case. Fix a couple of loader bugs, add loader bugs warning when having multiple selected widgets with is-focus set. 2005-08-25 Johan Dahlin * gazpacho/widgets/base/base.py (VisibleProperty.get): If gazpacho::visible is not set, initialize it from the real property value. * tests/test_glade.py (SKIPPED): Enable notebook test * tests/glade/notebook.glade: Remove page property * gazpacho/widgets/base/notebook.py (Page.save): Don't save GtkNotebook::page property, first page will always be shown. * gazpacho/widgets/base/base.py (IsFocus.set): * gazpacho/loader/custom.py (WidgetAdapter.prop_set_is_focus): Add support for GtkWidget::is-focus, * tests/glade/table.glade: * tests/glade/notebook.glade: Add tests, disabled for now * gazpacho/widgets/base/notebook.py (NPagesProp.save): Don't save * gazpacho/filewriter.py (XMLWriter.table_sort): Make children of a GtkTable sorted in a stable order in the glade file. 2005-08-23 Johan Dahlin * gazpacho/placeholder.py: * gazpacho/widgets/base/custom.py: No need to override signals on PyGTK 2.6+ Set minimum for int1/int2. Add some nicer drawing code. Listen for changes to string1 and update the text 2005-08-23 Johan Dahlin * catalogs/base.xml: * gazpacho/widgets/base/base.py: Fix basic support for EventBox, which is a container, so move it to the container tab. 2005-08-23 Johan Dahlin * catalogs/base.xml: * 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/fixed.py: * gazpacho/widgets/base/image.py: * gazpacho/widgets/base/statusbar.py: * gazpacho/widgets/base/textview.py: * gazpacho/widgets/base/treeview.py: * gazpacho/widgets/base/window.py: Split out most of the widgets left in base.py 2005-08-20 Mattias Karlsson * gazpacho/widgets/base/base.py: * catalogs/base.xml: Several container classes didn't have adaptors specified. The implication of this was that they didn't have any placeholders associated with them. 2005-08-22 Daniel Borgmann reviewed by: Johan Dahlin * gazpacho/properties.py: * gazpacho/widgets/base/base.py: Splits the PropType init function into a _load function, for the purpose of overriding it in BoxSizeProp. Also sets the minimum value to 1. Replace .remove with gtk.Container.remove 2005-08-22 Johan Dahlin * gazpacho/kiwiutils.py: Copied from kiwi, until we can depend on it Include PyGTK 2.7.x fixes, by Gustavo Carneiro * catalogs/base.xml: * gazpacho/project.py: * gazpacho/widgets/base/custom.py: * tests/glade/custom.glade: Add support for editing Custom widgets. Add test case 2005-08-22 Johan Dahlin * gazpacho/unittest/test_loader.py (CustomTest.func): * gazpacho/loader/loader.py (ObjectBuilder._create_custom): If a function is specified, send in all arguments. * gazpacho/editor.py: Use editor_name in label * gazpacho/widgetadaptor.py: Allow type to be specified in the class definition, instead of the xml file. * gazpacho/widgetregistry.py: Document and use widget_adaptor.name if specified 2005-08-22 Johan Dahlin * gazpacho/library.py (registry_library): Move interfaces from here. * gazpacho/interfaces.py: New file, for interfaces, just abstract classes for now. 2005-08-18 Johan Dahlin * gazpacho/properties.py: * tests/glade/radiobutton.glade: Add radiobutton test and an evil hack in PropType.__init__ 2005-08-18 Johan Dahlin * gazpacho/environ.py (Environment._parse_gazpacho_path): Fix GAZPACHO_PATH to work with the new widget layout 2005-08-17 Johan Dahlin * gazpacho/application.py: Always access self.window through a property, should make it easier for subclassing. Also refactor setting the title to a separate function, which can be overriden by embedders. Based on patch by Ali Afshar, fixes #313396 2005-08-17 Johan Dahlin * gazpacho/widgets/base/base.py (TreeViewAdaptor.fill_empty): Ignore GtkTreeView::headers-clickable * README: Update requirements * gazpacho/widgets/base/spinbutton.py (SpinAdjustmentType.__init__): New file. Implement all adjustment properties, not syncing with the editor control yet. Fixes #313686 * gazpacho/editor.py (PropertyEditorDialog) (PropertyCustomEditor): Move from properties.py * gazpacho/properties.py (PropRegistry.override_property): Set owner_name. (PropType.__repr__): print owner_name::name for consistency (ProxiedProperty): New helper type (ProxiedProperty.set): * tests/glade/spinbutton.glade: New test glade file * tests/test_glade.py (BaseTest._test_gladefile): Improve * gazpacho/properties.py (PropMeta.new, PropRegistry._add_type): Do not override label if there is an already set label. 2005-08-16 Johan Dahlin * gazpacho/widget.py (Widget._dnd_drag_begin_cb): Make DND of Widgets to Placeholder work * gazpacho/editor.py (Editor._needs_rebuild): Do not cache the last property pages when switching between widgets which have different child properties. Fixes #313439 (Editor): Remove _widget_properties cache, it doesn't seem to work in all cases * tests/test_gtkbox.py (GtkBoxTest.testExpand): Enable test * gazpacho/properties.py (PropRegistry._list_child_properties): Remove type_name argument it was unused. Update call sites. * setup.py (InstallLib.install): Generate template in install_dir instead of build_dir, fixes #313435 2005-08-15 Johan Dahlin * gazpacho/main.py: Don't call bind_textdomain_charset as things appears to work without it. Makes gazpacho start on python 2.3. Fixes #313573 2005-08-15 Mattias Karlsson * gazpacho/actioneditor.py: it's now possible to delete actions and action groups using the keyboard. Fixes #313548 2005-08-15 Lorenzo Gil Sanchez * gazpacho/application.py (Application.send_bugreport): compose the body message here and not in the server. Added pygtk and gtk versions 2005-08-15 Johan Dahlin * catalogs/base.xml: * gazpacho/widgets/base/__init__.py: * gazpacho/widgets/base/base.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/dialog.py: * gazpacho/widgets/base/notebook.py: * gazpacho/widgets/base/table.py: Remove __init__ hacks. 2005-08-15 Johan Dahlin * gazpacho/widgets/base/__init__.py: * gazpacho/widgets/base/base.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/dialog.py: * gazpacho/widgets/base/notebook.py: * gazpacho/widgets/base/table.py: Split base to a few files 2005-08-15 Johan Dahlin * catalogs/base.xml: * catalogs/glade-catalog.dtd: * catalogs/gtk+.xml: * gazpacho/__uninstalled__.py: * gazpacho/catalog.py: * gazpacho/environ.py: * gazpacho/filewriter.py: * gazpacho/library.py: * gazpacho/widgets/__init__.py: * gazpacho/widgets/base/__init__.py: * gazpacho/widgets/base/base.py: * gazpacho/widgets/gtk+.py: * setup.py: Rework widgets/ one more time. Loads from sys.path (gazpacho.widgets), renamed to base.py, we cannot use gtk+.py since it's not valid in python and gtk.py is already taken. 2005-08-15 Johan Dahlin * gazpacho/catalog.py: * gazpacho/choice.py: * gazpacho/loader/loader.py: * gazpacho/widgets/gtk+.py: Remove unused imports and some unused code. 2005-08-14 Johan Dahlin * gazpacho/loader/loader.py: Don't try to pack anything into unsupported widgets. Fixes bug #313469