hildon-application-manager:mainline.git
9 years ago Add item to TODO test-ui-changes
Gabriel Schulhof [Wed, 10 Jun 2009 12:11:15 +0000 (15:11 +0300)]
Add item to TODO

    * TODO: Add item about ReversedDisabledTextColor

9 years ago Replace sort button + dialog with HildonAppMenu filters
Gabriel Schulhof [Tue, 9 Jun 2009 13:10:46 +0000 (16:10 +0300)]
Replace sort button + dialog with HildonAppMenu filters
    * src/main.cc:
    * src/menu.cc:
    * src/menu.h:
    * src/settings.cc:
    * src/settings.h:

9 years ago Sort dialog
Gabriel Schulhof [Mon, 8 Jun 2009 16:49:57 +0000 (19:49 +0300)]
Sort dialog

    * src/menu.cc: sort_menu_item: Keep this widget around.
      (create_menu): Save a ref to sort_menu_item.
      (show_sort_order): New function to display the sort information
      in the sort button.
    * src/menu.h: show_sort_order: This is a global function
    * settings.cc: include menu.h for sort button updates
      (load_settings): Update sort button after loading settings.
      (sort_settings_dialog_response): Retrieve sort key and order using
      the g_object_get_data mechanism, and update the sort button.
      (make_model): New function to create the model for the tree view
      showing the sorting options.
      (sort_dialog_row_activate): New row-activate handler for the sort
      options tree view. Saves the user's choice via the g_object_set_data
      mechanism and acts as the dialog's "OK" button.
      (show_settings_dialog_flow): Replace the hildon_sort_dialog with a
      dialog showing a single tree view with the user's sorting options.

9 years ago Updating package list widget
Gabriel Schulhof [Sat, 30 May 2009 10:15:49 +0000 (13:15 +0300)]
Updating package list widget

    * debian/changelog: Document the change
    * src/package-info-cell-renderer.c:
      Add PROP_PKG_SIZE to and remove PROP_PIXBUF and PROP_PIXBUF_SIZE from the top-level enum
      (typedef struct _PackageInfoCellRendererPrivate PackageInfoCellRendererPrivate):
      Add pkg_size and remove pixbuf and pixbuf_size from the private structure
      (package_info_cell_renderer_instance_init): Remove code dealing with pixbuf.
      Initialize pkg_size.
      (package_info_cell_renderer_finalize): Free pkg_size if necessary. Remove code dealing
      with pixbuf.
      (package_info_cell_renderer_class_init): Remove pixbuf-related properties, and add
      "pkg-size" property.
      (package_info_cell_renderer_get_property): implement "pkg-size" property. Remove code
      dealing with pixbuf.
      (package_info_cell_renderer_set_property): implement "pkg-size" property. Remove code
      dealing with pixbuf.
      (package_info_cell_renderer_get_size): Remove pixbuf size from calculation.
      (maybe_make_layout): New function. Make a layout if the source string is non-NULL.
      (paint_row): New function. Paint a single row of text using specified attributes. Avoids
      code duplication when calculating layout widths.
      (package_info_cell_renderer_render): Function greatly simplified by calling paint_row
      twice - once for each row.
      (style_set): New handler for updating the secondary text colour in the small text
      PangoAttributeList when the theme changes.
      (package_info_cell_renderer_listen_style): New function. Passes to the cell renderer a
      widget whose style changes to track for updates to the secondary text colour.
    * src/package-info-cell-renderer.h: Declare the new global
      package_info_cell_renderer_listen_style function.
    * src/util.cc: (global_size_func): Function removed. There's no longer a separate "size"
      column.
      (package_icon_func): New function. Provide an icon for each package.
      (package_info_func): Remove code that deals with pixbuf. Merge code from
      global_size_func.
      (make_global_package_list): Don't use multiple columns. There's only one column with two
      cell renderers: The pixbuf cr for the icon and the package_info cr for the package info.
      Remove visible headers and such. Use HildonPannableArea instead of GtkScrolledWindow.
      (set_global_package_list): Before clearing the GtkListStore, NULL out its pointers.
      (select_package_list_with_info): Use HildonPannableArea instead of GtkScrolledWindow.

9 years ago Menu updates, including tap-and-hold for "Details"
Gabriel Schulhof [Tue, 2 Jun 2009 12:10:57 +0000 (15:10 +0300)]
Menu updates, including tap-and-hold for "Details"

    * debian/changelog: Document changes briefly
    * debian/rules: Add -DTAP_AND_HOLD to CFLAGS
    * src/menu.cc: (add_item): Use HildonButton instead of GtkButton.
      (create_menu): Move "Search" and "Refresh" buttons to the right place
      in the menu (as per spec). Update logical ID for "Update All".
      (create_package_menu): Re-write: Use hildon_gtk_menu_new(). There's only one item:
      "Details".
    * src/util.cc: (button_press_cb): New function. When the user taps on the tree view,
      record the package_info that was tapped on.
      (make_global_package_list): Connect to the tree view's button_press_event.
      (tap_and_hold_cb): Remove this signal handler, and the corresponding connect.

9 years ago Get rid of the toolbars
Gabriel Schulhof [Mon, 8 Jun 2009 19:03:14 +0000 (22:03 +0300)]
Get rid of the toolbars

    * TODO: Mark item as done
    * debian/changelog: Document changes briefly
    * main.cc: (enable_search): Move to menu.cc.
      (enable_refresh): Move to menu.cc.
      (toolbar_struct): Remove this structure.
      (struct view): Get rid of toolbar_struct.
      (current_tb_struct): Get rid of this global variable.
      (set_current_toolbar): Get rid of this function.
      (main_view,install_applications_view,upgrade_applications_view,uninstall_applications_view,install_section_view,search_results_view):
      Get rid of toolbar_struct initializer.
      Move necessary global variables up
      (set_current_view): Enable/Disable the appropriate HildonAppMenu buttons as the view changes. Remove call to set_current_toolbar().
      Turn on "Update All" only if there are packages
      (show_view): Remove call to set_current_toolbar().
      (update_all_packages_flow): globalize this function, because it will be called from menu.cc.
      (update_all_packages_callback): Remove this function.
      (installed_package_selected): Remove code dealing with toolbar_struct, and update logical ID.
      (set_details_callback): Remove code dealing with toolbar
      (set_operation_toolbar_label): Remove this function.
      (set_operation_label): Remove call to set_operation_toolbar_label().
      (set_operation_callback): Remove code dealing with update_all tool item.
      (reset_view): Remove code dealing with toolbar
      (create_main_toolbar): Remove this function.
      (create_updates_toolbar): Remove this function.
      (make_new_window): Remove code dealing with toolbar.
      (call_refresh_package_cache): Remove this function.
      (create_toolbar): Remove this function.
    * main.h: (refresh_package_cache_without_user_flow): Globalize this function for HildonAppMenu.
      (update_all_packages_flow): Globalize this function for HildonAppMenu.
    * menu.cc: Add global references to widgets: update_all_menu_item, search_menu_item, refresh_menu_item
      (create_menu): Add menu items for "Update All", "Search", and "Refresh"
      (enable_search): Moved hither from main.cc.
      (enable_refresh): Moved hither from main.cc.
      (enable_update_all): New function. Shows/Hides "Update All" button.
    * menu.h: Move prototypes for enable_search and enable_refresh hither, and add prototype for enable_update_all.

9 years ago Pannables, HildonCheckButton in settings dialog
Gabriel Schulhof [Sat, 30 May 2009 13:27:16 +0000 (16:27 +0300)]
Pannables, HildonCheckButton in settings dialog

    * debian/changelog: Document changes briefly
    * src/settings.cc: Replace deprecated #include lines with #include <hildon/hildon.h>.
      (make_boolean_option): Pack a HildonCheckButton directly. Don't use deprecated HildonCaption.
      (make_settings_tab): Use HildonPannableArea instead of GtkScrolledWindow.
      (settings_dialog_response): Use hildon_check_button_get_active().
    * src/util.cc: (make_small_text_view): Make horizontally and vertically pannable
      HildonPannableArea instead of GtkScrolledWindow.

9 years ago Make Save/Continue/OK buttons the last ones to be added
Gabriel Schulhof [Sat, 30 May 2009 12:36:35 +0000 (15:36 +0300)]
Make Save/Continue/OK buttons the last ones to be added

    * debian/changelog: Document the changes briefly
    * src/log.cc: (show_log_dialog_flow): Add "Save As" after "Clear"
    * src/operations.cc: (ip_warn_about_reboot): Add "OK" after "Make Backup"
      (ip_abort_cur): Add "Yes" after "No"
    * src/repo.cc: (show_cat_edit_dialog): Add "OK" after "Cancel"
    * src/settings.cc: (show_settings_dialog_flow): Add "Save" after "Cancel"
    * src/util.cc: (ask_yes_no_with_details): Add "OK" after "Confirm Details"
      (ask_yes_no_with_arbitrary_details): Add "OK" after "Details"
      (install_confirm): Add "OK" after "Details"
      (select_package_list_with_info): Move "Yes" after "No"

9 years ago Show catalogue detail (a.k.a refresh error message) at the bottom of the details...
Gabriel Schulhof [Sat, 30 May 2009 12:20:56 +0000 (15:20 +0300)]
Show catalogue detail (a.k.a refresh error message) at the bottom of the details dialog

    * debian/changelog: Document the changes briefly
    * src/repo.cc: (SCROLL_TO_ERROR_TIMEOUT): Wait this long for size negotiation and realization to subside.
      (typedef struct ScrollToParams): Parameters for idle function that scrolls the HildonPannableArea to
      the error message.
      (scroll_to_timeout): Scroll to the top of a catalogue refresh error message.
      (add_scroll_timeout): Add the above timeout or push it forward if it's already present and has not yet
      elapsed.
      (tv_size_allocate): New handler for the detail text view. Add scroll timeout.
      (show_cat_edit_dialog): Pass the detail. Fix the size request to 350 and add a text view with the detail
      if there is a detail. Add scroll timeout upon realize and push it forward while the text view resizes
      itself.
      (cat_row_activate): call show_cat_edit_dialog passing the detail.
      (cat_response): New catalogue: call show_cat_edit_dialog passing the detail.
      (add_catalogue_details): call show_cat_edit_dialog passing the detail.

9 years ago Make all icons 48x48, centering smaller ones, and (unlikely) scaling larger ones
Gabriel Schulhof [Sat, 30 May 2009 12:04:43 +0000 (15:04 +0300)]
Make all icons 48x48, centering smaller ones, and (unlikely) scaling larger ones

    * debian/changelog: Document the change.
    * src/main.h: Move TREE_VIEW_ICON_SIZE here, because it's used in multiple files.
    * src/repo.cc: Remove TREE_VIEW_ICON_SIZE.
    * src/util.cc: (package_icon_func): Load stock package icons as 48x48 (TREE_VIEW_ICON_SIZE)
      (fit_rect_inside_rect): New utility function to scale one rectangle to fit inside another
      while preserving aspect ration. Necessary for (potentially) scaling down icons.
      (pixbuf_from_base64): If the pixbuf is not TREE_VIEW_ICON_SIZE, then center it inside a
      TREE_VIEW_ICON_SIZE x TREE_VIEW_ICON_SIZE pixbuf, scaling it down to fit, if necessary.

9 years ago Moving the "Delete" button into the cat_edit_dialog
Gabriel Schulhof [Fri, 29 May 2009 14:48:25 +0000 (17:48 +0300)]
Moving the "Delete" button into the cat_edit_dialog

    * debian/changelog: Document change

    * src/repo.cc: (struct cat_dialog_closure): Remove delete_button
      (remove_cat_cont): Move the function and struct remove_cat_clos
      further up.
      (cat_edit_response): Handle REPO_RESPONSE_REMOVE here. This needs
      the above.
      (show_cat_edit_dialog): Streamline dialog creation.
      (cat_row_activated): Save the current catcache in the closure.
      (cat_selection_changed): Remove code dealing with delete_button.
      (cat_response): Remove code dealing with REPO_RESPONSE_EDIT.
      (insensitive_cat_delete_press): Remove this function.
      (show_catalogue_dialog): Remove code dealing with delete_button.

9 years ago Fix repo list
Gabriel Schulhof [Fri, 29 May 2009 11:37:18 +0000 (14:37 +0300)]
Fix repo list

    * debian/changelog: Document "Edit" button removal

    * src/repo.cc: Change TREE_VIEW_ICON_SIZE to 48.
      (struct cat_dialog_closure): Get rid of edit_button.
      (cat_text_func): Don't add detail via "markup" property.
      (cat_selection_changed): Remove code dealing with edit_button.
      (set_cat_list): Set pointers in GtkListStore to NULL before clearing it,
      because the GtkListStore gives bogus pointers to the data funcs otherwise.
      (make_cat_list): Use a single column with multiple renderers. Put the
      tree view into a HildonPannableArea, not a GtkScrolledWindow.
      (insensitive_cat_edit_press): Remove this function.
      (show_catalogue_dialog): Remove code that sets up edit_button.

9 years ago Added TODO
Gabriel Schulhof [Fri, 5 Jun 2009 11:13:13 +0000 (14:13 +0300)]
Added TODO

    * TODO: New file, documenting UI changes.

9 years agoPrepare 2.2.23
Víctor Manuel Jáquez Leal [Thu, 4 Jun 2009 18:56:05 +0000 (20:56 +0200)]
Prepare 2.2.23

9 years agoRelease 2.2.22 release_2.2.22
Víctor Manuel Jáquez Leal [Thu, 4 Jun 2009 18:51:11 +0000 (20:51 +0200)]
Release 2.2.22

9 years agoset main_window from set_current_view as well as show_view to prevent a stale value...
Gabriel Schulhof [Thu, 4 Jun 2009 14:10:32 +0000 (17:10 +0300)]
set main_window from set_current_view as well as show_view to prevent a stale value after returning from a non-main view.

9 years agoMinor fix for main view buttons
Gabriel Schulhof [Thu, 4 Jun 2009 13:23:39 +0000 (16:23 +0300)]
Minor fix for main view buttons

9 years agoUI Message for 3rd party packages which breaks the SSU policy.
Víctor Manuel Jáquez Leal [Thu, 4 Jun 2009 09:08:30 +0000 (11:08 +0200)]
UI Message for 3rd party packages which breaks the SSU policy.

* src/operations.cc (installable_status_to_message): Added custom message when
  the installable status is 3rd party policy breakage.

9 years agoConfigures the 3rd party policy through the red-pill mode.
Víctor Manuel Jáquez Leal [Wed, 3 Jun 2009 17:18:03 +0000 (19:18 +0200)]
Configures the 3rd party policy through the red-pill mode.

* src/apt-worker.cc (set_options): Receives the 3rd party policy check option.
  (package_policy_status): Changed the function signature.
  (cmd_get_package_info): Disable the policy check if the red-pill option is
  enabled.
* src/settings.cc (load_settings) (save_settings): Handle the 3rd party policy
  option.
  (make_settings_tab): Add the checkbox in the settings dialogue.
  (backend_options): Sends the 3rd party policy to the backend.

9 years agoImplemented 3rd party package policy to no break SSU.
Víctor Manuel Jáquez Leal [Tue, 2 Jun 2009 14:56:22 +0000 (16:56 +0200)]
Implemented 3rd party package policy to no break SSU.

* src/apt-worker-proto.h: Added status_incompatible_thirdparty installable
  package status.
* src/apt-worker.cc (package_policy_status): New function.
  (cmd_get_package_info): Set the installable status given the new function.

9 years agoUpdated toolbar logic strings.
Víctor Manuel Jáquez Leal [Wed, 3 Jun 2009 08:41:40 +0000 (10:41 +0200)]
Updated toolbar logic strings.

* src/main.cc (installed_package_selected) (make_install_section_view)
  (make_upgrade_applications_view) (make_uninstall_applications_view)
  (make_search_results_view) (set_operation_label): Updated logical strings in
  toolbar.

9 years agoDon't refresh the current view after retrieving the package list. (NB#120002)
David Kedves [Tue, 2 Jun 2009 13:00:23 +0000 (15:00 +0200)]
Don't refresh the current view after retrieving the package list. (NB#120002)

* src/main.cc (get_package_list_reply): Don't refresh the current view
  after retrieving the package list. (NB#120002)

9 years agoStops the entertainment dialogue when the package download fails. (NB#119941)
David Kedves [Tue, 2 Jun 2009 12:04:01 +0000 (14:04 +0200)]
Stops the entertainment dialogue when the package download fails. (NB#119941)

* src/operations.cc (ip_download_cur_reply): Stops the entertainment dialogue
  when the package download fails before annoying the user (NB#119941).

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoDisconnect "map" event on finalize. (NB#115611)
David Kedves [Tue, 2 Jun 2009 09:25:25 +0000 (11:25 +0200)]
Disconnect "map" event on finalize. (NB#115611)

* statusbar/ham-updates-status-menu-item.c
  (ham_updates_status_menu_item_finalize): Disconnect map event on ancestor
  widget.
  (ham_updates_status_menu_item_parent_set): Save the ancestor widget.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoPrepare 2.2.22 (once again)
Víctor Manuel Jáquez Leal [Tue, 2 Jun 2009 10:21:06 +0000 (12:21 +0200)]
Prepare 2.2.22 (once again)

9 years agoRelease 2.2.21-2 release_2.2.21-2
Víctor Manuel Jáquez Leal [Tue, 2 Jun 2009 07:39:30 +0000 (09:39 +0200)]
Release 2.2.21-2

9 years agoPrepare 2.2.22 (again)
Víctor Manuel Jáquez Leal [Mon, 1 Jun 2009 14:47:18 +0000 (16:47 +0200)]
Prepare 2.2.22 (again)

9 years agoRelease 2.2.21-1 release_2.2.21-1
Víctor Manuel Jáquez Leal [Mon, 1 Jun 2009 14:40:01 +0000 (16:40 +0200)]
Release 2.2.21-1

9 years agoDon't use chroot to run text2screen in rescue mode.
Gabriel Schulhof [Mon, 1 Jun 2009 07:42:36 +0000 (09:42 +0200)]
Don't use chroot to run text2screen in rescue mode.

* src/apt-worker.cc (show_fb_text) (show_fb_status): Don't chroot the
  text2screen command execution.

9 years agoPrepare 2.2.22
Víctor Manuel Jáquez Leal [Thu, 28 May 2009 16:26:03 +0000 (18:26 +0200)]
Prepare 2.2.22

9 years agoRelease 2.2.21 release_2.2.21
Víctor Manuel Jáquez Leal [Thu, 28 May 2009 16:15:05 +0000 (18:15 +0200)]
Release 2.2.21

9 years agoRevert "Let official category translations override the community ones."
Marius Vollmer [Thu, 28 May 2009 12:00:18 +0000 (15:00 +0300)]
Revert "Let official category translations override the community ones."

This reverts commit b4adfe927af7dba0e99f80ec92fa31123658d4ea.
Reverting "Let official category translations override the community ones."

9 years agoInvalid logical ids. (NB#118348)
David Kedves [Wed, 27 May 2009 07:04:43 +0000 (09:04 +0200)]
Invalid logical ids. (NB#118348)

* src/menu.cc (create_menu): Use the new "ai_me_settings" id.
* src/settings.cc (show_settings_dialog_flow): Use the "wdgt_bd_save" id
  (NB#118348)

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoDeinitialize OSSO at finalize. (NB#115611)
David Kedves [Wed, 27 May 2009 12:17:54 +0000 (14:17 +0200)]
Deinitialize OSSO at finalize. (NB#115611)

* /statusbar/ham-updates-status-menu-item.c
  (ham_updates_status_menu_item_finalize): Deinitialize OSSO. Removes the
  alarm source id.
  (close_dbus): New function.
  (ham_updates_status_menu_item_init): Holds the alarm setup source.
  (run_service_now): Reset the alarm source id. (NB#115611)

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoAdmit as valid bearer types GPRS and WIMAX.
Víctor Manuel Jáquez Leal [Mon, 25 May 2009 16:56:01 +0000 (18:56 +0200)]
Admit as valid bearer types GPRS and WIMAX.

* statusbar/ham-updates-status-menu-item.c
  (ham_updates_status_menu_item_connection_cb): Admit as valid bearer types
  GPRS and WIMAX.

9 years agoMerge branch 'master' of git@dvcs.projects.maemo.org:hildon-application-manager
Marius Vollmer [Wed, 27 May 2009 15:50:45 +0000 (18:50 +0300)]
Merge branch 'master' of git@dvcs.projects.maemo.org:hildon-application-manager

9 years agoLet official category translations override the community ones.
Marius Vollmer [Wed, 27 May 2009 15:49:44 +0000 (18:49 +0300)]
Let official category translations override the community ones.

* src/main.cc (nicify_section_name): Here.

9 years agoSet the device to offline mode when doing an OS upgrade (NB#118137).
David Kedves [Wed, 27 May 2009 11:27:33 +0000 (13:27 +0200)]
Set the device to offline mode when doing an OS upgrade (NB#118137).

* src/dbus.cc (get_device_mode) (set_device_mode): New functions.
* src/dbuc.h (device_mode): New enum type.
* src/operations.cc (ip_maybe_offline_device_mode)
  (ip_maybe_restore_device_mode): New functions.
  (ip_install_cur): Offline the device if needed.
  (ip_install_cur_reply): Restore the device mode. (NB#118137)

Based on Hult Richard <richard@imendio.com> snippet.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoFixed the displacement size of domain keys.
Víctor Manuel Jáquez Leal [Mon, 25 May 2009 16:44:35 +0000 (18:44 +0200)]
Fixed the displacement size of domain keys.

* src/apt-worker.cc (find_deb_meta_index): Calculate the response string size
  in order to obtain the displacement to extract the domain key.

9 years agoFix typo in fi_FI category translations (NB#117616).
Marius Vollmer [Mon, 25 May 2009 16:31:02 +0000 (19:31 +0300)]
Fix typo in fi_FI category translations (NB#117616).

9 years agoAdding some missing dependencies.
David Kedves [Fri, 22 May 2009 13:09:23 +0000 (15:09 +0200)]
Adding some missing dependencies.

* debian/control: Added l10n dependencies.

9 years agoDropped the unused function scare_user_with_legalese. (NB#118348)
David Kedves [Fri, 22 May 2009 14:07:05 +0000 (16:07 +0200)]
Dropped the unused function scare_user_with_legalese. (NB#118348)

* src/util.cc (scare_user_with_legalese): Removed function. (NB#118348)

9 years agoInvalid logical id. (NB#118348)
David Kedves [Mon, 25 May 2009 08:03:36 +0000 (10:03 +0200)]
Invalid logical id. (NB#118348)

* src/operations.cc (ip_install_with_info): Changed invalid logical id
  "Install" for "ai_tb_install". (NB#118348)

9 years agoFiltering out installing from memory card code. (NB#118348)
David Kedves [Mon, 25 May 2009 08:00:50 +0000 (10:00 +0200)]
Filtering out installing from memory card code. (NB#118348)

* src/instr.cc (eci_with_temp_catalogues): ifdef memory card installing.
* src/operations.cc (ip_install_with_info) (ip_select_package_response): ifdef
  memory card installing and adding /*NOALLOC*/ to unused logical ids.
  (NB#118348)

9 years agoRemoving invalid logical id. (NB#118348)
David Kedves [Mon, 25 May 2009 07:35:31 +0000 (09:35 +0200)]
Removing invalid logical id. (NB#118348)

* src/repo.cc (show_cat_edit_dialog): Removed "ai_bd_new_repository_cancel"
  (NB#118348)

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoRemoved unused source code files.
David Kedves [Mon, 25 May 2009 08:29:07 +0000 (10:29 +0200)]
Removed unused source code files.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoEnhance the domain validation. (NB#103607)
David Kedves [Fri, 22 May 2009 11:50:58 +0000 (13:50 +0200)]
Enhance the domain validation. (NB#103607)

* src/apt-worker.cc (find_domain_by_tag): Compare only the end of the tag.
  (get_meta_info_key): Accept also GOODSIG as return value. (NB#103607)

9 years agoFixed code style.
David Kedves [Fri, 22 May 2009 11:49:48 +0000 (13:49 +0200)]
Fixed code style.

* src/apt-worker-proto.h: Removed a spurious comma in enum definition.

9 years agoLaunch a different dialogue if the package to installed failed and it's a OS
Víctor Manuel Jáquez Leal [Fri, 22 May 2009 11:23:24 +0000 (13:23 +0200)]
Launch a different dialogue if the package to installed failed and it's a OS
update.

* src/operations.cc (ip_abort_cur_os_update)
  (ip_abort_cur_os_update_response): New functions.
  (ip_abort_cur): If the failed package is a OS update launch the new
  dialogue.

9 years agoAdded and used a new function to launch osso-backup.
Víctor Manuel Jáquez Leal [Fri, 22 May 2009 11:21:08 +0000 (13:21 +0200)]
Added and used a new function to launch osso-backup.

* src/operations.cc (launch_osso_backup): New function.
  (ip_warn_about_reboot_response): Replace th code for the new function.

9 years agoUse the is_pkg_ssu function.
Víctor Manuel Jáquez Leal [Fri, 22 May 2009 11:18:18 +0000 (13:18 +0200)]
Use the is_pkg_ssu function.

* src/details.cc (spd_with_details): Use the is_pkg_ssu function instead of
  the local calculation.

9 years agoNew function to check if a package is a broken system update.
Víctor Manuel Jáquez Leal [Fri, 22 May 2009 11:14:23 +0000 (13:14 +0200)]
New function to check if a package is a broken system update.

* src/util.cc (is_pkg_ssu): New function.

9 years agoConform the details dialogue to spec.
Víctor Manuel Jáquez Leal [Thu, 21 May 2009 19:10:22 +0000 (21:10 +0200)]
Conform the details dialogue to spec.

* src/details.cc (spd_create_ssu_page): Use the proposed logical string.
  (spd_with_details): Reorder the tabs and their content in case of a broken
  SSU package.

9 years agoUpdated to Hildon widgets in details dialogue.
Víctor Manuel Jáquez Leal [Thu, 21 May 2009 19:01:51 +0000 (21:01 +0200)]
Updated to Hildon widgets in details dialogue.

* src/details.cc (spd_create_common_page) (make_small_text_label)
  (spd_create_summary_page): Use HildonPannableArea instead of
  GtkScrolledWindow.
  (spd_with_details): Update deprecated Gtk API.

9 years agoMisc code style fixes.
Víctor Manuel Jáquez Leal [Thu, 21 May 2009 18:56:21 +0000 (20:56 +0200)]
Misc code style fixes.

* src/details.cc (spd_update_common_page): Code style fixes.

9 years agoUse a macro defining the icon size.
Gabriel Schulhof [Thu, 21 May 2009 11:17:43 +0000 (13:17 +0200)]
Use a macro defining the icon size.

* src/repo.cc (cat_icon_func): Use a macro insted of a harcoded value to
  define the icon size.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoUse Hildon widgets in the edit catalogues dialogue.
Gabriel Schulhof [Wed, 20 May 2009 17:56:41 +0000 (19:56 +0200)]
Use Hildon widgets in the edit catalogues dialogue.

* src/repo.cc (add_entry): Use HildonEntry.
  (cat_edit_response): Use HildonCheckButton.
  (show_cat_edit_dialog): Use HildonCheckButton.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoUse GtkTable widgets in main view to make spacings consistent.
Gabriel Schulhof [Wed, 20 May 2009 11:12:58 +0000 (13:12 +0200)]
Use GtkTable widgets in main view to make spacings consistent.

* src/main.cc (make_main_view): Use GtkTable widget to make spacing
  consistent. Besides, use hildon-helper to set the label color.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoPrevent the button expand in section list.
Víctor Manuel Jáquez Leal [Tue, 19 May 2009 11:16:40 +0000 (13:16 +0200)]
Prevent the button expand in section list.

* src/util.cc (make_global_section_list): Set the table's attach options for
  the buttons in section list.

9 years agoWhen the user modified the catalogue list and interrupted the package list
David Kedves [Tue, 19 May 2009 10:16:24 +0000 (12:16 +0200)]
When the user modified the catalogue list and interrupted the package list
downloading the old package cache is still used. (NB#102707)

* src/apt-worker.cc (cmd_set_catalogues): Request to update the package
  cache after the catalogue setting. (NB#102707)
* src/main.cc (get_package_list_reply): Refresh the current view after
  fetching the package list.
  (rpcwu_reply): Don't save the last update time if the update was
  cancelled.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoSince catalogue setting doesn't need network operations, ensuring the
David Kedves [Tue, 19 May 2009 10:08:55 +0000 (12:08 +0200)]
Since catalogue setting doesn't need network operations, ensuring the
network is avoided in those operations. (NB#102050)

* src/main.cc (set_catalogues_and_refresh_cont): Function removed.
  (set_catalogues_and_refresh) (add_temp_catalogues_and_refresh): Don't
  ensure network before setting the catalogues. (NB#102050)

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoAvoid a gtk warning.
Víctor Manuel Jáquez Leal [Mon, 18 May 2009 10:45:25 +0000 (12:45 +0200)]
Avoid a gtk warning.

* src/util.cc (hide_main_window): Check if the current pointer to the main
  window is a valid widget pointer.

9 years agoRemoved GtkScrolledWindow calls in HildonPannableArea widgets.
Víctor Manuel Jáquez Leal [Mon, 18 May 2009 10:43:20 +0000 (12:43 +0200)]
Removed GtkScrolledWindow calls in HildonPannableArea widgets.

* src/util.cc (make_scare_user_with_legalese): Removed
  gtk_scrolled_window_set_policiy call.
  (scroll_to_widget): Removed gtk_scrolled_window_get_vadjustment call.
  (make_global_section_list): Removed gtk_scrolled_window_set_policiy
  call.

9 years agoUse themed buttons for main view (NB#117277)
Víctor Manuel Jáquez Leal [Mon, 18 May 2009 10:34:45 +0000 (12:34 +0200)]
Use themed buttons for main view (NB#117277)

* src/main.cc (make_padded_button): Use hildon_gtk_button_new instead of
  gtk_button_new. (NB#117277)

9 years agoReenabled the .run binaries without launcher dependency.
Víctor Manuel Jáquez Leal [Mon, 18 May 2009 08:27:30 +0000 (10:27 +0200)]
Reenabled the .run binaries without launcher dependency.

9 years agoForgot to add build dependency on maemo-launcher-dev to debian/control.
Gabriel Schulhof [Fri, 15 May 2009 10:28:41 +0000 (13:28 +0300)]
Forgot to add build dependency on maemo-launcher-dev to debian/control.

9 years agoRemoving utils/maemo-confirm-text, which was accidentally added
Gabriel Schulhof [Fri, 15 May 2009 08:34:10 +0000 (11:34 +0300)]
Removing utils/maemo-confirm-text, which was accidentally added

9 years agoMerge branch 'master' of https://dvcs.projects.maemo.org/git/hildon-application-manager
Gabriel Schulhof [Fri, 15 May 2009 08:24:27 +0000 (11:24 +0300)]
Merge branch 'master' of https://dvcs.projects.maemo.org/git/hildon-application-manager

9 years agoUse maemo-launcher only if the "nolauncher" value is absent from the "DEB_BUILD_OPTIO...
Gabriel Schulhof [Fri, 15 May 2009 08:07:12 +0000 (11:07 +0300)]
Use maemo-launcher only if the "nolauncher" value is absent from the "DEB_BUILD_OPTIONS" list

9 years ago update logical id based on NB#106181
Richard Sun [Fri, 15 May 2009 07:58:58 +0000 (10:58 +0300)]
 update logical id based on NB#106181

9 years agoUpdated the status menu item logical string (NB#113409)
Víctor Manuel Jáquez Leal [Thu, 14 May 2009 12:24:14 +0000 (14:24 +0200)]
Updated the status menu item logical string (NB#113409)

* statusbar/ham-updates.c (ham_updates_build_button): Fixed the logical string
  used in the status menu button (NB#113409)

9 years agoDon't hide the restore button in menu, just set it as inactive.
Víctor Manuel Jáquez Leal [Thu, 14 May 2009 12:02:11 +0000 (14:02 +0200)]
Don't hide the restore button in menu, just set it as inactive.

* src/menu.cc (create_menu): Set the restore button in menu as inactive if
  there's not a backup.

9 years agoSync the seen_update files.
Víctor Manuel Jáquez Leal [Thu, 14 May 2009 11:51:12 +0000 (13:51 +0200)]
Sync the seen_update files.

* src/main.cc (update_seen_updates_file): update the icon file too.
* statusbar/ham-updates.c (ham_updates_dialog_response_cb): update the icon
  file too.

9 years agoPrepare 2.2.21 (again)
Víctor Manuel Jáquez Leal [Thu, 14 May 2009 09:53:59 +0000 (11:53 +0200)]
Prepare 2.2.21 (again)

9 years agoRelease 2.2.20-1 release_2.2.20-1
Víctor Manuel Jáquez Leal [Thu, 14 May 2009 09:46:27 +0000 (11:46 +0200)]
Release 2.2.20-1

9 years agoBypass the icon visibility transition rules when loading its state.
Víctor Manuel Jáquez Leal [Thu, 14 May 2009 09:35:00 +0000 (11:35 +0200)]
Bypass the icon visibility transition rules when loading its state.

* statusbar/ham-updates-status-menu-item.c (load_icon_state): Bypassed the
  icon state transition rules.

9 years agoUse a pannable area to contain the section list.
Víctor Manuel Jáquez Leal [Wed, 13 May 2009 14:19:55 +0000 (16:19 +0200)]
Use a pannable area to contain the section list.

* src/util.cc (make_global_section_list): Use a HildonPannableArea instead of
  a GtkScrolledWindow to show the sections table.

9 years agoSections in two columns and finger-sized. (NB#116290)
Víctor Manuel Jáquez Leal [Wed, 13 May 2009 14:18:30 +0000 (16:18 +0200)]
Sections in two columns and finger-sized. (NB#116290)

* src/util.cc (make_global_section_list): Use HildonButton with height of
  finger-size, and the number of columns to show is two. (NB#116290)

9 years agoHandle read-only filesystem errors. (NB#113743)
David Kedves [Mon, 4 May 2009 12:02:47 +0000 (14:02 +0200)]
Handle read-only filesystem errors. (NB#113743)

* src/util.cc (annoy_user_with_gnome_vfs_result): handle
  GNOME_VFS_ERROR_READ_ONLY and GNOME_VFS_ERROR_READ_ONLY_FILE_SYSTEM
  value returns.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoPrepare 2.2.21
Víctor Manuel Jáquez Leal [Wed, 13 May 2009 09:46:10 +0000 (11:46 +0200)]
Prepare 2.2.21

9 years agoRelease 2.2.20 release_2.2.20
Víctor Manuel Jáquez Leal [Wed, 13 May 2009 09:33:58 +0000 (11:33 +0200)]
Release 2.2.20

9 years agoAnnoy user when the IAP disconnects at downloading. (NB#103611)
David Kedves [Tue, 12 May 2009 18:14:19 +0000 (20:14 +0200)]
Annoy user when the IAP disconnects at downloading. (NB#103611)

* src/operations.cc (ip_download_cur_reply): Check if the entertainment
  process was "broke" and show the information note if so.
* src/util.cc (start_entertaining_user): Initialize the broke status to
  false.
  (break_entertainment) (entertainment_was_broke): New functions.
  (iap_callback): Break the entertainment if the iap status is disconnected.
* src/util.h (break_entertainment) (entertainment_was_broke): Export and
  document functions.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoUpdate view menu to Hildon 2.2 (NB#112804)
David Kedves [Tue, 12 May 2009 10:54:49 +0000 (12:54 +0200)]
Update view menu to Hildon 2.2 (NB#112804)

* src/main.cc (installed_package_selected): Removed the
  set_operation_menu_item_sensitiveness function.
  (set_details_callback): Removed the set_details_menu_sensitive
  function.
  (set_operation_label): Removed the function set_operation_menu_label.
  (window_delete_event): Don't call menu_close, instead do the
  operations by itself.
  (make_new_window): Don't create a menu per window, instead add the
  window to the application.
  (enable_search): Removed the function set_search_menu_sensitive.
  (main): Create the main menu here.
* src/menu.cc (add_item): Use the HildonAppMenu, creates buttons and
  append them to the menu.
  (create_menu): Removed accel group, create the HildonAppMenu reorder
  the menu items to a single menu view.
* src/menu.h: Removed unused functions.

This patch also merges the patch sent by Soini Mox
<ext-mox.soini@nokia.com>

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoRemoved context sensitive menus. (NB#113654)
Víctor Manuel Jáquez Leal [Tue, 12 May 2009 09:52:10 +0000 (11:52 +0200)]
Removed context sensitive menus. (NB#113654)

* src/menu.cc (create_package_menu): Hide the function with TAP_AND_HOLD
  define.
* src/menu.h (create_package_menu): Hide the function with TAP_AND_HOLD
  define.
* src/repo.cc (add_entry): Marked the end of the define block.
* src/util.cc (tap_and_hold_cb): Hide the function with TAP_AND_HOLD
  define.
  (make_global_package_list): Hide the menu widget with TAP_AND_HOLD define.

9 years agoUse the specified icon to show the failed repositories.
Víctor Manuel Jáquez Leal [Mon, 11 May 2009 07:49:31 +0000 (09:49 +0200)]
Use the specified icon to show the failed repositories.

* src/repo.cc (cat_icon_func): Use "app_install_error" icon to show failed
  repositories.

9 years agoReset the show dialogue errors ignoring intention.
Víctor Manuel Jáquez Leal [Mon, 11 May 2009 11:23:13 +0000 (13:23 +0200)]
Reset the show dialogue errors ignoring intention.

* src/operations.cc (ip_end) (up_end): force to show the catalogue errors.
* src/repo.cc (scdf_end): force to show the catalogue errors.
* src/main.cc (rpcwuf_end): force to show the catalogue errors.

9 years agoShow catalogue error dialog flow.
Víctor Manuel Jáquez Leal [Mon, 11 May 2009 07:09:34 +0000 (09:09 +0200)]
Show catalogue error dialog flow.

* src/main.cc (force_show_catalogue_errors)
  (show_catalogue_errors_dialog) (scedf_check_catalogues)
  (scedf_dialog_done) (scedf_end) (scedf_cont)
  (show_update_partially_successfull_dialog_flow): New functions.
  (check_catalogues_reply): Run the update partially successfull
  dialogue flow.
* src/main.h (force_show_catalogue_errors) Function exported.

Based on the patches provided by David Kedves <dkedves@blumsoft.eu>

9 years agoAvoid set sensitive attribute to non-instanciated button.
Víctor Manuel Jáquez Leal [Fri, 8 May 2009 17:34:02 +0000 (19:34 +0200)]
Avoid set sensitive attribute to non-instanciated button.

* src/repo.cc (show_catalogue_dialog): initialize to null the
  button widget and change the sensitive attribute the "new" button only
  if it was instanciated.
  (scd_get_catalogues_reply): change the sensitive attribute to the
  "new" button only if it was instanciated.

9 years agoCreate an empty seen-notifications file either there's no file right now or if
Víctor Manuel Jáquez Leal [Fri, 8 May 2009 11:45:25 +0000 (13:45 +0200)]
Create an empty seen-notifications file either there's no file right now or if
the available-notifications is different from it. (NB#114920)

* statusbar/ham-notifier.c (ham_notifier_empty_seen_notifications): Create an
  empty seen-notifications file either there's no file right now or if the
  available-notifications is different from it. (NB#114920)
  (new_notifications) (ham_notifier_are_available): minor indentation fixes.

9 years agoSet rules for icon state transtition (NB#114920).
Víctor Manuel Jáquez Leal [Fri, 8 May 2009 10:30:00 +0000 (12:30 +0200)]
Set rules for icon state transtition (NB#114920).

* statusbar/ham-updates-status-menu-item.c
  (ham_updates_status_menu_item_map_event): take out the rule from here
  (set_icon_state): set all the rules at this point.

9 years agoOnly stop blinking when user taps on status-bar instead of hiding it.
David Kedves [Thu, 7 May 2009 13:22:11 +0000 (15:22 +0200)]
Only stop blinking when user taps on status-bar instead of hiding it.
(NB#114920)

* statusbar/ham-updates-status-menu-item.c
(ham_updates_status_menu_item_map_event): When the status area is tapped
the icon stops the blinking. (NB#114920)

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoPrepare 2.2.20
Víctor Manuel Jáquez Leal [Wed, 29 Apr 2009 16:40:59 +0000 (18:40 +0200)]
Prepare 2.2.20

9 years agoRelease 2.2.19 release_2.2.19
Víctor Manuel Jáquez Leal [Wed, 29 Apr 2009 16:30:46 +0000 (18:30 +0200)]
Release 2.2.19

9 years agoUpdated the FUTURE and PAST files.
Víctor Manuel Jáquez Leal [Wed, 29 Apr 2009 15:01:21 +0000 (17:01 +0200)]
Updated the FUTURE and PAST files.

9 years agoWorkaround for pop_dialog assertion.
David Kedves [Wed, 29 Apr 2009 09:37:09 +0000 (11:37 +0200)]
Workaround for pop_dialog assertion.

* src/util.cc (end_interaction_flow): Workaround for popping the last
  widget in the dialog stack, that should be the current window and
  also the window where the interaction flow started. See the FUTURE
  file for details.

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>
9 years agoTracing messages at pushing and popping dialogues.
Víctor Manuel Jáquez Leal [Wed, 29 Apr 2009 13:42:31 +0000 (15:42 +0200)]
Tracing messages at pushing and popping dialogues.

* src/main.cc (get_main_window): print the current main window pointer.
* src/util.cc (push_dialog): trace parent/child dialogues pushing.
  (pop_dialog): trace parent/child dialogues popping.

9 years agoShow the in the details dialogue that the device must be reflashed.
Víctor Manuel Jáquez Leal [Wed, 29 Apr 2009 11:21:13 +0000 (13:21 +0200)]
Show the in the details dialogue that the device must be reflashed.

* src/details.cc (spd_create_ssu_page): New function.
  (spd_with_details): Show the ssu page if it's an update details of a
  system_update package not able to update/install. If so don't show the
  details page either.

9 years agoRevert "Show the user annoyance dialogue as a Hildon confirmation note."
Víctor Manuel Jáquez Leal [Mon, 27 Apr 2009 14:17:19 +0000 (16:17 +0200)]
Revert "Show the user annoyance dialogue as a Hildon confirmation note."

This reverts commit 03e82df372aec571c18f5897b594dccdc07b4255.

9 years agoUse the hildon-libs text domain for common widgets.
Víctor Manuel Jáquez Leal [Mon, 27 Apr 2009 13:43:55 +0000 (15:43 +0200)]
Use the hildon-libs text domain for common widgets.

* src/util.cc (select_package_list_with_info): Use the hildn-libs text domain
  for yes/no dialogue buttons.

9 years agoShow an error message if any catalogue didn't refresh or if there's not
David Kedves [Fri, 24 Apr 2009 14:15:20 +0000 (16:15 +0200)]
Show an error message if any catalogue didn't refresh or if there's not
catalogues defined. (NB#111866, NB#109807)

* src/main.cc (check_catalogues_reply): Show an error message if any
  catalogue didn't refresh or if there's not catalogues defined.
  (NB#111866, NB#109807)

Signed-off-by: Víctor Manuel Jáquez Leal <vjaquez@igalia.com>