<?xml version="1.0" encoding="utf-8"?>
<page xmlns="http://projectmallard.org/1.0/" xmlns:its="http://www.w3.org/2005/11/its" xmlns:ui="http://projectmallard.org/experimental/ui/" type="guide" id="c" xml:lang="ko">
<info>
<!-- The text title is used on the help.gnome.org -->
<title type="link">C</title>
<link type="guide" xref="index#tutorials"/>
<revision version="3.4" date="2012-04-28" status="stub"/>
<credit type="editor">
<name>Tiffany Antopolski</name>
<email its:translate="no">tiffany.antopolski@gmail.com</email>
</credit>
<credit type="editor">
<name>Bastian Ilso</name>
<email its:translate="no">bastianilso@gnome.org</email>
</credit>
<include xmlns="http://www.w3.org/2001/XInclude" href="legal.xml"/>
<desc>C언어 기반 지침 및 예제 코드입니다.</desc>
<mal:credit xmlns:mal="http://projectmallard.org/1.0/" type="translator copyright">
<mal:name>조성호</mal:name>
<mal:email>shcho@gnome.org</mal:email>
<mal:years>2017</mal:years>
</mal:credit>
</info>
<title>C언어 기반 플랫폼 데모</title>
<section id="prerequisites">
<title>준비요건</title>
<p>플랫폼 데모를 컴파일하려면 <link href="https://gcc.gnu.org/">gcc</link> 같은 C 컴파일러가 필요합니다. 또한 헤더와 pkg-config 파일이 있는 GTK+ 3가 필요합니다. 보통, 리눅스 배포판에서는 추상 GTK+ 3 헤더와 pkg-config 파일을 <em>gtk3-devel</em>, <em>gtk3-dev</em> 같은 식으로 별개 패키지로 배포합니다.</p>
</section>
<section id="for-beginners" ui:expanded="false">
<title>새 개발자 지침서</title>
<p>이전에 언급했던 준비사항 이전에, 그놈 프로그램 개발을 도와주려 개발한 몇가지 도구가 있습니다. 그놈에서는 지정 코드 작성 방식과 앞으로 이 장에서 계속 따라갈 관례를 추천합니다.</p>
<section id="recommended-tools">
<title>추천 도구</title>
<list>
<item>
<p><link href="https://wiki.gnome.org/Apps/Devhelp">DevHelp</link>: 그놈 API 문서 탐색기.</p>
</item>
<item>
<p>그놈 IDE(통합 개발 환경). <link href="https://wiki.gnome.org/Apps/Builder">빌더</link>나 <link href="https://wiki.gnome.org/Apps/Anjuta">안주타</link> 같은 IDE에서 C 코드를 작성하고 디버깅하는 과정을 도와줄 수 있습니다.</p>
</item>
<item>
<p><link href="http://glade.gnome.org/">글레이드</link>: GTK+ 프로그램용 사용자 인터페이스 디자이너.</p>
</item>
<item>
<p><link href="https://wiki.gnome.org/Apps/Polari">폴라리</link>나 <link href="https://wiki.gnome.org/Apps/Empathy">엠퍼시</link> 같은 IRC 클라이언트. 초보자 지침서를 따라가다 문제에 봉착하면 <em>irc.gnome.org</em>의 #gnome으로 오세요.</p>
</item>
</list>
</section>
<section id="coding-style">
<title>코드 작성 방식</title>
<p>그놈 프로젝트의 대부분 프로그램은 <link href="http://en.wikipedia.org/wiki/Indent_style#GNU_style">GNU 방식</link> 들여쓰기로 작성했습니다. 지침서와 예제 코드는 이 관례를 따랐으며, 여러분도 이 방식을 따르는게 좋습니다.</p>
</section>
<section id="executing-code">
<title>코드 실행</title>
<p>예제 코드를 실행하려면:</p>
<steps>
<item>
<p><var>filename</var>.c 파일에 코드를 복사하여 붙여넣으십시오</p>
</item>
<item>
<p>터미널에 다음 명령을 입력하십시오:</p>
<screen>gcc <var>filename</var>.c `pkg-config --cflags --libs gtk+-3.0` -o <var>filename</var></screen>
<screen>./<var>filename</var></screen>
</item>
</steps>
<note>
<p>GTK+ 프로그램 컴파일에 대해 더 알아보시려면 <link href="http://developer.gnome.org/gtk3/3.4/gtk-compiling.html">유닉스 GTK+ 프로그램 컴파일</link>을 살펴보십시오.</p>
</note>
</section>
</section>
<section id="examples">
<title>지침서</title>
</section>
<section id="samples">
<title>위젯 예제 코드</title>
<section id="windows" style="2column"><title>창</title>
<p/>
</section>
<section id="display-widgets" style="2column"><title>위젯 표시</title>
</section>
<section id="buttons" style="2column"><title>단추 및 토글</title>
</section>
<section id="entry" style="2column"><title>숫자, 텍스트 데이터 항목</title>
</section>
<section id="multiline" style="2column"><title>다중라인 텍스트 편집기</title>
</section>
<section id="menu-combo-toolbar" style="2column"><title>메뉴, 콤보상자, 도구모음 위젯</title>
</section>
<section id="treeview" style="2column"><title>TreeView 위젯</title>
</section>
<section id="selectors"><title>선택 상자</title>
<section id="file-selectors" style="2column"><title>파일 선택 상자</title>
</section>
<section id="font-selectors" style="2column"><title>글꼴 선택 상자</title>
</section>
<section id="color-selectors" style="2column"><title>색상 선택 상자</title>
</section>
</section>
<section id="layout" style="2column"><title>배치 컨테이너</title>
</section>
<section id="ornaments" style="2column"><title>장식</title>
</section>
<section id="scrolling" style="2column"><title>스크롤</title>
</section>
<section id="misc" style="2column"><title>기타</title>
</section>
</section>
</page>