summaryrefslogtreecommitdiff
path: root/applets/wncklet/window-list.c
diff options
context:
space:
mode:
authorVictor Kareh <[email protected]>2025-07-18 10:51:52 -0400
committerVictor Kareh <[email protected]>2025-07-23 10:48:09 -0400
commit1e392a614d5f447531a6883ed9dc19b4c30b8eb6 (patch)
tree010ed78be185f70a84b33073c7f3a54f1024031a /applets/wncklet/window-list.c
parent796528749b8a3e4227ca736b47f78ece64515b16 (diff)
downloadmate-panel-1e392a614d5f447531a6883ed9dc19b4c30b8eb6.tar.bz2
mate-panel-1e392a614d5f447531a6883ed9dc19b4c30b8eb6.tar.xz
Remove deprecated gdk_screen_get_* functions
Screen functions are replaced with their Display equivalents to remove deprecation warnings. Display functions take into account the entire display server connection, rather than a single physical monitor.
Diffstat (limited to 'applets/wncklet/window-list.c')
-rw-r--r--applets/wncklet/window-list.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c
index 93785cc1..3e828264 100644
--- a/applets/wncklet/window-list.c
+++ b/applets/wncklet/window-list.c
@@ -786,16 +786,15 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)
tasklist->applet = GTK_WIDGET(applet);
provider = gtk_css_provider_new ();
- screen = gdk_screen_get_default ();
gtk_css_provider_load_from_data (provider,
".mate-panel-menu-bar button,\n"
" #tasklist-button {\n"
" padding: 0px;\n"
" margin: 0px;\n }",
-1, NULL);
- gtk_style_context_add_provider_for_screen (screen,
- GTK_STYLE_PROVIDER (provider),
- GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
+ gtk_style_context_add_provider_for_screen (gtk_widget_get_screen (tasklist->applet),
+ GTK_STYLE_PROVIDER (provider),
+ GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
g_object_unref (provider);
mate_panel_applet_set_flags(MATE_PANEL_APPLET(tasklist->applet), MATE_PANEL_APPLET_EXPAND_MAJOR | MATE_PANEL_APPLET_EXPAND_MINOR | MATE_PANEL_APPLET_HAS_HANDLE);