~mefrio-g/scratch/fix-1258260

« back to all changes in this revision

Viewing changes to plugins/source-tree/SourceTreePlugin.vala

  • Committer: Mario Guerriero
  • Date: 2014-04-25 14:52:33 UTC
  • mfrom: (1276.1.14 scratch)
  • Revision ID: mefrio.g@gmail.com-20140425145233-pun9q5huso06kwb5
Merge changes from lp:scratch

Show diffs side-by-side

added added

removed removed

Lines of Context:
169
169
            plugins.hook_notebook_sidebar.connect (on_hook_sidebar);
170
170
            plugins.hook_document.connect (on_hook_document);
171
171
            plugins.hook_toolbar.connect ((toolbar) => {
 
172
                MainWindow window = plugins.manager.window;
172
173
                if (this.bookmark_tool_button != null && this.new_button != null) 
173
174
                    return;
174
 
                this.new_button = main_actions.get_action ("NewTab").create_tool_item() as Gtk.ToolButton;
 
175
                this.new_button = window.main_actions.get_action ("NewTab").create_tool_item() as Gtk.ToolButton;
175
176
                this.bookmark_tool_button = new Gtk.ToolButton (new Gtk.Image.from_icon_name ("bookmark-new", Gtk.IconSize.LARGE_TOOLBAR), _("Bookmark"));
176
177
                bookmark_tool_button.show_all ();
177
178
                bookmark_tool_button.clicked.connect (() => add_bookmark ());