Skip to content

Commit

Permalink
Revert "Fixing Window List - stretched buttons on vertical panel orie…
Browse files Browse the repository at this point in the history
…ntation mate-desktop#269"

This reverts commit 7ddb320.
  • Loading branch information
mihai-bica committed May 2, 2015
1 parent 7ddb320 commit ccc73a9
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion applets/wncklet/window-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,11 @@ static void applet_change_orient(MatePanelApplet* applet, MatePanelAppletOrient

tasklist->orientation = new_orient;

wnck_tasklist_set_orientation (WNCK_TASKLIST (tasklist->tasklist), new_orient);
#ifdef WNCK_CHECK_VERSION
#if WNCK_CHECK_VERSION (3, 4, 6)
wnck_tasklist_set_orientation (tasklist->tasklist, new_orient);
#endif
#endif
tasklist_update(tasklist);
}

Expand Down Expand Up @@ -444,8 +448,12 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)
tasklist->tasklist = wnck_tasklist_new(NULL);
#endif

#ifdef WNCK_CHECK_VERSION
#if WNCK_CHECK_VERSION (3, 4, 6)
wnck_tasklist_set_orientation (WNCK_TASKLIST (tasklist->tasklist), tasklist->orientation);
wnck_tasklist_set_middle_click_close (WNCK_TASKLIST (tasklist->tasklist), TRUE);
#endif
#endif

wnck_tasklist_set_icon_loader(WNCK_TASKLIST(tasklist->tasklist), icon_loader_func, tasklist, NULL);

Expand Down

0 comments on commit ccc73a9

Please sign in to comment.