diff options
author | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-02-14 18:33:11 +0100 |
---|---|---|
committer | Marc-André Lureau <marcandre.lureau@gmail.com> | 2012-02-22 16:44:27 +0100 |
commit | e6dfd324c4d8a70f57b06e5274e1f4912e863613 (patch) | |
tree | 18099c8048ddd1d2315fe30b8bc54878d637c7c4 | |
parent | b768fafd666d411f363d73c934594f33b1dc3a10 (diff) |
Add hidden menu smartcard remove/insert and release-cursor
-rw-r--r-- | src/virt-viewer-window.c | 25 | ||||
-rw-r--r-- | src/virt-viewer.xml | 31 |
2 files changed, 56 insertions, 0 deletions
diff --git a/src/virt-viewer-window.c b/src/virt-viewer-window.c index c35a841..68a6b65 100644 --- a/src/virt-viewer-window.c +++ b/src/virt-viewer-window.c @@ -36,6 +36,7 @@ #include <glib/gi18n.h> #include "virt-viewer-window.h" +#include "virt-viewer-session.h" #include "virt-viewer-app.h" #include "virt-viewer-util.h" #include "view/autoDrawer.h" @@ -52,6 +53,9 @@ void virt_viewer_window_menu_view_resize(GtkWidget *menu, VirtViewerWindow *self void virt_viewer_window_menu_send(GtkWidget *menu, VirtViewerWindow *self); void virt_viewer_window_menu_file_screenshot(GtkWidget *menu, VirtViewerWindow *self); void virt_viewer_window_menu_file_usb_device_selection(GtkWidget *menu, VirtViewerWindow *self); +void virt_viewer_window_menu_file_smartcard_insert(GtkWidget *menu, VirtViewerWindow *self); +void virt_viewer_window_menu_file_smartcard_remove(GtkWidget *menu, VirtViewerWindow *self); +void virt_viewer_window_menu_view_release_cursor(GtkWidget *menu, VirtViewerWindow *self); /* Internal methods */ static void virt_viewer_window_enable_modifiers(VirtViewerWindow *self); @@ -749,6 +753,27 @@ virt_viewer_window_menu_file_usb_device_selection(GtkWidget *menu G_GNUC_UNUSED, } G_MODULE_EXPORT void +virt_viewer_window_menu_file_smartcard_insert(GtkWidget *menu G_GNUC_UNUSED, + VirtViewerWindow *self) +{ + virt_viewer_session_smartcard_insert(virt_viewer_app_get_session(self->priv->app)); +} + +G_MODULE_EXPORT void +virt_viewer_window_menu_file_smartcard_remove(GtkWidget *menu G_GNUC_UNUSED, + VirtViewerWindow *self) +{ + virt_viewer_session_smartcard_remove(virt_viewer_app_get_session(self->priv->app)); +} + +G_MODULE_EXPORT void +virt_viewer_window_menu_view_release_cursor(GtkWidget *menu G_GNUC_UNUSED, + VirtViewerWindow *self) +{ + virt_viewer_display_release_cursor(VIRT_VIEWER_DISPLAY(self->priv->display)); +} + +G_MODULE_EXPORT void virt_viewer_window_menu_help_about(GtkWidget *menu G_GNUC_UNUSED, VirtViewerWindow *self) { diff --git a/src/virt-viewer.xml b/src/virt-viewer.xml index a561262..bef89ac 100644 --- a/src/virt-viewer.xml +++ b/src/virt-viewer.xml @@ -49,6 +49,26 @@ </object> </child> <child> + <object class="GtkMenuItem" id="menu-file-smartcard-insert"> + <property name="can_focus">False</property> + <property name="use_action_appearance">False</property> + <property name="accel_path"><virt-viewer>/file/smartcard-insert</property> + <property name="label" translatable="yes">Smartcard insertion</property> + <property name="use_underline">True</property> + <signal name="activate" handler="virt_viewer_window_menu_file_smartcard_insert" swapped="no"/> + </object> + </child> + <child> + <object class="GtkMenuItem" id="menu-file-smartcard-remove"> + <property name="can_focus">False</property> + <property name="use_action_appearance">False</property> + <property name="accel_path"><virt-viewer>/file/smartcard-remove</property> + <property name="label" translatable="yes">Smartcard removal</property> + <property name="use_underline">True</property> + <signal name="activate" handler="virt_viewer_window_menu_file_smartcard_remove" swapped="no"/> + </object> + </child> + <child> <object class="GtkSeparatorMenuItem" id="separatormenuitem1"> <property name="visible">True</property> <property name="can_focus">False</property> @@ -87,6 +107,7 @@ <property name="visible">True</property> <property name="can_focus">False</property> <property name="use_action_appearance">False</property> + <property name="accel_path"><virt-viewer>/view/fullscreen</property> <property name="label" translatable="yes">Full screen</property> <property name="use_underline">True</property> <accelerator key="F11" signal="activate"/> @@ -169,6 +190,16 @@ <property name="use_underline">True</property> </object> </child> + <child> + <object class="GtkMenuItem" id="menu-view-release-cursor"> + <property name="can_focus">False</property> + <property name="use_action_appearance">False</property> + <property name="accel_path"><virt-viewer>/view/release-cursor</property> + <property name="label" translatable="yes">Release cursor</property> + <property name="use_underline">True</property> + <signal name="activate" handler="virt_viewer_window_menu_view_release_cursor" swapped="no"/> + </object> + </child> </object> </child> </object> |