hildon-application-manager:kalfa-ham.git
7 years agoBind mount /opt (NB#159403)
Víctor Manuel Jáquez Leal [Thu, 4 Mar 2010 15:16:43 +0000 (16:16 +0100)]
Bind mount /opt (NB#159403)

* apt-worker.cc (fs_setup): New function.
  (fs_teardown): New function.
  (do_rescue): use the new functions

7 years agoPrepare 2.2.60 for testing testing_2.2.60
Mario Sanchez Prada [Thu, 25 Feb 2010 12:45:47 +0000 (13:45 +0100)]
Prepare 2.2.60 for testing

7 years agoEnable the SSU error tab by default
Víctor Manuel Jáquez Leal [Thu, 25 Feb 2010 11:34:42 +0000 (12:34 +0100)]
Enable the SSU error tab by default

* src/settings.cc: set to true the show_ssu_problems global variable by
  default

7 years agoPrepare 2.2.59 testing_2.2.59
Víctor Manuel Jáquez Leal [Wed, 24 Feb 2010 20:35:48 +0000 (21:35 +0100)]
Prepare 2.2.59

7 years agoTheme reloading (NB#143476)
Víctor Manuel Jáquez Leal [Wed, 24 Feb 2010 20:20:05 +0000 (21:20 +0100)]
Theme reloading (NB#143476)

* src/util.cc (icon_view_item_activated): read the model from the tree view
  (icon_view_is_dying): ditto
  (reload_section_icons): destroy the list store and create a new one
  (make_global_section_list): modify the signal connectors

7 years agoFix alignment and add icon in the uninstall confirm dialog (NB#154429)
Víctor Manuel Jáquez Leal [Tue, 23 Feb 2010 15:21:16 +0000 (16:21 +0100)]
Fix alignment and add icon in the uninstall confirm dialog (NB#154429)

* src/util.cc (get_package_icon): New function
  (ask_yes_no_with_details): if there's a package info and the details are for
  uninstall, show the icon besides the question.
  (install_confirm): move out code to the new function

7 years agoFix alignment and add icon in the install confirm dialog (NB#154429)
Víctor Manuel Jáquez Leal [Tue, 23 Feb 2010 13:29:36 +0000 (14:29 +0100)]
Fix alignment and add icon in the install confirm dialog (NB#154429)

* src/util.cc (make_scare_user_with_legalese): align legalese text
  (install_confirm): align title, add icon, pack "correctly" all the items.

7 years agoAdd triple margin in the section view (NB#154479)
Víctor Manuel Jáquez Leal [Tue, 23 Feb 2010 12:31:47 +0000 (13:31 +0100)]
Add triple margin in the section view (NB#154479)

* src/util.cc (make_global_section_list): pack the scroller in a vertical box
  with the triple margin padding.

7 years agoRefresh the package cache in the upgrade view
Víctor Manuel Jáquez Leal [Tue, 23 Feb 2010 11:00:36 +0000 (12:00 +0100)]
Refresh the package cache in the upgrade view

* src/main.cc (suavarc_refresh_package_cache): retry if we're still in the
  upgrade view but the package list is no ready yet.
  (show_upgrade_applications_view_and_refresh_callback): call the cache
  refreshing in two seconds.

7 years agoReset the cancel/break flags before every download
Víctor Manuel Jáquez Leal [Tue, 23 Feb 2010 10:58:28 +0000 (11:58 +0100)]
Reset the cancel/break flags before every download

* src/operations.cc (ip_download_cur): Reset the cancel/break flags before
  every download

7 years agoNullify the iap identifier after free it.
Víctor Manuel Jáquez Leal [Tue, 23 Feb 2010 10:57:24 +0000 (11:57 +0100)]
Nullify the iap identifier after free it.

* src/util.cc (iap_callback): Nullify the iap identifier after free it.

7 years agoShow SSU problems in details dialogue
Víctor Manuel Jáquez Leal [Tue, 23 Feb 2010 11:31:32 +0000 (12:31 +0100)]
Show SSU problems in details dialogue

* src/details.cc (spd_with_details): don't remove the tab if the setting is
  enabled.

7 years agoRead and write show-ssu-problems in the settings
Víctor Manuel Jáquez Leal [Mon, 22 Feb 2010 10:41:29 +0000 (11:41 +0100)]
Read and write show-ssu-problems in the settings

* src/settings.h: export the global variable
* src/settings.cc (load_settings): read the new key
  (save_settings): save the new key
  (make_settings_tab): put the option in the widget

7 years agoReset the cancel/break value when retrying a failed download
Víctor Manuel Jáquez Leal [Thu, 18 Feb 2010 19:18:59 +0000 (20:18 +0100)]
Reset the cancel/break value when retrying a failed download

* src/operations.cc (ip_download_cur_retry): reset entertainment state before
  downloading again.
* src/util.cc (reset_entertainment): New function
* src/util.h: New function exporting

7 years agoRemove not anymore needed dependencies after reboot
Víctor Manuel Jáquez Leal [Thu, 18 Feb 2010 18:50:51 +0000 (19:50 +0100)]
Remove not anymore needed dependencies after reboot

* src/operations.cc (ip_autoremove_reply): New function.
  (ip_reboot): call the autoremove apt-worker command.

7 years agoRemove useless log messages
Víctor Manuel Jáquez Leal [Thu, 18 Feb 2010 18:05:56 +0000 (19:05 +0100)]
Remove useless log messages

* src/apt-worker.cc (cmd_autoremove): Remove useless log messages

7 years agoRemove not anymore needed dependencies after removing a package
Víctor Manuel Jáquez Leal [Thu, 18 Feb 2010 17:41:13 +0000 (18:41 +0100)]
Remove not anymore needed dependencies after removing a package

* src/operations.cc (up_remove_reply): Stop the entertainment only if
  apt-worker fails.
  (up_remove_reply): Call the autoremove process.
  (up_autoremove_reply): New function.

7 years agoMake sure packages list is always initialized after restoring
Mario Sanchez Prada [Tue, 9 Feb 2010 09:15:08 +0000 (10:15 +0100)]
Make sure packages list is always initialized after restoring

* src/main.cc (rp_end): Make sure packages list is always initialized
after restoring the list of packages.

7 years agoClient function for autoremove operation.
Víctor Manuel Jáquez Leal [Wed, 17 Feb 2010 12:58:05 +0000 (13:58 +0100)]
Client function for autoremove operation.

* apt-worker-client.h: function signature
  src/apt-worker-client.cc (apt_worker_autoremove): New function.

7 years agoImplementation of the autoremove operation.
Víctor Manuel Jáquez Leal [Wed, 17 Feb 2010 12:56:57 +0000 (13:56 +0100)]
Implementation of the autoremove operation.

* src/apt-worker-proto.h: add the command id.
* src/apt-worker (handle_request): handle the command request.
  (cmd_autoremove): New function.

7 years agoCheck if we are in the upgrade view before running the refresh flow.
Víctor Manuel Jáquez Leal [Mon, 15 Feb 2010 18:11:00 +0000 (19:11 +0100)]
Check if we are in the upgrade view before running the refresh flow.

* src/main.cc: (suavarc_refresh_package_cache) Check if we are in the upgrade
  view before running the refresh flow.

7 years agoTODO: theme reloading (NB#143476)
Víctor Manuel Jáquez Leal [Mon, 25 Jan 2010 10:51:52 +0000 (11:51 +0100)]
TODO: theme reloading (NB#143476)

* src/util.cc (reload_section_icons): New function.
  (make_global_section_list): Set the style-set signal to the new
  function

7 years agoRetrying downloading three times if it fails (NB#148697)
Víctor Manuel Jáquez Leal [Tue, 16 Feb 2010 23:15:15 +0000 (00:15 +0100)]
Retrying downloading three times if it fails (NB#148697)

* src/operations.cc (ip_download_cur_reply): Retrying downloading three times
  if it fails.

7 years agoRetrying download if it fails (NB#148697)
Víctor Manuel Jáquez Leal [Thu, 21 Jan 2010 11:23:21 +0000 (12:23 +0100)]
Retrying download if it fails (NB#148697)

* src/operations.cc (result_code_to_message): Show the new label for retrying.
  (ip_download_cur_retry_confirm): Enable the ask_yes_no dialog
  (ip_download_cur_retry): New function.
  (ip_download_cur_retry_confirm_response): fix the function in order to
  re-ensure the network connection before downloading again.
  (ip_download_cur_reply): Ask to retry if the download was broke

7 years agoIf the user change to another IAP the download is cancelled (NB#148697)
Víctor Manuel Jáquez Leal [Mon, 11 Jan 2010 13:11:03 +0000 (14:11 +0100)]
If the user change to another IAP the download is cancelled (NB#148697)

* src/util.cc (iap_callback): handler and report errors, handle the disconnecting
  status, and try to handle reconnections.

7 years agoProperly handle conic events when going online/offline (NB#150182)
Mario Sanchez Prada [Thu, 28 Jan 2010 18:57:03 +0000 (19:57 +0100)]
Properly handle conic events when going online/offline (NB#150182)

* src/util.cc (connected_event_handler_id): New global variable to
store the handler id for the 'connection-event' callback.
(ensure_network): Store the handler id when connecting the signal.
(listen_to_conic_events): New function, to easily state when HAM
should start or stop listening to conic events.
(set_device_mode): Make sure HAM stops listening to conic events
before going to offline mode and that starts listening back to them
right after going online again.

7 years agoMoved utility functions to their right place (util.cc)
Mario Sanchez Prada [Thu, 28 Jan 2010 18:54:34 +0000 (19:54 +0100)]
Moved utility functions to their right place (util.cc)

* src/dbus.c (MCE_SERVICE): Removed from here.
(MCE_REQUEST_IF): Likewise.
(MCE_REQUEST_PATH): Likewise.
(MCE_GET_DEVICE_MODE_REQ): Likewise.
(MCE_DEVICE_MODE_CHANGE_REQ): Likewise.
(get_device_mode): Likewise.
(set_device_mode): Likewise.

* src/dbus.h (device_mode): Removed from here.
(get_device_mode): Likewise.
(set_device_mode): Likewise.

* src/operations.cc (ip_kill_all_and_install_delayed): Removed crappy
code to kill and stop processes from here and call a new utility
function instead: kill_processes_for_SSU

* src/util.cc (stop_dsme_service): Made this function private.
(maybe_kill_all_by_name): Made this function private.
(MCE_SERVICE): Moved from dbus.cc.
(MCE_REQUEST_IF): Likewise.
(MCE_REQUEST_PATH): Likewise.
(MCE_GET_DEVICE_MODE_REQ): Likewise.
(MCE_DEVICE_MODE_CHANGE_REQ): Likewise.
(get_device_mode): Likewise.
(set_device_mode): Likewise.

* src/util.h (enum device_mode): Moved from dbus.h.
(stop_dsme_service): Removed from header.
(get_device_mode): Added prototype.
(set_device_mode): Added prototype.
(maybe_kill_all_by_name): Removed from header.
(kill_processes_for_SSU): Added prototype.

7 years agoCleanup in dbus.cc
Mario Sanchez Prada [Thu, 28 Jan 2010 18:44:31 +0000 (19:44 +0100)]
Cleanup in dbus.cc

* src/dbus.h (send_reboot_message): Removed unused function.

7 years agoDon't popup CSM on top of the 'Update all button' (NB#154393)
Mario Sanchez Prada [Thu, 28 Jan 2010 11:07:56 +0000 (12:07 +0100)]
Don't popup CSM on top of the 'Update all button' (NB#154393)

* src/util.cc (tree_tap_and_hold_cb): New function to handle the
'tap-and-hold' signal coming from the tree view.
(make_global_package_list): Don't pass the menu to the function
gtk_widget_tap_and_hold_setup and manually connect to the
'tap-and-hold' signal instead.

7 years agoUpdate the cache within an idle call (NB#154290)
Víctor Manuel Jáquez Leal [Wed, 27 Jan 2010 13:33:28 +0000 (14:33 +0100)]
Update the cache within an idle call (NB#154290)

* src/main.cc (suavarc_refresh_package_cache): New function.
  (show_upgrade_applications_view_and_refresh_callback): Run the cache
  refresing when idle, so we give the drawing system a time tu use the theme.

This patch also check if the package list is already in the front-end, so we
can avoid a possible "Operation failed" message. But this will inhibit the
check-for-updates if you go to the updates view while the package list is
processed.

7 years agoMake "Update all" update the SSU package only if present (NB#154393)
Mario Sanchez Prada [Wed, 27 Jan 2010 11:11:34 +0000 (12:11 +0100)]
Make "Update all" update the SSU package only if present (NB#154393)

* src/main.cc (update_all_get_upgradeable_packages): New function to
get the list of upgradeable packages for the "update all" button,
returning the OS package only in the list if present.
(update_all_packages_flow): Call update_all_get_upgradeable_packages.

* src/ham-after-boot.c (main): For the OS update, make sure the icon
will blink after reboot by deleting user files related to its state.

* statusbar/ham-updates-status-menu-item.c
(should_force_check_for_updates): New function to check whether a
check-for-updates should be forced (no tapped-updates file on disk).
(run_service_now): Call should_force_check_for_updates to know whether
a check-for-updates should be forced even before the next interval

7 years agoRemoved unnecesary code (old 'update all' menu button) (NB#154393)
Mario Sanchez Prada [Tue, 26 Jan 2010 15:31:50 +0000 (16:31 +0100)]
Removed unnecesary code (old 'update all' menu button) (NB#154393)

* src/main.cc (set_current_view): Remove calls to enable_update_all.
(make_upgrade_applications_view): Likewise.

* src/menu.cc (update_all_menu_item): Removed unused menu item.
(create_menu): Removed code adding the 'update all' button.
(enable_update_all): Removed.

* src/menu.h (enable_update_all): Removed.

7 years agoAdd a 'Update all' button to the GtkTreeView's action area (NB#154393)
Mario Sanchez Prada [Tue, 26 Jan 2010 15:27:35 +0000 (16:27 +0100)]
Add a 'Update all' button to the GtkTreeView's action area (NB#154393)

* src/util.cc (make_global_package_list): Added extra parameters to
allow setting a button in the GtkTreeView's action area when needed,
by just specifying the label and the callback when clicked.
(make_install_apps_package_list): Update make_global_package_list call
(make_uninstall_apps_package_list): Likewise.
(make_upgrade_apps_package_list): Added extra parameter to tell
whether the action area should be shown or not for the upgrade view.

* src/util.h: Updated prototype for make_upgrade_apps_package_list.

* src/main.cc (make_upgrade_applications_view): Add the new extra
parameter when calling make_upgrade_apps_package_list.
(make_search_results_view): Likewise

7 years agoAllow more flexibility building the views for the packages lists
Mario Sanchez Prada [Tue, 26 Jan 2010 12:42:14 +0000 (13:42 +0100)]
Allow more flexibility building the views for the packages lists

* src/util.cc (make_global_package_list): Made it private, as it will
just handle common logic for the new public functions from now on.
(make_install_apps_package_list): New function to take care of making
packages list for the "install apps" views.
(make_upgrade_apps_package_list): New function to take care of making
packages list for the "update apps" view.
(make_uninstall_apps_package_list): New function to take care of making
packages list for the "uninstall apps" view.

* src/util.h: Updated prototipes and comments.

* src/main.cc (make_install_section_view): Call to the new function
make_install_apps_package_list instead of make_global_package_list.
(make_install_applications_view): Call to the new function
make_install_apps_package_list instead of make_global_package_list.
(make_upgrade_applications_view): Call to the new function
make_upgrade_apps_package_list instead of make_global_package_list.
(make_uninstall_applications_view): Call to the new function
make_uninstall_apps_package_list instead of make_global_package_list.
(make_search_results_view): Call to the new functions for install,
upgrade or uninstall apps, instead of make_global_package_list.

7 years agoIgnore bad formated catalogues (NB#148427)
Víctor Manuel Jáquez Leal [Tue, 26 Jan 2010 11:45:18 +0000 (12:45 +0100)]
Ignore bad formated catalogues (NB#148427)

* src/repo.cc (add_catalogues_cont_2): If the catalogue to add has a length
  bigger than 1024 characters, it's ignored and a log message is added.

7 years agoDon't add repo definition with more than 1024 char (NB#148427)
Víctor Manuel Jáquez Leal [Mon, 25 Jan 2010 20:55:22 +0000 (21:55 +0100)]
Don't add repo definition with more than 1024 char (NB#148427)

* src/confutils.cc (write_sources_list): apt only permits deb source
  definitions of max length of 1024 chars. With this patch we avoid write
  those definitions avoiding the breakage of apt.

7 years agoCode cleanup in HamUpdates
Mario Sanchez Prada [Tue, 26 Jan 2010 11:09:41 +0000 (12:09 +0100)]
Code cleanup in HamUpdates

* statusbar/update-notifier-conf.h (UPNO_DEFAULT_BLINK_AFTER): Unified
units for defines in minutes.

* statusbar/ham-updates.c (ham_updates_get_blink_after): Ensure units
are returned in seconds, despite of the default value in minutes.
(ham_updates_maybe_force_blinking): New function to decide whether the
blinking should be forced or not, depending on several factors.
(ham_updates_check): Call to ham_updates_maybe_force_blinking

7 years agoMake the update icon blink again 24h later after tapping (NB#148685)
Mario Sanchez Prada [Tue, 26 Jan 2010 10:38:25 +0000 (11:38 +0100)]
Make the update icon blink again 24h later after tapping (NB#148685)

* statusbar/update-notifier-conf.h (UPNO_GCONF_BLINK_AFTER): New
define for the minimum amount of time before forcing the blinking.
(UPNO_DEFAULT_BLINK_AFTER): Default value for UPNO_GCONF_BLINK_AFTER

* statusbar/ham-updates.h (ham_updates_get_blink_after): New prototype

* statusbar/ham-updates.c (ham_updates_get_blink_after): New function to
retrieve the 'blinking-after' value from GConf, or its default value.
(ham_updates_check): Make sure the 'tapped-updates' and 'seen-updates'
files get removed before checking for updates if more time has passed
since tapping the icon than the 'blink-after' value.

7 years agoFix minor issue
Mario Sanchez Prada [Tue, 26 Jan 2010 10:33:21 +0000 (11:33 +0100)]
Fix minor issue

* statusbar/ham-updates.c (ham_updates_check): Return value in the
proper units (seconds) when gconf client failed to get the client.

7 years agoUse "ai_bd_confirm_ok" in restore dialog (NB#122777)
Víctor Manuel Jáquez Leal [Mon, 25 Jan 2010 19:51:37 +0000 (20:51 +0100)]
Use "ai_bd_confirm_ok" in restore dialog (NB#122777)

* src/util.cc (select_package_list_with_info): According to the specs (section
  7.6) the restore dialogue shall show a button with the "continue" label
  (ai_bd_confirm_ok) instead of "yes" (wdgt_bd_yes).

7 years agoImprove live search filter to be more useful (NB#154200)
Mario Sanchez Prada [Mon, 25 Jan 2010 13:13:06 +0000 (14:13 +0100)]
Improve live search filter to be more useful (NB#154200)

* src/util.cc (live_search_look_for_prefix): New function to easily
look for a given prefix among an array of tokens.
(live_search_filter_func): For each token provided by the live search
widget, look for a match among words in package name or description.

7 years agoPrepare 2.2.57
Mario Sanchez Prada [Thu, 21 Jan 2010 10:21:40 +0000 (11:21 +0100)]
Prepare 2.2.57

7 years agoRelease 2.2.56-1 release_2.2.56-1
Mario Sanchez Prada [Thu, 21 Jan 2010 10:10:02 +0000 (11:10 +0100)]
Release 2.2.56-1

7 years agoFix compilation error due to change in hildon live search API
Mario Sanchez Prada [Thu, 21 Jan 2010 09:45:39 +0000 (10:45 +0100)]
Fix compilation error due to change in hildon live search API

* src/util.cc (make_global_package_list): Don't cast the treeview to
GtkWidget for hildon_live_search_widget_hook.

7 years agoSilence the compiler
Mario Sanchez Prada [Thu, 21 Jan 2010 09:43:15 +0000 (10:43 +0100)]
Silence the compiler

* src/util.cc (size_string_general_or_empty): Removed unused function.

7 years agoPrepare 2.2.57
Mario Sanchez Prada [Wed, 20 Jan 2010 12:51:55 +0000 (13:51 +0100)]
Prepare 2.2.57

7 years agoRelease 2.2.56 release_2.2.56
Mario Sanchez Prada [Wed, 20 Jan 2010 12:50:37 +0000 (13:50 +0100)]
Release 2.2.56

7 years agoMerge branch 'branch_2.2.52'
Mario Sanchez Prada [Wed, 20 Jan 2010 12:07:31 +0000 (13:07 +0100)]
Merge branch 'branch_2.2.52'

Conflicts:

configure.ac
debian/changelog

7 years agoRelease 2.2.52.2 branch_2.2.52 release_2.2.52.2
Mario Sanchez Prada [Wed, 20 Jan 2010 10:38:43 +0000 (11:38 +0100)]
Release 2.2.52.2

7 years agoUpdated debian/changelog
Mario Sanchez Prada [Wed, 20 Jan 2010 10:22:30 +0000 (11:22 +0100)]
Updated debian/changelog

7 years agoMake sure the packages list is ready after installing a .deb file
Mario Sanchez Prada [Wed, 20 Jan 2010 11:51:41 +0000 (12:51 +0100)]
Make sure the packages list is ready after installing a .deb file

* src/main.cc (enum package_list_state): New enumeration for package
list states: unknown, retrieving and ready.
(pkg_list_state): New variable of type package_list_state.
(package_list_ready): New preprocessor macro to ease replacing the
usage of the old package_list_ready variable in the code.
(get_package_list_reply): Set pkg_list_state to 'ready'
(get_package_list_with_cont): Set pkg_list_state to 'retrieving'
(iff_end): Ensure maybe_init_packages_list is called here.
(maybe_init_packages_list): Do the right check to know whether the
global packages list is or not ready or being retrieved.

7 years agoFix weirdness in details dialog for .deb files (NB#153603)
Mario Sanchez Prada [Tue, 19 Jan 2010 17:21:39 +0000 (18:21 +0100)]
Fix weirdness in details dialog for .deb files (NB#153603)

* src/details.cc (show_package_details): Make sure the details dialog
gets created and properly filed both for packages in the apt
repositories and those coming from .deb files.
(get_notebook_width): Renamed into get_screen_width.
(get_screen_width): New, gets the screen width instead of trying to
figure out the realized width of the dialog or the notebook, which is
troublesome at many points.
(make_small_text_label): Use get_screen_width instead of
get_notebook_width. Make sure no width is explicitly requested if not
a valid value was got. Apply a reduction factor of 0.85 for the
wrapping sinc the base value (screen width) now is bigger than before.
(spd_with_details): Only take care of showing full details for the
package when the filling_details parameter is set to TRUE.
Don't ask for an specific width for the dialog, just for the height.

* src/operations.cc (if_details_reply): Initialize flags to zero for
packages coming from a .deb file.

7 years agoH-A-M to attend when a deb file is double clicked. (NB#153420)
Mario Sanchez Prada [Tue, 19 Jan 2010 11:25:35 +0000 (12:25 +0100)]
H-A-M to attend when a deb file is double clicked. (NB#153420)

This reverts commit 3769ccddda3b4c2595501bb17a05b19fc2949eb0.

7 years agoRemove $HOME/.hildon-application-manager/packages.backup when outdated
Mario Sanchez Prada [Tue, 19 Jan 2010 08:01:40 +0000 (09:01 +0100)]
Remove $HOME/.hildon-application-manager/packages.backup when outdated

* hildon-application-manager.sh: Remove old backup file if outdated

7 years agoMerge branch 'branch_2.2.52'
Mario Sanchez Prada [Mon, 18 Jan 2010 16:35:44 +0000 (17:35 +0100)]
Merge branch 'branch_2.2.52'

Conflicts:

configure.ac
debian/changelog

7 years agoRevert "Make sure icons theme gets reloaded after installing (NB#136782)"
Mario Sanchez Prada [Mon, 18 Jan 2010 16:33:35 +0000 (17:33 +0100)]
Revert "Make sure icons theme gets reloaded after installing (NB#136782)"

This reverts commit 8e21d0e373156dd3229531d647327b1e5647fcb1.

7 years agoRevert "Merge branch 'branch_2.2.53'"
Mario Sanchez Prada [Mon, 18 Jan 2010 16:32:52 +0000 (17:32 +0100)]
Revert "Merge branch 'branch_2.2.53'"

This reverts commit 5d96971e35ee8d55f8abbf64732460f9e4331ff2.

7 years agoRelease 2.2.52.1 release_2.2.52.1
Mario Sanchez Prada [Mon, 18 Jan 2010 16:28:31 +0000 (17:28 +0100)]
Release 2.2.52.1

7 years agoMake sure icons theme gets reloaded after installing (NB#136782)
Mario Sanchez Prada [Fri, 15 Jan 2010 15:56:23 +0000 (16:56 +0100)]
Make sure icons theme gets reloaded after installing (NB#136782)

* src/apt-worker.cc (ICONS_THEME_PATH): New define pointing to the
root of the theme icons path.
(operation): Call to utimes to 'touch' the icons theme path.

* src/operations.cc (force_icons_theme_reload): New, send a GdkEvent to
make sure the icons get reloaded.
(ip_install_loop): Call to force_icons_theme_reload.

7 years agoRevert "The dbus mime open handler refuse to handle anything but .install"
Mario Sanchez Prada [Mon, 18 Jan 2010 16:16:57 +0000 (17:16 +0100)]
Revert "The dbus mime open handler refuse to handle anything but .install"

This reverts commit 7c60b272f86cc9290afaf84e0d5a8473baf19fa1.

7 years agoMerge branch 'branch_2.2.53'
Mario Sanchez Prada [Mon, 18 Jan 2010 11:29:44 +0000 (12:29 +0100)]
Merge branch 'branch_2.2.53'

Conflicts:

configure.ac
debian/changelog

7 years agoRelease 2.2.53.1 release_2.2.53.1
Mario Sanchez Prada [Mon, 18 Jan 2010 11:17:34 +0000 (12:17 +0100)]
Release 2.2.53.1

7 years agoRevert "The dbus mime open handler refuse to handle anything but .install"
Mario Sanchez Prada [Mon, 18 Jan 2010 10:22:26 +0000 (11:22 +0100)]
Revert "The dbus mime open handler refuse to handle anything but .install"

This reverts commit 7c60b272f86cc9290afaf84e0d5a8473baf19fa1.

7 years agoMake sure icons theme gets reloaded after installing (NB#136782)
Mario Sanchez Prada [Fri, 15 Jan 2010 15:56:23 +0000 (16:56 +0100)]
Make sure icons theme gets reloaded after installing (NB#136782)

* src/apt-worker.cc (ICONS_THEME_PATH): New define pointing to the
root of the theme icons path.
(operation): Call to utimes to 'touch' the icons theme path.

* src/operations.cc (force_icons_theme_reload): New, send a GdkEvent to
make sure the icons get reloaded.
(ip_install_loop): Call to force_icons_theme_reload.

7 years agoFixed compiling warnings in apt-worker
Mario Sanchez Prada [Fri, 15 Jan 2010 10:17:40 +0000 (11:17 +0100)]
Fixed compiling warnings in apt-worker

* src/apt-worker.cc: Don't use const char* for strings that may change

7 years agoDon't set uneeded properties in the PackageInfoCellRenderer (NB#151321)
Mario Sanchez Prada [Thu, 7 Jan 2010 12:24:26 +0000 (13:24 +0100)]
Don't set uneeded properties in the PackageInfoCellRenderer (NB#151321)

* src/util.cc (package_info_func): Ignore package's version and size
  when settting properties for the PackageInfoCellRenderer.

* src/package-info-cell-renderer.c (enum): Dropped PROP_PKG_VERSION
and PROP_PKG_SIZE properties.
(struct _PackageInfoCellRendererPrivate): Dropped pkg_version and
pkg_size private fields.
(package_info_cell_renderer_instance_init): Removed unused code.
(package_info_cell_renderer_finalize): Likewise.
(package_info_cell_renderer_class_init): Likewise.
(package_info_cell_renderer_get_property): Likewise.
(package_info_cell_renderer_set_property): Likewise.

7 years agoDon't render package's version and size in packages list (NB#151321).
Mario Sanchez Prada [Thu, 7 Jan 2010 12:20:39 +0000 (13:20 +0100)]
Don't render package's version and size in packages list (NB#151321).

* src/package-info-cell-renderer.c (paint_row): Removed unneeded
parameters for the right layout, as there won't be used anymore.

(package_info_cell_renderer_render): Updated call to paint_row and
removed unneeded code after the changes commented above.

7 years agoDo not crash when clicking "Save" with any repository (NB#127469)
Alejandro Piñeiro [Fri, 18 Dec 2009 10:16:35 +0000 (11:16 +0100)]
Do not crash when clicking "Save" with any repository (NB#127469)

* src/repo.cc (cat_icon_func): Add missing NULL check.
(cat_text_func): Add missing NULL check.

7 years agoUpdated Changelog and debian/changelog
Mario Sanchez Prada [Fri, 18 Dec 2009 10:11:48 +0000 (11:11 +0100)]
Updated Changelog and debian/changelog

7 years agoRemove menu items to change sort criteria and order (NB#151321)
Mario Sanchez Prada [Fri, 18 Dec 2009 09:30:11 +0000 (10:30 +0100)]
Remove menu items to change sort criteria and order (NB#151321)

* src/menu.cc (sort_by_name_menu_item): Removed.
(sort_by_size_menu_item): Removed.
(toggle_sort): Removed.
(create_menu): Removed creation of sort-related item.
(enable_sort): Removed.
(show_sort_order): Removed.

* src/menu.h (enable_sort): Removed.
(show_sort_order): Removed.

* src/main.cc (set_current_view): No longer call to enable_sort.

* src/settings.cc (load_settings): No longer call to show_sort_order.
(set_sort_settings): Likewise.

7 years agoShow proper text when not enough space available (NB#131635)
Mario Sanchez Prada [Tue, 17 Nov 2009 18:13:22 +0000 (19:13 +0100)]
Show proper text when not enough space available (NB#131635)

* src/operations.cc (result_code_to_message): Use the logical ID
ai_ni_memory_shortage from HAM instead the generic one.

7 years agoAllow more flexibility when comparing catalogues (NB#145469)
Mario Sanchez Prada [Fri, 6 Nov 2009 13:24:50 +0000 (14:24 +0100)]
Allow more flexibility when comparing catalogues (NB#145469)

* src/confutils.cc (dist_get_actual_string): New. Always returns a
string for the distribution, returning the default one in case nothing
was specified.
(components_get_array): New. Returns a gchar** array with the list of
components, for ease of comparison when fields are not sorted.
(catalogue_uri_equal): New. Checks whether two uris are the same.
(catalogue_dist_equal): New. Checks whether two dist field are equal.
(catalogue_n_components): New. Returns the number of components.
(catalogue_components_equal): New. Checks whether the same components
are present in two catalogues, regardless of the order.
(catalogue_equal): Use the new functions defined to better check when
two catalogues are actually equal and not just identical.

7 years agoCheck first if a catalogue must be enabled, instead of added (NB#145469)
Mario Sanchez Prada [Fri, 6 Nov 2009 13:12:09 +0000 (14:12 +0100)]
Check first if a catalogue must be enabled, instead of added (NB#145469)

* src/repo.cc (add_catalogues_cont_2): Swapped branches order to
properly check when a catalogue must be added or just enabled.

8 years agoPrepare 2.2.56
Mario Sanchez Prada [Fri, 11 Dec 2009 09:21:30 +0000 (10:21 +0100)]
Prepare 2.2.56

8 years agoRelease 2.2.55 release_2.2.55
Mario Sanchez Prada [Fri, 11 Dec 2009 09:19:12 +0000 (10:19 +0100)]
Release 2.2.55

8 years agoAdd a bug-number to the changelog
kedz [Thu, 10 Dec 2009 16:45:35 +0000 (17:45 +0100)]
Add a bug-number to the changelog

8 years agoRevert "Add bug to changelog"
kedz [Thu, 10 Dec 2009 16:13:00 +0000 (17:13 +0100)]
Revert "Add bug to changelog"

This reverts commit 0935994aadf0fa1dbc687ac0a131faa28e3a87e4.

8 years agoRevert "Prepare 2.2.56"
kedz [Thu, 10 Dec 2009 16:10:29 +0000 (17:10 +0100)]
Revert "Prepare 2.2.56"

This reverts commit 030ec4d63bfb90ed7eb4242bde37569e2bb10eee.

8 years agoPrepare 2.2.56
kedz [Thu, 10 Dec 2009 16:01:28 +0000 (17:01 +0100)]
Prepare 2.2.56

8 years agoA small fix for changelog
kedz [Thu, 10 Dec 2009 15:59:46 +0000 (16:59 +0100)]
A small fix for changelog

8 years agoRevert "Releasing 2.2.56"
kedz [Thu, 10 Dec 2009 15:59:16 +0000 (16:59 +0100)]
Revert "Releasing 2.2.56"

This reverts commit 28b9128b66635e1e80cbe2570b237ddf4ae5ba54.

Conflicts:

debian/changelog

8 years agoRevert "Prepare to 2.2.57"
kedz [Thu, 10 Dec 2009 15:58:04 +0000 (16:58 +0100)]
Revert "Prepare to 2.2.57"

This reverts commit 9097798a7ec81d4b057a0eb44c4b32c30e91c72b.

8 years agoAdd a missing changelog entry (which is already added to previous two tags...)
kedz [Thu, 10 Dec 2009 15:36:46 +0000 (16:36 +0100)]
Add a missing changelog entry (which is already added to previous two tags...)

8 years agoPrepare to 2.2.57
kedz [Thu, 10 Dec 2009 15:24:30 +0000 (16:24 +0100)]
Prepare to 2.2.57

8 years agoReleasing 2.2.56
kedz [Thu, 10 Dec 2009 15:22:58 +0000 (16:22 +0100)]
Releasing 2.2.56

8 years agoChangelog update
kedz [Thu, 10 Dec 2009 14:06:21 +0000 (15:06 +0100)]
Changelog update

8 years agoSet lzo999 compression to rootfs on SSU
kedz [Thu, 10 Dec 2009 14:03:47 +0000 (15:03 +0100)]
Set lzo999 compression to rootfs on SSU

8 years agoAdjust hildon-check-version to 2.2.5
kedz [Tue, 8 Dec 2009 07:01:22 +0000 (08:01 +0100)]
Adjust hildon-check-version to 2.2.5

8 years agoChangeLog
kedz [Mon, 7 Dec 2009 13:03:31 +0000 (14:03 +0100)]
ChangeLog

8 years agoFix: hildon api renamed, following the change
kedz [Mon, 7 Dec 2009 13:02:18 +0000 (14:02 +0100)]
Fix: hildon api renamed, following the change

8 years agoPrepare 2.2.55
Mario Sanchez Prada [Fri, 4 Dec 2009 14:58:19 +0000 (15:58 +0100)]
Prepare 2.2.55

8 years agoRelease 2.2.54 release_2.2.54
Mario Sanchez Prada [Fri, 4 Dec 2009 14:57:16 +0000 (15:57 +0100)]
Release 2.2.54

8 years agoDon't show system-update packages in "Downloads" view (NB#147133)
Mario Sanchez Prada [Tue, 17 Nov 2009 16:21:17 +0000 (17:21 +0100)]
Don't show system-update packages in "Downloads" view (NB#147133)

* src/apt-worker.cc (cmd_get_package_list): Reorder checks for
system-update flagged packages when retrieving the list.

8 years agoRemove the "Search" button from HAM menu.
Mario Sanchez Prada [Thu, 12 Nov 2009 15:58:51 +0000 (16:58 +0100)]
Remove the "Search" button from HAM menu.

* src/menu.cc (create_menu): Don't create the search button.
(enable_search): Removed, no longer needed.

* src/menu.h (enable_search): Removed, no longer needed.

* src/main.cc (set_current_view): Remove usage of enable_search.
(make_main_view): Likewise.
(make_install_section_view): Likewise.
(make_uninstall_applications_view): Likewise.
(make_search_results_view): Likewise.

8 years agoAdd live search support with the HildonLiveSearch widget (NB#140248)
Mario Sanchez Prada [Wed, 11 Nov 2009 17:30:59 +0000 (18:30 +0100)]
Add live search support with the HildonLiveSearch widget (NB#140248)

* src/util.cc (global_tree_model_filter): New global variable to store
the GtkTreeModelFilter used in the treeviews to allow live searching
through the list.
(global_row_activated): Handle the global_tree_model_filter variable
instead of the global_list_store.
(make_global_package_list): Added a new parameter to tell the function
the GtkWidget referencing the window for the view whose treeview is
being created.  Create a GtkTreeModelFilter containing a GtkTreeModel,
and create a GtkTreeView with the filter as its model. Create a
HildonLiveSearch widget and put it along with the pannable area for
the treeview inside a GtkVBox widget, which would be returned by the
function from now on after properly setting their visibility.
(live_search_filter_func): New. Function to filter out the packages in
a treeview as instructied through the new HildonLiveSearch widget.
(set_global_package_list): Extract the GtkListStore widget from the
GtkTreeModelFilter before proceeding.
(make_global_section_list): Update visibility of the widgets.

* src/util.h (make_global_package_list): Updated prototype.

* src/main.cc (make_install_section_view): Pass the window for the
view to the make_global_package_list function. Don't use
gtk_widget_show_all for the returned view, just
gtk_widget_show.  (make_install_applications_view):
Likewise.  (make_upgrade_applications_view):
Likewise.  (make_uninstall_applications_view):
Likewise.  (make_search_results_view): Likewise.

8 years agoPrepare 2.2.54
Mario Sanchez Prada [Fri, 4 Dec 2009 08:48:45 +0000 (09:48 +0100)]
Prepare 2.2.54

8 years agoRelease 2.2.53 release_2.2.53
Mario Sanchez Prada [Fri, 4 Dec 2009 08:47:49 +0000 (09:47 +0100)]
Release 2.2.53

8 years agoShow ai_ni_device_restart_long string after SSU (NB#146010)
Mario Sanchez Prada [Thu, 12 Nov 2009 08:33:26 +0000 (09:33 +0100)]
Show ai_ni_device_restart_long string after SSU (NB#146010)

* src/operations.cc (ip_reboot_delayed): Show the
"ai_ni_device_restart_long" l10n id right after installation and
before rebooting, for OS updates only.

8 years agoPrepare 2.2.53
Mario Sanchez Prada [Wed, 2 Dec 2009 12:27:02 +0000 (13:27 +0100)]
Prepare 2.2.53

8 years agoRelease 2.2.52 release_2.2.52
Mario Sanchez Prada [Wed, 2 Dec 2009 12:24:29 +0000 (13:24 +0100)]
Release 2.2.52