This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/macappkit.m b/src/macappkit.m | |
index 7945090f40..de080cc3f4 100644 | |
--- a/src/macappkit.m | |
+++ b/src/macappkit.m | |
@@ -2335,6 +2335,7 @@ - (void)setupWindow | |
[window setContentView:visualEffectView]; | |
MRC_RELEASE (visualEffectView); | |
FRAME_BACKGROUND_ALPHA_ENABLED_P (f) = true; | |
+ window.titlebarAppearsTransparent = true; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/src/widgets/battery.c b/src/widgets/battery.c | |
index 9b9df18..3c871d3 100644 | |
--- a/src/widgets/battery.c | |
+++ b/src/widgets/battery.c | |
@@ -3,15 +3,15 @@ | |
#include "util/dbus_helpers.h" | |
static int | |
-widget_send_update (struct widget *widget, DBusGProxy *properties_proxy, char *pathbuf) { | |
+widget_send_update (struct widget *widget, DBusGProxy *properties_proxy, char *dbus_path) { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def switch(option, arg=None): | |
def option1(x): | |
print 'option 1' | |
def option2(x): | |
print 'option 2' | |
def option3(x): | |
print 'option 3' | |
options = { | |
'option1': option1, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import redis | |
import threading | |
class Listener(threading.Thread): | |
def __init__(self, r, channels): | |
threading.Thread.__init__(self) | |
self.redis = r | |
self.pubsub = self.redis.pubsub() | |
self.pubsub.subscribe(channels) | |