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:
Paul Donohue 2021-04-25 11:08:50 -04:00 committed by Daniel P. Berrangé
parent 87d8c80ba2
commit af644ec423

View File

@ -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)
{