|
|
22448f |
From d4f6461a0887e9a137228fd20df7bb1e22345658 Mon Sep 17 00:00:00 2001
|
|
|
22448f |
From: Marek Kasik <mkasik@redhat.com>
|
|
|
22448f |
Date: Mon, 17 Aug 2015 18:14:48 +0200
|
|
|
22448f |
Subject: Use cached session size for RDP
|
|
|
22448f |
|
|
|
22448f |
Get width and height from cache when creating freerdp session.
|
|
|
22448f |
|
|
|
22448f |
https://bugzilla.gnome.org/show_bug.cgi?id=753724
|
|
|
22448f |
---
|
|
|
22448f |
plugins/rdp/vinagre-rdp-plugin.c | 9 +++++++++
|
|
|
22448f |
1 file changed, 9 insertions(+)
|
|
|
22448f |
|
|
|
22448f |
diff --git a/plugins/rdp/vinagre-rdp-plugin.c b/plugins/rdp/vinagre-rdp-plugin.c
|
|
|
22448f |
index a11d5a6..3929065 100644
|
|
|
22448f |
--- a/plugins/rdp/vinagre-rdp-plugin.c
|
|
|
22448f |
+++ b/plugins/rdp/vinagre-rdp-plugin.c
|
|
|
22448f |
@@ -102,6 +102,7 @@ impl_get_connect_widget (VinagreProtocol *plugin, VinagreConnection *conn)
|
|
|
22448f |
{
|
|
|
22448f |
GtkWidget *grid, *label, *u_entry, *spin_button;
|
|
|
22448f |
gchar *str;
|
|
|
22448f |
+ gint width, height;
|
|
|
22448f |
|
|
|
22448f |
grid = gtk_grid_new ();
|
|
|
22448f |
gtk_grid_set_row_spacing (GTK_GRID (grid), 6);
|
|
|
22448f |
@@ -146,6 +147,10 @@ impl_get_connect_widget (VinagreProtocol *plugin, VinagreConnection *conn)
|
|
|
22448f |
g_object_set_data (G_OBJECT (grid), "width_spin_button", spin_button);
|
|
|
22448f |
gtk_grid_attach (GTK_GRID (grid), spin_button, 1, 2, 1, 1);
|
|
|
22448f |
gtk_label_set_mnemonic_widget (GTK_LABEL (label), spin_button);
|
|
|
22448f |
+ width = VINAGRE_IS_CONNECTION (conn) ?
|
|
|
22448f |
+ vinagre_connection_get_width (conn) :
|
|
|
22448f |
+ vinagre_cache_prefs_get_integer ("rdp-connection", "width", DEFAULT_WIDTH);
|
|
|
22448f |
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin_button), width);
|
|
|
22448f |
gtk_entry_set_activates_default (GTK_ENTRY (spin_button), TRUE);
|
|
|
22448f |
|
|
|
22448f |
|
|
|
22448f |
@@ -162,6 +167,10 @@ impl_get_connect_widget (VinagreProtocol *plugin, VinagreConnection *conn)
|
|
|
22448f |
g_object_set_data (G_OBJECT (grid), "height_spin_button", spin_button);
|
|
|
22448f |
gtk_grid_attach (GTK_GRID (grid), spin_button, 1, 3, 1, 1);
|
|
|
22448f |
gtk_label_set_mnemonic_widget (GTK_LABEL (label), spin_button);
|
|
|
22448f |
+ height = VINAGRE_IS_CONNECTION (conn) ?
|
|
|
22448f |
+ vinagre_connection_get_height (conn) :
|
|
|
22448f |
+ vinagre_cache_prefs_get_integer ("rdp-connection", "height", DEFAULT_HEIGHT);
|
|
|
22448f |
+ gtk_spin_button_set_value (GTK_SPIN_BUTTON (spin_button), height);
|
|
|
22448f |
gtk_entry_set_activates_default (GTK_ENTRY (spin_button), TRUE);
|
|
|
22448f |
|
|
|
22448f |
|
|
|
22448f |
--
|
|
|
22448f |
cgit v0.12
|
|
|
22448f |
|