Skip to content

Commit

Permalink
adventures on win32
Browse files Browse the repository at this point in the history
  • Loading branch information
Shaji Khan committed Oct 14, 2024
1 parent 066b849 commit 0ef04a9
Show file tree
Hide file tree
Showing 27 changed files with 11 additions and 11 deletions.
Binary file modified FileWriter.o
Binary file not shown.
Binary file modified LockFreeQueue.o
Binary file not shown.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ OPUS=`x86_64-w64-mingw32-pkg-config --cflags --libs opus opusfile`
LAME=
X11=
OPTIMIZE=
CC=x86_64-w64-mingw32-gcc -g -mwindows
CPP=x86_64-w64-mingw32-g++ -std=c++17 -g -mwindows
CC=x86_64-w64-mingw32-gcc -g -mwindows
CPP=x86_64-w64-mingw32-g++ -std=c++17 -g -mwindows
DLFCN=-llibdl
endif
all: amprack
Expand Down
Binary file modified Plugin.o
Binary file not shown.
Binary file modified PluginControl.o
Binary file not shown.
Binary file modified SharedLibrary.o
Binary file not shown.
Binary file modified amprack.exe
Binary file not shown.
Binary file modified cairo.o
Binary file not shown.
Binary file modified dictionary.o
Binary file not shown.
Binary file modified engine.o
Binary file not shown.
Binary file modified knob.o
Binary file not shown.
Binary file modified log.o
Binary file not shown.
Binary file modified lv2_ext.o
Binary file not shown.
16 changes: 8 additions & 8 deletions main.cc
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,21 @@ void activate (GApplication * app, void * v) {
MyWindow window = MyWindow ((GtkApplication *) app);
gtk_widget_add_css_class ((GtkWidget *) window.window, "xwindow");

if ( std::filesystem::exists ("assets/themes/TubeAmp/style.css"))
gtk_css_provider_load_from_path(cssProvider, std::string ("assets/themes/").append (window.rack -> theme).append ("/style.css").c_str ());
else
gtk_css_provider_load_from_path(cssProvider, std::string ("/usr/share/amprack/assets/themes/").append (window.rack -> theme).append ("/style.css").c_str ());
gtk_style_context_add_provider_for_display (gdk_display_get_default (), (GtkStyleProvider *)cssProvider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
//~ if ( std::filesystem::exists ("assets/themes/TubeAmp/style.css"))
//~ gtk_css_provider_load_from_path(cssProvider, std::string ("assets/themes/").append (window.rack -> theme).append ("/style.css").c_str ());
//~ else
//~ gtk_css_provider_load_from_path(cssProvider, std::string ("/usr/share/amprack/assets/themes/").append (window.rack -> theme).append ("/style.css").c_str ());
//~ gtk_style_context_add_provider_for_display (gdk_display_get_default (), (GtkStyleProvider *)cssProvider, GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);

# ifdef __linux__
std::string user_css = std::string (getenv ("HOME")).append ("/.config/amprack/style.css").c_str () ;
# else
std::string user_css = std::string (getenv ("USERPROFILE")).append ("/.config/amprack/style.css").c_str () ;
# endif

if (std::filesystem::exists (user_css))
gtk_css_provider_load_from_path(cssProvider2, user_css.c_str());
gtk_style_context_add_provider_for_display (gdk_display_get_default (), (GtkStyleProvider *)cssProvider2, GTK_STYLE_PROVIDER_PRIORITY_USER);
//~ if (std::filesystem::exists (user_css))
//~ gtk_css_provider_load_from_path(cssProvider2, user_css.c_str());
//~ gtk_style_context_add_provider_for_display (gdk_display_get_default (), (GtkStyleProvider *)cssProvider2, GTK_STYLE_PROVIDER_PRIORITY_USER);

gtk_window_present ((GtkWindow *)window.window);
OUT
Expand Down
Binary file modified main.o
Binary file not shown.
Binary file modified mem.o
Binary file not shown.
Binary file modified objects.o
Binary file not shown.
Binary file modified pango.o
Binary file not shown.
Binary file modified pluginui.o
Binary file not shown.
Binary file modified presets.o
Binary file not shown.
Binary file modified process.o
Binary file not shown.
Binary file modified rack.o
Binary file not shown.
Binary file modified settings.o
Binary file not shown.
Binary file modified upwaker.o
Binary file not shown.
Binary file modified util.o
Binary file not shown.
2 changes: 1 addition & 1 deletion version.h
Original file line number Diff line number Diff line change
@@ -1 +1 @@
#define VERSION 138
#define VERSION 139
Binary file modified vringbuffer.o
Binary file not shown.

0 comments on commit 0ef04a9

Please sign in to comment.