[network-manager-applet] applet: fix widget assertion failure when running as indicator
- From: Thomas Haller <thaller src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [network-manager-applet] applet: fix widget assertion failure when running as indicator
- Date: Fri, 14 Feb 2020 17:22:20 +0000 (UTC)
commit 360ad330ed2dc4c34a40e418a2a8c642459dd4f9
Author: Victor Kareh <vkareh redhat com>
Date: Wed Dec 4 10:01:11 2019 -0500
applet: fix widget assertion failure when running as indicator
Fixes: dc9ee4e1129c ('applet: scale icons for HiDPI displays')
https://gitlab.gnome.org/GNOME/network-manager-applet/merge_requests/74
src/applet.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/applet.c b/src/applet.c
index abf0c25c..7f0883e6 100644
--- a/src/applet.c
+++ b/src/applet.c
@@ -3001,7 +3001,7 @@ nma_icon_check_and_load (const char *name, NMApplet *applet)
if (g_hash_table_lookup_extended (applet->icon_cache, name, NULL, (gpointer) &icon))
return icon;
- scale = gtk_widget_get_scale_factor (applet->context_menu);
+ scale = gdk_window_get_scale_factor (gdk_get_default_root_window ());
/* Try to load the icon; if the load fails, log the problem, and set
* the icon to the fallback icon if requested.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]