From 39b4e3a38e4799cf56263a9da40006edf2da91a8 Mon Sep 17 00:00:00 2001 From: Victor Kareh Date: Mon, 22 Apr 2024 15:50:38 -0400 Subject: wncklet: Remove unused attributes Since the icon loader is no longer present, there is no need to track the icon theme when the applet is realized. This is will all be taken care of by libwnck. --- applets/wncklet/window-list.c | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/applets/wncklet/window-list.c b/applets/wncklet/window-list.c index bc52b1a6..93785cc1 100644 --- a/applets/wncklet/window-list.c +++ b/applets/wncklet/window-list.c @@ -71,8 +71,6 @@ typedef struct { gboolean needs_hints; #endif - GtkIconTheme* icon_theme; - /* Properties: */ GtkWidget* properties_dialog; GtkWidget* wayland_info_label; @@ -205,11 +203,6 @@ static void response_cb(GtkWidget* widget, int id, TasklistData* tasklist) } } -static void applet_realized(MatePanelApplet* applet, TasklistData* tasklist) -{ - tasklist->icon_theme = gtk_icon_theme_get_for_screen(gtk_widget_get_screen(tasklist->applet)); -} - static void applet_change_orient(MatePanelApplet* applet, MatePanelAppletOrient orient, TasklistData* tasklist) { GtkOrientation new_orient; @@ -884,9 +877,6 @@ gboolean window_list_applet_fill(MatePanelApplet* applet) gtk_container_add(GTK_CONTAINER(tasklist->applet), tasklist->tasklist); - g_signal_connect (tasklist->applet, "realize", - G_CALLBACK (applet_realized), - tasklist); g_signal_connect (tasklist->applet, "change-orient", G_CALLBACK (applet_change_orient), tasklist); -- cgit v1.2.1