mirror of
https://github.com/rad4day/Waybar.git
synced 2023-12-21 10:22:59 +01:00
refactor: simpler code
This commit is contained in:
@ -55,7 +55,6 @@ class Bar {
|
||||
void setMarginsAndZone(uint32_t height, uint32_t width);
|
||||
auto setupWidgets() -> void;
|
||||
void getModules(const Factory &, const std::string &);
|
||||
bool handleScroll(GdkEventScroll*);
|
||||
void setupAltFormatKeyForModule(const std::string &module_name);
|
||||
void setupAltFormatKeyForModuleList(const char *module_list_name);
|
||||
|
||||
|
@ -7,8 +7,8 @@
|
||||
#include "bar.hpp"
|
||||
#include "client.hpp"
|
||||
#include "modules/sway/ipc/client.hpp"
|
||||
#include "util/sleeper_thread.hpp"
|
||||
#include "util/json.hpp"
|
||||
#include "util/sleeper_thread.hpp"
|
||||
|
||||
namespace waybar::modules::sway {
|
||||
|
||||
@ -19,8 +19,6 @@ class Workspaces : public IModule, public sigc::trackable {
|
||||
auto update() -> void;
|
||||
operator Gtk::Widget&();
|
||||
|
||||
bool handleScroll(GdkEventScroll*);
|
||||
|
||||
private:
|
||||
void onCmd(const struct Ipc::ipc_response&);
|
||||
void onEvent(const struct Ipc::ipc_response&);
|
||||
@ -32,6 +30,7 @@ class Workspaces : public IModule, public sigc::trackable {
|
||||
const std::string getCycleWorkspace(std::vector<Json::Value>::iterator, bool prev) const;
|
||||
uint16_t getWorkspaceIndex(const std::string& name) const;
|
||||
std::string trimWorkspaceName(std::string);
|
||||
bool handleScroll(GdkEventScroll*);
|
||||
|
||||
const Bar& bar_;
|
||||
const Json::Value& config_;
|
||||
|
Reference in New Issue
Block a user