[mate-control-center] 01/01: debian/patches: Add 0001_default_xcursor_to_24.patch. Change cursor-size to 24px because the MATE cursor theme doesn't have an 18px cursor and 24px looks correct on regular DPI and HiDPI displays.

Martin Wimpress flexiondotorg-guest at moszumanska.debian.org
Wed Apr 25 12:21:43 BST 2018


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

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

commit 6c7782cdc3e76af1434c5beb27fa86835357e2f7
Author: Martin Wimpress <martin.wimpress at ubuntu.com>
Date:   Wed Apr 25 11:18:18 2018 +0100

    debian/patches: Add 0001_default_xcursor_to_24.patch. Change cursor-size to 24px because the MATE cursor theme doesn't have an 18px cursor and 24px looks correct on regular DPI and HiDPI displays.
---
 debian/patches/0001_default_xcursor_to_24.patch | 66 +++++++++++++++++++++++++
 debian/patches/series                           |  1 +
 2 files changed, 67 insertions(+)

diff --git a/debian/patches/0001_default_xcursor_to_24.patch b/debian/patches/0001_default_xcursor_to_24.patch
new file mode 100644
index 0000000..f97504d
--- /dev/null
+++ b/debian/patches/0001_default_xcursor_to_24.patch
@@ -0,0 +1,66 @@
+Author: Victor Kareh <vkareh at vkareh.net>
+Description: Change cursor-size to 24px
+ The MATE cursor theme does not have an 18px cursor size, so having
+ a 18px as the default setting does not make sense. Using 24px looks
+ better in modern displays and allows for proper HiDPI scaling.
+
+diff --git a/capplets/appearance/appearance-style.c b/capplets/appearance/appearance-style.c
+index 161917c..d036c46 100644
+--- a/capplets/appearance/appearance-style.c
++++ b/capplets/appearance/appearance-style.c
+@@ -544,7 +544,7 @@ update_cursor_size_scale (MateThemeCursorInfo *theme,
+     if (theme && theme->sizes->len > 0)
+       size = g_array_index (theme->sizes, gint, 0);
+     else
+-      size = 18;
++      size = 24;
+   }
+ 
+   if (size != gsettings_size)
+diff --git a/capplets/common/mate-theme-info.c b/capplets/common/mate-theme-info.c
+index 3012c9b..54ae3ae 100644
+--- a/capplets/common/mate-theme-info.c
++++ b/capplets/common/mate-theme-info.c
+@@ -32,7 +32,6 @@
+ #include <glib/gi18n.h>
+ #include <gmodule.h>
+ #include <gtk/gtk.h>
+-#include <gdk/gdk.h>
+ #include <gdk/gdkx.h>
+ #include <gio/gio.h>
+ #include <string.h>
+@@ -384,8 +383,6 @@ MateThemeMetaInfo* mate_theme_read_meta_theme(GFile* meta_theme_uri)
+ 
+ 	str = mate_desktop_item_get_string(meta_theme_ditem, CURSOR_THEME_KEY);
+ 
+-	GdkWindow *window = gdk_get_default_root_window ();
+-	gint scale = gdk_window_get_scale_factor (window);
+ 	if (str != NULL)
+ 	{
+ 		meta_theme_info->cursor_theme_name = g_strdup(str);
+@@ -395,14 +392,13 @@ MateThemeMetaInfo* mate_theme_read_meta_theme(GFile* meta_theme_uri)
+ 		if (str)
+ 			meta_theme_info->cursor_size = (int) g_ascii_strtoll(str, NULL, 10);
+ 		else
+-			meta_theme_info->cursor_size = 18;
++			meta_theme_info->cursor_size = 24;
+ 	}
+ 	else
+ 	{
+ 		meta_theme_info->cursor_theme_name = g_strdup("default");
+-		meta_theme_info->cursor_size = 18;
++		meta_theme_info->cursor_size = 24;
+ 	}
+-	meta_theme_info->cursor_size *= scale;
+ 
+ 	str = mate_desktop_item_get_string(meta_theme_ditem, APPLICATION_FONT_KEY);
+ 
+@@ -545,7 +541,7 @@ read_cursor_theme (GFile *cursor_theme_uri)
+   MateThemeCursorInfo *cursor_theme_info = NULL;
+   GFile *parent_uri, *cursors_uri;
+ 
+-  const gint filter_sizes[] = { 12, 16, 24, 32, 36, 40, 48, 64, 96, 128 };
++  const gint filter_sizes[] = { 12, 16, 18, 24, 32, 36, 40, 48, 64, 96, 128 };
+   const gint num_sizes = G_N_ELEMENTS (filter_sizes);
+ 
+   parent_uri = g_file_get_parent (cursor_theme_uri);
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..ee6f81a
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+0001_default_xcursor_to_24.patch

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



More information about the pkg-mate-commits mailing list