X-Git-Url: http://git.roojs.org/?p=gitlive;a=blobdiff_plain;f=RepoStatusPopover.bjs;h=eced34c57c0a059c366c09e9796c2871276e9e40;hp=0914b7e98ada826464cdf7e89ed7fedfb53f8fe0;hb=012da43ef16a6d3d1fc3bdca0c0d82be16d7b5f9;hpb=58446f774c5008eee748b26ffcaf135213e7ed64 diff --git a/RepoStatusPopover.bjs b/RepoStatusPopover.bjs index 0914b7e9..eced34c5 100644 --- a/RepoStatusPopover.bjs +++ b/RepoStatusPopover.bjs @@ -104,7 +104,18 @@ { "* pack" : "pack_start,?bool?,?bool?,?uint?", "xtype" : "Toolbar", - "$ xns" : "Gtk" + "$ xns" : "Gtk", + "items" : [ + { + "listeners" : { + "button_press_event" : "() => {\n \n \n GitMonitor.gitmonitor.stop();\n _this.repo.git({ \"stash\" , \"--all\" });\n _this.repo.loadStatus();\n GitMonitor.gitmonitor.start();\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 Clones.singleton().reposStore.load();\n \n _this.el.hide();\n return false;\n}" + }, + "label" : "Stash Changes", + "xtype" : "ToolButton", + "* pack" : "add", + "$ xns" : "Gtk" + } + ] }, { "listeners" : { @@ -112,7 +123,7 @@ }, "label" : "Stash Changes", "* pack" : "add", - "xtype" : "Button", + "xtype" : "ToolButton", "$ xns" : "Gtk" }, { @@ -121,7 +132,7 @@ }, "label" : "Commit Changes", "* pack" : "add", - "xtype" : "Button", + "xtype" : "ToolButton", "$ xns" : "Gtk" }, { @@ -129,7 +140,7 @@ "button_press_event" : "() => {\n var oldq = new Gee.ArrayList(); \n\n\tClones.singleton().el.response(-1);\n\tNewBranch.singleton().show(_this.repo, oldq);\n\n return false;\n}" }, "label" : "Create Branch / Start ticket", - "xtype" : "Button", + "xtype" : "ToolButton", "* pack" : "add", "$ xns" : "Gtk" }, @@ -139,7 +150,7 @@ }, "label" : "Reset to remote", "* pack" : "add", - "xtype" : "Button", + "xtype" : "ToolButton", "$ xns" : "Gtk" }, { @@ -147,7 +158,7 @@ "button_press_event" : "() => {\n \n \n GitMonitor.gitmonitor.stop();\n _this.repo.git({ \"pull\" , \"--all\" });\n _this.repo.loadStatus();\n GitMonitor.gitmonitor.start();\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 Clones.singleton().reposStore.load();\n \n _this.el.hide();\n return false;\n}" }, "label" : "Pull updates", - "xtype" : "Button", + "xtype" : "ToolButton", "* pack" : "add", "$ xns" : "Gtk" }, @@ -156,7 +167,7 @@ "button_press_event" : "() => {\n\n _this.el.hide();\n Clones.singleton().el.response(-1);\n if (_this.repo.activeTicket != null) {\n\t MergeBranch.singleton().show(_this.repo.activeTicket, null); \n }\n return false;\n}" }, "label" : "Merge branch/ ticket", - "xtype" : "Button", + "xtype" : "ToolButton", "* pack" : "add", "$ xns" : "Gtk" }, @@ -167,7 +178,7 @@ "label" : "Create Ticket", "* ctor" : "new GtkButton.new_from_stock()", "* pack" : "add", - "xtype" : "Button", + "xtype" : "ToolButton", "$ xns" : "Gtk" } ]