1. 22 2月, 2016 1 次提交
  2. 05 2月, 2016 1 次提交
    • P
      ui: Clean up includes · e16f4c87
      Peter Maydell 提交于
      Clean up includes so that osdep.h is included first and headers
      which it implies are not included manually.
      
      This commit was created with scripts/clean-includes.
      Signed-off-by: NPeter Maydell <peter.maydell@linaro.org>
      Message-id: 1454089805-5470-2-git-send-email-peter.maydell@linaro.org
      e16f4c87
  3. 02 2月, 2016 1 次提交
  4. 18 1月, 2016 1 次提交
    • P
      gtk: implement set_echo · fba958c6
      Paolo Bonzini 提交于
      Even without line editing, this makes -qmp vc more pleasant with the
      GTK+ backend.  The only issue is that set_echo is invoked very early,
      long before a vc is actually associated with a VirtualConsole.  To work
      around this, create a temporary VirtualConsole until then.
      Signed-off-by: NPaolo Bonzini <pbonzini@redhat.com>
      Message-id: 1450356422-31710-1-git-send-email-pbonzini@redhat.com
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      fba958c6
  5. 17 12月, 2015 1 次提交
    • E
      qapi: Change munging of CamelCase enum values · d20a580b
      Eric Blake 提交于
      When munging enum values, the fact that we were passing the entire
      prefix + value through camel_to_upper() meant that enum values
      spelled with CamelCase could be turned into CAMEL_CASE.  However,
      this provides a potential collision (both OneTwo and One-Two would
      munge into ONE_TWO) for enum types, when the same two names are
      valid side-by-side as QAPI member names.  By changing the generation
      of enum constants to always be prefix + '_' + c_name(value,
      False).upper(), and ensuring that there are no case collisions (in
      the next patches), we no longer have to worry about names that
      would be distinct as QAPI members but collide as variant tag names,
      without having to think about what munging the heuristics in
      camel_to_upper() will actually perform on an enum value.
      
      Making the change will affect enums that did not follow coding
      conventions, using 'CamelCase' rather than desired 'lower-case'.
      
      Thankfully, there are only two culprits: InputButton and ErrorClass.
      We already tweaked ErrorClass to make it an alias of QapiErrorClass,
      where only the alias needs changing rather than the whole tree.  So
      the bulk of this change is modifying INPUT_BUTTON_WHEEL_UP to the
      new INPUT_BUTTON_WHEELUP (and likewise for WHEELDOWN).  That part
      of this commit may later need reverting if we rename the enum
      constants from 'WheelUp' to 'wheel-up' as part of moving
      x-input-send-event to a stable interface; but at least we have
      documentation bread crumbs in place to remind us (commit 513e7cdb),
      and it matches the fact that SDL constants are also spelled
      SDL_BUTTON_WHEELUP.
      
      Suggested by: Markus Armbruster <armbru@redhat.com>
      Signed-off-by: NEric Blake <eblake@redhat.com>
      Message-Id: <1447836791-369-27-git-send-email-eblake@redhat.com>
      [Commit message tweaked]
      Signed-off-by: NMarkus Armbruster <armbru@redhat.com>
      d20a580b
  6. 19 10月, 2015 1 次提交
  7. 08 10月, 2015 2 次提交
  8. 25 9月, 2015 1 次提交
    • D
      gtk: avoid redefining _WIN32_WINNT macro · c8f3f17c
      Daniel P. Berrange 提交于
      When building for Mingw64 target on Fedora 22 a warning
      is issued about _WIN32_WINNT being redefined.
      
      In file included from ui/gtk.c:40:0:
      include/ui/gtk.h:5:0: warning: "_WIN32_WINNT" redefined
       # define _WIN32_WINNT 0x0601 /* needed to get definition of MAPVK_VK_TO_VSC */
        ^
      In file included from /usr/i686-w64-mingw32/sys-root/mingw/include/crtdefs.h:10:0,
                       from /usr/i686-w64-mingw32/sys-root/mingw/include/stdio.h:9,
                       from /home/berrange/src/virt/qemu/include/qemu/fprintf-fn.h:12,
                       from /home/berrange/src/virt/qemu/include/qemu-common.h:18,
                       from ui/gtk.c:37:
      /usr/i686-w64-mingw32/sys-root/mingw/include/_mingw.h:225:0: note: this is the location of the previous definition
       #define _WIN32_WINNT 0x502
       ^
      
      Rather than try to get MAPVK_VK_TO_VSC defined indirectly
      by defining _WIN32_WINNT, instead just define it explicitly
      if missing.
      Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
      Signed-off-by: NStefan Weil <sw@weilnetz.de>
      Acked-by: NPaolo Bonzini <pbonzini@redhat.com>
      c8f3f17c
  9. 15 9月, 2015 6 次提交
  10. 11 6月, 2015 1 次提交
  11. 29 5月, 2015 2 次提交
  12. 06 5月, 2015 3 次提交
  13. 27 4月, 2015 2 次提交
  14. 22 4月, 2015 3 次提交
  15. 27 3月, 2015 1 次提交
  16. 19 1月, 2015 1 次提交
  17. 21 11月, 2014 2 次提交
  18. 04 11月, 2014 5 次提交
  19. 28 10月, 2014 2 次提交
  20. 15 10月, 2014 2 次提交
  21. 11 7月, 2014 1 次提交
    • J
      ui/gtk: Restore keyboard focus after Page change · e72b59fa
      John Snow 提交于
      (Resending for correct email addresses via MAINTAINERS ...)
      
      In the GTK UI, after changing focus to the qemu monitor Notebook Page,
      when restoring focus to the virtual machine page, the keyboard focus is lost
      to a hidden GTK widget. Focus can only be restored to the virtual machine by
      pressing "tab" or any of the four directional arrow keys.
      
      Clicking in the window or grabbing/ungrabbing input does not restore keyboard
      focus to the child widget.
      
      This patch adjusts the Notebook page switching callback to automatically
      steal keyboard focus on the Page switch event, so that keyboard input
      does not appear to break or disappear after tabbing to the QEMU monitor.
      Signed-off-by: NJohn Snow <jsnow@redhat.com>
      Signed-off-by: NGerd Hoffmann <kraxel@redhat.com>
      e72b59fa