Possible fix Windows thumbbar

This commit is contained in:
Jonas Kvinge
2020-10-17 03:37:39 +02:00
parent c30fb0d38c
commit 6861b0d668
2 changed files with 51 additions and 36 deletions

View File

@@ -2,6 +2,7 @@
* Strawberry Music Player
* This file was part of Clementine.
* Copyright 2010, David Sansome <me@davidsansome.com>
* Copyright 2020, Jonas Kvinge <jonas@jkvinge.net>
*
* Strawberry is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -21,8 +22,6 @@
#ifndef WINDOWS7THUMBBAR_H
#define WINDOWS7THUMBBAR_H
#include "config.h"
#include <windows.h>
#include <shobjidl.h>
@@ -48,6 +47,10 @@ class Windows7ThumbBar : public QObject {
// Call this from the parent's winEvent() function.
void HandleWinEvent(MSG *msg);
private:
ITaskbarList3 *CreateTaskbarList();
void SetupButton(const QAction *action, THUMBBUTTON *button);
private slots:
void ActionChanged();
@@ -56,8 +59,6 @@ class Windows7ThumbBar : public QObject {
QList<QAction*> actions_;
unsigned int button_created_message_id_;
ITaskbarList3 *taskbar_list_;
};
#endif // WINDOWS7THUMBBAR_H