Skip to content

Commit

Permalink
HistoryView: toolbar bugfixes
Browse files Browse the repository at this point in the history
  • Loading branch information
stfacc committed Oct 14, 2011
1 parent 9773880 commit ada6271
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
12 changes: 5 additions & 7 deletions data/pixasso-history-view.ui
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
<property name="hscrollbar_policy">never</property> <property name="hscrollbar_policy">never</property>
<property name="vscrollbar_policy">automatic</property> <property name="vscrollbar_policy">automatic</property>
<property name="vexpand">true</property> <property name="vexpand">true</property>
<property name="width_request">150</property> <property name="width_request">160</property>
</object> </object>
<object class="GtkToolbar" id="history-toolbar"> <object class="GtkToolbar" id="history-toolbar">
<property name="visible">True</property> <property name="visible">True</property>
<property name="can_focus">False</property> <property name="can_focus">False</property>
<property name="icon_size">1</property> <property name="icon_size">1</property>
<property name="icon_size_set">True</property> <property name="icon_size_set">True</property>
<property name="show_arrow">True</property>
<style> <style>
<class name="inline-toolbar"/> <class name="inline-toolbar"/>
</style> </style>
Expand Down Expand Up @@ -58,15 +59,12 @@
</packing> </packing>
</child> </child>
<child> <child>
<object class="GtkToolItem" id="clear-button-item"> <object class="GtkToolButton" id="clear-button">
<property name="visible">True</property> <property name="visible">True</property>
<property name="tooltip_markup" translatable="yes">Permanently delete all snippets</property> <property name="tooltip_markup" translatable="yes">Permanently delete all snippets</property>
<property name="tooltip_text">Permanently delete all snippets</property> <property name="tooltip_text">Permanently delete all snippets</property>
<child> <property name="label" translatable="yes">Clear</property>
<object class="GtkButton" id="clear-button"> <property name="is_important">True</property>
<property name="label" translatable="yes">Clear</property>
</object>
</child>
</object> </object>
</child> </child>
</object> </object>
Expand Down
2 changes: 1 addition & 1 deletion src/pixasso-history-view.cpp
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ HistoryView::HistoryView (Glib::RefPtr<History> &history)
attach (*toolbar, 0, 1, 1, 1); attach (*toolbar, 0, 1, 1, 1);


refBuilder->get_widget ("clear-button", widget); 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)); .connect (sigc::mem_fun (*this, &HistoryView::on_clear_button_clicked));


refBuilder->get_widget ("show-button", show_button); refBuilder->get_widget ("show-button", show_button);
Expand Down

0 comments on commit ada6271

Please sign in to comment.