Появилась возможность перетаскивать ярлыки в Избранном в mate-menu, как это было в mint-menu много лет назад. Патч ниже. Проверил, работает. Прошу применить патч https://www.riksoft.it/wikiriks/linux/advanced-mate-menu-favourites-cant-be-rearranged https://github.com/ubuntu-mate/mate-menu/issues/81 --- /root/applications.py.orig 2023-01-02 14:50:55.071567632 +0500 +++ /usr/lib/python3/site-packages/mate_menu/plugins/applications.py 2023-01-02 14:54:12.748555410 +0500 @@ -192,8 +192,12 @@ TARGET_TYPE_TEXT = 80 toButton = ( Gtk.TargetEntry.new( "text/uri-list", 0, TARGET_TYPE_TEXT ), Gtk.TargetEntry.new( "text/uri-list", 0, TARGET_TYPE_TEXT ) ) TARGET_TYPE_FAV = 81 - toFav = ( Gtk.TargetEntry.new( "FAVORITES", Gtk.TargetFlags.SAME_APP, 81 ), Gtk.TargetEntry.new( "text/plain", 0, 100 ), Gtk.TargetEntry.new( "text/uri-list", 0, 101 ) ) - fromFav = ( Gtk.TargetEntry.new( "FAVORITES", Gtk.TargetFlags.SAME_APP, 81 ), Gtk.TargetEntry.new( "FAVORITES", Gtk.TargetFlags.SAME_APP, 81 ) ) +# toFav = ( Gtk.TargetEntry.new( "FAVORITES", Gtk.TargetFlags.SAME_APP, 81 ), Gtk.TargetEntry.new( "text/plain", 0, 100 ), Gtk.TargetEntry.new( "text/uri-list", 0, 101 ) ) +# fromFav = ( Gtk.TargetEntry.new( "FAVORITES", Gtk.TargetFlags.SAME_APP, 81 ), Gtk.TargetEntry.new( "FAVORITES", Gtk.TargetFlags.SAME_APP, 81 ) ) +# ----- ADDED (Rik) + toFav = (Gtk.TargetEntry.new("text/plain", Gtk.TargetFlags.SAME_APP, 81), Gtk.TargetEntry.new("text/plain", 0, 100), Gtk.TargetEntry.new("text/uri-list", 0, 101)) + fromFav = (Gtk.TargetEntry.new("text/plain", Gtk.TargetFlags.SAME_APP, 81), Gtk.TargetEntry.new("text/plain", Gtk.TargetFlags.SAME_APP, 81)) +#------------------- def __init__(self, mateMenuWin, toggleButton): self.mateMenuWin = mateMenuWin @@ -1369,11 +1373,13 @@ def on_drag_data_received( self, widget, context, x, y, selection, info, time ): if info == self.TARGET_TYPE_FAV: - self.favoritesReorder( int(selection.get_data()), widget.position ) +# self.favoritesReorder( int(selection.get_data()), widget.position ) + self.favoritesReorder(int(selection.get_data().decode()), widget.position) def on_drag_data_get( self, widget, context, selection, targetType, time ): if targetType == self.TARGET_TYPE_FAV: - selection.set(Gdk.SELECTION_CLIPBOARD, 8, str(widget.position)) + # selection.set(Gdk.SELECTION_CLIPBOARD, 8, str(widget.position)) + selection.set_text(str(widget.position), -1) def on_icon_theme_changed(self, theme): self.menuChanged (0, 0)