updated on Sun Jan 15 16:02:00 UTC 2012
[aur-mirror.git] / vinagre-tweak / vinagre-ctrl_alt_del.patch
blob0b0a6d435823f81a6302180c0b94acaf53c7de10
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
3 @@ -87,6 +87,8 @@
4 void vinagre_tab_paste_text (VinagreTab *tab,
5 const gchar *text);
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
15 @@ -27,6 +27,8 @@
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"
24 @@ -822,4 +824,13 @@
25 return tab->priv->state;
28 +void
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]));
37 /* vim: ts=8 */
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
41 @@ -187,6 +187,19 @@
42 return FALSE;
45 + switch (event->keyval)
46 + {
47 + case GDK_F11:
48 + if (window->priv->active_tab)
49 + vinagre_window_toggle_fullscreen (window);
50 + return FALSE;
51 + case GDK_Insert:
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));
55 + }
56 + }
58 return GTK_WIDGET_CLASS (vinagre_window_parent_class)->key_press_event (widget, event);