[virt-tools-list] [PATCH virt-viewer 1/9] Require an accel group for full-screen menu

Marc-André Lureau marcandre.lureau at gmail.com
Wed Feb 15 00:29:52 UTC 2012


---
 configure.ac        |    2 +-
 src/virt-viewer.xml |    3 +++
 2 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/configure.ac b/configure.ac
index 56281df..1fc21b1 100644
--- a/configure.ac
+++ b/configure.ac
@@ -13,7 +13,7 @@ AM_SILENT_RULES([yes])
 GMODULE2_REQUIRED=2.12.0
 LIBXML2_REQUIRED="2.6.0"
 LIBVIRT_REQUIRED="0.6.0"
-GTK2_REQUIRED="2.12.0"
+GTK2_REQUIRED="2.16.0"
 GTK3_REQUIRED="3.0"
 GTK_VNC_REQUIRED="0.4.3"
 SPICE_GTK_REQUIRED="0.9"
diff --git a/src/virt-viewer.xml b/src/virt-viewer.xml
index 9075f26..a561262 100644
--- a/src/virt-viewer.xml
+++ b/src/virt-viewer.xml
@@ -1,6 +1,7 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <interface>
   <!-- interface-requires gtk+ 2.6 -->
+  <object class="GtkAccelGroup" id="accelgroup"/>
   <object class="GtkWindow" id="viewer">
     <property name="can_focus">False</property>
     <property name="default_width">400</property>
@@ -25,6 +26,7 @@
                   <object class="GtkMenu" id="menu1">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
+                    <property name="accel_group">accelgroup</property>
                     <child>
                       <object class="GtkMenuItem" id="menu-file-screenshot">
                         <property name="visible">True</property>
@@ -79,6 +81,7 @@
                   <object class="GtkMenu" id="menu2">
                     <property name="visible">True</property>
                     <property name="can_focus">False</property>
+                    <property name="accel_group">accelgroup</property>
                     <child>
                       <object class="GtkCheckMenuItem" id="menu-view-fullscreen">
                         <property name="visible">True</property>
-- 
1.7.7.6




More information about the virt-tools-list mailing list