Skip to content

Instantly share code, notes, and snippets.

View mtwebster's full-sized avatar

Michael Webster mtwebster

View GitHub Profile
#!/usr/bin/env python
import polib
import sys
import os
@mtwebster
mtwebster / mo-check
Last active December 17, 2015 19:09
Check locale dir for mo files, report back any where token counts don't match or token order doesn't match
#!/usr/bin/env python
import polib
import sys
import os
tokentypes = ["%d", "%s", "%B", "%'d"]
for root, subFolders, files in os.walk(os.getcwd(),topdown=False):
for file in files:
@mtwebster
mtwebster / optirun.nemo_action
Created August 25, 2013 19:41
Nemo action for optirun
[Nemo Action]
Name=Execute with Optirun
Comment=Run the selected program using Optirun
Exec=optirun "%F"
Selection=s
@mtwebster
mtwebster / optirun-desktop.nemo_action
Created August 25, 2013 19:54
Alternate nemo_action for .desktop files. Use in conjunction with optirun-desktop.py
[Nemo Action]
Name=Execute with Optirun
Comment=Run the selected program using Optirun
Exec=<optirun-desktop.py "%F">
Selection=s
@mtwebster
mtwebster / optirun-desktop.py
Created August 25, 2013 19:55
Script to use with optirun-desktop.nemo_action. Must be stored in the same folder as the nemo_action file (~/.local/share/nemo/actions) and be set to executable.
#! /usr/bin/python -OOt
import sys
import os
from gi.repository import GLib
path = sys.argv[1]
GROUP = "Desktop Entry"
@mtwebster
mtwebster / sound-source-mon
Created August 26, 2016 20:23
monitors sound events using libcvc (cinnamon)
#!/usr/bin/env python3
import gi
gi.require_version('Cvc', '1.0')
from gi.repository import Cvc, GLib
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
#!/usr/bin/env python
import os
import sys
import time
import signal
signal.signal(signal.SIGINT, signal.SIG_DFL)
from gi.repository import Gio, GLib, GObject
@mtwebster
mtwebster / InteractiveShell.py
Created February 7, 2018 23:46 — forked from rpmuller/InteractiveShell.py
Create an interactive shell in a GUI
class FileCacher:
"Cache the stdout text so we can analyze it before returning it"
def __init__(self): self.reset()
def reset(self): self.out = []
def write(self,line): self.out.append(line)
def flush(self):
output = '\n'.join(self.out)
self.reset()
return output
===================================================================
GDB Log
===================================================================
[New LWP 7061]
[New LWP 7066]
[New LWP 7063]
[New LWP 7065]
[New LWP 7067]
[New LWP 7064]
[New LWP 7069]
diff --git a/src/compositor/meta-window-actor.c b/src/compositor/meta-window-actor.c
index 272cd0d..9f84dbf 100644
--- a/src/compositor/meta-window-actor.c
+++ b/src/compositor/meta-window-actor.c
@@ -265,6 +265,8 @@ static void do_send_frame_timings (MetaWindowActor *self,
static void set_obscured (MetaWindowActor *self,
gboolean obscured);
+static void meta_window_actor_set_initial_opacity (MetaWindowActor *self);
+