From: Alan Knowles Date: Wed, 19 Dec 2018 05:20:42 +0000 (+0800) Subject: RepoStatusPopover.bjs X-Git-Url: http://git.roojs.org/?p=gitlive;a=commitdiff_plain;h=2c6bd676c08a9cde36ab56c997acb12cb047d550 RepoStatusPopover.bjs RepoStatusPopover.vala --- diff --git a/RepoStatusPopover.bjs b/RepoStatusPopover.bjs index d06dc1c2..d831d982 100644 --- a/RepoStatusPopover.bjs +++ b/RepoStatusPopover.bjs @@ -121,6 +121,7 @@ "button_press_event" : "() => {\n _this.repo.git({ \"commit\" , \"-a\" ,\"-m\", \"Uncommited changes synced\" });\n _this.repo.push();\n _this.repo.loadStatus();\n \n _this.diff_view.el.get_buffer().set_text(_this.repo.git_diff);\n _this.status_view.el.get_buffer().set_text(_this.repo.git_status);\n \n _this.el.hide();\n Clones.singleton().reposStore.load();\n \n return false;\n}" }, "label" : "Commit Changes", + "* ctor" : "new Gtk.ToolButton(new Gtk.Image.from_icon_name (\"gtk-save\", Gtk.IconSize.SMALL_TOOLBAR), null);", "* pack" : "add", "xtype" : "ToolButton", "$ xns" : "Gtk" diff --git a/RepoStatusPopover.vala b/RepoStatusPopover.vala index a75be949..9a81b25b 100644 --- a/RepoStatusPopover.vala +++ b/RepoStatusPopover.vala @@ -451,11 +451,12 @@ public class RepoStatusPopover : Object public Xcls_ToolButton15(RepoStatusPopover _owner ) { _this = _owner; - this.el = new Gtk.ToolButton( null, "Commit Changes" ); + this.el = new Gtk.ToolButton(new Gtk.Image.from_icon_name ("gtk-save", Gtk.IconSize.SMALL_TOOLBAR), null);; // my vars (dec) // set gobject values + this.el.label = "Commit Changes"; //listeners this.el.button_press_event.connect( () => {