Skip to content

Instantly share code, notes, and snippets.

View nHurD's full-sized avatar

Jonathan Steele nHurD

  • Haddonfield, NJ
View GitHub Profile
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;
}
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) {
@nHurD
nHurD / switch.py
Last active August 29, 2015 13:56
Pythonic Switch
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,
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)