mirror of
https://gitlab.com/virt-viewer/virt-viewer.git
synced 2025-01-10 01:17:47 +03:00
Remove unnecessary parameter from virt_viewer_window_resize()
Since c3cbdef888
virt_viewer_window_resize
is always called with keep_win_size = FALSE.
This commit is contained in:
parent
08378ec4dc
commit
c645a99267
@ -66,7 +66,7 @@ void virt_viewer_window_menu_preferences_cb(GtkWidget *menu, VirtViewerWindow *s
|
||||
/* Internal methods */
|
||||
static void virt_viewer_window_enable_modifiers(VirtViewerWindow *self);
|
||||
static void virt_viewer_window_disable_modifiers(VirtViewerWindow *self);
|
||||
static void virt_viewer_window_resize(VirtViewerWindow *self, gboolean keep_win_size);
|
||||
static void virt_viewer_window_resize(VirtViewerWindow *self);
|
||||
static void virt_viewer_window_toolbar_setup(VirtViewerWindow *self);
|
||||
static GtkMenu* virt_viewer_window_get_keycombo_menu(VirtViewerWindow *self);
|
||||
static void virt_viewer_window_get_minimal_dimensions(VirtViewerWindow *self, guint *width, guint *height);
|
||||
@ -365,7 +365,7 @@ virt_viewer_window_desktop_resize(VirtViewerDisplay *display G_GNUC_UNUSED,
|
||||
self->priv->desktop_resize_pending = TRUE;
|
||||
return;
|
||||
}
|
||||
virt_viewer_window_resize(self, FALSE);
|
||||
virt_viewer_window_resize(self);
|
||||
}
|
||||
|
||||
|
||||
@ -413,7 +413,7 @@ virt_viewer_window_queue_resize(VirtViewerWindow *self)
|
||||
* scale down to fit, maintaining aspect ratio
|
||||
*/
|
||||
static void
|
||||
virt_viewer_window_resize(VirtViewerWindow *self, gboolean keep_win_size)
|
||||
virt_viewer_window_resize(VirtViewerWindow *self)
|
||||
{
|
||||
GdkRectangle fullscreen;
|
||||
GdkScreen *screen;
|
||||
@ -476,8 +476,7 @@ virt_viewer_window_resize(VirtViewerWindow *self, gboolean keep_win_size)
|
||||
virt_viewer_display_set_desktop_size(VIRT_VIEWER_DISPLAY(priv->display),
|
||||
width, height);
|
||||
|
||||
if (!keep_win_size)
|
||||
virt_viewer_window_queue_resize(self);
|
||||
virt_viewer_window_queue_resize(self);
|
||||
}
|
||||
|
||||
static void
|
||||
@ -1420,7 +1419,7 @@ virt_viewer_window_show(VirtViewerWindow *self)
|
||||
gtk_widget_show(self->priv->window);
|
||||
|
||||
if (self->priv->desktop_resize_pending) {
|
||||
virt_viewer_window_resize(self, FALSE);
|
||||
virt_viewer_window_resize(self);
|
||||
self->priv->desktop_resize_pending = FALSE;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user