1. 23 Feb, 2012 2 commits
  2. 22 Feb, 2012 3 commits
    • Murray Cumming's avatar
      List View: Make print layouts grayed-out if no record is selected. · d099b68c
      Murray Cumming authored
      * glom/mode_data/db_adddel/db_adddel.[h|cc]:
      Add signal_record_selection_changed and emit it when the TreeView's selection
      changes:
      * glom/mode_data/db_adddel/db_adddel_withbuttons.cc: Make sure that we call
      the base class.
      * glom/mode_data/box_data_manyrecords.[h|cc]:
      Added signal_record_selection_changed.
      * glom/mode_data/box_data_list.[h|cc]: Handle the AddDel_DB's
      signal_record_selection_changed, emitting our own
      signal_record_selection_changed.
      * glom/mode_data/notebook_data.[h|cc]: Handle the Box_Data_List's
      signal_record_selection_changed, emitting our own
      signal_record_selection_changed.
      I still do not like the repetition that is required here, and elsewhere,
      when a child widget needs to signal all the way up an ownership hierarchy.
      
      * glom/appwindow.[h|cc]: Add enable_menu_print_layouts_details().
      * glom/frame_glom.[h|cc]: Handle the Notebook_Data's
      signal_record_selection_changed(), calling the AppWindow's
      enable_menu_print_layouts_details().
      d099b68c
    • Murray Cumming's avatar
      Fix typo in comment. · ed87c864
      Murray Cumming authored
      ed87c864
    • Murray Cumming's avatar
      Allow printing of print layouts from the list view. · e1a54b03
      Murray Cumming authored
      * glom/appwindow.cc: fill_menu_print_layouts(): Show the print layouts
      even if the list view is visible.
      * glom/mode_data/notebook_data.[h|cc]:
      get_found_set_details(): Replace with get_found_set_selected()
      which checks the selected record in the list view, if the list
      view is visible, instead of just the details view.
      * glom/frame_glom.[h|cc]: Remove get_viewing_details().
      do_print_layout(): Use get_found_set_selected() so we can print the
      print layout for the selected record.
      
      This avoids some confusion caused by the print layouts not being available
      when viewing the list instead of the details.
      Bug #670462 (alien)
      e1a54b03
  3. 19 Feb, 2012 3 commits
  4. 17 Feb, 2012 1 commit
  5. 16 Feb, 2012 3 commits
  6. 13 Feb, 2012 5 commits
  7. 09 Feb, 2012 1 commit
  8. 08 Feb, 2012 2 commits
  9. 06 Feb, 2012 1 commit
  10. 05 Feb, 2012 1 commit
    • Murray Cumming's avatar
      Button scripts and Field Calculations: Test button: Check for pygtk2. · 42ab9898
      Murray Cumming authored
      * glom/mode_data/box_data.cc: :execute_button_script(): Move the
      warning UI into
      * glom/utils_ui.[h|cc]: a new script_check_for_pygtk2_with_warning()
      method.
      * glom/mode_design/fields/dialog_fieldcalculation.cc: on_button_test():
      * glom/mode_design/layout/layout_item_dialogs/dialog_buttonscript.cc:
      on_button_test_script(): Use the new function here.
      42ab9898
  11. 03 Feb, 2012 12 commits
    • Marek Černocký's avatar
      Updated Czech translation · e9334643
      Marek Černocký authored
      e9334643
    • Daniel Mustieles García's avatar
      Updated Spanish translation · 90f6398d
      Daniel Mustieles García authored
      90f6398d
    • Murray Cumming's avatar
      Button scripts: Check and warn about pygtk2 instead of crashing. · 6b5f2993
      Murray Cumming authored
      * glom/libglom/utils.[h|cc]: Add script_check_for_pygtk().
      * Makefile_tests.am:
      * tests/test_script_check_for_problems.cc: Add a test for the check
      function.
      * glom/mode_data/box_data.cc: execute_button_script(): Show a
      warning dialog, and do not run the script, if it seems to use pygtk.
      This should help with but #669196 (alien) and ##661766 (Andre Klapper) .
      6b5f2993
    • Murray Cumming's avatar
      Minor formatting changes · d1a3988b
      Murray Cumming authored
      d1a3988b
    • Murray Cumming's avatar
      ReportBuilder: Add error checking. · 253cb851
      Murray Cumming authored
      * glom/libglom/report_builder.[h|cc]: Return bool
      from the private methods and check those results.
      253cb851
    • Murray Cumming's avatar
      Reports: Make summary fields work again. · f0c2ed90
      Murray Cumming authored
      * glom/libglom/report_builder.cc: report_build_summary():
      Remove any sort clause (ORDER BY) from the FoundSet because that makes
      no sense for a single row with summary fields. It looks like recent versions
      of PostgreSQL have become more strict about this, producing this error, for
      instance:
      column invoices.invoice_id must appear in the GROUP BY clause or be used in an aggregate function
      * Makefile_tests.am:
      * tests/test_selfhosting_new_then_report_summary.cc: Add a test for this.
      This fixes bug #669281 (alien)
      f0c2ed90
    • Murray Cumming's avatar
      Remove debug output. · b5f94ac9
      Murray Cumming authored
      b5f94ac9
    • Murray Cumming's avatar
      Fix more group privileges · e959f511
      Murray Cumming authored
      e959f511
    • Murray Cumming's avatar
      Document: Really load the table privileges. · 694bc016
      Murray Cumming authored
      	* glom/libglom/db_utils.[h|cc]: add_group(): Take a bool superuser
      	parameter.
      	add_groups_from_document(): Use add_group() instead of executing
      	the ADD GROUP query directly, to make sure that we also start
      	with some sane table privileges defaults, in case nothing else
      	sets the privielges.
      	* glom/libglom/document/document.cc: load_after(): Fix a typo
      	so that the group privileges are really loaded (and then
      	saved again instead of being lost).
      	* examples/example_film_manager.glom:
      	* examples/example_smallbusiness.glom: Save these with
      	useful group privileges, so the groups will be allowed to
      	see tables.
      	* tests/test_document_load.cc: Test the loading of the group
      	privileges.
      	Previously the examples were created with groups that could not
      	even view the tables, which meant that they could not even
      	find out about their existence.
      	This deals with the problem found here:
      	https://bugzilla.gnome.org/show_bug.cgi?id=669043#c2
      	But I would like to show the existence (and structure) of tables
      	even if their data cannot be viewed, so there is more work to do.
      694bc016
    • Murray Cumming's avatar
      test_selfhosting_new_empty_then_users: Slight improvement. · 7d6715ef
      Murray Cumming authored
      	* tests/test_selfhosting_new_from_example_operator.cc: Check
      	that the group exists before adding a user to it.
      7d6715ef
    • Murray Cumming's avatar
      Add some runtime warnings. · 7193b1f9
      Murray Cumming authored
      	* glom/libglom/db_utils.cc: get_table_names_from_database():
      	Slightly improved error checking.
      	* glom/libglom/privs.cc: set_table_privileges():
      	Warn if a GRANT fails.
      7193b1f9
    • Kjartan Maraas's avatar
      Updated Norwegian bokmål translation · 2633b032
      Kjartan Maraas authored
      2633b032
  12. 02 Feb, 2012 6 commits