GtkToolButton are disabled by default in glade3 + pygtk
<p>I've created a simple app skeleton in python 2.7 using pyGtk and Glade (3.16.1) on Ubiuntu 14.04 LTS.
I've added a ToolBar and some buttons, but the gtkToolButton are always disabled. How can I enable them from Glade? </p>

<p><a href="http://i.stack.imgur.com/ABmjQ.png" rel="nofollow"><img src="http://i.stack.imgur.com/ABmjQ.png" alt="my gui with toolbutton disabled"></a>
<a href="http://i.stack.imgur.com/ABmjQ.png" rel="nofollow">my gui with toolbutton disabled</a></p>

<p>I've tried also in python using "set_sensitive" but nothing works.</p>

<p>Can You help me? Thank You very much!</p>

<p>This is a snippet from glade file:</p>

<pre><code>&lt;child&gt;
      &lt;object class="GtkToolbar" id="toolbar1"&gt;
        &lt;property name="visible"&gt;True&lt;/property&gt;
        &lt;property name="can_focus"&gt;False&lt;/property&gt;
        &lt;property name="toolbar_style"&gt;both-horiz&lt;/property&gt;
        &lt;property name="show_arrow"&gt;False&lt;/property&gt;
        &lt;style&gt;
            &lt;class name="primary-toolbar"/&gt;
        &lt;/style&gt;
        &lt;child&gt;
          &lt;object class="GtkToolButton" id="toolbutton1"&gt;
            &lt;property name="name"&gt;bt1&lt;/property&gt;
            &lt;property name="visible"&gt;True&lt;/property&gt;
            &lt;property name="can_focus"&gt;False&lt;/property&gt;
            &lt;property name="is_important"&gt;True&lt;/property&gt;
            &lt;property name="action_name"&gt;bt1&lt;/property&gt;
            &lt;property name="label" translatable="yes"&gt;toolbutton1&lt;/property&gt;
            &lt;property name="use_underline"&gt;True&lt;/property&gt;
            &lt;property name="stock_id"&gt;gtk-connect&lt;/property&gt;
            &lt;signal name="clicked" handler="on_toolbutton1_clicked" swapped="no"/&gt;
          &lt;/object&gt;
</code></pre>

<p>GtkToolbars are not very straightforward to use. You have to create a corresponding action. This is a simple example of how to use them:</p>

<p>The glade file:</p>

<pre><code>&lt;interface&gt;
  &lt;requires lib="gtk+" version="3.16"/&gt;
  &lt;object class="GtkWindow" id="window"&gt;
    &lt;property name="can_focus"&gt;False&lt;/property&gt;
    &lt;child&gt;
      &lt;object class="GtkToolbar"&gt;
        &lt;property name="visible"&gt;True&lt;/property&gt;
        &lt;property name="can_focus"&gt;False&lt;/property&gt;
        &lt;child&gt;
          &lt;object class="GtkToolButton"&gt;
            &lt;property name="visible"&gt;True&lt;/property&gt;
            &lt;property name="can_focus"&gt;False&lt;/property&gt;
            &lt;property name="action_name"&gt;app.zoom&lt;/property&gt;
            &lt;property name="label" translatable="yes"&gt;zoom&lt;/property&gt;
            &lt;property name="use_underline"&gt;True&lt;/property&gt;
            &lt;property name="stock_id"&gt;gtk-zoom-in&lt;/property&gt;
          &lt;/object&gt;
          &lt;packing&gt;
            &lt;property name="expand"&gt;False&lt;/property&gt;
            &lt;property name="homogeneous"&gt;True&lt;/property&gt;
          &lt;/packing&gt;
        &lt;/child&gt;
      &lt;/object&gt;
    &lt;/child&gt;
  &lt;/object&gt;
&lt;/interface&gt;
</code></pre>

<p>The python file:</p>

<pre><code>from gi.repository import Gtk, Gio

class Application(Gtk.Application):

    def do_activate(self):
        action = Gio.SimpleAction.new('zoom', None)
        action.connect('activate', self.on_zoom)
        self.add_action(action)

        builder = Gtk.Builder.new_from_file('window.glade')
        window = builder.get_object('window')
        window.show_all()
        self.add_window(window)

    def on_zoom(self, action, param):
        print('clicked')


if __name__ == '__main__':
    Application().run()
</code></pre>

<p>You can also have a look at an <a href="http://python-gtk-3-tutorial.readthedocs.io/en/latest/application.html" rel="nofollow">example for the application menu</a> as it is similar</p>

python toolbar pygtk gtk3 glade