mirror of
https://github.com/Rafostar/clapper.git
synced 2025-08-30 15:52:10 +02:00
clapper-app: Add auto window resize keyboard shortcut
In addition to middle click, also add "Super+r" keyboard shortcut to perform window resize to fit video action
This commit is contained in:
@@ -1063,6 +1063,12 @@ toggle_fullscreen (GSimpleAction *action, GVariant *param, gpointer user_data)
|
||||
video_toggle_fullscreen_cb (CLAPPER_GTK_VIDEO_CAST (self->video), self);
|
||||
}
|
||||
|
||||
static void
|
||||
auto_resize (GSimpleAction *action, GVariant *param, gpointer user_data)
|
||||
{
|
||||
_resize_window (CLAPPER_APP_WINDOW_CAST (user_data));
|
||||
}
|
||||
|
||||
static void
|
||||
show_help_overlay (GSimpleAction *action, GVariant *param, gpointer user_data)
|
||||
{
|
||||
@@ -1217,6 +1223,7 @@ clapper_app_window_constructed (GObject *object)
|
||||
|
||||
static const GActionEntry win_entries[] = {
|
||||
{ "toggle-fullscreen", toggle_fullscreen, NULL, NULL, NULL },
|
||||
{ "auto-resize", auto_resize, NULL, NULL, NULL },
|
||||
{ "show-help-overlay", show_help_overlay, NULL, NULL, NULL },
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user