Benjamin Otte
db47dd6197
API: make gtk_tree_view_create_row_drag_icon() return a cairo_surface_t
...
GdkPixmap is going to die!
2010-09-26 15:04:02 +02:00
Benjamin Otte
f085bc67cd
treeview: Convert GtkTreeViewColumn rendering to Cairo
2010-09-26 15:03:01 +02:00
Benjamin Otte
b259dd9aba
iconview: Port to Cairo rendering
2010-09-26 15:03:01 +02:00
Benjamin Otte
e9dd3dc46a
cellview: Port to Cairo rendering
2010-09-26 15:03:01 +02:00
Benjamin Otte
42947e3cdc
API: Add gtk_cell_renderer_render_cairo()
...
It's like gtk_cell_renderer_render(), just cooler.
2010-09-26 15:03:01 +02:00
Benjamin Otte
e31e77eeb8
API: Change cellrenderer->render vfunc to take a cairo_t
...
Also constify the rectangle arguments. They were const anyway.
2010-09-26 15:03:01 +02:00
Benjamin Otte
4138e86ad4
testview: Convert _gtk_text_util_create_rich_drag_icon() to use surfaces
2010-09-26 15:03:01 +02:00
Benjamin Otte
331999d84d
textview: API: change gtk_text_layout_draw() to take a cairo_t
...
This simplifies the API a lot and allows more magic to happen later.
2010-09-26 15:03:01 +02:00
Benjamin Otte
ac48f2330d
API: Add gtk_cairo_draw_insertion_cursor()
...
For now just add it instead of replacing the current function. In the
end, this one should probably be renamed to
gtk_draw_insertion_cursor() and the current
gtk_draw_insertion_cursor() should die.
2010-09-26 15:03:00 +02:00
Benjamin Otte
3d340d7449
text: Make _gtk_text_util_create_drag_icon() return a surface
...
And change its callers to handle it that way.
2010-09-26 15:03:00 +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
0d9d599b50
menu: set tearoff background using new background API
2010-09-26 15:03:00 +02:00
Benjamin Otte
134683c9be
Use gdk_window_set_background_pattern() to set parent-relative bakground
2010-09-26 15:03:00 +02:00
Benjamin Otte
20d1030823
iconview: No need to set background
2010-09-26 15:03:00 +02:00
Benjamin Otte
84c77c0be3
style: Rewrite background handling to use cairo_pattern_t
2010-09-26 15:03:00 +02:00
Benjamin Otte
603a840de9
trayicon: Use new gdk_window_set_background_pattern() API
2010-09-26 15:03:00 +02:00
Benjamin Otte
5e4aaba482
gtk: Remove calls that try to set GDK_NO_BG on their windows
...
These calls aren't necessary anymore.
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
Benjamin Otte
8b4d50dd1d
treeview: Port to gdk_window_shape_combine_region()
...
gdk_window_shape_combine_mask() is going away. It's using a GdkPixmap
and falls back to gdk_window_shape_combine_region() anyway.
2010-09-26 15:02:59 +02:00
Benjamin Otte
0178bff5c0
colorsel: Use gdk_cursor_new_from_pixbuf() to create the cursor
...
gdk_cursor_new_from_pixmap() is about to die.
2010-09-26 15:02:59 +02:00
Benjamin Otte
37a62e9367
window: Remove call to gdk_window_set_icon()
...
Also remove all the functions taking care of it. This is now handled by
the X11 backend directly. And the other backends ignored this function
anyway.
2010-09-26 15:02:59 +02:00
Benjamin Otte
be1d190b2e
style: Convert draw_spinner vfunc to Cairo version
2010-09-26 15:02:59 +02:00
Benjamin Otte
81f15cf908
style: Convert draw_resize_grip vfunc to Cairo version
...
Includes removal of now unused draw_simple_image_no_cairo() function
from pixbuf engine.
2010-09-26 15:02:59 +02:00
Benjamin Otte
d80e2897b9
style: Convert draw_layout vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
ff6e75adbc
style: Convert draw_expander vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
e5e228debf
style: Convert draw_handle vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
f0fd2e3a6e
style: Convert draw_slider vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
24304a2e93
style: Convert draw_focus vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
4d4871203e
style: Convert draw_extension vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
45a2656e32
style: Convert draw_box_gap vfunc to Cairo version
...
Includes removal of now unused draw_gap_image_no_cairo() function from
pixbuf theme engine.
2010-09-26 15:02:58 +02:00
Benjamin Otte
3f7b36d5cc
style: Convert draw_shadow_gap vfunc to a Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
e1544bcc7f
style: Convert draw_tab vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
f2dc8a26ed
style: Convert draw_option vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
fed19bcf50
style: Convert draw_check vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
bea727a142
style: Convert draw_flat_box vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
8c325f0d60
style: Convert draw_shadow vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
e59cbd5605
style: Convert draw_vline vfunc to a Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
abaecf4308
style: Convert draw_hline vfunc to Cairo version
2010-09-26 15:02:58 +02:00
Benjamin Otte
07662f288d
API: change gtk_style_apply_default_background()
...
It now takes a cr to apply the default background to. And it no longer
takes a set_bg parameter
2010-09-26 15:02:57 +02:00
Benjamin Otte
eda14b2d47
notebook: Fix compilation warnings
...
A quark is not a pointer.
2010-09-26 15:02:00 +02:00
Benjamin Otte
bbcb737b86
menu: Remove unused variable
2010-09-26 15:01:52 +02:00
Matthias Clasen
5aad25aa42
Nuke the 'Types' section from the docs
2010-09-24 23:03:51 -04:00
Matthias Clasen
8b5bc9669b
GtkOffscreenWindow: shorten doc title
2010-09-24 22:13:42 -04:00
Matthias Clasen
a98127fc12
GtkScale: Remove links from doc section title
2010-09-24 21:52:58 -04:00
Matthias Clasen
92ededc9b4
GtkMenu: Add a destroy notify to gtk_menu_popup_for_device
...
This is necessary so language bindings can use gtk_menu_popup_for_device()
as a 'full' variant of gtk_menu_popup().
http://bugzilla.gnome.org/show_bug.cgi?id=623664
2010-09-24 13:52:49 -04:00
Matthias Clasen
cc9ac5b7ea
Update docs of GtkAboutDialog and GtkLinkButton
...
Remove references to global hooks from the docs. Also move remaining
docs inline, and remove the templates.
2010-09-24 13:41:29 -04:00
Matthias Clasen
bc6a3f8cd8
DND: don't use uninitialized memory
...
The dest_x/y members of GtkDragDestInfo were not initialized.
At the same time, switch some of the small temporary structs
to g_slice allocation.
https://bugzilla.gnome.org/show_bug.cgi?id=630532
2010-09-24 13:23:47 -04:00
Matthias Clasen
1773b6d50a
GtkAboutDialog: correct a since tag
2010-09-24 12:43:55 -04:00
Christian Dywan
7dde4d93ad
gtkeditable: move documentation to inline comments
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=617316
2010-09-24 18:42:44 +02:00
Florian Müllner
93fd2b44c3
introspection: Fix typo in annotation
2010-09-24 18:26:34 +02:00
Matthias Clasen
26c93dc04b
GtkAboutDialog: escape mail addresses
...
This got lost when converting to the ::activate-link signal.
2010-09-24 12:02:37 -04:00
Matthias Clasen
94e9a35a16
Another since tag
2010-09-24 11:31:23 -04:00
Matthias Clasen
50971f704c
Correct since tags
2010-09-24 11:29:17 -04:00
Matthias Clasen
3c19eea34b
GtkNotebook: replace group by group_name
...
Dealing with bare pointers is problematic for language bindings,
using interned strings is much more straightforward and more than
good enough for what is needed here.
http://bugzilla.gnome.org/show_bug.cgi?id=630521
2010-09-24 11:13:30 -04:00
Matthias Clasen
b47b1428b8
GtkNotebook: remove gtk_notebook_set_window_creation_hook
...
http://bugzilla.gnome.org/show_bug.cgi?id=630521
2010-09-24 11:10:51 -04:00
Johan Dahlin
8736d31a04
Fix a couple of broken annotations
2010-09-23 17:57:16 -03:00
Matthias Clasen
76d7331578
Fix the annotation of gtk_tree_view_create_row_drag_icon
2010-09-23 13:17:52 -04:00
Matthias Clasen
84bae92928
fix a typo in the gtk_widget_render_icon annotations
2010-09-23 13:17:52 -04:00
Tristan Van Berkom
aad77642be
Fixed GtkWrapBox base requests for ALIGNED and FREE mode
...
Problems were; in FREE mode there was a simple typo where we were
repeatedly checking the size of the same item in get_largest_line_length(),
and in ALIGNED mode we were assuming something like HOMOGENEOUS which
was incorrect; added get_largest_aligned_line_length() which properly
adds up the collective max sizes of every index in the line.
2010-09-22 16:06:42 +09:00
Tristan Van Berkom
c9ca4beb35
Fixed gtk_distribute_natural_allocation() to place the g_newa *after* g_return_if_fail() guards.
2010-09-22 16:06:42 +09:00
Matthias Clasen
b0713fb3bb
Remove url hooks from GtkAboutDialog and GtkLinkButton
...
With gtk_show_uri, global configurability of link activation has
moved to GIO/gvfs. For local overrides, GtkLinkButton has the ::clicked
signal, and GtkAboutDialog gets an ::activate-link signal.
Bug 339745
2010-09-22 00:36:13 -04:00
Tristan Van Berkom
0e1bba6ef5
Fixed GtkViewport to set adjustments properly for width-for-height widgets
...
Make GtkViewport calculate widget-for-height as well as height-for-width
cases when setting the scroll adjustment values, also base the scrolling
on the minimum size instead of the natural size in the interest of showing
as much content as possible when the viewport is smaller than the natural
size.
2010-09-22 12:50:06 +09:00
Javier Jardón
fb62d6105f
Do not disable deprecation guards
2010-09-22 04:21:13 +02:00
Matthias Clasen
0f88b6808c
GtkScrolledWindow: change default policy to 'automatic'
...
This change was proposed in bug 468672.
2010-09-21 20:14:46 -04:00
Cody Russell
27bc88f7c2
Merge branch 'notebooks-without-mouse-scrolling'
2010-09-21 16:19:10 -05:00
Cody Russell
ad48f4d52b
Remove mouse scrolling from GtkNotebook tabs. Bug #630226 .
2010-09-21 16:18:22 -05:00
Tristan Van Berkom
e976abe825
Split up GtkWrapBox:spreading property into two orientation specific properties.
...
Now GtkWrapBox has "horizontal-spreading" and "vertical-spreading" options,
before GtkWrapBox never spread out children across the opposing orientation
(i.e. it never grew "lines" larger then their natural width, they would
act as if set to GTK_WRAP_BOX_SPREAD_START, now they are completely configurable).
2010-09-21 22:00:54 +09:00
Matthias Clasen
e0aa12eb0a
Tons of transfer annotations
2010-09-21 00:18:11 -04:00
Tristan Van Berkom
ca251cf1d4
Reduced overall SizeRequestCache size
...
This patch changes the 'age' counting previous approach taken
verbatim from clutter and changes it for a counter of validated
caches and an index to the last cached value which we use to
round-robin through the cache if ever a widget is requested
for more than 3 contextual sizes (cache is reduced by 3 * sizeof (int)
per widget private data).
2010-09-21 12:57:27 +09:00
Matthias Clasen
2ddfaeddad
More error trap cleanups
...
Remove syncs in front of gdk_error_trap_pop() calls, and convert
gdk_error_trap_pop() calls to gdk_error_trap_pop_ignored() in gdk.
2010-09-20 16:40:14 -04:00
Javier Jardón
743202261a
Add deprecation guards for gtk_cell_renderer_get_size()
2010-09-19 17:47:09 +02:00
Matthias Clasen
1dcd209cdd
Fix a few dubious return values in return_if_fail calls
...
These were pointed out in bug 623958.
2010-09-19 01:58:46 -04:00
Matthias Clasen
8e117b6f3a
Add a rename-to annotation for gtk_tree_path_get_indices_with_depth
...
https://bugzilla.gnome.org/show_bug.cgi?id=621590
2010-09-19 01:15:17 -04:00
Matthias Clasen
6b4992d647
Point to the new GtkWidget align and margin properties
2010-09-19 01:01:09 -04:00
Matthias Clasen
35e0ad72e4
Another fix for the initial focus heuristic
...
We were trying to avoid selecting a label initially, but the code
was sometimes leaving labels selected when the focus eventually
ended up on a button instead.
2010-09-19 00:54:50 -04:00
Matthias Clasen
92411d2c84
Fix an annotation
2010-09-19 00:22:37 -04:00
Matthias Clasen
1243b4861c
Use gdk_error_trap_pop_ignore() where appropriate
2010-09-18 23:17:31 -04:00
Johan Dahlin
19cab17c22
Add a couple of missing annotations
2010-09-18 13:43:06 -03:00
Johan Dahlin
60c920f228
[introspection] Do not parse private sources
...
Private sources include private headers which we may not be able
to parse properly since some of them use unsupported syntax such
as objective-c.
2010-09-18 13:43:00 -03:00
Johan Dahlin
8c3900f420
[introspection] Do not include internal api
...
GtkTextLayout is internal and unsupported, do not include
it in the gir
2010-09-18 13:28:52 -03:00
Javier Jardón
15a5a231fc
Do not use deprecated gtk_cell_renderer_get_size()
...
Use gtk_cell_size_request_get_size() instead
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629785
2010-09-17 19:59:56 +02:00
Javier Jardón
efbf04236e
Change GtkEditable typedef from GtkEditableClass to GtkEditabeInterface
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=323904
2010-09-17 19:57:09 +02:00
Matthias Clasen
6e9349d858
Fix a trivial typo in a doc comment
...
https://bugzilla.gnome.org/show_bug.cgi?id=629733
2010-09-17 10:30:37 -04:00
Matthias Clasen
54077d61e2
Add some element-type annotations to gtk apis
2010-09-17 09:26:39 -04:00
Matthias Clasen
2f78aa3024
Rename h/v-align to h/valign
...
And adjust the getters and setters to match. Also include some
documentation by Havoc Pennington about adjustment of size requests
and allocations.
2010-09-15 20:14:56 -04:00
Matthias Clasen
b9f66d9197
Add docs for new API
2010-09-15 13:52:52 -04:00
Matthias Clasen
3e91238071
Add new api to gtk.symbols
2010-09-15 13:49:00 -04:00
Matthias Clasen
38e09dcbb1
Use gint instead of in for local consistency
2010-09-15 13:22:51 -04:00
Tor Lillqvist
57e0b9a979
Fix build on Windows
...
No idea of the widget embedding crack has worked in recent versions,
even less now. But at least it now compiles.
2010-09-15 14:19:40 +03:00
Tristan Van Berkom
1110375f24
spinner: Dont inherit from GtkDrawingArea part 2.
...
Seems commit 7b42d4feda
makes
GtkSpinner a direct subclass of GtkWidget but forgets to
update the header file to include gtkwidget.h instead and
declare the instance and class structures properly (assuming
this was just a missed file in the commit).
2010-09-15 16:52:29 +09:00
Javier Jardón
f5a06df3dc
spinner: timeout should add/remove in map/unmap, not realize/unrealize.
...
Otherwise hiding the spinner won't stop it
2010-09-15 04:00:55 +02:00
Javier Jardón
8345760fdb
gtkentry: remove unnneded check in map/unmap functions
2010-09-15 03:28:24 +02:00
Javier Jardón
e3a8e29a6c
Add deprecation guards for gtk_widget_size_request()
2010-09-15 03:14:34 +02:00
Javier Jardón
b140884fec
Use gtk_size_request_get_size() instead deprecated gtk_widget_size_request()
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629598
Signed-off-by: Javier Jardón <jjardon@gnome.org>
Signed-off-by: Tristan Van Berkom <tristanvb@openismus.com>
2010-09-15 03:02:58 +02:00
Tristan Van Berkom
8bfb1e0ab8
Fixed GtkSizeGroups to adjust both minimum and natural requisitions
...
Originally the GtkSizeRequestIface patches left GtkSizeGroup working
only by bumping the minimum sizes - this commit fixes size groups to take
both minimum and natural requests into account.
2010-09-15 04:04:02 +09:00
Javier Jardón
ab4ba69cc8
Add deprecation guards for gtk_cell_view_get_size_of_row()
2010-09-14 20:40:34 +02:00
Benjamin Otte
7b42d4feda
spinner: Don't inherit from drawing area
...
A drawing area is not meant to be subclassed from. It also doesn't
provide any feature a spinner would need either.
2010-09-14 01:28:01 +02:00
Benjamin Otte
032d3f0ada
spinner: Implement the size request interface
...
Doing size requests in expose is broken.
2010-09-14 01:25:07 +02:00
Benjamin Otte
c22b80949d
spinner: Move G_DEFINE_TYPE() below function definitions
...
Also remove redundant double definition.
2010-09-14 01:19:48 +02:00
Benjamin Otte
419e1548ab
wrapbox: Lookie, an unused variable
2010-09-14 01:17:17 +02:00
Benjamin Otte
5ba6295a10
spinner: Define desired size at top of file
...
No magic numbers in the code please
2010-09-14 01:09:53 +02:00
Matthias Clasen
ff29972a48
GtkWrapBox: let GtkContainer handle border width
2010-09-13 18:47:59 -04:00
Matthias Clasen
b64e91adf0
Remove fill options from GtkWrapBox
...
GtkWidget alignment properties make this unnecessary in new containers.
2010-09-13 18:47:59 -04:00
Matthias Clasen
0e484a83d1
Remove padding from GtkWrapBox
...
GtkWidget margins make this unnecessary in new containers.
2010-09-13 18:47:58 -04:00
Matthias Clasen
8204fe6036
GtkBox: let GtkContainer handle border width
2010-09-13 18:47:58 -04:00
Javier Jardón
97ffc36540
Add deprecation guards for gtk_widget_get_child_requisition()
2010-09-13 22:37:11 +02:00
Milan Bouchet-Valat
e02252cdd6
bgo#486839 - Fix path bar size group in the file chooser
...
Since the location button is hidden in save mode, we need to add the
path bar to the size group too. The location button still has to be in
the group though, because it's larger than the path bar (when
shown). Instead of using the recent/search icons, add their hboxes so
that themed widget spacings don't introduce variations.
2010-09-13 14:57:23 -05:00
Javier Jardón
9e81022bf6
Use gtk_size_request_get_size() instead deprecated gtk_widget_get_child_requisition()
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=629177
2010-09-13 21:26:01 +02:00
Tristan Van Berkom
153bfacde0
Fixed GtkWrapBox to allocate variable row AND column heights when in ALIGNED mode
...
With this new approach at request and allocate time, the average child size
is used to determine a good guess at how many columns will fit the box
width; afterwards extra columns are appended and checked to fit.
Then the row heights are calculated based on height-for-width of each
child in the row which now may have individual widths.
2010-09-14 02:32:36 +09:00
Tristan Van Berkom
a79637f081
Changed GtkWrapBox code to avoid a growing GArray of a known size.
2010-09-14 02:32:36 +09:00
Kristian Rietveld
a79d6676ac
Update gtkstyle.c to account for removal of row-ending-details
...
The detail strings now have more "detail" by default, so gtkstyle.c
needed to be updated to properly handle this. Tests like testtreeview,
testtreesort now have proper background drawing again.
This strncmp trick was the best I could think of so quickly, if anybody
has an idea to do this in a better way, let me know.
2010-09-13 17:13:21 +02:00
Kristian Rietveld
ecaa37529c
Mark declaration of symbol _gtk_text_unknown_char_utf8 as extern
...
So that the symbol is not re-created each time the header is included.
The symbol is defined in gtktexttypes.c already.
2010-09-13 16:47:14 +02:00
Kristian Rietveld
31cd439385
Use accessor functions to access GtkWidget
2010-09-13 16:39:55 +02:00
Kristian Rietveld
0fc5433753
Update for GDK key name changes
2010-09-13 16:27:08 +02:00
Havoc Pennington
474f80442a
Add margin and alignment properties to GtkWidget
...
h-align = START,END,CENTER,FILL
v-align = START,END,CENTER,FILL
margin-left,right,top,bottom
margin
These should obsolete all such similar properties on
layout containers, GtkMisc, GtkAlignment, GtkContainer::border-width
Margin is outside the size request.
If margin were not outside the set_size_request() it would not work the
same way as container-supplied (child property) padding.
Conceptually set_size_request() forces the value from the subclass
(the original unadjusted request) and then we go on to adjust
the request further by adding the margin.
2010-09-12 21:47:10 -04:00
Havoc Pennington
85735112d7
GtkButton: let GtkContainer handle border width
2010-09-12 21:47:10 -04:00
Havoc Pennington
daebca19da
add gtk_container_class_handle_border_width() so subclasses can ignore border_width
...
A subclass calls gtk_container_class_handle_border_width()
in its class_init
This marks the subclass as expecting GtkContainer to deal with
border width automatically, which GtkContainer then does.
2010-09-12 21:47:10 -04:00
Havoc Pennington
cd2a19a68d
GtkWidget: add adjust_size_request adjust_size_allocation virtual funcs
...
Use these new methods to handle set_size_request (aka aux_info)
inside gtkwidget.c, instead of having external code mess with it.
The virtual functions can be used for other purposes in the
future. For example, GtkContainer::border_width could be
automatically implemented for all container subclasses.
2010-09-12 21:47:10 -04:00
Havoc Pennington
9debfe243f
Use _gtk_widget_get_aux_info_or_defaults() when possible in gtkwidget.c
...
Did not update uses in other files because the plan is to
get rid of those other uses anyhow. So don't want to make
this function available in the header.
2010-09-12 21:47:10 -04:00
Havoc Pennington
cf68c2636a
add _gtk_widget_get_aux_info_or_defaults()
...
This is better than peeking aux info then testing != NULL
in several ways:
- it returns const aux info so if we don't create we can't write
- it ensures that the default we assume if aux_info is NULL is
the same as the default we set if we've created the aux info
- it avoids typing in != NULL checks
2010-09-12 21:47:10 -04:00
Havoc Pennington
c29f0a1392
Fix more SizeRequest implementations to avoid recursive calls to wrapper API
...
GtkFrame, GtkComboBox, GtkExpander, GtkMenu, GtkWrapBox
These are all the examples I could find so far.
https://bugzilla.gnome.org/show_bug.cgi?id=628829
2010-09-12 21:47:10 -04:00
Havoc Pennington
8960d64cc6
Warn about recursively calling size req wrappers on the same object and orientation
...
We are not re-entrant and there is no reason for widgets to
do this, most likely they'll just get unexpected bugs because
the wrappers may modify the request.
Computing the request should logically rely only on the
widget itself, not on any adjustments caused by set_size_request,
size groups, and so forth.
https://bugzilla.gnome.org/show_bug.cgi?id=628829
2010-09-12 21:47:09 -04:00
Havoc Pennington
cf6eb47758
default impls of width_for_height,hfw should chain directly not use wrapper API
...
In GtkBin and GtkWidget we tried to provide handy defaults that
call get_width if there's no get_width_for_height and
get_height for get_height_for_width.
However, they used the wrapper API on GtkSizeRequest instead of
chaining directly to the other method implementation.
This could result in all kinds of surprising behavior, for example,
get_width_for_height() would now already include the effects of set_size_request().
If nothing else it's inefficient. But it's just conceptually wrong,
because to chain to another implementation, we should call the other
implementation, not call a wrapper around the other implementation
(when we're already inside a previous invocation of the wrapper,
i.e. compute_size_for_orientation() ends up reinvoking itself
in the same orientation on the same object which it pretty
likely isn't intending to do)
https://bugzilla.gnome.org/show_bug.cgi?id=628829
2010-09-12 21:47:09 -04:00
Havoc Pennington
b3079c0d18
Use gint16 for GtkBorder
...
32K of border ought to be enough for any pixel dimensions. At least
until screens are so huge we start using doubles.
This saves a nice 64 bits of space when we have a GtkBorder
stored somewhere.
Signed integers are used to avoid surprising unsigned math
issues. Just search GTK's whole git log from inception
for "unsigned" if you want to find any number of commits
fixing signed/unsigned bugs.
https://bugzilla.gnome.org/show_bug.cgi?id=629387
2010-09-12 21:47:09 -04:00
Javier Jardón
7e520d908a
Fix some compilation warnings
...
GScanner token field is declared as GTokenType instead a guint
See Glib bug: https://bugzilla.gnome.org/show_bug.cgi?id=627890
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=627962
2010-09-13 03:28:36 +02:00
Benjamin Otte
66e860b5d1
style: Fix drawing of insensitive text
...
When writing the original code I erroneously assumed that the current
point of the cairo context would be saved by cairo_save/restore(), but
of course the current point is part of the path and therefor isn't
saved.
Also do a cairo_new_path() before rendering any text so that we are sure
the text ends up at the right spot.
2010-09-12 16:00:05 +02:00
Javier Jardón
d3661589f4
gtk/gtkwidget.c: Use accessor functions to access GtkWindowGroup
2010-09-11 04:25:41 +02:00
Javier Jardón
ab248d7ca3
Revert "gtk/gtkmain.c: Use accessor functions to access GtkWindowGroup"
...
This reverts commit 65b9fc3e5b
.
2010-09-11 04:24:54 +02:00
Javier Jardón
65b9fc3e5b
gtk/gtkmain.c: Use accessor functions to access GtkWindowGroup
2010-09-11 03:34:01 +02:00
Javier Jardón
6eae25e0b0
GtkWindow: move public members to private structure
...
Signed-off-by: Christian Dywan <christian@twotoasts.de>
2010-09-11 02:22:28 +02:00
Matthias Clasen
149b84dacf
Really stop exporting text-related variables
2010-09-09 22:11:36 -04:00
Tristan Van Berkom
a6a036ce22
Adding note to docs of gtk_widget_set_window()
...
gtk_widget_set_window() does not add a reference to the
owned window... this is an exception to most gtk_foo_set_bar()
functions where as it acts as if it were named gtk_widget_take_window().
Adding note to the docs to avoid people giving the window to the
widget and naturally proceeding to unref the window.
2010-09-10 03:25:21 +09:00
Benjamin Otte
6624da6393
widget: Fix SEGV when no focus widget exists
2010-09-09 18:10:04 +02:00
Tristan Van Berkom
73ea777c33
Fixed GtkTextView & GtkIconView to consult it's true previous size request
...
Fixed issues in my previous patch for bug 626939 removing GtkRequisition
cache: these widgets monitor the previous requested size and decide whether
to queue a resize when the content changes based on it's prior request.
2010-09-09 17:19:18 +09:00
Tristan Van Berkom
843be48572
Moved GtkSizeRequest cache to GtkWidget->priv
...
Now that we have a private data installed directly on
the GtkWidget instance it makes no sense to cache the size
requests on widget qdata. This change will generally make
GTK+ memory less fragmented as well as significantly speed
up the size request process.
2010-09-09 17:19:18 +09:00
Tor Lillqvist
f76fddb8a7
Use accessor functions in Win32-only code
2010-09-09 11:09:55 +03:00
Tor Lillqvist
dd36afc207
Don't use the same name for a function that used to be a variable
...
Rename the gtk_major_version() etc functions I introduced yesterday to
start with gtk_get. Avoids misleading results in client programs whose
developers that don't notice the change or the compiler warnings, and
when recompiling against gtk3 then use the function addresses as the
version numbers.
2010-09-09 11:06:26 +03:00
Matthias Clasen
3bd93e5bfd
Remove GtkItem
...
With the demise of GtkList and GtkTree, it has GtkMenuItem as sole
derived class, and is not really adding any value as a separate class.
Its few useful features have been merged into GtkMenuItem.
Bug 629104
2010-09-08 23:38:09 -04:00
Javier Jardón
72ac2175e2
gtk/gtkhandlebox.c: Do not use gdk_window_get_deskrelative_origin()
...
This completes commit bd277fad50
2010-09-09 02:26:43 +02:00
Colin Walters
913cdf3be7
GDK: Prefix key names with KEY_
...
The keysyms create a lot of potential namespace conflicts for
C, and are especially problematic for introspection, where we take
constants into the namespace, so GDK_Display conflicts with GdkDisplay.
For C application compatiblity, add gdkkeysyms-compat.h which uses
the old names.
Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is
the gtkimcontextsimple.c, since porting that requires porting more
custom Perl code.
2010-09-08 18:51:44 -04:00
Mike Gorse
8fb5bc2583
Remove a duplicate variable
...
Bug#629110: gtk_spinner_accessible_get_type always returns null
2010-09-08 17:55:28 -04:00
Javier Jardón
a76d198508
GtkWidget: Move public members to private structure
2010-09-08 21:28:16 +02:00
Javier Jardón
efaed1b8f1
gtk/gtknotebook.c: use accessor functions to access GtkWidget
2010-09-08 21:13:04 +02:00
Javier Jardón
f8cfb895ed
gtk/gtkarrow.c: use accessor functions to access GtkWidget
2010-09-08 21:13:04 +02:00
Javier Jardón
d9e7680735
gtk/gtkpathbar.c: use accessor functions to access GtkWidget
2010-09-08 21:13:04 +02:00
Javier Jardón
a338d5dea5
gtk/gtkruler.c: use accessor functions to access GtkWidget
2010-09-08 21:13:04 +02:00
Javier Jardón
e4dc454f59
gtk/gtkseparator.c: use accessor functions to access GtkWidget
2010-09-08 21:13:04 +02:00
Javier Jardón
50ef420378
gtk/gtkhandlebox.c: use accessor functions to access GtkWidget
2010-09-08 21:13:04 +02:00
Javier Jardón
89e8f79f07
gtk/gtkiconview.c: use accessor functions to access GtkWidget
2010-09-08 21:13:04 +02:00
Javier Jardón
a48d28848e
gtk/gtkimage.c: use accessor functions to access GtkWidget
2010-09-08 21:13:03 +02:00
Javier Jardón
ec2f2c3daf
gtk/gtkmenu.c: use accessor functions to access GtkWidget
2010-09-08 21:13:03 +02:00
Javier Jardón
0993bc4d1c
gtk/gtkmisc.c: use accessor functions to access GtkWidget
2010-09-08 21:13:03 +02:00
Javier Jardón
29044f0f0e
gtk/gtkspinbutton.c: use accessor functions to access GtkWidget
2010-09-08 21:13:03 +02:00
Javier Jardón
5533264958
gtk/gtktextview.c: use accessor functions to access GtkWidget
2010-09-08 21:13:03 +02:00
Javier Jardón
d05d713068
gtk/gtktreeview.c: use accessor functions to access GtkWidget
2010-09-08 21:13:03 +02:00
Javier Jardón
2d0a655201
gtk/gtkwindow.c: Fix warning
...
Cast to GtkSizeRequest
This was added in
commit b654afcb48
2010-09-08 21:13:03 +02:00
Tor Lillqvist
87141cf4c8
Get rid of the rest of variables exported from libgtk
...
Especially the gtk_*_type ones in gtktexttypes.h were mentioned in
gtk.symbols presumably by accident. That header isn't even installed,
so no way can they be supposed to be public.
gtk_text_attr_appearance_type is from the installed but "semi-private"
gtktextlayout.h, so drop that one too from gtk.symbols for now.
The use of gtk_text_unknown_char_utf8 is bit of a mess. Code in a few
files knew implicitly that it is three bytes. Define a symbolic name
for the length of it instead. Add an exported function
gtk_text_unknown_char_utf8_gtk_tests_only() that returns a pointer to
it just for the sake of gtk/tests/textbuffer.c. Prefix the variable
with an underscore.
I doubt the usefulness of the test_utf8() in textbuffer.c. If it could
be dropped, gtk_text_unknown_char_utf8_gtk_tests_only() could be
dropped, too.
2010-09-08 21:31:34 +03:00
Tor Lillqvist
801875b805
Replace gtk_debug_flags with getter and setter functions
...
Preferrably should be made just into a local variable for libgtk like
_gdk_debug_flags for libgdk. But for now used by
gtk/tests/textbuffer.c and modules/printbackends/cups/gtkprintbackendcups.c.
2010-09-08 21:31:34 +03:00
Tor Lillqvist
cb24bcc613
Turn the gtk version and age variables into functions
...
Having variables exported from a DLL is slightly painful and
potentially error-prone on Windows, so let's try get rid of them now
when we can. Starting with these.
2010-09-08 21:31:33 +03:00
Javier Jardón
b654afcb48
gtk/gtkwindow.c: Use gtk_size_request_get_size() instead gtk_widget_get_requisition()
2010-09-08 19:40:51 +02:00
Tristan Van Berkom
9934007420
Completely removed requisition cache from GtkWidget instance structure.
...
Since we have a new mechanism for requesting sizes: GtkSizeRequestIface;
it makes no sense to maintain this cache on the GtkWidget structure...
removing the requisition cache however does not break the old "size-request"
signal which is there for backwards compatability reasons.
In any case widget->requisition should not have been accessed,
gtk_widget_get_child_requisition() would have been the correct way
to consult the cache.
This commit also deprecates the newly added gtk_widget_get_requisition()
API and makes it fallback on gtk_size_request_get_size().
2010-09-08 18:50:24 +02:00
Javier Jardón
bc366cef52
gtknotebook: Do not mention deprecated API
2010-09-08 17:46:11 +02:00
Javier Jardón
4a5e0a35b9
gtksocket: Remove mention to gtk_socket_steal() deprecated function
2010-09-08 17:14:37 +02:00
Colin Walters
319bc22c5c
gtk.symbols: Update expected ABI
2010-09-07 14:17:10 -04:00
John (J5) Palmieri
c78a23bdca
add annotations for tranfer and scope so that methods are exported by GI
2010-09-07 13:50:40 -04:00
John (J5) Palmieri
eeaf576316
add array annotation to gtk_builder_add_objects_from_string
2010-09-07 12:06:29 -04:00
John (J5) Palmieri
8a210673fb
add gtk_radio_button_join_group method for bindings
...
* this mirrors the committed change for gtk_radio_action_join_group in
commit 85b53969b2
* Due to object ownership issues it is impossible to correctly use
get_group/set_group from a GI binding
* join_group is safer because at the binding level it works with individual
GtkRadioButton objects and not with the list of objects that gets
modified in the library
https://bugzilla.gnome.org/show_bug.cgi?id=628935
2010-09-07 10:41:40 -04:00
Tristan Van Berkom
278957a5a4
Removed x/y/x_set/y_set from GtkWidgetAuxInfo
...
These members of GtkWidgetAuxData can no longer be set after
the removal of deprecated gtk_widget_set_uposition(), now removed
these members completely and removed the access to them from
gtk_widget_size_allocate().
2010-09-07 16:21:44 +09:00
Tristan Van Berkom
d5278b5994
Removed _gtk_window_reposition()
...
_gtk_window_reposition() was only some extra confusing code, internally
it only calls the public API gtk_window_move()... replaced calls to
_gtk_window_reposition() with direct calls to gtk_window_move() and
removed the redundant internal API (probably there only for some historical
reason).
2010-09-07 15:45:15 +09:00
Havoc Pennington
c50db9c208
Use a bitfield for Widget::private_flags, ::state, ::saved_state
...
This recovers 10 bits, since state and saved_state as uint8 both
wasted 5 bits. Now we can add 10 more flags.
Also, a possible future patch could just do 1-bit bitfields
for the private flags instead of using manual bit twiddling.
https://bugzilla.gnome.org/show_bug.cgi?id=628884
2010-09-07 00:13:11 -04:00
Matthias Clasen
3c5f9fd1a2
Remove use of ::has-separator property
2010-09-06 00:26:17 -04:00
Matthias Clasen
2f966e8418
Remove some unused enums
...
The GtkAnchorType and GtkVisibility enums are not used anywhere,
so remove them.
2010-09-05 23:55:47 -04:00
Havoc Pennington
88a90b8abb
Warn if a widget requests minimum size > natural size
...
Since this makes no sense and there's no reason we should
have to check for it elsewhere just in case some widget is
busted.
https://bugzilla.gnome.org/show_bug.cgi?id=628808
2010-09-05 21:46:22 -04:00
Havoc Pennington
d7d940c71e
Add more "reserved for expansion" fields to GtkWidgetClass
...
Only 3 were left. 3.x cycle may need more.
https://bugzilla.gnome.org/show_bug.cgi?id=628807
2010-09-05 21:42:35 -04:00
Murray Cumming
08ddea5069
GtkStatusIcon: Remove get/set_blinking() declarations from header.
...
This was apparently forgotten in
commit 18b47b6cd0
.
2010-09-04 13:18:09 +02:00
Benjamin Otte
d8f3a162c8
style: Use gtk_widget_get_state() for the entry background
...
New code sets the entry background to GTK_STATE_ACTIVE when it has focus
and the active color in the default theme looks rather bad.
2010-09-03 17:14:17 +02:00
Benjamin Otte
78ccc74879
entry: Use the same state for the flat box of text area and icons
2010-09-03 17:01:06 +02:00
Benjamin Otte
9c2eca5b06
range: Unused variable
2010-09-03 13:39:10 +02:00
Benjamin Otte
3685db091d
window: Use brackets to silence gcc
2010-09-03 13:38:55 +02:00
Matthias Clasen
18b47b6cd0
Remove blinking from status icons
...
This feature was just a bad idea.
2010-09-02 09:37:06 -04:00
Matthias Clasen
d433a60611
Remove separators from dialogs
...
It seems more reasonable to remove this feature than to keep fighting
off every separator that pops up by accident in a dialog.
2010-09-02 09:14:20 -04:00
Matthias Clasen
ece148eec0
Remove ::state-hint use
...
This use of the property was overlooked when it was removed.
We now always behave as if state-hint == TRUE.
2010-09-02 08:59:27 -04:00
Fridrich Štrba
31b709d08a
Export one needed symbol
2010-09-02 10:24:34 +02:00
Tristan Van Berkom
68568cff66
Enhanced/Simplified GtkWrapBox api as per Havoc's comments.
...
Made an enum GtkWrapBoxPacking for the expand/fill horizontal/vertical
boolean options... changed xpadding/ypadding to be horizontal-padding
and vertical-padding for a more consistent api and better readablility.
2010-09-02 15:36:36 +09:00
Tristan Van Berkom
c9ccc7551b
Some api changes for GtkWrapBox
...
Ammended documentation for GTK_WRAP_BOX_SPREAD_EVEN and renamed
GTK_WRAP_BOX_SPREAD_BEGIN -> GTK_WRAP_BOX_SPREAD_START.
2010-09-02 14:22:55 +09:00
Tristan Van Berkom
f2279d5e51
Fixed GtkNotebook to not consult GtkWidget->requisition directly
...
GtkNotebook was filling widget->requisition directly at "size-request"
time instead of filling in the *requsition argument, also (more importantly)
at size_allocate time GtkNotebook was consulting the action widget's
widget->requisition directly instead of safely calling
gtk_widget_get_child_requisition(). This commit closes bgo #628068 .
2010-09-02 13:50:27 +09:00
Matthias Clasen
6b5672c199
Remove now unused GtkProgressBarOrientation enum
2010-09-01 23:30:21 -04:00
Matthias Clasen
0ff6aedca0
Convert GtkCellRendererProgress to a GtkOrientable
...
And add an inverted property to it, too.
2010-09-01 23:27:00 -04:00
Matthias Clasen
4230f7998b
Make GtkProgressBar implement GtkOrientable
...
This also means that gtk_progress_bar_[sg]et_orientation are
gone.
2010-09-01 23:25:22 -04:00
Matthias Clasen
c3a19a4a14
Split the GtkProgressBar::orientation property
...
We splict the orientation property into a GtkOrientation and a
'inverted' boolean, the same way that GtkRange is set up.
2010-09-01 23:24:20 -04:00
Matthias Clasen
e4af3782d3
Rename GtkIconView::orientation property
...
Rename the ::orientation property of GtkIconView to item-orientation,
which is both clearer and avoids the conflict with the orientation
property of GtkOrientable implementations.
2010-09-01 23:03:48 -04:00
Matthias Clasen
1956cf8d28
Remove GtkRange::activate-slider
...
This was a style property to let theme engines 'opt-in' to more
correct behaviour while maintaining compatibility with existing
themes. GTK+ 3 engines are expected to handle the more correct
behaviour.
2010-09-01 22:09:44 -04:00
Matthias Clasen
d28af9cbb9
Remove GtkRange::stepper-position-details
...
This was a style property to let theme engines 'opt-in' to more
correct behaviour while maintaining compatibility with existing
themes. GTK+ 3 engines are expected to handle the more correct
behaviour.
2010-09-01 21:48:44 -04:00
Matthias Clasen
658f99b8ee
Remove GtkRange::trough-side-details
...
This was a style property to let theme engines 'opt-in' to more
correct behaviour while maintaining compatibility with existing
themes. GTK+ 3 engines are expected to handle the more correct
behaviour.
2010-09-01 21:30:47 -04:00
Matthias Clasen
095fb1afe4
Remove GtkTreeView::row-ending-details
...
This was a style property to let theme engines 'opt-in' to more
correct behaviour while maintaining compatibility with existing
themes. GTK+ 3 engines are expected to handle the more correct
behaviour.
2010-09-01 20:58:39 -04:00
Matthias Clasen
399580f9e1
Remove GtkEntry::state-hint
...
This was a style property to let theme engines 'opt-in' to more
correct behaviour while maintaining compatibility with existing
themes. GTK+ 3 engines are expected to handle the more correct
behaviour.
2010-09-01 20:21:21 -04:00
Matthias Clasen
15ea566813
Wrap box assimilation
...
Some coding style cleanups, rename Priv to Private, add docs
2010-09-01 20:03:30 -04:00
Matthias Clasen
7670b13d19
Update GtkButtonBox docs
2010-09-01 19:15:59 -04:00
Javier Jardón
6e5d65c9af
gtkscale: move documentation to inline comments
2010-09-01 20:37:39 +02:00
Javier Jardón
5484211c90
gtktexttagtable: move documentation to inline comments
2010-09-01 20:37:39 +02:00
Javier Jardón
7eadf45888
gtktypeutils: move documentation to inline comments
2010-09-01 20:37:39 +02:00
Javier Jardón
a47e5483b6
gtkimcontextsimple: move documentation to inline comments
2010-09-01 20:37:39 +02:00
Javier Jardón
3a752e03a8
gtkimmulticontext: move documentation to inline comments
2010-09-01 20:37:39 +02:00
Colin Walters
787df491f3
Add correct namespace prefix to ColorSelectionPrivate
...
gobject-introspection is now more strict about garbage in public headers.
2010-09-01 13:16:37 -04:00
Carl-Anton Ingmarsson
38fad43129
docs: Further fix GtkStock documentation
...
Some icons were left out from the
commit 9688665334
https://bugzilla.gnome.org/show_bug.cgi?id=628308
Signed-off-by: Javier Jardón <jjardon@gnome.org>
2010-09-01 17:43:59 +02:00
Stefan Kost
9074f74c6f
container: use priv in last commit
...
container->focus_child to container->priv->focus_child
2010-09-01 17:33:33 +03:00
Stefan Kost
94420f7110
widget: more details on gtk_widget_grab_focus docs
...
Tell that widget needs to be mapped and realized.
2010-09-01 16:59:00 +03:00
Stefan Kost
267a2156d8
container: clarify the docs
...
Hightlight more that focus_child is a container internal thing and suggest
what application developers most likely were looking for instead.
2010-09-01 16:59:00 +03:00
Stefan Kost
b00b1c33a3
container: don't leak the focus_child ref count
...
gtk_conatiner_set_focus_child() takes a ref. Release the ref in _destroy().
Fixes #414712 .
2010-09-01 16:59:00 +03:00
Matthias Clasen
9688665334
Fix GtkStock documentation
...
After the big icon rename, all the links in the docs have to
be updated, and we need to copy the right icons.
2010-09-01 00:14:45 -04:00
Colin Walters
b04b1b2e84
introspection: Update to new scanner API
...
* Add --warn-all
* Drop unnecessary of --strip-prefix; for GdkX11, use --symbol-prefix
https://bugzilla.gnome.org/show_bug.cgi?id=628160
2010-08-31 16:21:08 -04:00
Javier Jardón
213f8e2f1b
gtk/gtkwindow: use accessor functions to access GtkWidget
2010-08-31 02:51:36 +02:00
Javier Jardón
1a980d0be6
gtk/gtkplug.c: Use accessor functions to access GtkWindow
2010-08-31 02:51:36 +02:00
Javier Jardón
304b1a1f56
Added _gtk_widget_get_wmclass() internal function
...
Needed by GtkPlug
2010-08-31 02:51:36 +02:00
Javier Jardón
cc06f3dde6
GtkScrolledWindow: move public members to private structure
2010-08-31 01:34:02 +02:00
Tor Lillqvist
4491bdbb9d
Drop Win32 DLL ABI compatibility cruft
...
No need for that any longer as we are changing DLL name.
2010-08-30 14:57:48 +03:00
Tristan Van Berkom
972f617b77
Fixed GtkToolPalette realize() vfunc.
...
It seems with latest GSEAL work for widget->window access a
call to gtk_widget_set_window() was missed (added the window
assignment and now the palette shows up in Glade again).
2010-08-30 18:25:14 +09:00
Philip Withnall
ba158a24fe
Miscellaneous property string fixes
2010-08-29 19:00:14 +01:00
Javier Jardón
f84707d6f9
Add gtk_calendar_day_is_marked() function
...
The marked state of calendar day is not accessible
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=627028
2010-08-29 19:14:24 +02:00
Daiki Ueno
6afa615690
Fix typo in GtkIMContextClass doc.
2010-08-29 19:01:30 +02:00
Tor Lillqvist
87bf99dcc5
Fix Win32 build
2010-08-29 12:40:56 +03:00
Matthias Clasen
8d36170b8d
Remove deprecated GTK_SELECTION_EXTENDED selection mode
2010-08-28 22:42:59 -04:00
Matthias Clasen
29aa3818a4
Remove deprecated text and text_length field in GtkEntry
...
These fields have been superseded by GtkEntryBuffer.
2010-08-28 22:27:36 -04:00
Matthias Clasen
af8539bf11
Move deprectated menu enumerations to a private header
...
The GtkSubmenuDirection and GtkSubmenuPlacement enumerations
have been deprecated as public API for a while, but are still used
internally in the menu code. Move them to a private header. This
also prevents to generation of GObject boilerplate for these enums.
2010-08-28 21:24:11 -04:00
Matthias Clasen
00438fea3d
Declare the GtkWidget::window-dragging style property as readonly
...
This is how we generally declare style properties, and declaring
this one r/w was just an oversight.
2010-08-28 20:08:14 -04:00
Matthias Clasen
5d6b21e7b2
Remove long-deprecated page-horizontally signal
...
This signal has been superseded by GTK_MOVEMENT_HORIZONTAL_PAGES
long ago. This breaks the GtkTextView ABI.
2010-08-28 19:26:42 -04:00
Matthias Clasen
d2d344a531
Remove a workaround for old toolbar api
...
The old, deprecated toolbar api has been removed, so this workaround
is no longer necessary.
2010-08-28 19:11:23 -04:00
Matthias Clasen
6dd4f32f37
Remove deprecated GTK_CALENDAR_WEEK_START_MONDAY option
...
This has been deprecated and ignored for a long time.
2010-08-28 19:09:21 -04:00
Matthias Clasen
d45d970144
Remove deprecated 'shadow' properties in GtkFrame and GtkHandleBox
2010-08-28 17:20:53 -04:00
Tristan Van Berkom
67194ed77b
Fixed debug build for GTK_PLUG (plug)->socket_window direct accesses.
2010-08-28 16:19:16 +09:00
Tristan Van Berkom
deaa351630
Added initial revision of GtkWrapBox container widget and test case.
2010-08-28 16:01:59 +09:00
Javier Jardón
2a2f7c0993
gtk/gtkwidget.c: Use accessor functions to access GtkWindow
2010-08-28 03:40:47 +02:00
Javier Jardón
e8184f2a46
GtkPlug: move public members to private structures
2010-08-27 23:12:12 +02:00
Javier Jardón
af8efa0b46
Use accessor functions to access GtkPlug
2010-08-27 23:12:12 +02:00
Javier Jardón
1e5d7c0225
Use GtkFooPrivate instead GtkFooPriv
2010-08-27 04:48:23 +02:00
Javier Jardón
c6a44d8494
gtk/gtkseparator: Do not use GET_PRIVATE macro all the time
...
Use a private pointer instead
2010-08-26 18:00:09 +02:00
Javier Jardón
8d983a4547
gtk/gtkfilesystem: Do not use GET_PRIVATE macro all the time
...
Use a private pointer instead
2010-08-26 15:58:20 +02:00
Javier Jardón
1b77e36a59
gtk/gtksizerequest.c: Use G_DEFINE_INTERFACE macro
2010-08-26 00:33:56 +02:00
Javier Jardón
523ea1c656
gtk/gtktoolshell.c: Use G_DEFINE_INTERFACE macro
2010-08-26 00:33:56 +02:00
Javier Jardón
c0b8104232
gtk/gtkcellsizerequest.c: Use G_DEFINE_INTERFACE macro
2010-08-26 00:33:56 +02:00
Javier Jardón
24fedeccac
gtk/gtkcelllayout.c: Use G_DEFINE_INTERFACE macro
2010-08-26 00:33:56 +02:00
Javier Jardón
208e548ab1
gtk/gtkrecentchooser.c: Use G_DEFINE_INTERFACE macro
2010-08-26 00:33:56 +02:00
Javier Jardón
c1476c951e
gtk/gtkfilechooser.c: Use G_DEFINE_INTERFACE macro
2010-08-26 00:33:56 +02:00
Matthias Clasen
3e4e2b233b
Fix trivial doc typo
...
Pointed out in bug 627912.
2010-08-25 18:17:43 -04:00
Javier Jardón
45e2176683
Use G_DEFINE_INTERFACE macro in gtkactivatable
...
https://bugzilla.gnome.org/show_bug.cgi?id=605186
2010-08-25 15:06:40 +02:00
Matthias Clasen
1f1b404194
Document that the GTK_STOCK_FILE label is new
2010-08-25 00:46:47 -04:00
Matthias Clasen
586bbc9b13
Make the initial focus in dialogs work as intended
...
We had code that tried to prevent selecting the text in the label
if we end up focusing a label, but it didn't take effect, because
we were moving the focus into the label again afterwards.
2010-08-25 00:43:16 -04:00
Matthias Clasen
e1143c2d45
Make empty buttonboxes work again
...
There was some less than careful / nvis_children.
2010-08-25 00:29:27 -04:00
Matthias Clasen
06c2777d88
Make builtin rc consistent
...
I removed the default label style a few days ago, so it should
no longer be referenced either.
2010-08-25 00:28:23 -04:00
Matthias Clasen
2766cd14ad
Remove depth restriction from gtk_combo_box_set_active_iter docs
...
While it may not work perfectly in menu mode, it works fine for
list mode. Bug 627843.
2010-08-24 21:51:17 -04:00
Sergey Orlov
a676f9dada
bgo#614006 - GtkFileSystemModel - Make sure to generate node IDs are valid for new files
...
When a file was inserted during the period that the editable row was
active, the node IDs would not get updated correctly.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-08-24 17:09:37 -05:00
Javier Jardón
c05f344c0a
Use gtk_window_has_group() to know if the window has an explicit window group.
...
gtk_window_get_group() never returns NULL; if the window isn't in a group,
a default window group is returned instead. Use gtk_window_has_group() instead.
This fixes some previous commits to use accessors to access GtkWindow.
Reported by Philip Withnall in bug
https://bugzilla.gnome.org/show_bug.cgi?id=627828
2010-08-24 16:16:42 +02:00
Javier Jardón
f4f607690d
GtkRange: move public members to private structure
2010-08-23 20:48:03 +02:00
Javier Jardón
ff445e2b79
Use accessor functions to access GtkRange
2010-08-23 20:47:52 +02:00
Javier Jardón
27ec5cd556
gtkscalebutton: use accessor functions to access GtkRange
2010-08-23 20:47:45 +02:00
Javier Jardón
a64869db9e
gtkscale: use accessor functions to access GtkRange
2010-08-23 20:47:38 +02:00
Javier Jardón
f300aefa7e
Added _gtk_range_set_steppers () internal function
...
It's needed by gtkscrollbar
2010-08-23 20:47:30 +02:00
Javier Jardón
1814ea6abd
Added _gtk_range_set_round_digits() insternal function
...
It's needed by gtkscale
2010-08-23 20:47:23 +02:00
Javier Jardón
d38bf4825a
gtkrange: Add some checks to gtk_range_set_slider_size_fixed()
...
Recalculate layout only if the range is already mapped and
adjustment is not NULL.
2010-08-23 20:47:16 +02:00
Javier Jardón
65a28efc15
gtk/gtkprintunixdialog.c: Use accessor functions to access GtkWindow
2010-08-23 20:19:44 +02:00
Javier Jardón
f05acd707d
gtk/gtktreeview.c: Use accessor functions to access GtkWindow
2010-08-23 20:19:38 +02:00
Javier Jardón
31d22d3083
gtk/gtksocket.c: Use accessor functions to access GtkWindow
2010-08-23 20:19:31 +02:00
Javier Jardón
97cbe801c1
gtk/gtkrecentchooserdefault.c: Use accessor functions to access GtkWindow
2010-08-23 20:19:24 +02:00
Javier Jardón
fb4661be6d
gtk/gtkprintoperation.c: Use accessor functions to access GtkWindow
2010-08-23 20:19:18 +02:00
Javier Jardón
54b8b51f43
gtk/gtkpaned.c: Use accessor functions to access GtkWindow
2010-08-23 20:19:11 +02:00
Javier Jardón
f91e5e2ac9
gtk/gtknotebook.c: Use accessor functions to access GtkWindow
2010-08-23 20:19:03 +02:00
Javier Jardón
991eaa7580
gtk/gtklabel.c: Use accessor functions to access GtkWindow
2010-08-23 20:18:55 +02:00
Javier Jardón
e00ffe3872
gtk/gtkfontsel.c: Use accessor functions to access GtkWindow
2010-08-23 20:18:48 +02:00
Javier Jardón
7325c67570
gtk/gtkfilechooserdefault.c: Use accessor functions to access GtkWindow
2010-08-23 20:18:41 +02:00
Javier Jardón
64fca99a89
gtk/gtkfilechooserbutton.c: Use accessor functions to access GtkWindow
2010-08-23 20:18:34 +02:00
Javier Jardón
65266d971e
gtk/gtkentry.c: Use accessor functions to access GtkWindow
2010-08-23 20:18:27 +02:00
Javier Jardón
50aec80efb
gtk/gtkdnd.c: Use accessor functions to access GtkWindow
2010-08-23 20:18:20 +02:00
Javier Jardón
014fc1f73a
gtk/gtkdialog.c: Use accessor functions to access GtkWindow
2010-08-23 20:18:10 +02:00
Javier Jardón
595b27e22d
gtk/gtkcontainer.c: Use accessor functions to access GtkWindow
2010-08-23 20:18:03 +02:00
Javier Jardón
1fe89643a5
gtk/gtkcolorsel.c: Use accessor functions to access GtkWindow
2010-08-23 20:17:56 +02:00
Javier Jardón
e5ed2c02a3
Revert from "edit-preferences" to "gtk-preferences"
...
There is not a icon named "edit-preferences" in the spec
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
2010-08-23 18:18:05 +02:00
Tor Lillqvist
56f71f0123
Fix Win32 build
...
Builds now, except for the ms-windows theme engine. It doesn't really
work, though.
2010-08-23 18:55:54 +03:00
Javier Jardón
29a758d4c2
The correct icon name is "dialog-information", not "dialog-info"
...
Spec here:
http://standards.freedesktop.org/icon-naming-spec/icon-naming-spec-latest.html
2010-08-23 17:47:28 +02:00
Benjamin Otte
8856bfc60e
directfb: Remove
...
As announced by email and on IRC, this backend is removed from GTK 3.
It has been broken for over a year with no one fixing it.
2010-08-23 12:44:58 +02:00
Benjamin Otte
7eabb8fd3c
container: suggest parentheses around assignment used as truth value
2010-08-23 12:37:22 +02:00
Matthias Clasen
b415d2f79b
Fix a translation problem in the about dialog
...
The license preamble needs to be translated with the GTK+ domain,
not the applications. Bug 627643.
2010-08-22 19:05:35 -04:00
Javier Jardón
ab93613037
gtk/gtk.symbols: Add gtk_cell_view_get_desired_height_for_width_of_row()
2010-08-22 23:35:27 +02:00
Javier Jardón
f3d6aa8bf3
gtk/gtktrayicon-x11.c: Use accessor functions to access GtkWidget
2010-08-22 22:56:17 +02:00
Javier Jardón
04fd195b9b
gtk/gtksocket-x11.c: Use accessor functions to access GtkWidget
2010-08-22 22:56:17 +02:00
Javier Jardón
f25ad7899a
gtk/gtkplug-x11.c: Use accessor functions to access GtkWidget
2010-08-22 22:56:17 +02:00
Javier Jardón
0a1130dcb9
gtk/gtkprintunixdialog.c: Use accessor functions to access GtkWidget
2010-08-22 22:56:17 +02:00
Javier Jardón
07d3f20202
gtk/gtkdnd.c: Use accessor functions to access GtkWidget
2010-08-22 22:56:16 +02:00
Javier Jardón
b99348e443
gtk/gtkaboutdialog.c: use accessor functions to access GtkWidget
2010-08-22 22:56:16 +02:00
Javier Jardón
091335fcb4
gtk/gtkalignment.c: use accessor functions to access GtkWidget
2010-08-22 22:56:16 +02:00
Javier Jardón
2201b2abb6
gtk/gtkassistant.c: use accessor functions to access GtkWidget
2010-08-22 22:56:16 +02:00
Javier Jardón
b05e897453
gtk/gtkbbox.c: use accessor functions to access GtkWidget
2010-08-22 22:56:16 +02:00
Javier Jardón
d9b459dd64
gtk/gtkbox.c: use accessor functions to access GtkWidget
2010-08-22 22:56:16 +02:00
Javier Jardón
6cad69e32a
gtk/gtkbutton.c: use accessor functions to access GtkWidget
2010-08-22 22:56:15 +02:00
Javier Jardón
1b1845863a
gtk/gtkcalendar.c: use accessor functions to access GtkWidget
2010-08-22 22:56:15 +02:00
Javier Jardón
c6b86761d6
gtk/gtkcellrendereraccel.c: use accessor functions to access GtkWidget
2010-08-22 22:56:15 +02:00
Javier Jardón
7b5656b492
gtk/gtkcellrendererpixbuf.c: use accessor functions to access GtkWidget
2010-08-22 22:56:15 +02:00
Javier Jardón
4a17e27a1e
gtk/gtkcellrendererprogress.c: use accessor functions to access GtkWidget
2010-08-22 22:56:15 +02:00
Javier Jardón
cc70f342d0
gtk/gtkcellrendererspinner.c: use accessor functions to access GtkWidget
2010-08-22 22:56:15 +02:00
Javier Jardón
aad72e59fa
gtk/gtkcellrenderertext.c: use accessor functions to access GtkWidget
2010-08-22 22:56:14 +02:00
Javier Jardón
dd61c2bdea
gtk/gtkcellrenderertoggle.c: use accessor functions to access GtkWidget
2010-08-22 22:56:14 +02:00
Javier Jardón
e9915fc8d6
gtk/gtkcellview.c: use accessor functions to access GtkWidget
2010-08-22 22:56:14 +02:00
Javier Jardón
aa63485b87
gtk/gtkcheckbutton.c: use accessor functions to access GtkWidget
2010-08-22 22:56:14 +02:00
Javier Jardón
1e3448f222
gtk/gtkcheckmenuitem.c: use accessor functions to access GtkWidget
2010-08-22 22:56:14 +02:00
Javier Jardón
0baa3feb4b
gtk/gtkcolorbutton.c: use accessor functions to access GtkWidget
2010-08-22 22:56:14 +02:00
Javier Jardón
e9b85cf100
gtk/gtkcolorsel.c: use accessor functions to access GtkWidget
2010-08-22 22:56:13 +02:00
Javier Jardón
42a0a8143b
gtk/gtkcombobox.c: use accessor functions to access GtkWidget
2010-08-22 22:56:13 +02:00
Javier Jardón
3a89cc150c
gtk/gtkcontainer.c: use accessor functions to access GtkWidget
2010-08-22 22:56:13 +02:00
Javier Jardón
83372be93e
gtk/gtkcontainer.c: use accessor functions to access GtkWidget
2010-08-22 22:56:13 +02:00
Javier Jardón
4def73b386
gtk/gtkdialog.c: use accessor functions to access GtkWidget
2010-08-22 22:56:13 +02:00
Javier Jardón
379fc17fa9
gtk/gtkdrawingarea.c: use accessor functions to access GtkWidget
2010-08-22 22:56:12 +02:00
Javier Jardón
4ddff2691b
gtk/gtkentry.c: use accessor functions to access GtkWidget
2010-08-22 22:56:12 +02:00
Javier Jardón
325a00e40d
gtk/gtkentrycompletion.c: use accessor functions to access GtkWidget
2010-08-22 22:56:12 +02:00
Javier Jardón
7764ee564c
gtk/gtkeventbox.c: use accessor functions to access GtkWidget
2010-08-22 22:56:12 +02:00
Javier Jardón
f11207c33e
gtk/gtkexpander.c: use accessor functions to access GtkWidget
2010-08-22 22:56:12 +02:00
Javier Jardón
b62b834eb5
gtk/gtkfilechooserdefault.c: use accessor functions to access GtkWidget
2010-08-22 22:56:12 +02:00
Javier Jardón
7f8aaf04da
gtk/gtkfilechooserentry.c: use accessor functions to access GtkWidget
2010-08-22 22:56:11 +02:00
Javier Jardón
fe2815026b
gtk/gtkfixed.c: use accessor functions to access GtkWidget
2010-08-22 22:56:11 +02:00
Javier Jardón
2758329204
gtk/gtkframe.c: use accessor functions to access GtkWidget
2010-08-22 22:56:11 +02:00
Javier Jardón
effdde9471
gtk/gtkhsv.c: use accessor functions to access GtkWidget
2010-08-22 22:56:11 +02:00
Javier Jardón
90ee7ca493
gtk/gtkimagemenuitem.c: use accessor functions to access GtkWidget
2010-08-22 22:56:11 +02:00
Javier Jardón
37d62149bb
gtk/gtkinfobar.c: use accessor functions to access GtkWidget
2010-08-22 22:56:10 +02:00
Javier Jardón
0a3431e8f6
gtk/gtkinvisible.c: use accessor functions to access GtkWidget
2010-08-22 22:56:10 +02:00
Javier Jardón
84297150e8
gtk/gtkitem.c: use accessor functions to access GtkWidget
2010-08-22 22:56:10 +02:00
Javier Jardón
69b6dbdb08
gtk/gtklabel.c: use accessor functions to access GtkWidget
2010-08-22 22:56:10 +02:00
Javier Jardón
26f21cf0e9
gtk/gtklayout.c: use accessor functions to access GtkWidget
2010-08-22 22:56:10 +02:00
Javier Jardón
00152ff835
gtk/gtklinkbutton.c: use accessor functions to access GtkWidget
2010-08-22 22:56:10 +02:00
Javier Jardón
1783b227e8
gtk/gtkmain.c: use accessor functions to access GtkWidget
2010-08-22 22:56:09 +02:00
Javier Jardón
7587ee2dde
gtk/gtkmenubar.c: use accessor functions to access GtkWidget
2010-08-22 22:56:09 +02:00
Javier Jardón
4d928459d3
gtk/gtkmenuitem.c: use accessor functions to access GtkWidget
2010-08-22 22:56:09 +02:00
Javier Jardón
03842616fb
gtk/gtkmenushell.c: use accessor functions to access GtkWidget
2010-08-22 22:56:09 +02:00
Javier Jardón
298b3643aa
gtk/gtkmenutoolbutton.c: use accessor functions to access GtkWidget
2010-08-22 22:56:09 +02:00
Javier Jardón
593b32c6ab
gtk/gtkmessagedialog.c: use accessor functions to access GtkWidget
2010-08-22 21:25:26 +02:00
Javier Jardón
ce977a1a33
gtk/gtkmnemonichash.c: use accessor functions to access GtkWidget
2010-08-22 21:25:26 +02:00
Javier Jardón
f8ac83bc07
gtk/gtkoffscreenwindow.c: use accessor functions to access GtkWidget
2010-08-22 21:25:26 +02:00
Javier Jardón
e49c130018
gtk/gtkpaned.c: use accessor functions to access GtkWidget
2010-08-22 21:25:26 +02:00
Javier Jardón
d854499f4a
gtk/gtkplug.c: use accessor functions to access GtkWidget
2010-08-22 21:25:26 +02:00
Javier Jardón
6b7efdf8a1
gtk/gtkprogressbar.c: use accessor functions to access GtkWidget
2010-08-22 21:25:25 +02:00
Javier Jardón
d52eb49529
gtk/gtkradiobutton.c: use accessor functions to access GtkWidget
2010-08-22 21:25:25 +02:00
Javier Jardón
c6f4e71a31
gtk/gtkrange.c: use accessor functions to access GtkWidget
2010-08-22 21:25:25 +02:00
Javier Jardón
c35fa9bc5a
gtk/gtkrecentchooserdefault.c: use accessor functions to access GtkWidget
2010-08-22 21:25:25 +02:00
Javier Jardón
dbd395a7ac
gtk/gtkscale.c: use accessor functions to access GtkWidget
2010-08-22 21:25:25 +02:00
Javier Jardón
41fcf40648
gtk/gtkscalebutton.c: use accessor functions to access GtkWidget
2010-08-22 21:25:25 +02:00
Javier Jardón
482637a41e
gtk/gtkscrolledwindow.c: use accessor functions to access GtkWidget
2010-08-22 21:25:25 +02:00
Javier Jardón
804ad0dd88
gtk/gtksizegroup.c: use accessor functions to access GtkWidget
2010-08-22 21:25:25 +02:00
Javier Jardón
4870f2ec30
gtk/gtkselection.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00
Javier Jardón
ab27b01fb9
gtk/gtkseparatortoolitem.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00
Javier Jardón
551fa5c8df
gtk/gtksocket.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00
Javier Jardón
91a49bac5a
gtk/gtkspinner.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00
Javier Jardón
4847b9a940
gtk/gtkstatusbar.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00
Javier Jardón
f43610e110
gtk/gtkstatusicon.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00