[gnome-software: 30/110] gs-application: Remove custom startup notification code
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software: 30/110] gs-application: Remove custom startup notification code
- Date: Tue, 5 Oct 2021 20:32:36 +0000 (UTC)
commit 83b0435424e92b990887b411ab63e5a85cbb8273
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Aug 22 21:04:56 2021 -0300
gs-application: Remove custom startup notification code
It's all handled by GtkToplevel these days.
src/gs-application.c | 24 ------------------------
1 file changed, 24 deletions(-)
---
diff --git a/src/gs-application.c b/src/gs-application.c
index 163e86fab..5d82e6f4a 100644
--- a/src/gs-application.c
+++ b/src/gs-application.c
@@ -19,13 +19,6 @@
#include <gio/gdesktopappinfo.h>
#include <libsoup/soup.h>
-#ifdef GDK_WINDOWING_X11
-#include <gdk/gdkx.h>
-#endif
-#ifdef GDK_WINDOWING_WAYLAND
-#include <gdk/gdkwayland.h>
-#endif
-
#ifdef HAVE_PACKAGEKIT
#include "gs-dbus-helper.h"
#endif
@@ -877,7 +870,6 @@ install_resources_activated (GSimpleAction *action,
gpointer data)
{
GsApplication *app = GS_APPLICATION (data);
- GdkDisplay *display;
const gchar *mode;
const gchar *startup_id;
const gchar *desktop_id;
@@ -886,22 +878,6 @@ install_resources_activated (GSimpleAction *action,
g_variant_get (parameter, "(&s^a&s&s&s&s)", &mode, &resources, &startup_id, &desktop_id, &ident);
- display = gdk_display_get_default ();
-#ifdef GDK_WINDOWING_X11
- if (GDK_IS_X11_DISPLAY (display)) {
- if (startup_id != NULL && startup_id[0] != '\0')
- gdk_x11_display_set_startup_notification_id (display,
- startup_id);
- }
-#endif
-#ifdef GDK_WINDOWING_WAYLAND
- if (GDK_IS_WAYLAND_DISPLAY (display)) {
- if (startup_id != NULL && startup_id[0] != '\0')
- gdk_wayland_display_set_startup_notification_id (display,
- startup_id);
- }
-#endif
-
gs_application_present_window (app, startup_id);
gs_shell_reset_state (app->shell);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]