I am getting this error every time I try to run something which will use GTK3. The applications work just fine but for some reason I am getting this annoying message.
For example I did a simple GTK3 C application as follows,
The compilation and application runs ok but the following happens,
This is So what is happening and how to fix ?
For example I did a simple GTK3 C application as follows,
Code:
#include <gtk/gtk.h>static void on_destroy(GtkWidget *widget, gpointer data) { gtk_main_quit();}const int WIDTH = 300;const int HEIGHT = 200;int main(int argc, char *argv[]) { GtkWidget *window = NULL;; GtkWidget *label = NULL; gtk_init(&argc, &argv); window = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(window), "Hello, World!"); gtk_window_set_default_size(GTK_WINDOW(window), WIDTH, HEIGHT); label = gtk_label_new("Hello, World!"); gtk_container_add(GTK_CONTAINER(window), label); g_signal_connect(window, "destroy", G_CALLBACK(on_destroy), NULL); gtk_widget_show_all(window); gtk_main(); return 0;}
Code:
me@pc ~/tests/cpp/gtk $ ./helloworldGtk-Message: 20:06:44.116: Failed to load module "xapp-gtk3-module"me@pc ~/tests/cpp/gtk $
Code:
Linux: Debian GNU/Linux 12 (bookworm) 12.6Kernel: 6.1.0-23-amd64Nvidia: 535.183.01GTK: 3.24.38
Statistics: Posted by mlauronen — 2024-08-12 17:13 — Replies 1 — Views 34