File: tab_toolbar.rb

package info (click to toggle)
mikutter 3.5.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 10,256 kB
  • ctags: 2,165
  • sloc: ruby: 19,079; sh: 205; makefile: 20
file content (20 lines) | stat: -rw-r--r-- 570 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*- coding: utf-8 -*-

require "gtk2"

require File.expand_path File.join(File.dirname(__FILE__), 'toolbar_generator')

class Gtk::TabToolbar < Gtk::HBox
  def initialize(imaginally, *args)
    type_strict imaginally => Plugin::GUI::TabToolbar
    @imaginally = imaginally
    super(*args)
  end

  def set_button
    self.children.each(&method(:remove))
    Plugin::Gtk::ToolbarGenerator.generate(self,
                                           Plugin::GUI::Event.new(:tab_toolbar, @imaginally.parent, []),
                                           :tab)
  end
end