Paste number 23800: gtk icon

Index of paste annotations: 1

Paste number 23800: gtk icon
Pasted by: cptn
When:12 years, 5 months ago
Share:Tweet this! | http://paste.lisp.org/+ID4
Channel:None
Paste contents:
Raw Source | XML | Display As
/* gcc -o gtk-test gtk-test.c `pkg-config gtk+-2.0 --libs --cflags */
#include <gtk/gtk.h>

int main(int argc, char** argv)
{
    GtkWidget *dialog;
    GtkWidget *window;

    gtk_init (&argc, &argv);
    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_widget_show(window);
    dialog = gtk_file_chooser_dialog_new ("Open File", NULL,
                                          GTK_FILE_CHOOSER_ACTION_OPEN,
                                          GTK_STOCK_CANCEL,
                                          GTK_RESPONSE_CANCEL,
                                          GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                                          NULL);
    gtk_dialog_run (GTK_DIALOG (dialog));
    gtk_widget_destroy (dialog);
    gtk_widget_destroy (window);
    return 0;
}

Annotations for this paste:

Annotation number 1: shorter
Pasted by: cptn
When:12 years, 5 months ago
Share:Tweet this! | http://paste.lisp.org/+ID4/1
Paste contents:
Raw Source | Display As
/* gcc -o gtk-test gtk-test.c `pkg-config gtk+-2.0 --libs --cflags */
#include <gtk/gtk.h>

int main(int argc, char** argv)
{
    GtkWidget *dialog;
    gtk_init (&argc, &argv);
    dialog = gtk_file_chooser_dialog_new ("Open File", NULL,
                                          GTK_FILE_CHOOSER_ACTION_OPEN,
                                          GTK_STOCK_CANCEL,
                                          GTK_RESPONSE_CANCEL,
                                          GTK_STOCK_OPEN, GTK_RESPONSE_ACCEPT,
                                          NULL);
    gtk_dialog_run (GTK_DIALOG (dialog));
    gtk_widget_destroy (dialog);
    return 0;
}

Colorize as:
Show Line Numbers

Lisppaste pastes can be made by anyone at any time. Imagine a fearsomely comprehensive disclaimer of liability. Now fear, comprehensively.