~canonical-dx-team/ubuntu/maverick/gtk+2.0/menuproxy

« back to all changes in this revision

Viewing changes to docs/reference/gtk/tmpl/gtkfixed.sgml

  • Committer: Bazaar Package Importer
  • Author(s): Sebastien Bacher
  • Date: 2007-05-04 12:24:25 UTC
  • mfrom: (1.1.21 upstream)
  • Revision ID: james.westby@ubuntu.com-20070504122425-0m8midgzrp40y8w2
Tags: 2.10.12-1ubuntu1
* Sync with Debian
* New upstream version:
  Fixed bugs:
  - 379414 file chooser warnings when changing path in the entry
  - 418585 GtkFileChooserDefault sizing code is not DPI independent
  - 419568 Crash in search if start with special letter
  - 435062 build dies with icon cache validation
  - 379399 Segfault to call gtk_print_operation_run twice.
  - 387889 cups backend has problems when there are too many printers
  - 418531 invalid read to gtkicontheme.c gtk_icon_theme_lookup_icon...
  - 423916 crash in color scheme code
  - 424042 Segmentation fault while quickly pressing Alt+arrows
  - 415260 Protect against negative indices when setting values in G...
  - 419171 XGetVisualInfo() may not set nxvisuals
  - 128852 Gdk cursors don't look good on win32
  - 344657 Ctrl-H doesn't toggle "Show Hidden Files" setting
  - 345345 PrintOperation::paginate is not emitted for class handler
  - 347567 GtkPrintOperation::end-print is not emitted if it's cance...
  - 369112 gtk_ui_manager_add_ui should accept unnamed separator
  - 392015 Selected menu item invisible on Windows Vista
  - 399253 MS-Windows Theme Bottom Tab placement rendering glitches
  - 399425 gtk_input_dialog_fill_axes() adds child to gtkscrolledwin...
  - 403251 [patch] little memory leak in GtkPrintJob
  - 403267 [patch] memory leak in GtkPageSetupUnixDialog
  - 403470 MS-Windows Theme tab placement other than on top leaks a ...
  - 404506 Windows system fonts that have multi-byte font names cann...
  - 405089 Incorrect window placement for GtkEventBox private window
  - 405515 Minor leak in gtkfilesystemmodel.c
  - 405539 gdk_pixbuf_save() for PNG saver can return FALSE without ...
  - 415681 gdk_window_clear_area includes an extra line and column o...
  - 418219 GtkRecentChooser should apply filter before sorting and c...
  - 418403 Scroll to printer after selecting it from settings
  - 421985 _gtk_print_operation_platform_backend_launch_preview
  - 421990 gtk_print_job_get_surface
  - 421993 gtk_print_operation_init
  - 423064 Conditional jump or move depends on uninitialised value(s...
  - 423722 Fix printing header in gtk-demo
  - 424168 gtk_print_operation_run on async preview
  - 425655 Don't install gtk+-unix-print-2.0.pc on non-UNIX platforms
  - 425786 GDK segfaults if XineramaQueryScreens fails
  - 428665 Lpr Backend gets stuck in infinite loop during gtk_enumer...
  - 429902 GtkPrintOperation leaks cairo contextes
  - 431997 First delay of GdkPixbufAnimationIter is wrong
  - 433242 Inconsistent scroll arrow position calculations
  - 433972 Placing gtk.Expander inside a gtk.TextView() changes gtk....
  - 434261 _gtk_toolbar_elide_underscores incorrectly handles some s...
  - 383354 ctrl-L should make 'Location' entry disappear
  - 418673 gtk_recent_manager_add_item
  - 429732 gtk_accel_group_finalize accesses invalid memory
  - 435028 WM_CLIENT_LEADER is wrong on the leader_window
  - 431067 Background of the header window is not updated
  - 338843 add recent files support inside the ui manager
  - 148535 add drop shadow to menus, tooltips, etc. under Windows XP
* debian/control.in:
  - Conflicts on ubuntulooks (<= 0.9.11-1)
* debian/patches/15_default-fallback-icon-theme.patch:
  - patch from Debian, fallback on gnome icon theme

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<!-- ##### SECTION Title ##### -->
 
2
GtkFixed
 
3
 
 
4
<!-- ##### SECTION Short_Description ##### -->
 
5
A container which allows you to position widgets at fixed coordinates
 
6
 
 
7
<!-- ##### SECTION Long_Description ##### -->
 
8
<para>
 
9
The #GtkFixed widget is a container which can place child widgets at fixed
 
10
positions and with fixed sizes, given in pixels. #GtkFixed performs no
 
11
automatic layout management.
 
12
</para>
 
13
 
 
14
<para>
 
15
For most applications, you should not use this container! It keeps
 
16
you from having to learn about the other GTK+ containers, but it
 
17
results in broken applications.
 
18
With #GtkFixed, the following things will result in truncated text, 
 
19
overlapping widgets, and other display bugs:
 
20
<itemizedlist>
 
21
<listitem>
 
22
<para>Themes, which may change widget sizes.
 
23
</para>
 
24
</listitem>
 
25
<listitem>
 
26
<para>Fonts other than the one you used to write the app will of
 
27
course change the size of widgets containing text; keep in mind that
 
28
users may use a larger font because of difficulty reading the default,
 
29
or they may be using Windows or the framebuffer port of GTK+, where
 
30
different fonts are available.
 
31
</para>
 
32
</listitem>
 
33
<listitem>
 
34
<para>
 
35
Translation of text into other languages changes its size. Also,
 
36
display of non-English text will use a different font in many cases.
 
37
</para>
 
38
</listitem>
 
39
</itemizedlist>
 
40
</para>
 
41
 
 
42
<para>
 
43
In addition, the fixed widget can't properly be mirrored in
 
44
right-to-left languages such as Hebrew and Arabic. i.e. normally GTK+
 
45
will flip the interface to put labels to the right of the thing they
 
46
label, but it can't do that with #GtkFixed. So your application will 
 
47
not be usable in right-to-left languages.
 
48
</para>
 
49
 
 
50
<para>
 
51
Finally, fixed positioning makes it kind of annoying to add/remove GUI
 
52
elements, since you have to reposition all the other elements. This is
 
53
a long-term maintenance problem for your application.
 
54
</para>
 
55
 
 
56
<para>
 
57
If you know none of these things are an issue for your application,
 
58
and prefer the simplicity of #GtkFixed, by all means use the
 
59
widget. But you should be aware of the tradeoffs.
 
60
</para>
 
61
 
 
62
<!-- ##### SECTION See_Also ##### -->
 
63
<para>
 
64
 
 
65
</para>
 
66
 
 
67
<!-- ##### SECTION Stability_Level ##### -->
 
68
 
 
69
 
 
70
<!-- ##### STRUCT GtkFixed ##### -->
 
71
<para>
 
72
The #GtkFixed-struct struct contains the following fields.
 
73
(These fields should be considered read-only. They should never be set by
 
74
an application.)
 
75
 
 
76
<informaltable pgwide="1" frame="none" role="struct">
 
77
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
 
78
<tbody>
 
79
 
 
80
<row>
 
81
<entry>#GList *children;</entry>
 
82
<entry>a list of #GtkFixedChild elements, containing the child widgets and
 
83
their positions.</entry>
 
84
</row>
 
85
 
 
86
</tbody></tgroup></informaltable>
 
87
</para>
 
88
 
 
89
 
 
90
<!-- ##### ARG GtkFixed:x ##### -->
 
91
<para>
 
92
 
 
93
</para>
 
94
 
 
95
<!-- ##### ARG GtkFixed:y ##### -->
 
96
<para>
 
97
 
 
98
</para>
 
99
 
 
100
<!-- ##### STRUCT GtkFixedChild ##### -->
 
101
<para>
 
102
The #GtkFixedChild-struct struct contains the following fields.
 
103
(These fields should be considered read-only. They should never be set by
 
104
an application.)
 
105
 
 
106
<informaltable pgwide="1" frame="none" role="struct">
 
107
<tgroup cols="2"><colspec colwidth="2*"/><colspec colwidth="8*"/>
 
108
<tbody>
 
109
 
 
110
<row>
 
111
<entry>#GtkWidget *widget;</entry>
 
112
<entry>the child #GtkWidget.</entry>
 
113
</row>
 
114
 
 
115
<row>
 
116
<entry>#gint x;</entry>
 
117
<entry>the horizontal position of the widget within the #GtkFixed
 
118
container.</entry>
 
119
</row>
 
120
 
 
121
<row>
 
122
<entry>#gint y;</entry>
 
123
<entry>the vertical position of the widget within the #GtkFixed
 
124
container.</entry>
 
125
</row>
 
126
 
 
127
</tbody></tgroup></informaltable>
 
128
</para>
 
129
 
 
130
@widget: 
 
131
@x: 
 
132
@y: 
 
133
 
 
134
<!-- ##### FUNCTION gtk_fixed_new ##### -->
 
135
<para>
 
136
Creates a new #GtkFixed.
 
137
</para>
 
138
 
 
139
@Returns: a new #GtkFixed.
 
140
 
 
141
 
 
142
<!-- ##### FUNCTION gtk_fixed_put ##### -->
 
143
<para>
 
144
Adds a widget to a #GtkFixed container at the given position.
 
145
</para>
 
146
 
 
147
@fixed: a #GtkFixed.
 
148
@widget: the widget to add.
 
149
@x: the horizontal position to place the widget at.
 
150
@y: the vertical position to place the widget at.
 
151
 
 
152
 
 
153
<!-- ##### FUNCTION gtk_fixed_move ##### -->
 
154
<para>
 
155
Moves a child of a #GtkFixed container to the given position.
 
156
</para>
 
157
 
 
158
@fixed: a #GtkFixed.
 
159
@widget: the child widget.
 
160
@x: the horizontal position to move the widget to.
 
161
@y: the vertical position to move the widget to.
 
162
 
 
163
 
 
164
<!-- ##### FUNCTION gtk_fixed_get_has_window ##### -->
 
165
<para>
 
166
 
 
167
</para>
 
168
 
 
169
@fixed: 
 
170
@Returns: 
 
171
 
 
172
 
 
173
<!-- ##### FUNCTION gtk_fixed_set_has_window ##### -->
 
174
<para>
 
175
 
 
176
</para>
 
177
 
 
178
@fixed: 
 
179
@has_window: 
 
180
 
 
181