Commit eebba6f8 authored by Giovanni Panozzo's avatar Giovanni Panozzo

Added option expand to window when in scaled mode, see issue #537

parent 4d928106
This diff is collapsed.
......@@ -61,7 +61,7 @@ struct _RemminaProtocolWidgetPriv
gint width;
gint height;
gboolean scale;
gboolean expand;
gboolean scaler_expand;
gboolean has_error;
gchar* error_message;
......@@ -278,6 +278,7 @@ void remmina_protocol_widget_open_connection(RemminaProtocolWidget* gp, RemminaF
gp->priv->remmina_file = remminafile;
gp->priv->scale = remmina_file_get_int(remminafile, "scale", FALSE);
gp->priv->scaler_expand = remmina_file_get_int(remminafile, "scaler_expand", FALSE);
remmina_protocol_widget_show_init_dialog(gp, remmina_file_get_string(remminafile, "name"));
......@@ -883,14 +884,13 @@ void remmina_protocol_widget_set_scale(RemminaProtocolWidget* gp, gboolean scale
gboolean remmina_protocol_widget_get_expand(RemminaProtocolWidget* gp)
// Deprecated, no longer in use. Kept here to avoid breaking plugin api
return FALSE;
return gp->priv->scaler_expand;
void remmina_protocol_widget_set_expand(RemminaProtocolWidget* gp, gboolean expand)
// Deprecated, no longer in use. Kept here to avoid breaking plugin api
gp->priv->scaler_expand = expand;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment