=== 0.6.5 === 2006-01-27 Johan Dahlin * NEWS: * doc/release-howto.txt: * gazpacho/__init__.py: * po/ca.po: * po/es.po: * po/fi.po: * po/fr.po: * po/gl.po: * po/it.po: * po/pt_BR.po: * po/ru.po: * po/zh_CN.po: 0.6.5 2006-01-26 Johan Dahlin * gazpacho/app/app.py: * gazpacho/command.py: * gazpacho/project.py: * gazpacho/widgets/base/window.py: Add widgets to the workspace through signal callbacks. Only show the window after adding it to the project. 2006-01-26 Johan Dahlin * gazpacho/util.py (rebuild): Catch IOError exceptions in sys.stdout.flush. * gazpacho/command.py: * gazpacho/commandmanager.py: * tests/test_widget.py: Set a new name in cut if the name is already taken. Update paste command to return pasted widget. Verify that copy/paste and cut/paste keeps/updates the names of widgets properly. 2006-01-26 Johan Dahlin * gazpacho/command.py: * gazpacho/project.py: * gazpacho/widgets/base/button.py: * tests/test_widget.py: Fix 327849, do not always set the name in project.add_hidden_widget. Add add the child of a button to the project when loading it. 2006-01-26 Johan Dahlin * gazpacho/app/app.py: * gazpacho/clipboard.py: * gazpacho/command.py: * gazpacho/commandmanager.py: * gazpacho/context.py: * gazpacho/dndhandlers.py: * gazpacho/editor.py: * gazpacho/filewriter.py: * gazpacho/palette.py: * gazpacho/placeholder.py: * gazpacho/popup.py: * gazpacho/project.py: * gazpacho/properties.py: * gazpacho/signaleditor.py: * gazpacho/sizegroup.py: * gazpacho/sizegroupeditor.py: * gazpacho/uieditor.py: * gazpacho/uim.py: * gazpacho/uimstate.py: * gazpacho/util.py: * gazpacho/widget.py: * gazpacho/widgetadaptor.py: * gazpacho/widgets/base/bars.py: * gazpacho/widgets/base/base.py: * gazpacho/widgets/base/box.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/dialog.py: * gazpacho/widgets/base/fixed.py: * gazpacho/widgets/base/image.py: * gazpacho/widgets/base/notebook.py: * gazpacho/widgets/base/spinbutton.py: * gazpacho/widgets/base/table.py: * gazpacho/widgets/base/window.py: * gazpacho/widgetview.py: * tests/common.py: * tests/test_actioneditor.py: * tests/test_application.py: * tests/test_bars.py: * tests/test_box.py: * tests/test_button.py: * tests/test_clipboard.py: * tests/test_command.py: * tests/test_label.py: * tests/test_properties.py: * tests/test_property.py: * tests/test_radiobuttons.py: * tests/test_saveproperties.py: * tests/test_scrolledwindow.py: * tests/test_sizegroup.py: * tests/test_spinbutton.py: * tests/test_table.py: * tests/test_uim.py: * tests/test_widget.py: * tests/test_widgets.py: * tests/test_window.py: The big renaming. Widget -> Gadget. Doc strings/comments still needs updating 2006-01-25 Johan Dahlin * gazpacho/filewriter.py: * gazpacho/properties.py: Refactor property handling here. (PropRegistry.get_writable_properties): New function, lists all properties which we should write in a glade file 2006-01-24 Johan Dahlin * gazpacho/clipboard.py: * gazpacho/loader/custom.py: * gazpacho/project.py: * gazpacho/properties.py: * gazpacho/uim.py: * gazpacho/widget.py: * gazpacho/widgetadaptor.py: * gazpacho/widgets/base/bars.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/combobox.py: * gazpacho/widgets/base/image.py: * tests/test_uim.py: Do not save the loader in the project. Just acquire data from it and discard it after that. Move signal loading code from widget into the project. 2006-01-24 Johan Dahlin * gazpacho/loader/loader.py: * gazpacho/project.py: * gazpacho/widget.py: * gazpacho/widgetadaptor.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/dialog.py: * gazpacho/widgets/base/notebook.py: * tests/test_bars.py: * tests/test_box.py: * tests/test_button.py: * tests/test_widget.py: Start cleaning up naming. Remove old naming code from widget.py. GWidget.name is now just a proxy for GtkWidget::name. Do all the name logic inside the project. 2006-01-22 Johan Dahlin * gazpacho/loader/custom.py: * gazpacho/loader/loader.py: Make get_adapter() about 30% faster by saving a reference to the row and passing in a name (to avoid calling gobject.type_name) 2006-01-22 Johan Dahlin * gazpacho/filewriter.py (XMLWriter._write_properties): Don't sort properties until we know they're going to be written. 5% improvement of testsuite and 10% updating pachi.glade. * gazpacho/editor.py: Cache editor properties for each type. Can probably be made a bit more efficient. Makes the test suite go faster and will probably make the application a bit snappier too. 2006-01-21 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/app/app.py: * gazpacho/app/bars.py: * gazpacho/config.py: Update the recent project list when saving a project as well as opening it. When opening a project that is already in the list it is moved to the top. It's also possible to store more recent project entries than are displayed in the menu. Fixes #326668. 2006-01-21 Mattias Karlsson * gazpacho/command.py: Clear the selection after deleting a placeholder. Fixes #318601. 2006-01-21 Mattias Karlsson * gazpacho/command.py: Make sure the widget is selected after drag and drop. Fixes #326010. 2006-01-20 Mattias Karlsson * gazpacho/widget.py: * tests/test_widget.py: Update the name of the gtk_widget as well as the gazpacho widget when copying. Fixes #327973. 2006-01-21 Johan Dahlin * gazpacho/app/bars.py Do not always invalidate the whole cache, instead add and remove stuff from it as needed. 2006-01-18 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/command.py: * tests/test_command.py: Don't destroy the placeholder when it's deleted. We need it for undo/redo. Fixes #327115. 2006-01-19 Johan Dahlin * gazpacho/main.py (launch): Add a --show option, to preview the constructed interface 2006-01-15 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/project.py: * gazpacho/widget.py: * tests/test_widget.py: * tests/test_widgets.py: Do not load internal widgets when we're opening the project. Also set the name unconditionally in guess_name. Enable to skipped tests. 2006-01-17 Johan Dahlin * gazpacho/loader/loader.py (ObjectBuilder._find_internal_child): Set the real name of the widget * tests/test_loader.py (InternalChildTest.testDialog): Add test for this * gazpacho/command.py: * gazpacho/commandmanager.py: * gazpacho/filewriter.py: * gazpacho/project.py: * gazpacho/util.py: * gazpacho/widgets/base/button.py: * tests/test_button.py: Set unique child names for all "hidden" widgets, eg images in GtkButtons. 2006-01-17 Johan Dahlin * gazpacho/app/app.py: * gazpacho/editor.py: * gazpacho/project.py: * gazpacho/uim.py: * gazpacho/widgetview.py: * tests/test_button.py: Store project widgets in a hash table instead of a list. Make it private and update callsites. 2006-01-15 Mattias Karlsson reviewed by: Johan Dahlin * gazpacho/command.py: * gazpacho/commandmanager.py: * gazpacho/dndhandlers.py: * gazpacho/widget.py: It's now possible to do dnd extend/append from the palette. 2006-01-15 Gustavo J. A. M. Carneiro reviewed by: Johan Dahlin * gazpacho/library.py (PythonLibrary._get_adaptor_class): Fallback to using a generic adaptor if the library doesn't provide one. (PythonLibrary.__init__): Don't require a 'root_library' symbol from the library, which is not even used anywhere. Fixes #327071 2006-01-15 Johan Dahlin * gazpacho/app/app.py: * gazpacho/app/bars.py: * gazpacho/project.py: * gazpacho/widgetadaptor.py: * gazpacho/widgets/base/window.py: * gazpacho/widgetview.py: * gazpacho/workspace.py: * tools/pylint.sh: Add a workspace widget based on Havoc Penningtons proof of concept. Disable it by default since there are still some issues. Fixes bug #326989 2006-01-15 Johan Dahlin * gazpacho/widgets/base/dialog.py (DialogAdaptor): Cleanups, inherit from WindowAdapter and create placeholders in fill_empty. 2006-01-14 Gustavo J. A. M. Carneiro reviewed by: Johan Dahlin * gazpacho/library.py (PythonLibrary.__init__): Remove requirement for unused root_library module attribute. Really use library_name, if not empty, fallback to use name as before otherwise. Try to load standalone if loading gazpacho.widgets. fails. (PythonLibrary._get_adaptor_class): 'return' after 'raise' is redundant, remove. * gazpacho/widgetadaptor.py (create_pixbuf): Don't try to load pixbuf when the file path is None. Fixes #316574 2006-01-14 Johan Dahlin * gazpacho/widget.py (Widget.create_gtk_widget): * gazpacho/widgetadaptor.py (WidgetAdaptor.create): Add widgetadapter.create() * gazpacho/app/bars.py (MAIN_UI_STRING): Remove delete, not really necessary as a toolbar icon. (BarManager.build_interfaces): Hide text in toolbar, only display icons, saves space. 2006-01-13 Johan Dahlin * pixmaps/both.png: * gazpacho/app/app.py: * gazpacho/constants.py: * gazpacho/uimstate.py: Make both.png transparent and use it as a stock icon for adding a stock icon. 2006-01-13 Johan Dahlin * po/es.po: * po/gl.po: Updated spanish and galician translation (Rafael Villar Burke) * gazpacho/uim.py: * gazpacho/widgets/base/bars.py: Do not translate actions, fixes #318528 2006-01-12 Johan Dahlin * gazpacho/loader/loader.py: * gazpacho/widgets/base/base.py: * tests/glade/button.glade: * tests/glade/combobox.glade: * tests/glade/custom.glade: * tests/glade/dialog.glade: * tests/glade/notebook.glade: * tests/glade/radiobutton.glade: * tests/glade/scrolledwindow.glade: * tests/glade/sizegroup.glade: * tests/glade/spinbutton.glade: * tests/glade/table.glade: * tests/glade/uimanager.glade: * tests/test_loader.py: * tests/test_saveproperties.py: * tests/test_widgets.py: Make widgets visible by default. Fixes #326724 Update all tests (whew!) 2006-01-12 Johan Dahlin * gazpacho/signaleditor.py: (SignalEditor._treeview_row_activated_cb): Add signal-activated signal for Ali. Fix a minor bug too. * gazpacho/filewriter.py: * gazpacho/loader/tags.py: * gazpacho/signaleditor.py: * gazpacho/widget.py: Add object support to the signal editor. Fixes #311649 2006-01-12 Johan Dahlin * gazpacho/filewriter.py: * gazpacho/signaleditor.py: * gazpacho/widget.py: * tests/test_command.py: * tools/pylint.sh: Refactor model usage in signaleditor. Make widget.signals private. 2006-01-12 Johan Dahlin * gazpacho/loader/loader.py: * gazpacho/uim.py: * tests/glade/uimanager-windowless.glade: * tests/glade/uimanager.glade: * tests/test_loader.py: * tests/test_uim.py: Do not recreate UIManager widgets, use more information from the loader, such as merge_id. Add tests for this and rename the old test. Fixes #315625 2006-01-11 Johan Dahlin * gazpacho/filewriter.py: * gazpacho/gaction.py: * gazpacho/loader/tags.py: * gazpacho/project.py: * gazpacho/uim.py: * tests/glade/uimanager.glade: * tests/test_uim.glade: * tests/uimanager-example.glade: Save actions even if there are no widgets. Fixes #314098. Add a new glade test for this. Make the name of the uimanager persistent. Save actions using instead of 2006-01-11 Johan Dahlin * gazpacho/app/app.py: * gazpacho/commandmanager.py: * gazpacho/filewriter.py: * gazpacho/loader/compat.py: * gazpacho/loader/custom.py: * gazpacho/loader/proxy.py: * gazpacho/palette.py: * gazpacho/properties.py: * gazpacho/signaleditor.py: * gazpacho/sizegroupeditor.py: * gazpacho/uieditor.py: * gazpacho/uim.py: * gazpacho/uimstate.py: * gazpacho/util.py: * gazpacho/widget.py: * gazpacho/widgets/base/base.py: * gazpacho/widgets/base/button.py: * gazpacho/widgets/base/dialog.py: * gazpacho/widgets/base/image.py: * gazpacho/widgetview.py: Pylint fixes for indentation, tabs, multiple statements on the same line, word wraps. 2006-01-10 Lorenzo Gil Sanchez * gazpacho/widget.py (load_widget_from_gtk_widget): the loader is not used in this function (Widget.setup_internal_widget): save the name in the internal widget so when it is selected the 'name' property is shown correctly.