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
Javier Jardón
bf1f03ad5d
gtk/gtkstyle.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00
Javier Jardón
c9dd25bd11
gtk/gtktable.c: use accessor functions to access GtkWidget
2010-08-22 21:25:24 +02:00
Javier Jardón
c4b452a22c
gtk/gtktearoffmenuitem.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
c6dcef5089
gtk/gtktestutils.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
82f521b514
gtk/gtktextdisplay.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
063454f630
gtk/gtktextutil.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
7fd15c82bf
gtk/gtktoolbar.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
7e753a9a86
gtk/gtktoolbutton.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
5e2c943742
gtk/gtktoolitem.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
1f9eb57338
gtk/gtktoolitemgroup.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
34e63dcd46
gtk/gtktoolpalette.c: use accessor functions to access GtkWidget
2010-08-22 21:25:23 +02:00
Javier Jardón
3f101bb08c
gtk/gtktooltip.c: use accessor functions to access GtkWidget
2010-08-22 21:25:22 +02:00
Javier Jardón
1c6b3f53a0
gtk/gtktreeviewcolumn.c: use accessor functions to access GtkWidget
2010-08-22 21:25:22 +02:00
Javier Jardón
a44969e877
gtk/gtkuimanager.c: use accessor functions to access GtkWidget
2010-08-22 21:25:22 +02:00
Javier Jardón
ae47b7925a
gtk/gtkviewport: use accessor functions to access GtkWidget
2010-08-22 21:25:22 +02:00
Javier Jardón
e3be606a1c
gtk/gtkwin32embedwidget: use accessor functions to access GtkWidget
2010-08-22 21:25:22 +02:00
Javier Jardón
7b4cf7587a
gtk/gtkwindow-decorate: use accessor functions to access GtkWidget
2010-08-22 21:25:22 +02:00
Javier Jardón
7d9c4b71a9
gtk/tests/builder.c: Use accessor functions to access GtkWidget
2010-08-22 18:33:10 +02:00
Javier Jardón
46e65a9164
gtk/tests/testing.c: Use accessor functions to access GtkWidget
2010-08-22 18:33:04 +02:00
Javier Jardón
6f74ff20a2
gtk/tests/treeview-scrolling.c: Use accessor functions to acccess GtkWidget
2010-08-22 18:32:56 +02:00
Philip Withnall
5fa4a05ccc
Miscellaneous string fixes
...
Mostly capitalisation fixes. Closes: bgo#528257
2010-08-22 15:06:45 +01:00
Philip Withnall
12e83244b1
Bug 528257 — File selector and stock string problems
...
Fix some stock item strings. Helps: bgo#528257
2010-08-22 12:24:00 +01:00
Matthias Clasen
fe1a39b1f2
Make button boxes semi-homogeneous
...
If a child is too large (> 1.5 the average), let it have its own
size. The old behaviour of fully homogeneous button boxes can still
be had by setting the homogeneous property to TRUE. Bug 84188.
2010-08-22 00:33:37 -04:00
Philip Withnall
df5ade16ab
GtkFontSelection: don't notify the non-existent "font" property
...
The "font" property was removed in 418d84f311
.
Closes: bgo#627580
2010-08-22 02:47:00 +01:00
Tristan Van Berkom
804c800979
Fixed oversized menus allocated offscreen
...
Removed the old toplevel window size-request signal and
do the clamping in gtk_menu_get_height_for_width() instead,
also make sure to invalidate the size before doing a new
request just after invoking the delegate menu position func.
2010-08-20 21:18:13 -04:00
Tristan Van Berkom
10ceb9da68
Fixed GtkMenuItem to not access the menu->requisition but get the minimum size request instead.
2010-08-20 21:18:13 -04:00
Tristan Van Berkom
005e8a6c2f
Changed combo box's menu position function to use child menu
...
item's allocation instead of a complex calculation to guess
it's height for width.
2010-08-20 19:26:10 -04:00
Tristan Van Berkom
af7a187919
Added GtkCellRendererText::max-width-chars property
...
Added a property to limit the minimum/natural size request
of a text cell renderer.
2010-08-20 19:26:09 -04:00
Matthias Clasen
f7a6c05158
Remove leftover debug spew
2010-08-20 17:32:21 -04:00
Jonh Wendell
c9340c37a9
Drop one duplicated function header
2010-08-20 14:20:51 -03:00
Jonh Wendell
02b50d71ce
Use an acessor function instead of a deprecated macro
2010-08-20 14:11:05 -03:00
Matthias Clasen
a64bd5d1f0
Fix gtk_widget_queue_draw
...
The draw-border removal did not get it right for !no-window widgets.
Bug 627445.
2010-08-20 08:48:07 -04:00
Tristan Van Berkom
7ef9cc3a1c
Prevent file filter name sizes from expanding the dialog (bgo #527499 ).
...
Made GtkFileChooser file filter combobox ellipsize.
2010-08-19 19:09:53 -04:00
Benjamin Otte
de8b07c3df
textview: Make cursor display again
...
The code for initializing the clip rectangle was accidentally deleted in
a previous patch. Put it back.
2010-08-19 12:08:23 +02:00
Stefan Kost
0e1eee26b9
[filechooserentry] don't show misplaced completion popup
...
Override the key-press-event instead of overriding the focus method.
Fixes #627139
2010-08-19 09:37:53 +03:00
Tristan Van Berkom
52e5f36dc3
Implemented height-for-width geometry management for menus
...
Now GtkMenu/GtkMenuItem request/allocate in height-for-width
manner... to reduce the height of the menu one must explicitly
set the requested minimum width of the menu to a greater value
(using gtk_widget_set_size_request()).
2010-08-18 20:01:28 -04:00
Tristan Van Berkom
9c26bd525f
Added height-for-width management for GtkComboBox/GtkCellView
...
now GtkComboBox (and GtkCellView) request and allocate children/cells
in a height-for-width manner.
2010-08-18 20:01:28 -04:00
Tristan Van Berkom
9f762fe86c
Added GtkCellSizeRequest bits to makefile, gtk/gtk.h and gtk/gtk.symbols.
2010-08-18 20:01:28 -04:00
Tristan Van Berkom
e2a82c70b4
Added/Implemented GtkCellSizeRequestIface
...
This patch adds height-for-width geometry management
for cell renderers while still responding to the old
gtk_cell_renderer_get_size() apis with virtual return values
(obtained by soliciting the new height-for-width cell renderer
apis).
2010-08-18 20:01:28 -04:00
Tristan Van Berkom
fa565f3a3e
Fixed accel label to do its derived work in ->get_width() instead of the old ->size_request()
2010-08-18 20:01:27 -04:00
Tristan Van Berkom
0cb7aa9c7b
GtkBox: Clipped values passed to gtk_distribute_natural_allocation() incase allocated less than requested.
2010-08-18 20:01:27 -04:00
Tristan Van Berkom
8c14bf009d
Added return_if_fail guard to gtk_distribute_natural_allocation()
2010-08-18 20:01:27 -04:00
Matthias Clasen
f65265fff9
Make stock icons use standard icon names
...
At least where standard names are available, instead of relying
on a symlink forest in the icon theme directory. For directional
variants, we look up icons by the pair ("foo-rtl", "foo") or
("foo-ltr", "foo"). See bug 626474.
2010-08-18 18:26:58 -04:00
Matthias Clasen
501eeaff11
Remove GtkWidget::draw-border
...
This is a never-used style property that came out of some old
themeing experiments, and handling it has some performance
overhead. Bug 426924
2010-08-18 12:46:57 -04:00
Christian Persch
ffa07ee21e
Use G_DEFINE_BOXED_TYPE
...
Bug #627214 .
2010-08-18 15:34:47 +02:00
Javier Jardón
f730af8360
docs: gtk_window_group_get_current_device_grab() was added in 3.0
2010-08-18 05:29:17 +02:00
Tomeu Vizoso
24d8c776d4
The 'len' argument of gtk_text_buffer_insert and gtk_text_buffer_insert_at_cursor isn't really the length of the 'text' argument
2010-08-17 17:57:58 +02:00
Tomeu Vizoso
813da6a39a
gtk_tree_model_iter_next's iter is (in), not (inout)
2010-08-17 17:43:04 +02:00
Carlos Garnacho
bddb72476c
GtkButton: Also handle activate from mouse events.
2010-08-17 15:45:17 +02:00
Matthias Clasen
0ea8572d89
Drop internal function from header
...
Make _gtk_button_box_child_requisition static.
2010-08-16 21:58:26 -04:00
Matthias Clasen
e057cb8b4d
Drop some unnecessary variables
2010-08-16 21:58:26 -04:00
Benjamin Otte
8805b58e62
textview: Fix rendering of embedded images
2010-08-16 19:48:45 +02:00
Javier Jardón
83c20d4b32
GtkToolbar: move public members to private structure
2010-08-14 02:25:33 +02:00
Matthias Clasen
6334d13de5
Remove some leftovers of deprecated functionality
...
There were some vestiges of the gtk_{h,v}button_box_set_default_layout()
functionality left. These are gone now. I have also removed
the GTK_BUTTONBOX_DEFAULT value in GtkButtonBoxStyle, but the other
values have been kept at their numeric values, to avoid more serious
ABI change.
2010-08-12 23:25:10 -04:00
Javier Jardón
05e33f69eb
gtk_range_set_min_slider_size() should receive an gint, not a gboolean
2010-08-13 02:49:27 +02:00
Javier Jardón
97fbf97be2
GtkTextTagTable: move public members to private structure
2010-08-12 18:33:28 +02:00
Javier Jardón
e6ed4da215
GtkCalendar: move public members to private structure
2010-08-12 18:02:31 +02:00
Claudio Saavedra
e4a83370c4
Improve the looks of the license text in GtkAboutDialog
...
It is not safe to assume that copyright text in applications is
one liner, therefore it's better to split it from the program name.
Also, the license text should be in a paragraph of its own, so
add an extra '\n' above it.
https://bugzilla.gnome.org/show_bug.cgi?id=626514
2010-08-12 14:23:58 +03:00
Benjamin Otte
159caba3e2
Add gtk_license_get_type() to gtk.symbols
2010-08-11 21:43:47 +02:00
Benjamin Otte
eff92cb1d6
dnd: Remove default_icon_pixmap variable and friends
...
The functions to set them were gone already, this is just cleanup
2010-08-11 02:30:29 +02:00
Benjamin Otte
709e05cdb2
style: Use _gtk_pango_fill_layout()
2010-08-10 21:02:31 +02:00
Benjamin Otte
ccacd3a46a
style: Apply same matrix conversion as gdk_draw_layout() did
...
This is only necessary for GtkLabel with an angle set as no other widget
rotates text.
Note that the label code does not need these adjustments as those paths
are only taken when the label is not rotated.
2010-08-10 21:02:31 +02:00
Benjamin Otte
e42033d2cc
colorsel: Create cursor image using Cairo
2010-08-10 21:02:30 +02:00
Benjamin Otte
7b9e2b941c
style: Don't use gdk_pixmap_create_from_xpm
...
Instead, do what that code did manually.
2010-08-10 21:02:30 +02:00
Benjamin Otte
09fbed7bc9
style: Do not allocate colors anymore
2010-08-10 21:02:30 +02:00
Benjamin Otte
a50843e160
gtkbuilder: Do not allocate colors when parsing GtkBuilder files
2010-08-10 21:02:30 +02:00
Benjamin Otte
25fc4d97f8
textview: remove GtkTextAttributes (un)realize code
...
It was unused (apart from a few assertion that indeed it was unused).
2010-08-10 21:02:30 +02:00
Kristian Rietveld
54ac92aaaf
Add call to cairo_destroy() to gtk_text_layout_draw()
2010-08-10 21:02:29 +02:00
Kristian Rietveld
089892df27
Add missing calls to cairo_destroy()
2010-08-10 21:02:29 +02:00
Benjamin Otte
0fa7d810e7
calendar: Remove unused GdkGC members
2010-08-10 21:02:29 +02:00
Benjamin Otte
ac3ddfa2a7
API: Remove gtk_gc_get() and gtk_gc_release()
...
With this change, GTK does not use GdkGC anymore.
2010-08-10 21:02:29 +02:00
Benjamin Otte
acf33c9e4c
API: Remove GC members from GtkStyle
2010-08-10 21:02:29 +02:00
Benjamin Otte
90ac7b915c
textview: Replace GdkGC * argument with gpointer
...
The argument is unused.
That's also the reason why we can pass NULL instead of the real GC in
the caller.
2010-08-10 21:02:29 +02:00
Benjamin Otte
1ac8d80e34
API: remove GdkPangoRenderer
...
Also removes the pango attributes for stipple, emboss and emboss color
2010-08-10 21:02:29 +02:00
Benjamin Otte
fea39c078b
textview: Make the PangoRenderer use Cairo exclusively
...
No more gdkpango usage, no more GdkGC required, yay!
2010-08-10 21:02:29 +02:00
Benjamin Otte
805e0d1082
label: Draw all text using PangoCairo
...
This includes the addition of a "small" helper function,
_gtk_pango_fill_layout() that ignores color information. This
functionality is not available inside Pango and until that happens, we
need this fix. The bug is filed at:
https://bugzilla.gnome.org/show_bug.cgi?id=624917
2010-08-10 21:02:28 +02:00
Benjamin Otte
9f1939cbd5
API: Remove GtkTextTag's stipple properties
...
They seem pretty much unused and the only reason why GtkTextView uses a
GdkPangoRenderer and not a PangoCairoRenderer.
2010-08-10 21:02:28 +02:00
Benjamin Otte
66048b2f92
style: Replace last gdk_draw_rectangle() with Cairo
2010-08-10 21:02:28 +02:00
Benjamin Otte
a3057d0150
style: replace draw_frame_gap with Cairo calls
2010-08-10 21:02:27 +02:00
Benjamin Otte
5eb76955fd
style: Replace draw_diamond vfunc with Cairo calls
2010-08-10 21:02:27 +02:00
Benjamin Otte
d2b1da4e84
API: remove gtk_paint_polygon()
...
Almost noone uses it in real applications and it's broken in most theme
engines.
2010-08-10 21:02:27 +02:00
Benjamin Otte
53b9bdc3fc
iconview: Remove debug drawing code
...
It uses APIs I'm about to deprecate.
2010-08-10 21:02:27 +02:00
Benjamin Otte
1c4ce45a42
style: apply cleanup patch from bug 576988
...
Ideally this patch would be split up into chunks, but the git branch it
came from doesn't exist anymore. Only this patch is left in a bug
report.
It it's adapted to use accessors and contains some fixes that were
spotted while using the patch.
https://bugzilla.gnome.org/show_bug.cgi?id=576988
2010-08-10 21:02:27 +02:00
Benjamin Otte
7489c260eb
colorsel: Use gdk_pixbuf_get_from_drawable()
...
Instead of fiddling with GdkImage directly.
2010-08-10 21:02:26 +02:00
Benjamin Otte
d54c2cfeee
API: remove gdk_screen_get_rgb_colormap/visual()
...
People want to use gdk_screen_get_default_colormap/visual().
Also, GdkRGB is about to die.
2010-08-10 21:02:26 +02:00
Benjamin Otte
24a867f8da
image: remove GdkImage as a possible image type
...
GdkImage is about to be deprecated.
2010-08-10 21:02:25 +02:00
Kristian Rietveld
11ee2abacc
Add missing cairo_destroy() call
2010-08-10 21:02:25 +02:00
Benjamin Otte
50266ca95d
filechooser: Remove unused functions.
...
The last user is gone since 3a1ba3bd1e
2010-08-10 21:02:25 +02:00
Matthias Clasen
2c40c2b7c8
Don't activate insensitive widgets
...
This was reported by Christian Becke in bug 626052.
2010-08-10 13:42:17 -04:00
Federico Mena Quintero
3a1ba3bd1e
bgo#625416 - Don't reload the filechooser's folder during a re-map event
...
Long ago, before we had file monitoring at the GIO/Glib level, we would
reload the current folder each time a file chooser gets (re)mapped.
This was basically to let the GIMP recycle the same file chooser for all
file/open or file/save operations, instead of creating a new one every time.
In that case, we reloaded the folder with each ::map() event so that the
file chooser would present an up-to-date view of the folder that was being
displayed. Now, the folder should always be up-to-date as we do
file monitoring all the time.
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-08-10 11:36:03 -05:00
Matthias Clasen
316b9da873
Allow to unset the tree selection function
...
This is not causing problems, and seems natural. Bug 626276.
2010-08-10 07:35:54 -04:00
Philip Withnall
3eb197b51f
Bug 596125 — Property string fixes
2010-08-10 09:23:49 +01:00
Matthias Clasen
fb48e023d2
Fix a sporadic segfault in treeview keynav
...
If a a treeview has frequent periodic additions and removals of
rows, it is possible that a page down keypress moves the cursor
out of the height of the treeview. In some of these cases, we
can be tricked into dereferencing a NULL pointer.
Bug 612919.
2010-08-10 00:31:46 -04:00
Gabor Kelemen
e3bd926c1e
Set translation domain for parameter_string in gtk_init_with_args
...
This was requested in bug 554926.
2010-08-10 00:11:40 -04:00
Emmanuele Bassi
73030c462f
about: Add :license-type property
...
The :license-type property of GtkAboutDialog allows using a symbolic
enumeration value that will construct a placeholder license preamble
linking to a specific URL. This allows localization of the licensing
text without using a translation of the actual license, since it would
not be valid.
Bug 336225.
2010-08-10 00:00:15 -04:00
Matthias Clasen
79ef5de505
Make it possible to make the expander label fill the entire space
...
This adds a boolean GtkExpander::label-fill property and uses it
when allocating space to the label. Based on a patch by Matt Barnes,
bug 614049.
2010-08-09 23:08:39 -04:00
Javier Jardón
f760538f17
gtkaccellabel: Remove unused class members
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=97414
2010-08-10 04:17:29 +02:00
Matthias Clasen
61e34032ec
Clarify the docs for gtk_widget_set_has_window()
...
The previous version of the docs did not make it clear that has-window
is the defaults. Pointed out by Magnus Hjorth, bug 615474.
2010-08-09 21:39:20 -04:00
Christian Dywan
2a12f74c8e
Clarify memory management of tree models
...
It helps to be explicit about these things.
Bug 609264.
2010-08-09 21:35:26 -04:00
Sam Thursfield
a2b72c5953
Add missing accessors for notebook details
...
The ms-windows theme engine needs to access the tab-{h,v}border,
so add accessors. Bug 625655.
2010-08-09 21:20:07 -04:00
Sam Thursfield
4047d0526d
Towards GSEAL-clean build on win32
...
Use accessors instead of direct member access in a few places.
Bug 625655.
2010-08-09 21:17:37 -04:00
Javier Jardón
e15e37b6ce
Fix GtkIMContextClass inheritance
...
Should be GObjectClass instead GtkObjectClass
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=90935
2010-08-08 06:22:45 +02:00
Javier Jardón
8b2108a8a4
gtkcombobox: Only use the child if It is a GtkCellLayout
...
This error was introduced in
commit 4427760bcc
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=625104
2010-08-08 06:22:45 +02:00
Dan Williams
1d8aec51cc
Elaborate interaction of gtk_widget_grab_default() and GtkEntry widgets
2010-08-07 23:14:47 -05:00
Tristan Van Berkom
9ddef2365f
Fixed expressions in gtk_button_size_allocate()
...
Children were getting negative allocations by misusage
of MAX() macro (bad signedness of expressions).
2010-08-07 17:41:29 -04:00
Javier Jardón
3ccc617052
Completely remove any use of GtkWindow allow-grow and allow-shrink properties
...
These have been deprecated and removed from master.
GtkWindow:resizable should be used instead.
This completes commit 1a03a65e36
Reported by Benjamin Otte
2010-08-07 17:19:16 +02:00
Tristan Van Berkom
59e7571aae
Fixed alignment of wrapping labels allocated a greater width than needed
...
When wrapping labels to allocation width, never set the label wrap
width to a size greater than needed for the label's text (closes bug 625715)
2010-08-06 22:44:11 -04:00
Benjamin Otte
32d365f476
label: Make angle part of GtkLabelPrivate
2010-08-07 02:24:00 +02:00
Tadej Borovšak
35105ab2b4
Fix improperly unwinded loops
2010-08-06 20:08:32 -04:00
Tristan Van Berkom
03dfaf3c3e
Fixed bad typo causing bad vertical requests on frames with no label.
2010-08-06 18:57:41 -04:00
Tadej Borovšak
651bed57a4
Implement fair extra space allocation
2010-08-06 17:28:07 -04:00
Tristan Van Berkom
208ba9bb50
Make GtkFrame allocate its label considering natural size requests
...
Also like the GtkExpander, the label widget is allocated the minimum
height for its allocated width and the remaining space is given to
the child, test case included.
2010-08-06 16:57:11 -04:00
Tristan Van Berkom
e83a8826e6
Implemented GtkSizeRequest on GtkExpander and added test
...
Now the expander requests and distributes space naturally,
the expander widget prioritizes the child widget vertically
and only allocates the minimum height for width to the label
widget.
2010-08-05 12:50:25 -04:00
Tristan Van Berkom
95b3e63057
Migrated old loops to use gtk_distribute_allocation().
2010-08-05 12:50:25 -04:00
Tristan Van Berkom
6c76243f46
Added gtk_distribute_allocation()
...
Added a convenience api for containers to use when allocating
children (used to distribute space evenly to children).
2010-08-05 12:50:25 -04:00
Tomeu Vizoso
963e1ec033
Stop assuming that priv->label_widget will be a GtkLabel.
...
https://bugzilla.gnome.org/show_bug.cgi?id=623603
2010-08-05 10:31:40 +02:00
Carlos Garcia Campos
76267f9d06
Add _gtk_box_get_children() internal function
...
https://bugzilla.gnome.org/show_bug.cgi?id=625300
2010-08-05 09:51:15 +02:00
Matthias Clasen
dcdb00adb4
Avoid warnings with tooltips on toplevels
...
This was reported for tooltips on statusicons in bug 625235, but
it was affecting regular toplevel windows as well.
2010-08-05 00:12:41 -04:00
Matthias Clasen
92d34337f7
Re-add a lost Since: line
...
Pointed out in bug 579583
2010-08-04 22:58:14 -04:00
Matthias Clasen
519eae8729
Don't allocate space for "" in scale marks
...
Turns out GtkBuilder ends up creating marks with non-NULL
empty texts, so ignore those. Bug 614443, reported by Filippo Argiolas.
2010-08-04 21:47:54 -04:00
Philip Withnall
3a34295b9c
Add (transfer none) annotation to gtk_tree_selection_get_selected_rows()
...
Closes: bgo#625650
2010-08-05 00:53:43 +01:00
Philip Withnall
080e8ab0a8
Add (inout) annotation to gtk_tree_model_iter_next()
...
Closes: bgo#625650
2010-08-05 00:53:36 +01:00
Paolo Borelli
cffda84e93
Annotate GtkTextBuffer insert methods
2010-08-04 21:04:04 +02:00
Cody Russell
cd3510ce1f
Change GtkCalendar's inner border and separator values from hard-coded
...
ones to using style properties.
https://bugzilla.gnome.org/show_bug.cgi?id=624779
2010-08-03 10:45:14 -05:00
Javier Jardón
237ed3bbf8
Remove some unused variables
2010-08-03 12:44:52 +02:00
Fridrich Štrba
c4b129bac2
Fix 32-bit Windows build using mingw-w64 toolchain
2010-08-03 03:01:49 +02:00
Fridrich Štrba
02068350ff
Make the Windows manifest correspond to the name of the binary
2010-08-03 02:49:01 +02:00
Benjamin Otte
5e8c274e32
progressbar: Remove act_mode_enter vfunc
...
It doesn't make sense to have a vfunc for this.
2010-07-31 22:42:59 +02:00
Benjamin Otte
97f361c98f
progressbar: Remove offscreen pixmap
...
Why did the progressbar keep an offscreen pixmap anyway? It didn't even
double buffer...
2010-07-31 22:42:59 +02:00
Benjamin Otte
ca513cec2e
progressbar: Remove paint vfunc
...
Unconditionally call gtk_progress_bar_paint() instead. It was called in
various places instead of the vfunc already anyway.
2010-07-31 22:42:59 +02:00
Benjamin Otte
de401fd06d
progressbar: Remove unused update vfunc
2010-07-31 22:42:59 +02:00
Benjamin Otte
5d5332a493
paned: Remove unused GdkGC
2010-07-31 22:41:39 +02:00
Benjamin Otte
5649431acb
docs: Remove mention of gdk_draw_drawable()
...
That function is about to die.
2010-07-26 16:42:49 +02:00
Benjamin Otte
610e29892e
style: Draw insertion cursor with Cairo
2010-07-26 16:42:49 +02:00
Benjamin Otte
9bac13b1f5
Remove _gtk_widget_get_cursor_gc() function
...
It's unused now.
2010-07-26 16:42:48 +02:00
Benjamin Otte
761b0ea3ae
testing: Use Cairo calls instead of gdk_draw_line() to test server sync
2010-07-26 16:42:48 +02:00
Benjamin Otte
c122d31c29
decorations: Draw text with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
a8d805ffbc
decorate: Draw decorations using Cairo
...
Patch is untested, is there an example using this?
2010-07-26 16:42:47 +02:00
Benjamin Otte
ff25b0dc20
hsv: Remove unused variable
2010-07-26 16:42:47 +02:00
Benjamin Otte
5cd6d309ea
treeview: Draw the dnd pixmaps with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
da426ec97c
treeview: Draw lines with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
8dd3317502
treeview: Unify all line drawing into the same function
...
This is useful because the dashing stuff needs to be done and it seems
like a good idea to unify it.
2010-07-26 16:42:47 +02:00
Benjamin Otte
526aac1fda
treeview: Draw column reordering arrows with Cairo
2010-07-26 16:42:47 +02:00
Benjamin Otte
41621e212b
ruler: Replace gdk_draw_drawable calls with Cairo
...
and get rid of the custom GC
2010-07-26 16:42:47 +02:00
Benjamin Otte
5fd0c28c78
menu: replace gdk_draw_drawable() call with Cairo equivalent
2010-07-26 16:42:47 +02:00
Benjamin Otte
671c506dfc
filechooser: Remove commented out code
...
It wouldn't compile with current APIs anyway
2010-07-26 16:42:47 +02:00
Benjamin Otte
4181abd69a
progressbar: Use cairo instead of gdk_draw_drawable()
2010-07-26 16:42:47 +02:00
Benjamin Otte
6eed185502
spinner: We want the default colormap, not the RGB colormap
...
GtkSpinner doesn't use GdkRGB
2010-07-26 16:42:46 +02:00
Benjamin Otte
8f6a014de4
image: Use Cairo instead of gdk_draw_drawable()
2010-07-26 16:42:46 +02:00
Benjamin Otte
847d401df3
image: replace gdk_draw_pixbuf() call with Cairo equivalent
2010-07-26 16:42:46 +02:00
Benjamin Otte
0310626938
textview: draw dnd icon with Pango
2010-07-26 16:42:46 +02:00
Benjamin Otte
dec093d9f1
textview: Draw selection background with Cairo
2010-07-26 16:42:46 +02:00
Benjamin Otte
3e469d737e
textview: Draw drag icons using Cairo
2010-07-26 16:42:46 +02:00
Benjamin Otte
f1074be1ed
textview: Use _gtk_widget_get_cursor_color() and Cairo
...
Previously the code was using _gtk_widget_get_cursor_gc()
2010-07-26 16:42:46 +02:00
Benjamin Otte
8c035b6048
textview: Draw empty shape logo with Cairo
2010-07-26 16:42:46 +02:00
Benjamin Otte
373128ce29
textview: replace gdk_draw_pixbuf() call with Cairo version
2010-07-26 16:42:46 +02:00
Benjamin Otte
de6314d084
colorbutton: Render with Cairo
...
In particular, this gets rid of gdk_draw_pixbuf() and GdkGC usage.
2010-07-26 16:42:46 +02:00
Benjamin Otte
d203b830a9
entry: replace gdk_draw_pixbuf() call with Cairo version
2010-07-26 16:42:46 +02:00
Szilárd Pfeiffer
ac34031b4e
Moved the drawing of horizontal grid lines after cell drawing.
...
Without the change if the cell background is set the horizontal
grid line cannot be seen.
2010-07-25 14:50:12 +02:00
Federico Mena Quintero
917f5c1272
Clarify what the @event is used for when calling gtk_drag_begin()
...
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2010-07-23 11:51:46 -05:00
Christian Dywan
1c5ee1df12
Correct marshaller for switch-page and adjust emission from menu
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=624687
2010-07-23 13:21:33 +02:00
Stanislav Brabec
ccc3d2c69f
Fix stuck pointer grab due to passing GDK_CURRENT_TIME to gtk_drag_begin()
...
If gtk_drag_begin() gets passed GDK_CURRENT_TIME, try to use
gtk_get_current_event_time(). If it fails, use GDK_CURRENT_TIME when
ungrabbing in gtk_drag_end().
For more see https://bugzilla.gnome.org/show_bug.cgi?id=623865
2010-07-22 16:20:06 -05:00
Javier Jardón
c1a2ecc369
Check if childs actually exists before using it
...
Check seems to have gone lost during GtkBin sealing in commit 4427760b
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=624707
2010-07-22 17:17:43 +02:00
Javier Jardón
6852137e13
Move GtkBoxChild from the public .h to gtkbox.c
...
https://bugzilla.gnome.org/show_bug.cgi?id=624397
2010-07-20 02:58:36 +02:00
Javier Jardón
82efd2d92f
Do not use GtkBoxChild in GtkStatusBar
...
https://bugzilla.gnome.org/show_bug.cgi?id=624397
2010-07-20 02:35:49 +02:00
Javier Jardón
910ad4872c
gtkentrycompletion: check return value because It can be non-UTF8
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=624270
2010-07-19 23:56:22 +02:00
Javier Jardón
cd9a9e1548
GtkWindowGroup: Add guards to some gtk_window_group_* functions
2010-07-19 17:53:51 +02:00
Javier Jardón
9ee3d73a19
Add _gtk_check_menu_item_set_active() internal function
...
It's needed by gtkradiomenuitem
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=624432
2010-07-19 16:08:07 +02:00
Christian Persch
1af1362a36
gtknotebook: Fix critical warnings on scroll events
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=604391
2010-07-19 15:28:03 +02:00
Ted Gould
6330ea9e43
gtkstock: Adding a File label stock item.
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=622658
2010-07-19 15:26:18 +02:00
Javier Jardón
1bfa931e20
Add _gtk_toggle_action_set_active() internal function
...
It's needed in gtkradioaction
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=624540
2010-07-19 15:16:03 +02:00
Carlos Garnacho
4682d563cf
GtkWindow: keep a reference of the widget on focus change.
...
Focus out could lead to the widget being destroyed (for example,
in editable cell renderers when DnD starts), so keep the widget
alive while iterating through the devices.
2010-07-19 15:08:43 +02:00
Javier Jardón
0fd82767ff
gtktextbuffer: Remove GET_PRIVATE macro
...
It's only needed one time and should not be used again in the code.
2010-07-19 15:01:02 +02:00
Ignacio Casal Quinteiro
a1be4eccb0
Move GtkTextBuffer sealed attributes to private struct.
2010-07-17 10:39:37 +02:00
Matthias Clasen
271d66fc81
Remove accidental addition
2010-07-16 01:22:01 -04:00
Matthias Clasen
7491e9e97a
Allow windows to be dragged by clicking on empty areas
...
Allow windows to be dragged by clicking on empty areas in menubars
and toolbars. This is under theme control, via the GtkWidget::window-dragging
style property. The idea is that it makes sense to turn this on if a
theme makes the window frame and the menubar/toolbar appear visually
contiguous.
The main patch was written by Cody Russell, with a contribution by
Ayan George. See bug 611313.
2010-07-16 01:15:47 -04:00
Paolo Borelli
0754f2d72f
Do not use GtkBoxChild in GtkButtonBox.
...
Do not store the is_secondary bit in the deprecated parent struct, use a
simple flag on the object instead. Fixes bug #624367 .
2010-07-15 22:42:07 +02:00
Javier Jardón
133f0744b9
docs: gitignore GtkRecentManager .sgml template
...
THis completes commit 8eeeb97de6
2010-07-15 15:43:48 +02:00
Emmanuele Bassi
8eeeb97de6
docs: Inline GtkRecentManager documentation
2010-07-15 09:10:55 +01:00
Javier Jardón
cfa241a891
Remove GtkRecenManager:limit deprecated property
2010-07-15 03:12:12 +02:00
Javier Jardón
678e738f8d
Deprecate GtkRecenManager::limit property
...
The :limit property of GtkRecentManager does not serve any useful
purpose: the length of the list should be managed by the view
(implementing GtkRecentChooser), and not by the model (the recent
manager).
https://bugzilla.gnome.org/show_bug.cgi?id=624333
2010-07-15 02:40:28 +02:00
Jonh Wendell
5c2966dda3
Do not access an invalid ActionGroup. Closes #624362 .
2010-07-14 14:50:28 -03:00
Javier Jardón
8fbccfb1a9
GtkTreeView: unseal private pointer
2010-07-14 02:24:58 +02:00
Javier Jardón
66c0673a41
GtkTreeModelFilter: unseal private pointer
2010-07-14 02:24:58 +02:00
Javier Jardón
aedc5e967f
GtkToolItem: unseal private pointer
2010-07-14 02:24:58 +02:00
Javier Jardón
c90ca18c2f
GtkToggleToolButton: unseal private pointer
2010-07-14 02:24:58 +02:00
Javier Jardón
87b0f02403
GtkPrintUnixDialog: unseal private pointer
2010-07-14 02:11:00 +02:00
Javier Jardón
9db9c5f247
GtkPrintOperation: unseal private pointer
2010-07-14 02:07:04 +02:00
Javier Jardón
6fae72c419
GtkExpander: unseal private pointer
2010-07-14 02:01:20 +02:00
Javier Jardón
a2fef51b64
GtkToolButton: unseal private pointer
2010-07-14 01:58:29 +02:00
Javier Jardón
461f055da6
GtkAlignment: move public members to private structure
2010-07-14 01:48:53 +02:00
Javier Jardón
5828453ae5
Use accessor functions to access GtkAlignment
2010-07-14 01:48:53 +02:00
Javier Jardón
e1184e362c
GtkViewport: move public members to private structure
2010-07-14 01:17:28 +02:00
Javier Jardón
3ea904fa49
gtkuimanager: unseal private pointer
2010-07-14 01:17:28 +02:00
Javier Jardón
18a06d6b6a
gtktoggleaction: move public members to private structure
2010-07-14 01:17:28 +02:00
Javier Jardón
3ce68cd5de
Use accessor functions to access GtkToggleAction
2010-07-14 01:17:28 +02:00
Javier Jardón
e69979f7b6
gtktearoffmenuitem: Move public members to private structure
2010-07-14 01:17:28 +02:00
Jonh Wendell
5f1b5d2406
Merge branch 'windows_list'
2010-07-13 16:49:21 -03:00
Javier Jardón
703f7121ae
GtkTable: move public members to private structure
2010-07-13 19:40:50 +02:00
Javier Jardón
1af22acbf7
Use accessor functions to access GtkTable
2010-07-13 19:40:50 +02:00