Carlos Garnacho
68bfb94f69
Change semantics of the methods to check whether an animation is running.
...
It actually messed up with the state being actually set, and having a
transition animation running for it. Now this dichotomy is removed, and
gtk_style_context_state_is_running() only checks whether an animation is
running, leaving state checking to flags & GTK_STATE_FLAG_*.
2010-12-04 15:38:22 +01:00
Carlos Garnacho
a79626b7fb
Add theming docs
...
Both API and file format is documented, there's still missing
a migration doc though.
2010-12-04 15:38:21 +01:00
Tristan Van Berkom
b0f849eafd
Changed GTK_CELL_AREA_WARN_INVALID_CHILD_PROPERTY_ID for GTK_CELL_AREA_WARN_INVALID_CELL_PROPERTY_ID
2010-12-04 20:52:03 +09:00
Tristan Van Berkom
9c6a801f52
Migrated GtkCellLayout documentation into the source code.
...
Also added a section on specifying <cell-packing> properties
in the GtkCellLayout UI description.
2010-12-04 15:41:42 +09:00
Tristan Van Berkom
c5a60e035d
Removed GtkCellAreaBoxPrivate from GtkCellAreaBox section.
2010-12-03 17:21:28 +09:00
Benjamin Otte
e3013a5cf5
docs: Replace mentions of drawable with window in migration guide
...
No need to let gtk3-aware people learn about wonderous gtk2 terms when
they are migrating old code. ;)
2010-12-02 20:21:04 +01:00
Benjamin Otte
65dde2f92f
API: Remove gdk_cairo_reset_clip()
...
You should not ever ever ever call cairo_reset_clip(). If you do, your
code is broken and you deserve everything you get.
And we should definitely not support this insanity.
2010-12-02 20:17:28 +01:00
Benjamin Otte
cf51750bf4
API: x11: gdk_drawable_get_xid => gdk_window_get_xid
...
Also moves the function implementations to gtkwindow-x11.c.
2010-12-02 20:17:27 +01:00
Tristan Van Berkom
513546f3df
Adding GtkCellArea to gtk-doc build (added to gtk3.types, gtk-docs.sgml and updated gtk3-sections.txt file).
2010-12-03 00:29:43 +09:00
Cosimo Cecchi
6e6379c633
app-chooser: add docs and symbols coverage for new API
2010-12-01 17:04:22 +01:00
Matthias Clasen
bdeba634d9
Update checkmenuitem docs slightly
2010-11-30 11:36:34 -05:00
Cosimo Cecchi
4fe23cae78
app-chooser: other misc doc fixes
2010-11-30 17:27:53 +01:00
Cosimo Cecchi
960516bf33
app-chooser: add more symbols & docs
2010-11-30 16:30:33 +01:00
Cosimo Cecchi
cb916f2746
Merge branch 'master' into open-with-dialog
...
Conflicts:
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
2010-11-30 16:27:28 +01:00
Ryan Lortie
922324553b
Bug 619148 - "active ID" properties (GtkComboBox)
...
Based on a patch by Matthias, add an "active-id" property for
GtkComboBox and add some convenience API for GtkComboBoxText.
Also, add a test case to gtk-demo.
2010-11-30 00:29:16 -05:00
Matthias Clasen
2392dacb2b
No more rulers
2010-11-29 13:56:27 -05:00
Matthias Clasen
99aa90b0bc
Add GtkSwitch to the widget gallery
2010-11-29 11:23:07 -05:00
Emmanuele Bassi
044040dfd1
docs: Add GtkSwitch to the API reference
...
https://bugzilla.gnome.org/show_bug.cgi?id=634987
2010-11-29 12:52:10 +00:00
Bastien Nocera
b850f8bf18
docs: Make docs build after GtkRuler removal
2010-11-26 00:47:55 +00:00
Benjamin Otte
e0fb7a86e5
gtk: Remove GtkRuler
...
It is really bad code, mostly unused and no one stepped up to fix it.
Note that Gtk developers do not object to a ruler widget in priciple,
just to the current implementation. If someone wants to propose a sane
version, please don't hesitate.
https://bugzilla.gnome.org/show_bug.cgi?id=613942
2010-11-24 16:56:10 +01:00
Cosimo Cecchi
77b5fcfa93
open-with: add docs and integrate with the build GTK+ conventions
2010-11-23 16:51:39 +01:00
Javier Jardón
abe20a7c97
docs: Add private structures to private sections
2010-11-20 21:26:50 +01:00
Javier Jardón
a61d63d607
docs: Add new GtkAssitant API to gtk3-sections
2010-11-20 21:15:00 +01:00
Javier Jardón
5cd64fbd08
docs: Add the new GtkScrollablePolicy API to gtk3-sections
2010-11-20 21:14:41 +01:00
Evan Martin
d3f1312c98
docs: Copy GtkSizeGroup ownership discussion to GtkWindowGroup
...
The two behave identically, so the text is the same with s/size/window/.
2010-11-19 09:24:02 -05:00
Javier Jardón
c4be956473
gtkentry: move public members to private structure
2010-11-19 08:38:12 +01:00
Javier Jardón
c295ab0943
gtktbutton: Move public members to private structure
2010-11-19 06:15:26 +01:00
Javier Jardón
9f16f99358
docs: Improve cross-referencing in the migration guide
2010-11-19 04:44:42 +01:00
Javier Jardón
70d95f04e7
gtkmain: Remove deprecated gtk_init_add() function
...
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-11-16 06:54:01 +01:00
Javier Jardón
ac94503180
docs: Do not refer to deprecated GNOME2 porting guide
...
But to the related sections of Pango manual
2010-11-14 01:56:14 +01:00
Javier Jardón
97862638ec
docs: Update URL of some documentation links
...
http://developer.gnome.org -> http://library.gnome.org
2010-11-14 01:24:19 +01:00
Patrick Bernaud
76ba033f59
docs: Move documentation to inline comments: GtkPaned
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634338
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-11-08 23:22:03 +01:00
Patrick Bernaud
6a93e3bbe1
docs: Move documentation to inline comments: GtkProgressBar
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634339
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-11-08 23:21:57 +01:00
Patrick Bernaud
692024940c
docs: Move documentation to inline comments: GtkPageSetup
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634340
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-11-08 23:21:49 +01:00
Garrett Regier
3aad9f6617
docs: Move documentation to inline comments: GtkCellView
...
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-11-06 18:21:36 +01:00
Garrett Regier
d5593dec9e
docs: Move documentation to inline comments: GtkCellRendererText
...
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-11-06 18:21:36 +01:00
Javier Jardón
6cfd907290
docs: Move documentation to inline comments: GtkCellRenderer
2010-11-06 18:21:35 +01:00
Javier Jardón
c418ea89e5
docs: Move documentation to inline comments: GtkSettings
2010-11-06 18:21:35 +01:00
Garrett Regier
aa4c96544b
docs: Move documentation to inline comments: GtkColorSelection
...
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-11-06 17:42:00 +01:00
Garrett Regier
65536550c5
docs: Move documentation to inline comments: GtkLayout
...
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-11-06 17:42:00 +01:00
Javier Jardón
c08e7f01fe
docs: move documentation to inline comments: GtkColorButton
2010-11-06 03:26:14 +01:00
Javier Jardón
5efde9d6d0
docs: move documentation to inline comments: GtkTreeView
2010-11-06 03:26:14 +01:00
Javier Jardón
f90bdb33c8
docs: Move documentation to inline comments: GtkTextView
2010-11-06 03:26:14 +01:00
Javier Jardón
0e0c4ee129
docs: move documentation to inline comments: GtkEntry
2010-11-05 20:49:20 +01:00
Javier Jardón
cf71dbde90
docs: Fix generation of GtkGrid documentation
2010-11-05 17:28:18 +01:00
Matthias Clasen
750a9f3225
Fix a typo
2010-10-31 22:16:41 -04:00
Matthias Clasen
a3f19ddae8
Mention actions in the libunique migration guide
2010-10-31 22:14:53 -04:00
Javier Jardón
73bac5af3b
Emphasize that GtkBox and GtkTable can be replaced by GtkGrid
2010-10-30 06:53:44 +02:00
Javier Jardón
b2207f6730
docs: remove template of deprecated gtkcombo widget
2010-10-30 05:03:02 +02:00
Matthias Clasen
9795bd4c8c
Migration guide additions
...
Add some information about expand flags and the scrollable interface.
2010-10-29 22:48:26 -04:00
Javier Jardón
b3a7d401a1
Use gtk_paned_new() instead gtk_[v|h]paned_new()
2010-10-30 02:26:23 +02:00
Matthias Clasen
ac3fe174f7
GtkComboBox: Add a constructor that takes a model and adds an entry
...
https://bugzilla.gnome.org/show_bug.cgi?id=633050
2010-10-29 12:28:42 -04:00
Matthias Clasen
df4c566220
Add a migration guide section on size_request
2010-10-27 15:55:33 -04:00
Ignacio Casal Quinteiro
fdea6c5c19
Fix typo.
2010-10-24 22:51:51 +02:00
Matthias Clasen
520a6aeb8f
Fix up docs
2010-10-23 23:41:08 +02:00
Matthias Clasen
d7653e7c0c
Add a unique->GtkApplication migration guide
2010-10-23 22:51:38 +02:00
Matthias Clasen
3e594dd845
Fix doc build
2010-10-23 21:23:22 +02:00
Matthias Clasen
7651c231e0
Revert the id-column patch
...
It didn't quite turn out as I wanted it.
I'll put it in bug 619148 for now.
2010-10-23 19:34:20 +02:00
Matthias Clasen
9fb36fff36
Add a way to associate numeric ids with combobox values
...
This will let us use combo boxes as property editors for
GSettings enmerations easily.
2010-10-23 02:31:30 +02:00
Javier Jardón
38dbb84095
gtkadjustment: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
96f2f2ff5b
gtkscrollbar: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
ec0c739520
gtktreemodelfilter: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
8d3b36d534
gtktreeselection: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
e51daa79fe
gtktreesortable: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
16cf23959f
gtktreeviewcolumn: Move documentation to inline comments
2010-10-23 00:31:36 +02:00
Javier Jardón
8f766d36f4
gtktreestore: Move documentation to inline comments
2010-10-23 00:31:36 +02:00
Carlos Garnacho
1bbbd005a4
GtkColorButton: Add API to deal with GdkRGBA.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
cb5b74e9c6
GtkColorSelection: Add API to deal with GdkRGBA.
...
The hook to change the global palette is still unchanged, it is quite
tied to GdkColor and the color format used to store the palette in
GtkSettings.
2010-10-22 20:14:56 +02:00
Matthias Clasen
c750003168
Point to GtkGrid from the GtkBox and GtkTable docs
2010-10-22 19:59:29 +02:00
Matthias Clasen
09ec50af90
Remove GtkScrollablePolicy again
...
This was a miscommunication, the properties need to live elsewhere.
2010-10-22 19:24:03 +02:00
Matthias Clasen
0d9ebb501d
Move min-display-width/height to GtkScrolledWindow
...
It is just too annoying to have to implement these properties in
every scrollable. Instead, we now have ::min-content-height/width
in GtkScrolledWindow.
We also add GtkScrollablePolicy to determine how to size the
scrollable content.
2010-10-22 19:21:17 +02:00
Javier Jardón
8999053b5f
docs: Add gtk-doc notation
...
to emphasize that GtkMisc and GtkAdjustment are not encouraged in new code
2010-10-22 17:59:38 +02:00
Matthias Clasen
8cd13d09e8
Discourage use of GtkMisc and GtkAlignment
2010-10-22 16:52:08 +02:00
Matthias Clasen
8f0ae8e8a3
Add GtkGrid
...
GtkGrid is a container similar to GtkTable, without legacy
properties and unnecessary restrictions.
It does height-for-width geometry management.
2010-10-22 16:42:50 +02:00
Christian Persch
b0fe3e49bb
Add gtk_recent_info_get_gicon()
...
https://bugzilla.gnome.org/show_bug.cgi?id=617174
2010-10-22 11:58:00 +01:00
Emmanuele Bassi
03fc0dd5ca
recent-manager: Add RecentInfo.create_app_info()
...
A simple wrapper that makes it possible to create a GAppInfo from a
GtkRecentInfo blob.
2010-10-22 11:54:53 +01:00
Tadej Borovšak
55196a705f
Add GtkScrollable interface
...
The GtkScrollable interface provides "hadjustment" and "vadjustment"
properties that are used by GtkScrolledWindow. It replaces
the ::set_scroll_adjustment signal. The scrollable interface
also has ::min-display-width/height properties that can be
used to control the minimally visible part inside a scrolled window.
2010-10-22 11:03:45 +02:00
Christian Dywan
5862075e9d
comboboxtext: Add gtk_combo_box_text_remove_all()
...
https://bugzilla.gnome.org/show_bug.cgi?id=324899
2010-10-21 14:30:11 +02:00
Matthias Clasen
596da84312
Make GtkEntry a no-window widget
...
Use input-only windows for capturing input, and just draw onto
the parent window. This allows themes to make entries with rounded
corners. Patch by Boram Park.
https://bugzilla.gnome.org/show_bug.cgi?id=632736
2010-10-21 13:17:33 +02:00
Javier Jardón
9f035742e3
gtkapplication: fix docs
2010-10-20 11:07:11 +02:00
Matthias Clasen
0219eea4d7
Remove GtkComboBoxEntry and the combo box text api
2010-10-20 11:02:03 +02:00
Javier Jardón
9b3ee686ea
Completely remove gtk_widget_hide_all
...
This completes commit d1a9d764a8
2010-10-19 20:25:33 +02:00
Javier Jardón
04900c8caa
docs: Update templates
2010-10-19 03:31:02 +02:00
Benjamin Otte
ff142ac2ef
gtk: Add gtk_widget_queue_draw_region()
...
People were requesting it and it mirrors the behavior of GdkWindow.
2010-10-18 19:22:44 +02:00
Javier Jardón
f2ae6814e7
docs: Remove template about deprecated GtkItemFactory
2010-10-16 05:24:24 +02:00
Javier Jardón
45c463e376
GtkComboBoxText: Use gtk_combo_box_text_remove instead gtk_combo_box_text_remove_text
2010-10-16 02:07:38 +02:00
Matthias Clasen
50cbd23d5b
docs: cross-reference to GtkComboBoxText
2010-10-15 16:58:28 -04:00
Matthias Clasen
3e9bdf6fd9
Add docs for GtkComboBoxText
2010-10-15 16:58:27 -04:00
Javier Jardón
80d3f1fcda
docs: update OSX port project page
2010-10-15 20:55:32 +02:00
Alberto Garcia
8d05e74212
Make gtk_accelerator_get_default_mod_mask() return a GdkModifierType
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=313350
2010-10-15 14:46:22 -04:00
Matthias Clasen
921fc8807c
Deprecate gtk_init_add, gtk_remove_add and friends
...
This functions are going to be removed in GTK+ 3.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-10-15 14:13:32 -04:00
Colin Walters
18578b33c5
Add boxed type and constructor
...
This allows bindings to sanely construct these.
https://bugzilla.gnome.org/show_bug.cgi?id=632095
2010-10-15 13:54:37 -04:00
Matthias Clasen
f87023d8ee
Forgotten file
2010-10-15 13:07:08 -04:00
Matthias Clasen
28cb8583c3
docs: move some tutorial content to the reference
...
We add a "Getting started" chapter that will grow into a
(hopefully) non-outdated, maintained tutorial. For now, it
includes two minimal examples by xincluding them.
2010-10-15 13:02:50 -04:00
Emmanuele Bassi
f085c8b272
docs: Move the introduction of the tutorial in the reference
...
The tutorial should just go away, but some of its contents can be moved
to the API reference as chapters.
https://bugzilla.gnome.org/show_bug.cgi?id=632059
2010-10-15 13:02:50 -04:00
Matthias Clasen
56e797397b
Improve GtkBox and GtkTable docs a bit
...
This adds some details gleaned from the tutorial, before its
impending demise.
2010-10-15 10:58:35 -04:00
Tristan Van Berkom
9612c64817
Deprecate GtkComboBoxEntry in favor of added properties to GtkComboBox
...
GtkComboBox now sports a construct-only "has-entry" property which
decides if it uses a GtkEntry to allow additional user input. Also
it has a new "entry-text-column" to fetch strings for the entry
from the model.
This patch deprecates the GtkComboBoxEntry and updates the rest of GTK+
to use the new semantics on GtkComboBox instead.
GtkComboBoxEntry will be removed altogether before GTK+ 3, in a
later commit.
2010-10-13 21:52:27 -04:00
Matthias Clasen
7c8ee80c5a
Add new API to docs and symbol list
2010-10-13 11:24:56 -04:00
Matthias Clasen
b36819957f
Remove GtkWrapBox from the docs, too
2010-10-13 10:21:04 -04:00
Tristan Van Berkom
e3cc39cb98
Removed all traces of GtkWrapBox from GTK+.
2010-10-13 22:26:44 +09:00
Matthias Clasen
f106d369a7
Don't link to old stuff
2010-10-12 01:10:32 -04:00
Matthias Clasen
5a6ea62125
Add a missing close tag
2010-10-12 01:05:39 -04:00
Matthias Clasen
b23dc8477f
Remove a note about GTK 1.2 api
2010-10-12 00:57:13 -04:00
Matthias Clasen
6899956770
Reorder some sections
2010-10-12 00:47:49 -04:00
Matthias Clasen
cf1745a935
Remove mentions of dialog separator from the docs
2010-10-12 00:38:04 -04:00
Matthias Clasen
82712a150a
Some documentation updates
2010-10-12 00:33:38 -04:00
Javier Jardón
c2ab54a31f
docs: Move documentation do inline comments: GtkContainer
2010-10-11 05:13:45 +02:00
Javier Jardón
ee58c6c37d
docs: Move documentation to inline comments: GtkScrolledWindow
2010-10-11 02:17:08 +02:00
Matthias Clasen
f8490e425f
Add a migration guide section about resize grips
2010-10-08 02:18:15 -04:00
Matthias Clasen
b04bceb47e
Remove resize grip handling from GtkStatusbar
...
We remove the resize grip from GtkStatusbar, but keep the code
that makes the content avoid the grip, and adapt it to GtkWindow
grips.
The gtk_status_bar_set/get_has_resize_grip() functions and related
properties are removed.
2010-10-08 02:14:19 -04:00
Matthias Clasen
f6347baf64
Add resize grips to GtkWindow
...
Allow any window to display a resize grip, in the south-east or
south-west corner, depending on text direction. This is implemented
as a shaped window that gets overlayed on top of whatever content
is there. We add api that allows widgets to avoid the resize grip,
if desired.
The ::has-resize-grip property controls if a window may display
a resize grip. It will only be displayed if the window is resizable
and not maximized.
The size and visual appearance of the resize grip is under theme
control, using the resize-grip-width/height style properties and
the paint_resize_grip style function.
2010-10-08 02:14:10 -04:00
Javier Jardón
cc0ada40b5
docs: reword GtkAdjustment short description
2010-10-05 22:55:08 +02:00
Javier Jardón
5a30dad531
docs: Move documentation to inline comments: GtkComboBox
2010-10-04 02:37:42 +02:00
Javier Jardón
bbd80b671a
docs: Move documentation to inline comments: GtkNotebook
2010-10-03 20:21:48 +02:00
Javier Jardón
c4705377f4
docs: Latest 2.x release will be 2.24, not 2.22
2010-10-03 04:59:23 +02:00
Javier Jardón
2a9d299aa3
docs: Use gtk_widget_get_preferred_size() instead gtk_size_request_get_preferred_size()
...
GtkSizeRequest interface is now merged in GtkWidget
2010-10-03 03:42:31 +02:00
Garrett Regier
78bd97bfbe
docs: Move documentation to inline comments: GtkEntryBuffer
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=617320
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-10-03 01:21:38 +02:00
Javier Jardón
ccaf842919
docs: Move documentation to inline comments: GtkTooltip
2010-10-03 00:59:39 +02:00
Javier Jardón
3846988211
docs: Move documentation to inline comments: GtkToolbar
2010-10-03 00:30:25 +02:00
Garrett Regier
5fcf06bb91
docs: Move documentation to inline comments: GtkComboBoxEntry
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=617308
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-10-02 22:39:35 +02:00
Matthias Clasen
fc2da1a137
Migration guide: Add an example for creating custom cursors
2010-10-01 14:54:11 -04:00
Matthias Clasen
86665897db
Revert an erroneous change
2010-10-01 13:46:39 -04:00
Matthias Clasen
0bca60fdd3
GTK docs: various fixups
2010-10-01 13:05:12 -04:00
Javier Jardón
b072ea220c
Remove unneded casts
...
As gtk_adjustment_new() returns a GtkAdjustment* now
https://bugzilla.gnome.org/show_bug.cgi?id=630731
2010-09-29 01:18:10 +02:00
Benjamin Otte
948768c708
API: remove gtk_window_set_visual()
...
gtk_widget_set_visual() exists now and can be used instead.
This reverts commit 59b227e123
.
2010-09-28 19:13:24 +02:00
Benjamin Otte
5ac6234815
API: gtk: Add gtk_widget_set_visual()
...
It turns out that the previous handling of just providing a way to set
visuals just on toplevels was not sufficient. In particular it
complicated the various implementations of the tray icon specification.
This patch reintroduces gtk_widget_set_visual() which behaves very
similar to GTK2's gtk_widget_set_colormap().
A future commit will remove the gtk_window_set_visual() function.
2010-09-28 19:11:21 +02:00
Matthias Clasen
87e29c99d7
Add a migration guide section on GtkObject
2010-09-26 22:29:33 -04:00
Matthias Clasen
b81de973af
Remove GtkObject from the docs
2010-09-26 22:18:46 -04:00
Matthias Clasen
f53ad33994
Remove GtkObject completely
2010-09-26 22:18:19 -04:00
Javier Jardón
945e97e505
Move documentation to inline comments: GtkPaperSize
2010-09-27 03:49:49 +02:00
Javier Jardón
e267ed84db
Move documentation to inline comments: GtkAccelMap
2010-09-27 02:56:25 +02:00
Matthias Clasen
aa8561aac2
Add a missing end tag
2010-09-26 20:42:07 -04:00
Matthias Clasen
b522a1b367
Migration guide: Add an example for colormap -> visual
2010-09-26 15:11:46 +02:00
Matthias Clasen
d3a90eae72
Expand the migration guide
...
This commit add some text about mult-window ::draw implementations,
pointing out the gtk_cairo_should_draw_window() and
gtk_cairo_transform_to_window() convenience functions.
2010-09-26 15:11:46 +02:00
Benjamin Otte
0795f1e0c9
API: Add gtk_cairo_transform_to_window()
...
The function reverses the transform that GTK does before emitting a draw
event. So we can use it in "old" widgets to revert the coordinate system
properly.
2010-09-26 15:11:45 +02:00
Benjamin Otte
d9c9259861
Move GtkSizeRequest into GtkWidget
...
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.
Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.
So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.
The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
2010-09-26 15:11:45 +02:00
Matthias Clasen
f3ccf2fccf
Add gtk_cairo_should_draw_window to the docs
2010-09-26 15:11:43 +02:00
Matthias Clasen
b7027d778c
Docs: start migration guide additions
2010-09-26 15:11:43 +02:00
Benjamin Otte
b89920e203
API: Add gtk_widget_draw()
...
And here's the final patch that all the previous patches were about.
2010-09-26 15:11:43 +02:00
Benjamin Otte
9aa4f417d0
API: Remove gtk_container_propagate_expose()
...
Also, move the documentation to its replacement
gtk_widget_propagate_draw().
2010-09-26 15:11:42 +02:00
Benjamin Otte
f5a10b05b5
API: ruler: Remove private ruler draw functions from header
2010-09-26 15:11:34 +02:00
Benjamin Otte
9507670db4
API: Add API to query width and height when rendering
...
The functions are gtk_widget_get_allocated_width() and
gtk_widget_get_allocated_height().
They are currently identical to using width/height of
gtk_widget_get_allocation(), but are introduced for ease of use (no need
to use a custom struct) and to free people from having to think about
allocation.x and allocation.y (which is where the origin of the cairo
context in GtkWidget::draw is located).
2010-09-26 15:11:34 +02:00
Benjamin Otte
3607a4c082
API: Remove setters and getters for default colormaps
...
This removes:
gtk_widget_set_default_colormap()
gtk_widget_get_default_colormap()
gtk_widget_get_default_visual()
Colormaps are gone, and the default visual is the system visual of the
default screen.
2010-09-26 15:11:32 +02:00
Benjamin Otte
c51e8bd9e5
API: Remove colormap setting and getting from GtkWidget
...
gtk_widget_get_colormap() and gtk_widget_set_colormap() are gone. They
are replaced by visuals.
2010-09-26 15:11:32 +02:00
Benjamin Otte
59b227e123
window: Keep track of own visual
...
Add gtk_window_set_visual() and a "visual" property. This allows
changing the window visual to the rgba one and other awesome things
(like implementing the trayicon spec).
2010-09-26 15:11:32 +02:00
Benjamin Otte
b479ff9cb5
API: Remove gtk_widget_push_colormap()
...
And of course, gtk_widget_pop_colormap() is gone, too.
No replacement is necessary, the function is basically unused.
2010-09-26 15:11:31 +02:00
Benjamin Otte
332652f702
API: Change offscreen windows to use a cairo_surface_t
...
This requires changes to all the offscreen surface getters that used to
return a GdkPixmap before.
2010-09-26 15:11:29 +02:00
Benjamin Otte
ca8a835874
API: Remove gtk_widget_get_snapshot()
...
It will be replaced with gtk_widget_draw().
2010-09-26 15:11:11 +02:00
Benjamin Otte
3dfb47bc3c
API: Add gtk_drag_set_icon_surface()
...
The function is supposed to replace gtk_drag_set_icon_pixmap().
2010-09-26 15:03:00 +02:00
Benjamin Otte
806a7239ae
widget: shape_combine_mask => shape_cobine_region
...
Replace gtk_widget_shape_combine_region() with
gtk_widget_shape_combine_mask() and
gtk_widget_input_shape_combine_region() with
gtk_widget_input_shape_combine_mask().
As GdkBitmap is going away, and the region equivalents already exist,
this seems like pretty much the default step to take.
Includes code to fix up the users.
2010-09-26 15:02:59 +02:00