refactor code
This commit is contained in:
@@ -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)
|
static void diya_taskbar_widget_init(DiyaTaskbarWidget *self)
|
||||||
{
|
{
|
||||||
g_debug("diya_taskbar_widget_init");
|
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);
|
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
|
// event handle
|
||||||
|
/*
|
||||||
GtkEventController *controller = gtk_event_controller_focus_new();
|
GtkEventController *controller = gtk_event_controller_focus_new();
|
||||||
g_signal_connect(controller, "enter", G_CALLBACK(diya_taskbar_applist_enter), self);
|
g_signal_connect(controller, "enter", G_CALLBACK(diya_taskbar_applist_enter), self);
|
||||||
g_signal_connect(controller, "leave", G_CALLBACK(diya_taskbar_applist_leave), 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));
|
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)
|
static void diya_taskbar_set_property(GObject *object, guint property_id, const GValue *value, GParamSpec *pspec)
|
||||||
|
Reference in New Issue
Block a user