1.7.2: 2008-09-13 Murray Cumming * configure.in: Increase the required goocanvasmm version, so we get the grid lines. 2008-09-12 Murray Cumming * po/POTFILES.in: Mention a new file. 2008-09-09 Armin Burgmeier * glom/libglom/connectionpool.cc: Implemented check_user_is_not_root() for Windows, using some code from postgresql. 2008-09-09 Armin Burgmeier * glom/libglom/spawn_with_feedback.cc: Refactored the code, removed all blocking calls and use the CreateProcess() API on Windows to hide the console window of child processes. * glom/libglom/connectionpool.cc: Always call the spawn API with double quotes for the path to the executable, because CreateProcess() does not support single quotes. 2008-09-06 Murray Cumming * glom/mode_data/dialog_layout_details.cc: * glom/mode_data/dialog_layout_details.h: * glom/mode_data/dialog_layout_list.cc: Add a column for the column width, but only show it for the list. Also hide the columns count column for the list. * glom/libglom/document/document_glom.cc: load_after_layout_group(), Glom.save_before_layout_group(): Save the column widths for items in the document. * glom/mode_data/dialog_layout_list_related.cc: * glom/mode_data/dialog_layout_list_related.h: Remove one set_document() method overload, adding the parent_table to the existing one, to simplify code and to allow us to preserve LayoutItem_Portal details such as print layout positions, even when no relationship is chosen yet. * glom/mode_data/box_data_list_related.cc: Adapted. * glom/mode_design/print_layouts/canvas_print_layout.cc: Adapted. * glom/mode_design/print_layouts/canvas_layout_item.cc: create_item(): For the portal, create a rect cell for each field in the layout. Still not very useful, but gradually becoming more sensible. * glom/utility_widgets/db_adddel/db_adddel.cc: on_treeview_column_resized(): Do not save the column width if it is the last column because that autosizes to take all remaining space. * glom/mode_data/box_data_list.cc: * glom/mode_data/box_data_list.h: Remove the reset_column_widths stuff, because ignoring the last column is a better fix. 2008-09-05 Murray Cumming * glom/mode_data/box_data_calendar_related.cc: * glom/mode_data/box_data_calendar_related.h: * glom/mode_data/box_data_list_related.cc: * glom/mode_data/box_data_list_related.h: * glom/mode_data/box_data_portal.cc: * glom/mode_data/box_data_portal.h: Added init_db_details() method overloads that take a parent table instead of a portal, to use when no relationship has been chosen yet. * glom/mode_data/dialog_layout_calendar_related.cc: * glom/mode_data/dialog_layout_calendar_related.h: Added set_document() that takes a table instead of a portal, as the other portal layout dialogs do already. * glom/mode_data/flowtablewithfields.cc: Specify a from table name instead of a portal when no relationship has been chosen yet. * glom/mode_data/dialog_layout_list_related.cc: Cope with a a null portal, so the user can choose the relationship on this dialog without choosing the relationship separately first. * glom/mode_data/dialog_layout_details.cc: Do not ask for the relationship whenever adding a portal. * glom/libglom/utils.cc: * glom/libglom/utils.h: Added show_window_until_hide(). * glom/mode_design/print_layouts/canvas_print_layout.cc: * glom/mode_design/print_layouts/canvas_print_layout.h: Block when showing the layout dialog for a portal. 2008-09-03 Murray Cumming * glom/libglom/data_structure/layout/layoutitem_portal.cc * glom/libglom/data_structure/layout/layoutitem_portal.h: Added get/set_print_layout_row_height(). * glom/mode_data/dialog_layout_list_related.cc * glom/mode_data/dialog_layout_list_related.h: Added a set_document() that takes the from_table, instead of an existing portal. * glom/mode_design/print_layouts/canvas_layout_item.cc: set_layout_item(): Slightly more sane code, though I'm still just playing. * glom/mode_design/print_layouts/canvas_print_layout.h: * glom/mode_design/print_layouts/canvas_print_layout.cc Added offer_related_records(), used in on_context_menu_edit(). Still needs to block on the dialog show. 2008-08-28 Johannes Schmid * glom/application.cc: Remeber state of layout toolbar when switching modes 2008-08-28 Johannes Schmid * glom/application.cc: * glom/mode_data/box_data_details.cc: * glom/mode_data/notebook_data.cc: Correctly unset the menu item when layout toolbar is shown and don't hide layout toolbar when an item is dragged * glom/mode_design/print_layouts/window_print_layout_edit.cc: (on_canvas_drag_drop, on_canvas_drag_motion) Fixed build error with gtkmm 2.12 (const_cast, see comment) 2008-08-27 Murray Cumming * glom/base_db.cc offer_field_list(), offer_field_formatting(), offer_imageobject(), offer_notebook(): Return the initial item if the user cancelled the dialog. 2008-08-27 Murray Cumming * glom/mode_design/print_layouts/print_layout_toolbar_button.cc: * glom/mode_design/print_layouts/print_layout_toolbar_button.h: Added get_item_type_from_selection_data(). * glom/mode_design/print_layouts/window_print_layout_edit.cc: create_empty_item(): Mention unhandled items on std::cerr. on_toolbar_item_drag_data_get(): Get the item type correctly. * glom/mode_design/print_layouts/canvas_layout_item.cc: set_layout_item(): Do not reference an empty layout item. 2008-08-27 Murray Cumming * glom/mode_design/print_layouts/action_layout_item.cc: * glom/mode_design/print_layouts/action_layout_item.h: Removed this. * glom/mode_design/print_layouts/Makefile.am: * glom/mode_design/print_layouts/print_layout_toolbar.cc: * glom/mode_design/print_layouts/print_layout_toolbar.h: * glom/mode_design/print_layouts/print_layout_toolbar_button.cc: * glom/mode_design/print_layouts/print_layout_toolbar_button.h: * glom/mode_design/print_layouts/window_print_layout_edit.cc: * glom/mode_design/print_layouts/window_print_layout_edit.h: Use a toolbar like the details layout toolbar, which use EggToolPallette. * glom/utility_widgets/layouttoolbar.cc: * glom/utility_widgets/layouttoolbarbutton.cc: * glom/utility_widgets/layouttoolbarbutton.h: Use std::string for filenames and parts of filenames. * icons/16x16/Makefile.am: Added placeholder images for extra items used on print layouts. 2008-08-27 Murray Cumming * glom/utility_widgets/layouttoolbarbutton.cc: * glom/utility_widgets/layouttoolbarbutton.h: Change the constructor to take an icon name, to reduce some code elsewhere. * glom/utility_widgets/layouttoolbar.cc: Adapted. * glom/mode_data/box_data_details.cc: * glom/utility_widgets/flowtable_dnd.cc: * glom/utility_widgets/flowtable_dnd.h: Correct whitespace. 2008-08-27 Murray Cumming * glom/utility_widgets/layouttoolbar.cc: Improve the tooltips text. * glom/utility_widgets/layouttoolbar.h: * po/POTFILES.in: Mention renamed files. 2008-08-24 Armin Burgmeier * glom/libglom/spawn_with_feedback.cc (execute_command_line_and_wait_until_second_command_returns_success): Set the encoding of the IO channel to read stderr from the child process from to "", and set it to be unbuffered. Otherwise, we sometimes receive an IO_IN event on Windows, but when trying to read any data, then the read() call blocks the whole process forever. 2008-08-23 Armin Burgmeier * glom/utility_widgets/layouttoolbar.cc: Locate images relative to application executable on Windows. * win32/build_installer: * win32/glom.iss.in: Added pixmaps to the installer. 2008-08-22 Johannes Schmid * glom/mode_data/box_data_details.h: * glom/utility_widgets/Makefile.am: * glom/utility_widgets/dragbar.cc (renamed): * glom/utility_widgets/dragbar.h (renamed): * glom/utility_widgets/dragbutton.cc (renamed): * glom/utility_widgets/dragbutton.h (renamed): * glom/utility_widgets/flowtable_dnd.cc: * glom/utility_widgets/layouttoolbar.cc (new): * glom/utility_widgets/layouttoolbar.h (new): * glom/utility_widgets/layouttoolbarbutton.cc (new): * glom/utility_widgets/layouttoolbarbutton.h (new): Changed names of DragBar to LayoutToolbar and DragButton to LayouttoolbarButton 2008-08-22 Armin Burgmeier * glom/libglom/connectionpool.cc (discover_first_free_port): Print WinSock error code in case the socket() call fails, since socket errors are not reported via errno on Windows, so perror does not yield a useful error message. * glom/main.cc: Initialize WinSock at startup, so that discover_first_free_port() can use the socket API. 2008-08-22 Johannes Schmid * glom/application.cc: * glom/application.h: * glom/frame_glom.cc: * glom/frame_glom.h: * glom/mode_data/box_data_details.cc: * glom/mode_data/box_data_details.h: * glom/mode_data/notebook_data.cc: * glom/mode_data/notebook_data.h: Added menuitem to hide/show the layout toolbar (default: off) * glom/utility_widgets/dragbutton.h: Added a comment 2008-08-20 Murray Cumming * glom/utility_widgets/dragbar.cc: * glom/utility_widgets/dragbutton.cc: * glom/utility_widgets/dragbutton.h: Whitespace corrections. Pass strings as const&. Added a TODO asking for explanation. This needs to be renamed to something more layout-editing specific. Maybe LayoutToolbar and LayoutToolbarButton. 2008-08-20 Johannes Schmid * glom/utility_widgets/dragbar.cc: * glom/utility_widgets/dragbutton.cc: * glom/utility_widgets/dragbutton.h: Added labels to the toolitems * glom/utility_widgets/egg/toolpalette/eggtoolpalette.c (egg_tool_palette_set_style): Fixed a bug in eggtoolpalette ("toolbar-style" vs. "style). Also fixed in libegg trunk. * glom/utility_widgets/sidebar.cc: Use GTK_TOOLBAR_BOTH_HORIZ as toolbar style. (Does only work with gtk+ >= 2.14) 2008-08-20 Johannes Schmid * glom/utility_widgets/dragbar.cc: * glom/utility_widgets/dragbutton.cc: * glom/utility_widgets/dragbutton.h: Added tooltips to toolitems 2008-08-19 Murray Cumming * glom/utility_widgets/egg/toolpalette/eggtoolitemgroup.c: * glom/utility_widgets/egg/toolpalette/eggtoolitemgroup.h: * glom/utility_widgets/egg/toolpalette/eggtoolpalette.c: * glom/utility_widgets/egg/toolpalette/eggtoolpalette.h: * glom/utility_widgets/egg/toolpalette/eggtoolpaletteprivate.h: * glom/utility_widgets/egg/toolpalette/testtoolpalette.c: Updated from libegg. * glom/utility_widgets/sidebar.cc: * glom/utility_widgets/sidebar.h: Fixed the whitespace. set_drag_source(): Added the extra parameter for the call to egg_tool_palette_set_drag_source(). 2008-08-15 Armin Burgmeier * win32/build_installer: * win32/glom.iss.in: We use self-built postgresql binaries again, so we don't need to ship all the libraries the official ones are built against. 2008-08-12 Armin Burgmeier * win32/build_installer: Take a revision number as argument, producing for instance glom-setup-1.7.1-2.exe. * win32/glom.iss.in: Hide the components page, since all components are fixed anyway. * README: Added some general information on how the installer is built. 2008-08-12 Murray Cumming * glom/libglom/utils.cc: * glom/libglom/utils.h: show_help() Add a note that this is a replacement for gnome_help_display() until we have something in GTK+. 2008-08-11 Armin Burgmeier * win32/build_installer: * win32/glom.iss.in: Added libeay32.dll and ssleay32.dll to the installer. These seem to be required for libpq.dll, which is in turn required by the libgda postgres provider. 2008-08-05 Armin Burgmeier * win32/build-installer: * win32/glom.iss.in: * win32/querymodules.bat: Updated to fit my new build setup. 2008-08-05 Armin Burgmeier * glom/dialog_existing_or_new.cc: Changed the path where the example files are looked up on Windows, to keep it consistent with the path to load glade files from. 2008-08-01 Claude Paroz * glom/glom.glade: Removed translatable property from stock labels. 2008-07-23 Armin Burgmeier * glom/existing_or_new.h: * glom/existing_or_new.cc: Hide the network item on Windows in the initial dialog. 2008-07-23 Armin Burgmeier * glom/glom.glade: Removed the image from the Select button in the initial dialog. * glom/dialog_existing_or_new.cc: Add the image in the Code, via Gtk::Button::set_image. This way the image is not shown when the theme doesn't show images on buttons, such as the MS-Windows theme. 2008-07-21 Armin Burgmeier * glom/main.cc: #ifdef out the atexit() call on Windows since __libc_freeres() is not available there. 2008-07-20 Armin Burgmeier * glom/application.cc (offer_new_or_existing): Fixed the non-client-only build. There was a default: marker in a switch statement with no code after it. 2008-07-20 Armin Burgmeier * glom/libglom/connectionpool.cc: Windows build fix: winsock2.h somehow includes a file that defines a structure called DATADIR, but DATADIR is a define glom uses, which breaks the build. Fixed by #undefining DATADIR for that include. 2008-07-20 Armin Burgmeier * glom/Makefile.am: Added glom.rc to the distribution, which is required to build Glom on Windows. 2008-07-19 Johannes Schmid * glom/dialog_existing_or_new.cc: * glom/dialog_existing_or_new.h: Don't show "Create database" tab for client only mode 2008-07-17 Johannes Schmid * glom/application.cc: * glom/application.h: * glom/frame_glom.cc: * glom/frame_glom.h: * glom/layout_item_dialogs/dialog_buttonscript.h: * glom/mode_data/box_data_calendar_related.cc: * glom/mode_data/box_data_details.cc: * glom/mode_data/flowtablewithfields.cc: * glom/mode_data/flowtablewithfields.h: * glom/utility_widgets/buttonglom.cc: * glom/utility_widgets/buttonglom.h: * glom/utility_widgets/labelglom.cc: * glom/utility_widgets/labelglom.h: * glom/utility_widgets/layoutwidgetbase.cc: * glom/utility_widgets/layoutwidgetutils.cc: * glom/utility_widgets/layoutwidgetutils.h: * glom/utility_widgets/notebookglom.cc: Fixed build with GLOM_ENABLE_CLIENT_ONLY * glom/main.cc: Allow to pass arguments to Gtk+ like --g-fatal-warnings. Glom did filter those as invalid arguments before