From c614ab8d27913e03e27ef892922e9b2f46abe9a0 Mon Sep 17 00:00:00 2001 From: rocket049 Date: Fri, 29 Mar 2019 08:34:07 +0800 Subject: [PATCH] =?UTF-8?q?=202019=E5=B9=B4=2003=E6=9C=88=2029=E6=97=A5=20?= =?UTF-8?q?=E6=98=9F=E6=9C=9F=E4=BA=94=2008:34:07=20CST?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/ui.vala | 23 ++++++++++++++++--- share/locale/zh_CN/LC_MESSAGES/1powerchat.po | 6 +++++ share/locale/zh_CN/LC_MESSAGES/powerchat.mo | Bin 5420 -> 5557 bytes 3 files changed, 26 insertions(+), 3 deletions(-) diff --git a/client/ui.vala b/client/ui.vala index d3a73df..76e9e93 100644 --- a/client/ui.vala +++ b/client/ui.vala @@ -10,7 +10,7 @@ static LoginDialog login1; static AddUserDialog adduser1; static MultiSendUi msend_ui; static ChatClient client; -static int RELEASE=37; +static int RELEASE=38; static int LATESTVER=0; public struct UserMsg{ @@ -980,6 +980,9 @@ public class AppWin:Gtk.ApplicationWindow{ item1 = new GLib.MenuItem(_("Homepage"),"app.homepage"); menu1.append_item(item1); + + item1 = new GLib.MenuItem(_("Android Homepage"),"app.androidhomepage"); + menu1.append_item(item1); item1 = new GLib.MenuItem(_("Wiki"),"app.wiki"); menu1.append_item(item1); @@ -1019,8 +1022,12 @@ public class AppWin:Gtk.ApplicationWindow{ act2.activate.connect (() => { application1.hold (); var dlg_about = new Gtk.MessageDialog(this, Gtk.DialogFlags.MODAL, Gtk.MessageType.INFO, Gtk.ButtonsType.OK,null); - dlg_about.text = _("Copy Right:"); - dlg_about.secondary_text = "Fu Huizhong "; + dlg_about.text = _("Copy Right: Fu Huizhong "); + //var markup = "

Fu Huizhong

PC Homepage:
https://gitee.com/rocket049/powerchat
https://github.com/rocket049/powerchat
Android Homepage:
https://gitee.com/sonichy/PowerChat_Android

"; + var markup = _("PC Homepage")+":\nhttps://gitee.com/rocket049/powerchat\nhttps://github.com/rocket049/powerchat\n"+_("Android Homepage")+":\nhttps://gitee.com/sonichy/PowerChat_Android"; + //dlg_about.secondary_text = "Fu Huizhong "; + dlg_about.secondary_text = markup; + dlg_about.secondary_use_markup = true; dlg_about.show(); dlg_about.response.connect((rid)=>{ dlg_about.destroy(); @@ -1039,6 +1046,16 @@ public class AppWin:Gtk.ApplicationWindow{ }); act3.set_enabled(true); application1.add_action (act3); + + SimpleAction act31 = new SimpleAction ("androidhomepage", null); + act31.activate.connect (() => { + application1.hold (); + //Gtk.show_uri(null,"https://gitee.com/rocket049/powerchat",Gdk.CURRENT_TIME); + client.open_path("https://gitee.com/sonichy/PowerChat_Android"); + application1.release (); + }); + act31.set_enabled(true); + application1.add_action (act31); SimpleAction act4 = new SimpleAction ("pay", null); act4.activate.connect (() => { diff --git a/share/locale/zh_CN/LC_MESSAGES/1powerchat.po b/share/locale/zh_CN/LC_MESSAGES/1powerchat.po index aec7689..6693f00 100644 --- a/share/locale/zh_CN/LC_MESSAGES/1powerchat.po +++ b/share/locale/zh_CN/LC_MESSAGES/1powerchat.po @@ -396,3 +396,9 @@ msgid "" msgstr "" "网络连接意外断开!\n" "请重启powerchat程序!" + +msgid "Android Homepage" +msgstr "安卓版主页" + +msgid "PC Homepage" +msgstr "PC版主页" diff --git a/share/locale/zh_CN/LC_MESSAGES/powerchat.mo b/share/locale/zh_CN/LC_MESSAGES/powerchat.mo index 80702d5096b23d46f9ebe5d3c18a2eab6fbf11f0..c85e1d8d1c4a3e2673f74a232f90ec6396725e58 100644 GIT binary patch delta 2403 zcmYk-duWzb9Ki9jIWN04UDH`!E0@d5wsLvR@-p+yOf79$reGeeZTMfn|64A&*z-;JkL45=RB9UbKK$a z+3w1s-HEcE7*4eGNy(1RerznoDb+y%4!{Pi!f7}V7hzvqjs39|86s`OBHWA~_b682 zHY~x{kSVfh9~FM-Ae)=93uogWSdNVx?F4hsb_NGwGnV2yEW=08oS#Dz-5&dQ#{Rc( z68-O@=X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