Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Step:FrontRunner
gnome-shell-extension-desktop-icons
desktop-icon-gnome-41.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File desktop-icon-gnome-41.patch of Package gnome-shell-extension-desktop-icons
diff --git a/fileItem.js b/fileItem.js index 3cf2f54..c6b21f9 100644 --- a/fileItem.js +++ b/fileItem.js @@ -445,7 +445,7 @@ var FileItem = GObject.registerClass({ _createEmblemedStIcon(icon, iconName) { if (icon != null) { let theme = Gtk.IconTheme.get_default(); - if (theme.lookup_by_gicon(icon, null, Gtk.IconLookupFlags.GENERIC_FALLBACK) == null) + if (theme.lookup_by_gicon(icon, null, Gtk.IconLookupFlags.FORCE_REGULAR) == null) icon = Gio.ThemedIcon.new_with_default_fallbacks('text-x-generic'); } else { if (GLib.path_is_absolute(iconName)) { diff --git a/metadata.json b/metadata.json index a6784d2..5a45307 100644 --- a/metadata.json +++ b/metadata.json @@ -2,6 +2,6 @@ "name": "Desktop Icons", "description": "Add icons to the desktop", "uuid": "desktop-icons@csoriano", - "shell-version": ["3.38.0"], + "shell-version": ["3.38.0", "41"], "url": "https://gitlab.gnome.org/World/ShellExtensions/desktop-icons" } diff --git a/prefs.js b/prefs.js index 4b33e55..bcc444e 100644 --- a/prefs.js +++ b/prefs.js @@ -98,13 +98,19 @@ function get_schema(schema) { function buildPrefsWidget() { initTranslations(); - let frame = new Gtk.Box({ orientation: Gtk.Orientation.VERTICAL, border_width: 10, spacing: 10 }); - - frame.add(buildSelector('icon-size', _("Size for the desktop icons"), { 'small': _("Small"), 'standard': _("Standard"), 'large': _("Large") })); - frame.add(buildSwitcher('show-home', _("Show the personal folder in the desktop"))); - frame.add(buildSwitcher('show-trash', _("Show the trash icon in the desktop"))); - frame.add(buildSwitcher('show-mount', _("Show mounted drives in the desktop"))); - frame.show_all(); + let frame = new Gtk.Box({ + orientation: Gtk.Orientation.VERTICAL, + spacing: 10, + margin_top: 10, + margin_bottom: 10, + margin_start: 10, + margin_end: 10, + }); + + frame.append(buildSelector('icon-size', _("Size for the desktop icons"), { 'small': _("Small"), 'standard': _("Standard"), 'large': _("Large") })); + frame.append(buildSwitcher('show-home', _("Show the personal folder in the desktop"))); + frame.append(buildSwitcher('show-trash', _("Show the trash icon in the desktop"))); + frame.append(buildSwitcher('show-mount', _("Show mounted drives in the desktop"))); return frame; } @@ -113,8 +119,8 @@ function buildSwitcher(key, labelText) { let label = new Gtk.Label({ label: labelText, xalign: 0 }); let switcher = new Gtk.Switch({ active: settings.get_boolean(key) }); settings.bind(key, switcher, 'active', 3); - hbox.pack_start(label, true, true, 0); - hbox.add(switcher); + hbox.prepend(label); + hbox.append(switcher); return hbox; } @@ -138,8 +144,8 @@ function buildSelector(key, labelText, elements) { combo.add_attribute (rendererText, 'text', 0); combo.set_id_column(1); settings.bind(key, combo, 'active-id', 3); - hbox.pack_start(label, true, true, 0); - hbox.add(combo); + hbox.prepend(label); + hbox.append(combo); return hbox; }
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor