[mate-applets] 01/01: Add 0002_fix_cpufreq_applet_spacing.patch. Fix cpufreq applet spacing on HiDPI displays.

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Thu Mar 22 10:38:19 UTC 2018


This is an automated email from the git hooks/post-receive script.

flexiondotorg-guest pushed a commit to branch master
in repository mate-applets.

commit b2f02f9ea9dc4c3a570fab110776c99109c3d995
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Wed Mar 21 17:47:05 2018 +0000

    Add 0002_fix_cpufreq_applet_spacing.patch. Fix cpufreq applet spacing on HiDPI displays.
---
 .../patches/0002_fix_cpufreq_applet_spacing.patch  | 24 ++++++++++++++++++++++
 debian/patches/series                              |  1 +
 2 files changed, 25 insertions(+)

diff --git a/debian/patches/0002_fix_cpufreq_applet_spacing.patch b/debian/patches/0002_fix_cpufreq_applet_spacing.patch
new file mode 100644
index 0000000..9bfa41d
--- /dev/null
+++ b/debian/patches/0002_fix_cpufreq_applet_spacing.patch
@@ -0,0 +1,24 @@
+diff --git a/cpufreq/src/cpufreq-applet.c b/cpufreq/src/cpufreq-applet.c
+index 4f60202..c667eda 100644
+--- a/cpufreq/src/cpufreq-applet.c
++++ b/cpufreq/src/cpufreq-applet.c
+@@ -372,8 +372,10 @@ cpufreq_applet_get_preferred_width (GtkWidget *widget, gint *minimum_width, gint
+ 	CPUFreqApplet *applet;
+ 	gint           labels_width = 0;
+ 	gint           width;
++	gint           scale;
+ 
+ 	applet = CPUFREQ_APPLET (widget);
++	scale = gtk_widget_get_scale_factor (widget);
+ 
+ 	if (applet->orient == MATE_PANEL_APPLET_ORIENT_LEFT ||
+ 	    applet->orient == MATE_PANEL_APPLET_ORIENT_RIGHT)
+@@ -401,7 +403,7 @@ cpufreq_applet_get_preferred_width (GtkWidget *widget, gint *minimum_width, gint
+ 		width = labels_width;
+ 	}
+ 
+-	*minimum_width = *natural_width = width;
++	*minimum_width = *natural_width = width / scale;
+ }
+ 
+ static void
diff --git a/debian/patches/series b/debian/patches/series
index bc8f6ac..5f8e515 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,2 +1,3 @@
 0001_add_style_class_multiload_applet.patch
+0002_fix_cpufreq_applet_spacing.patch
 1000-fix-build-on-linux-4.7-or-newer.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mate/mate-applets.git



More information about the pkg-mate-commits mailing list