From 27c5ee2e3627e0d17d01c60b0d07050a6ed670dd Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Fri, 10 Apr 2026 00:10:50 +0545 Subject: [PATCH] =?UTF-8?q?refactor(modules/notification):=20consolidate?= =?UTF-8?q?=20Gtk=20importMove=20the=20Gtk=20import=20from=20gi.repository?= =?UTF-8?q?=20into=20the=20top=E2=80=91level=20imports=20to=20simplify=20c?= =?UTF-8?q?ode=20and=20avoid=20duplicated=20imports.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Details - New Features: - Enhancements: - Bug Fixes: --- modules/notification/notification.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/modules/notification/notification.py b/modules/notification/notification.py index 838264d..fc070b5 100644 --- a/modules/notification/notification.py +++ b/modules/notification/notification.py @@ -6,7 +6,7 @@ from fabric.notifications import ( NotificationAction, NotificationCloseReason, ) -from fabric.utils import Gdk, GdkPixbuf, GLib, logger, os +from fabric.utils import Gdk, GdkPixbuf, GLib, logger, os, Gtk from fabric.widgets.box import Box from fabric.widgets.button import Button from fabric.widgets.centerbox import CenterBox @@ -832,8 +832,6 @@ class NotificationRevealer(SlideRevealer): if style_context: # Use CSS provider for smooth transforms if not hasattr(self, "_css_provider") or not self._css_provider: - from gi.repository import Gtk - self._css_provider = Gtk.CssProvider() style_context.add_provider( self._css_provider, Gtk.STYLE_PROVIDER_PRIORITY_APPLICATION