Skip to content

Commit

Permalink
booru/tagview: Disable horizontal scrollbar, ellipsize very long tags
Browse files Browse the repository at this point in the history
  • Loading branch information
ahodesuka committed Dec 3, 2017
1 parent 5ded035 commit 7dc52b8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions src/booru/tagview.cc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,8 @@ TagView::TagView(BaseObjectType *cobj, const Glib::RefPtr<Gtk::Builder> &bldr)
append_column("Toggle", *cell);

append_column("Tag", m_Columns.tag);
Gtk::CellRendererText *tcell = static_cast<Gtk::CellRendererText*>(get_column_cell_renderer(2));
tcell->property_ellipsize() = Pango::ELLIPSIZE_END;

get_column(0)->set_cell_data_func(*fcell, sigc::mem_fun(*this, &TagView::on_favorite_cell_data));
get_column(1)->set_cell_data_func(*cell, sigc::mem_fun(*this, &TagView::on_toggle_cell_data));
Expand Down
2 changes: 1 addition & 1 deletion src/ui.glade
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@
<object class="GtkScrolledWindow" id="scrolledwindow1">
<property name="visible">True</property>
<property name="can_focus">True</property>
<property name="hscrollbar_policy">automatic</property>
<property name="hscrollbar_policy">never</property>
<property name="vscrollbar_policy">automatic</property>
<child>
<object class="GtkTreeView" id="Booru::Browser::TagView">
Expand Down

0 comments on commit 7dc52b8

Please sign in to comment.