1.20.0 (stable): 2011-11-20 Murray Cumming Details View: Left-align numbers when using automatic alignment. * glom/libglom/data_structure/layout/layoutitem_field.[h|cc]: * glom/libglom/data_structure/layout/layoutitem_withformatting.[h|cc]: get_formatting_used_horizontal_alignment(): Add a for_details_view() and return left-alignment for auto-alignment on a details view. * glom/mode_data/datawidget/entry.cc: * glom/utility_widgets/layoutwidgetbase.cc: Pass true to get that effect. Right-aligned numbers on the detailed view just look sillier now that the entry widgets are full width, and when there are no other numbers above or below them. Note that we probably did not purposefully change it show numbers with full width, but I would still want this alignment change. 2011-11-18 Murray Cumming Recognize GdaBlob as suitable for Image field types. * glom/libglom/data_structure/field.cc: Add to the map, to avoid a warning. 2011-11-18 Murray Cumming Fix the build with latest GTK+ with --enable-warnings=fatal * glom/utility_widgets/eggspreadtable/eggspreadtablednd.c (set_drag_icon): Update from libegg to fix the build with deprecated GTK+ API disabled. 2011-11-18 Murray Cumming Details: Move the checkbutton titles to the left. * glom/mode_data/datawidget/checkbutton.h: Contructor: Allow the title to be empty. * glom/mode_data/datawidget/datawidget.cc: Give the checkbutton a title at the left, like other widgets. This looks consistent. 2011-11-17 Murray Cumming Update an example screenshot. * docs/website/screenshots/glom_example_lessonplanner.png: Update this now that the calendar portal works again. * docs/website/screenshots/glom_select_field.png: Remove this because it is not used. 2011-11-17 Murray Cumming date test: Set LANGUAGE too, which seems to be necessary on Ubuntu. * tests/test_glom_date_in_locales.sh: Also add some locales that are available on Ubuntu. 2011-11-17 Murray Cumming main: Break the date check into two possible error messages. * glom/main.cc: This simplifies debugging a bit. 2011-11-16 Murray Cumming Enable the test for dates in various locales. * Makefile_tests.am: * tests/test_glom_date_in_locales.sh: I don't like requiring installation of these locales during make check, but I see no other way to stop the fixes from being lost by careless translators, at least of the major languages. 2011-11-16 Murray Cumming List view: Stop unnecessary saving of column widths. * glom/mode_data/db_adddel/db_adddel.[h|cc]: Do not handle changes of the GtkTreeView column width, because it happens during normal size allocation as well as when the user resizes columns. It is not essential anyway. 2011-11-16 Murray Cumming Make the Calendar portal work again. * glom/mode_data/box_data_calendar_related.[h|cc]: Override create_layout() as a place to call our get_fields_to_show(), like Box_Data_List_Related does. Then fill_from_database() can succeed. Bug #663310 2011-11-14 Murray Cumming Fake connection test: Test for a substring in the generated query. * tests/test_fake_connection.cc: This also fixes the build with -Werror. 2011-11-13 Murray Cumming Use the new Gnome::Gda::Numeric API. * glom/libglom/data_structure/glomconversions.cc: * glom/libglom/python_embed/pygdavalue_conversions.cc: * tests/python/test_python_execute_func_date.cc: GdaNumeric now has a real API so we can make our code simpler. 2011-11-11 Murray Cumming List view and Related Records: Disable buttons when appropriate. * glom/mode_data/db_adddel/db_adddel.[h|cc]: Handle the Gtk::TreeView::Selection::signal_changed() signal and call a new virtual on_selection_changed() method. * glom/mode_data/db_adddel/db_adddel_withbuttons.[h|cc]: Disable the Edit/Open and Delete buttons when there is no selection. Bug #663812 (André Klapper) 2011-11-10 Murray Cumming Correct an error in the previous commit. * glom/libglom/connectionpool.cc: Remove a nonsense line of code that stopped connections from working. 2011-11-10 Murray Cumming Added ConnectionPool::set_fake_connection(). * glom/libglom/connectionpool_backends/backend.h: connect(): * glom/libglom/connectionpool_backends/postgres.[h|cc]: connect(), attempt_connect(): * glom/libglom/connectionpool_backends/postgres_central.[h|cc]: connect(): * glom/libglom/connectionpool_backends/postgres_self.[h|cc]: connect(): * glom/libglom/connectionpool_backends/sqlite.[h|cc]: connect(): Add a bool fake_connection parameter and use Gnome::Gda::create_with_string() instead of open_with_string() if it is true. * glom/libglom/connectionpool.[h|cc]: Add set_fake_connection() to set that bool and other things needed to make it work. * Makefile_tests.am: * tests/test_fake_connection.cc: Added a test that uses this for the intended purpose of getting a suitable SQL query string without an open connection. However, it does not currently work as expected due to: http://mail.gnome.org/archives/gnome-db-list/2011-November/msg00007.html 2011-11-10 Murray Cumming Escape database connection details properly. * glom/libglom/db_utils.[h|cc]: Added gda_cnc_string_encode() for use with GdaConnection's cnc_string and auth_string, for instance to escape the database directory, name, username, and password. * glom/libglom/connectionpool_backends/postgres.cc: * glom/libglom/connectionpool_backends/postgres_self.cc: * glom/libglom/connectionpool_backends/sqlite.cc: Properly escape the cnc_string and auth_string key values. * tests/test_selfhosting_utils.cc: test_create_and_selfhost_from_example(), test_create_and_selfhost_from_uri(): Add an optional subdirectory parameter that we can use to force weird parts into the path. * Makefile_tests.am: * tests/test_selfhosting_new_from_example_strangepath.cc: Add a test case that uses a path with some weird characters. This now works thanks to the above changes. 2011-11-09 Murray Cumming Use Glib::shell_quote() when spawning tar. * glom/libglom/document/document.cc: Use Glib::shell_quote() when spawning tar, instead of manually adding quotes. 2011-11-09 Murray Cumming PostgreSQL backend: Use g_shell_quote(). * glom/libglom/connectionpool_backends/postgres.[h|cc]: get_path_to_postgres_executable(): Return the already-quoted path to avoid the need for manual quoting by the caller. However, make this optional (but the default) so that the check in * main.cc: can still work. * glom/libglom/connectionpool_backends/postgres_self.cc: Use Glib::shell_quote() instead of manually adding quote characters. Hopefully this also escapes special characters, though we should try to test this somehow. 2011-11-08 Murray Cumming Avoid some repetition of some CREATE GROUP and ALTER GROUP queries. * glom/libglom/db_utils.[h|cc]: Added build_query_create_group() and build_query_add_user_to_group() to avoid repeating the code. * glom/base_db.cc: * glom/mode_design/users/dialog_groups_list.cc: * glom/mode_design/users/dialog_users_list.cc: Use them.