Skip to content

Commit f74900c

Browse files
lcolittiammen99
authored andcommitted
wf-background: remove unused timer argument to change_background
1 parent 1b8a607 commit f74900c

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/background/background.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ Glib::RefPtr<Gdk::Pixbuf> WayfireBackground::create_from_file_safe(std::string p
100100
return pbuf;
101101
}
102102

103-
bool WayfireBackground::change_background(int timer)
103+
bool WayfireBackground::change_background()
104104
{
105105
Glib::RefPtr<Gdk::Pixbuf> pbuf;
106106
std::string path;
@@ -256,8 +256,8 @@ void WayfireBackground::reset_cycle_timeout()
256256
change_bg_conn.disconnect();
257257
if (images.size())
258258
{
259-
change_bg_conn = Glib::signal_timeout().connect(sigc::bind(sigc::mem_fun(
260-
this, &WayfireBackground::change_background), 0), cycle_timeout);
259+
change_bg_conn = Glib::signal_timeout().connect(sigc::mem_fun(
260+
this, &WayfireBackground::change_background), cycle_timeout);
261261
}
262262
}
263263

src/background/background.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class WayfireBackground
6161

6262
Glib::RefPtr<Gdk::Pixbuf> create_from_file_safe(std::string path);
6363
bool background_transition_frame(int timer);
64-
bool change_background(int timer);
64+
bool change_background();
6565
bool load_images_from_dir(std::string path);
6666
bool load_next_background(Glib::RefPtr<Gdk::Pixbuf> & pbuf, std::string & path);
6767
void reset_background();

0 commit comments

Comments
 (0)