Merge release v1.3.4

This commit is contained in:
coderkun 2018-09-01 18:55:52 +02:00
commit ec4346981f
3 changed files with 6 additions and 6 deletions

View file

@ -1970,7 +1970,7 @@
<property name="gravity">center</property> <property name="gravity">center</property>
<property name="transient_for">appwindow</property> <property name="transient_for">appwindow</property>
<property name="program_name">CoverGrid</property> <property name="program_name">CoverGrid</property>
<property name="version">1.3.3</property> <property name="version">1.3.4</property>
<property name="comments" translatable="yes">CoverGrid is a client for the Music Player Daemon, focusing on albums instead of single tracks.</property> <property name="comments" translatable="yes">CoverGrid is a client for the Music Player Daemon, focusing on albums instead of single tracks.</property>
<property name="website">http://www.suruatoel.xyz/codes/mcg</property> <property name="website">http://www.suruatoel.xyz/codes/mcg</property>
<property name="logo">mcg.svg</property> <property name="logo">mcg.svg</property>

View file

@ -1594,7 +1594,7 @@ class LibraryPanel(GObject.GObject):
return return
self._allocation = new_allocation self._allocation = new_allocation
self._grid_scale.clear_marks() self._grid_scale.clear_marks()
width = widget.get_allocation().width - 12 width = widget.get_allocation().width
lower = int(self._grid_adjustment.get_lower()) lower = int(self._grid_adjustment.get_lower())
upper = int(self._grid_adjustment.get_upper()) upper = int(self._grid_adjustment.get_upper())
@ -1602,7 +1602,7 @@ class LibraryPanel(GObject.GObject):
countMax = max(int(width / lower), 1) countMax = max(int(width / lower), 1)
for index in range(countMin, countMax): for index in range(countMin, countMax):
pixel = int(width / index) pixel = int(width / index)
pixel = pixel - int(pixel / 100) pixel = pixel - (2 * int(pixel / 100))
self._grid_scale.add_mark( self._grid_scale.add_mark(
pixel, pixel,
Gtk.PositionType.BOTTOM, Gtk.PositionType.BOTTOM,
@ -1626,13 +1626,13 @@ class LibraryPanel(GObject.GObject):
def on_grid_scale_change(self, widget, scroll, value): def on_grid_scale_change(self, widget, scroll, value):
size = round(value) size = math.floor(value)
range = self._grid_scale.get_adjustment() range = self._grid_scale.get_adjustment()
if size < range.get_lower() or size > range.get_upper(): if size < range.get_lower() or size > range.get_upper():
return return
self._item_size = size self._item_size = size
GObject.idle_add(self._set_widget_grid_size, self._library_grid, size, True)
GObject.idle_add(self._library_grid.set_item_padding, size / 100) GObject.idle_add(self._library_grid.set_item_padding, size / 100)
GObject.idle_add(self._set_widget_grid_size, self._library_grid, size, True)
def on_grid_scale_changed(self, widget, event): def on_grid_scale_changed(self, widget, event):

View file

@ -53,7 +53,7 @@ setup(
'build_py': build_mcg 'build_py': build_mcg
}, },
name = "mcg", name = "mcg",
version = '1.3.3', version = '1.3.4',
description = "CoverGrid (mcg) is a client for the Music Player Daemon, focusing on albums instead of single tracks.", description = "CoverGrid (mcg) is a client for the Music Player Daemon, focusing on albums instead of single tracks.",
url = "http://www.suruatoel.xyz/codes/mcg", url = "http://www.suruatoel.xyz/codes/mcg",
author = "coderkun", author = "coderkun",