2003-09-07 Archit Baweja * configure.in: bumped version to 1.9.1. Peacock v1.9.1 released! * TODO: updated. * NEWS: likewise. * Makefile.am: include intltool-*.in utils in EXTRA_DIST. 2003-09-07 Archit Baweja * src/peacock-window.c (verb_FileOpen_cb): likewise check for return value of NULL from peacock_file_new and not add to MDI in case it is. * src/peacock-file-client.c (peacock_file_open): check for uri == NULL. returned by peacock_util_get_uri (in case of Cancel etc). New file is not opened then. 2003-09-06 Archit Baweja * src/peacock-file-client.c (peacock_file_close): new. (peacock_file_client_close_unsaved): new. * src/peacock-window.c (verb_FileClose_cb): implemented. * src/peacock-types.h: new file added. Bit of a header file circular dependency problem creeping up. This way it is tackled. * src/peacock-file-client.c (peacock_file_save_as): new. (peacock_file_client_update_tab_widget): new. (peacock_file_client_create_tab_widget): save pointer to GtkLabel. * src/peacock-window.c (verb_FileSaveAs_cb): implemented. 2003-09-05 Archit Baweja * src/peacock-file-client.c (peacock_file_save): new. (peacock_file_client_save): new. * src/peacock-window.c (verb_FileSave_cb): implemented. * src/peacock-file-client.c (peacock_file_open): new. (peacock_file_client_load): new. * src/peacock-window.c (verb_FileOpen_cb): implemented. * src/peacock-file-client.[ch]: new files added. Build files updated. (peacock_file_client_init): initialize a new PeacockFileClient struct. (peacock_file_client_free): free a PeacockFileClient struct. new. (peacock_file_new): new function. (peacock_file_client_create_tab_widget): new (peacock_file_client_tab_widget_close_clicked_cb): new. * src/peacock-window.c (verb_FileNew_cb): implemented. * src/peacock-ui.xml: changes to placeholders so GNOME_GtkHTML_Editor's merged menus show up in the right place. * src/peacock-mdi.c (peacock_mdi_add_file): changed to use PeacockFileClient. (peacock_mdi_remove_file): likewise. 2003-09-04 Archit Baweja * src/file/GNOME_Peacock_File.idl: new idl file. Initial IDL interface to the PeacockFile bonobo object. * src/peacock-utils.c (peacock_util_activate_bonobo_control): new. 2003-09-03 Archit Baweja * src/peacock-mdi.c (peacock_mdi_add_file): changed to reflect changes in code organisation. Manages BonoboControls. (peacock_mdi_get_current_view): removed. * Today I moved lots of stuff around. I'll briefly summarize the changes. Moved PeacockMDI code to peacock-2/src/ as well as PeacockWindow etc form peacock-2/src/shell/. * Moved PeacockFile and PeacockFileView code in peacock-2/src/file/. This will hopefully turn into a good BonoboControl. Till then we just use the GNOME_GtkHTML_Editor control. 2003-09-01 Archit Baweja * src/file-manager/peacock-mdi.c (peacock_mdi_remove_file): set the current_file correctly after a remove. * src/file-manager/peacock-mdi-control.c (peacock_mdi_control_file_loaded_cb): new callback. * src/file-manager/peacock-file.c (peacock_file_class_init): setup 2 new signals, "loaded" and "saved". (peacock_file_load_async_close_cb): emit "loaded" signal with result of operation. (peacock_file_save_async_close_cb): emit "saved" signal with result of operation. (peacock_file_close_post_saved_cb): new callback. Lets me get rid of ugly closed_unsaved_flag hack. 2003-08-31 Archit Baweja * src/html-toolbars/peacock-html-toolbars-control.c (peacock_html_toolbars_control_setup_event_source): removed. * src/file-manager/peacock-mdi-control.c (verb_EditCut_cb): show status messages. (verb_EditCopy_cb, verb_EditPaste_cb, verb_EditDelete_cb): likewise. * src/shell/peacock-shell-ui.xml: add the statusbar. * TODO: updated. * src/file-manager/peacock-mdi-control.c (verb_EditReplace_cb): impl. * src/file-manager/peacock-file-find-and-replace.c (peacock_file_find_and_replace_run): new function. (peacock_file_find_and_replace_dialog_setup): likewise. (peacock_file_find_and_replace_dialog_setup_signals): likewise. (peacock_file_find_and_replace_dialog_find_cb): likewise. (peacock_file_find_and_replace_dialog_replace_cb): likewise. (peacock_file_find_and_replace_dialog_replace_all_cb): likewise. (peacock_file_find_and_replace_dialog_cancel_cb): likewise. (peacock_file_find_and_replace_dialog_get_data): likewise. * src/file-manager/peacock-mdi-control.c (verb_EditFindAgain_cb): impl. * src/file-manager/peacock-file-find-and-replace.c (peacock_file_find_again_run): new function. 2003-08-30 Archit Baweja * src/file-manager/peacock-mdi-control.c (verb_EditFind_cb): impl. * src/file-manager/peacock-file.c (peacock_file_find_and_select): new function. * configure.in: check for libglade-2.0 minimum version 2.0.1 * src/file-manager/peacock-file-find-and-replace.[ch]: new files added. Build files updated. (peacock_file_find_run): new. (peacock_file_find_dialog_setup_signals): new. (peacock_file_find_dialog_setup): new. (peacock_file_find_dialog_cancel_cb): new. (peacock_file_find_dialog_find_cb): new. (peacock_file_find_dialog_get_data): new. * src/file-manager/peacock-file-utils.c (peacock_file_utils_glade_dialog_new): new. * src/file-manager/Makefile.am (INCLUDES): define GLADEDIR. * src/file-manager/dialogs/dialogs.glade: new .glade file dialogs. Build files updated. * src/file-manager/peacock-mdi.c (peacock_mdi_get_current_view): new. * TODO: new file. Thought I'd need one now (after I sent that email to gnome-love@gnome.org) 2003-08-27 Archit Baweja * src/file-manager/peacock-file.c (peacock_file_delete_selection): new. (peacock_file_cut_selection, peacock_file_copy_selection): likewise (peacock_file_paste_selection, peacock_file_select_all): likewise. (peacock_file_set_selection): new. Maybe I should send this for inclusion into the GtkTextBuffer API. * src/file-manager/peacock-mdi-control.c (verb_EditCut_cb): impl. (verb_EditCopy_cb, verb_EditPaste_cb, verb_EditDelete_cb ): likewise. (verb_EditSelectAll_cb): likewise. * src/file-manager/peacock-file.c (peacock_file_undo): new. (peacock_file_redo): likewise. * src/file-manager/peacock-mdi-control.c (verb_EditUndo_cb): new. (verb_EditRedo_cb): likewise. (verb_EditDelete_cb): new. (verb_EditClear_cb): renamed to verb_EditDelete_cb. * src/file-manager/peacock-mdi-ui.xml: add actions and menu/toolbar item definitions for Undo/Redo. Remove Close, Clear, Select All from toolbar definition. And generally make it more HIG-complaint. * src/file-manager/peacock-file-view.c (peacock_file_view_construct): set editable if not readonly else uneditable. * src/file-manager/peacock-file.c (peacock_file_init): initialize new member, gboolean readonly. 2003-08-26 Archit Baweja * src/file-manager/peacock-file.c (peacock_file_load_async_close_cb): set modified to FALSE. call gtk_sourcebuffer_end_not_undoable_action. (peacock_file_save_async_open_cb): use gtk_text_buffer_get_bounds to get start and end GtkTextIter's. (peacock_file_load_async_open_cb): call gtk_source_buffer_begin_not_undoable_action. * src/file-manager/peacock-file-view.c (peacock_file_view_tab_widget_close_clicked_cb): use peacock_file_close not peacock_mdi_remove_file. * src/file-manager/peacock-mdi-control.c (verb_FileClose_cb): impl. * src/file-manager/peacock-file-utils.c (peacock_file_utils_save_unsaved_response): new * src/file-manager/peacock-file.c (peacock_file_close): impl (peacock_file_close_unsaved): new function. Check for save before closing modified file. (peacock_file_is_modified): new. * src/file-manager/peacock-mdi.c (peacock_mdi_remove_file): impl. 2003-08-25 Archit Baweja * src/file-manager/peacock-file.c (peacock_file_save_as): return on Cancel from Save As dialog. Fixes "Save As Dialog Cancel" bug. * src/file-manager/peacock-file-view.c (peacock_file_view_get_file): new. * src/file-manager/peacock-mdi.c (peacock_mdi_switch_page_cb): new. Fixes bug. * src/file-manager/peacock-file-view.c (peacock_file_view_file_uri_changed_cb): update view's tab's label on emission of "uri-changed" for its PeacockFile. * src/file-manager/peacock-file.c (peacock_file_class_init): setup new "uri-changed" signal, emitted on "Save As". (peacock_file_set_uri): emit "uri_changed" signal at end. * src/file-manager/peacock-file-marshal.list: new signal marshaller input file. Build files updated. * src/file-manager/peacock-file-view.c (peacock_file_view_create_tab_widget): renamed from peacock_mdi_create_tab_widget. All callers changed. (peacock_file_view_get_tab_widget): supplements above. (peacock_file_view_tab_widget_close_closed_cb): new callback. 2003-08-21 Archit Baweja * src/file-manager/peacock-mdi-control.c (verb_FileSave_cb): impl. (verb_FileSaveAs_cb): impl. * src/file-manager/peacock-mdi.c (peacock_mdi_create_tab_widget_for_file): convinience function. Will add code to put a small "X" pixbuf, so user's can close that file from it. (peacock_mdi_raise_added_file_view): new function. This raises' the last added file, giving time for Gtk+ to draw the view, thats why its in a g_idle_add (). * src/file-manager/peacock-file.c (peacock_file_save): fix check for valid URI. (peacock_file_save_async_write_cb): use save_async_close_cb, not its load counterpart. Remnant of my cut-copy-paste code from load code. * src/file-manager/peacock-mdi.c (peacock_mdi_new): return the previous created PeacockMDI if one is there. * src/file-manager/Makefile.am (INCLUDES): add $(WARN_CFLAGS) so that we pass -Wall ets when compiling. * src/html-toolbars/Makefile.am (INCLUDES): likewise. * src/shell/Makefile.am (INCLUDES): likewise. 2003-08-19 Archit Baweja * src/file-manager/peacock-file-view.c (peacock_file_view_construct): show line numbers. (peacock_file_view_add_view): new. (peacock_file_view_construct): use above. 2003-08-18 Archit Baweja * src/file-manager/peacock-file.c (peacock_file_save): return void. (peacock_file_save_as): return void. We are using GnomeVFSAsync. (peacock_file_construct): new. * src/file-manager/peacock-file.c (peacock_file_get_uri): test for file->priv->uri == NULL. (peacock_file_set_uri): likewise so we can free old uri. (peacock_file_save, peacock_file_save_async, peacock_file_save_as, peacock_file_save_async_*_cb): new. * src/file-manager/peacock-file-utils.c (peacock_file_utils_show_ui_error): new. * src/file-manager/peacock-mdi.c (peacock_mdi_get_current_file): new. * src/file-manager/peacock-mdi-control.c (verb_FileNew_cb): impl. (verb_FileOpen_cb): likewise. 2003-08-16 Archit Baweja * src/file-manager/peacock-file-utils.[ch]: new files added. Build files updated. (peacock_file_utils_get_local_uri): new function. (peacock_file_utils_get_uri): likewise. 2003-08-13 Archit Baweja * src/file-manager/peacock-mdi.c (peacock_mdi_new): keep a global reference to the mdi object. (peacock_mdi_get): new function. * src/file-manager/peacock-file.c (peacock_file_[get/set]_uri): new. (peacock_file_new_from_uri): likwise. (peacock_file_load_async_*_cb): likewise. * src/file-manager/peacock-mdi.c (peacock_mdi_add_file): change calls to g_return_if_fail to g_return_*val*_if_fail. 2003-08-11 Archit Baweja * src/file-manager/peacock-mdi.c (peacock_mdi_add_file): new function. (peacock_mdi_remove_file): likewise. * src/file-manager/peacock-file.[ch]: new files added. Initial code for PeacockFile object. Build files updated. * src/file-manager/peacock-file-view.[ch]: new files added. Initial code for PeacockFileView widget. Build files updated. 2003-08-09 Archit Baweja * src/html-toolbars/peacock-html-toolbars-control.c (peacock_html_toolbars_control_setup_property_bag): new function. Sets up property bag from PeacockHTMLToolbars' properties. (peacock_html_toolbars_control_[get/set]_prop): new functions. * src/html-toolbars/peacock-tl.c (peacock_tl_add): use glib safe GUINT_TO_POINTER cast macro. (peacock_tl_[hide/show]_toolbar): iteration for-loop fixed and use glib safe GPOINTER_TO_UINT cast macro. * src/html-toolbars/tests/makefile.tests (gtk-test): optimizations OFF debug-ing symbols ON and binary output name change to htmlbar-test-gtk-container. 2003-08-06 Archit Baweja * src/html-toolbars/peacock-html-toolbars-control.c (peacock_html_toolbars_control_new_html_tag_ready_cb): grab the newly create html tag from the PeacockHTMLToolbars widget. new callback. * src/html-toolbars/peacock-html-toolbars.c: have an associative array of gbooleans for representing the visible state of the various toolbars. Makes the get/set prop code efficient (or easy for me the lazy hacker). * src/html-toolbars/peacock-tl.c (peacock_tl_add): accept an extra "toolbar_id" gint parameter, so the following functions work. (peacock_tl_[show/hide]_toolbar): new utility functions. * src/html-toolbars/peacock-html-toolbars.h (IS_PEACOCK_HTML_TOOLBARS): formerly mistyped as IS_PEACOCK_IS_HTML_TOOLBARS. 2003-07-30 Archit Baweja * src/html-toolbars/tests/makefile.tests: makefile for tests added. I wonder why I didn't go the regular Makefile.am way. * src/html-toolbars/tests/test-gtk-container.c: new Gtk tester for PeacockHTMLToolbars widget. 2003-07-29 Archit Baweja * src/html-toolbars/peacock-html-toolbars-marshal.list: new signal marshaller input file. Build files updated. * src/html-toolbars/peacock-html-toolbars.c (peacock_html_toolbars_init): initialize private data members. (peacock_html_toolbars_[get/set]_property): get/set properties. (peacock_html_toolbars_class_init): install signals and properties. * configure.in (LIBGNOMEUI_REQUIRED): bumped version requirement to 2.2.0. Same for LIBBONOBOUI_REQUIRED. 2003-07-25 Archit Baweja * src/html-toolbars/peacock-html-toolbars-control.[ch]: separating the bonobo stuff from the actual GtkWidget. Build files updated. 2003-07-24 Archit Baweja * src/shell/peacock-window.c (peacock_window_construct_contents): new function. We pack the PeacockHTMLToolbars and PeacockMDI controls (peacock_window_activate_contents): new functions. Explicitly activate each control. 2003-07-23 Archit Baweja * configure.in: build html-toolbars control too! * src/html-toolbars/icons/*.xpm: pixmaps copied verbatim from peacock-1 * src/html-toolbars/peacock-html-toolbars.[ch]: initial code for a bonobo control using PeacockTL. new. * src/html-toolbars/support.[ch]: support code for PeacockTL. new. * src/html-toolbars/GNOME_Peacock_HTML_Toolbars.server.in.in: new. * src/html-toolbars/peacock-tl.c (peacock_tl_add_from_array): new function. * src/file-manager/peacock-mdi-control.h: function prototype was missing parameters. Fixed. 2003-07-22 Archit Baweja * src/html-toolbars/peacock-tl.[ch]: initial code copied from peacock-1 for HTML toolbars. * src/shell/peacock-window.c (verb_HelpAbout_cb): display the logo. (peacock_window_delete_event_cb): delete_event handler added. * src/shell/Makefile.am: install rule for peacock-logo.png * peacock-logo.png: a temporary logo for the about dialog box. 2003-07-09 Archit Baweja * src/file-manager/peacock-mdi.c: new files added. Initial code for PeacockMDI. * src/shell/peacock-shell-ui.xml: add placeholder for Edit items in toolbar. * src/file-manager/peacock-mdi-control.c (verb_File*_cb): blank definition of verb callbacks added. (verb_Edit*_cb): likewise * src/shell/peacock-shell-ui.xml: remove 'delimit="top"' from menus. * src/shell/peacock-window.c (peacock_window_construct): explicitly activate BonoboControl's activate signal so that UI merging works. 2003-07-08 Archit Baweja * src/file-manager/peacock-mdi-control.c (peacock_mdi_control_load_ui): new function. * src/file-manager/peacock-mdi-ui.xml: new ui xml file. * src/file-manager/Makefile.am: install rules for peacock-mdi-ui.xml. Define UIXMLDIR too. * src/shell/peacock-window.c (peacock_window_construct): replaced call to test GtkWidget with call to PeacockMDI bonobo control. Its ALIVE! YAY! (peacock_window_construct): set default size of window to 400x300. (peacock_window_class_init): setup destructors. (peacock_window_destroy): new function. (peacock_window_finalize): likewise. * src/file-manager/Makefile.am: added rules to install .server file for control. 2003-07-07 Archit Baweja * src/file-manager/peacock-mdi-control.[ch]: new files added. Initial code for the bonobo layer to the PeacockMDI object. Build files added/updated accordingly. * src/file-manager/main.c: new file added. Initial code for Bonobo objects factory. * src/file-manager/Makefile.am: new build file for new directory. 2003-07-06 Archit Baweja * src/shell/peacock-window.h (IS_PEACOCK_WINDOW_CLASS): macro fix. (IS_PEACOCK_WINDOW_CLASS): likewise. * src/README: new file added. * src/shell/peacock-window.c (peacock_window_construct): give a unique name to the ui compnent of the main window. Just in case we need it later. * src/shell/Makefile.am: install rules for the peacock-shell-ui.xml. (INCLUDES): define DATADIR=/prefix/share/peacock-2, ICONDIR=DATADIR/icons, UIXMLDIR=DATADIR/ui, GLADEDIR=DATADIR/glade. 2003-07-05 Archit Baweja * src/shell/peacock-window.c (verb_HelpAbout_cb): fixed reshowing about dialog bug. (gtk_widget_destroy -> gtk_widget_destroyed) * src/shell/peacock-window.[ch]: new files added. * src/shell/main.c (main): peacock gnome 2 port started. new function.