(gdb) run
Starting program: /root/gtk-rs-fehler-tests/target/window
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/arm-linux-gnueabihf/libthread_db.so.1".
[New Thread 0xb571e230 (LWP 11967)]
(window:11964): GLib-GIO-CRITICAL **: g_dbus_proxy_new_sync: assertion 'G_IS_DBUS_CONNECTION (connection)' failed
(window:11964): GLib-GIO-CRITICAL **: g_dbus_proxy_get_name_owner: assertion 'G_IS_DBUS_PROXY (proxy)' failed
(window:11964): Gtk-WARNING **: Failed to get an inhibit portal proxy: The name org.freedesktop.portal.Desktop is not owned
(window:11964): Gdk-WARNING **: Lost connection to Wayland compositor.
[Thread 0xb5b1c000 (LWP 11964) exited]
[Inferior 1 (process 11964) exited with code 01]
weston --version # weston 1.11.93
pkg-config --modversion wayland-server # 1.11.93
pkg-config --modversion gtk+-3.0 # 3.21.5
// gcc `pkg-config --cflags gtk+-3.0` -o target/window example/windows.c `pkg-config --libs gtk+-3.0`
#include <gtk/gtk.h>
static void
activate (GtkApplication* app,
gpointer user_data)
{
GtkWidget *window;
window = gtk_application_window_new (app);
gtk_window_fullscreen (GTK_WINDOW (window));
gtk_window_set_title (GTK_WINDOW (window), "Window");
gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);
gtk_widget_show_all (window);
}
int
main (int argc,
char **argv)
{
GtkApplication *app;
int status;
app = gtk_application_new ("org.gtk.example", G_APPLICATION_FLAGS_NONE);
g_signal_connect (app, "activate", G_CALLBACK (activate), NULL);
status = g_application_run (G_APPLICATION (app), argc, argv);
g_object_unref (app);
return status;
}
backtrace weston