snapshots: new: Grab name focus, make activate create the snapshot
This commit is contained in:
parent
89646fe841
commit
111f4353a3
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!-- Generated with glade 3.16.0 on Fri Oct 4 16:54:34 2013 -->
|
||||
<!-- Generated with glade 3.16.0 on Sat Oct 5 14:43:35 2013 -->
|
||||
<interface>
|
||||
<!-- interface-requires gtk+ 3.6 -->
|
||||
<object class="GtkImage" id="image3">
|
||||
|
@ -111,6 +111,7 @@
|
|||
<property name="visible">True</property>
|
||||
<property name="can_focus">True</property>
|
||||
<property name="invisible_char">●</property>
|
||||
<signal name="activate" handler="on_snapshot_new_name_activate" swapped="no"/>
|
||||
<signal name="changed" handler="on_snapshot_new_name_changed" swapped="no"/>
|
||||
</object>
|
||||
<packing>
|
||||
|
|
|
@ -83,6 +83,7 @@ class vmmSnapshotPage(vmmGObjectUI):
|
|||
"on_snapshot_new_ok_clicked": self._on_new_ok_clicked,
|
||||
"on_snapshot_new_cancel_clicked" : self._snapshot_new_close,
|
||||
"on_snapshot_new_name_changed" : self._snapshot_new_name_changed,
|
||||
"on_snapshot_new_name_activate": self._on_new_ok_clicked,
|
||||
})
|
||||
|
||||
self.top_box = self.widget("snapshot-top-box")
|
||||
|
@ -506,6 +507,7 @@ class vmmSnapshotPage(vmmGObjectUI):
|
|||
return
|
||||
self._reset_new_state()
|
||||
self._snapshot_new.show()
|
||||
self.widget("snapshot-new-name").grab_focus()
|
||||
|
||||
def _on_start_clicked(self, ignore):
|
||||
snap = self._get_selected_snapshot()
|
||||
|
|
Loading…
Reference in New Issue