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 ...@@ -61,7 +61,7 @@ struct _RemminaProtocolWidgetPriv
gint width; gint width;
gint height; gint height;
gboolean scale; gboolean scale;
gboolean expand; gboolean scaler_expand;
gboolean has_error; gboolean has_error;
gchar* error_message; gchar* error_message;
...@@ -278,6 +278,7 @@ void remmina_protocol_widget_open_connection(RemminaProtocolWidget* gp, RemminaF ...@@ -278,6 +278,7 @@ void remmina_protocol_widget_open_connection(RemminaProtocolWidget* gp, RemminaF
TRACE_CALL("remmina_protocol_widget_open_connection"); TRACE_CALL("remmina_protocol_widget_open_connection");
gp->priv->remmina_file = remminafile; gp->priv->remmina_file = remminafile;
gp->priv->scale = remmina_file_get_int(remminafile, "scale", FALSE); 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")); 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 ...@@ -883,14 +884,13 @@ void remmina_protocol_widget_set_scale(RemminaProtocolWidget* gp, gboolean scale
gboolean remmina_protocol_widget_get_expand(RemminaProtocolWidget* gp) gboolean remmina_protocol_widget_get_expand(RemminaProtocolWidget* gp)
{ {
TRACE_CALL("remmina_protocol_widget_get_expand"); TRACE_CALL("remmina_protocol_widget_get_expand");
// Deprecated, no longer in use. Kept here to avoid breaking plugin api return gp->priv->scaler_expand;
return FALSE;
} }
void remmina_protocol_widget_set_expand(RemminaProtocolWidget* gp, gboolean expand) void remmina_protocol_widget_set_expand(RemminaProtocolWidget* gp, gboolean expand)
{ {
TRACE_CALL("remmina_protocol_widget_set_expand"); TRACE_CALL("remmina_protocol_widget_set_expand");
// Deprecated, no longer in use. Kept here to avoid breaking plugin api gp->priv->scaler_expand = expand;
return; return;
} }
......
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