<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=GTK%2B</id>
	<title>GTK+ - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://mediawiki.zeropage.org/index.php?action=history&amp;feed=atom&amp;title=GTK%2B"/>
	<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=GTK%2B&amp;action=history"/>
	<updated>2026-05-14T17:44:40Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.8</generator>
	<entry>
		<id>https://mediawiki.zeropage.org/index.php?title=GTK%2B&amp;diff=31921&amp;oldid=prev</id>
		<title>imported&gt;Unknown at 05:23, 7 February 2021</title>
		<link rel="alternate" type="text/html" href="https://mediawiki.zeropage.org/index.php?title=GTK%2B&amp;diff=31921&amp;oldid=prev"/>
		<updated>2021-02-07T05:23:18Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=== What is GTK+? ===&lt;br /&gt;
GTK+ is a multi-platform toolkit for creating graphical user interfaces. Offering a complete set of widgets, GTK+ is suitable for projects ranging from small one-off projects to complete application suites. &lt;br /&gt;
&lt;br /&gt;
GTK+ is free software and part of the GNU Project. However, the licensing terms for GTK+, the GNU LGPL, allow it to be used by all developers, including those developing proprietary software, without any license fees or royalties. &lt;br /&gt;
&lt;br /&gt;
GTK+ is based on three libraries developed by the GTK+ team: &lt;br /&gt;
GLib is the low-level core library that forms the basis of GTK+ and GNOME. It provides data structure handling for C, portability wrappers, and interfaces for such runtime functionality as an event loop, threads, dynamic loading, and an object system.&lt;br /&gt;
Pango is a library for layout and rendering of text, with an emphasis on internationalization. It forms the core of text and font handling for GTK+-2.0.&lt;br /&gt;
The ATK library provides a set of interfaces for accessibility. By supporting the ATK interfaces, an application or toolkit can be used with such tools as screen readers, magnifiers, and alternative input devices.&lt;br /&gt;
&lt;br /&gt;
GTK+ has been designed from the ground up to support a range of languages, not only C/C++. Using GTK+ from languages such as Perl and Python (especially in combination with the Glade GUI builder) provides an effective method of rapid application development.&lt;br /&gt;
********************************************* quoted from http://gtk.org&lt;br /&gt;
=== Hello world program with GTK+ ===&lt;br /&gt;
* 우선 GTK+ 라이브러리가 필요하다. Hello, World라는 버튼이 있고 이 버튼을 누르면 콘솔에 Hello, World를 찍고 윈도우를 종료시키는 간단한 예제&lt;br /&gt;
 #include &amp;amp;lt;gtk/gtk.h&amp;amp;gt;&lt;br /&gt;
 &lt;br /&gt;
 static void hello(GtkWidget *widget, gpointer data)&lt;br /&gt;
 {&lt;br /&gt;
         g_print(&amp;quot;Hello, World!!\n&amp;quot;);&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 static gboolean delete_event(GtkWidget *widget, GdkEvent *event, gpointer data)&lt;br /&gt;
 {&lt;br /&gt;
         g_print(&amp;quot;delete event occurred\n&amp;quot;);&lt;br /&gt;
         return TRUE;&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 static void destroy(GtkWidget *widget, gpointer data)&lt;br /&gt;
 {&lt;br /&gt;
         gtk_main_quit();&lt;br /&gt;
 }&lt;br /&gt;
 &lt;br /&gt;
 int main(int argc, char* argv[])&lt;br /&gt;
 {&lt;br /&gt;
         GtkWidget *window;&lt;br /&gt;
         GtkWidget *button;&lt;br /&gt;
 &lt;br /&gt;
         gtk_init(&amp;amp;amp;argc, &amp;amp;amp;argv);&lt;br /&gt;
 &lt;br /&gt;
         window = gtk_window_new(GTK_WINDOW_TOPLEVEL);&lt;br /&gt;
         g_signal_connect(G_OBJECT(window), &amp;quot;delete_event&amp;quot;, G_CALLBACK(delete_event), NULL);&lt;br /&gt;
         g_signal_connect(G_OBJECT(window), &amp;quot;destroy&amp;quot;, G_CALLBACK(destroy), NULL);&lt;br /&gt;
 &lt;br /&gt;
         gtk_container_set_border_width(GTK_CONTAINER(window), 10);&lt;br /&gt;
         button = gtk_button_new_with_label(&amp;quot;Hello World&amp;quot;);&lt;br /&gt;
 &lt;br /&gt;
         g_signal_connect(G_OBJECT(button), &amp;quot;clicked&amp;quot;, G_CALLBACK(hello), NULL);&lt;br /&gt;
         g_signal_connect_swapped(G_OBJECT(button), &amp;quot;clicked&amp;quot;, G_CALLBACK(gtk_widget_destroy), G_OBJECT(window));&lt;br /&gt;
 &lt;br /&gt;
         gtk_container_add(GTK_CONTAINER(window), button);&lt;br /&gt;
         gtk_widget_show(button);&lt;br /&gt;
         gtk_widget_show(window);&lt;br /&gt;
 &lt;br /&gt;
         gtk_main();&lt;br /&gt;
 &lt;br /&gt;
         return 0;&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
컴파일을 하기 위해서는 gcc 명령행에 몇가지 파라메터를 더 주어야 한다. 아래는 한 예.&lt;br /&gt;
 gcc hello.c -o hello `pkg-config --cflags --libs gtk+-2.0`&lt;br /&gt;
오오 이제 윈도우가 뜨는구나!!&lt;br /&gt;
----&lt;br /&gt;
[[프로그래밍분류]]&lt;/div&gt;</summary>
		<author><name>imported&gt;Unknown</name></author>
	</entry>
</feed>