1 --- vinagre-0.5.0.orig/src/vinagre-tab.h 2008-05-09 16:25:27.000000000 +0200
2 +++ vinagre-0.5.0/src/vinagre-tab.h 2008-05-09 16:33:24.000000000 +0200
4 void vinagre_tab_paste_text (VinagreTab *tab,
7 +void vinagre_tab_send_cad (VinagreTab *tab);
9 gboolean vinagre_tab_set_scaling (VinagreTab *tab, gboolean active);
10 gboolean vinagre_tab_get_scaling (VinagreTab *tab);
13 --- vinagre-0.5.0.orig/src/vinagre-tab.c 2008-05-09 16:25:27.000000000 +0200
14 +++ vinagre-0.5.0/src/vinagre-tab.c 2008-05-09 16:36:53.000000000 +0200
16 #include <gnome-keyring.h>
17 #include <vncdisplay.h>
19 +#include <gdk/gdkkeysyms.h>
21 #include "vinagre-notebook.h"
22 #include "vinagre-tab.h"
23 #include "vinagre-utils.h"
25 return tab->priv->state;
29 +vinagre_tab_send_cad(VinagreTab *tab)
31 + g_return_if_fail (VINAGRE_IS_TAB (tab));
33 + guint keys[] = { GDK_Control_L, GDK_Alt_L, GDK_Delete };
34 + vnc_display_send_keys(VNC_DISPLAY(tab->priv->vnc), keys, sizeof(keys)/sizeof(keys[0]));
39 --- vinagre-0.5.0.orig/src/vinagre-window.c 2008-05-09 16:25:27.000000000 +0200
40 +++ vinagre-0.5.0/src/vinagre-window.c 2008-05-09 16:40:38.000000000 +0200
45 + switch (event->keyval)
48 + if (window->priv->active_tab)
49 + vinagre_window_toggle_fullscreen (window);
52 + if (window->priv->active_tab) {
53 + if ((event->state & GDK_CONTROL_MASK) && (event->state & GDK_MOD1_MASK))
54 + vinagre_tab_send_cad(VINAGRE_TAB(window->priv->active_tab));
58 return GTK_WIDGET_CLASS (vinagre_window_parent_class)->key_press_event (widget, event);