Skip to content

Instantly share code, notes, and snippets.

diff --git a/gdk/quartz/gdkwindow-quartz.c b/gdk/quartz/gdkwindow-quartz.c
index 5c331e2..e991ccd 100644
--- a/gdk/quartz/gdkwindow-quartz.c
+++ b/gdk/quartz/gdkwindow-quartz.c.orig
@@ -2858,7 +2858,7 @@ _gdk_quartz_window_update_fullscreen_state (GdkWindow *window)
if (gdk_quartz_osx_version() >= GDK_OSX_LION)
{
gboolean is_fullscreen = window_is_fullscreen (window);
- gboolean was_fullscreen = (gdk_window_get_state (window) &&
+ gboolean was_fullscreen = (gdk_window_get_state (window) &
--- /dev/null
+++ b/gdk/quartz/gdkquartz-gtk-only.h
@@ -0,0 +1,50 @@
+/* gdkquartz-gtk-only.h
+ *
+ * Copyright (C) 2005-2007 Imendio AB
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
diff --git a/src/main.c b/src/main.c
index b992097..cfba7f5 100644
--- a/src/main.c
+++ b/src/main.c
@@ -165,13 +165,13 @@ static void full_screen_activated(GSimpleAction *action, GVariant *parameter,
app = GTK_APPLICATION(user_data);
window = GTK_WINDOW(gtk_application_get_active_window(app));
+ GdkWindow *gdk_window = gtk_widget_get_window(GTK_WIDGET(window));
+ com.is_fullscreen = gdk_window_get_state (gdk_window) & GDK_WINDOW_STATE_FULLSCREEN;
diff --git a/src/main.c b/src/main.c
index 8d10ad0..6d493ec 100644
--- a/src/main.c
+++ b/src/main.c
@@ -53,7 +53,9 @@
#include "gui/progress_and_log.h"
#include "registration/registration.h"
#include "stacking/stacking.h"
-
+#ifdef PLATFORM_OSX
bash-3.2$ siril
log: Welcome to siril v0.99.0
log: Supported file types: BMP images, PIC images (IRIS), PGM and PPM binary images, RAW images, FITS-CFA images, Films, SER sequences, TIFF images, JPG images, PNG images, HEIF images.
log: Loading init file: '/Users/distiller/.config/siril/siril.config'
log: Parallel processing enabled: Using 4 logical processors.
(siril:7976): Gtk-WARNING **: 01:06:29.197: Could not load image 'pixmaps/siril_logo.svg': Couldn’t recognize the image file format for file “/Users/distiller/gtk/inst/share/siril/pixmaps/siril_logo.svg”
(siril:7976): Gtk-WARNING **: 01:06:29.209: Could not load image 'pixmaps/siril.svg': Couldn’t recognize the image file format for file “/Users/distiller/gtk/inst/share/siril/pixmaps/siril.svg”
diff -ur SuiteSparse/Makefile SuiteSparse.new/Makefile
--- Makefile 2018-12-23 14:31:36.000000000 +0100
+++ Makefile 2019-11-04 07:40:33.000000000 +0100
@@ -38,24 +38,24 @@
# (note that CSparse is not installed; CXSparse is installed instead)
install: metisinstall
( cd SuiteSparse_config && $(MAKE) install )
- ( cd GraphBLAS && $(MAKE) CMAKE_OPTIONS='$(CMAKE_OPTIONS)' install )
- ( cd Mongoose && $(MAKE) CMAKE_OPTIONS='$(CMAKE_OPTIONS)' install )
+# ( cd GraphBLAS && $(MAKE) CMAKE_OPTIONS='$(CMAKE_OPTIONS)' install )
oot@701a9e8989f9:/babl-0.1.72/build# cat /babl-0.1.72/build/meson-logs/testlog.txt
Log of Meson test suite run on 2019-11-01T16:28:57.084323
Inherited environment: HOSTNAME='701a9e8989f9' SHLVL='1' HOME='/root' OLDPWD='/babl-0.1.72' _='/usr/bin/ninja' TERM='xterm' PATH='/root/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin' PWD='/babl-0.1.72/build' LC_CTYPE='C.UTF-8'
1/25 babl_class_name OK 0.15 s
--- command ---
LD_LIBRARY_PATH='/babl-0.1.72/build/babl' GI_TYPELIB_PATH='/babl-0.1.72/build/babl' BABL_PATH='/babl-0.1.72/build/extensions' /babl-0.1.72/build/tests/babl_class_name
-------
# lambda @ edge code to use CloudFront as transparent proxy for the ECR
from urllib.parse import urlparse
def lambda_handler(event, context):
response = event['Records'][0]['cf']['response']
# we need to fix Location response, but only if it redirects us to Orgin
# use try/catch to avoid exception if not set
try:
if(event['Records'][0]['cf']['request']['origin']['custom']['domainName']==urlparse(response["headers"]["location"][0]["value"]).netloc):
#!/bin/sh
case $1 in
start)
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangpa.plist
launchctl load /Library/LaunchAgents/com.paloaltonetworks.gp.pangps.plist
;;
status)
echo "com.paloaltonetworks.* processes:"
launchctl list | grep com.paloaltonetworks