File: README.Debian

package info (click to toggle)
gtk+2.0 2.24.31-2
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 127,432 kB
  • ctags: 74,609
  • sloc: ansic: 573,219; makefile: 5,155; sh: 4,417; xml: 1,193; python: 891; perl: 749; awk: 72; cpp: 34
file content (50 lines) | stat: -rw-r--r-- 2,019 bytes parent folder | download | duplicates (9)
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
GTK+2.0 for Debian
-------------------

Static libraries issue
======================
If you wish to link the GTK+ 2.0 libraries statically into your program,
please note that you *can not* use the '-static' flag to gcc.
Instead, you have to link your program *dynamically* and link *only*
the GTK+ 2.0 libraries statically, like this:

$ gcc -export-dynamic -o foo foo.c \
  -Wl,-Bstatic `pkg-config --cflags --libs gtk+-2.0` -Wl,-Bdynamic \
  [other dynamically linked libraries]

The reason for this is that GTK+ 2.0 uses dlopen(3) in order to load
some modules.  Undefined symbols in these modules are resolved by the
dynamic linker.  If the program is linked statically, the linker has
no way of finding out which symbols are already present in the program
and might causes strange problem so that proper symbols isn't used --
Initialize function in statically linked libraries is called, and some
global variable is initialized, dynamically loaded modules might also
expects those initialized global variable.


Key binding
===========
gnome-settings-daemon overrides gtk-key-theme-name in your gtkrc. so if you
use GNOME 2, it won't work, and it's not a bug.
Please use gnome-keybinding-properties instead of gtk-key-theme-name in your
gtkrc.


Emacs-style key bindings
========================
Gtk provides a way of configuring key bindings in Gtk Widgets, especially
to move the cursor in text fields.  The default behavior in older Gtk versions
was similar to Emacs, and still available for users to configure.  You can
configure the Emacs-style key binding theme in your ~/.gtkrc-2.0 file as
follows:
    gtk-key-theme-name = "Emacs"

Please note that applications can still override this configuration, and this
is the case of the GNOME Desktop: gnome-settings-daemon loads the key theme
from the "/desktop/gnome/interface/gtk_key_theme" GConf entry.  This can be
modified with gconf-editor.


This file is the initial work of Akira TAGOH <tagoh@debian.org> and was updated
by Loic Minier <lool@dooz.org>.