From b08050dfbbde2d7e8b0e77bbd22c2888e5a8de41 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Thu, 1 Jul 2021 13:38:23 +0100 Subject: [PATCH] Recent: Fix buttons layout Fixes https://github.com/linuxmint/mint20.2-beta/issues/75 --- usr/lib/linuxmint/mintMenu/plugins/recent.py | 4 +-- usr/share/linuxmint/mintmenu/recent.ui | 27 ++++++++++++-------- 2 files changed, 18 insertions(+), 13 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/plugins/recent.py b/usr/lib/linuxmint/mintMenu/plugins/recent.py index 39f89d3..fa7ab48 100755 --- a/usr/lib/linuxmint/mintMenu/plugins/recent.py +++ b/usr/lib/linuxmint/mintMenu/plugins/recent.py @@ -7,7 +7,7 @@ import subprocess import gi gi.require_version("Gtk", "3.0") -from gi.repository import Gtk, Gio +from gi.repository import Gtk, Gio, Pango import plugins.recentHelper as RecentHelper from plugins.execute import Execute @@ -174,7 +174,7 @@ class pluginclass: Box1.add(ButtonIcon) Label1 = Gtk.Label(DispName) - Label1.set_ellipsize(3) + Label1.set_ellipsize(Pango.EllipsizeMode.END) Box1.add(Label1) AButton.add(Box1) diff --git a/usr/share/linuxmint/mintmenu/recent.ui b/usr/share/linuxmint/mintmenu/recent.ui index 3b3d6c9..4c6bc0c 100644 --- a/usr/share/linuxmint/mintmenu/recent.ui +++ b/usr/share/linuxmint/mintmenu/recent.ui @@ -1,12 +1,12 @@ - + False 3 window1 - + @@ -34,15 +34,19 @@ True False - 6 - 6 + 12 + 12 + 12 + 12 none - + True False vertical - start + + + @@ -67,15 +71,16 @@ True False - 6 - 6 + 12 + 12 + 12 + 12 + none - + True False - 3 vertical - start