File:GTK+ Hallo Welt.png

GTK+_Hallo_Welt.png(306 × 123 pixels, file size: 5 KB, MIME type: image/png)

Captions

Captions

Add a one-line explanation of what this file represents
Description This is a simple Hello World program (german translation "Hallo Welt") which uses the GTK
Date
Source

trivial self written program, used on de:GTK+. Compile the sourcecode with gcc gtkexample.c `pkg-config --cflags --libs gtk+-2.0` and run it. The shown windowmanager is Kwin (from KDE) and the default GTK theme.

#include <gtk/gtk.h>
#include <stdio.h>

void button_geklickt(GtkWidget *button_widget, gpointer data) {
    printf("Button \"%s\" geklickt!\n",
       gtk_button_get_label(GTK_BUTTON(button_widget)) );
    gtk_main_quit();
}

int main (int argc, char *argv[]) {
    gtk_init(&argc, &argv);

    GtkWidget *window;
    GtkWidget *button;

    window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
    gtk_window_set_title(GTK_WINDOW(window), "Hallo Welt!");
    gtk_container_set_border_width(GTK_CONTAINER(window), 10);
    g_signal_connect_swapped(G_OBJECT(window), "destroy", G_CALLBACK (gtk_main_quit), NULL);

    button = gtk_button_new_with_label("Hallo Wikipedia!");
    g_signal_connect(G_OBJECT(button), "clicked", G_CALLBACK(button_geklickt), NULL);
    gtk_widget_show(button);

    gtk_container_add(GTK_CONTAINER(window), button);
    gtk_widget_show(window);

    gtk_main();
    return 0;
}
Author
This file was made by User:Sven
Translation

If this image contains text, it can be translated easily into your language. If you need help, contact me

Flexible licenses

If you want to use this picture with another license than stated below, contact me

Contact the author

If you need a really fast answer, mail me. If you need only a fast answer, write me here.

Permission
(Reusing this file)

This screenshot either does not contain copyright-eligible parts or visuals of copyrighted software, or the author has released it under a free license (which should be indicated beneath this notice), and as such follows the licensing guidelines for screenshots of Wikimedia Commons. You may use it freely according to its particular license. Free software license:

GNU head

This work is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version. This work is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See version 2 and version 3 of the GNU General Public License for more details.

Note: if the screenshot shows any work that is not a direct result of the program code itself, such as a text or graphics that are not part of the program, the license for that work must be indicated separately.


File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeThumbnailDimensionsUserComment
current23:28, 14 May 2008Thumbnail for version as of 23:28, 14 May 2008306 × 123 (5 KB)Sven (talk | contribs){{Information |Description=selfmade |Source=see trivial self written program sourcecode at de:GTK+ |Date=15.05.2008 |Author=User:Sven |Permission=see below |other_versions= }} == License == {{free screenshot|license={{GPL}} }}

The following page uses this file: