=== Gazpacho 0.6.3 === 2006-01-05 Johan Dahlin * gazpacho/__init__.py (__version__): 0.6.3 * gazpacho/config.py (get_app_data_dir): win32 fixes for #322923 * gazpacho/cursor.py: * gazpacho/gaction.py: * gazpacho/project.py: * gazpacho/widget.py: Remove all staticmethod and replace them by classmethods. Also use the class in a couple of places, to make subclassing possible. 2006-01-05 Johan Dahlin * gazpacho.desktop (Categories): Add a ; to the end, fixes #322336 (Vincent Fretin) * gazpacho/loader/loader.py: * gazpacho/project.py: * gazpacho/sizegroup.py: Fix sizegroup loading, GSizeGroup expect widget wrappers and not just widgets. 2006-01-05 Johan Dahlin * gazpacho/dialogs.py (BaseDialog.__init__): If parent is specfied, make sure its a gtk.Window subclass. * gazpacho/editor.py (EditorPropertyText._show_i18n_dialog): Change order of arguments. Fixes #325849. 2006-01-05 Mike Gratton reviewed by: Johan Dahlin * gazpacho/actioneditor.py: * gazpacho/command.py: * gazpacho/commandmanager.py: * gazpacho/gaction.py: * gazpacho/uim.py: Add is-important and short-label support in GActionEditor. Fixes #325060 2006-01-05 Johan Dahlin * gazpacho/actioneditor.py (GActionDialog): Disable OK button if we have a stock. And don't set stock id if it's None. * gazpacho/stockicons.py (StockIconList._create_ui): set sensitivity of preview to False by default. Fixes #325828 2006-01-04 Mattias Karlsson * catalogs/base.xml: Removed support for GtkFixed. It was quite broken and couldn't really be used anyway. See #167864. 2006-01-04 Johan Dahlin * gazpacho/project.py: * gazpacho/widgets/base/window.py: * tests/glade/modal.glade: Do never set the real modal property, fixes #313529 2006-01-04 Johan Dahlin * gazpacho/filewriter.py: * gazpacho/loader/custom.py: * gazpacho/loader/loader.py: * gazpacho/project.py: * gazpacho/sizegroup.py: * gazpacho/sizegroupeditor.py: * gazpacho/widgets/base/base.py: * tests/glade/sizegroup.glade: * tests/test_loader.py: * tests/test_sizegroup.py: Loader and writing support for SizeGroups. Add tests and change the API slightly. Fixes the rest of #172717 2006-01-03 Mattias Karlsson * gazpacho/sizegroupeditor.py: Fixed a bug that made it impossible to add widgets to any existing sizegroups except the first in the combo box. 2006-01-04 Johan Dahlin * gazpacho/widgets/base/table.py: Re-add table attachment properties. Fixes #321953 2006-01-04 Lorenzo Gil Sanchez * gazpacho/dialogs.py (BaseDialog.__init__): replace None by the empty tuple for the default value of the buttons argument. This fixes a crash when closing gazpacho without saving your changes. 2006-01-03 Johan Dahlin * gazpacho/widgets/base/button.py (ButtonContentsEditor): Use StockIconList here. * gazpacho/stockicons.py: Refactor the stock icon code to its own class. * gazpacho/gaction.py: Allow the user to set the icon to a custom (not registered) stock icon id. Switch from using a GtkComboBox to a GtkComboBoxEntry with a preview icon field. 2005-12-13 Mike Gratton reviewed by: Johan Dahlin * gazpacho/gaction.py (GAction.new): Use gtk.accelerator_name to set the accelerator, fixes bug 323773 2005-12-13 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/app/app.py: * gazpacho/app/bars.py: * gazpacho/clipboard.py: * gazpacho/sizegroupeditor.py: * gazpacho/uimstate.py: * tests/test_sizegroup.py: The menubar and toolbar will now have a more dynamic behavior. Items will be added and removed depending on which view is active. Furthermore, the behavior of the edit actions (cut, copy, paste and delete) will also depend on the context the operate in. For example, the delete button is now used to delete actions and action groups when the action view is active. To achieve this a new type of classes (called uim states) have been introduced. Their purpose is to keep track of the state of the ui-manager widgets and to add or remove ui-definitions when needed. 2005-12-12 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/actioneditor.py: It's no longer possible to add several actions with the same name to an action group. Fixes #318351. 2005-12-09 Johan Dahlin * gazpacho/widgets/base/notebook.py (NotebookAdaptor._project_selection_changed_cb): If a selected child wasn't visible, switch to the right page. 2005-12-07 Johan Dahlin * gazpacho/placeholder.py (Placeholder will now always be set, prevent bugs. 2005-12-06 Johan Dahlin * gazpacho/loader/loader.py (ObjectBuilder._attach_accel_groups): Protect the accel group from being added twice. 2005-12-05 Lorenzo Gil Sanchez * gazpacho/widget.py (Widget._find_deepest_child_at_position): recurse into containers even when those containers are not GWidgets. Fix some problems with internal widgets of custom made widget-libraries 2005-12-03 Mattias Karlsson * gazpacho/popup.py: Removed a reference to command_manager.app since it insn't available anymore. Fixes #323051. 2005-11-24 Johan Dahlin * gazpacho/loader/loader.py (ObjectBuilder._attach_accel_groups): New method: merge in accel groups for all toplevels where a widget was constructed by a GtkUIManger. Makes keyboard accelerators work. 2005-11-22 Johan Dahlin * gazpacho/app/app.py: * gazpacho/app/bars.py: * gazpacho/catalog.py: * gazpacho/clipboard.py: * gazpacho/dndhandlers.py: * gazpacho/environ.py: * gazpacho/kiwiutils.py: * gazpacho/library.py: * gazpacho/loader/custom.py: * gazpacho/palette.py: * gazpacho/properties.py: * gazpacho/sizegroupeditor.py: * gazpacho/util.py: * gazpacho/widgetadaptor.py: * gazpacho/widgets/base/bars.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/table.py: * tools/epyrun: Add script to run epydoc. Update docstrings. Add a couple of hacks: Fake all singletons. 2005-11-21 Johan Dahlin * gazpacho/command.py: Add a command alias called remove-action-group, partly fixes bug 321937 2005-11-20 Mattias Karlsson * gazpacho/app/app.py: Fixed a regression where the undo/redo actions weren't enabled correctly. 2005-11-20 Mattias Karlsson * gazpacho/app/app.py: Refactor so that the same code is used when changing projects and closing the last project. 2005-11-20 Mattias Karlsson * tests/test_sizegroup.py: Added a few more tests for the SizeGroupView class. 2005-11-19 Mattias Karlsson * gazpacho/actioneditor.py: * gazpacho/app/app.py: * gazpacho/commandmanager.py: * tests/test_actioneditor.py: Fixed a couple of regressions related to the actioneditor. Also added some simple tests to prevent them from occurring again. 2005-11-18 Johan Dahlin * gazpacho/actioneditor.py: * gazpacho/app/app.py: * gazpacho/command.py: * gazpacho/dndhandlers.py: * gazpacho/editor.py: * gazpacho/placeholder.py: * gazpacho/project.py: * gazpacho/signaleditor.py: * gazpacho/sizegroup.py: * gazpacho/sizegroupeditor.py: * gazpacho/widget.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/fixed.py: * gazpacho/widgetview.py: * tests/test_button.py: * tests/test_command.py: * tests/test_property.py: * tests/test_scrolledwindow.py: * tests/test_sizegroup.py: * tests/test_widgets.py: Move CommandManager to gazpacho.command_manager. Add register command so we don't have to reference the commands directly. 2005-11-18 Johan Dahlin * gazpacho/__init__.py: * gazpacho/app/app.py: * gazpacho/bugreportdialog.py: * setup.py: Move __version__ from gazpacho.app.app to gazpacho. Clean up imports in app 2005-11-18 Johan Dahlin * gazpacho/app/app.py (Application._add_recent_items): Make it work again. * gazpacho/app/bars.py (BarManager.set_action_prop) (BarManager.set_action_props): New helper functions. * gazpacho/app/app.py: Use them here. 2005-11-17 Johan Dahlin * gazpacho/app/app.py: * gazpacho/app/bars.py: * tests/common.py: * tests/test_application.py: Start of UIManager refactoring 2005-11-17 Johan Dahlin * gazpacho/app/__init__.py: * gazpacho/application.py: * gazpacho/main.py: * setup.py: Move application to app/app 2005-11-17 Johan Dahlin * gazpacho/editor.py: * gazpacho/properties.py: Add UnsupportedProperty exception. Throw it when we can't iterate flags or enums for which there are now bindings. This happens when having a version mismatch between pygtk and gtk+. Fixes #316196 2005-11-17 Johan Dahlin * gazpacho/application.py: * gazpacho/bugreportdialog.py: * gazpacho/config.py: * gazpacho/debugwindow.py: Make bugname and bugmail persistent. Move config out of application. Improve subject of bugmail 2005-11-10 Mattias Karlsson * gazpacho/application.py: * gazpacho/command.py: * gazpacho/project.py: * gazpacho/sizegroup.py: * gazpacho/sizegroupeditor.py: * tests/test_sizegroup.py: Added initial support for sizegroups. 2005-11-09 Mattias Karlsson * gazpacho/application.py: * gazpacho/placeholder.py: * gazpacho/popup.py: * gazpacho/project.py: Only placeholders that are part of a gtk.Box can be deleted. Fixes #316532. 2005-11-09 Johan Dahlin * gazpacho/editor.py (Editor.refresh): Editor is part of the public API, so it'll be loaded by applications and should not print deprecation warnings. 2005-11-09 Kalle Vahlman reviewed by: Johan Dahlin * gazpacho/application.py (Application): Remove non-existing recent items, fixes #317896 2005-11-07 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/util.py: * tests/test_button.py: Fix 317079 (Undo/Redo for GtkButton) 2005-11-09 Johan Dahlin * tests/test_widgets.py (SKIPPED): Only disable GtkFileChooserDialog test when we're not using 2.8.x * gazpacho/loader/custom.py: * tests/test_glade.py: Fix #316062, by always setting image-file-name in the loader. 2005-11-07 Mattias Karlsson * gazpacho/command.py: Make sure we remove ui definitions for toolbars and menubars when their parents are removed. Fixes #320798 (reported by Noe Misael Nieto Arroyo). 2005-10-31 Mattias Karlsson * gazpacho/command.py: Refactor CommandCreateDelete and CommandCutPaste to remove some duplicate code. 2005-10-09 Mattias Karlsson * gazpacho/popup.py: Only enable the paste item in the placeholder popup menu if there is relevant content in the clipboard. Also, both paste and delete will always be displayed in the popup but disabled if they cannot be used. Fixes #318321 (reported by Rich Larson) 2005-10-03 Mattias Karlsson * gazpacho/command.py: Description for the DnD commands should be translatable. 2005-10-03 Johan Dahlin * gazpacho/loader/loader.py (ObjectBuilder.signal_autoconnect): Also catch TypeError, fixes #317807 (Zeeshan Ali) 2005-10-01 Mattias Karlsson * gazpacho/command.py: * tests/test_button.py: Undoing/redoing button editing doesn't work correctly (#317079). I've added a number of tests to verify this bug and also fixed one of the issues. Still a couple of problems left. 2005-09-28 Mattias Karlsson * gazpacho/command.py: Fixed a regression in the CommandCreateDelete that was introduced recently. Fixes #317372 2005-09-27 Mattias Karlsson * gazpacho/command.py: Big rewrite of the CommandDragDrop. This will fix some issues with doing DnD of toolbars and menubars. When using DnD to add a copy of a widget the CommandCutPaste is reused instead of using a new command. It also removes the old execute_drag method in the CommandManager since it wasn't used and isn't really needed right now. Fixes #314041. 2005-09-23 Johan Dahlin * gazpacho/command.py: * gazpacho/util.py: * gazpacho/widgets/base/button.py: Add support for icon size when not using a stock button. Fixes #316980 2005-09-23 Johan Dahlin * gazpacho/uieditor.py (UIEditor._on_add_clicked): Refactor. (UIEditor._on_add_clicked): Always set a name, even for separators. * gazpacho/properties.py (PropMeta.__repr__, PropRegistry.list): Add disabled in the base class and do not list disabled properties. 2005-09-22 Mattias Karlsson * gazpacho/popup.py: Turn off mnemonics for menu items in the popup menu since it will break for widgets having underscore in their names. Fixes #316785 (Reported by Gustavo Carneiro). 2005-09-21 Johan Dahlin * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/image.py: * tests/glade/button.glade: Add back support for text less stock buttons. Add a test too. Fixes #316885 2005-09-16 Johan Dahlin * gazpacho/widgets/base/box.py (BoxSizeProp.set): Set minimum of ::spacing to 0 2005-09-15 Mattias Karlsson * gazpacho/application.py: Always show a confirmation dialog if you're trying to open a glade file that is already loaded. Fixes #316416. 2005-09-15 Johan Dahlin * gazpacho/command.py (CommandCreateDelete._create_execute): Clean up a little bit. Make windows be centered on the application on window, and also show them a little bit earlier. * tests/test_gtkbutton.py: * gazpacho/widgets/base/button.py (ButtonSave.testSaveStock): Do not load internal children of buttons Fixes #316388 2005-09-15 Johan Dahlin * tests/glade/button.glade: Add a test for non stock images * gazpacho/util.py (get_button_state): Take into account that stock is set if the image cannot be loaded. * gazpacho/widgets/base/button.py (ButtonAdaptor.save): Do not save the widget if it's already loaded. * gazpacho/widgets/base/image.py (StockProp.save): Only save stock if we don't have the image-file-name data set. (FileProp.load): Set the value from the glade file, since we can't read. * gazpacho/loader/custom.py (Adapter.get_raw_property): New function. Accesses values parsed from the tree. * gazpacho/loader/loader.py (ObjectBuilder._add_widget): New utility function, to set gazpacho::object-id for all constructed objects. * gazpacho/widgets/base/combobox.py: * gazpacho/properties.py (PropType.__init__): Move adapter fetching from combobox to property constructor. Also pass in the projects loader (if any). * gazpacho/kiwiutils.py: add python 2.3 compatibility, thanks to Lucas Gates for testing * gazpacho/properties.py: return the property type for debugging purposes * gazpacho/widgets/base/base.py: Ensure image.py is imported * tests/test_gtkbutton.py: Disable one test for now. * tests/glade/button.glade: Add 3 buttons, still missing stock no label and image without stock 2005-09-14 Johan Dahlin * gazpacho/properties.py (PropRegistry.override_simple): Allow klasses to specify if they are child properties. (PropRegistry._list_child_properties): Don't fetch .__gtype__, PyGTK does it for us (PropMeta) much improved exceptions * gazpacho/widgets/base/button.py (LabelAdaptor.save): Use override_simple, since ::label already exists. * gazpacho/properties.py (PropRegistry.override_simple): Remove override_child, merge it with override_simple. Change the semantics for override_simple a little bit, don't call override_property. 2005-09-14 Johan Dahlin * gazpacho/properties.py (PropRegistry): A couple of bug fixes, mostly related to child properties. Added a few comments for better understanding. Started to document PropType, added license header. 2005-09-13 Johan Dahlin * tests/test_gtktable.py (GtkTableTest.testProperty) (GtkTableTest.testAddChildren): Use .value instead of get/set * gazpacho/editor.py (EditorPropertyNumeric._internal_load): Improve exception handling. * catalogs/base.xml: Disable GtkMessageDialog * gazpacho/kiwiutils.py: AMD-64 fixes, thanks to Gustavo for testing. * tests/test_glade.py (SKIPPED): Enable table glade test. * tests/test_gtktable.py (GtkTableTest.testProperty): Extend tests a little * gazpacho/widgets/base/table.py (TableSize._remove_children): Clean up Table::n-props/n-columns. * gazpacho/loader/loader.py (ObjectBuilder._build_phase1): Also add a reference to custom widgets, so we can reference them in object properties like GtkLabel::mnemonic-widget. Fixes #315982 (Ross Burton) * gazpacho/unittest/test_loader.py (CustomTest.func): Add a test 2005-09-12 Zeeshan Ali reviewed by: Johan Dahlin * gazpacho/command.py: Be careful with the return value from uim.get_ui. Fixes #316083 2005-09-12 Johan Dahlin * gazpacho/properties.py (PropType.__init__): Rename _object to object and make object a property, so we only need to update prop.widget when the parent changes. * gazpacho/editor.py (Editor._create_property_pages): Append GtkWidget::name first of all properties to the first page. 2005-09-06 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/project.py: A project will not be marked as changed when reverted (undo/redo) to the state it was in the last time it was saved. 2005-09-06 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/properties.py: * tests/test_property.py: Always fetch the parent when setting child properties, so we survive a parent reparenting. Fixes bug 314111 Tests were also added. 2005-09-09 Johan Dahlin * gazpacho/loader/custom.py (ToolButtonAdapter.prop_set_icon): Check so filename exists (bug #315802) and create an image properly (bug #313771) * gazpacho/main.py: Do not load when using PyGTK 2.7.x 2005-09-09 Johan Dahlin * gazpacho/widgets/base/window.py: Add support for allow-grow, allow-shrink. Fixes #315423 (Zeeshan Ali) 2005-09-09 Johan Dahlin * tests/glade/dialog.glade: * tests/test_glade.py: Add dialog test, skipped since it is not yet working 2005-09-08 Zeeshan Ali reviewed by: Johan Dahlin * gazpacho/loader/custom.py (ComboBoxAdapter): Handle ::active. * tests/glade/combobox.glade: Add a test. Fixes #315444