From 8579a7840417bcf5c3c18f79ade64b99c3901f02 Mon Sep 17 00:00:00 2001 From: Dany LE Date: Mon, 21 Jul 2025 21:21:37 +0200 Subject: [PATCH] refactor code --- src/widgets/taskbar-widget.c | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/widgets/taskbar-widget.c b/src/widgets/taskbar-widget.c index bb28d92..b510cb6 100644 --- a/src/widgets/taskbar-widget.c +++ b/src/widgets/taskbar-widget.c @@ -278,17 +278,6 @@ static void diya_taskbar_list_model_selection_changed_cb(GtkSelectionModel *mode } } -static void diya_taskbar_applist_enter(GtkEventControllerFocus *controller, DiyaTaskbarWidget* self) -{ - g_debug("diya_taskbar_applist_enter"); -} - - -static void diya_taskbar_applist_leave(GtkEventControllerFocus *controller, DiyaTaskbarWidget* self) -{ - g_debug("diya_taskbar_applist_leaver"); -} - static void diya_taskbar_widget_init(DiyaTaskbarWidget *self) { g_debug("diya_taskbar_widget_init"); @@ -328,10 +317,12 @@ static void diya_taskbar_widget_init(DiyaTaskbarWidget *self) self->selection_changed_sig_id = g_signal_connect(GTK_SELECTION_MODEL(self->proxy_model), "selection-changed", G_CALLBACK(diya_taskbar_list_model_selection_changed_cb), self); // event handle + /* GtkEventController *controller = gtk_event_controller_focus_new(); g_signal_connect(controller, "enter", G_CALLBACK(diya_taskbar_applist_enter), self); g_signal_connect(controller, "leave", G_CALLBACK(diya_taskbar_applist_leave), self); gtk_widget_add_controller(GTK_WIDGET(self->apps_list), GTK_EVENT_CONTROLLER(controller)); + */ } static void diya_taskbar_set_property(GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)