mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2024-12-21 09:33:59 +03:00
src: Move virt_viewer_app_get_enable_accel() and virt_viewer_app_set_enable_accel()
No functional changes. This is only to reduce clutter in the next few commits. Signed-off-by: Paul Donohue <git@PaulSD.com>
This commit is contained in:
parent
87d8c80ba2
commit
af644ec423
@ -2799,6 +2799,23 @@ gboolean virt_viewer_app_get_direct(VirtViewerApp *self)
|
||||
return priv->direct;
|
||||
}
|
||||
|
||||
gboolean
|
||||
virt_viewer_app_get_enable_accel(VirtViewerApp *self)
|
||||
{
|
||||
g_return_val_if_fail(VIRT_VIEWER_IS_APP(self), FALSE);
|
||||
|
||||
VirtViewerAppPrivate *priv = virt_viewer_app_get_instance_private(self);
|
||||
return priv->enable_accel;
|
||||
}
|
||||
|
||||
void
|
||||
virt_viewer_app_set_enable_accel(VirtViewerApp *self, gboolean enable)
|
||||
{
|
||||
VirtViewerAppPrivate *priv = virt_viewer_app_get_instance_private(self);
|
||||
priv->enable_accel = enable;
|
||||
g_object_notify(G_OBJECT(self), "enable-accel");
|
||||
}
|
||||
|
||||
void
|
||||
virt_viewer_app_clear_hotkeys(VirtViewerApp *self)
|
||||
{
|
||||
@ -2812,14 +2829,6 @@ virt_viewer_app_clear_hotkeys(VirtViewerApp *self)
|
||||
}
|
||||
}
|
||||
|
||||
void
|
||||
virt_viewer_app_set_enable_accel(VirtViewerApp *self, gboolean enable)
|
||||
{
|
||||
VirtViewerAppPrivate *priv = virt_viewer_app_get_instance_private(self);
|
||||
priv->enable_accel = enable;
|
||||
g_object_notify(G_OBJECT(self), "enable-accel");
|
||||
}
|
||||
|
||||
void
|
||||
virt_viewer_app_set_hotkeys(VirtViewerApp *self, const gchar *hotkeys_str)
|
||||
{
|
||||
@ -3333,15 +3342,6 @@ virt_viewer_app_show_display(VirtViewerApp *self)
|
||||
g_list_foreach(priv->windows, show_display_cb, self);
|
||||
}
|
||||
|
||||
gboolean
|
||||
virt_viewer_app_get_enable_accel(VirtViewerApp *self)
|
||||
{
|
||||
g_return_val_if_fail(VIRT_VIEWER_IS_APP(self), FALSE);
|
||||
|
||||
VirtViewerAppPrivate *priv = virt_viewer_app_get_instance_private(self);
|
||||
return priv->enable_accel;
|
||||
}
|
||||
|
||||
VirtViewerSession*
|
||||
virt_viewer_app_get_session(VirtViewerApp *self)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user