Signed-off-by: Giuseppe Scrivano <gscrivan@xxxxxxxxxx> --- 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 86094e0..361e33f 100644 --- a/ui/snapshots.ui +++ b/ui/snapshots.ui @@ -684,6 +684,26 @@ <property name="visible">True</property> <property name="can_focus">False</property> <child> + <object class="GtkButton" id="snapshot-refresh"> + <property name="visible">True</property> + <property name="can_focus">True</property> + <property name="receives_default">True</property> + <signal name="clicked" handler="on_snapshot_refresh_clicked" swapped="no"/> + <child> + <object class="GtkImage" id="image5"> + <property name="visible">True</property> + <property name="can_focus">False</property> + <property name="stock">gtk-refresh</property> + </object> + </child> + </object> + <packing> + <property name="expand">False</property> + <property name="fill">True</property> + <property name="position">0</property> + </packing> + </child> + <child> <object class="GtkButton" id="snapshot-add"> <property name="visible">True</property> <property name="can_focus">True</property> @@ -703,7 +723,7 @@ <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">0</property> + <property name="position">1</property> </packing> </child> <child> @@ -724,7 +744,7 @@ <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">1</property> + <property name="position">2</property> </packing> </child> <child> @@ -747,7 +767,7 @@ <packing> <property name="expand">False</property> <property name="fill">False</property> - <property name="position">2</property> + <property name="position">3</property> </packing> </child> </object> diff --git a/virtManager/snapshots.py b/virtManager/snapshots.py index b1a72aa..c71b667 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 <crobinso@xxxxxxxxxx> # # 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, -- 1.9.3 _______________________________________________ virt-tools-list mailing list virt-tools-list@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/virt-tools-list