Commit Graph

10345 Commits

Author SHA1 Message Date
Javier Jardón
caca8a9696 Remove gtk_toggle_button_set_state() from GtkToggleButton 2010-05-03 01:51:20 +02:00
Javier Jardón
e45d8f557a Remove unused variable
'default_spacing' is not used anymore
2010-05-03 01:51:20 +02:00
Javier Jardón
73b066814b Remove unused function
gtk_container_foreach_unmarshal() is not used anymore.
2010-05-03 01:51:19 +02:00
Javier Jardón
00d3d8516b Fix compilation warning: cast to GTK_WIDGET 2010-05-03 01:51:19 +02:00
Javier Jardón
a27da3239e Use gtk_label_get_text() instead direct access 2010-05-03 01:51:19 +02:00
Javier Jardón
8d9e37f407 Remove all deprecated stuff from GtkContainer 2010-05-03 01:51:19 +02:00
Christian Dywan
72323e6d9a Do not use lock_count of GtkAccelGroup directly in GtkWidget 2010-05-03 01:51:19 +02:00
Christian Dywan
4045b71824 Remove old GtkToolbar compatibility API 2010-05-03 01:51:19 +02:00
Christian Dywan
2d84d88539 Remove internal GtkNotebook tab homogeneousnes and border helpers 2010-05-03 01:51:19 +02:00
Christian Dywan
8d3814f044 Do not use lock_count of GtkAccelGroup directly in GtkMenu 2010-05-03 01:51:19 +02:00
Christian Dywan
059c22c3b2 Add and use internal accessor for accelerables in GtkAccelGroup 2010-05-03 01:51:19 +02:00
Christian Dywan
a13d2c200b Remove obsolete helper function gtk_rc_add_rc_sets 2010-05-03 01:51:18 +02:00
Cody Russell
5959005fad Use gtk_accel_grouop_get_is_locked() rather than trying to access group->lock_count. 2010-05-03 01:51:18 +02:00
Cody Russell
0779d0a37e Move GSEAL'd members of GtkAccelLabel into private struct. 2010-05-03 01:51:18 +02:00
Cody Russell
3c8c4004b6 Move GSEAL'd members of GtkAccelGroup into private struct 2010-05-03 01:51:18 +02:00
Cody Russell
bcb663096d Remove unnecessary casting 2010-05-03 01:51:18 +02:00
Cody Russell
ba128ceab2 Fix GtkAboutDialog to stop using GSEAL'd members of GtkDialog 2010-05-03 01:51:18 +02:00
Cody Russell
03849dd358 Unseal GtkAboutDialog's private_data member, convert from gpointer to GtkAboutDialogPrivate 2010-05-03 01:51:18 +02:00
Javier Jardón
fb88f34e06 Remove remaining deprecated GtkInputDialog stuff 2010-05-03 01:51:18 +02:00
Javier Jardón
20342702f4 Remove gtkmain stuff from docs and tutorial.
Also, substitue the deprecated functions with the new ones in
documentation and in tests code
2010-05-03 01:51:18 +02:00
Michael Natterer
f7813125bb Remove all deprecated stuff from gtkmain 2010-05-03 01:51:18 +02:00
Michael Natterer
f25e1b0a47 Remove the deprecated gtkmarshal.* entirely 2010-05-03 01:51:18 +02:00
Michael Natterer
5e29973773 Remove all traces of GDK_PIXBUF/GTK_DISABLE_SINGLE_INCLUDES
...and disallow inclusion of individual files unconditionally.
2010-05-03 01:51:18 +02:00
Christian Dywan
90d514a8a5 Remove deprecated GtkEntry functions 2010-05-03 01:51:18 +02:00
Christian Dywan
b2b6bb17ac Remove GtkInputDialog completely 2010-05-03 01:51:17 +02:00
Christian Dywan
575d3ffa83 Include gtkspinner.h in GtkStyle 2010-05-03 01:51:17 +02:00
Javier Jardón
1e8fa9354a Remove GtkPixmap completely 2010-05-03 01:51:17 +02:00
Javier Jardón
e031c4f54a Remove GtkSignal completely 2010-05-03 01:51:17 +02:00
Javier Jardón
d98aeeff45 Ops, enable GtkInputDialog again 2010-05-03 01:51:17 +02:00
Javier Jardón
86eee0258e Revert a still used variable in GtkHButtonBox 2010-05-03 01:51:17 +02:00
Javier Jardón
c9251c99e7 Remove deprecated code: GtkHButtonBox 2010-05-03 01:51:17 +02:00
Javier Jardón
2ec9cb9ca6 Remove remaining GtkAction deprecated documentation
This completes commit 35570ed56eb94b7a05f63daed0ca2bf2c320a8bc
2010-05-03 01:49:50 +02:00
Javier Jardón
858d4fb007 Remove remaining GtkButtonBox deprecated stuff
This completes commit b1b986cc604bffd924a13fbcb180dd234a0b8d14
2010-05-03 01:49:40 +02:00
Javier Jardón
740a1007eb Remove remaining GtkContainer deprecated stuff
This completes commit 600216daac6df8deb0cdc042fc27f07a9c5c7c27
2010-05-03 01:49:25 +02:00
Javier Jardón
fead8cd49a Remove deprecated code: GtkLabel 2010-05-03 01:48:45 +02:00
Javier Jardón
b5917e7a6f Remove deprecated code: GtkFileChooserButton 2010-05-03 01:48:45 +02:00
Javier Jardón
bf49830f07 Remove deprecated code: GtkRadioButton 2010-05-03 01:48:45 +02:00
Javier Jardón
9e30bf3d60 Remove deprecated code: GtkPaned 2010-05-03 01:48:45 +02:00
Javier Jardón
3e9fac395a Remove deprecated code: GtkAccelLabel 2010-05-03 01:48:45 +02:00
Javier Jardón
c9dae4c600 Remove deprecated code: GtkCheckMenuItem 2010-05-03 01:48:45 +02:00
Javier Jardón
73111cd295 Remove deprecated GtkAccelGroup functions 2010-05-03 01:48:45 +02:00
Javier Jardón
3d4c434659 Remove deprecated GtkHButtonBox functions and macros 2010-05-03 01:45:00 +02:00
Javier Jardón
5ed56120a6 Remove deprecated GtkVButtonBox functions 2010-05-03 01:42:37 +02:00
Javier Jardón
0d322676dc Remove deprecated GtkWidget functions 2010-05-03 01:41:37 +02:00
Javier Jardón
2b71ef33fb Remove deprecated GtkWindow function 2010-05-03 01:41:37 +02:00
Javier Jardón
55d5ce88ec Remove deprecated GtkTreeViewColumn functions 2010-05-03 01:41:37 +02:00
Javier Jardón
0a6557d721 Remove deprecated GtkCellRenderer function 2010-05-03 01:41:37 +02:00
Javier Jardón
c1182debd0 Remove deprecated GtkAction functions 2010-05-03 01:41:37 +02:00
Christian Dywan
ed60f1e5ad Update gtk.symbols according to removed symbols 2010-05-03 01:41:36 +02:00
Christian Dywan
6f5b7bad3a Don't use old toolbar API in toolbar stress test 2010-05-03 01:41:36 +02:00
Christian Dywan
43ed74c5cd Remove deprecated GtkCellView function 2010-05-03 01:41:36 +02:00
Christian Dywan
e641742ca0 Omit removed classes from GTK makefile 2010-05-03 01:41:36 +02:00
Christian Dywan
161e1b6916 Don't include deprecated classes in gtk.h 2010-05-03 01:40:42 +02:00
Christian Dywan
97fbd32684 Remove deprecated GtkRecentChooser functions 2010-05-03 01:40:42 +02:00
Christian Dywan
1261b3173d Remove GtkOptionMenu completely 2010-05-03 01:40:42 +02:00
Christian Dywan
5f3178a87a Remove GtkTipsQuery completely 2010-05-03 01:40:42 +02:00
Christian Dywan
e5c56b7c0f Remove GtkText completely 2010-05-03 01:40:41 +02:00
Christian Dywan
528e74a481 Remove GtkPreview completely 2010-05-03 01:40:41 +02:00
Christian Dywan
a8ecd09852 Remove GtkListItem completely 2010-05-03 01:40:41 +02:00
Christian Dywan
bb475d5d2e Remove deprecated GtkStatusIcon functions 2010-05-03 01:40:41 +02:00
Christian Dywan
61a294d820 Remove deprecated GtkSocket functions 2010-05-03 01:40:41 +02:00
Christian Dywan
2da9103e0c Remove deprecated GtkScaleButton functions 2010-05-03 01:40:41 +02:00
Christian Dywan
032b38ccfd Remove deprecated GtkRecentManager functions 2010-05-03 01:40:41 +02:00
Christian Dywan
d21bf0c1ec Remove deprecated GtkFileChooser functions 2010-05-03 01:40:41 +02:00
Christian Dywan
07501cf02e Remove GtkOldEditable completely 2010-05-03 01:40:41 +02:00
Christian Dywan
49ec071c59 Remove GtkFileSelection completely 2010-05-03 01:40:41 +02:00
Christian Dywan
2d763d3430 Remove GtkList completely 2010-05-03 01:40:41 +02:00
Christian Dywan
dc21c8ef06 Remove deprecated GtkToolItem functions 2010-05-03 01:40:41 +02:00
Christian Dywan
aa21bd702f Remove deprecated GtkColorSelection functions 2010-05-03 01:40:41 +02:00
Christian Dywan
d974436aec Remove deprecated GtkFontSelection(Dialog) functions 2010-05-03 01:40:41 +02:00
Christian Dywan
d2468351ca Remove deprecated GtkSpinButton function (macro) 2010-05-03 01:40:40 +02:00
Christian Dywan
474529e2c0 Remove GtkItemFactory completely 2010-05-03 01:40:40 +02:00
Christian Dywan
ea36fff086 Remove GtkCombo completely 2010-05-03 01:40:40 +02:00
Christian Dywan
b653f66b05 Remove GtkCList completely 2010-05-03 01:40:40 +02:00
Christian Dywan
f210f816ca Remove GtkCTree completely 2010-05-03 01:40:40 +02:00
Christian Dywan
f3ea5702ab Remove GtkTreeItem completely 2010-05-03 01:40:40 +02:00
Christian Dywan
b0149a9f3f Remove GtkTree completely 2010-05-03 01:40:40 +02:00
Christian Dywan
5c3b5ecfce Remove deprecated/ broken types from the default value test 2010-05-03 01:40:40 +02:00
Christian Dywan
16011da879 Remove some deprecated functions from GtkWidget 2010-05-03 01:40:40 +02:00
Christian Dywan
6513947473 Prefix gtk_selection_clear with an underscore 2010-05-03 01:39:50 +02:00
Christian Dywan
8ac9a0e67f Remove deprecated GtkStyle functions 2010-05-03 01:39:50 +02:00
Christian Dywan
165fd5903f Remove deprecated GtkToolbar functions 2010-05-03 01:39:50 +02:00
Christian Dywan
7d3dbb9532 Remove deprecated GtkMenuBar functions (macros) 2010-05-03 01:39:50 +02:00
Christian Dywan
956a5c47ed Remove deprecated GtkRcStyle functions 2010-05-03 01:39:50 +02:00
Christian Dywan
2e1b3abad3 Remove deprecated GtkRadioMenuItem function (macro) 2010-05-03 01:39:50 +02:00
Christian Dywan
11e97600f0 Remove deprecated GtkTreeView functions 2010-05-03 01:39:50 +02:00
Christian Dywan
b7eed8cbff Remove deprecated GtkMenuToolButton function 2010-05-03 01:39:50 +02:00
Christian Dywan
7e67ec8414 Remove deprecated GtkTreeModel functions (macros) 2010-05-03 01:39:50 +02:00
Christian Dywan
c4b3b13f9d Remove deprecated GtkNotebook functions 2010-05-03 01:39:50 +02:00
Christian Dywan
025eebb49d Remove deprecated GtkMenuItem function 2010-05-03 01:39:49 +02:00
Christian Dywan
2f1a59c0f2 Remove deprecated GtkLayout functions 2010-05-03 01:39:49 +02:00
Christian Dywan
7fd68866fe Remove deprecated GtkImage functions 2010-05-03 01:39:49 +02:00
Christian Dywan
605705fd6b Remove deprecated gtk_drag_set_default_icon 2010-05-03 01:39:49 +02:00
Christian Dywan
2eb26d68f6 Remove deprecated function from GtkDrawingArea 2010-05-03 01:39:49 +02:00
Christian Dywan
304f36b587 Remove deprecated functions from GtkCalendar 2010-05-03 01:39:49 +02:00
Christian Dywan
0d7d1ae8dc Remove deprecated functions from GtkBox 2010-05-03 01:39:49 +02:00
Christian Dywan
de29ee15c6 Remove deprecated gtk_binding_entry functions 2010-05-03 01:39:49 +02:00
Christian Dywan
5a33eb8d67 Remove deprecated functions from GtkAboutDialog 2010-05-03 01:39:49 +02:00
Benjamin Otte
b08a6750dc filechooser: Fix a crash when removing files
The file removal code was not properly clearing the file=>array index
cache, so later lookups into that cache would return invalid array
indexes.

The easiest way to reproduce it is to create a directory with two files
and deleting both of them.

Reported-by: Javier Jardón <jjardon@gnome.org>
2010-05-02 14:34:43 +02:00
Matthias Clasen
1782151092 Doc fixes
Correct some Since tags.
2010-05-01 21:40:43 -04:00
Matthias Clasen
201635a203 Fix doc typos 2010-05-01 21:40:43 -04:00
Matthias Clasen
82647f274c Integrate GtkExtendedLayout docs 2010-05-01 21:40:43 -04:00
Javier Jardón
1cf85176e4 Add gtk_extended_layout_get_desired_size() to gtk.symbols 2010-05-01 16:04:51 +02:00
Javier Jardón
0d85671bc9 Fix some compilation warnings 2010-05-01 03:52:03 +02:00
Matthias Clasen
db76c77b81 Merge branch 'native-layout-incubator'
Conflicts:
	configure.in
	docs/reference/gtk/tmpl/gtkaction.sgml
	docs/reference/gtk/tmpl/gtkbuilder.sgml
	gdk/directfb/gdkkeys-directfb.c
	gdk/gdk.symbols
	gdk/x11/gdkwindow-x11.c
	gtk/gtkalignment.c
	gtk/gtkbox.c
	gtk/gtkbutton.c
	gtk/gtkcelleditable.c
	gtk/gtkfilechooser.c
	gtk/gtkframe.c
	gtk/gtkinvisible.c
	gtk/gtklabel.c
	gtk/gtkscrolledwindow.c
	gtk/gtksearchenginetracker.c
	gtk/gtktextview.c
	gtk/gtktoolbutton.c
	gtk/gtktooltip.c
	gtk/gtkviewport.c
	gtk/gtkwidget.c
	gtk/gtkwindow.c
	po-properties/ca@valencia.po
	po-properties/es.po
	po-properties/kn.po
	po-properties/mr.po
	po/ca.po
	po/ca@valencia.po
	po/el.po
	po/es.po
	po/gl.po
	po/id.po
	po/kn.po
	po/lv.po
	po/mr.po
	po/th.po
2010-04-30 17:56:50 -04:00
Matthias Clasen
fc1450d55d Set an appropriate title on the folder selection dialog for print-to-file 2010-04-29 17:14:14 -04:00
Matthias Clasen
556531b16f Get symbolic colors for statusicons from systray
Uses the X property _NET_SYSTEM_TRAY_COLORS.
2010-04-29 17:01:25 -04:00
Matthias Clasen
1335275548 Add a way to set symbolic colors per-widget
The new function, gtk_widget_modify_symbolic_color() is similar
in spirit to the other gtk_widget_modify_ functions.
2010-04-29 17:01:25 -04:00
Tadej Borovšak
be3a1abc04 Move documentation to inline comments: GtkBuilder
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611742

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-28 18:41:34 +02:00
Tadej Borovšak
d6bc1a99dc Move documentation to inline comments: GtkButtonBox
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=612349

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-28 18:41:34 +02:00
Tadej Borovšak
ef4e7b2473 Move documentation to inline comments: GtkBox
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611742

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-28 18:41:33 +02:00
Javier Jardón
fa3bb041eb Fix <ulink> tag in previous commit 2010-04-28 18:41:33 +02:00
Matthias Clasen
3833ef5c35 Fix the build 2010-04-28 11:17:30 -04:00
Matthias Clasen
b3dd3a89d3 Formatting tweaks 2010-04-28 11:15:15 -04:00
Matthias Clasen
5d5d93e624 Make the docs build
Grr
2010-04-28 11:10:34 -04:00
Matthias Clasen
50656c74e3 Some doc and formatting tweaks 2010-04-28 10:04:21 -04:00
Matthias Clasen
6b939d57c7 Support 'symbolic' themed icons
Add gtk_icon_info_load_symbolic() to load symbolic icons, and
theme their background/foreground colours to match the
colours used in the theme.

Adds the gtk_icon_info_load_symbolic() function, explicit
support in GtkImage and GtkCellRendererPixbuf, and test cases
for those 2 widgets.

With help from Bastien Nocera <hadess@hadess.net>

https://bugzilla.gnome.org/show_bug.cgi?id=614711
2010-04-28 12:02:05 +01:00
Matthias Clasen
c8dd9895e4 Add some documentation about width-chars and max-width-chars
Explain how these properties determine the width of ellipsized
and wrapped labels.
2010-04-28 00:48:15 -04:00
Javier Jardón
3cc9575323 Move documentation to inline comments: GtkHBox 2010-04-28 04:29:41 +02:00
Javier Jardón
a6ed128abf Move documentation to inline comments: Testing utilities 2010-04-28 04:20:10 +02:00
Javier Jardón
1e2dabf31d Allow NULL as 'icon_widget' in gtk_tool_button_new()
This completes the patch of
commit b8ec73a52f
2010-04-27 03:26:11 +02:00
Javier Jardón
d3d4cf0e84 Deprecate GTK_WIDGET_*SET_FLAGS() macro
The macro GTK_WIDGET_SET_FLAGS(w, GTK_VISIBLE) should
still be fixed internally.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-27 02:45:18 +02:00
Mirsal Ennaime
5eaff47e85 Add accessors for GtkTextView adjustments
GtkTextView is missing accessors for its sealed hadjustment
and vadjustment members.
This patch adds gtk_text_view_get_hadjustment() and
gtk_text_view_get_vadjustment() to GtkTextView

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=616053
2010-04-27 02:23:07 +02:00
Matthias Clasen
538ec4efbb Add a GtkExtendedLayout implementation for GtkFrame 2010-04-26 18:07:42 -04:00
Javier Jardón
41a073263a Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_HAS_DEFAULT)
Introduce internal _gtk_widget_set_has_default() for this

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614515
2010-04-26 21:10:15 +02:00
Javier Jardón
45257e31c7 Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_TOPLEVEL)
Introduce internal _gtk_widget_set_is_toplvel() for this

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614510
2010-04-26 21:07:20 +02:00
Javier Jardón
560e426f16 Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_HAS_GRAB)
Introduce internal _gtk_widget_set_has_grab() for this

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=614513
2010-04-26 21:04:51 +02:00
Javier Jardón
b8ec73a52f Only a GtkMisc widget should be passed to gtk_tool_button_new()
Reported by Hernando Torque here:
https://bugzilla.gnome.org/show_bug.cgi?id=616851
2010-04-26 20:23:39 +02:00
Emmanuele Bassi
621b415e5b tree-view: Use gtk_widget_send_focus_change()
Remove the second (and last) internal user of the GTK_HAS_FOCUS flag.

https://bugzilla.gnome.org/show_bug.cgi?id=593671
2010-04-26 18:59:24 +01:00
Emmanuele Bassi
91930f86b2 window: Use gtk_widget_send_focus_change()
Remove the original user of the GTK_HAS_FOCUS flags.

https://bugzilla.gnome.org/show_bug.cgi?id=593671
2010-04-26 18:59:23 +01:00
Emmanuele Bassi
f04a720348 widget: Add send_focus_change()
Currently the only users of the GTK_HAS_FOCUS flag are setting it
before sending a focus change event. This is normally needed by
GtkWindow, but there are widgets that require controlling the focus
of widgets that are semantically their children even though they are
parented to another top-level. Case in point: the quick search entry
for GtkTreeView.

Over the years people have been hacking the focus change out of
gtkwindow.c and gtktreeview.c, thus leaking the direct access of the
GTK_HAS_FOCUS flag.

The simplest way to avoid that is to add a function that sends the
focus change event and controls the setting of the flag, thus removing
the need for external widgets to do the same.

https://bugzilla.gnome.org/show_bug.cgi?id=593671
2010-04-26 18:59:22 +01:00
Matthias Clasen
cd45dfaa1d Tiny documentation tweak 2010-04-26 07:34:01 -04:00
Matthias Clasen
a0b61a5a72 Make testellipsize work for rotating non-ellipsized labels 2010-04-25 20:58:36 -04:00
Matthias Clasen
f285ed1348 Treat h and v boxes the same way
...we've got the money!
2010-04-25 17:12:15 -04:00
Matthias Clasen
bcbd7cce13 Don't add padding to a pointer 2010-04-25 16:45:21 -04:00
Matthias Clasen
ff0eb03201 Fix a regression in RTL flipping
This was only showing up with pack-end packing in horizontal boxes.
The RTL flipping has to be applied after moving the reference point
to the left edge of the child.
2010-04-25 16:23:01 -04:00
Matthias Clasen
148ea63dba Formatting and typo fixes 2010-04-23 21:52:55 -04:00
Tristan Van Berkom
2a5272647d Mega commit backing out everything from the native-layout branch that
is not ready for integration

This commit makes the native-layout branch into a reasonable
patch applicable to git master, it pulls out GtkCellRenderer
support, ComboBox support, the Plug/Socket api is also not ready
and is pulled out.
2010-04-21 03:42:23 -04:00
Tristan Van Berkom
9306a73dfd Added documentation, implemented gtk_extended_layout_is_height_for_width() where needed. 2010-04-21 01:32:55 -04:00
Javier Jardón
95fd5011c2 Move documentation to inline comments: GtkMessageDialog
Also, add a note about GTK_BUTTONS_OK, GTK_BUTTONS_YES_NO
and GTK_BUTTONS_OK_CANCEL are discouraged by the GNOME HIG.

https://bugzilla.gnome.org/show_bug.cgi?id=597865
2010-04-21 05:57:29 +02:00
Tristan Van Berkom
680d7762ba Make sure not to base the minimum size on "max-width-chars", only the natural size. 2010-04-20 20:30:10 -04:00
Tristan Van Berkom
dfd311497d Fixed GtkLabel to wrap correctly and report width-for-height correctly when vertical. 2010-04-20 18:54:50 -04:00
Tristan Van Berkom
d5b31c303c Slightly reduced extended layout cache size, updated authors/copywrite year. 2010-04-20 18:53:54 -04:00
Tristan Van Berkom
17883f3ce6 Fixed GtkLabel to include GtkMisc padding when calculating height-for-width. 2010-04-20 15:23:13 -04:00
Tristan Van Berkom
80428e7745 Restore layout in get_desired_size() after guessing a wrap width
This fixes the label layout in cases where gtk_widget_size_request()
is called on a label without a following size_allocate(), for instance
when a button state changes.
2010-04-20 14:16:13 -04:00
Tristan Van Berkom
4ed5e6d526 Various updates to follow new gtk_extended_layout_get_desired_size added argument. 2010-04-20 01:30:56 -04:00
Tristan Van Berkom
b7a05d1832 Fixed missing return from get_desired_width/height in GtkViewport (causing testgtk to have a small width). 2010-04-20 01:27:32 -04:00
Tristan Van Berkom
c927f5e60d Split up width and height queries so that they make more sense (extended-layout) 2010-04-20 01:26:58 -04:00
Tristan Van Berkom
0330658a7f Added request_natural argument to get_desired_size()
Currently get_desired_size() is more of an emulation of
gtk_widget_size_request() for the minimum size as it bases the
contextual request on the minimum preferred size; this argument
lets you do the request with the natural preferred size as well.
2010-04-20 01:24:51 -04:00
Tristan Van Berkom
3a9ab87489 GtkAlignment now tries to allocate natural size to the child if available and does the height-for-width calculation depending on allocation. 2010-04-20 01:22:31 -04:00
Tristan Van Berkom
0b92348077 Fixed acces of child->requisition; call gtk_widget_get_child_requisition instead.
This fixes squished pathbar issue (as access to ->requisition is really
not supported anymore).
2010-04-20 00:33:20 -04:00
Tristan Van Berkom
b0fc43e958 Reduced natural request padding for rotating ellipsizing labels
After fixing height requests this works much smoother, although in
some places pango seems to ellipsize a rotated label when given
the width it requested.
2010-04-19 21:50:55 -04:00
Tristan Van Berkom
8ae5e01225 Fixed another caching bug in extended layout
Was confusing width/height REQUEST_NEEDED flags, this caused
the volumebutton test to not re-request the height properly
when changing orientations.
2010-04-19 21:37:44 -04:00
Tristan Van Berkom
de4a8f8ddc Unconditionally return the height for the minimum width when doing get_desired_height()
This is the correct support for the opposing orientation for widgets
that support height-for-width, in an interface that was realized as
width-for-height, a height-for-width supporting widget should return
the minimum height for the minimum width when the initial
get_desired_height() is run.
2010-04-19 20:43:19 -04:00
Tristan Van Berkom
ee8db39393 Fixed height-for-width cache
Fixed the cache to be cleared when flagged with WIDTH/HEIGHT_REQUEST_NEEDED.
This error was causing some widgets to not be sized correctly (the stock and
icon browser in the demo for instance).
2010-04-19 20:41:23 -04:00
Tristan Van Berkom
119267d7c8 Removing old comments in gtkbin.c 2010-04-19 20:40:04 -04:00
Tristan Van Berkom
3783a0a54f Fixed computation of sizegroups when no explicit request is set.
My previous commit to GtkSizeGroup made sure that when
gtk_widget_set_size_request() is set on a widget, it will be
taken into account when computing the widget's own request,
this commit fixes the case where there is no explicit size
request.
2010-04-19 14:46:28 -04:00
Tristan Van Berkom
e9e3725ee7 Fixed testellipsize 2010-04-19 14:04:20 -04:00
Tristan Van Berkom
0dff033a64 Fixed GtkSpinner to request 12x12 at init time instead of at expose time.
This should not change the space taken by the spinner when hidden,
and it should only set the minimum size not the actual size (i.e. code
in place was conditionally setting it if not allocated 12x12, which
doesnt really make sense)... This fixes spinners showing at the correct size
in gtk-demo.
2010-04-18 20:46:30 -04:00
Tristan Van Berkom
4c1fa76520 Fixed _gtk_size_group_bump_requisition() to properly handle values specified by gtk_widget_set_size_request() 2010-04-18 20:45:42 -04:00
Tristan Van Berkom
e997ac37a7 Added GTK_DEBUG_EXTENDED_LAYOUT flag and use that for debuggin in gtkextendedlayout.c 2010-04-18 20:14:13 -04:00
Tristan Van Berkom
6dc5cdb981 Implemented GtkExtendedLayout on GtkWindow. 2010-04-18 20:13:46 -04:00
Tristan Van Berkom
fe257d23dd Fixed GtkAssistant to not access ->requisition of children directly.
This was causing a 0 height action-area because a GtkBox does not
generally update ->requisition with anything useful
(call gtk_widget_get_child_requisition() here instead).
2010-04-18 20:11:43 -04:00
Tristan Van Berkom
3cbd9e9313 Further fixed base outputs of GtkLabel desired geometries.
Now (when wrapping), if no "width-chars" was specified for a minimum
width, default to the width guessed by gtk_label_ensure_layout(), small
specified widths will otherwise result in very large height requests.
2010-04-18 18:13:56 -04:00
Tristan Van Berkom
da318411dc Fixed bug in gtk_extended_get_desired_size().
gtk_extended_get_desired_size() was mixing up orientations based
on the preference, considering ditching the preference anyway.
Also slightly enhanced debug prints.
2010-04-18 18:12:30 -04:00
Tristan Van Berkom
35cc52f418 Compute the collective heights for the width of a horizontal box.
Introduce an algorithm to allocate children some virtual widths based on
their base widths returned by ->get_desired_width(), then return the
collective desired heights for each or thier virtually allocated width.

This will only work in the horizontal orientation.
2010-04-18 18:09:40 -04:00
Javier Jardón
508ed4bbab [docs] Move documentation to inline comments: GtkArrow
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611957

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 17:59:53 +02:00
Steven Harms
c3d5faf6b7 [docs] Move documentation to inline comments: GtkVButtonBox
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611833

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 08:54:40 +02:00
Tadej Borovšak
5f767e2c48 [docs] Move documentation to inline comments: GtkAssistant
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 08:02:03 +02:00
Tadej Borovšak
51e32fe67a [docs] Move documentation to inline comments: GtkBuildable
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611741

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 05:27:22 +02:00
Tadej Borovšak
8e8d302d10 [docs] Move documentation to inline comments: GtkBin
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=612351

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 05:19:21 +02:00
Tadej Borovšak
4c0cf04688 [docs] Move documentation to inline comments: GtkAspectFrame
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611958

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 05:08:36 +02:00
Tristan Van Berkom
e8a365ce36 Restore functionality where ellipsizing label *minimum* size grows to "max-char-width". 2010-04-17 23:06:24 -04:00
Tadej Borovšak
b802be45b3 [docs] Move documentation to inline comments: GtkAlignment.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611956

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 04:55:27 +02:00
Tristan Van Berkom
64e23c42bd Fixed GtkLabel reported minimum and natural sizes
This commit makes GtkLabel use "max-width-chars" to determine the
desired natural width for wrapping labels as well as all around refactoring
the initially reported values in get_desired_width/height. this also
addresses some issues with rotating ellipsizing text.
2010-04-17 22:54:29 -04:00
Tristan Van Berkom
8b57ad94c0 Now gtk_extended_layout_get_desired_size() returns a minimum for minimum in the minimum requisition and a natural for minimum in the natural. 2010-04-17 22:52:27 -04:00
Tristan Van Berkom
b30445c927 Make GtkWindow use the generic smallest size for the requisition again 2010-04-17 22:51:35 -04:00
Tadej Borovšak
b6a6142556 [docs] Move documentation to inline comments: GtkAction
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611952

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 04:49:51 +02:00
Steven Harms
6cdeb370a1 [docs] Move documentation to inline comments: GtkVRuler
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611656

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 03:55:22 +02:00
Steven Harms
25b6994cba [docs] Move documentation to inline comments: GtkVolumeButton
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611827

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 03:48:26 +02:00
Steven Harms
7693026e44 [docs] Move documentation to inline comments: GtkViewport
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611829x

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 03:29:16 +02:00
Steven Harms
75ffa7983a [docs] Move documentation to inline comments: GtkVPaned
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=611634

Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-04-18 02:57:30 +02:00
Patrick Bernaud
6a9b72525a [docs] Move documentation to inline comments: GtkSocket
https://bugzilla.gnome.org/show_bug.cgi?id=611707
2010-04-18 02:36:04 +02:00
Tristan Van Berkom
9247bc8d6d Fixed GtkExtendedLayout interaction with sizegroups plus cleanups
Fixed GtkExtendedLayout to interact with sizegroups, "size-requsts"
and caching the values all in the same code segment.

Migrated the cache code to be internal to gtkextendedlayout.c
2010-04-17 01:51:10 -04:00
Tristan Van Berkom
46fe9c3f00 Disabling natural sizes of labels.
Since GtkLabel is returning invalid natural sizes for now,
in order to test regressions well with the new width-for-height
api, I've temporarily disabled the natural values.
2010-04-17 01:49:35 -04:00
Tristan Van Berkom
caba7992b8 Refactored GtkSizeGroup for GtkExtendedLayout
Removed _gtk_size_group_compute_requisition and
_gtk_size_group_get_child_requisition in favor of
_gtk_size_group_bump_requisition() which does an orientation
contextual computation of the size group and returns the
collective value in one pass.
2010-04-17 01:46:59 -04:00
Stefan Kost
d4a159d488 [docs] improve docs for gtk_accelerator_parse().
Link to gdk_keyval_from_name() and give example for non obvious accelerator
strings.
2010-04-16 21:30:47 +03:00
Javier Jardón
edfcc3dd41 [docs] Fix GtkWidget and GtkFileChooser documentation
gtk-doc version >= 1.14 is more strict, It produces valid xml
if the source is valid.
2010-04-15 22:58:39 +02:00
Javier Jardón
06f66c185a Fix compilation warning: set a default case in switchs 2010-04-15 21:10:32 +02:00
Javier Jardón
8cde95bc5f Fix compilation warning: remove unused variable 2010-04-15 16:19:42 +02:00
Michael Natterer
ece97b2359 Bug 615162 - Fix tooltips on offscreen widgets
Fix the "widget under pointer" logic and keyboard tooltip positioning
to do the right thing on offscreen widgets.
2010-04-15 13:03:43 +02:00
Michael Natterer
fdf936b5ad gtk: fixes for offscreen widgets
Fix gtk_widget_translate_coordinates() and
_gtk_widget_synthesize_crossing() so they work in hierarchies with
offscreen widgets.
2010-04-15 13:02:04 +02:00
Tristan Van Berkom
8432f54c51 Added _gtk_size_group_bump_requisition()
Added a function to update sizegroups in multiple passes, this
way the width and height can be updated in the sizegroups after
querying the extended layout implementor for these.

Implemented this in GtkExtendedLayout, sizegroups should be working reasonably now.
2010-04-14 18:07:27 -04:00
Vincent Untz
9b34203cb6 No accessor for GtkAccessible.widget
Add gtk_accessible_get_widget().

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=612509
2010-04-14 03:49:26 +02:00
Martyn Russell
100ecea239 Fixed build failure for gtkorientable 2010-04-13 11:22:45 +01:00
Martyn Russell
72c51a5a6a tracker-search-engine: Fixed whitespace issues and copyright/authors 2010-04-13 11:13:58 +01:00
Martyn Russell
f5781b42cf tracker-search-engine: Improve search query to order by rank and title 2010-04-13 11:13:58 +01:00
Martyn Russell
f6c1d54b3f tracker-search-engine: Fixed 0.7/0.8 issues and add 0.9 cases 2010-04-13 11:13:58 +01:00
Javier Jardón
af0a7aea5f Use G_DEFINE_INTERFACE macro in gtkbuildable
https://bugzilla.gnome.org/show_bug.cgi?id=605186
2010-04-13 07:44:12 +02:00
Javier Jardón
9f6e03f231 Use G_DEFINE_INTERFACE macro in gtkorientable
https://bugzilla.gnome.org/show_bug.cgi?id=605186
2010-04-13 07:43:51 +02:00