Created
October 19, 2016 12:24
-
-
Save pizzamig/c0d4216bf8408ccb69444974c3f5f6fa to your computer and use it in GitHub Desktop.
gtk-3 dialog issue using FreeBSD 12-drm-next-47 + xserver-next on skylake
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// cc -g $(pkgconf --cflags gtk+-3.0) -o repro repro $(pkgconf --libs gtk+-3.0) | |
#include <gtk/gtk.h> | |
static void | |
activate (GtkApplication* app, gpointer user_data) | |
{ | |
GtkPrintOperation *print_operation=gtk_print_operation_new(); | |
GError* error = NULL; | |
GtkPrintOperationResult result = gtk_print_operation_run( print_operation, | |
GTK_PRINT_OPERATION_ACTION_PRINT_DIALOG, NULL, &error); | |
} | |
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; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment