GTK: Perbedaan antara revisi
Konten dihapus Konten ditambahkan
k r2.7.3) (bot Mengubah: te:జిటికె+(GTK+) |
|||
Baris 59:
== GTK hello world ==
Program GTK [[Hello world program|hello world]] di [[Linux]] dalam bahasa C
<source lang="c">
#include <gtk/gtk.h>
int main (int argc, char argv[])
{
gtk_init (&argc, &argv);
GtkWidget * window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
gtk_window_set_default_size (GTK_WINDOW (window), 400 , 400);
gtk_window_set_tile (GTK_WINDOW (window), "Hallo GTK");
g_signal_connect (G_OBJECT(window), "destroy", G_CALLBACK(gtk_main_quit), NULL);
gtk_main ();
return 0;
}
</source>
== Penggunaan ==
|