|
|
5444c09 |
diff -up vinagre-3.3.2/plugins/spice/vinagre-spice-plugin.c.bak vinagre-3.3.2/plugins/spice/vinagre-spice-plugin.c
|
|
|
5444c09 |
--- vinagre-3.3.2/plugins/spice/vinagre-spice-plugin.c.bak 2011-11-21 18:52:48.000000000 +0100
|
|
|
5444c09 |
+++ vinagre-3.3.2/plugins/spice/vinagre-spice-plugin.c 2011-11-24 18:30:15.000000000 +0100
|
|
|
5444c09 |
@@ -215,7 +215,7 @@ impl_get_connect_widget (VinagreProtocol
|
|
|
5444c09 |
|
|
|
5444c09 |
grid = gtk_grid_new ();
|
|
|
5444c09 |
label = gtk_label_new (" ");
|
|
|
5444c09 |
- gtk_grid_attach (grid, label, 0, 0, 1, 1);
|
|
|
5444c09 |
+ gtk_grid_attach (GTK_GRID (grid), label, 0, 0, 1, 1);
|
|
|
5444c09 |
|
|
|
5444c09 |
/* View only check button - not fully ready on spice-gtk side */
|
|
|
5444c09 |
check = gtk_check_button_new_with_mnemonic (_("_View only"));
|
|
|
5444c09 |
@@ -228,7 +228,7 @@ impl_get_connect_widget (VinagreProtocol
|
|
|
5444c09 |
/* Resize guest check button */
|
|
|
5444c09 |
check = gtk_check_button_new_with_mnemonic (_("_Resize guest"));
|
|
|
5444c09 |
g_object_set_data (G_OBJECT (box), "resize_guest", check);
|
|
|
5444c09 |
- gtk_grid_attach (grid, check, 1, 0, 1, 1);
|
|
|
5444c09 |
+ gtk_grid_attach (GTK_GRID (grid), check, 1, 0, 1, 1);
|
|
|
5444c09 |
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check),
|
|
|
5444c09 |
has_conn ? vinagre_spice_connection_get_resize_guest (VINAGRE_SPICE_CONNECTION (conn))
|
|
|
5444c09 |
: vinagre_cache_prefs_get_boolean ("spice-connection", "resize-guest", TRUE));
|
|
|
5444c09 |
@@ -236,7 +236,7 @@ impl_get_connect_widget (VinagreProtocol
|
|
|
5444c09 |
/* Clipboard sharing check button */
|
|
|
5444c09 |
check = gtk_check_button_new_with_mnemonic (_("_Share clipboard"));
|
|
|
5444c09 |
g_object_set_data (G_OBJECT (box), "auto_clipboard", check);
|
|
|
5444c09 |
- gtk_grid_attach (table, check, 1, 1, 1, 1);
|
|
|
5444c09 |
+ gtk_grid_attach (GTK_GRID (grid), check, 1, 1, 1, 1);
|
|
|
5444c09 |
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check),
|
|
|
5444c09 |
has_conn ? vinagre_spice_connection_get_auto_clipboard (VINAGRE_SPICE_CONNECTION (conn))
|
|
|
5444c09 |
: vinagre_cache_prefs_get_boolean ("spice-connection", "auto-clipboard", TRUE));
|
|
|
5444c09 |
@@ -244,7 +244,7 @@ impl_get_connect_widget (VinagreProtocol
|
|
|
5444c09 |
/* Scaling check button */
|
|
|
5444c09 |
check = gtk_check_button_new_with_mnemonic (_("_Scaling"));
|
|
|
5444c09 |
g_object_set_data (G_OBJECT (box), "scaling", check);
|
|
|
5444c09 |
- gtk_grid_attach (table, check, 1, 2, 1, 1);
|
|
|
5444c09 |
+ gtk_grid_attach (GTK_GRID (grid), check, 1, 2, 1, 1);
|
|
|
5444c09 |
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check),
|
|
|
5444c09 |
has_conn ? vinagre_spice_connection_get_scaling (VINAGRE_SPICE_CONNECTION (conn))
|
|
|
5444c09 |
: vinagre_cache_prefs_get_boolean ("spice-connection", "scaling", FALSE));
|
|
|
5444c09 |
@@ -286,7 +286,7 @@ impl_get_connect_widget (VinagreProtocol
|
|
|
5444c09 |
gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (check), ssh_host && *ssh_host);
|
|
|
5444c09 |
g_free (ssh_host);
|
|
|
5444c09 |
|
|
|
5444c09 |
- gtk_grid_attach (table, box2, 1, 3, 1, 1);
|
|
|
5444c09 |
+ gtk_grid_attach (GTK_GRID (grid), box2, 1, 3, 1, 1);
|
|
|
5444c09 |
|
|
|
5444c09 |
/* Password */
|
|
|
5444c09 |
box2 = gtk_box_new (GTK_ORIENTATION_HORIZONTAL, 6);
|