1
0
Fork 0

Sync with upstream r3901

Merge branch 'upstream' into clutter
This commit is contained in:
Tomas Frydrych 2008-09-17 17:12:27 +01:00
commit d509097967
25 changed files with 9261 additions and 8955 deletions

View file

@ -1,3 +1,57 @@
2008-09-12 Vincent Untz <vuntz@gnome.org>
Install desktop files in both
.../share/applications and .../share/gnome/wm-properties.
Copied in from the 2.23.x branch. Closes #549479.
* src/metacity-wm.desktop.in: new file
* src/.cvsignore: include the above
* src/Makefile.am: install the above
2008-09-06 Thomas Thurman <tthurman@gnome.org>
An attempt to keep all information about window bindings
in the same place. Screen bindings to come.
* src/core/window-bindings.h: new file, list of all window bindings
* src/include/prefs.h: drop all the existing window-binding macros
* src/core/schema-bindings.c (): output all the schema blocks that
would appear in metacity.schema for these window bindings. This
ought to become part of the build process, and hopefully will soon.
When this works it will also close #469361.
* src/core/keybindings.c: generate handle_* prototypes using
x-macros; populate window_handlers using x-macros; rename several
functions to have consistent names; do_handle_move_to_workspace(),
handle_move_to_workspace_flip(), and handle_move_to_workspace() all
merged into handle_move_to_workspace.
* src/core/prefs.c: generate window_bindings and window_string_bindings
using x-macros; (meta_prefs_set_compositing_manager) fix unrelated
problem with use of GConf functions when GConf was disabled.
* src/core/core.c (meta_core_get_menu_accelerator): binding names
given as literals since this is the only place in the code they
now appear
2008-09-03 Thomas Thurman <tthurman@gnome.org>
* src/metacity.desktop.in: removed invalid "Window Manager" group
at request of Matthias Clasen.
2008-09-02 Thomas Thurman <tthurman@gnome.org>
Desktop file moved, according to policy change. Closes #549479.
* src/metacity.desktop.in: Don't display the desktop file
* src/Makefile.am: Desktop file goes in apps directory
2008-09-01 Thomas Thurman <tthurman@gnome.org>
* configure.in: Post-release bump to 2.25.2.
2008-09-01 Thomas Thurman <tthurman@gnome.org>
* NEWS: 2.25.1 release.

View file

@ -4,7 +4,7 @@ m4_define([metacity_major_version], [2])
m4_define([metacity_minor_version], [25])
# Fibonacci sequence for micro version numbering:
# 0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987
m4_define([metacity_micro_version], [1])
m4_define([metacity_micro_version], [2])
m4_define([metacity_version],
[metacity_major_version.metacity_minor_version.metacity_micro_version])

View file

@ -1,3 +1,39 @@
2008-09-17 Gabor Kelemen <kelemeng@gnome.hu>
* hu.po: Translation updated.
2008-09-14 Duarte Loreto <happyguy_pt@hotmail.com>
* pt.po: Fixed Portuguese terminology.
2008-09-12 Hendrik Richter <hendrikr@gnome.org>
* de.po: Updated German translation.
2008-09-12 Goran Rakić <grakic@devbase.net>
* sr.po, sr@latin.po: Updated Serbian translation (by Miloš Popović).
2008-09-09 Robert Sedak <robert.sedak@sk.t-com.hr>
* hr.po: Updated Croatian translation.
2008-09-08 Priit Laes <plaes at svn dot gnome dot org>
* et.po: Translation updated by Mattias Põldaru
2008-09-07 Seán de Búrca <sdeburca@svn.gnome.org>
* ga.po: Updated Irish translation.
2008-09-06 Funda Wang <fundawang@gmail.com>
* zh_CN.po: Updated zh_CN translation.
2008-09-06 Claude Paroz <claude@2xlibre.net>
* fr.po: Updated French translation.
2008-08-24 Gintautas Miliauskas <gintas@akl.lt>
* lt.po: Updated Lithuanian translation.

View file

@ -67,7 +67,7 @@ sk
sl
sq
sr
sr@Latn
sr@latin
sv
ta
th

411
po/ar.po

File diff suppressed because it is too large Load diff

814
po/de.po

File diff suppressed because it is too large Load diff

5244
po/et.po

File diff suppressed because it is too large Load diff

1048
po/fr.po

File diff suppressed because it is too large Load diff

833
po/ga.po

File diff suppressed because it is too large Load diff

3373
po/hr.po

File diff suppressed because it is too large Load diff

174
po/hu.po
View file

@ -10,8 +10,8 @@ msgid ""
msgstr ""
"Project-Id-Version: metacity.HEAD\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2008-06-13 23:11+0000\n"
"PO-Revision-Date: 2008-06-21 15:41+0200\n"
"POT-Creation-Date: 2008-08-14 04:06+0000\n"
"PO-Revision-Date: 2008-09-17 02:55+0200\n"
"Last-Translator: Gabor Kelemen <kelemeng@gnome.hu>\n"
"Language-Team: Hungarian <gnome@fsf.hu>\n"
"MIME-Version: 1.0\n"
@ -22,7 +22,7 @@ msgstr ""
#: ../src/50-metacity-desktop-key.xml.in.h:1
msgid "Desktop"
msgstr "Munkaasztal"
msgstr "Asztal"
#: ../src/50-metacity-key.xml.in.h:1
msgid "Window Management"
@ -156,7 +156,7 @@ msgstr "A használandó X megjelenítő"
#: ../src/core/main.c:265
msgid "Initialize session from savefile"
msgstr "A munkamenet inicializálása a mentési fájlból"
msgstr "A munkamenet előkészítése a mentési fájlból"
#: ../src/core/main.c:271
msgid "Print version"
@ -191,25 +191,27 @@ msgstr "Újraindítás sikertelen: %s\n"
#. * (We know the old value, so we can look up a suitable string in
#. * the symtab.)
#.
#: ../src/core/prefs.c:496 ../src/core/prefs.c:648
#: ../src/core/prefs.c:502 ../src/core/prefs.c:654
#, c-format
msgid "GConf key '%s' is set to an invalid value\n"
msgstr "„%s” GConf kulcs érvénytelen értékre van állítva\n"
#: ../src/core/prefs.c:577 ../src/core/prefs.c:817
#: ../src/core/prefs.c:583 ../src/core/prefs.c:823
#, c-format
msgid "%d stored in GConf key %s is out of range %d to %d\n"
msgstr "%d, ami a(z) %s GConf kulcsban van tárolva, a tartományon (%d - %d) kívül van\n"
msgstr ""
"%d, ami a(z) %s GConf kulcsban van tárolva, a tartományon (%d - %d) kívül "
"van\n"
#: ../src/core/prefs.c:621 ../src/core/prefs.c:695 ../src/core/prefs.c:743
#: ../src/core/prefs.c:807 ../src/core/prefs.c:1101 ../src/core/prefs.c:1117
#: ../src/core/prefs.c:1136 ../src/core/prefs.c:1152 ../src/core/prefs.c:1169
#: ../src/core/prefs.c:1185
#: ../src/core/prefs.c:627 ../src/core/prefs.c:701 ../src/core/prefs.c:749
#: ../src/core/prefs.c:813 ../src/core/prefs.c:1108 ../src/core/prefs.c:1124
#: ../src/core/prefs.c:1143 ../src/core/prefs.c:1159 ../src/core/prefs.c:1176
#: ../src/core/prefs.c:1192
#, c-format
msgid "GConf key \"%s\" is set to an invalid type\n"
msgstr "„%s” GConf kulcs érvénytelen típusú\n"
#: ../src/core/prefs.c:1255
#: ../src/core/prefs.c:1262
msgid ""
"Workarounds for broken applications disabled. Some applications may not "
"behave properly.\n"
@ -217,14 +219,14 @@ msgstr ""
"A hibás alkalmazások hibáinak megkerülése nincs engedélyezve. Néhány "
"alkalmazás lehet, hogy nem fog helyesen működni.\n"
#: ../src/core/prefs.c:1325
#: ../src/core/prefs.c:1332
#, c-format
msgid "Could not parse font description \"%s\" from GConf key %s\n"
msgstr ""
"Nem sikerült feldolgozni a(z) „%s” betűkészlet leírását a(z) „%s” GConf "
"kulcsból\n"
#: ../src/core/prefs.c:1385
#: ../src/core/prefs.c:1392
#, c-format
msgid ""
"\"%s\" found in configuration database is not a valid value for mouse button "
@ -233,17 +235,17 @@ msgstr ""
"A konfigurációs adatbázisban talált „%s” érvénytelen érték az egérgomb "
"módosítóhoz\n"
#: ../src/core/prefs.c:1799
#: ../src/core/prefs.c:1809
#, c-format
msgid "Error setting number of workspaces to %d: %s\n"
msgstr "Hiba a munkaterületek számának beállításánál a következőre: %d: %s\n"
#: ../src/core/prefs.c:2164 ../src/core/prefs.c:2676
#: ../src/core/prefs.c:2174 ../src/core/prefs.c:2686
#, c-format
msgid "Workspace %d"
msgstr "%d. munkaterület"
#: ../src/core/prefs.c:2194 ../src/core/prefs.c:2367
#: ../src/core/prefs.c:2204 ../src/core/prefs.c:2377
#, c-format
msgid ""
"\"%s\" found in configuration database is not a valid value for keybinding "
@ -252,7 +254,7 @@ msgstr ""
"A konfigurációs adatbázisban talált „%s” nem érvényes érték a következő "
"billentyűkombinációhoz: „%s”\n"
#: ../src/core/prefs.c:2757
#: ../src/core/prefs.c:2767
#, c-format
msgid "Error setting name for workspace %d to \"%s\": %s\n"
msgstr "Hiba a(z) %d. munkaterület nevének beállításánál a következőre: „%s”: %s\n"
@ -419,7 +421,7 @@ msgstr ""
"s.\n"
#. first time through
#: ../src/core/window.c:5674
#: ../src/core/window.c:5648
#, c-format
msgid ""
"Window %s sets SM_CLIENT_ID on itself, instead of on the WM_CLIENT_LEADER "
@ -435,7 +437,7 @@ msgstr ""
#. * MWM but not WM_NORMAL_HINTS are basically broken. We complain
#. * about these apps but make them work.
#.
#: ../src/core/window.c:6239
#: ../src/core/window.c:6213
#, c-format
msgid ""
"Window %s sets an MWM hint indicating it isn't resizable, but sets min size %"
@ -525,11 +527,12 @@ msgid ""
"some space between two adjacent buttons."
msgstr ""
"A címsor gombjainak igazítása. Az értéknek szövegnek kell lennie, mint "
"például „menu:minimize,maximize,spacer,close”; a kettőspont választja el az ablak "
"jobb és bal sarkát, a gombneveket pedig vesszők. Kettőzött gombok nem "
"például „menu:minimize,maximize,spacer,close”; a kettőspont választja el az "
"ablak jobb és bal sarkát, a gombneveket pedig vesszők. Kettőzött gombok nem "
"megengedettek. Az ismeretlen gombnevek jelzés nélkül figyelmen kívül lesznek "
"hagyva, így a jövőbeli metacity verziókkal készült gombsorok visszafelé "
"kompatibilisek maradnak. A speciális spacer címkével némi hely szúrható két szomszédos gomb közé."
"kompatibilisek maradnak. A speciális spacer címkével némi hely szúrható két "
"szomszédos gomb közé."
#: ../src/metacity.schemas.in.h:9
msgid "Automatically raises the focused window"
@ -596,7 +599,7 @@ msgstr "„Látható csipogás” engedélyezése"
#: ../src/metacity.schemas.in.h:21
msgid "Hide all windows and focus desktop"
msgstr "Minden ablak elrejtése és fókusz a munkaasztalra"
msgstr "Minden ablak elrejtése és fókusz az asztalra"
#: ../src/metacity.schemas.in.h:22
msgid ""
@ -861,7 +864,7 @@ msgid ""
"workspaces."
msgstr ""
"A munkaterületek száma. Az értéknek nullánál nagyobbnak kell lennie, és van "
"egy rögzített maximális érték, amely megakadályozza a munkaasztal "
"egy rögzített maximális érték, amely megakadályozza az asztal "
"használhatatlanná tételét túl sok munkaterület véletlen beállításával."
#: ../src/metacity.schemas.in.h:74
@ -1364,7 +1367,7 @@ msgid ""
"will be no keybinding for this action."
msgstr ""
"Az a billentyűkombináció, amellyel el lehet rejteni az összes normál ablakot "
"és a fókuszt a munkaasztal hátterére lehet vinni. Formátuma ehhez hasonló: "
"és a fókuszt az asztal hátterére lehet vinni. Formátuma ehhez hasonló: "
"„&lt;Control&gt;a” vagy „&lt;Shift&gt;&lt;Alt&gt;F1”. Az elemző elég "
"liberális, nem érzékeny a kis- és nagybetűkre, valamint rövidítéseket (mint "
"„&lt;Ctl&gt;” és „&lt;Ctrl&gt;”) is megenged. Ha az opciót a speciális "
@ -2300,7 +2303,12 @@ msgstr ""
"Ez az opció határozza meg, hogy mi történjen a címsoron való dupla kattintás "
"esetén. Jelenleg érvényes opciók a „toggle_shade”, amely hatására az ablak "
"felgördül/legördül, a „toggle_maximize”, amely hatására teljes képernyős/"
"eredeti méretű lesz, „toggle_maximize_horizontally” és „toggle_maximize_vertically”, amelyek hatására az ablak csak vízszintesen/függőlegesen lesz maximalizázva, „minimize”, amely hatására kis méretű lesz az ablak, „shade”, amely hatásáraa az ablak felgördül, „menu”, amely megjeleníti az ablak menüt, „lower”, amely az ablakot a többi ablak mögé viszi és „none”, amely nem hajt végre semmit."
"eredeti méretű lesz, „toggle_maximize_horizontally” és "
"„toggle_maximize_vertically”, amelyek hatására az ablak csak vízszintesen/"
"függőlegesen lesz maximalizázva, „minimize”, amely hatására kis méretű lesz "
"az ablak, „shade”, amely hatásáraa az ablak felgördül, „menu”, amely "
"megjeleníti az ablak menüt, „lower”, amely az ablakot a többi ablak mögé "
"viszi és „none”, amely nem hajt végre semmit."
#: ../src/metacity.schemas.in.h:188
msgid ""
@ -2314,9 +2322,14 @@ msgid ""
"the others, and 'none' which will not do anything."
msgstr ""
"Ez az opció határozza meg, hogy mi történjen a címsoron való középsőgombos "
"kattintás esetén. Jelenleg érvényes opciók a „toggle_shade”, amely hatására az ablak "
"felgördül/legördül, a „toggle_maximize”, amely hatására teljes képernyős/"
"eredeti méretű lesz, „toggle_maximize_horizontally” és „toggle_maximize_vertically”, amelyek hatására az ablak csak vízszintesen/függőlegesen lesz maximalizázva, „minimize”, amely hatására kis méretű lesz az ablak, „shade”, amely hatásáraa az ablak felgördül, „menu”, amely megjeleníti az ablak menüt, „lower”, amely az ablakot a többi ablak mögé viszi és „none”, amely nem hajt végre semmit."
"kattintás esetén. Jelenleg érvényes opciók a „toggle_shade”, amely hatására "
"az ablak felgördül/legördül, a „toggle_maximize”, amely hatására teljes "
"képernyős/eredeti méretű lesz, „toggle_maximize_horizontally” és "
"„toggle_maximize_vertically”, amelyek hatására az ablak csak vízszintesen/"
"függőlegesen lesz maximalizázva, „minimize”, amely hatására kis méretű lesz "
"az ablak, „shade”, amely hatásáraa az ablak felgördül, „menu”, amely "
"megjeleníti az ablak menüt, „lower”, amely az ablakot a többi ablak mögé "
"viszi és „none”, amely nem hajt végre semmit."
#: ../src/metacity.schemas.in.h:189
msgid ""
@ -2330,9 +2343,14 @@ msgid ""
"the others, and 'none' which will not do anything."
msgstr ""
"Ez az opció határozza meg, hogy mi történjen a címsoron való jobb gombos "
"kattintás esetén. Jelenleg érvényes opciók a „toggle_shade”, amely hatására az ablak "
"felgördül/legördül, a „toggle_maximize”, amely hatására teljes képernyős/"
"eredeti méretű lesz, „toggle_maximize_horizontally” és „toggle_maximize_vertically”, amelyek hatására az ablak csak vízszintesen/függőlegesen lesz maximalizázva, „minimize”, amely hatására kis méretű lesz az ablak, „shade”, amely hatásáraa az ablak felgördül, „menu”, amely megjeleníti az ablak menüt, „lower”, amely az ablakot a többi ablak mögé viszi és „none”, amely nem hajt végre semmit."
"kattintás esetén. Jelenleg érvényes opciók a „toggle_shade”, amely hatására "
"az ablak felgördül/legördül, a „toggle_maximize”, amely hatására teljes "
"képernyős/eredeti méretű lesz, „toggle_maximize_horizontally” és "
"„toggle_maximize_vertically”, amelyek hatására az ablak csak vízszintesen/"
"függőlegesen lesz maximalizázva, „minimize”, amely hatására kis méretű lesz "
"az ablak, „shade”, amely hatásáraa az ablak felgördül, „menu”, amely "
"megjeleníti az ablak menüt, „lower”, amely az ablakot a többi ablak mögé "
"viszi és „none”, amely nem hajt végre semmit."
#: ../src/metacity.schemas.in.h:190
msgid ""
@ -3233,157 +3251,157 @@ msgstr "Nem található érvényes fájl a következő témához: %s\n"
msgid "Theme file %s did not contain a root <metacity_theme> element"
msgstr "%s téma fájl nem tartalmaz gyökér <metacity_theme> elemet"
#: ../src/ui/theme-viewer.c:74
#: ../src/ui/theme-viewer.c:75
msgid "/_Windows"
msgstr "/_Ablakok"
#: ../src/ui/theme-viewer.c:75
#: ../src/ui/theme-viewer.c:76
msgid "/Windows/tearoff"
msgstr "/Ablakok/leválasztó"
#: ../src/ui/theme-viewer.c:76
#: ../src/ui/theme-viewer.c:77
msgid "/Windows/_Dialog"
msgstr "/Ablakok/_Párbeszéd"
#: ../src/ui/theme-viewer.c:77
#: ../src/ui/theme-viewer.c:78
msgid "/Windows/_Modal dialog"
msgstr "/Ablakok/_Kizárólagos ablak"
#: ../src/ui/theme-viewer.c:78
#: ../src/ui/theme-viewer.c:79
msgid "/Windows/_Utility"
msgstr "/Ablakok/_Eszköz"
#: ../src/ui/theme-viewer.c:79
#: ../src/ui/theme-viewer.c:80
msgid "/Windows/_Splashscreen"
msgstr "/Windows/_Indítóképernyő"
#: ../src/ui/theme-viewer.c:80
#: ../src/ui/theme-viewer.c:81
msgid "/Windows/_Top dock"
msgstr "/Ablakok/_Felső dokk"
#: ../src/ui/theme-viewer.c:81
#: ../src/ui/theme-viewer.c:82
msgid "/Windows/_Bottom dock"
msgstr "/Ablakok/_Alsó dokk"
#: ../src/ui/theme-viewer.c:82
#: ../src/ui/theme-viewer.c:83
msgid "/Windows/_Left dock"
msgstr "/Ablakok/_Bal dokk"
#: ../src/ui/theme-viewer.c:83
#: ../src/ui/theme-viewer.c:84
msgid "/Windows/_Right dock"
msgstr "/Ablakok/_Jobb dokk"
#: ../src/ui/theme-viewer.c:84
#: ../src/ui/theme-viewer.c:85
msgid "/Windows/_All docks"
msgstr "/Ablakok/Össz_es dokk"
#: ../src/ui/theme-viewer.c:85
#: ../src/ui/theme-viewer.c:86
msgid "/Windows/Des_ktop"
msgstr "/Ablakok/_Asztal"
#: ../src/ui/theme-viewer.c:134
#: ../src/ui/theme-viewer.c:135
msgid "Open another one of these windows"
msgstr "Egy újabb példány megnyitása ezekből az ablakokból"
#: ../src/ui/theme-viewer.c:141
#: ../src/ui/theme-viewer.c:142
msgid "This is a demo button with an 'open' icon"
msgstr "Ez egy mintagomb a „Megnyitás” ikonnal"
#: ../src/ui/theme-viewer.c:148
#: ../src/ui/theme-viewer.c:149
msgid "This is a demo button with a 'quit' icon"
msgstr "Ez egy mintagomb a „Kilépés” ikonnal"
#: ../src/ui/theme-viewer.c:241
#: ../src/ui/theme-viewer.c:242
msgid "This is a sample message in a sample dialog"
msgstr "Ez egy mintaüzenet egy minta párbeszédben"
#: ../src/ui/theme-viewer.c:324
#: ../src/ui/theme-viewer.c:325
#, c-format
msgid "Fake menu item %d\n"
msgstr "%d. hamis menüelem\n"
#: ../src/ui/theme-viewer.c:358
#: ../src/ui/theme-viewer.c:359
msgid "Border-only window"
msgstr "Csak keretes ablak"
#: ../src/ui/theme-viewer.c:360
#: ../src/ui/theme-viewer.c:361
msgid "Bar"
msgstr "Sáv"
#: ../src/ui/theme-viewer.c:377
#: ../src/ui/theme-viewer.c:378
msgid "Normal Application Window"
msgstr "Normál alkalmazásablak"
#: ../src/ui/theme-viewer.c:381
#: ../src/ui/theme-viewer.c:382
msgid "Dialog Box"
msgstr "Párbeszédablak"
#: ../src/ui/theme-viewer.c:385
#: ../src/ui/theme-viewer.c:386
msgid "Modal Dialog Box"
msgstr "Kizárólagos párbeszéd doboz"
#: ../src/ui/theme-viewer.c:389
#: ../src/ui/theme-viewer.c:390
msgid "Utility Palette"
msgstr "Eszközpaletta"
#: ../src/ui/theme-viewer.c:393
#: ../src/ui/theme-viewer.c:394
msgid "Torn-off Menu"
msgstr "Leválasztott menü"
#: ../src/ui/theme-viewer.c:397
#: ../src/ui/theme-viewer.c:398
msgid "Border"
msgstr "Szegély"
#: ../src/ui/theme-viewer.c:725
#: ../src/ui/theme-viewer.c:726
#, c-format
msgid "Button layout test %d"
msgstr "Gombelrendezés teszt %d"
#: ../src/ui/theme-viewer.c:754
#: ../src/ui/theme-viewer.c:755
#, c-format
msgid "%g milliseconds to draw one window frame"
msgstr "%g ezredmásodpercig tartott egy ablakkeret kirajzolása"
#: ../src/ui/theme-viewer.c:797
#: ../src/ui/theme-viewer.c:798
#, c-format
msgid "Usage: metacity-theme-viewer [THEMENAME]\n"
msgstr "Használat: metacity-theme-viewer [TÉMANÉV]\n"
#: ../src/ui/theme-viewer.c:804
#: ../src/ui/theme-viewer.c:805
#, c-format
msgid "Error loading theme: %s\n"
msgstr "Hiba történt a téma betöltése közben: %s\n"
#: ../src/ui/theme-viewer.c:810
#: ../src/ui/theme-viewer.c:811
#, c-format
msgid "Loaded theme \"%s\" in %g seconds\n"
msgstr "A(z) „%s” téma %g másodperc alatt betöltve\n"
#: ../src/ui/theme-viewer.c:833
#: ../src/ui/theme-viewer.c:852
msgid "Normal Title Font"
msgstr "Normál cím betűtípus"
#: ../src/ui/theme-viewer.c:839
#: ../src/ui/theme-viewer.c:858
msgid "Small Title Font"
msgstr "Kicsi cím betűtípus"
#: ../src/ui/theme-viewer.c:845
#: ../src/ui/theme-viewer.c:864
msgid "Large Title Font"
msgstr "Nagy cím betűtípus"
#: ../src/ui/theme-viewer.c:850
#: ../src/ui/theme-viewer.c:869
msgid "Button Layouts"
msgstr "Gombelrendezések"
#: ../src/ui/theme-viewer.c:855
#: ../src/ui/theme-viewer.c:874
msgid "Benchmark"
msgstr "Teljesítményteszt"
#: ../src/ui/theme-viewer.c:902
#: ../src/ui/theme-viewer.c:921
msgid "Window Title Goes Here"
msgstr "Ide kerül az ablak címe"
#: ../src/ui/theme-viewer.c:1006
#: ../src/ui/theme-viewer.c:1025
#, c-format
msgid ""
"Drew %d frames in %g client-side seconds (%g milliseconds per frame) and %g "
@ -3394,39 +3412,39 @@ msgstr ""
"képkeretenként) és %g összes idő beleértve az X szerver erőforrásokat (%g "
"ezredmásodperc képkeretenként)\n"
#: ../src/ui/theme-viewer.c:1225
#: ../src/ui/theme-viewer.c:1244
msgid "position expression test returned TRUE but set error"
msgstr "a pozíció kifejezés teszt IGAZ értéket adott vissza, de hiba történt."
#: ../src/ui/theme-viewer.c:1227
#: ../src/ui/theme-viewer.c:1246
msgid "position expression test returned FALSE but didn't set error"
msgstr "a pozíció kifejezés teszt HAMIS értéket adott vissza, de nem történt hiba"
#: ../src/ui/theme-viewer.c:1231
#: ../src/ui/theme-viewer.c:1250
msgid "Error was expected but none given"
msgstr "Hibát vártunk, de nem történt egy sem"
#: ../src/ui/theme-viewer.c:1233
#: ../src/ui/theme-viewer.c:1252
#, c-format
msgid "Error %d was expected but %d given"
msgstr "A(z) %d hibát vártuk, de a(z) %d hiba következett be"
#: ../src/ui/theme-viewer.c:1239
#: ../src/ui/theme-viewer.c:1258
#, c-format
msgid "Error not expected but one was returned: %s"
msgstr "Nem várt hiba következett be: %s"
#: ../src/ui/theme-viewer.c:1243
#: ../src/ui/theme-viewer.c:1262
#, c-format
msgid "x value was %d, %d was expected"
msgstr "x értéke %d volt, de a várt érték %d volt"
#: ../src/ui/theme-viewer.c:1246
#: ../src/ui/theme-viewer.c:1265
#, c-format
msgid "y value was %d, %d was expected"
msgstr "y értéke %d volt, de a várt érték %d volt"
#: ../src/ui/theme-viewer.c:1311
#: ../src/ui/theme-viewer.c:1330
#, c-format
msgid "%d coordinate expressions parsed in %g seconds (%g seconds average)\n"
msgstr ""

568
po/pt.po

File diff suppressed because it is too large Load diff

2158
po/sr.po

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

File diff suppressed because it is too large Load diff

View file

@ -9,6 +9,7 @@ testboxes
testgradient
inlinepixbufs.h
metacity.desktop
metacity-wm.desktop
metacity.schemas
libmetacity-private.pc
testasyncgetprop

View file

@ -159,12 +159,17 @@ testboxes_LDADD= @METACITY_LIBS@
testgradient_LDADD= @METACITY_LIBS@
testasyncgetprop_LDADD= @METACITY_LIBS@
desktopfilesdir=$(datadir)/gnome/wm-properties
@INTLTOOL_DESKTOP_RULE@
desktopfilesdir=$(datadir)/applications
desktopfiles_in_files=metacity.desktop.in
desktopfiles_files=$(desktopfiles_in_files:.desktop.in=.desktop)
desktopfiles_DATA = $(desktopfiles_files)
@INTLTOOL_DESKTOP_RULE@
wmpropertiesdir=$(datadir)/gnome/wm-properties
wmproperties_in_files=metacity-wm.desktop.in
wmproperties_files=$(wmproperties_in_files:.desktop.in=.desktop)
wmproperties_DATA = $(wmproperties_files)
schemadir = @GCONF_SCHEMA_FILE_DIR@
schema_in_files = metacity.schemas.in
@ -191,7 +196,7 @@ VARIABLES=stock_maximize_data $(srcdir)/stock_maximize.png \
stock_delete_data $(srcdir)/stock_delete.png
BUILT_SOURCES = inlinepixbufs.h
CLEANFILES = inlinepixbufs.h metacity.desktop metacity.schemas 50-metacity-desktop-key.xml 50-metacity-key.xml
CLEANFILES = inlinepixbufs.h metacity.desktop metacity-wm.desktop metacity.schemas 50-metacity-desktop-key.xml 50-metacity-key.xml
inlinepixbufs.h: $(IMAGES)
$(GDK_PIXBUF_CSOURCE) --raw --build-list $(VARIABLES) >$(srcdir)/inlinepixbufs.h
@ -201,8 +206,10 @@ pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = libmetacity-private.pc
EXTRA_DIST=$(desktopfiles_files) \
$(wmproperties_files) \
$(IMAGES) $(schema_DATA) \
$(desktopfiles_in_files) \
$(wmproperties_in_files) \
$(schema_in_files) \
$(xml_in_files) \
libmetacity-private.pc.in

View file

@ -520,87 +520,87 @@ meta_core_get_menu_accelerator (MetaMenuOp menu_op,
switch (menu_op)
{
case META_MENU_OP_DELETE:
name = META_KEYBINDING_CLOSE;
name = "close";
break;
case META_MENU_OP_MINIMIZE:
name = META_KEYBINDING_MINIMIZE;
name = "minimize";
break;
case META_MENU_OP_UNMAXIMIZE:
name = META_KEYBINDING_UNMAXIMIZE;
name = "unmaximize";
break;
case META_MENU_OP_MAXIMIZE:
name = META_KEYBINDING_MAXIMIZE;
name = "maximize";
break;
case META_MENU_OP_UNSHADE:
case META_MENU_OP_SHADE:
name = META_KEYBINDING_TOGGLE_SHADE;
name = "toggle_shaded";
break;
case META_MENU_OP_UNSTICK:
case META_MENU_OP_STICK:
name = META_KEYBINDING_TOGGLE_STICKY;
name = "toggle_on_all_workspaces";
break;
case META_MENU_OP_ABOVE:
case META_MENU_OP_UNABOVE:
name = META_KEYBINDING_TOGGLE_ABOVE;
name = "toggle_above";
break;
case META_MENU_OP_WORKSPACES:
switch (workspace)
{
case 1:
name = META_KEYBINDING_MOVE_WORKSPACE_1;
name = "move_to_workspace_1";
break;
case 2:
name = META_KEYBINDING_MOVE_WORKSPACE_2;
name = "move_to_workspace_2";
break;
case 3:
name = META_KEYBINDING_MOVE_WORKSPACE_3;
name = "move_to_workspace_3";
break;
case 4:
name = META_KEYBINDING_MOVE_WORKSPACE_4;
name = "move_to_workspace_4";
break;
case 5:
name = META_KEYBINDING_MOVE_WORKSPACE_5;
name = "move_to_workspace_5";
break;
case 6:
name = META_KEYBINDING_MOVE_WORKSPACE_6;
name = "move_to_workspace_6";
break;
case 7:
name = META_KEYBINDING_MOVE_WORKSPACE_7;
name = "move_to_workspace_7";
break;
case 8:
name = META_KEYBINDING_MOVE_WORKSPACE_8;
name = "move_to_workspace_8";
break;
case 9:
name = META_KEYBINDING_MOVE_WORKSPACE_9;
name = "move_to_workspace_9";
break;
case 10:
name = META_KEYBINDING_MOVE_WORKSPACE_10;
name = "move_to_workspace_10";
break;
case 11:
name = META_KEYBINDING_MOVE_WORKSPACE_11;
name = "move_to_workspace_11";
break;
case 12:
name = META_KEYBINDING_MOVE_WORKSPACE_12;
name = "move_to_workspace_12";
break;
}
break;
case META_MENU_OP_MOVE:
name = META_KEYBINDING_BEGIN_MOVE;
name = "begin_move";
break;
case META_MENU_OP_RESIZE:
name = META_KEYBINDING_BEGIN_RESIZE;
name = "begin_resize";
break;
case META_MENU_OP_MOVE_LEFT:
name = META_KEYBINDING_MOVE_WORKSPACE_LEFT;
name = "move_to_workspace_left";
break;
case META_MENU_OP_MOVE_RIGHT:
name = META_KEYBINDING_MOVE_WORKSPACE_RIGHT;
name = "move_to_workspace_right";
break;
case META_MENU_OP_MOVE_UP:
name = META_KEYBINDING_MOVE_WORKSPACE_UP;
name = "move_to_workspace_up";
break;
case META_MENU_OP_MOVE_DOWN:
name = META_KEYBINDING_MOVE_WORKSPACE_DOWN;
name = "move_to_workspace_down";
break;
case META_MENU_OP_RECOVER:
/* No keybinding for this one */

View file

@ -54,16 +54,22 @@ typedef void (* MetaKeyHandlerFunc) (MetaDisplay *display,
XEvent *event,
MetaKeyBinding *binding);
/* Prototypes for handlers */
#define item(name, suffix, param, short, long, stroke) \
static void \
handle_##name (MetaDisplay *display,\
MetaScreen *screen,\
MetaWindow *window,\
XEvent *event,\
MetaKeyBinding *binding);
#include "window-bindings.h"
#undef item
static void handle_activate_workspace (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_activate_menu (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_tab_forward (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
@ -99,146 +105,16 @@ static void handle_panel_keybinding (MetaDisplay *display,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_toggle_above (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_toggle_maximize (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_maximize (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_unmaximize (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_toggle_shade (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_close_window (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_minimize_window (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_begin_move (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_begin_resize (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_toggle_sticky (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_workspace (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_workspace_flip (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_workspace_switch (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_raise_or_lower (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_raise (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_lower (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_run_command (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_maximize_vert (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_maximize_horiz (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_side_n (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_side_w (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_side_s (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_side_e (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_corner_nw (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_corner_ne (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_corner_sw (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_corner_se (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_move_to_center (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding);
static void handle_spew_mark (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
@ -437,65 +313,17 @@ static const MetaKeyHandler screen_handlers[] = {
};
static const MetaKeyHandler window_handlers[] = {
{ META_KEYBINDING_WINDOW_MENU, handle_activate_menu, NULL },
{ META_KEYBINDING_TOGGLE_FULLSCREEN, handle_toggle_fullscreen, NULL },
{ META_KEYBINDING_TOGGLE_ABOVE, handle_toggle_above, NULL },
{ META_KEYBINDING_TOGGLE_MAXIMIZE, handle_toggle_maximize, NULL },
{ META_KEYBINDING_MAXIMIZE, handle_maximize, NULL },
{ META_KEYBINDING_UNMAXIMIZE, handle_unmaximize, NULL },
{ META_KEYBINDING_TOGGLE_SHADE, handle_toggle_shade, NULL },
{ META_KEYBINDING_CLOSE, handle_close_window, NULL },
{ META_KEYBINDING_MINIMIZE, handle_minimize_window, NULL },
{ META_KEYBINDING_BEGIN_MOVE, handle_begin_move, },
{ META_KEYBINDING_BEGIN_RESIZE, handle_begin_resize, },
{ META_KEYBINDING_TOGGLE_STICKY, handle_toggle_sticky, },
{ META_KEYBINDING_MOVE_WORKSPACE_1, handle_move_to_workspace,
GINT_TO_POINTER (0) },
{ META_KEYBINDING_MOVE_WORKSPACE_2, handle_move_to_workspace,
GINT_TO_POINTER (1) },
{ META_KEYBINDING_MOVE_WORKSPACE_3, handle_move_to_workspace,
GINT_TO_POINTER (2) },
{ META_KEYBINDING_MOVE_WORKSPACE_4, handle_move_to_workspace,
GINT_TO_POINTER (3) },
{ META_KEYBINDING_MOVE_WORKSPACE_5, handle_move_to_workspace,
GINT_TO_POINTER (4) },
{ META_KEYBINDING_MOVE_WORKSPACE_6, handle_move_to_workspace,
GINT_TO_POINTER (5) },
{ META_KEYBINDING_MOVE_WORKSPACE_7, handle_move_to_workspace,
GINT_TO_POINTER (6) },
{ META_KEYBINDING_MOVE_WORKSPACE_8, handle_move_to_workspace,
GINT_TO_POINTER (7) },
{ META_KEYBINDING_MOVE_WORKSPACE_9, handle_move_to_workspace,
GINT_TO_POINTER (8) },
{ META_KEYBINDING_MOVE_WORKSPACE_10, handle_move_to_workspace,
GINT_TO_POINTER (9) },
{ META_KEYBINDING_MOVE_WORKSPACE_11, handle_move_to_workspace,
GINT_TO_POINTER (10) },
{ META_KEYBINDING_MOVE_WORKSPACE_12, handle_move_to_workspace,
GINT_TO_POINTER (11) },
{ META_KEYBINDING_MOVE_WORKSPACE_LEFT, handle_move_to_workspace_flip,
GINT_TO_POINTER (META_MOTION_LEFT) },
{ META_KEYBINDING_MOVE_WORKSPACE_RIGHT, handle_move_to_workspace_flip,
GINT_TO_POINTER (META_MOTION_RIGHT) },
{ META_KEYBINDING_MOVE_WORKSPACE_UP, handle_move_to_workspace_flip,
GINT_TO_POINTER (META_MOTION_UP) },
{ META_KEYBINDING_MOVE_WORKSPACE_DOWN, handle_move_to_workspace_flip,
GINT_TO_POINTER (META_MOTION_DOWN) },
{ META_KEYBINDING_RAISE_OR_LOWER, handle_raise_or_lower, NULL},
{ META_KEYBINDING_RAISE, handle_raise, NULL},
{ META_KEYBINDING_LOWER, handle_lower, NULL},
{ META_KEYBINDING_MAXIMIZE_VERTICALLY, handle_maximize_vert, NULL },
{ META_KEYBINDING_MAXIMIZE_HORIZONTALLY, handle_maximize_horiz, NULL },
{ META_KEYBINDING_MOVE_TO_SIDE_N, handle_move_to_side_n, NULL },
{ META_KEYBINDING_MOVE_TO_SIDE_S, handle_move_to_side_s, NULL },
{ META_KEYBINDING_MOVE_TO_SIDE_E, handle_move_to_side_e, NULL },
{ META_KEYBINDING_MOVE_TO_SIDE_W, handle_move_to_side_w, NULL },
{ META_KEYBINDING_MOVE_TO_CORNER_NW, handle_move_to_corner_nw, NULL },
{ META_KEYBINDING_MOVE_TO_CORNER_NE, handle_move_to_corner_ne, NULL },
{ META_KEYBINDING_MOVE_TO_CORNER_SW, handle_move_to_corner_sw, NULL },
{ META_KEYBINDING_MOVE_TO_CORNER_SE, handle_move_to_corner_se, NULL },
{ META_KEYBINDING_MOVE_TO_CENTER, handle_move_to_center, NULL },
{ NULL, NULL, NULL }
/* TODO: Eventually, we should stop using GINT_TO_POINTER here, because
* they're always integers.
*
* TODO: Are window bindings only ever called on non-null windows?
* If so, we can remove the check from all of them.
*/
#define item(name, suffix, param, a, b, c) { #name, handle_##name, \
GINT_TO_POINTER (param) },
#include "window-bindings.h"
#undef item
{ NULL, NULL, NULL }
};
static void
@ -2856,7 +2684,7 @@ handle_run_command (MetaDisplay *display,
static void
handle_maximize_vert (MetaDisplay *display,
handle_maximize_vertically (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
@ -2872,7 +2700,7 @@ handle_maximize_vert (MetaDisplay *display,
}
static void
handle_maximize_horiz (MetaDisplay *display,
handle_maximize_horizontally (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
@ -3265,7 +3093,7 @@ handle_panel_keybinding (MetaDisplay *display,
}
static void
handle_activate_menu (MetaDisplay *display,
handle_activate_window_menu (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *event_window,
XEvent *event,
@ -3502,7 +3330,7 @@ handle_toggle_above (MetaDisplay *display,
}
static void
handle_toggle_maximize (MetaDisplay *display,
handle_toggle_maximized (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
@ -3554,7 +3382,7 @@ handle_unmaximize (MetaDisplay *display,
}
static void
handle_toggle_shade (MetaDisplay *display,
handle_toggle_shaded (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
@ -3570,7 +3398,7 @@ handle_toggle_shade (MetaDisplay *display,
}
static void
handle_close_window (MetaDisplay *display,
handle_close (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
@ -3582,7 +3410,7 @@ handle_close_window (MetaDisplay *display,
}
static void
handle_minimize_window (MetaDisplay *display,
handle_minimize (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
@ -3626,7 +3454,7 @@ handle_begin_resize (MetaDisplay *display,
}
static void
handle_toggle_sticky (MetaDisplay *display,
handle_toggle_on_all_workspaces (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
@ -3642,23 +3470,31 @@ handle_toggle_sticky (MetaDisplay *display,
}
static void
do_handle_move_to_workspace (MetaDisplay *display,
handle_move_to_workspace (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding,
gboolean flip)
MetaKeyBinding *binding)
{
int which;
gboolean flip;
MetaWorkspace *workspace;
which = GPOINTER_TO_INT (binding->handler->data);
/* If which is zero or positive, it's a workspace number, and the window
* should move to the workspace with that number.
*
* However, if it's negative, it's a direction with respect to the current
* position; it's expressed as a member of the MetaMotionDirection enum,
* all of whose members are negative. Such a change is called a flip.
*/
flip = (which < 0);
if (window == NULL || window->always_sticky)
return;
workspace = NULL;
if (which < 0)
if (flip)
{
workspace = meta_workspace_get_neighbor (screen->active_workspace,
which);
@ -3676,7 +3512,7 @@ do_handle_move_to_workspace (MetaDisplay *display,
{
meta_topic (META_DEBUG_FOCUS,
"Resetting mouse_mode to FALSE due to "
"do_handle_move_to_workspace() call with flip set.\n");
"handle_move_to_workspace() call with flip set.\n");
workspace->screen->display->mouse_mode = FALSE;
meta_workspace_activate_with_focus (workspace,
window,
@ -3689,35 +3525,6 @@ do_handle_move_to_workspace (MetaDisplay *display,
}
}
static void
handle_move_to_workspace (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding)
{
do_handle_move_to_workspace (display,
screen,
window,
event,
binding,
FALSE);
}
static void
handle_move_to_workspace_flip (MetaDisplay *display,
MetaScreen *screen,
MetaWindow *window,
XEvent *event,
MetaKeyBinding *binding)
{
do_handle_move_to_workspace (display,
screen,
window,
event,
binding,
TRUE);
}
static void
handle_raise_or_lower (MetaDisplay *display,
MetaScreen *screen,

View file

@ -1888,48 +1888,10 @@ static MetaKeyPref screen_bindings[] = {
};
static MetaKeyPref window_bindings[] = {
{ META_KEYBINDING_WINDOW_MENU, NULL, FALSE },
{ META_KEYBINDING_TOGGLE_FULLSCREEN, NULL, FALSE },
{ META_KEYBINDING_TOGGLE_MAXIMIZE, NULL, FALSE },
{ META_KEYBINDING_TOGGLE_ABOVE, NULL, FALSE },
{ META_KEYBINDING_MAXIMIZE, NULL, FALSE },
{ META_KEYBINDING_UNMAXIMIZE, NULL, FALSE },
{ META_KEYBINDING_TOGGLE_SHADE, NULL, FALSE },
{ META_KEYBINDING_MINIMIZE, NULL, FALSE },
{ META_KEYBINDING_CLOSE, NULL, FALSE },
{ META_KEYBINDING_BEGIN_MOVE, NULL, FALSE },
{ META_KEYBINDING_BEGIN_RESIZE, NULL, FALSE },
{ META_KEYBINDING_TOGGLE_STICKY, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_1, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_2, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_3, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_4, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_5, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_6, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_7, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_8, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_9, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_10, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_11, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_12, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_LEFT, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_RIGHT, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_UP, NULL, FALSE },
{ META_KEYBINDING_MOVE_WORKSPACE_DOWN, NULL, FALSE },
{ META_KEYBINDING_RAISE_OR_LOWER, NULL, FALSE },
{ META_KEYBINDING_RAISE, NULL, FALSE },
{ META_KEYBINDING_LOWER, NULL, FALSE },
{ META_KEYBINDING_MAXIMIZE_VERTICALLY, NULL, FALSE },
{ META_KEYBINDING_MAXIMIZE_HORIZONTALLY, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_CORNER_NW, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_CORNER_NE, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_CORNER_SW, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_CORNER_SE, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_SIDE_N, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_SIDE_S, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_SIDE_E, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_SIDE_W, NULL, FALSE },
{ META_KEYBINDING_MOVE_TO_CENTER, NULL, FALSE },
#define item(name, suffix, param, a, b, c) \
{ #name suffix, NULL, FALSE },
#include "window-bindings.h"
#undef item
{ NULL, NULL, FALSE }
};
@ -1961,23 +1923,16 @@ static MetaSimpleKeyMapping screen_string_bindings[] = {
{ NULL, NULL }
};
/* Name field must occur in the same order as window_bindings, though entries
* can be skipped
*/
static MetaSimpleKeyMapping window_string_bindings[] = {
{ META_KEYBINDING_WINDOW_MENU, "<Alt>Print" },
{ META_KEYBINDING_MAXIMIZE, "<Alt>F10" },
{ META_KEYBINDING_UNMAXIMIZE, "<Alt>F5" },
{ META_KEYBINDING_MINIMIZE, "<Alt>F9" },
{ META_KEYBINDING_CLOSE, "<Alt>F4" },
{ META_KEYBINDING_BEGIN_MOVE, "<Alt>F7" },
{ META_KEYBINDING_BEGIN_RESIZE, "<Alt>F8" },
{ META_KEYBINDING_MOVE_WORKSPACE_LEFT, "<Control><Shift><Alt>Left" },
{ META_KEYBINDING_MOVE_WORKSPACE_RIGHT, "<Control><Shift><Alt>Right" },
{ META_KEYBINDING_MOVE_WORKSPACE_UP, "<Control><Shift><Alt>Up" },
{ META_KEYBINDING_MOVE_WORKSPACE_DOWN, "<Control><Shift><Alt>Down" },
#define ONLY_BOUND_BY_DEFAULT
#define item(name, suffix, param, short, long, keystroke) \
{ #name suffix, keystroke },
#include "window-bindings.h"
#undef item
#undef ONLY_BOUND_BY_DEFAULT
{ NULL, NULL }
};
#endif /* NOT HAVE_GCONF */
static void
@ -2949,6 +2904,7 @@ meta_prefs_get_compositing_manager (void)
void
meta_prefs_set_compositing_manager (gboolean whether)
{
#ifdef HAVE_GCONF
GError *err = NULL;
gconf_client_set_bool (default_client,
@ -2962,6 +2918,9 @@ meta_prefs_set_compositing_manager (gboolean whether)
err->message);
g_error_free (err);
}
#else
compositing_manager = whether;
#endif
}
#ifndef HAVE_GCONF

View file

@ -0,0 +1,88 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
* Copyright (C) 2008 Thomas Thurman
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
/** \file Schema bindings generator.
*
* This program simply takes the items given in the binding lists in
* window-bindings.h and turns them into a portion of
* the GConf .schemas file.
*/
#include <stdio.h>
#include <glib.h>
#define _(x) x
char *liberal;
const char* window_string = \
" <schema>\n" \
" <key>/schemas/apps/metacity/%s_keybindings/%s%s</key>\n" \
" <applyto>/apps/metacity/%s_keybindings/%s%s</applyto>\n" \
" <owner>metacity</owner>\n" \
" <type>string</type>\n" \
" <default>%s</default>\n" \
" <locale name=\"C\">\n" \
" <short>%s</short>\n" \
" <long>\n" \
" %s %s\n" \
" </long>\n" \
" </locale>\n" \
" </schema>\n\n\n";
void
produce_window_bindings ()
{
/* Escaped versions of each of these fields (i.e. > => &gt;, etc) */
gchar *esc_short, *esc_long, *esc_key;
#define item(name, suffix, param, short, long, keystroke) \
esc_short = g_markup_escape_text (short, -1);\
esc_long = g_markup_escape_text (long, -1);\
if (keystroke) esc_key = g_markup_escape_text (keystroke, -1);\
printf(\
window_string, \
"window", #name, suffix? suffix:"", \
"window", #name, suffix? suffix:"",\
keystroke? esc_key: "disabled", \
esc_short, esc_long, liberal);\
g_free (esc_short);\
g_free (esc_long);\
if (keystroke) g_free (esc_key);
#include "../src/core/window-bindings.h"
#undef item
}
int
main ()
{
liberal = g_markup_escape_text(_("The parser is fairly liberal and allows "\
"lower or upper case, and also abbreviations such as \"<Ctl>\" and " \
"\"<Ctrl>\". If you set the option to the special string " \
"\"disabled\", then there will be no keybinding for this action."), -1);
produce_window_bindings ();
g_free (liberal);
}
/* eof schema-bindings.c */

293
src/core/window-bindings.h Normal file
View file

@ -0,0 +1,293 @@
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
/*
* Copyright (C) 2008 Thomas Thurman
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
* 02111-1307, USA.
*/
/**
* \file A list of window binding information.
*
* Each action which can have a keystroke bound to it is listed below.
* To use this file, define "item" to be a six-argument macro (you can
* throw any of the arguments you please away), include this file,
* and then undefine the macro again.
*
* (If you aren't familiar with this technique, sometimes called "x-macros",
* see DDJ of May 2001: <http://www.ddj.com/cpp/184401387>.)
*
* This makes it possible to keep all information about all the keybindings
* in the same place. The only exception is the code to run when an action
* is actually invoked; while we *could* have put that in this file, it would
* have made debugging ridiculously difficult. Instead, each action should
* have a corresponding static function named handle_<name>() in
* keybindings.c.
*
* Currently, the GConf schemas in src/metacity.schemas also need to be
* updated separately. There is a program called schema-bindings.c in this
* directory which will fix that, but it needs integrating into the build
* process.
*
* The arguments to item() are:
* 1) name: the name of the binding; a bareword identifier
* 2) suffix: a string to add to the binding name to make the handler name
* (usually the empty string)
* 3) param: an integer parameter to pass to the handler
* 4) short: a short description. Mostly, you won't use this.
* It must be marked translatable (i.e. inside "_(...)").
* 5) long: like short, except long. Don't include all the stuff about
* the parser being fairly liberal.
* 6) keystroke: a string representing the default binding.
* If this is NULL, the action is unbound by default.
*
* Don't try to do XML entity escaping anywhere in the strings.
*
* Some code out there wants only the entries which have a default
* binding (i.e. whose sixth parameter is not NULL). You can get only these
* by defining ONLY_BOUND_BY_DEFAULT before you include this file.
*/
#ifndef item
#error "item () must be defined when you include window-bindings.h"
#endif
item (activate_window_menu, "", 0,
_("Activate window menu"),
_("The keybinding used to activate the window menu."),
"<Alt>Print")
#ifndef ONLY_BOUND_BY_DEFAULT
item (toggle_fullscreen, "", 0,
_("Toggle fullscreen mode"),
_("The keybinding used to toggle fullscreen mode."),
NULL)
item (toggle_maximized, "", 0,
_("Toggle maximization state"),
_("The keybinding used to toggle maximization."),
NULL)
item (toggle_above, "", 0,
_("Toggle always on top state"),
_("The keybinding used to toggle always on top. A window that is "
"always on top will always be visible over other overlapping "
"windows."),
NULL)
#endif /* ONLY_BOUND_BY_DEFAULT */
item (maximize, "", 0,
_("Maximize window"),
_("The keybinding used to maximize a window."),
"<Alt>F10")
item (unmaximize, "", 0,
_("Unmaximize window"),
_("The keybinding used to unmaximize a window."),
"<Alt>F5")
#ifndef ONLY_BOUND_BY_DEFAULT
item (toggle_shaded, "", 0,
_("Toggle shaded state"),
_("The keybinding used to toggle shaded/unshaded state."),
NULL)
#endif /* ONLY_BOUND_BY_DEFAULT */
item (minimize, "", 0,
_("Minimize window"),
_("The keybinding used to minimize a window."),
"<Alt>F9")
item (close, "", 0,
_("Close window"),
_("The keybinding used to close a window."),
"<Alt>F4")
item (begin_move, "", 0,
_("Move window"),
_("The keybinding used to enter \"move mode\" "
"and begin moving a window using the keyboard."),
"<Alt>F7")
item (begin_resize, "", 0,
_("Resize window"),
("The keybinding used to enter \"resize mode\" "
"and begin resizing a window using the keyboard."),
"<Alt>F8")
#ifndef ONLY_BOUND_BY_DEFAULT
item (toggle_on_all_workspaces, "", 0,
_("Toggle window on all workspaces"),
_("The keybinding used to toggle whether the window is on all "
"workspaces or just one."),
NULL)
item (move_to_workspace, "_1", 1,
_("Move window to workspace 1"),
_("The keybinding used to move a window to workspace 1."),
NULL)
item (move_to_workspace, "_2", 2,
_("Move window to workspace 2"),
_("The keybinding used to move a window to workspace 2."),
NULL)
item (move_to_workspace, "_3", 3,
_("Move window to workspace 3"),
_("The keybinding used to move a window to workspace 3."),
NULL)
item (move_to_workspace, "_4", 4,
_("Move window to workspace 4"),
_("The keybinding used to move a window to workspace 4."),
NULL)
item (move_to_workspace, "_5", 5,
_("Move window to workspace 5"),
_("The keybinding used to move a window to workspace 5."),
NULL)
item (move_to_workspace, "_6", 6,
_("Move window to workspace 6"),
_("The keybinding used to move a window to workspace 6."),
NULL)
item (move_to_workspace, "_7", 7,
_("Move window to workspace 7"),
_("The keybinding used to move a window to workspace 7."),
NULL)
item (move_to_workspace, "_8", 8,
_("Move window to workspace 8"),
_("The keybinding used to move a window to workspace 8."),
NULL)
item (move_to_workspace, "_9", 9,
_("Move window to workspace 9"),
_("The keybinding used to move a window to workspace 9."),
NULL)
item (move_to_workspace, "_10", 10,
_("Move window to workspace 10"),
_("The keybinding used to move a window to workspace 10."),
NULL)
item (move_to_workspace, "_11", 11,
_("Move window to workspace 11"),
_("The keybinding used to move a window to workspace 11."),
NULL)
item (move_to_workspace, "_12", 12,
_("Move window to workspace 12"),
_("The keybinding used to move a window to workspace 12."),
NULL)
#endif /* ONLY_BOUND_BY_DEFAULT */
/* META_MOTION_* are negative, and so distinct from workspace numbers,
* which are always zero or positive.
* If you make use of these constants, you will need to include workspace.h
* (which you're probably using already for other reasons anyway).
* If your definition of item() throws them away, you don't need to include
* workspace.h, of course.
*/
item (move_to_workspace, "_left", META_MOTION_LEFT,
_("Move window one workspace to the left"),
_("The keybinding used to move a window one workspace to the left."),
"<Control><Shift><Alt>Left")
item (move_to_workspace, "_right", META_MOTION_RIGHT,
_("Move window one workspace to the right"),
_("The keybinding used to move a window one workspace to the right."),
"<Control><Shift><Alt>Right")
item (move_to_workspace, "_up", META_MOTION_UP,
_("Move window one workspace up"),
_("The keybinding used to move a window one workspace up."),
"<Control><Shift><Alt>Up")
item (move_to_workspace, "_down", META_MOTION_DOWN,
_("Move window one workspace down"),
_("The keybinding used to move a window one workspace down."),
"<Control><Shift><Alt>Down")
#ifndef ONLY_BOUND_BY_DEFAULT
item (raise_or_lower, "", 0,
_("Raise obscured window, otherwise lower"),
_("This keybinding changes whether a window is above or below "
"other windows. If the window is covered by another one, it "
"raises the window above all others, and if the window is "
"already fully visible, it lowers it below all others."),
NULL)
item (raise, "", 0,
_("Raise window above other windows"),
_("This keybinding raises the window above other windows."),
NULL)
item (lower, "", 0,
_("Lower window below other windows"),
_("This keybinding lowers a window below other windows."),
NULL)
item (maximize_vertically, "", 0,
_("Maximize window vertically"),
_("This keybinding resizes a window to fill available "
"vertical space."),
NULL)
item (maximize_horizontally, "", 0,
_("Maximize window horizontally"),
_("This keybinding resizes a window to fill available "
"horizontal space."),
NULL)
item (move_to_corner_nw, "", 0,
_("Move window to north-west corner"),
_("This keybinding moves a window into the north-west (top left) "
"corner of the screen."),
NULL)
item (move_to_corner_ne, "", 0,
_("Move window to north-east corner"),
_("This keybinding moves a window into the north-east (top right) "
"corner of the screen."),
NULL)
item (move_to_corner_sw, "", 0,
_("Move window to south-west corner"),
_("This keybinding moves a window into the north-east (bottom left) "
"corner of the screen."),
NULL)
item (move_to_corner_se, "", 0,
_("Move window to south-east corner"),
_("This keybinding moves a window into the north-east (bottom right) "
"corner of the screen."),
NULL)
item (move_to_side_n, "", 0,
_("Move window to north side of screen"),
_("This keybinding moves a window against the north (top) "
"side of the screen."),
NULL)
item (move_to_side_s, "", 0,
_("Move window to south side of screen"),
_("This keybinding moves a window against the south (bottom) "
"side of the screen."),
NULL)
item (move_to_side_e, "", 0,
_("Move window to east side of screen"),
_("This keybinding moves a window against the east (right) "
"side of the screen."),
NULL)
item (move_to_side_w, "", 0,
_("Move window to west side of screen"),
_("This keybinding moves a window against the west (left) "
"side of the screen."),
NULL)
item (move_to_center, "", 0,
_("Move window to center of screen"),
_("This keybinding moves a window into the center "
"of the screen."),
NULL)
#endif /* ONLY_BOUND_BY_DEFAULT */
/* eof window-bindings.h */

View file

@ -189,50 +189,6 @@ void meta_prefs_set_compositing_manager (gboolean whether);
#define META_KEYBINDING_RUN_COMMAND_TERMINAL "run_command_terminal"
#define META_KEYBINDING_SET_SPEW_MARK "set_spew_mark"
/* Window bindings */
#define META_KEYBINDING_WINDOW_MENU "activate_window_menu"
#define META_KEYBINDING_TOGGLE_FULLSCREEN "toggle_fullscreen"
#define META_KEYBINDING_TOGGLE_MAXIMIZE "toggle_maximized"
#define META_KEYBINDING_TOGGLE_ABOVE "toggle_above"
#define META_KEYBINDING_MAXIMIZE "maximize"
#define META_KEYBINDING_UNMAXIMIZE "unmaximize"
#define META_KEYBINDING_TOGGLE_SHADE "toggle_shaded"
#define META_KEYBINDING_MINIMIZE "minimize"
#define META_KEYBINDING_CLOSE "close"
#define META_KEYBINDING_BEGIN_MOVE "begin_move"
#define META_KEYBINDING_BEGIN_RESIZE "begin_resize"
#define META_KEYBINDING_TOGGLE_STICKY "toggle_on_all_workspaces"
#define META_KEYBINDING_MOVE_WORKSPACE_1 "move_to_workspace_1"
#define META_KEYBINDING_MOVE_WORKSPACE_2 "move_to_workspace_2"
#define META_KEYBINDING_MOVE_WORKSPACE_3 "move_to_workspace_3"
#define META_KEYBINDING_MOVE_WORKSPACE_4 "move_to_workspace_4"
#define META_KEYBINDING_MOVE_WORKSPACE_5 "move_to_workspace_5"
#define META_KEYBINDING_MOVE_WORKSPACE_6 "move_to_workspace_6"
#define META_KEYBINDING_MOVE_WORKSPACE_7 "move_to_workspace_7"
#define META_KEYBINDING_MOVE_WORKSPACE_8 "move_to_workspace_8"
#define META_KEYBINDING_MOVE_WORKSPACE_9 "move_to_workspace_9"
#define META_KEYBINDING_MOVE_WORKSPACE_10 "move_to_workspace_10"
#define META_KEYBINDING_MOVE_WORKSPACE_11 "move_to_workspace_11"
#define META_KEYBINDING_MOVE_WORKSPACE_12 "move_to_workspace_12"
#define META_KEYBINDING_MOVE_WORKSPACE_LEFT "move_to_workspace_left"
#define META_KEYBINDING_MOVE_WORKSPACE_RIGHT "move_to_workspace_right"
#define META_KEYBINDING_MOVE_WORKSPACE_UP "move_to_workspace_up"
#define META_KEYBINDING_MOVE_WORKSPACE_DOWN "move_to_workspace_down"
#define META_KEYBINDING_RAISE_OR_LOWER "raise_or_lower"
#define META_KEYBINDING_RAISE "raise"
#define META_KEYBINDING_LOWER "lower"
#define META_KEYBINDING_MAXIMIZE_VERTICALLY "maximize_vertically"
#define META_KEYBINDING_MAXIMIZE_HORIZONTALLY "maximize_horizontally"
#define META_KEYBINDING_MOVE_TO_CORNER_NW "move_to_corner_nw"
#define META_KEYBINDING_MOVE_TO_CORNER_NE "move_to_corner_ne"
#define META_KEYBINDING_MOVE_TO_CORNER_SW "move_to_corner_sw"
#define META_KEYBINDING_MOVE_TO_CORNER_SE "move_to_corner_se"
#define META_KEYBINDING_MOVE_TO_SIDE_N "move_to_side_n"
#define META_KEYBINDING_MOVE_TO_SIDE_S "move_to_side_s"
#define META_KEYBINDING_MOVE_TO_SIDE_E "move_to_side_e"
#define META_KEYBINDING_MOVE_TO_SIDE_W "move_to_side_w"
#define META_KEYBINDING_MOVE_TO_CENTER "move_to_center"
typedef enum _MetaKeyBindingAction
{
META_KEYBINDING_ACTION_NONE = -1,

View file

@ -0,0 +1,21 @@
[Desktop Entry]
Type=Application
Encoding=UTF-8
_Name=Metacity
Exec=metacity
# name of loadable control center module
X-GNOME-WMSettingsModule=metacity
# name we put on the WM spec check window
X-GNOME-WMName=Metacity
# back compat only
X-GnomeWMSettingsLibrary=metacity
X-GNOME-Bugzilla-Bugzilla=GNOME
X-GNOME-Bugzilla-Product=metacity
X-GNOME-Bugzilla-Component=general
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager
X-GNOME-Autostart-Notify=true
[Window Manager]
SessionManaged=true

View file

@ -3,6 +3,7 @@ Type=Application
Encoding=UTF-8
_Name=Metacity
Exec=metacity
NoDisplay=true
# name of loadable control center module
X-GNOME-WMSettingsModule=metacity
# name we put on the WM spec check window
@ -15,6 +16,3 @@ X-GNOME-Bugzilla-Component=general
X-GNOME-Autostart-Phase=WindowManager
X-GNOME-Provides=windowmanager
X-GNOME-Autostart-Notify=true
[Window Manager]
SessionManaged=true