From 724c6499f0a9bd1c3bce05c7b6d965a4b7a139c9 Mon Sep 17 00:00:00 2001 From: Giuseppe Scrivano Date: Thu, 31 Jul 2014 13:26:56 +0200 Subject: [PATCH] snapshots: add button to force snapshots list refresh Signed-off-by: Giuseppe Scrivano --- ui/snapshots.ui | 26 +++++++++++++++++++++++--- virtManager/snapshots.py | 3 ++- 2 files changed, 25 insertions(+), 4 deletions(-) diff --git a/ui/snapshots.ui b/ui/snapshots.ui index 86094e0d..361e33f6 100644 --- a/ui/snapshots.ui +++ b/ui/snapshots.ui @@ -683,6 +683,26 @@ True False + + + True + True + True + + + + True + False + gtk-refresh + + + + + False + True + 0 + + True @@ -703,7 +723,7 @@ False False - 0 + 1 @@ -724,7 +744,7 @@ False False - 1 + 2 @@ -747,7 +767,7 @@ False False - 2 + 3 diff --git a/virtManager/snapshots.py b/virtManager/snapshots.py index b1a72aad..c71b667e 100644 --- a/virtManager/snapshots.py +++ b/virtManager/snapshots.py @@ -1,5 +1,5 @@ # -# Copyright (C) 2013 Red Hat, Inc. +# Copyright (C) 2013-2014 Red Hat, Inc. # Copyright (C) 2013 Cole Robinson # # This program is free software; you can redistribute it and/or modify @@ -78,6 +78,7 @@ class vmmSnapshotPage(vmmGObjectUI): "on_snapshot_apply_clicked": self._on_apply_clicked, "on_snapshot_list_changed": self._snapshot_selected, "on_snapshot_list_button_press_event": self._popup_snapshot_menu, + "on_snapshot_refresh_clicked": self._refresh_snapshots, # 'Create' dialog "on_snapshot_new_delete_event": self._snapshot_new_close,