Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

HistoryView: toolbar bugfixes

  • Loading branch information...
commit ada6271e2c00abaad54d8bfa07de6b1e56d4b1d1 1 parent 9773880
@stfacc authored
Showing with 6 additions and 8 deletions.
  1. +5 −7 data/pixasso-history-view.ui
  2. +1 −1  src/pixasso-history-view.cpp
View
12 data/pixasso-history-view.ui
@@ -8,13 +8,14 @@
<property name="hscrollbar_policy">never</property>
<property name="vscrollbar_policy">automatic</property>
<property name="vexpand">true</property>
- <property name="width_request">150</property>
+ <property name="width_request">160</property>
</object>
<object class="GtkToolbar" id="history-toolbar">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="icon_size">1</property>
<property name="icon_size_set">True</property>
+ <property name="show_arrow">True</property>
<style>
<class name="inline-toolbar"/>
</style>
@@ -58,15 +59,12 @@
</packing>
</child>
<child>
- <object class="GtkToolItem" id="clear-button-item">
+ <object class="GtkToolButton" id="clear-button">
<property name="visible">True</property>
<property name="tooltip_markup" translatable="yes">Permanently delete all snippets</property>
<property name="tooltip_text">Permanently delete all snippets</property>
- <child>
- <object class="GtkButton" id="clear-button">
- <property name="label" translatable="yes">Clear</property>
- </object>
- </child>
+ <property name="label" translatable="yes">Clear</property>
+ <property name="is_important">True</property>
</object>
</child>
</object>
View
2  src/pixasso-history-view.cpp
@@ -108,7 +108,7 @@ HistoryView::HistoryView (Glib::RefPtr<History> &history)
attach (*toolbar, 0, 1, 1, 1);
refBuilder->get_widget ("clear-button", widget);
- ((Gtk::Button *) widget)->signal_clicked ()
+ ((Gtk::ToolButton *) widget)->signal_clicked ()
.connect (sigc::mem_fun (*this, &HistoryView::on_clear_button_clicked));
refBuilder->get_widget ("show-button", show_button);
Please sign in to comment.
Something went wrong with that request. Please try again.