diff options
author | Joey Dalton | 2023-12-08 11:50:50 +0200 |
---|---|---|
committer | Joey Dalton | 2023-12-08 11:50:50 +0200 |
commit | e4d78cca9c8ef129afd1b6169fbad1afda6b48f5 (patch) | |
tree | 406afc5d735215d82a9eeda26ac194939bf7c333 | |
parent | afecdf2215be8620e8475205e0faad9140b5878d (diff) | |
download | aur-e4d78cca9c8ef129afd1b6169fbad1afda6b48f5.tar.gz |
Added patch file as the GitHub repository is no longer available
-rw-r--r-- | .SRCINFO | 8 | ||||
-rw-r--r-- | PKGBUILD | 20 | ||||
-rw-r--r-- | appearance__file-chooser-xfce.patch | 161 |
3 files changed, 174 insertions, 15 deletions
@@ -1,8 +1,8 @@ pkgbase = gtk3-classic-xfce pkgdesc = Patched GTK+3 that provides a more classic experience, with patches for xfce pkgver = 3.24.38 - pkgrel = 4 - url = https://github.com/simplejack-src/gtk3-classic-xfce + pkgrel = 5 + url = https://github.com/lah7/gtk3-classic install = gtk3.install arch = x86_64 license = LGPL @@ -79,11 +79,11 @@ pkgbase = gtk3-classic-xfce source = https://download.gnome.org/sources/gtk+/3.24/gtk+-3.24.38.tar.xz source = gtk-query-immodules-3.0.hook::https://gitlab.archlinux.org/archlinux/packaging/packages/gtk3/-/raw/108c7090a77081cd124c819e014ced95b4648d55/gtk-query-immodules-3.0.hook source = settings.ini - source = gtk3-classic-xfce-3.24.38.tar.gz::https://github.com/simplejack-src/gtk3-classic-xfce/archive/refs/tags/3.24.38.tar.gz + source = appearance__file-chooser-xfce.patch sha256sums = SKIP sha256sums = ce11decf018b25bdd8505544a4f87242854ec88be054d9ade5f3a20444dd8ee7 sha256sums = a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229 sha256sums = 01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202 - sha256sums = 75e3beae2f38405faad570c9483920ea34726a16264311319c460966fd53031a + sha256sums = c443bfa1f70ac5ce2102c83b38b193e78f614b606cb0dae807ecd25d591f1e99 pkgname = gtk3-classic-xfce @@ -3,7 +3,7 @@ # This file is based on the gtk3-classic PKGBUILD: # https://aur.archlinux.org/packages/gtk3-classic # and uses xfce patches from: -# https://github.com/simplejack-src/gtk3-classic-xfce +# https://github.com/simplejack-src/gtk3-classic-xfce (repository no longer available) __arch_pkg_commit="108c7090a77081cd124c819e014ced95b4648d55" _gtkver=3.24.38 @@ -16,11 +16,11 @@ _gtk3_classic=gtk3-classic pkgbase=gtk3-classic-xfce pkgname=($pkgbase) pkgver=${_gtkver} -pkgrel=4 +pkgrel=5 pkgdesc="Patched GTK+3 that provides a more classic experience, with patches for xfce" -url="https://github.com/simplejack-src/gtk3-classic-xfce" +url="https://github.com/lah7/gtk3-classic" conflicts=(gtk3 gtk3-typeahead gtk3-print-backends gtk3-nocsd gtk3-nocsd-git gtk3-nocsd-legacy-git gtk3-classic) -provides=(gtk3-classic=${pkgver} gtk3=$_gtkver gtk3-typeahead=$_gtkver gtk3-mushrooms=$_gtkver gtk3-print-backends +provides=(gtk3-classic=$_gtkver gtk3=$_gtkver gtk3-typeahead=$_gtkver gtk3-mushrooms=$_gtkver gtk3-print-backends libgtk-3.so libgdk-3.so libgailutil-3.so) arch=(x86_64) license=(LGPL) @@ -86,25 +86,23 @@ makedepends=( wayland-protocols ) install=gtk3.install -source=( - git+$_gtk3_classic_url.git#commit=$_gtk3_classic_commit +source=(git+$_gtk3_classic_url.git#commit=$_gtk3_classic_commit "https://download.gnome.org/sources/gtk+/${pkgver%.*}/gtk+-$_gtkver.tar.xz" - "gtk-query-immodules-3.0.hook::https://gitlab.archlinux.org/archlinux/packaging/packages/gtk3/-/raw/$__arch_pkg_commit/gtk-query-immodules-3.0.hook" settings.ini - "$pkgbase-$_gtkver.tar.gz::https://github.com/simplejack-src/gtk3-classic-xfce/archive/refs/tags/$_gtkver.tar.gz" + appearance__file-chooser-xfce.patch ) sha256sums=('SKIP' 'ce11decf018b25bdd8505544a4f87242854ec88be054d9ade5f3a20444dd8ee7' 'a0319b6795410f06d38de1e8695a9bf9636ff2169f40701671580e60a108e229' '01fc1d81dc82c4a052ac6e25bf9a04e7647267cc3017bc91f9ce3e63e5eb9202' - '75e3beae2f38405faad570c9483920ea34726a16264311319c460966fd53031a') + 'c443bfa1f70ac5ce2102c83b38b193e78f614b606cb0dae807ecd25d591f1e99') prepare() { cd gtk+-$_gtkver - cp ../"$pkgbase"-$_gtkver/*.patch ../"$_gtk3_classic" - cat ../"$pkgbase"-$_gtkver/series >> ../"$_gtk3_classic"/series + cp ../"appearance__file-chooser-xfce.patch" ../"$_gtk3_classic" + echo "appearance__file-chooser-xfce.patch" >> ../"$_gtk3_classic"/series QUILT_PATCHES=../"$_gtk3_classic" quilt push -av rm -f "$srcdir"/gtk+-"$_gtkver"/gtk/theme/Adwaita/gtk-contained{,-dark}.css diff --git a/appearance__file-chooser-xfce.patch b/appearance__file-chooser-xfce.patch new file mode 100644 index 000000000000..da5b21d7c643 --- /dev/null +++ b/appearance__file-chooser-xfce.patch @@ -0,0 +1,161 @@ +Index: gtk3/gtk/gtkplacessidebar.c +=================================================================== +--- gtk3.orig/gtk/gtkplacessidebar.c ++++ gtk3/gtk/gtkplacessidebar.c +@@ -457,12 +457,34 @@ list_box_header_func (GtkListBoxRow *row + else + { + before_section_type = SECTION_INVALID; +- gtk_widget_set_margin_top (GTK_WIDGET (row), 4); + } + +- if (before && before_section_type != row_section_type) ++ if (before_section_type != row_section_type) + { +- separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); ++ switch (row_section_type) ++ { ++ case SECTION_COMPUTER: ++ case SECTION_BOOKMARKS: ++ if (before_section_type == SECTION_COMPUTER) ++ { ++ return; ++ } ++ separator = gtk_label_new(NULL); ++ gtk_label_set_markup(GTK_LABEL(separator), "<b>Places</b>"); ++ break; ++ case SECTION_MOUNTS: ++ separator = gtk_label_new(NULL); ++ gtk_label_set_markup(GTK_LABEL(separator), "<b>Devices</b>"); ++ break; ++ case SECTION_OTHER_LOCATIONS: ++ separator = gtk_label_new(NULL); ++ gtk_label_set_markup(GTK_LABEL(separator), "<b>Network</b>"); ++ break; ++ default: ++ separator = gtk_separator_new (GTK_ORIENTATION_HORIZONTAL); ++ } ++ gtk_widget_set_halign(separator, GTK_ALIGN_START); ++ gtk_widget_set_margin_left (separator, 14); + gtk_widget_set_margin_top (separator, 4); + gtk_widget_set_margin_bottom (separator, 4); + gtk_list_box_row_set_header (row, separator); +@@ -531,6 +553,7 @@ add_place (GtkPlacesSidebar * + g_signal_connect (event_box, "button-release-event", + G_CALLBACK (on_button_release_event), row); + ++ gtk_widget_set_margin_left(GTK_WIDGET (row), 10); + gtk_container_add (GTK_CONTAINER (sidebar->list_box), GTK_WIDGET (row)); + gtk_widget_show_all (row); + +@@ -1100,7 +1123,7 @@ update_places (GtkPlacesSidebar *sidebar + SECTION_COMPUTER, + _("Home"), start_icon, NULL, home_uri, + NULL, NULL, NULL, NULL, 0, +- _("Open your personal folder")); ++ _("Open the home folder")); + g_object_unref (start_icon); + g_free (home_uri); + +@@ -1375,7 +1398,7 @@ update_places (GtkPlacesSidebar *sidebar + SECTION_MOUNTS, + sidebar->hostname, start_icon, NULL, mount_uri, + NULL, NULL, NULL, NULL, 0, +- _("Open the contents of the file system")); ++ _("Browse the file system")); + g_object_unref (start_icon); + } + +@@ -1547,8 +1570,8 @@ update_places (GtkPlacesSidebar *sidebar + + add_place (sidebar, PLACES_BUILT_IN, + SECTION_OTHER_LOCATIONS, +- _("Networks"), start_icon, NULL, "network:///", +- NULL, NULL, NULL, NULL, 0, _("Show other locations")); ++ _("Browse Network"), start_icon, NULL, "network:///", ++ NULL, NULL, NULL, NULL, 0, _("Browse local network connections")); + + g_object_unref (start_icon); + } +@@ -3976,7 +3999,15 @@ list_box_sort_func (GtkListBoxRow *row1, + place_type_1 == PLACES_XDG_DIR) || + section_type_1 == SECTION_MOUNTS) + { +- retval = g_utf8_collate (label_1, label_2); ++ /* Local non-removable in first mounts position */ ++ if ((section_type_1 == SECTION_MOUNTS) && ++ (place_type_1 == PLACES_BUILT_IN)) ++ retval = -1; ++ else if ((section_type_1 == SECTION_MOUNTS) && ++ (place_type_2 == PLACES_BUILT_IN)) ++ retval = 1; ++ else ++ retval = g_utf8_collate (label_1, label_2); + } + else if ((place_type_1 == PLACES_BOOKMARK || place_type_2 == PLACES_DROP_FEEDBACK) && + (place_type_1 == PLACES_DROP_FEEDBACK || place_type_2 == PLACES_BOOKMARK)) +Index: gtk3/gtk/gtkplacessidebarprivate.h +=================================================================== +--- gtk3.orig/gtk/gtkplacessidebarprivate.h ++++ gtk3/gtk/gtkplacessidebarprivate.h +@@ -30,9 +30,9 @@ G_BEGIN_DECLS + typedef enum { + SECTION_INVALID, + SECTION_COMPUTER, ++ SECTION_BOOKMARKS, + SECTION_MOUNTS, + SECTION_CLOUD, +- SECTION_BOOKMARKS, + SECTION_OTHER_LOCATIONS, + N_SECTIONS + } GtkPlacesSidebarSectionType; +Index: gtk3/gtk/ui/gtkfilechooserwidget.ui +=================================================================== +--- gtk3.orig/gtk/ui/gtkfilechooserwidget.ui ++++ gtk3/gtk/ui/gtkfilechooserwidget.ui +@@ -15,9 +15,10 @@ + <object class="GtkPlacesSidebar" id="places_sidebar"> + <property name="visible">1</property> + <property name="hscrollbar-policy">never</property> +- <property name="local-only">1</property> + <property name="show-other-locations">0</property> + <property name="show-trash">0</property> ++ <property name="show-recent">0</property> ++ <property name="show-desktop">0</property> + <child internal-child="accessible"> + <object class="AtkObject"> + <property name="AtkObject::accessible-name" translatable="yes">Places</property> +Index: gtk3/gtk/gtksidebarrow.c +=================================================================== +--- gtk3.orig/gtk/gtksidebarrow.c ++++ gtk3/gtk/gtksidebarrow.c +@@ -230,7 +230,7 @@ gtk_sidebar_row_set_property (GObject + self->start_icon = G_ICON (g_object_ref (object)); + gtk_image_set_from_gicon (GTK_IMAGE (self->start_icon_widget), + self->start_icon, +- GTK_ICON_SIZE_MENU); ++ GTK_ICON_SIZE_LARGE_TOOLBAR); + } + else + { +@@ -415,7 +415,7 @@ gtk_sidebar_row_set_start_icon (GtkSideb + g_set_object (&self->start_icon, icon); + if (self->start_icon != NULL) + gtk_image_set_from_gicon (GTK_IMAGE (self->start_icon_widget), self->start_icon, +- GTK_ICON_SIZE_MENU); ++ GTK_ICON_SIZE_LARGE_TOOLBAR); + else + gtk_image_clear (GTK_IMAGE (self->start_icon_widget)); + +Index: gtk3/gtk/gtkfilechooserwidget.c +=================================================================== +--- gtk3.orig/gtk/gtkfilechooserwidget.c ++++ gtk3/gtk/gtkfilechooserwidget.c +@@ -3345,7 +3345,6 @@ update_appearance (GtkFileChooserWidget + priv->action == GTK_FILE_CHOOSER_ACTION_SELECT_FOLDER) + { + save_widgets_destroy (impl); +- gtk_places_sidebar_set_show_recent (GTK_PLACES_SIDEBAR (priv->places_sidebar), recent_files_setting_is_enabled (impl)); + location_mode_set (impl, priv->location_mode); + } + |