'GTK+3'에 해당되는 글 3건
- 2011.10.02
- 2011.10.01
- 2011.10.01
어제부터 GTK+ 3.0 Reference Manual을 주말마다 짬을 내어 올해안까지 번역해보자는 목표를 세워보았다.
이렇게 목표를 잡고 나서 간한단 GTK+ 프로그램을 C로 작성해보았다.
아래는 C소스코드입니다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 | #include <gtk/gtk.h> GtkWidget* build_label() { GtkWidget *label = gtk_label_new( "Hello, World!" ); gtk_label_set_selectable(GTK_LABEL(label), FALSE); return label; } int main ( int argc, char **argv) { GtkWidget *win; gtk_init (&argc, &argv); win = gtk_window_new (GTK_WINDOW_TOPLEVEL); gtk_container_add(GTK_CONTAINER(win), build_label()); gtk_window_resize(GTK_WINDOW(win), 300, 200); g_signal_connect(win, "destroy" , G_CALLBACK(gtk_main_quit), NULL); gtk_widget_show_all (win); gtk_main (); return 0; } |
소스코드를 컴파일 하는 방법은, GTK+3.0 라이브러리가 설치되어야 하며, 아래와 같은 명령어를 작성하여 누르면 컴파일이 됩니다. 실행파일을 열면 아래와 같은 화면이 나옵니다.
1 | gcc `pkg-config --cflags gtk+-3.0` -o gtkmain gtkmain.c `pkg-config --libs gtk+-3.0` |
조만간 재미있는 GTK+용 프로그램이 나오겠지?ㅎㅎ
여기는 GTK+3 Reference Manual(GTK+ 3 레퍼런스 매뉴얼)의 한국어판 번역사이트입니다.
GTK+ 3 라이브러리, 버전 3.2.0를 위한 문서입니다. 최근 버전은 http://library.gnome.org/devel/gtk3/ (영어, English)에서 찾을 수 있습니다. 만약 오래된 GTK+ 2 버전의 라이브러리를 찾으려면 http://library.gnome.org/devel/gtk/(영어, English)를 방문하십시요.
GTK+ 3 Reference Manual
This document is for the GTK+ 3 library, version 3.2.0 . The latest versions can be found online at http://library.gnome.org/devel/gtk3/. If you are looking for the older GTK+ 2 series of libraries, see http://library.gnome.org/devel/gtk/.
GTK+ 이란? (0) | 2011.10.01 |
---|
What is GTK+
============
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 tools to complete application suites.
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.
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. GTK+ is the only 100% free-of-cost open source industrial-strength GUI toolkit available today.
Since its origins as the toolkit for the GNU Image Manipulation Program (GIMP), GTK+ has been used in a wide range of software. Notably, GTK+ is the foundation of the GNOME desktop.
GTK+ 3 Reference Manual(GTK+ 3 레퍼런스 매뉴얼) (0) | 2011.10.01 |
---|