[gnome-panel/gnome-3-20] disable scaling support in GTK+
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-panel/gnome-3-20] disable scaling support in GTK+
- Date: Fri, 12 Aug 2016 11:07:43 +0000 (UTC)
commit c8737e234d0edca6c6f39beaff78fcc7daae3f6a
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Fri Aug 12 13:49:29 2016 +0300
disable scaling support in GTK+
gnome-panel/main.c | 4 ++++
libpanel-applet/panel-applet.c | 3 +++
2 files changed, 7 insertions(+), 0 deletions(-)
---
diff --git a/gnome-panel/main.c b/gnome-panel/main.c
index 683ad04..4409b17 100644
--- a/gnome-panel/main.c
+++ b/gnome-panel/main.c
@@ -13,6 +13,7 @@
#include <glib/gi18n.h>
#include <glib-unix.h>
+#include <gtk/gtkx.h>
#include <libpanel-util/panel-cleanup.h>
#include <libpanel-util/panel-glib.h>
@@ -147,6 +148,9 @@ main (int argc, char **argv)
gtk_init (&argc, &argv);
+ /* FIXME: High dpi scaling does not work... */
+ gdk_x11_display_set_window_scale (gdk_display_get_default (), 1);
+
g_unix_signal_add (SIGTERM, on_term_signal, NULL);
g_unix_signal_add (SIGINT, on_int_signal, NULL);
diff --git a/libpanel-applet/panel-applet.c b/libpanel-applet/panel-applet.c
index 7a10ef2..16ca456 100644
--- a/libpanel-applet/panel-applet.c
+++ b/libpanel-applet/panel-applet.c
@@ -1752,6 +1752,9 @@ panel_applet_init (PanelApplet *applet)
gtk_style_context_add_class (context, GTK_STYLE_CLASS_HORIZONTAL);
panel_applet_composited_changed (GTK_WIDGET (applet));
+
+ /* FIXME: High dpi scaling does not work... */
+ gdk_x11_display_set_window_scale (gdk_display_get_default (), 1);
}
static GObject *
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]