| 1 |
https://gitlab.com/compiz/compiz-boxmenu/-/merge_requests/4 |
| 2 |
|
| 3 |
commit cec0b5272ede4e7a59dd5c53b7b4e799d353266f |
| 4 |
Author: Samuel Thibault <[email protected]> |
| 5 |
Date: Mon May 4 13:10:48 2020 +0200 |
| 6 |
|
| 7 |
Fix accessing GError |
| 8 |
|
| 9 |
diff --git a/new-editor/pyicon_browser.py b/new-editor/pyicon_browser.py |
| 10 |
index 2b1fb48..7d3b33a 100644 |
| 11 |
--- a/new-editor/pyicon_browser.py |
| 12 |
+++ b/new-editor/pyicon_browser.py |
| 13 |
@@ -50,7 +50,7 @@ class IcoBrowse(Gtk.Dialog): |
| 14 |
# self.model.append([defaulttheme.load_icon(i, 32, |
| 15 |
# Gtk.IconLookupFlags.USE_BUILTIN), |
| 16 |
# i,c]) |
| 17 |
- # except GError as err: stderr.write('Error loading "%s": %s\n' % (i, err.args[0])) |
| 18 |
+ # except GLib.GError as err: stderr.write('Error loading "%s": %s\n' % (i, err.args[0])) |
| 19 |
#other=list(set(defaulttheme.list_icons())-(set(catted_icons))) |
| 20 |
#for i in other: |
| 21 |
# self.model.append([defaulttheme.load_icon(i, 32, |
| 22 |
@@ -116,7 +116,7 @@ def set_up(): |
| 23 |
ICON_STORE.append([defaulttheme.load_icon(i, 32, |
| 24 |
Gtk.IconLookupFlags.USE_BUILTIN), |
| 25 |
i,c]) |
| 26 |
- except GError as err: stderr.write('Error loading "%s": %s\n' % (i, err.args[0])) |
| 27 |
+ except GLib.GError as err: stderr.write('Error loading "%s": %s\n' % (i, err.args[0])) |
| 28 |
other=list(set(defaulttheme.list_icons())-catted_icons) |
| 29 |
print("Placing misc. icons in Other") |
| 30 |
for i in other: |