mirror of
https://github.com/DYefremov/DemonEditor.git
synced 2026-01-20 22:43:23 +01:00
scaling picons on loading
This commit is contained in:
@@ -142,6 +142,9 @@ class PiconsDialog:
|
||||
|
||||
def update_picons(self, path):
|
||||
p_model = self._picons_view.get_model()
|
||||
if not p_model:
|
||||
return
|
||||
|
||||
model = get_base_model(p_model)
|
||||
self._picons_view.set_model(None)
|
||||
factor = self._app.DEL_FACTOR
|
||||
@@ -156,7 +159,7 @@ class PiconsDialog:
|
||||
return
|
||||
|
||||
try:
|
||||
p = GdkPixbuf.Pixbuf.new_from_file(filename="{}/{}".format(path, file))
|
||||
p = GdkPixbuf.Pixbuf.new_from_file_at_scale("{}/{}".format(path, file), 100, 60, True)
|
||||
except GLib.GError as e:
|
||||
pass
|
||||
else:
|
||||
|
||||
Reference in New Issue
Block a user