Skip to content

Instantly share code, notes, and snippets.

View donadigo's full-sized avatar

Adam donadigo

View GitHub Profile
@donadigo
donadigo / Plugin.as
Created September 18, 2023 10:54
TMInterface socket example
Net::Socket@ sock = null;
Net::Socket@ clientSock = null;
enum MessageType {
SCRunStepSync = 0,
CSetSpeed,
CRewindToState,
CSetInputState,
CShutdown
}
#include "stdafx.h"
#include <cstdint>
#include <map>
#include <Windows.h>
#include <iostream>
#include <vector>
#define DllExport extern "C" __declspec(dllexport)
#pragma pack(1)
diff --git a/src/core/screen.c b/src/core/screen.c
index c14bba0cf..8b1e8ffd4 100644
--- a/src/core/screen.c
+++ b/src/core/screen.c
@@ -89,6 +89,7 @@ enum
WORKSPACE_ADDED,
WORKSPACE_REMOVED,
WORKSPACE_SWITCHED,
+ WORKSPACES_REORDERED,
WINDOW_ENTERED_MONITOR,
From 33a3888a76cd12ef59bbd3097f9f32343b928367 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Adam=20Bie=C5=84kowski?= <[email protected]>
Date: Tue, 30 Apr 2019 17:36:54 +0200
Subject: [PATCH] lib: add BadgeColor setting to override the urgent color
diff --git a/lib/DockRenderer.vala b/lib/DockRenderer.vala
index de795f7..5f9fcd2 100644
--- a/lib/DockRenderer.vala
+++ b/lib/DockRenderer.vala
@donadigo
donadigo / cheatsheet.md
Last active June 5, 2018 09:21 — forked from matzipan/cheatsheet.md
Vala, GLib and GTK+ cheatsheet

Enable debug messages

Set the following environment variable G_MESSAGES_DEBUG=all. This will allow you to see messages you print with debug in Vala.

Markup escaping

If you try and set_text on a Gtk.Label a string which might contain markup characters (&lt;&gt;&amp;), you need to escape them first, using GLib.Markup.escape_text.