Skip to content

Instantly share code, notes, and snippets.

diff --git a/bind.go b/bind.go
index 0a48252..a3fc22c 100644
--- a/bind.go
+++ b/bind.go
@@ -23,7 +23,7 @@ const (
// BindType returns the bindtype for a given database given a drivername.
func BindType(driverName string) int {
switch driverName {
- case "postgres", "pgx", "pq-timeouts", "cloudsqlpostgres":
+ case "postgres", "pgx", "pq-timeouts", "cloudsqlpostgres", "ql":
@LinuxMatt
LinuxMatt / gist:bb69a88f6968554bf47e
Last active December 3, 2015 20:06
nct, Ubuntu 14.04, commit d5cbc9be22588c5111b1f2350939a3a55384daae
Running aclocal -I m4 ...
Running autoheader...
Running automake --gnu ...
configure.ac:5: error: required directory ./build-aux does not exist
configure.ac:19: error: installing 'build-aux/compile'; error while making link: Aucun fichier ou dossier de ce type
configure.ac:7: error: installing 'build-aux/install-sh'; error while making link: Aucun fichier ou dossier de ce type
configure.ac:7: error: installing 'build-aux/missing'; error while making link: Aucun fichier ou dossier de ce type
src/Makefile.am: error: installing 'build-aux/depcomp'; error while making link: Aucun fichier ou dossier de ce type
Running autoconf ...
Running ./configure ...
@LinuxMatt
LinuxMatt / thunar_shadow_basename.patch
Created March 2, 2015 20:54
[PATCH] Fix compiler warning about shadow 'basename' in thunar-file.c
From 3f62f21109e2fa24d52c7f2d64dfbe71b2e3c3fa Mon Sep 17 00:00:00 2001
From: Matt Thirtytwo <matt.59491@gmail.com>
Date: Mon, 2 Mar 2015 21:51:36 +0100
Subject: [PATCH] Fix compiler warning about shadow 'basename' in
thunar-file.c
---
thunar/thunar-file.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
@LinuxMatt
LinuxMatt / clock_shadow_time.patch
Created March 2, 2015 20:28
This patch fixes the shadow error on the clock plugin while compiling xfce4-panel with --enable-debug=full.
From 804dcc94a581447dabfe9815406e974bc88d06fd Mon Sep 17 00:00:00 2001
From: Matt Thirtytwo <matt.59491@gmail.com>
Date: Mon, 2 Mar 2015 21:18:41 +0100
Subject: [PATCH] Fix compiler warning in clock plugin about shadowed 'time'
variable
---
plugins/clock/clock-analog.c | 20 ++++++------
plugins/clock/clock-binary.c | 28 ++++++++---------
plugins/clock/clock-digital.c | 8 ++---
@LinuxMatt
LinuxMatt / ugly_fix_for_bug11008.diff
Created February 2, 2015 13:11
Thunar bug 11008
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 60fe3e7..f230cda 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -1224,7 +1224,8 @@ thunar_file_get_with_info (GFile *gfile,
_thunar_return_val_if_fail (G_IS_FILE_INFO (info), NULL);
/* check if we already have a cached version of that file */
- file = thunar_file_cache_lookup (gfile);
+ //file = thunar_file_cache_lookup (gfile);
@LinuxMatt
LinuxMatt / Thunar_Makefile_generated_sources.diff
Created February 1, 2015 18:56
Thunar_Makefile_generated_sources.diff
diff --git a/thunar/Makefile.am b/thunar/Makefile.am
index 04846de..c4ecb68 100644
--- a/thunar/Makefile.am
+++ b/thunar/Makefile.am
@@ -25,14 +25,25 @@ thunar_built_sources = \
thunar-marshal.c \
thunar-marshal.h
+thunar_generated_sources = \
+ thunar-abstract-icon-view-ui.h \
@LinuxMatt
LinuxMatt / draft_alpha_sort_bug11075.patch
Last active August 29, 2015 14:13
This is an incomplete draft of a patch for bug 11075 in Thunar
diff --git a/thunar/thunar-file.c b/thunar/thunar-file.c
index 60fe3e7..db84c78 100644
--- a/thunar/thunar-file.c
+++ b/thunar/thunar-file.c
@@ -67,6 +67,7 @@
#include <thunar/thunar-util.h>
#include <thunar/thunar-dialogs.h>
#include <thunar/thunar-icon-factory.h>
+#include <thunar/thunar-preferences.h>