Acnezine PA Hire London Bali Real Estate

Empathy Tipps: Wie Sie das Fenster mit Esc Shortcut schließen und ändern Sie die Windows-Wechsel

18. Mai

Tips para Empathy: Como cerrar la ventana con Esc y cambiar el Shortcut de cambio de ventanas

Neulich habe ich beschlossen, zu löschen meinem Ubuntu 11,04 Pidgin und Empathy begleichen aufgrund seiner Integration.
Sobald ich auf die Anwendung zu testen begonnen fand ich 2 große Probleme.

  1. Ich kann mich nicht zwischen Fenstern wechseln mit Strg + Tab
  2. Ich kann nicht schließen Sie die bestehenden Fenster mit Esc oder Esc

Laut den Machern von ihnen sind nicht Bugs Empathie, sagt aber Gnome Escape = annullieren und Strg + Tab = Umschalten zwischen Text-Elemente konzentrieren. Deshalb ist im Einklang mit Gnome nicht wollen, um diese Optionen in Ihrem Code setzen.

Dann herauszufinden, für eine lange Zeit fand ich das Update für dieses Problem.

Es ist eine Datei im Dateisystem eingerichtet, in denen alle Aktionen auf unserer GTK-Fenster ausgeführt werden können, festgelegt. Diese Aktionen haben, was heißt "Accelerators" sind Tastenkombinationen.

/ Usr / share / Einfühlungsvermögen / Empathie-chat-window.ui: Zuerst haben wir auf die Datei gehen

Wir werden so zu bearbeiten sudo (sudo gedit / usr / share / Einfühlungsvermögen / Empathie-chat-window.ui).

Nach dem Öffnen werden Sie sehen, dass ein gemeinsames XML-und Strom mit verschiedenen Aktionen ist.

Zunächst suchen Sie nach der folgenden Zeile:

  1
  id = "menu_conv_close" > <object "GtkAction" class = id = "menu_conv_close"> 
  <object class="GtkAction" id="menu_conv_close"> 

Sie werden sehen, dass unterhalb dieser Linie wird es einige ähnlich:

  1
  modifiers = "GDK_CONTROL_MASK" /> key = "q" <accelerator Modifikatoren = "GDK_CONTROL_MASK" /> 
  key = "q" <accelerator modifiers="GDK_CONTROL_MASK"/> 

Was sagt dies ist zu schließen, dass das Gespräch nicht berühren Strg + K. Wir wollen es ändern zu entkommen, dann ändern Sie die Zeile oben mit:

  1
  /> key = "Escape" <accelerator /> 
  <accelerator key="Escape"/> 

und bereit :) .

Going to the zweite Problem der Änderung der Fenster mit Strg + Tab ist ein bisschen komplizierter. Standardmäßig GNOME lässt uns nicht ändern, die Fenster mit Strg + Tab und der wiederum lässt keine GTK-Anwendung bindear eine Verknüpfung mit der Tab-Taste. Wenn wir das tun wollten, sollten wir uns berühren Sie den Code ändern und ein FLAG Empathie, um uns auf das, was Gnome sagt fort. Da dies würde harte Arbeit sein, beschlossen, Strg + Tab und Strg + Umschalt + Tab zu wechseln Strg + A in diesem Fall, die sehr ähnlich ist.

Dann schauen jetzt in der gleichen Datei die folgenden 2 Zeilen

  1
  id = "menu_tabs_prev" > <object "GtkAction" class = id = "menu_tabs_prev"> 
  <object class="GtkAction" id="menu_tabs_prev"> 
  1
  id = "menu_tabs_next" > <object "GtkAction" class = id = "menu_tabs_next"> 
  <object class="GtkAction" id="menu_tabs_next"> 

Und ändern Sie die beiden Beschleuniger. Die aktuellen Shortcuts sagen Sie zur Registerkarte ändern, müssen Sie Strg + Bild ab, so dass die Verknüpfung ich über 3 Schichten verwenden, haben Sie bedeutet : P . Ändern Sie dann die folgenden jeweils:

  1
  modifiers = "GDK_CONTROL_MASK|GDK_SHIFT_MASK" /> key = "a" <accelerator Modifikatoren = "GDK_CONTROL_MASK|GDK_SHIFT_MASK" /> 
  key = "a" <accelerator modifiers="GDK_CONTROL_MASK|GDK_SHIFT_MASK"/> 
  1
  modifiers = "GDK_CONTROL_MASK" /> key = "a" <accelerator Modifikatoren = "GDK_CONTROL_MASK" /> 
  key = "a" <accelerator modifiers="GDK_CONTROL_MASK"/> 

Danach starten Sie Empathie und voila!

Ich überlasse es Ihnen meine Konfigurationsdatei zu entscheiden, trat direkt:

  1
 2
 3
 4
 5
 6
 7
 8
 9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
 100
 101
 102
 103
 104
 105
 106
 107
 108
 109
 110
 111
 112
 113
 114
 115
 116
 117
 118
 119
 120
 121
 122
 123
 124
 125
 126
 127
 128
 129
 130
 131
 132
 133
 134
 135
 136
 137
 138
 139
 140
 141
 142
 143
 144
 145
 146
 147
 148
 149
 150
 151
 152
 153
 154
 155
 156
 157
 158
 159
 160
 161
 162
 163
 164
 165
 166
 167
 168
 169
 170
 171
 172
 173
 174
 175
 176
 177
 178
 179
 180
 181
 182
 183
 184
 185
 186
 187
 188
 189
 190
 191
 192
 193
 194
 195
 196
 197
 198
 199
 200
 201
 202
 203
 204
 205
 206
 207
 208
 209
 210
 211
 212
 213
 214
 215
 216
 217
 218
 219
 220
 221
 222
 223
 224
 225
 226
 227
 228
 229
 ?> <!--*- mode: xml <? Xml version = "1.0"> <- * - Modus: xml  Plaudern  für Alle  Kontakt  = "t" modifiers = "GDK_SHIFT_MASK | Tab schließen </ property> </ object> <Beschleuniger key = "t" Modifikatoren = "GDK_SHIFT_MASK |  Tab  Tab 
 <? Xml version = "1.0"> <! - * - Modus: XML - * -> <object class = "GtkUIManager" <interface> id = "ui_manager"> <Child> <object class = "GtkActionGroup" id = "actiongroup1"> <object class = "GtkAction" <Child> id = "menu_conv"> <property name="NAME"> menu_conv </ property> <property name="label" translatable="yes"> _Conversation < / property> </ object> </ Kind> <object class = "GtkAction" <Child> id = "menu_conv_clear"> <property name="stock_id"> gtk-klar </ property> <property name="NAME"> menu_conv_clear </ property> <property name="label" translatable="yes"> _Lösche </ property> </ object> <accelerator key="L" modifiers="GDK_CONTROL_MASK"/> </ Kind> <Child> <object class = "GtkAction" id = "menu_conv_insert_smiley"> <property name="icon-name"> Gesicht-smile </ property> <property name="NAME"> menu_conv_insert_smiley </ property> <Eigenschaftsname = "label" übersetzbar = "Ja"> Einfügen _smiley </ property> </ object> </ Kind> <object class = "GtkToggleAction" <Child> id = "menu_conv_favorite"> <property name="NAME"> menu_conv_favorite </ property> <Eigenschaftsname = "label" übersetzbar = "yes"> _Favorite Chat Room </ property> </ object> </ Kind> <object class = "GtkToggleAction" <Child> id = "menu_conv_always_urgent"> <property name="NAME"> menu_conv_always_urgent </ property> <property name="label" Benachrichtigen translatable="yes"> für Alle Nachrichten </ property> </ object> </ Kind> <object class = "GtkToggleAction" <Child> id = "menu_conv_toggle_contacts"> < Eigentum name = "name"> menu_conv_toggle_contacts </ property> <property name="active"> True </ property> <property name="label" translatable="yes"> _Show Kontaktliste </ property> </ object> < / Kind> <object class = "GtkAction" <Child> id = "menu_conv_invite_participant"> <property name="NAME"> menu_conv_invite_participant </ property> <property name="label" translatable="yes"> _Participant einladen ... </ property> </ object> </ Kind> <object class = "GtkAction" <Child> id = "menu_conv_close"> <property name="stock_id"> gtk-nahe </ property> <property name="NAME"> menu_conv_close </ property> </ object> <accelerator key="Escape"/> </ Kind> <object class = "GtkAction" <Child> id = "menu_contact"> <property name="NAME"> menu_contact </ property> <property name="label" translatable="yes"> C_ontact </ property> </ object> </ Kind> <object class = "GtkAction" <Child> id = "menu_edit"> <property name="NAME"> menu_edit </ property> <property name="label" translatable="yes"> _edit </ property> </ object> </ Kind> <object class = "GtkAction" <Child> id = "menu_edit_cut"> <Eigenschaftsname = "stock_id"> gtk-Schnitt </ property> <property name="NAME"> menu_edit_cut </ property> </ object> <accelerator key="X" modifiers="GDK_CONTROL_MASK"/> </ Kind> <Child> <object class="GtkAction" id="menu_edit_copy"> <property name="stock_id"> gtk-Kopie </ property> <property name="NAME"> menu_edit_copy </ property> </ object> <Beschleuniger key = " C "Modifier =" GDK_CONTROL_MASK "/> </ Kind> <object class =" GtkAction "<Child> id =" menu_edit_paste "> <property name="stock_id"> gtk-Paste </ property> <Eigenschaft name =" name "> menu_edit_paste </ property> </ object> <accelerator key="V" modifiers="GDK_CONTROL_MASK"/> </ Kind> <object class =" GtkAction "<Child> id =" menu_edit_find "> <Eigenschaftsname =" stock_id "> gtk-finden </ property> <property name="NAME"> menu_edit_find </ property> </ object> <accelerator key="F" modifiers="GDK_CONTROL_MASK"/> </ Kind> <Child> <object class = "GtkAction" id = "menu_tabs"> <property name="NAME"> menu_tabs </ property> <property name="label" translatable="yes"> _Tabs </ property> </ object> </ Kind> <Objekt <Child> class = "GtkAction" id = "menu_tabs_prev"> <property name="NAME"> menu_tabs_prev </ property> <property name="label" translatable="yes"> _Vorherige Tab </ property> </ object> <accelerator key="a" modifiers="GDK_CONTROL_MASK|GDK_SHIFT_MASK"/> </ Kind> <object class = "GtkAction" <Child> id = "menu_tabs_next"> <property name="NAME"> menu_tabs_next </ property > <property name="label" translatable="yes"> _NEXT Tab </ property> </ object> <accelerator key="a" modifiers="GDK_CONTROL_MASK"/> </ Kind> <Child> <object class = " GtkAction "id =" menu_tabs_undo_close_tab "> <property name="NAME"> menu_tabs_undo_close_tab </ property> <property name="label" translatable="yes"> _Undo Tab schließen </ property> </ object> <Beschleuniger key =" t "Modifikatoren =" GDK_SHIFT_MASK | GDK_CONTROL_MASK "/> </ Kind> <object class =" GtkAction "<Child> id =" menu_tabs_left "> <property name="NAME"> menu_tabs_left </ property> <Eigenschaftsname =" Label "übersetzbar =" yes "> Unterfenster nach _left </ property> </ object> <accelerator key="Page_Up" modifiers="GDK_CONTROL_MASK|GDK_SHIFT_MASK"/> </ Kind> <Child> <object class =" GtkAction "id = "menu_tabs_right"> <property name="NAME"> menu_tabs_right </ property> Unterfenster nach <property translatable="yes"> name = "label" _Right </ property> </ object> <Beschleuniger key = "PAGE_DOWN" Modifikatoren = "GDK_CONTROL_MASK | GDK_SHIFT_MASK" /> </ Kind> <object class = "GtkAction" <Child> id = "menu_tabs_detach"> <property name="NAME"> menu_tabs_detach </ property> <Eigenschaftsname = "label" übersetzbar = " yes "> _Detach Tab </ property> </ object> </ Kind> <object class =" GtkAction "<Child> id =" MENU_HELP "> <property name="NAME"> MENU_HELP </ property> <Eigenschaftsname = "label" übersetzbar = "yes"> _Hilfe </ property> </ object> </ Kind> <object class = "GtkAction" <Child> id = "menu_help_contents"> <property name="stock_id"> gtk-help < / property> <property name="NAME"> menu_help_contents </ property> <property name="label" translatable="yes"> _inhalt </ property> </ object> <Beschleuniger key = "F1" Modifikatoren = "" / > </ Kind> <object class = "GtkAction" <Child> id = "menu_help_about"> gtk-über <property name="stock_id"> </ property> <property name="NAME"> menu_help_about </ property> < / object> </ Kind> </ object> </ Kind> <UI> <menubar name="chats_menubar"> <menu action="menu_conv"> <menuitem action="menu_conv_clear"/> <menuitem action = "menu_conv_insert_smiley" /> <menuitem action="menu_conv_favorite"/> <menuitem action="menu_conv_always_urgent"/> <menuitem action="menu_conv_toggle_contacts"/> <menuitem action="menu_conv_invite_participant"/> <separator/> <menuitem action = "menu_conv_close" / > </ menu> <menu action="menu_contact" /> <menu action="menu_edit"> <menuitem action="menu_edit_cut"/> <menuitem action="menu_edit_copy"/> <menuitem action="menu_edit_paste"/> < Separator /> <menuitem action="menu_edit_find"/> </ menu> <menu action="menu_tabs"> <menuitem action="menu_tabs_prev"/> <menuitem action="menu_tabs_next"/> <menuitem action = "menu_tabs_undo_close_tab" / > <separator/> <menuitem action="menu_tabs_left"/> <menuitem action="menu_tabs_right"/> <menuitem action="menu_tabs_detach"/> </ menu> <menu action="menu_help"> <menuitem action = "menu_help_contents "/> <placeholder name="LaunchpadItems"/> <menuitem action="menu_help_about"/> </ menu> </ menubar> </ u> </ object> <object class="GtkWindow" id="chat_window"> <property name="title" translatable="yes"> Chat </ property> <property name="role"> Chat </ property> <property name="default_width"> 580 </ property> <Eigenschaftsname = "default_height "> 480 </ property> <object class =" GtkVBox "<Child> id =" chat_vbox "> <property name="visible"> True </ property> <Child> <object class =" GtkMenuBar "builder =" ui_manager "id =" chats_menubar "> <property name="visible"> True </ property> </ object> <property name="expand"> <packing> false </ property> <property name="fill"> false < / property> </ Verpackung> </ Kind> <Child> <placeholder/> </ Kind> </ object> </ Kind> </ object> </ interface>