diff --git a/AUTHORS b/AUTHORS index 824906a..b80090f 100644 --- a/AUTHORS +++ b/AUTHORS @@ -1,4 +1,4 @@ -Olaf Schulz +Olaf Schulz rixx Marco Herrn diff --git a/src/main.vala b/src/main.vala index 1781d0e..4adc508 100644 --- a/src/main.vala +++ b/src/main.vala @@ -56,6 +56,20 @@ namespace NeoLayoutViewer{ private static void about_dialog() { /* This function create the about dialog in tray menu or indicator menu */ + + var show_shortcut = configm.getConfig().get("show_shortcut").strip(); + var move_shortcut = configm.getConfig().get("move_shortcut").strip(); + var monitor_shortcut = configm.getConfig().get("monitor_shortcut").strip(); + + string tmp = ""; + if (show_shortcut == monitor_shortcut && false){ + tmp = "Monitor wechseln/Ausblenden - %s".printf(show_shortcut); + }else{ + tmp = """Ein-/Ausblenden - %s + Monitor wechseln - %s""".printf(show_shortcut, + monitor_shortcut); + } + var about = new Gtk.AboutDialog(); about.set_logo(app.neo_win.getIcon()); about.set_destroy_with_parent (true); @@ -65,18 +79,17 @@ namespace NeoLayoutViewer{ about.set_comments("""Erleichtert das Nachschlagen von Tastenkombinationen im Neo 2.0-Layout. Olaf Schulz - funwithkinect@googlemail.com - + olaf_schulz+neo@posteo.de Tastenkombinationen: - Ein-/Ausblenden - %s + %s Bewegen - %s Beenden (sofern Fenster selektiert) - q Verwendete Konfigurationsdatei: %s""".printf( - app.neo_win.config.get("show_shortcut"), - app.neo_win.config.get("move_shortcut"), + tmp, + move_shortcut, configm.used_config_path) ); about.set_copyright("LGPLv3");