Skip to content

Commit

Permalink
fix Window List - vertical panel issue mate-desktop#269
Browse files Browse the repository at this point in the history
  • Loading branch information
mihai-bica committed May 2, 2015
1 parent ccc73a9 commit 03afcd3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions applets/wncklet/window-list.c
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,7 @@ static void applet_change_orient(MatePanelApplet* applet, MatePanelAppletOrient

tasklist->orientation = new_orient;

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

Expand Down Expand Up @@ -450,11 +446,11 @@ gboolean window_list_applet_fill(MatePanelApplet* applet)

#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_orientation (WNCK_TASKLIST (tasklist->tasklist), tasklist->orientation);
wnck_tasklist_set_icon_loader(WNCK_TASKLIST(tasklist->tasklist), icon_loader_func, tasklist, NULL);

g_signal_connect(G_OBJECT(tasklist->tasklist), "destroy", G_CALLBACK(destroy_tasklist), tasklist);
Expand Down

0 comments on commit 03afcd3

Please sign in to comment.