Skip to content

Instantly share code, notes, and snippets.

@Dudemanguy
Dudemanguy / glib-thumbnailer.patch
Last active October 8, 2026 22:17 — forked from ahodesuka/glib-thumbnailer.patch
Sends a dbus signal for generating thumbnails.
From 26e26aa7db761e3b92177907da26e752a0b8a9cc Mon Sep 17 00:00:00 2001
From: Dudemanguy <random342@airmail.cc>
Date: Fri, 20 Sep 2024 12:50:10 -0500
Subject: [PATCH 1/1] glocalfileinfo: add dbus thumbnail generation requests
Send a dbus signal to thumbnailing generators so they can make
thumbnails if needed.
Co-authored-by: ahoka <ahodesuka@users.noreply.github.com>
---
diff --git a/gtk/gtkfilechooserprivate.h b/gtk/gtkfilechooserprivate.h
index a0a622c111..2af859433d 100644
--- a/gtk/gtkfilechooserprivate.h
+++ b/gtk/gtkfilechooserprivate.h
@@ -32,10 +32,14 @@
#include "gtktreestore.h"
#include "gtktreeview.h"
#include "gtkbox.h"
+#include "gtkiconview.h"
+#include "gtkscale.h"
@Dudemanguy
Dudemanguy / gtk2-filechooser-icon-view.patch
Last active December 21, 2020 04:27 — forked from ahodesuka/gtk2-filechooser-icon-view.patch
Adds an icon view to the gtk2 filechooser upload dialog. Generated from https://github.com/Dudemanguy911/gtk/tree/gtk2-filechooser-icon-view
diff --git a/gtk/gtkfilechooserdefault.c b/gtk/gtkfilechooserdefault.c
index c11354248e..a994aa9c6f 100644
--- a/gtk/gtkfilechooserdefault.c
+++ b/gtk/gtkfilechooserdefault.c
@@ -80,6 +80,7 @@
#include <sys/stat.h>
#include <sys/types.h>
#include <locale.h>
+#include <math.h>