Skip to content

Commit

Permalink
2019年 03月 29日 星期五 08:34:07 CST
Browse files Browse the repository at this point in the history
  • Loading branch information
rocket049 committed Mar 29, 2019
1 parent cab5bea commit c614ab8
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 3 deletions.
23 changes: 20 additions & 3 deletions client/ui.vala
Original file line number Diff line number Diff line change
Expand Up @@ -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{
Expand Down Expand Up @@ -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);
Expand Down Expand Up @@ -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 <fuhuizn@163.com>";
dlg_about.text = _("Copy Right: Fu Huizhong <fuhuizn@163.com>");
//var markup = "<h2>Fu Huizhong <fuhuizn@163.com></h2><p><b>PC Homepage:</b><br/><a href='https://gitee.com/rocket049/powerchat'>https://gitee.com/rocket049/powerchat</a><br/><a href='https://github.com/rocket049/powerchat'>https://github.com/rocket049/powerchat</a><br/><b>Android Homepage:</b><br/><a href='https://gitee.com/sonichy/PowerChat_Android'>https://gitee.com/sonichy/PowerChat_Android</a></p>";
var markup = _("PC Homepage")+":\n<a href='https://gitee.com/rocket049/powerchat'>https://gitee.com/rocket049/powerchat</a>\n<a href='https://github.com/rocket049/powerchat'>https://github.com/rocket049/powerchat</a>\n"+_("Android Homepage")+":\n<a href='https://gitee.com/sonichy/PowerChat_Android'>https://gitee.com/sonichy/PowerChat_Android</a>";
//dlg_about.secondary_text = "Fu Huizhong <fuhuizn@163.com>";
dlg_about.secondary_text = markup;
dlg_about.secondary_use_markup = true;
dlg_about.show();
dlg_about.response.connect((rid)=>{
dlg_about.destroy();
Expand All @@ -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 (() => {
Expand Down
6 changes: 6 additions & 0 deletions share/locale/zh_CN/LC_MESSAGES/1powerchat.po
Original file line number Diff line number Diff line change
Expand Up @@ -396,3 +396,9 @@ msgid ""
msgstr ""
"网络连接意外断开!\n"
"请重启powerchat程序!"

msgid "Android Homepage"
msgstr "安卓版主页"

msgid "PC Homepage"
msgstr "PC版主页"
Binary file modified share/locale/zh_CN/LC_MESSAGES/powerchat.mo
Binary file not shown.

0 comments on commit c614ab8

Please sign in to comment.