From 3f9fffe96d9bbdf48dca2ebb77f2900e15243353 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miroslav=20=C5=A0ediv=C3=BD?= Date: Thu, 7 Jan 2021 18:27:50 +0100 Subject: [PATCH] desktop drop -> gtk. --- internal/desktop/{drop.go => gtk.go} | 4 ++-- internal/desktop/{drop/drop.c => gtk/gtk.c} | 2 +- internal/desktop/{drop/drop.go => gtk/gtk.go} | 4 ++-- internal/desktop/{drop/drop.h => gtk/gtk.h} | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename internal/desktop/{drop.go => gtk.go} (85%) rename internal/desktop/{drop/drop.c => gtk/gtk.c} (99%) rename internal/desktop/{drop/drop.go => gtk/gtk.go} (93%) rename internal/desktop/{drop/drop.h => gtk/gtk.h} (100%) diff --git a/internal/desktop/drop.go b/internal/desktop/gtk.go similarity index 85% rename from internal/desktop/drop.go rename to internal/desktop/gtk.go index 60208c6f..70e1a714 100644 --- a/internal/desktop/drop.go +++ b/internal/desktop/gtk.go @@ -2,7 +2,7 @@ package desktop import ( "time" - "demodesk/neko/internal/desktop/drop" + "demodesk/neko/internal/desktop/gtk" ) const ( @@ -10,7 +10,7 @@ const ( ) func (manager *DesktopManagerCtx) DropFiles(x int, y int, files []string) { - go drop.DragWindow(files) + go gtk.DragWindow(files) // TODO: Find a bettter way. time.Sleep(DELAY) diff --git a/internal/desktop/drop/drop.c b/internal/desktop/gtk/gtk.c similarity index 99% rename from internal/desktop/drop/drop.c rename to internal/desktop/gtk/gtk.c index 457808ac..1184d695 100644 --- a/internal/desktop/drop/drop.c +++ b/internal/desktop/gtk/gtk.c @@ -1,4 +1,4 @@ -#include "drop.h" +#include "gtk.h" static void drag_data_get( GtkWidget *widget, diff --git a/internal/desktop/drop/drop.go b/internal/desktop/gtk/gtk.go similarity index 93% rename from internal/desktop/drop/drop.go rename to internal/desktop/gtk/gtk.go index 3bc8b9b3..d4dc81de 100644 --- a/internal/desktop/drop/drop.go +++ b/internal/desktop/gtk/gtk.go @@ -1,10 +1,10 @@ -package drop +package gtk /* #cgo linux CFLAGS: -I/usr/src -I/usr/local/include/ #cgo pkg-config: gdk-3.0 gtk+-3.0 -#include "drop.h" +#include "gtk.h" */ import "C" diff --git a/internal/desktop/drop/drop.h b/internal/desktop/gtk/gtk.h similarity index 100% rename from internal/desktop/drop/drop.h rename to internal/desktop/gtk/gtk.h