Blob Blame History Raw
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>GTK+ FAQ</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="NEXT"
TITLE="General Information"
HREF="c20.html"></HEAD
><BODY
CLASS="BOOK"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="BOOK"
><A
NAME="AEN1"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="TITLE"
><A
NAME="AEN2"
>GTK+ FAQ</A
></H1
><H3
CLASS="AUTHOR"
><A
NAME="AEN6"
></A
>Tony Gale</H3
><H3
CLASS="AUTHOR"
><A
NAME="AEN9"
></A
>Shawn Amundson</H3
><H3
CLASS="AUTHOR"
><A
NAME="AEN12"
></A
>Emmanuel Deloget</H3
><HR></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>Table of Contents</B
></DT
><DT
><A
HREF="c20.html"
>General Information</A
></DT
><DD
><DL
><DT
><A
HREF="c20.html#AEN22"
>Note: This FAQ is undergoing conversion to GTK+ 2.x</A
></DT
><DT
><A
HREF="x26.html"
>Before anything else: the greetings <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x52.html"
>Authors <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x81.html"
>What is GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x90.html"
>What is the + in GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x98.html"
>Does the G in GTK+, GDK and GLib stand for? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x104.html"
>Where is the documentation for GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x132.html"
>Is there a mailing list (or mailing list archive) for
GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x137.html"
>How to get help with GTK+ <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x141.html"
>How to report bugs in GTK+ <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x157.html"
>Is there a Windows version of GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x165.html"
>What applications have been written with GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
></DL
></DD
><DT
><A
HREF="c192.html"
>How to find, configure, install, and troubleshoot GTK+</A
></DT
><DD
><DL
><DT
><A
HREF="c192.html#FAQ-COMPILE"
>What do I need to compile GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x234.html"
>Where can I get GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x261.html"
>How do I configure/compile GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x278.html"
>When compiling GTK+ I get an error like: <TT
CLASS="LITERAL"
>make:
file `Makefile' line 456: Syntax error</TT
> <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x284.html"
>I've compiled and installed GTK+, but I can't get any
programs to link with it! <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x306.html"
>When installing a GTK+ application, configure reports
that it can't find GTK. <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
></DL
></DD
><DT
><A
HREF="c323.html"
>Development of GTK+</A
></DT
><DD
><DL
><DT
><A
HREF="c323.html#AEN325"
>What's this Git thing that everyone keeps talking about,
and how do I access it? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x350.html"
>How can I contribute to GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x358.html"
>How do I know if my patch got applied, and if not, why
not? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x364.html"
>What is the policy on incorporating new widgets into
the library? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x371.html"
>Is anyone working on bindings for languages other than
C? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
></DL
></DD
><DT
><A
HREF="c377.html"
>Development with GTK+: the begining</A
></DT
><DD
><DL
><DT
><A
HREF="c377.html#AEN379"
>How do I get started? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x385.html"
>How do I use the Glade GUI builder with GTK+? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x392.html"
>How do I write security sensitive/SUID/SGID programs with GTK+?
Is GTK+ secure? What's this GTK_MODULES security hole I heard about?
<I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x399.html"
>I tried to compile a small <B
CLASS="COMMAND"
>Hello World</B
> of mine,
but it failed. Any clue? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x416.html"
>What about using the <B
CLASS="COMMAND"
>make</B
>
utility? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x424.html"
>I use the backquote stuff in my makefiles, but my make
process failed. <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x430.html"
>I want to add some configure stuff, how could I do
this? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x452.html"
>I try to debug my GTK+ application with gdb, but it
hangs my X server when I hit some breakpoint. Any
Idea? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
></DL
></DD
><DT
><A
HREF="c466.html"
>Development with GTK+: general questions</A
></DT
><DD
><DL
><DT
><A
HREF="c466.html#AEN468"
>What widgets are in GTK?</A
></DT
><DT
><A
HREF="x472.html"
>Is GTK+ thread safe? How do I write multi-threaded GTK+
applications? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x482.html"
>I'm doing some stuff with GTK+ in a separate thread, and
properly locking with gdk_threads_enter/gdk_threads_leave()
but the display doesn't update properly. <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x490.html"
>What's an easy way to run a function in the thread with
the main loop? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x496.html"
>Why does this strange 'x io error' occur when I
<TT
CLASS="LITERAL"
>fork()</TT
> in my GTK+ app? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x509.html"
>Why don't the contents of a button move when the button
is pressed? Here's a patch to make it work that way... <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x517.html"
>How do I identifiy a widgets top level window or other
ancestor? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x530.html"
>How do I get the Window ID of a GtkWindow? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x535.html"
>How do I catch a double click event? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x546.html"
>By the way, what are the differences between signals
and events?</A
></DT
><DT
><A
HREF="x557.html"
>Data I pass to the <TT
CLASS="LITERAL"
>delete_event</TT
> (or other event)
handler gets corrupted.</A
></DT
><DT
><A
HREF="x563.html"
>I have my signal connected to the the (whatever) event,
but it seems I don't catch it. What's wrong?</A
></DT
><DT
><A
HREF="x571.html"
>I need to add a new signal to a GTK+ widget. Any
idea?</A
></DT
><DT
><A
HREF="x581.html"
>Is it possible to get some text displayed which is
truncated to fit inside its allocation?</A
></DT
><DT
><A
HREF="x587.html"
>How do I make my window modal? / How do I make a single
window active?</A
></DT
><DT
><A
HREF="x592.html"
>Why doesn't my widget (e.g. progressbar)
update? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x601.html"
>How do I attach data to some GTK+ object/widget?
<I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x614.html"
>How do I remove the data I have attached to an
object?</A
></DT
><DT
><A
HREF="x626.html"
>How do I reparent a widget?</A
></DT
><DT
><A
HREF="x633.html"
>How could I get any widgets position?</A
></DT
><DT
><A
HREF="x653.html"
>How do I set the size of a widget/window? How do I
prevent the user resizing my window? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x660.html"
>How do I add a popup menu to my GTK+ application?</A
></DT
><DT
><A
HREF="x665.html"
>How do I disable or enable a widget, such as a
button?</A
></DT
><DT
><A
HREF="x669.html"
>Shouldn't the text argument in the gtk_clist_*
functions be declared const?</A
></DT
><DT
><A
HREF="x675.html"
>How do I render pixels (image data) to the
screen?</A
></DT
><DT
><A
HREF="x681.html"
>How do I create a pixmap without having my window being
realized/shown?</A
></DT
><DT
><A
HREF="x687.html"
>How do I do drag-and-drop?</A
></DT
><DT
><A
HREF="x693.html"
>Why does GTK+/GLib leak memory?</A
></DT
></DL
></DD
><DT
><A
HREF="c698.html"
>Development with GTK+: widget specific questions</A
></DT
><DD
><DL
><DT
><A
HREF="c698.html#AEN700"
>How do I find out about the selection of a GtkList?</A
></DT
><DT
><A
HREF="x737.html"
>How do I stop the column headings of a GtkCList
disappearing when the list is scrolled?</A
></DT
><DT
><A
HREF="x743.html"
>I don't want the user of my applications to enter text
into a GtkCombo. Any idea?</A
></DT
><DT
><A
HREF="x750.html"
>How do I catch a combo box change?</A
></DT
><DT
><A
HREF="x760.html"
>How can I define a separation line in a menu?</A
></DT
><DT
><A
HREF="x765.html"
>How can I right justify a menu, such as Help?</A
></DT
><DT
><A
HREF="x771.html"
>How do I add some underlined accelerators to menu
items?</A
></DT
><DT
><A
HREF="x779.html"
>How can I retrieve the text from a GtkMenuItem?</A
></DT
><DT
><A
HREF="x789.html"
>How do I right (or otherwise) justify a
GtkLabel?</A
></DT
><DT
><A
HREF="x801.html"
>How do I set the background color of a GtkLabel
widget?</A
></DT
><DT
><A
HREF="x805.html"
>How do I set the color and font of a GtkLabel using a
Resource File?</A
></DT
><DT
><A
HREF="x819.html"
>How do I configure Tooltips in a Resource File?</A
></DT
><DT
><A
HREF="x824.html"
>I can't add more than (something like) 2000 chars in a
GtkEntry. What's wrong?</A
></DT
><DT
><A
HREF="x829.html"
>How do I make a GtkEntry widget activate on pressing
the Return key?</A
></DT
><DT
><A
HREF="x833.html"
>How do I validate/limit/filter the input to a GtkEntry? <I
CLASS="EMPHASIS"
>[GTK 2.x]</I
></A
></DT
><DT
><A
HREF="x838.html"
>How do I use horizontal scrollbars with a GtkText widget?</A
></DT
><DT
><A
HREF="x841.html"
>How do I change the font of a GtkText widget?</A
></DT
><DT
><A
HREF="x847.html"
>How do I set the cursor position in a GtkText
object?</A
></DT
></DL
></DD
><DT
><A
HREF="c857.html"
>About GDK</A
></DT
><DD
><DL
><DT
><A
HREF="c857.html#AEN859"
>What is GDK?</A
></DT
><DT
><A
HREF="x862.html"
>How do I use color allocation?</A
></DT
></DL
></DD
><DT
><A
HREF="c866.html"
>About GLib</A
></DT
><DD
><DL
><DT
><A
HREF="c866.html#AEN868"
>What is GLib?</A
></DT
><DT
><A
HREF="x885.html"
>How can I use the doubly linked lists?</A
></DT
><DT
><A
HREF="x892.html"
>Memory does not seem to be released when I free the
list nodes I've allocated</A
></DT
><DT
><A
HREF="x899.html"
>Why use g_print, g_malloc, g_strdup and fellow glib
functions?</A
></DT
><DT
><A
HREF="x909.html"
>What's a GScanner and how do I use one?</A
></DT
></DL
></DD
><DT
><A
HREF="c948.html"
>GTK+ FAQ Contributions, Maintainers and Copyright</A
></DT
></DL
></DIV
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="c20.html"
ACCESSKEY="N"
>Next &#62;&#62;&#62;</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
>&nbsp;</TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>General Information</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>