Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
xfce4-panel: window buttons: fix tiny icons when labels are enabled
diff --git a/plugins/tasklist/tasklist-widget.c b/plugins/tasklist/tasklist-widget.c
index 74119d1a..e694f651 100644
--- a/plugins/tasklist/tasklist-widget.c
+++ b/plugins/tasklist/tasklist-widget.c
@@ -651,7 +651,7 @@ xfce_tasklist_get_window_icon (WnckWindow *window,
{
GdkPixbuf *pixbuf;
- if (show_labels || type == CHILD_TYPE_GROUP_MENU || size <= 31)
+ if (size <= 31)
pixbuf = wnck_window_get_mini_icon (window);
else
pixbuf = wnck_window_get_icon (window);
@@ -3898,9 +3898,7 @@ xfce_tasklist_group_button_icon_changed (WnckClassGroup *class_group,
context = gtk_widget_get_style_context (GTK_WIDGET (group_child->icon));
/* get the class group icon */
- if (group_child->tasklist->show_labels)
- pixbuf = wnck_class_group_get_mini_icon (class_group);
- else if (icon_size <= 31)
+ if (icon_size <= 31)
pixbuf = wnck_class_group_get_mini_icon (class_group);
else
pixbuf = wnck_class_group_get_icon (class_group);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.