Skip to content

Commit

Permalink
Align thumbnails to the left/top
Browse files Browse the repository at this point in the history
* Also remove the Gtk.Alignment object which is deprecated since Gtk 3.14
* Close #42
  • Loading branch information
jeromerobert committed Jan 12, 2019
1 parent b4a471a commit 1d303a7
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions pdfarranger/pdfarranger.py
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,6 @@ def __init__(self):
self.sw.connect('button_press_event', self.sw_button_press_event)
self.sw.connect('scroll_event', self.sw_scroll_event)

# Create an alignment to keep the thumbnails center-aligned
align = Gtk.Alignment.new(0.5, 0.5, 0, 0)
self.sw.add_with_viewport(align)

# Create ListStore model and IconView
self.model = Gtk.ListStore(str, # 0.Text descriptor
GObject.TYPE_PYOBJECT,
Expand Down Expand Up @@ -241,7 +237,7 @@ def __init__(self):
self.iconview.connect('button_release_event', self.iv_button_release_event)
self.iconview.connect('selection_changed', self.iv_selection_changed_event)

align.add(self.iconview)
self.sw.add_with_viewport(self.iconview)

# Progress bar
self.progress_bar = self.uiXML.get_object('progressbar')
Expand Down

0 comments on commit 1d303a7

Please sign in to comment.