diff options
author | rbuj <[email protected]> | 2020-04-08 12:25:50 +0200 |
---|---|---|
committer | ZenWalker <[email protected]> | 2020-04-16 18:55:16 +0200 |
commit | fc8ef0f3bed2e973734b042dbfffa5ef80e4f826 (patch) | |
tree | b7b200bae236931be32cb8560292614d5bdc23f1 | |
parent | 06ec8896af725b80d9adc7f94699001b0dc23489 (diff) | |
download | mate-applets-fc8ef0f3bed2e973734b042dbfffa5ef80e4f826.tar.bz2 mate-applets-fc8ef0f3bed2e973734b042dbfffa5ef80e4f826.tar.xz |
multiload: declaration of ‘screen’ shadows a previous local
-rw-r--r-- | multiload/main.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/multiload/main.c b/multiload/main.c index 07b1dc99..cd647cba 100644 --- a/multiload/main.c +++ b/multiload/main.c @@ -114,9 +114,7 @@ start_procman (MultiloadApplet *ma) screen = gtk_widget_get_screen (GTK_WIDGET (ma->applet)); appinfo = g_desktop_app_info_new (monitor); if (appinfo) { - GdkScreen *screen; GdkAppLaunchContext *context; - screen = gtk_widget_get_screen (GTK_WIDGET (ma->applet)); display = gdk_screen_get_display (screen); context = gdk_display_get_app_launch_context (display); gdk_app_launch_context_set_screen (context, screen); @@ -157,8 +155,7 @@ start_procman (MultiloadApplet *ma) NULL); gtk_window_set_resizable (GTK_WINDOW (dialog), FALSE); - gtk_window_set_screen (GTK_WINDOW (dialog), - gtk_widget_get_screen (GTK_WIDGET (ma->applet))); + gtk_window_set_screen (GTK_WINDOW (dialog), screen); gtk_widget_show (dialog); |