Matthias Clasen
753f372c01
Remove more unwanted garbage
2011-02-21 18:52:27 -05:00
Matthias Clasen
c9f0d78775
Remove some unwanted garbage
2011-02-21 18:41:46 -05:00
Matthias Clasen
f90f84bbc3
Fix distcheck
2011-02-21 18:34:09 -05:00
Matthias Clasen
cfba3a8f40
Update NEWS
2011-02-21 18:09:57 -05:00
Matthias Clasen
700276eae4
Don't export extra symbols for accessibility
2011-02-21 17:34:51 -05:00
Alexander Shopov
48ef37e489
Updated Bulgarian translation
2011-02-21 23:58:54 +02:00
A S Alam
c0daaccd09
update Punjabi Translation by A S Alam
2011-02-21 07:04:27 +05:30
Marc-André Lureau
f598f75dfb
gdk_cursor_new_from_pixmap: Fix gdk_display_is_closed call
...
This was typoed in commit dfe6ba932c
https://bugzilla.gnome.org/show_bug.cgi?id=642843
2011-02-20 20:11:13 -05:00
Benjamin Otte
4a286010d3
docs: Fix typo
2011-02-21 00:06:08 +01:00
Benjamin Otte
5f2ac56ec6
docs: Replace pixmap use in migration guide with cairo surfaces
...
Merge my patch for this with Matthias' previous patch and keep the best
of both.
https://bugzilla.gnome.org/show_bug.cgi?id=642677
2011-02-20 23:46:58 +01:00
Benjamin Otte
ff5d4e13de
textview: Remove x/y arguments from render_para() func
...
We were only passing 0 anyway and it's easy to translate the cairo
context in use instead of passing x/y coordinates.
2011-02-20 23:43:42 +01:00
Benjamin Otte
c647085e76
textview: Translate the cairo context instead of keeping y value
...
This avoids overflow when transforming a large value to a pango unit.
To reproduce the problem:
seq 200000 > test.txt && tets/print-editor test.txt
Then scroll to around line 140.000 to see it (depends on font size of
course).
2011-02-20 23:43:42 +01:00
Matthias Clasen
608c1e40eb
Remove no-longer existing API from the migration guide
...
Some parts of the migration guide were written before the demise
of pixmaps, and still referred to pixmap API in their replacements.
2011-02-20 17:05:04 -05:00
Tor Lillqvist
acc01ac944
Tweak include order a bit to get around compilation errors
...
wintab.h defines an INT() macro that interfers with some lines in
commctrl.h.
2011-02-20 23:56:13 +02:00
Matthias Clasen
14fcfd3f7a
Fix spelling
...
It is 'accessible', not 'accesible'.
2011-02-20 16:46:27 -05:00
Matthias Clasen
48b0a55775
React to is-focus change, not ignore it
...
A very old bug, noticed in
https://bugzilla.gnome.org/show_bug.cgi?id=642791
2011-02-20 16:45:41 -05:00
Jorge González
bffd26e476
Updated Spanish translation
2011-02-20 18:48:11 +01:00
Jorge González
3379c52f65
Updated Spanish translation
2011-02-20 18:47:10 +01:00
Jorge González
b9b07b2178
Updated Spanish translation
2011-02-20 18:22:59 +01:00
Bruce Cowan
5b420c024d
Updated British English translation
2011-02-20 17:02:13 +00:00
Gabor Kelemen
00f960f5b6
Updated Hungarian translation
2011-02-20 15:56:33 +01:00
Matthias Clasen
1fb8812082
Correctly treat GdkColor properties
...
Noticed by Daniel Garcia,
https://bugzilla.gnome.org/show_bug.cgi?id=642782
2011-02-20 09:49:04 -05:00
Daniel Mustieles
5e5f232e78
Updated Spanish translation
2011-02-20 14:02:24 +01:00
Tor Lillqvist
8e6932f46e
Handle emulated keyboard input that arrives as VK_PACKET
...
Fixes bug #642772 . Thanks to the anonymous bug reporter for providing
a test program.
2011-02-20 01:39:13 +02:00
Matthias Clasen
50233edbc9
Replace GtkStyle uses from migration guide examples
...
Part of https://bugzilla.gnome.org/show_bug.cgi?id=642677
2011-02-19 13:47:43 -05:00
Matthias Clasen
5cb6beec54
Fix a typo
...
https://bugzilla.gnome.org/show_bug.cgi?id=642751
2011-02-19 13:35:55 -05:00
Andre Klapper
1a645d4e61
Fix typo
2011-02-19 19:34:30 +01:00
Matthias Clasen
2180267f5d
Plug a memleak in the tracker search engine
...
Patch by Vincent Untz,
https://bugzilla.gnome.org/show_bug.cgi?id=642771
2011-02-19 13:31:50 -05:00
Matthias Clasen
84b259d076
Make gtk_combo_box_text_get_active_text() behave as documented
...
If there is an entry, it is supposed to return the contents
of the entry. Pointed out by Allin Cottrell,
https://bugzilla.gnome.org/show_bug.cgi?id=642681
2011-02-19 13:27:51 -05:00
Matthias Clasen
8d9144a0c4
Use the correct function to free boxed GdkColors
...
This fixes a segfault in gtk3-demo when running under accerciser.
2011-02-19 08:34:21 -05:00
Javier Jardón
d1fbb52eb4
docs: migrating-2to3: improve cross-reference
2011-02-18 22:17:04 +00:00
Javier Jardón
5a987c314b
docs: migrating-2to3: Make the examples look prettier
2011-02-18 22:09:40 +00:00
Matthias Clasen
6d3b8c2c6b
GtkSwitch: Add an AtkAction implementation
2011-02-17 23:06:33 -05:00
Matthias Clasen
163f0daf6a
GtkSwitch: Use ATK_DEFINE_TYPE properly
2011-02-17 21:55:54 -05:00
Matthias Clasen
edeb6aaf88
Hypertext does not really make sense for GtkLinkButton
...
Instead, implement HyperLinkImpl and return the single link
object. This commit also adds an AtkAction implementation
for the link object.
2011-02-17 21:01:07 -05:00
Matthias Clasen
d6e3855f95
GailEntry: remove idle if cell editing is canceled
...
This avoids warnings when cell editing is interrupted e.g. by
adding or removing a row.
2011-02-17 19:17:36 -05:00
Matthias Clasen
f3687a9490
GailEntry: remove idle if cell editing is canceled
...
This avoids warnings when cell editing is interrupted e.g. by
adding or removing a row.
2011-02-17 19:06:19 -05:00
Matthias Clasen
0127d0bbc7
gtk-demo: plug a memleak in the editable cells demo
2011-02-17 18:49:01 -05:00
Matthias Clasen
e7d4d77093
Fix a memory leak with file chooser previews
2011-02-17 18:34:28 -05:00
Matthias Clasen
d93934ba6c
gtk-demo: Make the menu example work again
2011-02-17 16:40:00 -05:00
Matthias Clasen
c9b152ec71
Remove a leaking get_name implementation
...
This was leaking a lot of memory; just rely on atk_object_get_name.
2011-02-17 15:57:39 -05:00
Matthias Clasen
91b8417d35
Don't leak the GDir in the iconview example
2011-02-17 15:57:39 -05:00
Carlos Garnacho
3f78b251b9
Free event axes for double/triple click events.
...
The button event axes are copied over when synthesizing
these events, so free them as well in gdk_event_free().
2011-02-17 20:45:32 +01:00
Carlos Garnacho
3100b76ba9
Fix parsing of color names containing numbers
...
They were being defined correctly through @define-color
in CSS, but parsing failed at the moment of creating
GtkSymbolicColors depending on these.
2011-02-17 20:10:49 +01:00
Matthias Clasen
bdacdfb78b
Check if the accessible is actually an AtkAction
2011-02-17 13:29:59 -05:00
Matthias Clasen
ba6107d39a
GailProgressBar: make value setters work
2011-02-17 13:20:27 -05:00
Matthias Clasen
3e4780b2e6
Add forgotten include
2011-02-17 13:17:09 -05:00
Matthias Clasen
13d717e2ce
Fix includes in gtkassistant.c
...
Also fix a bad case in gtk_assistant_accessible_get_n_children.
2011-02-17 12:35:07 -05:00
Matthias Clasen
7bddfb5790
GtkAssistant: Use _gtk_accessible_set_factory_type
2011-02-17 12:25:23 -05:00
Matthias Clasen
1692829594
GtkGrid: Avoid problems with uninitialized memory
...
valgrind complained about these, and they make for bad size allocation
and the occasional crash.
2011-02-17 11:53:38 -05:00
Runa Bhattacharjee
da93864f58
Updated Bengali India Translation
2011-02-17 20:31:19 +05:30
Runa Bhattacharjee
515f0a47a9
Updated Bengali India Translation
2011-02-17 20:02:47 +05:30
Matthias Clasen
af0db9188a
Add a AtkHypertext implementation for GtkLinkButton
...
https://bugzilla.gnome.org/show_bug.cgi?id=586201
2011-02-17 07:36:42 -05:00
Emmanuele Bassi
64934a7623
m4: Fix GTK_CHECK_BACKEND() to also check for a minimum version
...
This should make the macro slightly more useful.
Update the documentation mentioning the macro as well.
2011-02-17 09:33:07 +00:00
Emmanuele Bassi
a88a1fc832
Build fix in GtkSeparatorMenuItem
...
https://bugzilla.gnome.org/show_bug.cgi?id=642541
2011-02-17 09:24:25 +00:00
Matthias Clasen
ed901afe37
Use _gtk_accessible_set_factory_type in GtkSeparatorMenuItem
2011-02-17 01:34:10 -05:00
Matthias Clasen
221415f71f
Use _gtk_accessible_set_factory_type in GtkSwitch
2011-02-17 01:32:24 -05:00
Matthias Clasen
e757d1b2d2
Use _gtk_accessible_set_factory_type for GtkIconView
2011-02-17 01:30:33 -05:00
Matthias Clasen
9d321437b6
Add a private function for accessible factory registration
...
This avoids repeating the same code for each widget that
has its own accessible implementation inside GTK+.
2011-02-17 01:24:43 -05:00
Matthias Clasen
4a4004b706
Add an a11y implementation to GtkSeparatorMenuItem
...
Its all boilerplate, and it more than doubles the line count.
Yay :-(
2011-02-17 00:44:26 -05:00
Matthias Clasen
fd069132fd
ifdef X11-specific parts in gail
...
GTK_IS_PLUG() and GTK_IS_SOCKET() now need this protection.
https://bugzilla.gnome.org/show_bug.cgi?id=642263
2011-02-16 23:56:33 -05:00
Matthias Clasen
14cd22996d
Remove a bunch of crazy code from gail
...
...and replace it with only slightly less crazy code.
No need to create an destroy hash tables for each key press.
2011-02-16 23:30:21 -05:00
Matthias Clasen
292e23f515
Forgotten file
2011-02-16 23:26:36 -05:00
Matthias Clasen
66db0d698a
gail: Fix the atk_add_key_event_listener implementation
...
Based on a patch by Alejandro Piñeiro Iglesias,
https://bugzilla.gnome.org/show_bug.cgi?id=599907
2011-02-16 22:57:25 -05:00
Matthias Clasen
4757979075
gail: support indeterminate state of check menuitems
...
Patch by Szilárd Pfeiffer
https://bugzilla.gnome.org/show_bug.cgi?id=626730
2011-02-16 22:35:16 -05:00
Matthias Clasen
f746329933
Fix gailstatusbar problems
...
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=630971
2011-02-16 21:58:10 -05:00
Matthias Clasen
405b54c72e
Check the return value of gtk_tree_model_get_iter
...
Noticed in passing, didn't really see it crash there, but
better safe than sorry.
2011-02-16 18:48:42 -05:00
Matthias Clasen
0c3da06a62
gtk_tree_model_filter_row_deleted: don't emit signals too early
...
gtk_tree_model_filter_row_deleted was emitting ::row-deleted while
the internal state of the model was still in disarray, causing
segfaults e.g. when mapping the file chooser with accessibility
turned on. This is just a bandaid fix, and doesn't try address
any of the deeper problems of the filter model code.
I did take the time to reduce rampant variable shadowing in that
function, though.
2011-02-16 18:48:42 -05:00
Emmanuele Bassi
32298832ed
Allow checking for GDK backends
...
Now that a single shared object can contain multiple backends we also
need to provide a simple way for third party code to verify that the
copy of GDK they are linking to supports their backend.
The simplest way to verify is an m4 macro, GTK_CHECK_BACKEND(), shipped
with the gtk+ m4 macros.
The usage is pretty basic:
GTK_CHECK_BACKEND([x11], [gtk_has_x11=yes], [gtk_has_x11=no])
AM_CONDITIONAL(BUILD_X11_CODE, test "x$gtk_has_x11" = "xno")
https://bugzilla.gnome.org/show_bug.cgi?id=642479
2011-02-16 18:46:19 +00:00
Michael Natterer
68d176d80b
gtk: don't always invalidate spinbuttons on each leave_notify()
...
but only when an arrow was prelighted. Also, chain up unconditonally
in enter_notify() and leave_notify() because GtkEntry implements them
too.
2011-02-16 18:42:18 +01:00
Daniel Korostil
97d1f1d16f
Uploaded Ukranian
2011-02-16 07:30:59 +02:00
Daniel Korostil
9799519555
Updated Ukranian
2011-02-15 21:58:06 +02:00
Matthias Clasen
f04504ac94
Allow custom icon size in gtk_render_icon_pixbuf()
...
Pointed out in bug 642213.
2011-02-14 13:22:28 -05:00
Javier Jardón
b1a0a08d94
testgtk: Fix compilation warning
2011-02-13 14:21:12 +00:00
Javier Jardón
3842399b70
configure.ac: Remove fd_set checks
...
fd_set uses were removed in GTK+ 2.2
2011-02-13 12:23:01 +00:00
Martin Nordholts
a3f52949c4
Bug 633291 - Handle Shift-keys in X11 gdk_test_simulate_key()
...
If a level 1 key maps to a key value passed to
gdk_test_simulate_key(), raise the GDK_SHIFT_MASK flag so the reqested
key value is generated. Also add a regression test for this fix.
2011-02-13 12:57:01 +01:00
Javier Jardón
932ab55c65
configure.ac: Use AC_CONFIG_COMMANDS instead deprecated AC_OUTPUT_COMMANDS
2011-02-13 11:10:35 +00:00
Javier Jardón
dffc96a241
configure.ac: Use AC_PREPROC_IFELSE instead deprecated AC_TRY_CPP
2011-02-13 11:10:23 +00:00
Javier Jardón
efeade2a06
configure.ac: Use AC_RUN_IFELSE instead deprecated AC_TRY_RUN
2011-02-13 11:09:49 +00:00
Javier Jardón
d5872527e5
configure.ac: Use AC_LINK_IFELSE instead deprecated AC_TRY_LINK
2011-02-13 11:09:41 +00:00
Nguyễn Thái Ngọc Duy
8c4d8c1aed
Updated Vietnamese translation
2011-02-13 17:51:49 +07:00
Nguyễn Thái Ngọc Duy
48819b4de7
po/vi.po: import from Damned Lies
2011-02-13 17:40:54 +07:00
Benjamin Otte
33a46dd553
gdk: Select the X11 backend a the last possible backend
...
On Windows and OS X we want to prefer the native backends over the X11
backend.
On Linux, nothing changes as nobody is going to enable those backends
(and if they do, they'll know what they get).
2011-02-12 22:09:58 +01:00
Benjamin Otte
9f5c734e14
doc: Document the GDK_BACKEND environment variable
2011-02-12 22:09:58 +01:00
Benjamin Otte
a1d96af9ed
colorsel: Remove WINDOWING ifdef
...
That one was leftover from the times when GDK didn't allow pointer
warping and we had an X11-specific solution.
2011-02-12 22:09:58 +01:00
Changwoo Ryu
81229e737a
Update Korean translation
2011-02-13 04:53:59 +09:00
Matthias Clasen
9f12cc3dcd
Protect x11-specific functions in gtktypefuncs.c
...
This is just a bandaid fix, we really need to systematically collect
type functions for all backends.
2011-02-12 09:12:36 -05:00
Matthias Clasen
3138c3ddcb
No GTK_ENABLE_BROKEN anymore
...
We stopped shipping broken stuff...
2011-02-12 08:26:21 -05:00
danigm
799c3e4e57
gail: Fixing little bug, gail_misc_add_attribute returns the new attrib_set
...
Some calls to gail_misc_add_attribute doesn't assing the return
valute to attrib_set, so the attrib_set never get modified.
2011-02-12 08:17:00 -05:00
Matthias Clasen
d05d924516
Silence more compiler warnings
2011-02-12 08:01:51 -05:00
Matthias Clasen
bfd66fe3a3
Quell compiler warnings
2011-02-12 08:01:51 -05:00
Kjartan Maraas
086f266767
Updated Norwegian bokmål translation.
2011-02-12 13:44:48 +01:00
Yaron Shahrabani
c526c1bf76
Updated Hebrew translation
2011-02-12 11:39:17 +02:00
Abduxukur Abdurixit
5a86445538
Added UG translation
2011-02-12 08:18:25 +01:00
Matthias Clasen
10ebea8c03
Use standard icon names
2011-02-11 23:53:39 -05:00
Matthias Clasen
728a45fc1f
Remove confusion over XI2 defines
...
Some places were using XINPUT_2, others XINPUT_XI2. Since configure
defines XINPUT_2, use that throughout.
2011-02-11 23:30:01 -05:00
Benjamin Otte
de9a082ddb
x11: Make headers identical no matter if we run with or without XI2
...
Previously we weren't installing the device headers when compiling
without XINPUT support. But we would include them from gdkx.h, so
essentially the build was broken.
With this patch the types will exist but not do anything.
2011-02-12 01:27:40 +01:00
Benjamin Otte
30abd4d8b5
x11: Fix struct definition for GdkDeviceManagaerXI2
2011-02-12 00:16:03 +01:00
Benjamin Otte
ac6c6b03d9
gtk: Fix warnings for dnd code without XInput
2011-02-11 23:53:48 +01:00
Benjamin Otte
e9ff457a40
x11: Make the device manager struct actually subclass the correct device
2011-02-11 23:53:14 +01:00
Benjamin Otte
ccc3679a62
stylecontext: Use the common approach for priate pointers
...
Has two advantages:
1) consistency
2) "print *context->priv" actually works in gdb
2011-02-11 23:21:11 +01:00
Benjamin Otte
0bd0854d4d
icontheme: constify arguments to gtk_icon_theme_load_symbolic()
2011-02-11 23:21:11 +01:00
Benjamin Otte
b1f2e5bfa3
x11: Fix build without Xinput
...
Missing ifdefs
2011-02-11 23:21:11 +01:00
Colin Walters
63b415df92
docs: Link to all versions of both GTK3 and GTK2
...
Now that library supports both cleanly, fix the links so that
the user can go from the online doc to any version better.
2011-02-11 12:39:07 -05:00
Chun-wei Fan
d847f489f0
Win32 Visual C++ Support: Some more clean-ups
...
Update gtk+.vsprops...
Since gdkconfig.h should now reside in gdk/, there
is no longer need to create a lib/gtk-3.0/include folder.
2011-02-11 18:41:22 +08:00
Chun-wei Fan
7cb41b6561
gdk/gdkconfig.h.win32: Make it more up-to-date
...
Make this pre-configured file to be more like the one used by the existing
X11 version, but using GDK_WINDOWING_WIN32 for obvious reasons.
2011-02-11 18:07:05 +08:00
Michael Natterer
1865011b7f
gtk: don't send BUTTON_RELEASE to unrealized widgets
...
which happened when the source widget was hidden or destroyed while a
drag was going on, like when dragging from a popup that got a grab
broken as result of the dnd operation.
2011-02-11 10:48:43 +01:00
Chun-wei Fan
bba7a98cc6
Visual C++ support: Fix the gdk-win32 Project
...
Apparently I previously had one of the source files wrong here...
Update this to reflect the correct file.
My fault for not seeing this earlier-sorry. DOH.
2011-02-11 17:45:32 +08:00
Matthias Clasen
d4ac3c8561
Bump version to 3.0.1
2011-02-10 15:27:54 -05:00
Matthias Clasen
edf592024b
Correct sonames appearing in the docs
2011-02-10 15:02:33 -05:00
Matthias Clasen
10b7f70bb2
Mention library soname change
2011-02-10 15:00:20 -05:00
Matthias Clasen
524ce69bcb
Bump the version to 3.0.0
...
At the same time, change the library sonames for -3.0 to just -3.
This is necessary since the 2.99 releases installed libraries like
libgtk-3.0.so.0.9903.0, and we want to prevent the library version
number from jumping back. So 3.0 will have libgtk-3.so.0.0.0.
2011-02-10 14:41:02 -05:00
Matthias Clasen
c7d41ac54f
Minor formatting tweak
2011-02-10 14:37:31 -05:00
Matthias Clasen
9455ce96ca
Remove a long-unsupported script that does nothing
2011-02-10 14:31:31 -05:00
Murray Cumming
b91549a38a
Add "extern C" declarations around AppChooser headers.
...
This is necessary to allow linking from code compiled as C++.
2011-02-10 10:02:38 +01:00
Matthias Clasen
3f1c95de8d
Don't try to modify readonly strings
...
This was an oversight in the recent accel label improvement.
When we get an untranslated string back from gettext(), it is
not ok to replace '_' by ' ' in-place. Instead, do it while
appending to the GString.
https://bugzilla.gnome.org/show_bug.cgi?id=641912
2011-02-09 17:32:05 -05:00
Matthias Clasen
981cadb578
Make online references point to the right place
2011-02-09 16:54:19 -05:00
Matthias Clasen
13d249ae19
Change the title of the GDK docs to mention '3'
...
This is necessary in preparation for having 2.x and 3 docs
listed next to each other on library.gnome.org.
2011-02-09 16:44:19 -05:00
Carlos Garnacho
e1dbc871fe
Change required glib version from "2.28" to "2.28.0"
...
Fixes the recent configure error:
checking for GLIB - version >= 2.28... 2.28, bad version string
introduced by 95446c311
2011-02-09 20:08:35 +01:00
Carlos Garnacho
d1632f87d1
Avoid the need for cairo_push_group() in gtk_render_background()
...
This operation is potentially expensive, so the code has been
refurbished so avoid the cases it was needed for. Antialiased
cairo_clip() has been also reduced to transitions with surface
patterns involved.
2011-02-09 20:05:32 +01:00
Tristan Van Berkom
f2ff2138db
Added padding to GtkTextLineDisplay struct for an addition of GdkRGBA pointer comming soon.
2011-02-10 04:04:31 +09:00
Javier Jardón
95446c311d
configure.ac: Depend on stable versions of other libraries
2011-02-09 15:55:06 +00:00
Matthias Clasen
f0fabcd9e4
Quell another warning
2011-02-09 09:25:31 -05:00
Matthias Clasen
69745041f8
Add some more info for desktop app info
...
Small gotchas that can easily be avoided.
2011-02-09 09:01:16 -05:00
Matthias Clasen
8291530abf
More GDK documentation tweaks
2011-02-09 02:44:19 -05:00
Garrett Regier
adef25626e
Fix annotation that broke the docs
...
It was added in 0e795b67c3
and removed in f6cc08fa57 .
2011-02-08 23:06:42 -08:00
Matthias Clasen
1f4bb70bac
Give the GDK docs some love
...
Reorganize some sections, drop the largely redundant multihead
section, add some more information about multiple backends.
2011-02-09 01:32:24 -05:00
Matthias Clasen
7e7eaf315b
Documentation tweaks
2011-02-09 00:21:37 -05:00
Matthias Clasen
5ada6ac197
Remove no-longer exported symbols from the symbol list
2011-02-08 23:21:40 -05:00
Matthias Clasen
49433673fc
Don't export GtkModifierStyle symbols
...
This is not public API, so don't export it.
2011-02-08 23:21:39 -05:00
Matthias Clasen
861ba00166
Don't export gtk_cell_area_box_init_groups
...
That function can't be meant to be public, since it take
a GtkCellAreaBoxContext argument, which is not a public type.
2011-02-08 23:21:39 -05:00
Matthias Clasen
394ae46ec0
Add some missing symbols to the docs
2011-02-08 23:21:39 -05:00
Javier Jardón
32398f11fa
README.in: Fix link to the migration guide
2011-02-09 01:10:38 +00:00
Matthias Clasen
f6cc08fa57
Remove annotation that breaks the docs
...
Before adding annotations, please check that gtk-doc can handle
them. Else they will be stripped out again.
2011-02-08 20:00:27 -05:00
Matthias Clasen
57d5328685
Add links to the migration guide
2011-02-08 19:07:46 -05:00
Matthias Clasen
83478ae3a3
Define the required introspection version in configure.ac
2011-02-08 18:40:08 -05:00
Matthias Clasen
e56de510c0
Update NEWS
2011-02-08 18:32:45 -05:00
Daniel Mustieles
a189d1e4a0
Updated Spanish translation
2011-02-08 21:01:05 +01:00
Matthias Clasen
d2bdd50a0b
Extend the mixed-dependency check to modules as well
...
This helps prevent accidents with GTK_PATH.
2011-02-08 13:49:16 -05:00
Matthias Clasen
99b5af11e4
Add warnings about environment variables
...
These variables all get read by GTK 2.x as well, which makes
them dangerous at best.
2011-02-08 13:11:18 -05:00
Johan Dahlin
6a40c0f865
introspection: Remove redundant include
...
Gdk-3.0 is already included above via --include-uninstalled, so
don't also specify it in INCLUDES. Doing so breaks if it isn't
installed already, since we try to find the gdk-3.0.pc.
2011-02-08 13:30:24 -02:00
Johan Dahlin
358a2b8675
Rename time to time_ to avoid a scanner warning
2011-02-08 13:29:57 -02:00
Johan Dahlin
60e0acfc11
Remove tab as it confused g-ir-scanner
2011-02-08 13:20:53 -02:00
Colin Walters
7711f9fad4
introspection: Remove redundant include
...
Gdk-3.0 is already included above via --include-uninstalled, so
don't also specify it in INCLUDES. Doing so breaks if it isn't
installed already, since we try to find the gdk-3.0.pc.
2011-02-08 10:16:55 -05:00
Benjamin Otte
1483145806
API: image: Move private struct definitions into private header
...
They weren't privatized because the dnd code used them, too. But a
private header can allow the dnd code to be nasty, so go dnd code!
2011-02-08 08:58:49 +01:00
Benjamin Otte
c1f8330a28
gdk: Fix typo in documentation string
2011-02-08 08:58:49 +01:00
Carlos Garnacho
15fdf90265
doc: Add a note about prioritization of GtkStyleProviders
...
It was unclear in the docs what happened if
gtk_style_context_add_provider() and
gtk_style_context_add_provider_for_screen()
were used with the same priority.
2011-02-08 04:17:56 +01:00
Matthias Clasen
3a50b460c6
Update the context direction when emitting ::direction-changed
...
This makes the flipping example in testgtk work as expected again.
https://bugzilla.gnome.org/show_bug.cgi?id=632775
2011-02-07 20:37:09 -05:00
Matthias Clasen
208974636f
Set the correct initial value for the direction property
2011-02-07 20:36:46 -05:00
Carlos Garnacho
2be692687f
Fix color style properties lookup when the color resolution fails
...
The cached GValue ended up with a GtkSymbolicColor type, so
the contained value was bogus. Noticed by Mitch.
2011-02-07 19:56:17 +01:00
Matthias Clasen
23f9bdd586
Fix problems with state propagation
...
Sensitivity changes were not properly propagated down the
hierarchy. There were two issues here:
a) correctly identifying when a state change request affects
sensitivity
b) not filtering out sensitivity in gtk_widget_propagate_state(),
since gtk_widget_set_sensitivity() uses that to do its work
https://bugzilla.gnome.org/show_bug.cgi?id=641431
2011-02-07 11:27:50 -05:00
Tristan Van Berkom
1c20c93423
Optimize queue_resize_on_widget()
...
Optimized GtkSizeGroup code that is invoked for every queued resize
and every request that is not previously cached by trading qdata on
widgets for 3 extra bitfields on the GtkWidgetPrivate structure.
2011-02-08 00:39:51 +09:00
Javier Jardón
db97f8660a
Use faster new G_VALUE_COLLECT_INIT variant instead G_VALUE_COLLECT
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=641621
2011-02-07 13:14:47 +00:00
Matthias Clasen
beb8c290d1
Always chain up in ::style-updated
...
This was not handled consistently, but the default handler
does useful things, so we should always chain up.
2011-02-07 07:30:37 -05:00
Javier Jardón
14eb34874a
configure.ac: Remove some more obsolete macros
...
AC_TYPE_SIGNAL: obsolete when assuming C89 or better
AC_HEADER_SYS_WAIT: current systems are compatible with POSIX
2011-02-06 22:52:55 +00:00
Javier Jardón
8a965b9786
configure.ac: Use AC_COMPILE_IFELSE instead deprecated AC_TRY_COMPILE
2011-02-06 20:36:37 +00:00
Javier Jardón
c734bb8e83
configure.ac: Use AS_HELP_STRING instead deprecated AC_HELP_STRING
2011-02-06 20:36:37 +00:00
Javier Jardón
899019d56a
configure.ac: Remove some obsolescent macros
...
AC_C_CONST: current C compilers support const
AC_TYPE_SYGNAL: obsolete when assuming C89 or better
AC_HEADER_STDC: current systems have conforming header files
2011-02-06 20:36:37 +00:00
Matthias Clasen
9bd175536b
Add a testcase for state propagation problems
2011-02-06 14:14:48 -05:00
Kjartan Maraas
24c37e966c
Updated Norwegian bokmål translation.
2011-02-06 19:14:53 +01:00
Hans Breuer
733731e80b
No more gtk_plug_*/gtk_socket_* symbols on win32
2011-02-06 15:07:14 +01:00
Hans Breuer
b41ee31a16
win32: no more GdkNativeWindow and related changes
...
- replace GdkNativeWindow with HWND, remove type casts
- no more GdkDisplayClass::get_drag_protocol but GdkWindowImpl::get_drag_protocol
- remove *_client_message*()
2011-02-06 15:07:13 +01:00
Hans Breuer
f55ccce2d9
win32: msvc build update
2011-02-06 15:07:12 +01:00
Michael Natterer
e39e8acd67
gtk: gtk_cell_renderer_get_state(): check the widget's effective sensitivity
2011-02-06 14:47:58 +01:00
Michael Natterer
1c0f85a813
gtk: gtk_cell_renderer_get_state(): a row can be both selected and insensitive
...
so pull the SELECTED state flag out of the !sensitive branch. Also,
don't make FOCUSED depend on SELECTED here, it's up to the widget to
decide whether or not that is possible.
2011-02-06 14:45:49 +01:00
Piotr Drąg
1aaed01d4f
Updated Polish translation
2011-02-06 14:11:57 +01:00
Michael Natterer
330158977d
gtk: make the .trough background-color darker() as it was in GTK+ 2.x
2011-02-06 13:48:42 +01:00
Carlos Garnacho
42778894c0
s/state_changed/state_flags_changed/ in GtkComboBox
2011-02-06 11:21:42 +01:00
Carlos Garnacho
baa6343233
Handle insensitive cell renderer flags in gtk_cell_renderer_get_state()
2011-02-06 11:21:42 +01:00
Carlos Garnacho
217d3fd796
GtkStyleContext is meant to have a GdkScreen
...
It is used to get the default providers, without them
the style context can't do much. A check for NULL screen
is done before any sensitive call to
gtk_style_context_set_screen(), in the hope that any widget
will open the display before doing anything related to
styling. Fixes bug #641429 , reported by Bastien Nocera.
2011-02-06 11:21:42 +01:00
Michael Natterer
f23585b7bb
gtk: bail out in render_background_internal() if the extents are <= 0
...
otherwise we run into scaling the cairo_t into a borken state that's
not fixable by cairo_restore().
2011-02-06 11:17:59 +01:00
Michael Natterer
858ba35873
gtk: remove function gtk_entry_queue_draw() and call gtk_widget_queue_draw()
...
the old function was a leftover from when GtkEntry had a window
and was now invalidating the entire toplevel on each entry change.
2011-02-06 11:17:58 +01:00
Michael Natterer
c1bc521e92
gtk: get rid of two cases of invalidating the spinbutton when not needed
2011-02-06 11:17:58 +01:00
Fran Diéguez
69e4a3f235
Updated Galician translations
2011-02-06 00:26:36 +01:00
Matthias Clasen
bfaf472e70
Avoid tons of warnings from stylecontext initialization without screen
...
This reverts part of commit 4dc9b29 .
2011-02-05 11:21:21 -05:00
Matthias Clasen
2e093cdc20
Demonstrate the problem with a workaround
2011-02-05 10:58:50 -05:00
Carlos Garnacho
c0ba1c96d4
Ensure gtk_render_background()/frame() yield the same shape
...
On rounded boxes the background and the frame wouldn't fit in
perfectly, leaving some visual noise in the corners. This is now
gone.
2011-02-05 15:26:40 +01:00
Carlos Garnacho
4c40349b92
Use cairo_push_group() to mix backgrounds during transitions
...
It also helps remove the cairo_clip() call to achieve the rounded
shape.
2011-02-05 15:26:40 +01:00
Michael Natterer
c990699922
gtk: don't style GtkLabel:selected's color separately
...
or labels in selected state will not have a different color. Reviewed
by Carlos.
2011-02-05 14:10:18 +01:00
Matthias Clasen
ceeb50be9a
Don't leak a cell area context
2011-02-05 02:03:35 -05:00
Matthias Clasen
ab66ac50cf
Migration guide additions
...
Some information about plugs and sockets, and event filters.
2011-02-05 01:56:19 -05:00
Matthias Clasen
19092fe44f
Add a testcase for cell positions
2011-02-05 01:24:21 -05:00
Bastien Nocera
8f870ddcdc
gtk-demo: Use symbolic icon that exists
...
For the Images test.
2011-02-05 03:20:27 +00:00
Matthias Clasen
5f04bf6429
Simple test for display-less widget creation
2011-02-04 22:06:25 -05:00
Matthias Clasen
4dc9b294d8
Don't assume a screen exists before realize()
...
Fix for https://bugzilla.gnome.org/show_bug.cgi?id=641429
2011-02-04 22:03:11 -05:00
Matthias Clasen
2b2e607492
Improve GtkApplication migration guide
...
As pointed out in bug 641517, the examples did not actually
do the same.
2011-02-04 21:21:14 -05:00
Matthias Clasen
3c1ff82b21
Fix a memory leak in GtkCSSProvider
...
Found by Felix Riemann
https://bugzilla.gnome.org/show_bug.cgi?id=641558
2011-02-04 21:13:56 -05:00
Matthias Clasen
eaba2cd468
XI2: translate group state back into core state
...
This is necessary to make the key event translation work
as expected.
https://bugzilla.gnome.org/show_bug.cgi?id=641367
2011-02-04 21:11:40 -05:00
Matthias Clasen
d4c1dbe3d7
Pass group state to _gdk_x11_device_xi2_translate_state
...
This will be necessary to make groups work with XI2.
2011-02-04 21:11:40 -05:00
Matthias Clasen
2c352f51a0
Share code to fill GdkEventKey.string
...
This code was duplicated between the core and XI2 device manager
implementations.
2011-02-04 21:11:40 -05:00
Khaled Hosny
4960a81082
Updated Arabic translation
2011-02-05 00:32:07 +02:00
Matthias Clasen
3cb758a7b9
Add an empty English translation for properties
...
Otherwise the build is unhappy about en in LINGUAS
2011-02-04 17:18:24 -05:00
Matthias Clasen
9a7708952c
Add an English translation
...
Currently, this just includes translations for keysyms.
2011-02-04 15:35:44 -05:00
Matthias Clasen
b6783933c9
Strip XF86 prefix from untranslated keysyms
...
When we don't have translations, at least remove the
ugly XF86 prefix.
2011-02-04 15:34:36 -05:00
Matthias Clasen
08f90b71a2
Add translation entries for more common keysyms
...
In particular, the XF86 keysyms can benefit from a translation
that strips the prefix.
2011-02-04 15:33:36 -05:00
Matthias Clasen
9ba009a8eb
Remove debug spew
2011-02-04 14:05:22 -05:00
Matthias Clasen
272aa7bc55
XI2: don't translate button releases as scroll events
...
This fixes scroll-by-2 sympoms seen in combo boxes.
https://bugzilla.gnome.org/show_bug.cgi?id=639846
2011-02-04 12:54:44 -05:00
Javier Jardón
03df034684
Remove latest bits of GtkItemFactory
2011-02-04 17:30:11 +00:00
Tristan Van Berkom
012bc98936
Fixed gtk_recent_chooser_menu_set_current_filter to update the local pointer.
...
Before this patch, unsetting the filter manually before disposing
the recent chooser menu (or unsetting the filter twice), would cause
warnings (or invalid memory accesses).
2011-02-05 01:00:55 +09:00
Yaron Shahrabani
86b5252a93
Updated Hebrew translation.
2011-02-04 09:10:23 +02:00
Matthias Clasen
99691ab7aa
Protect against tree_view being NULL
...
This apparently happens when setting the "visible" property
from ui files.
https://bugzilla.gnome.org/show_bug.cgi?id=640801
2011-02-03 14:40:53 -05:00
Tristan Van Berkom
b51f3ffffc
Added set_transient_for() implementation for GdkOffscreenWindow
...
Just a noop that is better than crashing in the case this is called
(it can be called for a toplevel GtkWindow that is parented into
another widget by setting gtk_widget_set_parent_window to an offscreen
window).
2011-02-03 23:52:12 +09:00
Laszlo Pandy
395b13bbce
[GI] Add method annotation for gtk_grab_add and gtk_grab_remove.
2011-02-03 15:20:51 +01:00
Laszlo Pandy
295c2fe8d1
[GI] Add method annotations to remaining gtk_drag_* functions.
...
https://bugzilla.gnome.org/show_bug.cgi?id=639945
2011-02-03 15:10:43 +01:00
Tristan Van Berkom
d799d6d4f0
Fixing GtkColorButton to redraw itself when gtk_color_button_set_rgba() is called.
2011-02-03 23:02:15 +09:00
Tristan Van Berkom
b01fc35c18
Added default implementations of various GtkCellArea vfuncs.
...
Having default implementations on abstract classes that do nothing
or print errors make life easier for language bindings implementors,
inside GTK+ this makes little or no difference.
2011-02-03 19:03:49 +09:00
Tristan Van Berkom
ce000db7f6
Added default implementation of GtkCellRendererClass.get_request_mode()
...
Having default implementations on abstract classes that do nothing
or print errors make life easier for language bindings implementors,
inside GTK+ this makes little or no difference.
2011-02-03 19:01:55 +09:00
Matthias Clasen
7894ff4bcb
Don't g_object_unref cairo surfaces
...
This was causing warnings when dragging text from labels.
2011-02-02 22:05:26 -05:00
Piotr Drąg
a7a606e61a
Updated Polish translation
2011-02-02 18:06:02 +01:00
Piotr Drąg
0c2e2b17e4
Updated Polish translation
2011-02-02 18:06:02 +01:00
Martin Pitt
1bd36ce723
[GI] Annotate gtk_drag_{dest,source}* as methods
...
As these do not start with gtk_widget_*, the GI scanner does not recognize them
as methods. With the recently added (method) annotation [1] it is now possible
to mark them as proper methods of GtkWidget.
https://bugzilla.gnome.org/show_bug.cgi?id=639945
[1] http://git.gnome.org/browse/gobject-introspection/commit/?id=09bca85dd4
2011-02-02 17:51:48 +01:00
Changwoo Ryu
a1d5901e80
Updated Korean translation
2011-02-03 00:29:38 +09:00
Martin Pitt
0e795b67c3
[GI] Mark mis-detected constructors as such
...
constructors which take an object of the same class as its first argument are
mis-detected as method call with "self" argument by the GIR scanner. Using the
new (constructor) annotation from bug 561264, mark some of them as proper
constuctors, so that you can call them with NULL as first argument from
bindings; in particular, this fixes gdk_window_new() and the
gtk_radio_button_new_with*() constructors.
2011-02-02 15:11:06 +01:00
Matthias Clasen
3067ef4a9b
Fix the build with --enable-gtk2-dependency
2011-02-02 01:30:21 -05:00
Tristan Van Berkom
2e34842b1a
Fixed GtkCellLayout buildable implementation to set cell properties explicitly set to "" (i.e. explicitly set to nothing).
2011-02-02 15:22:31 +09:00
Tristan Van Berkom
fb3e221559
Fixed GtkContainer buildable implementation to set packing properties explicitly set to "" (i.e. explicitly set to nothing).
2011-02-02 15:22:31 +09:00
Matthias Clasen
8a2a148649
Don't build pixbuf engine, still
...
This was accidentally re-enabled together with the wimp.
2011-02-02 01:00:51 -05:00
Matthias Clasen
54c97f3ba2
Fix another GtkFixed regression, in gtk_fixed_forall()
...
b3f6f67c changed the loop from while() to for() in gtk_fixed_forall(),
but that's wrong since the callback can have side-effects on the list,
in case the current child gets removed. And that's the case when the
widget is destroyed.
Patch by Vincent Untz
https://bugzilla.gnome.org/show_bug.cgi?id=641196
2011-02-02 00:40:02 -05:00
Matthias Clasen
0ade265a69
Bump version
2011-02-02 00:36:41 -05:00
John Ralls
cfaed624be
Update quartz to reflect deletion of GdkNativeWindow and client_message functions.
2011-02-01 13:53:00 -08:00
Matthias Clasen
24de7cd86f
Add another bug ref
2011-02-01 14:11:20 -05:00
Vincent Untz
62d7593fc2
Fix crash in gtk_fixed_remove()
...
b3f6f67c changed the loop from while() to for(), but the line to move to
the next child was kept, so we could go past the end of the list.
https://bugzilla.gnome.org/show_bug.cgi?id=641176
2011-02-01 20:08:52 +01:00
Matthias Clasen
1b25489cba
Remove accidentally exported symbol
2011-02-01 13:54:27 -05:00
Matthias Clasen
b0d48f66a1
Updates for 2.99.3
2011-02-01 13:39:41 -05:00
Benjamin Otte
5f594b613e
API: gdk: Get rid of GdkNativeWindow
...
Also get rid of the GDK_NATIVE_WINDOW_POINTER define.
2011-02-01 18:51:57 +01:00
Benjamin Otte
7b5ad65e71
x11: Use Window isntead of GdkNativeWindow
2011-02-01 18:51:57 +01:00
Benjamin Otte
44c02fcbb1
API: gdk: Change get_drag_window() API
...
The previous function gdk_drag_get_protocol_for_display() took native
window handles, so it had to be changed. Because it didn't do what it
was named to do (it didn't return a protocol even though it was named
get_protocol) and because it doesn't operate on the display anymore but
on the actual window, it's now called gdk_window_get_drag_protocol().
2011-02-01 18:51:57 +01:00
Benjamin Otte
9210347600
API: gdk: Make GDK_DRAG_PROTOCOL_NONE equal to 0
...
THis way, we can do comparisons like "if (protocol)"
2011-02-01 18:51:57 +01:00
Benjamin Otte
5bc04bc07b
API: gdk: Make GdkEventSelection.requestor a GdkWindow
...
instead of a GdkNativeWindow. Also change gdk_selection_notify() API to
take a GdkWindow to match this change.
2011-02-01 18:51:57 +01:00
Benjamin Otte
c2a5d715d5
x11: Use gdk_x11_window_foreign_new_for_display() unconditionally
...
gdk_x11_window_lookup_window() calls are done by this function alreayd,
so no need to do them manually.
2011-02-01 18:51:57 +01:00
Matthias Clasen
5441ecd350
Fix a warning
2011-02-01 09:48:32 -05:00
Matthias Clasen
38045e789c
Remove a dead member
...
The client_pointer field in GdkX11DeviceManagerXI2 is not used anywhere.
2011-02-01 09:44:33 -05:00
Matthias Clasen
c79413a1df
Make xim work with XI2
...
We cannot totally ignore core key events, since XFilterEvent generates
those at times and relies on them having an effect.
https://bugzilla.gnome.org/show_bug.cgi?id=640965
2011-02-01 09:42:53 -05:00
Matthias Clasen
8448780a6c
Make treeview expanders work reliably
...
It turns out that the gtk_grab_remove() can trigger a do_prelight()
call, which may end up changing prelight_node, and then the state
gets messed up. Moving the grab removal until after we're done with
button_pressed_node and prlight_node makes expanders work reliably.
One thing that is still not right is that the expander doesn't get
prelight again after the animation is done, if you manage to release
without any additional motion events.
https://bugzilla.gnome.org/show_bug.cgi?id=641039
2011-02-01 01:32:02 -05:00
Benjamin Otte
c332ac207a
gdk: Remove GdkEventClient
...
... and all APIs making use of it.
That code like it hasn't been touched in years, Google codesearch
didn't find any users and most importantly it's a horrendous API, so
let's just make it die instead of having to port it over to
non-GdkNativeWindow usage, which would be required for multi-backend
GDK.
http://mail.gnome.org/archives/gtk-devel-list/2011-January/msg00049.html
2011-02-01 06:33:02 +01:00
Benjamin Otte
040b21e7d7
tests: Remove refreh button from testtoolbar test
...
It didn't work and did that by using APIs that are about to go away.
2011-02-01 06:33:02 +01:00
Benjamin Otte
cf94070586
testgtk: Remove ability to reload all rc files
...
That ability didn't work for a while anyway, so removing client messages
doesn't hurt.
2011-02-01 06:33:02 +01:00
Benjamin Otte
9e401bef68
tests: Remove clientmessage test
...
Client messages will not be handled by GDK3 anymore, so no need to test
them.
2011-02-01 06:33:02 +01:00
Benjamin Otte
8ecd420ede
x11: Do dnd event handling via gdk_window_add_filter()
2011-02-01 06:33:02 +01:00
Benjamin Otte
180cd853fc
x11: Use macros for byte order to set byte order
...
No need to run sophisticated functions to guess it.
2011-02-01 06:33:02 +01:00
Benjamin Otte
609ddee632
x11: Register wm_protocols function with gdk_window_add_filter()
...
The client message code is about to go away, so we need to use a
different way to get at ClientMessage output.
2011-02-01 06:33:01 +01:00
Benjamin Otte
e67347a3c8
x11: Fill in event->any.window before calling filter functions
...
a) We advertise it for GdkFilterFunc
b) It's necessary to differentiate between different event types with
multi-backend GTK.
2011-02-01 06:33:01 +01:00
Benjamin Otte
d217f4d09e
x11: Handle motif client message filter just like xdnd filters
2011-02-01 06:33:01 +01:00
Benjamin Otte
14cb485d22
x11: Use event->any.window instead of any random member
2011-02-01 06:33:01 +01:00
Benjamin Otte
fac914d70c
API: gtk: Remove client_event vfunc from GtkWidget
...
Also remove the (de-facto unused) implementation from GtkWindow that was
only used for sockets/plugs.
2011-02-01 06:33:01 +01:00
Matthias Clasen
b52db73f59
Deal gracefully with unowned selections
...
If a selection looses its owner without a replacement, owner is
None, which we did not handle very well.
https://bugzilla.gnome.org/show_bug.cgi?id=641042
2011-01-31 19:35:51 -05:00
Dan Winship
fc43e42bf2
Fix several bugs handling GtkTrayIcon symbolic colors
...
https://bugzilla.gnome.org/show_bug.cgi?id=641059
2011-01-31 19:13:29 -05:00
Matthias Clasen
6d218084c3
Clarify models vs callbacks in entry completion docs
...
See https://bugzilla.gnome.org/show_bug.cgi?id=641073
2011-01-31 19:01:16 -05:00
Kristian Rietveld
9dcdca2501
Don't use GTK_IS_PLUG for non-X11 backends
2011-02-01 00:26:04 +01:00
Kristian Rietveld
73afbc954a
Check whether mask is NULL
2011-01-31 23:54:38 +01:00
Kristian Rietveld
119d29dcb9
Only include gtktrayicon.h when building for X11
...
GtkTrayIcon depends on GtkPlug which is X11-specific. This fixes the
build for Quartz.
2011-01-31 23:54:38 +01:00
Matthias Clasen
726b0d8736
Bandaid fix for icon view subclassing
...
I've decided that it is isn't feasible to make cell areas runtime-settable
in the time we have left before 3.0, therefore, I'm going with the
approach to allow init() functions to instantiate the default cell area
and issue a warning if a construct property is ignored.
This is not ideal, but it keeps existing icon view and combo box
subclasses working.
https://bugzilla.gnome.org/show_bug.cgi?id=639139
2011-01-31 17:39:42 -05:00
Stefan Kost
1f3a5a8d92
Clarify key-{press,release}-event docs.
...
Mention key-repeat in key-press and fix a copy'n'paste in key-release docs.
2011-01-31 23:10:10 +02:00
Tristan Van Berkom
a37976dae0
Fixed GtkToolPalette ->forall implementation to be gtk_widget_destroy friendly
...
The forall() loop was buggy as it was skipping items in the list when
the current item gets removed from the groups array as a result of
calling the callback (causing memory leaks).
2011-02-01 05:02:56 +09:00
Tristan Van Berkom
ddb4b3ebe2
Added "shift" modifier versions of keybings for GtkFileChooser "folder-up"/"folder-down" bindings.
...
Also updated documentation, closes bug 322926
2011-02-01 05:02:56 +09:00
Daniel Mustieles
c01c018fde
Updated Spanish translation
2011-01-31 19:33:55 +01:00
Matthias Clasen
30958ea8ad
Fix a segfault in gtk_statusbar_remove_all
...
https://bugzilla.gnome.org/show_bug.cgi?id=640487
2011-01-31 11:50:23 -05:00
Emmanuele Bassi
d51c617e13
css-provider: Fix up the Switch style
...
As it was with the old style, when the Switch is in the "on" state the
trough should be using the selected background color.
2011-01-31 16:21:36 +00:00
Matthias Clasen
cb498c2101
Speed up expander animation
...
Go back to 200ms, which is what we had in GTK+ 2.x.
Themes can change this, of course.
2011-01-31 10:51:09 -05:00
Matthias Clasen
38f6065b2b
Make GtkEntryCompletion::match-selected arguments consistent
...
For keynav, we were still passing it the filter model.
https://bugzilla.gnome.org/show_bug.cgi?id=640698
2011-01-31 10:48:40 -05:00
Matthias Clasen
fb860a9527
Add a note to ::fill and ::expand docs
2011-01-31 10:26:28 -05:00
Matthias Clasen
a26ffdc740
Prevent a segfault in GtkPlug
...
The grabbed_keys might be NULL, so deal with that.
https://bugzilla.gnome.org/show_bug.cgi?id=641023
2011-01-31 10:17:21 -05:00
Matthias Clasen
0208539c4b
Remove RC file references from docs where appropriate
2011-01-31 09:34:46 -05:00
Matthias Clasen
677c8c2189
Remove references to RC files in the env var docs
2011-01-31 09:29:40 -05:00
Matthias Clasen
6a8d494ba1
Fix GTK_SPINNER_CLASS macro
...
https://bugzilla.gnome.org/show_bug.cgi?id=640999
2011-01-31 07:39:06 -05:00
Matthias Clasen
09a52de478
Add a missing id to the docs
2011-01-31 07:39:06 -05:00
Baurzhan Muftakhidinov
430f53bb52
Updated Kazakh translation
2011-01-31 16:22:38 +06:00
Benjamin Otte
9864445b1f
API: gdk: Change GdkEventOwnerChange to not take GdkNativeWindow
...
Use GdkWindow instead. This requires calling
gdk_x11_window_foreign_new_for_display(), so might cause a slight
performance penalty, but is required to be portable.
2011-01-31 07:17:31 +01:00
Matthias Clasen
cfa6505504
Mention key themes in the migration guide
2011-01-30 23:53:19 -05:00
Matthias Clasen
175c57ebd7
Small optimization
...
We can use the fact that all involved strings are interned; also
deprecate gtk_binding_set_add_path() in the headers, too.
2011-01-30 23:35:25 -05:00
Matthias Clasen
f67ab808fd
doc fixes
2011-01-30 23:35:25 -05:00
Matthias Clasen
b448bb81ce
Move GtkBindings docs inline
2011-01-30 23:00:12 -05:00
Matthias Clasen
dcf3430e17
Add a gtkbindingsprivate.h header
2011-01-30 21:50:54 -05:00
Matthias Clasen
8bb0d552f1
Improve binding-set parser
...
Make gtk_binding_entry_add_signal_from_string() return the expected
token in case of parsing error, so that we can return a GError
instead of spewing. Also, add a separate scope for binding-set,
since allowing {} in identifiers in SCOPE_VALUE breaks the fact
that the ; after the last assignment in a rule is optional.
2011-01-30 21:27:56 -05:00
Matthias Clasen
a04e721473
Add binding-set tests
2011-01-30 21:27:55 -05:00
Matthias Clasen
2ea010bca0
Convert remaining rc files to css
2011-01-30 21:27:55 -05:00
Matthias Clasen
f16dbe0db3
Convert the mac key theme to css
2011-01-30 21:27:55 -05:00
Matthias Clasen
c770f441ca
Convert the Emacs key theme to css
2011-01-30 21:27:55 -05:00
Matthias Clasen
bf9e59e392
Make documentation match behaviour
2011-01-30 21:27:55 -05:00
Carlos Garnacho
c0b8053089
Move key/theme CSS providers to GtkSettingsPrivate
2011-01-30 21:27:55 -05:00
Carlos Garnacho
a03e33b10b
Parse the gtk-keys.css file in the GtkSettings::gtk-key-theme-name theme path
2011-01-30 21:25:42 -05:00
Carlos Garnacho
081d5b14da
Add some bindings to testgtk.css for testing
2011-01-30 21:24:52 -05:00
Carlos Garnacho
c70b65f0eb
Document @binding-set and the gtk-key-bindings css parser property
2011-01-30 21:24:52 -05:00
Carlos Garnacho
b5bee0a827
Remove unneeded code from GtkBindingSet
2011-01-30 21:24:52 -05:00
Carlos Garnacho
9a3466832c
Hook up key bindings in CSS with key propagation.
...
This is done in the same place than it was done before the switch
to GtkStyleContext, the GtkBindingEntry has been slightly simplified
since it's now the GtkStyleContext which hands us the list
of binding sets applying to a widget, so no need to use the older
matching mechanisms.
2011-01-30 21:24:52 -05:00
Carlos Garnacho
d39f0411be
Add the gtk-key-bindings CSS parser property.
...
This property takes a list of binding set names to have these
stored as a GPtrArray containing GtkBindingSets. this property
is handled so merging GtkStyleProperties will merge both
GtkBindingSet lists.
2011-01-30 21:24:51 -05:00
Carlos Garnacho
dbff92fd9f
Add @binding-set rules to the CSS parser
...
these custom rules can be used to define key themes
as in the RC files, a series of bind/unbind rules
may be added then:
@binding foo-bar {
bind "<alt>1" { "move-cursor" (visual-positions, 1, 0) };
unbind "<ctl>d"
}
2011-01-30 21:24:51 -05:00
Carlos Garnacho
53ca6eb0b5
Add gtk_binding_entry_add_signal_from_string()
...
This function rescues part of the old parser (which
is now standalone) to load a bind/unbind definition
string into a GtkBindingSet.
2011-01-30 21:24:51 -05:00
Bastien Nocera
b98caf9385
GtkCssProvider: Take into account variant
...
When loading a theme, make sure we take into account the variant
so we don't use the plain version when the theme changes.
Also make sure to fallback to the plain theme when loading a variant
fails.
https://bugzilla.gnome.org/show_bug.cgi?id=640983
2011-01-30 21:22:12 -05:00
Bastien Nocera
7f3aa92086
GtkSettings: Fix theme not updating for dark theme
...
The theme was not updated when the "gtk-application-prefer-dark-theme"
GtkSettings property changed.
https://bugzilla.gnome.org/show_bug.cgi?id=640983
2011-01-30 20:48:29 -05:00
Jakob Kramer
c4cafd67c3
[l10n] Updated German translation
2011-01-30 20:49:34 +01:00
David Planella
23ac7efe03
Updated Catalan translation
2011-01-30 11:27:40 +01:00
Matthias Clasen
ec37512f64
Add a gtkscaleprivate.h header
2011-01-30 03:17:05 -05:00
Matthias Clasen
4a0aa41742
Add gtkorientableprivate.h header
2011-01-30 03:12:49 -05:00
Matthias Clasen
d463bbfdcd
Some updates
2011-01-30 02:57:59 -05:00
Matthias Clasen
d4b218131d
Drop 2.x release notes
2011-01-30 02:52:55 -05:00
Matthias Clasen
4b5b1ab43a
Fix build
...
We must build gtk before gtk/tests
2011-01-30 02:49:31 -05:00
Matthias Clasen
b71134fc77
Drop unused theme-bits
2011-01-30 02:47:27 -05:00
Matthias Clasen
572441f94f
Drop unused file circles.xml
2011-01-30 02:45:01 -05:00
Matthias Clasen
6c3ce36f63
Remove GTK+ 1 era xbm icons
2011-01-30 02:43:38 -05:00
Matthias Clasen
bcdfd15893
Remove some dead templates
2011-01-30 02:38:59 -05:00
Matthias Clasen
242c2a389d
Whitespace fixes
2011-01-30 02:36:17 -05:00
Matthias Clasen
837c504a11
Move GtkPrintOperation docs inline
2011-01-30 02:34:59 -05:00
Matthias Clasen
701075b2c8
Nicer configure summary
2011-01-30 02:21:16 -05:00
Matthias Clasen
645650ae24
Silence unused variable warnings in the cups printbackend
2011-01-30 02:16:18 -05:00
Matthias Clasen
2ba878ca1b
Silence unused variable warnings in gail
2011-01-30 02:14:08 -05:00
Matthias Clasen
cb6e036d67
More compiler warnings silenced
2011-01-30 01:59:12 -05:00
Matthias Clasen
2b631739c0
Fix another compiler warning about unused variables
2011-01-30 01:53:49 -05:00
Matthias Clasen
6dc142a50a
Silence more compiler warnings
2011-01-30 01:52:55 -05:00
Matthias Clasen
5caa76c5df
Fix compiler warnings about unused variables
2011-01-30 01:50:58 -05:00
Matthias Clasen
0c2e16f04b
Include gtkx.h here
...
When building under X11, gtktypefuncs.c includes references to gdk
X11 backend functions, so we need to include the header.
2011-01-30 01:45:18 -05:00
Matthias Clasen
61f8dbc245
Silence compiler warnings
2011-01-30 01:40:51 -05:00
Matthias Clasen
b1be543ba5
Use free() to free XIButtonState.mask
...
XIQueryPointer() allocates it using malloc() (without any mention
in the documentation...).
2011-01-29 23:27:36 -05:00
Matthias Clasen
10b6afa1f5
Improve some deprecation notes
2011-01-29 23:09:51 -05:00
Matthias Clasen
cbc4e82314
Mention theme-specific settings in the migration guide
2011-01-29 22:59:32 -05:00
Matthias Clasen
02d952ca6d
More documentation tweaks
2011-01-29 22:52:02 -05:00
Matthias Clasen
f6cd9c1553
Documentation tweaks
2011-01-29 22:47:33 -05:00
Matthias Clasen
bc58a60a0b
Minor rewording in the tutorial
2011-01-29 22:44:29 -05:00
Matthias Clasen
d39f98fff4
Go back to using the image/* example
2011-01-29 22:42:14 -05:00
Paolo Borelli
350d0b54e3
Do not use old functions in the docs.
2011-01-29 21:32:56 +01:00
Matthias Clasen
f783a75d61
Add a gtkx.h header for X11-specific GTK+ api
...
This keeps us from pulling gdkx.h into gtk.h
https://bugzilla.gnome.org/show_bug.cgi?id=640902
2011-01-29 14:16:47 -05:00
Matthias Clasen
1641e71c9a
Add a missing end tag
2011-01-29 13:40:19 -05:00
Luca Ferretti
66d4f07f29
Updated Italian translation
2011-01-29 15:55:20 +01:00
Carlos Garnacho
8a056d4774
Move "widget/window under device" accounting to be per-widget
...
This management is better done per-widget rather than per-screen,
as windows being destroyed won't trigger a leave notify for the
devices on top of it, and this information is too transitive
to keep weak refs and such.
This fixes the critical warning seen in gtk/tests/testing.
2011-01-29 14:45:05 +01:00
Paolo Borelli
55713025c0
Add padding to the themingengine class.
2011-01-29 14:34:29 +01:00
Paolo Borelli
001697a22a
Move the get_cursor_color in GtkStyleContext
...
Move the private get_cursor_color method belongs to StyleContext. Change
the api so that retrieving both primary and secondary color is possible.
I left the method private for now, though it should probably be public
as all the other getters.
2011-01-29 13:13:42 +01:00
Paolo Borelli
9e20341775
Use GtkRGBA for the cursor color priv api.
2011-01-29 12:38:50 +01:00
Paolo Borelli
469f4592d4
Fix typo in calculating secondary cursor color
2011-01-29 12:24:37 +01:00
A S Alam
3f918a8b2d
update Punjabi Translation by A S Alam
2011-01-29 07:56:20 +05:30
A S Alam
861dd0886c
update Punjabi Translation by A S Alam
2011-01-29 07:33:39 +05:30
William Jon McCann
32f6070bc8
Don't call object notify for something that isn't a property
2011-01-28 17:00:59 -05:00
Krzesimir Nowak
d688343a31
Check if buffer is NULL after setting it to NULL, not before.
...
This catches cases when "notify::buffer" handler does not recreate
the buffer again, which could end in reference leak.
https://bugzilla.gnome.org/show_bug.cgi?id=634677
2011-01-28 20:49:47 +01:00
Daniel Mustieles
0e37b3e2b1
Updated Spanish translation
2011-01-28 20:04:18 +01:00
Matthias Clasen
d981b9ed61
Fix a doc typo
2011-01-28 11:10:07 -05:00
Matthias Clasen
6bbe86a763
Mention GtkEntryCompletion signal parameter change
2011-01-28 11:10:07 -05:00
Benjamin Otte
83927a61fc
recentfilter: Fix gcc warnings
...
gtkrecentfilter.c:37:47: error: "/*" within comment
gtkrecentfilter.c:61:24: error: "/*" within comment
2011-01-28 17:06:07 +01:00
Benjamin Otte
ce33daaff6
gtk: gtkfilefilter.c:57:24: error: "/*" within comment
2011-01-28 17:06:07 +01:00
Benjamin Otte
ef1606604c
x11: Use Window instead of GdkNativeWindow
2011-01-28 17:06:07 +01:00
Benjamin Otte
56c6c63cce
plug: Move private functions to gtksocketprivate.h
2011-01-28 17:06:07 +01:00
Benjamin Otte
388f9fd181
tests: Use Window instead of GdkNativeWindow in testsocket example
2011-01-28 17:06:07 +01:00
Benjamin Otte
4aa67439f3
plug: Use Window instead of GdkNativeWindow
2011-01-28 17:06:07 +01:00
Benjamin Otte
ad1f9cc0c6
socket: Use Window instead of GdkNativeWindow
2011-01-28 17:06:07 +01:00
Benjamin Otte
1b18916a74
win32: Make GtkWin32EmbedWidget use HWND instead of GdkNativeWindow
2011-01-28 17:06:07 +01:00
Benjamin Otte
63aa56bcc4
window: Get rid of GdkNativeWindow usage
...
Make _gtk_window_add_embedded_xid() and
_gtk_window_remove_embedded_xid() take a Window.
2011-01-28 17:06:07 +01:00
Benjamin Otte
bd4ef49af9
API: x11: Add GDK_POINTER_TO_XID() and GDK_XID_TO_POINTER()
...
Previously people used GDK_GPOINTER_TO_NATIVE_WINDOW() for this, but
native windows are going away, so we need a replacement.
2011-01-28 17:06:07 +01:00
Benjamin Otte
e1f6a24da9
window: Make embedded xid specific to the X11 backend
2011-01-28 17:06:07 +01:00
Benjamin Otte
5a1755bc50
gtk: Prefix gtk_window_add_embedded_xid() with underscore
...
It's a private API after all.
Same thing for gtk_window_remove_embedded_xid().
2011-01-28 17:06:07 +01:00
Benjamin Otte
e339c6276d
API: Don't export gtk_window_add_embedded_xid()
...
Same thing for gtk_window_remove_embedded_xid()
2011-01-28 17:06:07 +01:00
Benjamin Otte
b8895cf910
socket: Merge gtksocket-x11.c back into gtksocket.c
2011-01-28 17:06:07 +01:00
Benjamin Otte
1d80400478
plug: Merge gtkplug-x11.c back into gtkplug.c
2011-01-28 17:06:07 +01:00
Benjamin Otte
c7f0cffd8a
plug/socket: Remove x11 checks and non-x11 code
2011-01-28 17:06:06 +01:00
Benjamin Otte
50e1589a19
plug/socket: Clarify docs about availablility of widgets
2011-01-28 17:06:06 +01:00
Benjamin Otte
89722d41c4
win32: Fix Makefile for plug/socket removal.
2011-01-28 17:06:06 +01:00
Benjamin Otte
8dc932bbe0
plug/socket: Remove plug/socket backend implementations for win32 and stub
2011-01-28 17:06:06 +01:00
Benjamin Otte
3860af516c
plug/socket: Make GtkPlug and GtkSocket X11-specific
...
People agreed that it doesn't make sense to make an xembed
implementation like plug/socket does not make sense on anything but X11.
And as GdkNativeWindow is going away for multibackend portability
reasons, we'd either need API fixes in the plug-socket codee or
constrain the widgets to a single backend. We chose the latter.
2011-01-28 17:06:06 +01:00
Cosimo Cecchi
d254089308
mount-operation: don't show the dialog until the tree is populated
...
Otherwise it won't show up properly, and GTK+ will trigger a warning.
Don't know why this did not show up before.
https://bugzilla.gnome.org/show_bug.cgi?id=640744
2011-01-28 09:59:58 -05:00
Ignacio Casal Quinteiro
b7de18ab35
Remove gtk_paste_point_override mark if we don't insert any text.
...
This patch fixes bug #590459 .
2011-01-28 13:26:00 +01:00
Murray Cumming
1cd82eff4b
Move gtk_widget_reset_style() out of the deprecation ifdef.
...
This new function was not apparently meant to be inside the deprecation
guards.
2011-01-28 10:17:06 +01:00
Murray Cumming
3efc06a659
Tiny typo fix.
2011-01-28 10:10:23 +01:00
Tristan Van Berkom
5a5854f6f6
Add default class implementation of gtk_widget_get_request_mode().
...
Instead of checking if klass->get_request_mode is != NULL from
the gtk_widget_get_request_mode() api, this allows classes to
trust that there is a default implementation and chain up (specifically
added this for gtkmm wrapper objects).
2011-01-28 15:58:07 +09:00
Matthias Clasen
ea6e57412f
Protect against giant title fonts
...
We don't want repeated calls to set_title_font to blow up the
font size ever more, so reset the font each time.
https://bugzilla.gnome.org/show_bug.cgi?id=640712
2011-01-27 23:23:43 -05:00
Matthias Clasen
ef7433e7f1
Make the places in the file chooser come up with a reasonable size
2011-01-27 21:50:00 -05:00
Matthias Clasen
b5c09b9e39
Fix the new filechooser buttons to work without symbolic icons
2011-01-27 21:04:32 -05:00
William Jon McCann
b64c6f2fd3
Use a toolbar with symbolic icons under scrolled lists
2011-01-27 20:24:57 -05:00
Daniel Mustieles
95ad67d927
Updated Spanish translation
2011-01-27 21:22:30 +01:00
Carlos Garnacho
ea7fd526f9
Remove GTK_RBNODE_IS_SEMI_[COLLAPSED|EXPANDED] flags.
...
These aren't used anymore.
2011-01-27 20:57:14 +01:00
Carlos Garnacho
3d57787d6e
Set "cell" class and state before rendering a cellrenderer.
2011-01-27 20:57:13 +01:00
Carlos Garnacho
e3a77b9db8
Make GtkCellRendererAccel use GtkStyleContext
2011-01-27 20:57:13 +01:00
Carlos Garnacho
c59a05b0d4
Make GtkCellRendererPixbuf use GtkStyleContext
2011-01-27 20:57:13 +01:00
Carlos Garnacho
3285eff289
Make GtkCellRendererProgress use GtkStyleContext
2011-01-27 20:57:12 +01:00
Carlos Garnacho
9b091ae330
Make GtkCellRendererToggle use GtkStyleContext
2011-01-27 20:57:12 +01:00
Carlos Garnacho
7c2f35d7c1
Make GtkCellRendererText use GtkStyleContext
2011-01-27 20:57:12 +01:00
Carlos Garnacho
3efc1b0b4f
Make GtkIconView use GtkStyleContext
2011-01-27 20:57:11 +01:00
Carlos Garnacho
08af1783c5
Make GtkTreeView use GtkStyleContext
...
Expander animation has been replaced by implicit animations
from the style context.
Column headers are also properly themed, GtkContainer::get_path_for_child()
is implemented and the treeview resets column buttons style on columns
being reordered.
The default CSS has changed to theme treeviews sensibly.
2011-01-27 20:57:11 +01:00
Carlos Garnacho
41d6837fa2
Make GtkCellArea use GtkStyleContext
...
gtk_cell_area_[gs]et_style_detail() is no longer needed, as
the passed widget's context would already have all necessary
info.
2011-01-27 19:32:07 +01:00
Carlos Garnacho
f96aae68f4
Add gtk_cell_renderer_get_state()
...
This is a helper function to help retrieve a GtkStateFlags
from a GtkCellRendererState, also given the cell renderer
and widget sensitivities.
2011-01-27 19:32:07 +01:00
Colin Walters
22527e802c
Clarify documentation header about GTK+ 3 vs 2
...
I think it's confusing for a lot the developers out there who
may not even be aware of GTK+ 3 coming, if suddenly GTK+ 3 becomes
the "stable" version of "gtk" on library.gnome.org. It may
not even be feasible for them to port to GTK+3 if it's not
shipped in the operating systems they're targeting (for example,
RHEL 6).
Since practically speaking, we expect people to consume GTK+ 2 for
several years at least, redirect these people to the right pages.
(I didn't attempt to explain the differences between the libraries
here, but hopefully the major version difference is enough of a hint)
As a side effect, this makes the generated HTML look better; previously
it looked rather crappy, since the "for GTK &version;" was totally
offset and in a different group from the documentation title.
2011-01-27 11:32:55 -05:00
Tristan Van Berkom
031a092254
Added <mime-types> and <patterns> parsing support to GtkFileFilter.
2011-01-27 22:53:24 +09:00
Kjartan Maraas
9bd53091c0
Updated Norwegian bokmål translation.
2011-01-27 11:25:19 +01:00
Tristan Van Berkom
2944af00d0
Removed a useless redundant line of code in gtkcellview.c
2011-01-27 16:04:46 +09:00
Tristan Van Berkom
35e7e65bcb
Added links to the GtkTextTagTable and GtkMenuToolButton GtkBuildable documentation from GtkBuilder documentation.
2011-01-27 16:04:46 +09:00
Matthias Clasen
008de2bafd
Document new default handling
2011-01-27 00:32:07 -05:00
Matthias Clasen
064e48f846
Rename GTK_SETTINGS_SOURCE_RC_FILE to _THEME
...
This makes more sense, since we don't parse rc files anymore.
This is private api inside gtksettings.c, anyway.
2011-01-27 00:32:07 -05:00
Matthias Clasen
5501569354
Parse a per-theme settings.ini file
...
This lets themes override settings values again. We are using
the same priority that was used from the rc file parser, so things
are largely unchanged, relative to other settings sources.
2011-01-27 00:32:07 -05:00
Matthias Clasen
ea24fa62c8
Privately export css_provider_get_theme_dir
2011-01-27 00:32:07 -05:00
Matthias Clasen
368a5c8937
Break out into a separate function
...
Move key file parsing to gtk_settings_load_from_key_file(), in
preparation for loading per-theme files. Load key files from both
/etc and ~/.config, with the latter overriding the former. Support
parsing enum values.
2011-01-27 00:32:07 -05:00
Matthias Clasen
8f3a3fda0b
First pass a parsing a keyfile for default settings
2011-01-27 00:32:07 -05:00
Fran Diéguez
0ba6c63e2d
QA of Galician translations
2011-01-27 03:26:35 +01:00
Matthias Clasen
96af68529b
Document that gtk_widget_queue_draw_area is in widget coordinates
2011-01-26 18:20:51 -05:00
Daniel Mustieles
3cdd865bb8
Updated Spanish translation
2011-01-26 20:48:29 +01:00
Khaled Hosny
64301167fe
Updated Arabic translation
2011-01-26 17:55:45 +02:00
Tristan Van Berkom
93f825592e
Added links to the GtkComboBox/GtkRecentFilter GtkBuildable documentation from GtkBuilder documentation.
2011-01-26 23:58:47 +09:00
Tristan Van Berkom
e7354bd3f3
Fixed GtkCellLayout to parse <cell-packing> property text accumulatively.
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
5ebc6f4df2
Fixed GtkContainer to parse <packing> property text accumulatively.
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
9487ce77c4
Changed GtkComboBoxText <items> builder parser to use g_string_append_len().
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
2081ade640
Changed GtkRecentFilter builder parsing to use g_string_append_len
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
26b326b704
Fix GtkRecentFilter GtkBuildable parsing to handle incomming text accumulatively
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
e8157126d8
Fix GtkComboBoxText GtkBuildable <items> parsing to handle incomming text accumulatively
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
8397a79b7d
Added a line to the documentation example of GtkRecentFilter
2011-01-26 23:55:01 +09:00
Tristan Van Berkom
a6a7b7e9cf
Added GtkBuildable support for adding rules to GtkRecentFilter
...
Also added documentation section for this. Since the GtkRecentFilter
documentation was still living in sgml, as a side-effect I migrated these
docs to the gtkrecentfilter.[ch] sources.
2011-01-26 23:55:01 +09:00
Martin Pitt
d7b71be49b
[GI] Fix gtk_tree_view_get_cursor() transfer annotation
2011-01-26 14:39:50 +01:00
Christian Dywan
205ee834ec
State that _add_button functions return a "#GtkButton widget"
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=586635
2011-01-26 10:33:49 +01:00
Michael Natterer
3933f99ed7
gtk: add missing class padding
...
Sorry for this late ABI break, but the newly added style classes
definitely need padding, so I can just as well add missing padding
globally.
2011-01-25 22:29:00 +01:00
Carlos Garnacho
e521158973
Make gtk_widget_get_state() only handle GtkStateType values available in 2.x
...
GtkStateType was generally used as an index in GtkStyle color arrays, so
bigger values will cause invalid memory accesses in widgets that are still
doing that. this was seen in focused GtkIconViews for example
2011-01-25 13:36:13 +01:00
Chao-Hsiung Liao
42b6e47fca
Updated Traditional Chinese translation (Hong Kong and Taiwan)
2011-01-25 19:23:35 +08:00
Matthias Clasen
7db4bee4b6
Clarify documentation about application vs window lifecycle
...
https://bugzilla.gnome.org/show_bug.cgi?id=639931
2011-01-24 22:20:35 -05:00
Matthias Clasen
9be8bbc9a0
Add gtk_app_chooser_button_get/set_heading
2011-01-24 19:25:08 -05:00
Carlos Garnacho
8fdd8dbc35
Do not modify associated device for non-master devices on dispose
...
Only master devices must modify the associated device to separate
a pointer/keyboard pair, slave devices must only call
_gdk_device_remove_slave().
Fixes bug 639767 - password not accepted in gnome-screensaver dialog,
reported by Frederic Crozat. On VT-switch, the X server removes its
grab on HW devices, the effect on clients is that slave devices
disappear, and these were mistakenly mangling the master device
hierarchy. so gdk_device_get_associated_device() on the client
pointer wouldn't return the paired keyboard anymore.
The final effect is that gtkplug-x11 wasn't setting a keyboard to
its generated events.
2011-01-24 19:55:41 +01:00
Carlos Garnacho
e3be6fc24f
Unset border-width for treeview rows in default CSS
...
Fixes bug #640391 - Display lines between rows when window is focused.
Reported by Guillaume Desmottes.
2011-01-24 18:14:05 +01:00
Matthias Clasen
98346cc219
Avoid passing widgets around here
...
The style context is enough.
2011-01-24 07:46:15 -05:00
Matthias Clasen
b42b47e7d3
Port gtk_draw_insertion_cursor to GtkStyleContext
2011-01-24 00:24:12 -05:00
Matthias Clasen
6619aa58b1
Kill one more unused variable
2011-01-23 23:48:32 -05:00
Matthias Clasen
3413438d37
Don't leak CursorInfo structs
2011-01-23 23:20:57 -05:00
Matthias Clasen
d9fcc4c630
Silence new gcc warnings
...
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
2011-01-23 21:51:38 -05:00
Carlos Garnacho
94c4a312c1
Add extra checks for GdkDevice functions that might fail on slave devices.
...
Documentation bits have been added as well.
2011-01-24 02:54:38 +01:00
Carlos Garnacho
5fd5872b37
Avoid toplevel tracking on slave device after ungrab
...
slave devices don't have coordinates themselves, as they depend
on a master, this only changes if they have a grab in effect,
so only keep toplevel tracking enabled in such situation. Fixes
Bug #640313 - BadDevice X error when ungrabbing a SLAVE device,
noticed by Jesse van den Kieboom.
2011-01-24 02:54:00 +01:00
Matthias Clasen
454c36523a
Silence new gcc warnings
...
gcc 4.6.0 has started to warn about set-but-unused variables.
So don't do that, then.
2011-01-23 18:50:09 -05:00
Matthias Clasen
a12dad75a2
Split out private style context api into a private header
2011-01-23 18:29:28 -05:00
Carlos Garnacho
0cc2f93d5c
Free button_state.mask after XIQueryPointer()
...
This function allocates the button mask, so free it after
use, or right before the next XIQueryPointer() call, as done
in gdk_x11_device_xi2_window_at_position().
2011-01-23 23:19:30 +01:00
Carlos Garnacho
b2b73a349e
Fix valgrind warning about uninitialized value
...
mods_state->effective is not being set in XIQueryPointer() currently, so
use base|latched|locked instead, effective is nothing else than a shorthand
for these ORs, and these 3 values are set correctly anytime.
2011-01-23 23:14:53 +01:00
Benjamin Otte
51290e0a57
gdk: When reffing the impl surface, ref it from the impl window
...
This was causing surfaces to be created with the wrong size and that
caused broken clipping.
https://bugzilla.gnome.org/show_bug.cgi?id=640195
2011-01-23 21:41:01 +01:00
Carlos Garnacho
e3774b6ff2
Render check/radio buttons with border-color: @fg_color
2011-01-23 20:01:22 +01:00
Carlos Garnacho
13a3954ad4
GtkNotebook: only set/unset active flag on the tab label
2011-01-23 19:35:21 +01:00
Carlos Garnacho
b3ba85a01c
Simplify GTK_STATE_FLAG_FOCUSED handling in state propagation.
...
Just unsetting it before propagating to the children suffices.
2011-01-23 19:34:50 +01:00
Carlos Garnacho
0c7772f0cf
Do not unset sensitivity mistakenly in gtk_widget_set_state_flags()
...
together with commit 8903615a34, this finally fixes bug #640282 .
Insensitivity is handled separatedly in _gtk_widget_update_state_flags(),
but the insensitive flag is mistakenly unset afterwards if clear is TRUE
in gtk_widget_set_state_flags().
2011-01-23 19:34:44 +01:00
Carlos Garnacho
a0e1fa9e77
Gtk(Toggle)Button: preserve untouched state flags when updating state.
...
Partly fixes bug #640282 , noticed by Christian Persch. buttons were
clobbering the insensitive flag when updating their state.
2011-01-23 19:34:38 +01:00
Matthias Clasen
74f7e08811
Add a migration guide section about GdkDrawable
...
https://bugzilla.gnome.org/show_bug.cgi?id=640188
2011-01-23 12:27:18 -05:00
Chun-wei Fan
09244b7f1d
Update Visual C++ 2008 Project Files Stuff
...
-Updated README.txt file in build/win32/vs9.
-Fix the gdk.vcprojin and gtk+.vsprops regarding include paths
and copying of headers (missed header etc.)
2011-01-24 00:10:19 +08:00
Jorge González
f68faa3465
Updated Spanish translation
2011-01-23 15:10:51 +01:00
Kristjan SCHMIDT
73bfc16aa2
Updated Esperanto translation
2011-01-23 13:48:41 +01:00
Kjartan Maraas
db25eda122
Updated Norwegian bokmål translation
2011-01-23 11:41:44 +01:00
Aron Xu
644cc23fe0
Update Chinese (China) GTK+ po translation.
2011-01-23 08:37:09 +00:00
Matthias Clasen
eab3d94a43
Expose gtk-auto-mnemonics as an Xsetting
2011-01-22 23:48:39 -05:00
Matthias Clasen
9d34a9cc65
checksettings: succeed quietly
2011-01-22 23:47:01 -05:00
Matthias Clasen
09bf05bd57
Fix alignment problems with text cell renderers
...
When set to PANGO_ALIGN_CENTER, text was rendered off-center
by the amount of 'free space' that the PangoLayout left (ie
the x returned by pango_layout_get_pixel_extents).
2011-01-22 23:23:46 -05:00
Yaron Shahrabani
936f74c762
Updated Hebrew translation.
2011-01-23 02:40:52 +02:00
Jorge González
f60db29f82
Updated Spanish translation
2011-01-22 16:51:03 +01:00
Ivar Smolin
81fdf6619c
[l10n] Updated Estonian translation
2011-01-22 11:53:00 +02:00
Federico Mena Quintero
a4a2d76182
bgo#639531 - [filechooser] Handle the case where the user types a nonexistent_subfolder/file.txt
...
The logic was to try to switch to that nonexistent folder and thus get
an error message presented. However, no such message actually appears,
as the file chooser tries to switch to the closest parent folder that
actually exists, without bringing up an error message --- this is done
to cope with the case of the file chooser being started with a folder
that doesn't exist anymore.
Now, we just bring up an error message directly when we detect that
the user types a subfolder name that doesn't exist.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2011-01-21 17:08:10 -06:00
Federico Mena Quintero
84bf984f85
bgo#640161 - Maintain map/unmap invariants in GtkFileChooserDialog
...
We used to explicitly map and unmap the child GtkFileChooserWidget when
mapping and unmapping the dialog, respectively. Now that GtkWidget actually
unmaps child widgets (instead of avoiding that), we can assume that the
child GtkFileChooserWidget will be unmapped when we wanted it to be.
This fixes a warning that happened with the new GtkWidget invariant checker,
as we were mapping our child widget before calling our parent class' ::map() handler.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2011-01-21 15:48:39 -06:00
Federico Mena Quintero
d07231cb7a
bgo#626336 - Don't assume that GtkButton is activated only when a keyboard event is available
...
Buttons may also be activated at any time from gtk_widget_activate()
or related functions. In that case, just do the 'show the button
as pushed for a short amount of time' trick, but don't actually
try to grab the keyboard device.
Signed-off-by: Federico Mena Quintero <federico@gnome.org >
2011-01-21 15:48:39 -06:00
William Jon McCann
120e289f56
Use actual app name in app choosers
...
Instead of using a strange composite of name and generic name.
https://bugzilla.gnome.org/show_bug.cgi?id=640005
2011-01-21 15:35:52 -05:00
Tomeu Vizoso
e2d42f3c4b
[gi] Return value of gdk_window_new should have transfer full
2011-01-21 17:34:18 +01:00
Michael Natterer
5d3106275a
gtk: no need to add GTK_STYLE_FLAG_FOCUSED to the widget's state flags
...
because they correctly contain that flag now if the widget has focus.
2011-01-21 15:38:52 +01:00
Carlos Garnacho
6e553324f9
Make gtk_widget_get_state_flags() avoid propagating the focused flag down the hierarchy
...
There is only one widget supposed to have the focused flag at a given time,
so avoid propagating the state down the hierarchy, the focused flag is now
also set in _gtk_widget_set_has_focus().
2011-01-21 15:25:29 +01:00
Michael Natterer
7fabfec533
gtk: save/restore the cairo_t around early upchaining in draw()
...
and don't save/restore the style context because that's the job of
each draw() implementation.
2011-01-21 15:06:43 +01:00
Michael Natterer
287a388415
gtk: remove unused "window" variable from gtk_entry_draw_frame()
2011-01-21 14:19:48 +01:00
Fridrich Štrba
a79f05c7be
fix win32 build after removal of the colormap debug category
2011-01-21 11:20:16 +01:00
Sebastian Pölsterl
8effa1eb0e
[gi] Added missing (allow-none) annotation to gdk_device_grab
2011-01-21 10:36:07 +01:00
Matthias Clasen
f941f7b123
Fix keynav issue in menu mode
...
Skipping insensitive and separator rows was broken in menu mode.
https://bugzilla.gnome.org/show_bug.cgi?id=639845
2011-01-20 23:40:14 -05:00
Benjamin Otte
d0ba16a3b2
assistant: Fix mapped invariants
...
gtk_widget_verify_invariants() was complaining, now it's silent.
2011-01-21 04:42:55 +01:00
Matthias Clasen
cfe909848d
Avoid a warning if GtkCellView has no model
2011-01-20 22:35:09 -05:00
Matthias Clasen
46903a9100
Fix a crash during DND
...
https://bugzilla.gnome.org/show_bug.cgi?id=640105
2011-01-20 21:36:50 -05:00
William Jon McCann
6f4df09a04
When cancelling the app dialog return to the last item in combobox
...
https://bugzilla.gnome.org/show_bug.cgi?id=640011
2011-01-20 21:29:29 -05:00
Matthias Clasen
9532e96db4
Make GtkAppChooserButton work in modal context
2011-01-20 21:21:42 -05:00
Matthias Clasen
a7bcb8a4d7
Add a way to set the heading of GtkAppChooserDialog
...
The application can probably set a better string than the default
we construct, like 'Select an application for "software" files'.
2011-01-20 20:57:47 -05:00
Benjamin Otte
ec750bed0c
gdk: Remove colormap debug category
...
We don't have colormaps anymore.
2011-01-21 02:54:09 +01:00
Benjamin Otte
7013406167
x11: Don't keep two lists of devices internally
2011-01-21 02:54:09 +01:00
Matthias Clasen
70879d345f
Change the label of the GtkAppChooserDialog button
...
We are not "opening" an application, we are selecting it to
open a file. String change !
2011-01-20 19:59:55 -05:00
William Jon McCann
bbe56c1f9a
Make the show more button follow the show-other property
...
Instead of show-all.
https://bugzilla.gnome.org/show_bug.cgi?id=640006
2011-01-20 19:45:22 -05:00
Matthias Clasen
5b7add024d
Adapt gtk_icon_info_load_symbolic to librsvg limitations too
...
Pointed out by Owen Taylor.
2011-01-20 19:01:57 -05:00
William Jon McCann
f531787875
Don't reserve a column of space the for icons in app chooser button
...
In order to more consistently present the items regardless of
whether they have icons or not.
2011-01-20 15:48:00 -05:00
Johan Dahlin
56009e2226
Do not scan gtktextdisplay.h, avoids a scanner warning
2011-01-20 14:22:13 -02:00
William Jon McCann
deeac8caf3
Don't use an icon for Other Applications...
...
We only show icons in "menus" for nouns or dynamic objects.
2011-01-20 09:36:43 -05:00
Johan Dahlin
7ad7c61678
Mark api with xlib types as skipped
...
Since they'd need to have boxed type to be able to work
for introspection based bindings
2011-01-20 12:12:22 -02:00
Johan Dahlin
030b5ebf3e
gtksettings: Add gtk-doc to silent an annotation warning
2011-01-20 12:12:22 -02:00
Johan Dahlin
766e1d35da
Correct gtk-doc syntax and add missing (transfer)
2011-01-20 12:12:22 -02:00
Johan Dahlin
1e0327f844
Use identifier-prefix instead of deprecated strip-prefix
2011-01-20 12:12:22 -02:00
Johan Dahlin
b92df453c6
Remove property user_data which doesn't exist anymore
2011-01-20 12:12:22 -02:00
Pavel Holejsovsky
48ad65e1dd
Bump required GObject-Introspection version to 0.10.1
2011-01-20 14:54:19 +01:00
Pavel Holejsovsky
374e76a19d
[GI] Mark unintrospectable constructs as (skip)
...
Also adds 'Rename to:' annotation to some constructs replacing the
skipped ones.
2011-01-20 13:57:21 +01:00
Pavel Holejsovsky
2fb1c06402
[GI] Add missing (out) and (array) annotations
2011-01-20 13:57:20 +01:00
Pavel Holejsovsky
2f0d40335b
[GI] Add missing (transfer) annotations
2011-01-20 13:57:18 +01:00
Pavel Holejsovsky
9b88eb356d
[GI] Add missing (scope) annotations
2011-01-20 13:57:15 +01:00
Pavel Holejsovsky
3c8fc21e9b
[GI] Fixes of existing incorrect annotations
2011-01-20 13:56:06 +01:00
Florian Müllner
497b66a5ab
docs: Fix typo
...
s/gtk_builder_add_From_file/gtk_builder_add_from_file
2011-01-20 12:29:17 +01:00
Cosimo Cecchi
de6580b38d
gail: fix the build
2011-01-20 12:00:27 +01:00
Steve Frécinaux
3f0d330a65
[GI] Fix transfer annotation on gtk_dialog_add_button()
...
The transfer annotation was (transfer full) but the caller actually
doesn't own a reference of the object. This made the pygobject test suite
crash because pygobject was trying to unref the returned GtkButton
instance.
https://bugzilla.gnome.org/show_bug.cgi?id=639949
2011-01-20 11:55:38 +01:00
Laszlo Pandy
75a05621bf
[GI] Add annotation (type GdkModifierType) to state attributes in many GdkEvent structs.
...
The state attribute is available in GdkEventMotion, GdkEventButton,
GdkEventScroll, GdkEventKey and GdkEventCrossing. This type annotation
fixes the wrapping of this attribute in the GI PyGObject bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=639929
2011-01-20 11:19:26 +01:00
Pavel Holejsovsky
9389054da2
[GI] Add (type) annotations to real types
2011-01-20 10:38:38 +01:00
Matthias Clasen
b29af18a26
Add a GtkBuilder section to the tutorial
2011-01-20 01:30:34 -05:00
Matthias Clasen
99812be7d7
Be more careful with private event data
...
When copying allocated events, also copy the source device.
When synthesizing double or triple clicks, copy the original
button press event including device information.
https://bugzilla.gnome.org/show_bug.cgi?id=639822
2011-01-19 22:52:55 -05:00
Matthias Clasen
6869ff26f3
Make GtkBorder style properties have a non-NULL default
...
https://bugzilla.gnome.org/show_bug.cgi?id=639625
2011-01-19 21:24:30 -05:00
Matthias Clasen
2f7245699b
Add gtk_text_view_get_cursor_locations
...
In GTK 3.0 it's no longer possible to e.g. pop up something
at a text view's cursor (this wasn't exactly possible before
either without including gtktextlayout, but this is a quite
special need anyway).
2011-01-19 17:01:19 -05:00
Michael Kotsarinis
ba02ae72fa
Updated Greek translation
2011-01-19 22:03:53 +02:00
Matthias Clasen
eb7e81ddd6
Use simplesect in the tutorial
...
This avoids blowing up the global toc even more.
2011-01-19 14:34:08 -05:00
Jorge González
8ed7494948
Updated Spanish translation
2011-01-19 19:37:26 +01:00
Michael Kotsarinis
889dc8111b
Updated Greek translation
2011-01-19 20:30:31 +02:00
Michael Kotsarinis
e7e3702a22
Updated Greek translation
2011-01-19 20:24:06 +02:00
Matthias Clasen
0a5e8ce685
Mention type vs region ambiguity in the docs
2011-01-19 12:55:48 -05:00
Martin Pitt
d45a0114a5
Fix linking of drawing example
...
Commit 80e1340e introduced using a GDK method in examples/drawing.c, so
actually link that to GDK. Fixes build failure with --as-needed linker option
and gcc 4.5.
2011-01-19 15:40:46 +01:00
Sebastian Pölsterl
cbbfe48ee4
[GI] Added missing (transfer none) annotation to gtk_tree_view_get_path_at_pos
2011-01-19 15:09:05 +01:00
Trevor Saunders
f710cca49d
gail now provides toolkit = gail as an AtkAttribute of all gtk objects.
...
https://bugzilla.gnome.org/show_bug.cgi?id=598952
https://bugzilla.gnome.org/show_bug.cgi?id=638920
2011-01-19 15:39:04 +08:00
Matthias Clasen
80e1340e51
Add a drawing example to the tutorial
2011-01-18 23:59:17 -05:00
Matthias Clasen
ceeaf183a1
Add a packing example to the tutorial
2011-01-18 23:59:17 -05:00
Matthias Clasen
ce1244fdd7
Add a paragraph explaining events and signals
2011-01-18 23:59:17 -05:00
Carlos Garnacho
0b7496558d
Make GtkCssProvider deal with widget types not being in plain CamelCase
...
Fixes bug #Bug 639754, reported by Kjell Ahlstedt. gtkmm doesn't
use plain CamelCase for its widget type names, so in order to
distinguish widget type names from regions in the CSS parser,
the following checks are now done:
* if it contains an uppercase letter -> widget class (that should
also work for gtkmm)
* if it's a string compound by lowercase letters and '-' -> it's
a region, checks have been added in gtk_style_context_add_region()
and gtk_widget_path_iter_add_region() to ensure this.
2011-01-19 04:28:49 +01:00
Carlos Garnacho
0c5ceaf757
Set horizontal/vertical style classes to GtkRanges
2011-01-19 04:28:49 +01:00
Carlos Garnacho
f430a306f7
Make GtkCheckButton/GtkRadioButton background white again
2011-01-19 04:28:49 +01:00
Carlos Garnacho
687ac4d4aa
Don't displace background for spinbuttons in the theming engine
...
This is a leftover from the older GtkStyle code, this is handled
through CSS spacings instead.
2011-01-19 04:28:48 +01:00
A S Alam
474ed78b25
update Punjabi Translation
2011-01-19 08:40:52 +05:30
Yaron Shahrabani
da27cae045
Updated Hebrew translation.
2011-01-19 01:02:39 +02:00
Pavel Holejsovsky
a1c297a310
[GI] Cosmetic cleanups of annotations and doc comments
...
This change does not introduce any functionality change, mostly
cosmtic cleanups, like re-linebreak when introduced annotations messed
up indentation or whitespace errors fixes.
2011-01-18 17:31:59 +01:00
Pavel Holejsovsky
fe372ddf5e
[GI] Add missing (allow-none) annotations
2011-01-18 17:30:43 +01:00
Pavel Holejsovsky
6d5cdad56e
[GI] Annotate strings holding file paths as (type filename)
2011-01-18 17:29:40 +01:00
Pavel Holejsovsky
204d1fd0a6
[GI] Make argument names in vfunc decls consistent with invoker docs
2011-01-18 17:28:35 +01:00
Pavel Holejsovsky
729c823955
[GI] Mark callbacks' context parameter with (closure) annotation.
2011-01-18 17:20:32 +01:00
Bastien Nocera
714d9bc407
GtkImage: Add "use-fallback" property
...
So that icon-name and GIcon type of GtkImages can use automatic
fallback names.
2011-01-18 16:14:05 +00:00
Tristan Van Berkom
e6a51e4afb
More accurate fix for GtkTreeMenu regression.
...
The previous fix rebuilds the root menu unconditionally,
this one only rebuilds the root menu if the root path
has indeed changed.
https://bugzilla.gnome.org/show_bug.cgi?id=639792
2011-01-19 00:43:08 +09:00
Sebastian Pölsterl
34b573b07c
Fixed gtk_calendar_get_date annotations: Added missing (out)
2011-01-18 16:21:10 +01:00
Anders F Björklund
6095598c39
Consistently use PKG_CONFIG in macros
2011-01-18 09:55:35 -05:00
Matthias Clasen
bb7662392d
Don't set the default display to NULL
...
This was causing segfaults if DISPLAY is unset
2011-01-18 09:36:59 -05:00
Matthias Clasen
fe687e760e
Add testcases for opening display
...
More precisely, test that we can successfully fail to open
a display...
2011-01-18 09:36:24 -05:00
Martin Pitt
b208b9c0e9
Fix GtkIconView GI annotations
...
Add the missing (out) annotations, and a missing allow-none.
2011-01-18 12:32:52 +01:00
Yaron Shahrabani
ebb18e65c3
Updated Hebrew translation.
2011-01-18 12:56:57 +02:00
Matthias Clasen
64c79c15a6
Fix a combo refactor regression
...
https://bugzilla.gnome.org/show_bug.cgi?id=639792
2011-01-17 21:56:34 -05:00
Luca Ferretti
a29b4c6a51
Fix case (s/A/a) in translatable string (Select A Folder)
2011-01-17 21:43:33 +01:00
Garrett Regier
cb0fac73a5
Fix memory leak in gtk_window_group_list_windows
2011-01-17 08:23:59 -08:00
Martin Pitt
234b3b2c6f
Annotate GtkIconView array arguments
2011-01-17 16:01:40 +01:00
Matthias Clasen
9f895aa3ad
Make symbolic icons work again
...
Work around https://bugzilla.gnome.org/show_bug.cgi?id=639750
2011-01-17 09:57:35 -05:00
Matthias Clasen
77ff699226
Drop gtk-builder-convert
...
It will still be shipped in gtk 2.24.
2011-01-17 09:55:52 -05:00
Pavel Holejsovsky
09d395f629
Move GtkFileFilter docs inline
2011-01-17 15:27:06 +01:00
Pavel Holejsovsky
4dab3a601d
Move GtkMenu docs inline
2011-01-17 15:27:04 +01:00
Pavel Holejsovsky
2bd38dc7f5
Move GtkFixed docs inline
...
Also remove incorrect documentation of opaque GtkFixed class struct.
2011-01-17 15:27:02 +01:00
Carlos Garnacho
2f207ca749
Make selectors with no explicit state from higher priority GtkStyleProviders override lower ones with a state.
...
This makes overriding information from the themes more intuitive
2011-01-17 04:44:29 +01:00
Carlos Garnacho
5f43a51a83
Make gtk_widget_get_path() also add all persistent style classes the widget has.
2011-01-17 04:44:03 +01:00
Carlos Garnacho
62fd79b224
Do not set junction sides to the entry frame in spinbuttons.
...
That's meant to be the outer frame, so no junction sides apply there
2011-01-17 04:43:52 +01:00
Carlos Garnacho
f482d4dc89
Ensure harder a GtkStyleContext has a theming engine anytime
2011-01-17 04:43:42 +01:00
Carlos Garnacho
07e62229da
Make GtkFrame propagate the "frame" style class to its header label
2011-01-17 04:43:31 +01:00
Carlos Garnacho
0e77486e91
Make GtkEntry set the style context state.
2011-01-17 04:43:23 +01:00
Carlos Garnacho
e28a2695ac
Improve progressbars theming.
...
Make progressbar itself have an outset border, and improve spacings.
2011-01-17 04:43:16 +01:00
Daniel Mustieles
c444ccf531
Updated Spanish translation
2011-01-16 21:25:10 +01:00
Daniel Mustieles
477ff06b25
Updated Spanish translation
2011-01-16 21:24:39 +01:00
Daniel Mustieles
837583eb36
Updated Spanish translation
2011-01-16 19:30:49 +01:00
Fran Diéguez
6893aa9c25
Updated Galician translations
2011-01-16 17:14:23 +01:00
Tristan Van Berkom
d9ebdb7610
Plugged memory leak in gdk_x11_device_manager_xi2_list_devices.
...
This was simply a misplaced 'g_list_copy()'.
2011-01-16 22:47:12 +09:00
Tristan Van Berkom
a530f88234
Plugged leaking PangoFontDescriptions in gtk_modifier_style_set_font().
2011-01-16 21:14:00 +09:00
Tristan Van Berkom
9438107bff
Plugged leak in gtkcssprovider.c
...
SelectorStyleInfo structs were never freed.
2011-01-16 20:52:43 +09:00
Tristan Van Berkom
c35fb706bd
Plugged memory leak in gtk_style_finalize (destroy the ->background[] patterns).
2011-01-16 20:17:52 +09:00
Tristan Van Berkom
4a5c435e9a
Plugging memory leak in GtkCellArea (free ->style_detail at finalize time).
2011-01-16 18:15:57 +09:00
Ivar Smolin
f793626a53
[l10n] Updated Estonian translation
2011-01-16 10:25:57 +02:00
Ivar Smolin
27e8df0c2c
[l10n] Updated Estonian translation
2011-01-16 10:25:22 +02:00
Martin Pitt
85fe2ce17f
Gtk{List,Tree}Store: Fix GI array annotations
2011-01-15 15:26:12 -06:00
Inaki Larranaga Murgoitio
9f78fd22bc
Updated Basque language
2011-01-15 18:17:38 +01:00
Javier Jardón
46f0994417
docs: gtkwidget: Add some "Since: 3.0"
2011-01-15 16:43:49 +00:00
Tristan Van Berkom
ac61edb9fc
Avoid calling gtk_widget_is_visible(NULL) in _gtk_notebook_get_tab_flags().
...
The tab can be NULL here when GtkNotebook:show-tabs is FALSE.
2011-01-15 21:34:49 +09:00
Kjartan Maraas
fed55eaf36
Updated Norwegian bokmål translation
2011-01-15 12:08:53 +01:00
Kjartan Maraas
77ad5096a9
Add missing files
2011-01-15 12:08:53 +01:00
Kjartan Maraas
4392c0e9b5
Updated Norwegian bokmål translation
2011-01-15 12:08:53 +01:00
Matthias Clasen
22876d789c
Fix a typo
2011-01-15 00:39:29 -05:00
Matthias Clasen
cc92d6da03
Fix a typo
2011-01-15 00:16:51 -05:00
Matthias Clasen
ccc3d874ef
Add accessors for GtkRange::round-digits
...
Patch by Christian Dywan,
https://bugzilla.gnome.org/show_bug.cgi?id=351755
2011-01-15 00:08:39 -05:00
Matthias Clasen
8e420bca02
Unify handling of prelighted icons
...
Make GtkEntry use gtk_render_icon_pixbuf for rendering the
icons, and move the working icon prelighting code from GtkEntry
to GtkThemingEngine.
https://bugzilla.gnome.org/show_bug.cgi?id=636691
2011-01-14 23:59:22 -05:00
Chun-wei Fan
e9319c6182
Merge ssh://git.gnome.org/git/gtk+
2011-01-15 12:42:52 +08:00
Matthias Clasen
867dc0bd0d
Avoid a critical warning during tab DND
...
https://bugzilla.gnome.org/show_bug.cgi?id=639380
2011-01-14 21:15:06 -05:00
Matthias Clasen
d790fd4fdd
Update information about visuals
...
Based on a patch by Jasper St. Pierre,
https://bugzilla.gnome.org/show_bug.cgi?id=639520
2011-01-14 20:45:53 -05:00
Matthias Clasen
8f6a8441a2
Implement the editing-canceled property in GtkCellEditableEventBox
...
https://bugzilla.gnome.org/show_bug.cgi?id=639455
2011-01-14 20:24:26 -05:00
Matthias Clasen
1cba79677c
Add --enable-gtk2-dependency option
...
This can be used to suppress building of gtk-update-icon-cache
in favor of using a preexisting version. Based on a patch by
Colin Walters,
https://bugzilla.gnome.org/show_bug.cgi?id=639471
2011-01-14 20:01:05 -05:00
Matthias Clasen
d8d31c60ca
Drop never-updated revision attributes
2011-01-14 19:35:34 -05:00
Matthias Clasen
abc8ac1a8b
Move GtkSelection docs inline
...
At the same time, move private selection API to gtkselectionprivate.h
2011-01-14 19:20:56 -05:00
Matthias Clasen
00a3685f41
Move GtkPrintJob docs inline
2011-01-14 18:39:01 -05:00
Matthias Clasen
6cf78a12c1
Move GtkTextTag docs inline
2011-01-14 17:49:48 -05:00
Matthias Clasen
06864ba656
Move GtkMenuShell docs inline
2011-01-14 16:59:29 -05:00
Sahran
35644cab9e
Added UG translation
2011-01-14 22:46:35 +01:00
Fridrich Štrba
708357001a
make the ms-windows engine compile again
2011-01-14 19:49:31 +01:00
Michael Natterer
6f4adebcef
gtk: render GtkEventBox' background in the right state
2011-01-14 16:56:50 +01:00
Fran Diéguez
d0f51577a4
Updated Galician translations
2011-01-14 16:49:43 +01:00
Matthias Clasen
e62b68fe62
Add EXPORT_PACKAGES for the girs
...
This connects the girs to the pc file names.
https://bugzilla.gnome.org/show_bug.cgi?id=635287
2011-01-14 09:46:21 -05:00
Matthias Clasen
9d14edf760
Add --include-uninstalled for the gdk gir
...
https://bugzilla.gnome.org/show_bug.cgi?id=635287
2011-01-14 09:44:10 -05:00
Matthias Clasen
8ba35bc381
Add --warn-all to introspection scanner args
...
https://bugzilla.gnome.org/show_bug.cgi?id=635287
2011-01-14 09:32:26 -05:00
Colin Walters
890e4511aa
GtkContainer: make "handle_border_width" member private
...
Otherwise in introspection we get a naming conflict between the
structure member and the method.
http://bugzilla.gnome.org/show_bug.cgi?id=639325
2011-01-14 09:29:33 -05:00
Matthias Clasen
92c8a3e0e1
Remove an overlooked instance of gdk drawing api
2011-01-13 23:42:12 -05:00
Matthias Clasen
985b0e57b2
Add a migration guide section about multiple backends
2011-01-13 23:40:47 -05:00
Matthias Clasen
04248fbd39
Update some outdated content in the question index
...
Based on a patch by Jasper St. Pierre
https://bugzilla.gnome.org/show_bug.cgi?id=639494
2011-01-13 23:10:25 -05:00
Matthias Clasen
b23839c7a5
Add an example for custom css
2011-01-13 22:19:58 -05:00
Matthias Clasen
9d85d87f05
Move GtkMenuBar docs inline
...
And remove some outdated content.
2011-01-13 22:11:22 -05:00
Matthias Clasen
df78c9ee66
Add some doc details
...
Mention symbolic color names in gtk_icon_info_load_symbolic_for_context()
2011-01-13 21:38:08 -05:00
Cosimo Cecchi
7e29fc5b42
gtkshow: don't call _get_display() on a NULL GdkScreen
...
gtk_show_uri() is documented to accept a NULL screen to mean the default
one. Calling gdk_screen_get_display() on a NULL object will cause
segfaults.
2011-01-13 16:18:59 +01:00
Tristan Van Berkom
04494c5df0
Making GtkCellLayout "no cell area yet" warning a g_critical instead.
2011-01-13 23:02:34 +09:00
Tristan Van Berkom
66593ef569
Added warnings to GtkCellLayout when api is accessed and there is no GtkCellArea to operate on.
2011-01-13 21:35:02 +09:00
Ivar Smolin
eaca2ea5e8
[l10n] Updated Estonian translation
2011-01-13 12:40:46 +02:00
Mahyar Moghimi
cbd313c237
correcting on off in gtkswitch according to bugreport:638232
2011-01-13 11:35:44 +03:30
Tristan Van Berkom
89eb869ecf
Avoid crashes calling gdk_window_enable_synchronized_configure() on an offscreen window.
...
Just added gdk_offscreen_window_do_nothing() noop stub in that slot.
2011-01-13 17:03:14 +09:00
Matthias Clasen
290c34b232
Try harder to find a good display name for paper sizes
...
This was requested in https://bugzilla.gnome.org/show_bug.cgi?id=639186 .
Also add some tests for GtkPaperSize.
2011-01-12 22:30:08 -05:00
Matthias Clasen
8709c86944
bump version
2011-01-12 19:56:22 -05:00
Matthias Clasen
03344207b9
Update NEWS
2011-01-12 19:06:48 -05:00
Matthias Clasen
76de8aa790
Move GtkTreeModel docs inline
2011-01-12 18:50:45 -05:00
Matthias Clasen
349c3a8839
Move enum docs inline
...
Based on a patch by Garrett Regier
https://bugzilla.gnome.org/show_bug.cgi?id=617324
2011-01-12 18:50:45 -05:00
Thomas Wood
0c6251d0d2
switch: allow the user to toggle the switch by clicking on the handle
2011-01-12 18:50:45 -05:00
Inaki Larranaga Murgoitio
49a6e0c2b6
Updated Basque language
2011-01-12 23:20:26 +01:00
Inaki Larranaga Murgoitio
e3304fe130
Updated Basque language
2011-01-12 23:18:55 +01:00
Inaki Larranaga Murgoitio
6a5d9b0bec
Updated Basque language
2011-01-12 23:09:27 +01:00
Carlos Garnacho
e2e7075533
Redo patch in efae64b (Set vertical/horizontal class...)
...
Add a _gtk_orientable_set_style_classes() function so all
orientation changes to style happen in a single place.
2011-01-12 22:58:41 +01:00
Christian Persch
b6464b6c0a
Add target version handling to gtk-builder-convert
...
When converting to gtk3, replace GtkComboBoxEntry with GtkComboxBox
has-entry=True, and remove the has-separator property from GtkDialogs.
Bug #639327 .
2011-01-12 22:45:57 +01:00
Carlos Garnacho
efae64be66
Set vertical/horizontal class on all widgets overriding GtkOrientable::orientation
...
This is so g_object_set() on that property leaves widgets' style in
a meaningful state. Fully fixes bug 639157.
2011-01-12 22:28:43 +01:00
Carlos Garnacho
8ad724ebcc
Deal with the abscence of horizontal/vertical class when rendering an expander
2011-01-12 22:07:34 +01:00
Carlos Garnacho
26db0b7276
Make GtkMenu(Shell) use GtkStyleContext
...
The default CSS has also been modified to theme these sensibly
2011-01-12 20:55:36 +01:00
Carlos Garnacho
4b61182521
Make GtkCheckMenuItem use GtkStyleContext
2011-01-12 20:54:35 +01:00
Carlos Garnacho
b7caeb7adb
Fix rendering glitch in menu radiobuttons
...
The arcs needed a new subpath.
2011-01-12 20:54:35 +01:00
Carlos Garnacho
f4714ccae2
Make GtkTearoffMenuItem use GtkStyleContext
2011-01-12 20:54:35 +01:00
Carlos Garnacho
7f5349b75a
Make GtkImageMenuItem use GtkStyleContext
2011-01-12 20:54:34 +01:00
Carlos Garnacho
c42f20efe3
Make GtkMenuItem use GtkStyleContext
2011-01-12 20:54:34 +01:00
Carlos Garnacho
6ff7a8daf2
Make GtkToolItemGroup use GtkStyleContext
2011-01-12 20:54:34 +01:00
Tristan Van Berkom
3492b1567d
Fixed assertions in gtk_cell_renderer_get_aligned_area().
...
The assertions here were not accounting for the possiblility of
zero width visible renderers that are aligned completely to the
right (i.e. renderers with no content set for a said row).
2011-01-13 01:16:19 +09:00
Guillaume Desmottes
aa1f58b731
_gtk_cell_area_set_cell_data_func_with_proxy: set the proxy when creating a new CellInfo ( #637965 )
2011-01-12 14:33:27 +01:00
Benjamin Otte
2b0b08a861
stylecontext: Protect the cairo contexts with cairo_save/cairo_restore()
...
We don't want theme engines to mess up the context we are currently
drawing with.
2011-01-12 11:40:09 +01:00
Chun-wei Fan
f79266092b
Update MSVC 2008 Project Files
...
-Update the project files to simplify them a bit after the seperation of
GDK-Pixbuf (move GDK-Pixbuf includes into the property sheet, move the
linking of Cairo/Pango/PangoCairo into the property sheet)--this is for
all DLL/EXE Projects (GDK/GTK/gtk-demo)
-Update the GDK-Win32 project as the source files have changed
significantly (especially as GDK3 was not compilable on Windows for a
while--thanks to Hans Breuer for the help in the process-Bug 639127)
-Made up for missed headers in the "install" stage and removed the removed
headers in the property sheet
-Updated GTK+ .def file generation as an extra macro is needed for that
-Updated gdk/Makefile.am for the generation of gdk.vcproj from gdk.vcprojin
2011-01-12 18:36:05 +08:00
Chun-wei Fan
479a08054b
Update MSVC 2008 Project Files
...
-Update the project files to simplify them a bit after the seperation of
GDK-Pixbuf (move GDK-Pixbuf includes into the property sheet, move the
linking of Cairo/Pango/PangoCairo into the property sheet)--this is for
all DLL/EXE Projects (GDK/GTK/gtk-demo)
-Update the GDK-Win32 project as the source files have changed
significantly (especially as GDK3 was not compilable on Windows for a
while--thanks to Hans Breuer for the help in the process-Bug 639127)
-Made up for missed headers in the "install" stage and removed the removed
headers in the property sheet
-Updated GTK+ .def file generation as an extra macro is needed for that
-Updated gdk/Makefile.am for the generation of gdk.vcproj from gdk.vcprojin
2011-01-12 18:32:57 +08:00
Khaled Hosny
6d6b38cf78
Updated Arabic translation
2011-01-12 09:11:04 +02:00
Khaled Hosny
908b419260
Updated Arabic translation
2011-01-12 08:56:41 +02:00
Fridrich Štrba
2f3c3ca7d3
Fix windows build from git clean and a minor linking issue
2011-01-11 22:45:40 +01:00
Yaron Shahrabani
f0b05328a6
Updated Hebrew translation
2011-01-11 20:40:36 +02:00
Florian Müllner
5616ad0e19
[build] Add gtktextattributes.h
...
Commit 7fae37ecd5 factored out GtkTextAttributes, but did not add
the new header to the build system.
2011-01-11 18:10:26 +01:00
Fridrich Štrba
a606ea62a1
Fix win32 build
2011-01-11 17:28:37 +01:00
Benjamin Otte
7e33c009a0
gdk: Fix typo
...
<mclasen>: Comapny: kludge, with a k
2011-01-11 17:06:49 +01:00
Benjamin Otte
b05f54ff73
x11: Add --c-include for gdk/gdkx.h to Gdk-X11 gir build
2011-01-11 16:46:59 +01:00
Benjamin Otte
ebd5f8b10e
gdk: Put stub gdkx.h into gdk/ dir
...
This is so we can include gdk/gdkx.h from inside GTK code.
2011-01-11 16:46:59 +01:00
Benjamin Otte
654aca5ccd
gdk: Don't build X11 stuff into Gdk.gir
2011-01-11 16:46:59 +01:00
Benjamin Otte
268efbc0ef
gdk: Add --c-include gdk/gdk.h to Gir build.
2011-01-11 16:46:59 +01:00
Benjamin Otte
a25813cc24
gtk: Add --c-include to gir build
2011-01-11 16:46:59 +01:00
Benjamin Otte
b30b33998f
gtk: Prefix GtkCellAreaBoxContext symbols with an underscore
...
They are private.
2011-01-11 16:46:59 +01:00
Benjamin Otte
8899ab3f91
gtk: Remove private GtkCellAreaBoxContext symbols from gtk.symbols
2011-01-11 16:46:59 +01:00
Benjamin Otte
04c773c94d
gtk: Rename private header to private name
...
gtk/gtkcellareaboxcontext.h -> gtk/gtkcellareaboxcontextprivate.h
2011-01-11 16:46:59 +01:00
Benjamin Otte
b43bafff52
textview: Move text attributes code into its own .c file
2011-01-11 16:46:59 +01:00
Benjamin Otte
7fae37ecd5
textview: Move GtkTextAttributes to its own header
2011-01-11 16:46:59 +01:00
Benjamin Otte
b40dc528f6
tests: Remove useless calls to gtk_widget_style_attach()
2011-01-11 16:46:59 +01:00
Christian Dywan
35d361fce9
2 to 3 migration should say gtk_widget_set_visual
2011-01-11 16:36:19 +01:00
Milan Bouchet-Valat
44da5a0094
Improve docs about GtkStyleContext padding/border/margin
...
GTK_STYLE_PROPERTY_BORDER_WIDTH is of style GtkBorder, not gint.
Also make it clearer what the definition and ordering of these 3
properties is. Reorder them in the header to be more logical.
2011-01-11 12:28:54 +01:00
Cosimo Cecchi
27ee3fec96
numerableicon: fix a typo in the gtk-doc annotation
2011-01-11 10:55:42 +01:00
Javier Jardón
df2a4a6131
docs: question_index: Do not reference deprecated API
2011-01-11 09:37:05 +00:00
Javier Jardón
44f16bfe6d
docs: question_index: GtkComboBoxEntry no longer exists
2011-01-11 09:35:15 +00:00
Javier Jardón
1a79d9939c
docs: question_index: Some documentation fixes
2011-01-11 09:31:08 +00:00
Matthias Clasen
62ba858582
Bump version
2011-01-10 23:36:47 -05:00
Matthias Clasen
6d9191f601
Revert accidental gtk.symbols changes
2011-01-10 22:59:13 -05:00
Matthias Clasen
a9a7eca7f3
Update NEWS
2011-01-10 22:19:12 -05:00
Sébastien Granjoux
8f6cd8d86d
Fix bgo #638017 Crash in gtk_text_view_set_tabs()
2011-01-10 21:07:32 -05:00
Matthias Clasen
9b752aee1a
Don't use deprecated style api
2011-01-10 20:33:13 -05:00
Carlos Garnacho
48a4f88ab1
Mark orientable widgets with the vertical/horizontal css classes
...
This can be used to theme widgets differently depending on the
orientation. Bug 639157, reported by Christian Dywan.
2011-01-10 23:53:29 +01:00
Carlos Garnacho
529fcc84cf
Add missing CSS class defines to gtk3-sections.txt
2011-01-10 23:52:47 +01:00
Carlos Garnacho
4c4df23d12
GtkThemingEngine: Fix handles rendering
...
The wrong class was being used, so the theming engine didn't
match it properly.
2011-01-10 23:52:36 +01:00
Carlos Garnacho
d5b0ccacce
GtkStyleContext: Do not cancel possibly unstarted transitions
...
It might happen that this overcautious check is done on an animation
that didn't have time to gather invalidation rectangles.
2011-01-10 23:52:21 +01:00
Carlos Garnacho
733cb5e43d
Cleanup leftover code in gtkplug-x11
...
This code was part of the GdkDeviceManagerCore hack
2011-01-10 23:52:02 +01:00
Carlos Garnacho
42ad651914
Mark gtk_widget_style_attach() as deprecated.
...
This isn't needed anymore.
2011-01-10 23:51:48 +01:00
Carlos Garnacho
e426f76e57
Fix compiler warning.
2011-01-10 23:51:14 +01:00
Carlos Garnacho
fa2bfd93f8
Add gtk_widget_set_device_enabled()
...
This function is a more convenient variant than
gtk_widget_set_device_events(), as it will
1) perform changes down a widget hierarchy, to
all windows.
1) use the same event mask than gdk_window_get_events()
2011-01-10 23:01:02 +01:00
Carlos Garnacho
c94912afd5
GtkTextUtil: Fix typo
...
Use the right "context" object around in GtkStyleContext methods.
2011-01-10 23:01:01 +01:00
Paolo Borelli
a67507a53e
Set the proper css class when getting attributes.
2011-01-10 21:58:29 +01:00
Hans Breuer
0a9abb0222
[portability] Use G_PI rather than M_PI
2011-01-10 21:39:34 +01:00
Hans Breuer
f605d3d698
Bug 639127 - Add missing gdkdisplaymanager-win32.c
2011-01-10 21:39:33 +01:00
Carlos Garnacho
de36dda925
Add gtk_style_context_scroll_animations()
...
This function will be needed in widgets like GtkTreeView,
since gdk_window_scroll() doesn't trigger the usual
mechanisms to update the invalidation area, this function
is needed together with it.
2011-01-10 20:49:41 +01:00
Carlos Garnacho
162380fca5
Make GtkCalendar use GtkStyleContext
2011-01-10 20:49:34 +01:00
Carlos Garnacho
12944d9c23
Do not set any padding for scrolled window children.
2011-01-10 20:49:27 +01:00
Carlos Garnacho
d9dab98ad6
GtkCssProvider: enable parsing negative GtkBorders
...
this can be used as in regular CSS under some situations,
so child items overlap the parent element's border.
2011-01-10 20:49:14 +01:00
Carlos Garnacho
2ec40cac8c
Make GtkTextUtil use GtkStyleContext.
2011-01-10 20:48:59 +01:00
Paolo Borelli
c5a8584c3e
CSS styles for the selection in a TextView.
...
https://bugzilla.gnome.org/show_bug.cgi?id=639106
2011-01-10 18:52:35 +01:00
Paolo Borelli
2290ec6bd8
Port GtkTextDisplay to StyleContext.
...
Use the new StyleContext and StateFlags to draw the text
https://bugzilla.gnome.org/show_bug.cgi?id=639105
2011-01-10 18:52:35 +01:00
Matthias Clasen
845d864a51
add gtknumerable.c to POTFILES.in
2011-01-10 12:06:31 -05:00
Yaakov Selkowitz
5caa2b58cb
Fix remaining usage of g[dk]ktargetlib.
...
This is a follow-up to commit 07d49ee56a .
https://bugzilla.gnome.org/show_bug.cgi?id=639047
2011-01-10 11:53:26 -05:00
Matthias Clasen
efd0e6ec1f
Add a setter for GtkWindow.has_user_ref_count
...
This is needed for some language bindings.
https://bugzilla.gnome.org/show_bug.cgi?id=638880
2011-01-10 11:49:06 -05:00
Matthias Clasen
061d48b68d
More doc build fixes
...
Grr, our mixture of xml and plain text in long descriptions is
a mess.
2011-01-10 10:59:50 -05:00
Matthias Clasen
f758385353
Fix doc syntax
2011-01-10 09:47:09 -05:00
Javier Jardón
63bb0c73bc
build: Use mkdir_p instead mkinstalldirs
...
As we don't use mkinstalldirs, $(mkinstalldirs) is simply an
alias for $(mkdir_p)
2011-01-10 13:55:29 +00:00
Tristan Van Berkom
3f911b2516
Fixed GtkEntry to report the proper default value for "primary/secondary-icon-activatable"
2011-01-10 22:26:46 +09:00
Tristan Van Berkom
2dafbba921
Added GtkBuildable support for specifying <items> in GtkComboBoxText.
2011-01-10 18:48:07 +09:00
Tristan Van Berkom
cfecb6bf10
Added GtkBuildable support to add "tag" children to GtkTextTagTable.
2011-01-10 18:48:07 +09:00
Tristan Van Berkom
03975b8e74
Added GtkBuilder support for "menu" child type of GtkMenuToolButton
2011-01-10 18:48:07 +09:00
Tristan Van Berkom
1fa280938b
Fixed GtkCellAreaBox to not allocate invisible cells.
...
This was already done for the most part but not taken care
of for single cell groups (which is the most common case).
2011-01-10 18:47:55 +09:00
Tristan Van Berkom
34a7dbae3b
Fixed GtkCellArea to never activate/start editing insensitive cells.
...
Included extension to tests/testtreeedit to show this is working properly.
2011-01-10 17:58:57 +09:00
Carlos Garnacho
5c3b49ab14
Ensure GtkStyleContext is generated on gtk_widget_render_icon_pixbuf()
...
This fixes some warnings seen when this is called early
on non yet styled widgets.
2011-01-10 03:50:02 +01:00
Carlos Garnacho
6f3706ac28
Make GtkViewport use GtkStyleContext
2011-01-10 03:50:02 +01:00
Carlos Garnacho
e6277d3b82
Add gtk_style_context_cancel_animations()
...
This function takes a region ID and cancels all animations
on or beneath that region (as in push/pop_animatable_region).
First user of this is GtkWidget itself, so unmapped widgets
have looping animations cancelled. Fixes bug #638119 , reported
by Jesse van den Kieboom.
2011-01-10 03:50:01 +01:00
Carlos Garnacho
3dd838fe76
Make GtkLayout use GtkStyleContext
2011-01-10 03:50:01 +01:00
Carlos Garnacho
18502518f3
Make GtkImage use GtkStyleContext
2011-01-10 03:50:00 +01:00
Carlos Garnacho
4e73267325
Make GtkPrintUnixDialog use GtkStyleContext.
2011-01-10 03:50:00 +01:00
Carlos Garnacho
6fae7c9fa7
Make GtkFontSelection use GtkStyleContext
2011-01-10 03:50:00 +01:00
Carlos Garnacho
2f6514ce34
Make GtkHSV use GtkStyleContext
...
two custom classes replace the light/dark focus detail strings,
it doesn't make much sense to have a GTK_STYLE_CLASS_* for that.
2011-01-10 03:49:59 +01:00
Carlos Garnacho
27c5cc88f8
Make GtkColorSelection use GtkStyleContext
2011-01-10 03:49:59 +01:00
Carlos Garnacho
455c31d815
Make GtkColorButton use GtkStyleContext
2011-01-10 03:49:59 +01:00
Carlos Garnacho
e0e36b621f
Update _gtk_button_paint() arguments to GtkStyleContext
...
The detail strings weren't in use anymore, and the state
argument is now a GtkStateFlags. GtkToggleButton has been
updated as well.
2011-01-10 03:49:59 +01:00
Carlos Garnacho
f506fc3e93
Remove recent GtkStyle usage in GtkWindow
...
GtkStyleContext API is used instead.
2011-01-10 03:49:59 +01:00
Fran Diéguez
e94b515171
Updated Galician translations
2011-01-10 00:03:19 +01:00
Paolo Borelli
ab656b3f7a
Obtain the fg color from the renderer
...
prepare_run must have been called before draw_shape, so we can avoid
fiddling the the (deprecated) style and state and just use the color
alredy set on the renderer.
https://bugzilla.gnome.org/show_bug.cgi?id=639079
2011-01-09 21:59:50 +01:00
Paolo Borelli
fadca187f2
Remove stipple attributes
...
GtkTextView does not support them anymore.
https://bugzilla.gnome.org/show_bug.cgi?id=639030
2011-01-09 21:59:50 +01:00
Paolo Borelli
12c4730e6f
Small cleanup in gailtextview code.
...
Fold gail_misc_add_to_attr_set into the only function calling it, which
avoids a useless big "switch" and results in much less code.
https://bugzilla.gnome.org/show_bug.cgi?id=639030
2011-01-09 21:59:50 +01:00
Yaron Shahrabani
89c8e2af2d
Updated Hebrew translation
2011-01-09 21:04:58 +02:00
Fran Diéguez
e0d393dec8
Updated Galician translations
2011-01-09 16:42:40 +01:00
Milan Bouchet-Valat
f9e685e5c0
[Doc] gtk_symbolic_color_resolve()'s props arg can be NULL
...
Document this behavior and add annotations.
2011-01-08 17:30:45 +01:00
Jorge González
b761cadacc
Updated Spanish translation, fixes bug #638991
2011-01-08 13:49:31 +01:00
Javier Jardón
cc0a65cb56
docs: Fix typo in GtkWidget geometry-management documentation
...
Reported by Andrew Cowie in
https://bugzilla.gnome.org/show_bug.cgi?id=638963
2011-01-08 10:56:59 +01:00
Tristan Van Berkom
1ff8df1e18
Adding missing gtk-doc annotations.
...
GtkProgressBar:show-text, GtkScrolledWindow:min-content-width/height
are new properties in 3.0.
2011-01-08 18:46:46 +09:00
Bruce Cowan
094d4c81be
Updated British English translation
2011-01-07 23:25:18 +00:00
Carlos Garnacho
29b4baea97
Translate KeyPress/KeyRelease in gtkplug-x11
...
This makes XEmbed work properly again. Only event->key.group
and is_modifier are left blank at the moment. Exposing the
necessary XKB bits should be considered, but it's not urgent
for the current usecases.
2011-01-07 22:07:52 +01:00
Kristian Rietveld
4ed781778d
Introduce gtk_tree_view_is_blank_at_pos()
...
This function is useful to figure out whether the tree view is "blank"
at a given location. For such locations you might want to popup a
custom popup menu, clear the current selection or start rubber banding.
In the future, we are planning on updating GtkTreeView's user
interactions to take advantage of this new function.
Part of bug 350618.
2011-01-07 15:38:06 +01:00
Kristian Rietveld
688d053436
Fix gtk_tree_view_column_cell_get_position()
2011-01-07 15:38:06 +01:00
Andika Triwidada
c40c4a45e5
Updated Indonesian translation
2011-01-07 20:38:52 +07:00
Matthias Clasen
be632558dc
Document that GtkModuleInit doesn't receive argv anymore
2011-01-07 08:12:07 -05:00
Ignacio Casal Quinteiro
8de4661d80
Set the style for .view so i.e the GtkTextView gets the right style.
2011-01-07 11:35:40 +01:00
Tristan Van Berkom
da41937b42
Removed special casing code in GtkCellLayout in favor of default implementation.
...
The fact that GtkCellLayout was checking "if (gtk_cell_layout_get_area (layout))"
and executing code contitionally from the apis instead of simply falling
back to the default implementation for these things was causing problems
in language bindings such as gtkmm... Regardless, the implementation
is cleaner this way too.
2011-01-07 18:08:51 +09:00
Tristan Van Berkom
685fe29473
Fixed documentation of gtk_cell_area_set_focus_cell().
2011-01-07 16:21:51 +09:00
Emilio Pozuelo Monfort
ec15c405cf
Support disabling X11 extensions
...
Based on a patch from Cyril Brulebois <kibi@debian.org >
https://bugzilla.gnome.org/show_bug.cgi?id=612918
2011-01-07 01:30:11 +00:00
Fran Diéguez
7fc09ee135
Updated Galician translations
2011-01-07 00:11:51 +01:00
Matthias Clasen
aead0b04df
Forgotten documentation fix
2011-01-06 11:27:38 -05:00
Matthias Clasen
7f58c57606
Bump version
2011-01-06 11:27:15 -05:00
Matthias Clasen
6cdb6255af
More documentation fixes
2011-01-06 09:44:08 -05:00
Matthias Clasen
f35c3fd5f7
Undoccommentize gtktreemenu.c
2011-01-06 09:00:53 -05:00
Matthias Clasen
6619ac35e3
Documentation fixes
2011-01-06 09:00:53 -05:00
Matthias Clasen
c396c52327
Documentation fixes
2011-01-06 08:12:01 -05:00
Matthias Clasen
dc3d70b4ec
Add sufficient deps to make building from 'git clean' work
2011-01-06 07:44:44 -05:00
Matthias Clasen
5984fa0073
Fix introspection annotation syntax
2011-01-06 07:44:19 -05:00
Kizito Birabwa
2f09f800cc
Updated Luganda translation
2011-01-06 10:23:59 +01:00
Matthias Clasen
7b88b29763
Add appchooser docs
2011-01-06 02:07:35 -05:00
Matthias Clasen
80a11b7483
Documentation polishing
2011-01-06 01:13:50 -05:00
Matthias Clasen
f2cde4cf3b
Move the GtkApplication example to the right place
2011-01-06 01:13:50 -05:00
Matthias Clasen
39d0a8ac47
Update NEWS some more
2011-01-06 01:13:50 -05:00
Tristan Van Berkom
44a9b1c35e
Fixed statement in gtkwindow.c when toplevelness changes.
...
Fixed a typo when checking if the heirarchy toplevel is a toplevel
before firing the hierarchy-changed signal.
2011-01-06 14:39:41 +09:00
Tristan Van Berkom
a28295a742
Dont show the GtkWindow when removing it from a parent and becomming a toplevel
...
Showing the window causes it to try to grab focus, this causes problems
when embedded toplevels run through dispose cycles.
2011-01-06 14:39:41 +09:00
Tristan Van Berkom
b8c8f2ccb1
Fixed conflict while rebasing master.
2011-01-06 14:39:41 +09:00
Tristan Van Berkom
72675f1f28
Changes to testtoplevelembed
...
- Made notebook tabs smaller
- No need to hide/show toplevels after removing from a parent,
if it's visible it will be automatically shown after removing
outside of it's previous parent.
2011-01-06 14:39:41 +09:00
Tristan Van Berkom
53980aca9b
Fixed GtkFileChooserDefault to handle cases of being in an embedded dialog.
...
This involves checking the toplevelness of new toplevels before connecting
but not the *old* ones for disconnecting signals. Also take care of handling
a row_reference that becomes invalid over the course of reparenting the
filechooser into another parent.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
93c8058582
Fixed GtkWindow/GtkWidget to properly emit hierarchy changed for embedded toplevels
...
Now GtkWindow takes some measures when setting toplevelness:
- When a window becomes toplevel after being embedded it saves
the visibility state and reshow's itself so that the window
re-realizes and presents itself again automatically
- When emitting hierarchy-changed, synthetically mark the toplevel
as not anchored, this allows the hierarchy changed propagation to
recurse properly.
GtkWidget also takes care to unset the parent window *after* unparenting
the widget and after emitting the heirarhcy changed that leaves a NULL
toplevel.
That means there are now 2 cycles of "hierarchy-changed" when removing
an embedded toplevel from a parent, first one that makes the new toplevel
a NULL one (since the toplevel flag is not yet restored), the second cycle
makes the removed window toplevel again when setting the parent window
to NULL.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
aa787c9dd1
Fixed focus handling on embedded windows.
...
Now GtkWindow chains up in focus vfuncs when non-toplevel, this
fixes focus in testtoplevelembed.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
387d745e0e
Added buttons to notebook tabs in testtoplevelembed
...
Now you can remove and reembed the toplevels (deleting the
toplevels put them back in the notebook).
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
2dfa855bc4
Moved location of unsetting parent window inside gtk_widget_unparent().
...
Make sure to do this after the widget is unrealized.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
fdba9f281d
Fixed issues with "hierarchy-changed" signal.
...
GtkFileChooserDefault watches the toplevel and montitors "set-focus"
signal on it... however the connection needs to be remade when the
GtkFileChooserDialog is in an embedded toplevel.
Measure's taken: GtkWindow propagates hierarchy changes when
_gtk_window_set_is_toplevel() is called, gtk_widget_unparent()
unsets the widget's parent window earlier in the function so that
the possible hierarchy change is still able to properly access the hierarchy.
GtkFileChooserDefault checks if the "new" toplevel is indeed
gtk_widget_is_toplevel() but not the old one, GtkRange has been
updated to use gtk_widget_is_toplevel() inside it's hierarhcy_changed
vfunc, other classes already do this properly.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
69b1bfb17b
Added tests/testtoplevelembed.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
addcc64b9c
Slightly less special casing in GtkWindow for gtk_widget_is_toplevel()
...
Also take care of setting the resize-mode at realize time depending
on toplevelness.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
6299f61ee7
Added docs to gtk_widget_set_parent_window.
...
Also stop setting the resize mode of the window.
2011-01-06 14:39:40 +09:00
Tristan Van Berkom
8b4b62f00c
Allow GtkWindow to be parented if gtk_widget_set_parent_window() is called on one
...
This patch makes gtk_widget_set_parent_window() undo the toplevelness
of a GtkWindow, GtkWindow then realizes itself as a normal child widget
and behaves like a normal GtkBin by checking gtk_widget_is_toplevel() in
several places (show/hide/map/unmap/draw/size_allocate/check_resize/configure_event).
2011-01-06 14:39:40 +09:00
Matthias Clasen
a601b43b83
Cosmetic changes
2011-01-06 00:14:02 -05:00
Tristan Van Berkom
4d8c7c5782
Ensure that GtkIconView items get redrawn when the focus cell changes.
...
Seems the redraw was not happenning from keynav when set_focus_cell()
was called because keynav already updates the focus-cell. Now we
just unconditionally redraw the focus item when set_focus_cell() is
called.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
bab0f5a5c1
Fixed GtkIconView keynav
...
Icon View was not initially setting focus on a cell when
focus initially comes into the view. Focusing into whatever
is the first cell in the cursor item when set_cursor_item
is called with a NULL cell fixes this.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
b7c25c41d6
Fixed gtkiconview dispose cycle to not fire warnings.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
56580d1b8b
Restored the old GtkIconView guess for wrap-width/width size of text cell
...
GtkIconView sets the minimum width of the text cell to be at least 50
pixels and otherwise twice the width of the first pixbuf cell found
in the icon list.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
60e5fcf4db
Made GtkIconView reset the context and invalidate all sizes when a row changes.
...
GtkIconView should have a "grow-only" mode to handle optimization to
only allow icons to grow in width when rows change, however since
GtkIconView still does not handle large numbers of rows for now we'll
just relayout the whole thing whenever a series of rows change.
Also fixed up to watch the context incase of implicit resets.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
6036c51d52
Removed gtk_icon_view_get_item_area()
...
Now use a GdkRectangle at the begining of the GtkIconViewItem
structure and just re-cast the struct to get the item area.
2011-01-06 13:51:49 +09:00
Tristan Van Berkom
d0f13ae52c
Fixed GtkIconView buildable custom tag end to let cell layout properly
...
handle <cell-packing>
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
01a35e4483
Added gtk_icon_view_new_with_area()
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
a160358830
GtkIconView now uses a per-row GtkCellAreaContext to store the alignments
...
of each row.
GtkIconView now properly calculates the height of each row separately
using a separate GtkCellAreaContext stored in an array which it can
always easily index with the item->row index for all purposes.
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
2d5eadb7f9
Alignments with variable row heights almost works perfectly.
...
However, I'm going to have to figure a way to store the alignments
for rows separately, this may involve using a separate GtkCellAreaContext
for each row, unfortunately.
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
e51592c0b3
Experimenting with allocating the context a different height for each row.
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
c77abe1f83
Committing working version of GtkIconView using GtkCellArea.
...
Some things still not sorted out, GtkCellAreaContext is not allocated
so icons dont recieve alignments yet, focus navigation is not exactly
what it used to be (maybe we can work around that by observing the
item orientation and explicitly setting focus to the same cell when
navigating in the wrong orientation).
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
951ea857cc
Initial messy commit of GtkIconView using GtkCellArea (nothing works yet).
2011-01-06 13:51:48 +09:00
Tristan Van Berkom
6d483ed930
Added GtkCellArea & GtkCellAreaContext to GtkIconView
...
First commit to icon-view-refactor, essentially only adds the
construct-only "cell-area" property and the context but doesnt
use it.
2011-01-06 13:51:48 +09:00
Szilárd Pfeiffer
8219ed3a26
Add gtk_tree_model_iter_previous() vfunc
...
https://bugzilla.gnome.org/show_bug.cgi?id=128058
2011-01-05 23:39:11 -05:00
Matthias Clasen
072023e57b
Remove deprecated GtkSpinner style properties
2011-01-05 23:21:52 -05:00
Matthias Clasen
2b3b3934a4
Another NEWS update
2011-01-05 21:12:51 -05:00
A S Alam
f4cf52f2cc
Translation: update Punjabi
2011-01-06 07:16:05 +05:30
Matthias Clasen
53b67b9a72
Drop the G_SEAL definition from gdkconfig.h
...
All sealed members removed. Yay!
2011-01-05 19:00:14 -05:00
Benjamin Otte
2e064b3378
tests: Port testsocket example to not use deprecated APIs
2011-01-05 23:50:22 +01:00
Benjamin Otte
8136481d75
tests: Fix compile warnings for people who don't read gcc output.
2011-01-05 23:50:22 +01:00
Benjamin Otte
96091a4d9c
adjustment: Privateize sealed members
2011-01-05 23:50:22 +01:00
Benjamin Otte
e1cb1b89d8
testgtk: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
3d3358b561
testgtk: Rename "adj" variables to "adjustment"
2011-01-05 23:50:22 +01:00
Benjamin Otte
b533305728
tests: Update prop-editor adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
d5f7b6cd64
gtk-demo: Undef GDK_DISABLE_DEPRECATED to make test compile
2011-01-05 23:50:22 +01:00
Benjamin Otte
e62b39c921
volumebutton: Update adjustment usage for sealing
...
Also rename all variables named "adj" to "adjustment", like they're
called everywhere else.
2011-01-05 23:50:22 +01:00
Benjamin Otte
f79c6baa66
scalebutton: Update adjustment usage for sealing
...
Also rename all variables named "adj" to "adjustment", like they're
called everywhere else.
2011-01-05 23:50:22 +01:00
Benjamin Otte
cc879a6028
textview: Update adjustment usage for sealing
...
Also rename all variables named "adj" to "adjustment", like they're
called everywhere else.
2011-01-05 23:50:22 +01:00
Benjamin Otte
cd80f49053
tests: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
a41402c455
combobox: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
e4442c010b
examples: Update dial adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
c731e1ce0a
demos: Update testpixbuf-scale demo for adjustment sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
a28be2cc6c
gail: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
801ba1c758
range: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
95e9f4c0c1
range: Rewrite attachment setters to use sealed API
2011-01-05 23:50:22 +01:00
Benjamin Otte
7210e6e1cd
viewport: Update adjustment usage for sealing
2011-01-05 23:50:22 +01:00
Benjamin Otte
2b4bb071a3
viewport: Rewrite adjustment modification code for sealing
2011-01-05 23:50:21 +01:00
Benjamin Otte
a317499031
iconview: Update adjustment usage for sealing
2011-01-05 23:50:21 +01:00
Benjamin Otte
aa495f00b4
iconview: Use gtk_adjustment_configure() instead of g_object_set()
...
Simplifies code quite a bit apart from jsut making it more readable.
2011-01-05 23:50:21 +01:00
Benjamin Otte
3f1a65d6f5
iconview: Use set_[hv]adjustment_values() also when just changing upper
...
Simplifies the code quite a bit and the code is smart enough to not do
extra work if only one value changes.
2011-01-05 23:50:21 +01:00
Benjamin Otte
1af3a95e8c
menu: Update adjustment usage for sealing
2011-01-05 23:50:21 +01:00
Benjamin Otte
8ea3372395
menu: Update adjustment usage for sealing
...
Call gtk_adjustment_set_value() instead of manually updating the value
in gtk_menu_scroll_to()
2011-01-05 23:50:21 +01:00
Benjamin Otte
f5a3af9b02
scrolledwindow: Update adjustment usage for sealing
2011-01-05 23:50:21 +01:00
Benjamin Otte
76b50a7eae
spinbutton: Update adjustment usage for sealing
...
Also rename all variables named "adj" to "adjustment", like they're
called everywhere else.
2011-01-05 23:50:21 +01:00
Matthias Clasen
14a452ab50
More updates
2011-01-05 16:58:08 -05:00
Matthias Clasen
7799fbf239
Add GtkNumerableIcon
...
This is a subclass of GEmblemedIcon that can show a number or
short string as an emblem, overlayed on top of another emblem.
Written by Cosimo Cecchi
https://bugzilla.gnome.org/show_bug.cgi?id=637169
2011-01-05 16:33:15 -05:00
Tristan Van Berkom
9a80100e9a
Fixed get_size() for GtkCellRendererText to clip to the input area
...
For ellipsize cells it's important to clip the result of get_size()
so that the returned required rectangle is indeed less than or equal
to the input rectangle... this is done so that GtkCellArea can accurately
paint focus on cells by calling gtk_cell_renderer_get_aligned_area().
Patch also adds assertions to gtk_cell_renderer_get_aligned_area() to
ensure this keeps working correctly.
2011-01-06 02:31:42 +09:00
Matthias Clasen
e41fb7703c
Add padding to text attribute structs
2011-01-05 11:28:45 -05:00
Ivar Smolin
3d12aca2f9
[l10n] Updated Estonian translation
2011-01-05 18:14:40 +02:00
Matthias Clasen
67b8f22d8b
Remove some dropped symbols from gtk3-sections.txt
2011-01-05 11:01:46 -05:00
Matthias Clasen
3109441c77
Update gtk symbols list
2011-01-05 11:01:45 -05:00
Milan Bouchet-Valat
d7af47d657
Fix doc about gtk_cell_layout_get_area()
...
Return value was copied and pasted from gtk_cell_layout_get_cells(),
which is obviously wrong.
2011-01-05 16:45:51 +01:00
Milan Bouchet-Valat
ebe9d075f4
Fix GtkCellArea:edit-widget to be of type GtkCellEditable
...
More correct, and consistent with gtk_cell_area_get_editable_widget().
2011-01-05 16:45:51 +01:00
Matthias Clasen
f377621eb7
Fix libgail-util doc build
2011-01-05 10:12:16 -05:00
Matthias Clasen
680b64d04a
Fix some parameter name mismatches in the docs
2011-01-05 10:04:48 -05:00
Matthias Clasen
9f13312520
Fix file lists in the win32 backend
2011-01-05 09:58:46 -05:00
Matthias Clasen
1a8290f92c
Update POTFILES some more
2011-01-05 09:43:45 -05:00
Matthias Clasen
57de2c84c4
Try again to fix the doc build
2011-01-05 09:38:36 -05:00
Matthias Clasen
2c9fad9ea8
Update POTFILES
2011-01-05 08:42:57 -05:00
Benjamin Otte
7d94127917
testutils: Update adjustment usage for sealing
2011-01-05 14:36:11 +01:00
Benjamin Otte
58fa980d12
textview: Update adjustment usage for sealing
2011-01-05 14:36:11 +01:00
Benjamin Otte
f65fa81e3a
treeview: Update adjustment usage for sealing
...
Use getters instead of direct structure access.
2011-01-05 14:30:59 +01:00
Benjamin Otte
6ff585e189
treeview: Update adjustment usage for sealing
...
Use gtk_adjustment_set_upper() instead of doing its work manually.
2011-01-05 14:30:59 +01:00
Benjamin Otte
e93eb20794
treeview: Update adjustment usage for sealing
...
Use gtk_adjustment_configure() when toggling header visibility.
2011-01-05 14:30:58 +01:00
Benjamin Otte
bb64831987
tests: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
79cc672f3f
toolitemgroup: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
c6697af962
layout: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
fdedc8e376
colorsel: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
beec484964
toolpalette: Update adjustment usage for sealing
2011-01-05 14:30:58 +01:00
Benjamin Otte
c43a31ea33
API: range: Remove update policy
...
It's unused and complicates code a lot. In particular, it breaks the
adjustment/range abstractions.
2011-01-05 14:30:58 +01:00
Matthias Clasen
e608cc4eaf
Update gtk symbol list
2011-01-04 23:49:01 -05:00
Matthias Clasen
5c1502479a
Fix gdk/abicheck.sh temporarily
...
The best fix for now is to just hardcode the X11 backend again
2011-01-04 23:40:41 -05:00
Matthias Clasen
c4f0bbb130
fix documentation build
2011-01-04 23:15:35 -05:00
Matthias Clasen
9ec7f51ac1
Update NEWS for 2.99
2011-01-04 22:49:54 -05:00
Matthias Clasen
c1773bf240
Bump version to 2.99
2011-01-04 22:01:48 -05:00
Matthias Clasen
369b64b427
Brush up configure output
...
Show used X extensions, print backends, etc.
Also make configure abort in some more cases when explicitly
enabled options are missing dependencies.
2011-01-04 21:57:21 -05:00
Matthias Clasen
c97652aeb4
Decouple GdkWindowCache life-cycle from GdkX11DragContext
...
By making window caches refcounted. This fixes problems with leaking
drag contexts, as experienced in
https://bugzilla.gnome.org/show_bug.cgi?id=637691
and
https://bugzilla.gnome.org/show_bug.cgi?id=144324
Based on a patch by drago01@gmail.com
2011-01-04 19:30:04 -05:00
Emilio Pozuelo Monfort
a108b2b08b
Fix build when builddir != srcdir
2011-01-04 23:21:36 +00:00
Emilio Pozuelo Monfort
cfc70ca71b
Fix introspection build when builddir != srcdir
...
So gdk/gdk.h can find gdk/gdkconfig.h, which is in $builddir
because it's generated.
2011-01-04 23:21:35 +00:00
Matthias Clasen
2690b8b924
Move GtkEntryCompletion docs inline
...
Based on a patch by Garrett Regier
https://bugzilla.gnome.org/show_bug.cgi?id=617322
2011-01-04 17:54:47 -05:00
Matthias Clasen
82c9013e01
Add gtkcellrenderer.sgml to .gitignore
2011-01-04 17:52:14 -05:00
Matthias Clasen
e9cc9d5c47
Small doc cleanups for GtkCellLayout
2011-01-04 17:42:30 -05:00
Matthias Clasen
b123bc41fd
Move docs for gtkmain inline
...
At the same time, introduce a gtkmainprivate.h header
and various other cleanups.
Based on a patch by Tadej Borovšak.
https://bugzilla.gnome.org/show_bug.cgi?id=617471
2011-01-04 17:32:12 -05:00
Matthias Clasen
98440ad031
Remove gtktypeutils altogether
...
Based on patches by Javier Jardón.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2011-01-04 14:51:19 -05:00
Matthias Clasen
1283368b1b
Remove GtkArg, GtkCallbackMarshal and GtkFunction
...
Based on a patch by Javier Jardón.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2011-01-04 13:49:37 -05:00
Javier Jardón
7e7d8c4ccc
Remove deprecated gtk_quit_* API
2011-01-04 13:39:35 -05:00
Matthias Clasen
3e348181ed
Move GtkExpander docs inline
...
Based on a patch by Garrett Regier.
https://bugzilla.gnome.org/show_bug.cgi?id=617327
2011-01-04 13:26:32 -05:00
Matthias Clasen
c770fdd08a
Move GtkDrawingArea docs inline
...
Based on a patch by Garrett Regier.
https://bugzilla.gnome.org/show_bug.cgi?id=617315
2011-01-04 13:26:32 -05:00
Javier Jardón
72161a071f
gtkmenuitem: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATE
2011-01-04 19:00:11 +01:00
Matthias Clasen
deab5ff1c9
Remove gtk_tree_menu_get_type from gtk3.types
2011-01-04 12:54:47 -05:00
Matthias Clasen
c009149670
Move GtkDialog docs inline
...
Based on a patch by Garrett Regier.
https://bugzilla.gnome.org/show_bug.cgi?id=617312
2011-01-04 12:54:47 -05:00
Javier Jardón
7245ca82f0
gtkmenu: Use private pointer instead G_TYPE_INSTANCE_GET_PRIVATE
2011-01-04 18:46:43 +01:00
Matthias Clasen
b5c6904c2f
Drop explicit includes of gdkkeysyms.h
...
These are no longer needed. At the same time, port gtkimcontextsimpleseqs.h
to use the new GDK_KEY_ symbols.
2011-01-04 12:21:41 -05:00
Matthias Clasen
16877b4d7b
Reduce includes of gtktypeutils.h to a minimum
2011-01-04 12:05:05 -05:00
Matthias Clasen
8bdb44fd47
Remove an outdated doc statement.
...
https://bugzilla.gnome.org/show_bug.cgi?id=553404
2011-01-04 11:55:56 -05:00
Matthias Clasen
e515bd4f71
Some more calendar doc additions
...
Proposed by Nikos Kouremenos
https://bugzilla.gnome.org/show_bug.cgi?id=321958
2011-01-04 11:44:09 -05:00
Matthias Clasen
336d355c2a
Some documentation additions
...
Proposed by Bruno Piguet.
https://bugzilla.gnome.org/show_bug.cgi?id=559503
2011-01-04 11:36:42 -05:00
Matthias Clasen
bf2a6114ab
Mention gvfs in the gtk_show_uri() docs
...
https://bugzilla.gnome.org/show_bug.cgi?id=622125
2011-01-04 11:25:40 -05:00
Matthias Clasen
ee89c605cf
Some documentation improvements for gtk_init/gtk_parse_args
...
https://bugzilla.gnome.org/show_bug.cgi?id=562182
2011-01-04 11:18:42 -05:00
Matthias Clasen
0a069e1643
Document DESKTOP_STARTUP_ID use
...
Closes https://bugzilla.gnome.org/show_bug.cgi?id=165987
2011-01-04 10:58:04 -05:00
Szilárd Pfeiffer
f130db44ea
gail: add/remove horizontal/vertical state based on orientation value
...
Now, these states are depending on the widget class.
2011-01-04 10:47:54 -05:00
Milan Bouchet-Valat
52e1722f35
GtkComboBox(Text): Add documentation about the entry
2011-01-04 10:36:08 -05:00
Matthias Clasen
06f6f7bd93
Move GtkEventBox docs inline
...
At the same time, add a private pointer, and generally clean
things up.
2011-01-04 10:33:33 -05:00
Tristan Van Berkom
68aa336f5f
Removed TABs and trailing whitespace from GtkComboBox and GtkTreeMenu
2011-01-05 00:14:25 +09:00
Tristan Van Berkom
f5f822b91c
Moved GtkMenuItem private functions to the private header.
2011-01-05 00:14:08 +09:00
Tristan Van Berkom
185744d402
Mentioned that GtkTreeMenu is based on some GtkComboBox code in the copyright header.
2011-01-04 23:37:14 +09:00
Tristan Van Berkom
4ff893979b
Fixed conflicts after rebasing master into combo-refactor branch.
2011-01-04 23:37:14 +09:00
Tristan Van Berkom
d681aa7977
Fixed GtkComboBox to properly set tearoff state on delegate GtkTreeMenu.
...
This breakage was also the cause of not correctly positioning the child
menu over the selected item.
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
80e427c857
Fixed gtktreemenu for new gtkcellareabox api.
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
7b2d6e5cdf
Make GtkTreeMenu a private class:
...
- Removed GtkTreeMenu from gtk-docs.sgml
- Removed GtkTreeMenu from gtk3-sections.txt
- Removed GtkTreeMenu from gtk.symbols
- Make GtkTreeMenu apis prefixed with '_' (including _get_type()).
- Updated GtkComboBox sources to use the private apis
- Updated GtkCellView to not mention #GtkTreeMenu in gtk-doc statements
- Updated tests/testtreemenu to not use a GtkTreeMenu but still
show a very fancy GtkComboBox
- Moved gtktreemenu.h to private headers section in the makefile.
- Removed include of gtktreemenu.h from gtk.h
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
6ae724c0d3
Added LISTMODE env var check to testcombo.c so that one can easily test listmode.
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
57857f13df
Added new constructors gtk_combo_box_new_with_area and gtk_combo_box_new_with_area_and_entry.
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
b3ff60db71
Fixed GtkComboBox to let the cell-layout implementation handle <cell-packing>
2011-01-04 23:37:13 +09:00
Tristan Van Berkom
467fb0d7dc
Fixed gtk_tree_menu_path_in_menu function which has been malfunctioning.
...
Now sensitivity is properly handled in the "apply-attributes" callback.
2011-01-04 23:37:12 +09:00
Tristan Van Berkom
01981311da
Removed GtkComboBoxPrivate->minimum/natural_width members.
...
And updated gtk_combo_box_list_position() which is still waiting
for GtkTreeView to report natural width in order to properly do
non fixed width dropdown menus.
2011-01-04 23:37:12 +09:00
Tristan Van Berkom
ee02ac5863
Re-refactored GtkComboBox to not reorder the file.
...
Turns out reordering the file the way I did before put
me in an unmergable situation, now re-refactored the
combo and list-mode works again.
2011-01-04 23:37:12 +09:00
Tristan Van Berkom
f3de78a023
Fixing GtkComboBox breakage after merge, completing hand-merge of style-context GtkBorder issues (now it works again).
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
0c9c031962
Fixing GtkCellView to not strcmp() in buildable_custom_tag_end()
...
GtkCellLayout function now returns boolean if one of the tags
it was interested in was handled.
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
85609d124a
Added clarification to the GtkCellView:cell-area-context documentation.
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
613545f821
Fixed a broken gtk-doc statement in gtktreemenu.c
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
1f1e94739b
Added remaining missing gtk-doc statements for GtkCellView.
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
e8503f600e
Added GtkTreeMenu to gtk+ documentation and updated sections for newly added GtkCellView apis.
2011-01-04 23:37:11 +09:00
Tristan Van Berkom
7a673b2ed1
Added all documentation for new GtkTreeMenu
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
f358dfbccc
Added new symbols for GtkTreeMenu and added GtkCellView apis to gtk.symbols
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
c8b63bfe03
Removed calls to gtk_cell_area_context_sum_*() since they went away.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
b57095412b
Added aligned food menu test to testcombo.c
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
15ac4be60f
Fixed combo-refactor branch for recent switch to gtk_cell_area_context_reset() api.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
ab3b75aeb1
Adding a combo box to testtreemenu to show the GtkTreeMenu at work as a combo box delegate.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
1193c30e15
Revert "Added gtk_tree_menu_get_area()."
...
This reverts commit d32d7c8f9c4d2bcd7c5c206c09273ce67ed20df4.
2011-01-04 23:37:10 +09:00
Tristan Van Berkom
b32ee4fde3
Added orientation control to the treemenu test.
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
bd1b4ddf75
Updated GtkCellView for new gtk_cell_area_context_allocate() api.
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
26a6965d26
Aligned prototypes in gtkcellview.h
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
f101bf4a2d
Added gtk_tree_menu_get_area().
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
2e2eb786d3
Make GtkCellView orientable and only allocate the cell area in the orientable orientation (unless its a "fit-model" cellview which gets both).
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
6ab29f5fd8
Removing apis from GtkCellView
...
APIS: gtk_cell_view_get_desired_width_of_row &
gtk_cell_view_get_desired_height_for_width_of_row were introduced in
3.0 only for use from GtkComboBox and now the refactored cellview
does this transparently and just requests the right thing through
GtkWidget apis.
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
238bf5cbaa
Oops one of my last commits disabled some tests, re-enabling them.
2011-01-04 23:37:09 +09:00
Tristan Van Berkom
caf1d57fd3
Fixed inserting and deleting rows for submenus of GtkTreeMenu
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
4a5be7c74e
Getting closer to updating the treemenu view properly from the model signals
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
39cf1576d7
Fixed GtkCellView to always allocate when in fit-model mode.
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
83c69f4cf3
Implementing GtkComboBox using GtkTreeMenu !
...
First iteration at implementing combo box using a delegate
treemenu, almost everything is working. Still need to finalize
sensitivity issues in GtkTreeMenu (and should go ahead and pass
through GtkComboBox code with a fine comb...).
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
e1ecd34ce1
Added "fit-model" and "draw-sensitive" properties to GtkCellView
...
- "fit-model" decides that the cellview should request space for
the entire treemodel, this ensures the cell view displayed on
a combo box will not spuriously change size when the selected
item changes.
- "draw-sensitive" forces cell area to render cells sensitive
even if they are insensitive in the model.
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
d48690c32c
Make GtkTreeMenu update menu item sensitivity when "apply-attributes" signal is fired for a row in the menu.
2011-01-04 23:37:08 +09:00
Tristan Van Berkom
84a726c3ce
Support grid mode in GtkTreeMenu
...
Added properties "wrap-width", "row-span-column" and "column-span-column"
to allow grid style menus from treemodels. Handling row data changes
appropriately.
2011-01-04 23:37:07 +09:00
Tristan Van Berkom
e628345394
Fixed GtkCellView to call cell_view_set_model() and disconnect signals at dispose time.
2011-01-04 23:37:07 +09:00
Tristan Van Berkom
de59f05ccd
Added gtk_tree_menu_set/get_tearoff to allow the root menu to have a tearoff item
...
Combo boxes expose an "add-tearoffs" feature to add a tearoff item to the root of the combo menu, added this feature to GtkTreeMenu to achieve this (and updated the testcase).
2011-01-04 23:37:07 +09:00
Tristan Van Berkom
3a56f8814f
Reduced code size in GtkTreeMenu by only implementing GtkCellLayout->get_area method for the GtkCellLayout iface.
2011-01-04 23:37:07 +09:00
Tristan Van Berkom
b6b810ba51
Reduced code in GtkCellView by just implementing the GtkCellLayout->get_area method.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
438b0f7c9b
Connected to GtkTreeModel signals in GtkTreeMenu
...
Now the GtkTreeMenu properly updates its hierarchy when the underlying
model data changes (row inserted/deleted or reordered). Also some unneeded
hackery was removed, all size calculations are delegated to the cellviews.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
88ec6a62ef
GtkCellView now watches the "row-changed" signal.
...
When the "row-changed" signal on the model is trapped, if the row which
changed is the displayed row then the context is flushed and sizes are
recalculated for every area in the same context.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
9ffaae5022
Added GtkTreeMenuHeaderFunc to decide if a submenu gets a leaf header.
...
GtkComboBox needs treemenus to allow selection of all leafs including
rows which may have children, this allows the combobox or combobox user
to decide which row that has children can also be selectable as a header
leaf of the submenu. Test case testtreemenu updated to reflect this.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
6d8dfd5546
Fixed GtkCellView to not clear the layout when disposing
...
The layout belongs the underlying area which may be shared across
views and treemenus, let the cells be destroyed when the area is finally
destroyed.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
53bdca9dae
Adding more "small" submenus to testtreemenu
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
1cacae9cc4
Fixed trailing ';' on if statement in gtkmenuitem.c
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
aef55bb629
Added submenus to tests/testtreemenu
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
963db86d23
Fixed GtkTreeMenu to not infinitely recurse when building submenus.
...
GtkTreeMenu needs to only populate it's submenus when set_root()
is called, we were populating it when the model is set which cause
the tree to be infinitely populated as the root is NULL by default.
Also call gtk_menu_set_reserve_toggle_thingy (FALSE) to not reserve
space for the toggle size.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
c690402446
Fixed GtkMenuItem to reserve the actual arrow size and spacing
...
GtkMenuItem was reserving arrow size based on it's requested height,
now base the submenu arrow size on the actual arrow size and spacing.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
26c3f1a26d
Adding GtkTreeMenu class.
...
Added GtkTreeMenu class to automatically render
a GtkTreeModel into a GtkMenu hierarchy (will be
used by GtkComboBox for its dropdown menus). Included
an accompanying testcase tests/testtreemenu
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
f15a589651
Added gtk_menu_item_set/get_reserve_indicator.
...
This is needed by GtkTreeMenu to ensure that child menu items
reserve space for the submenu indicator even if they dont have
submenus... in this way we ensure the same size of all cell
areas in the menu items at allocation/request time.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
5e8e4429c7
Fixing GtkCellView PROP_CELL_AREA_CONTEXT property id
...
... and renaming some internal variables.
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
988200800c
Added gtk_cell_view_new_with_context().
2011-01-04 23:37:06 +09:00
Tristan Van Berkom
b70589b6a4
Reimplemented GtkCellView using an internal GtkCellArea.
...
Added construct GtkCellArea and GtkCellAreaContext properties,
the context property allows putting multiple cellviews into the
same size request context.
2011-01-04 23:37:05 +09:00
Tristan Van Berkom
58cdd6d38e
Removed GtkMenuItem->show_submenu_indicator flag
...
The show_submenu_indicator flag was explicitly set in various
places from GtkMenu/GtkMenuBar at request times, since the
GtkMenuItem already checks the parent type for GTK_IS_MENU_BAR()
in various places, removed this flag in favor of just checking
the parent type (only in the interest of better readable code).
2011-01-04 23:37:05 +09:00
Matthias Clasen
7352a166b6
Formatting fixes and whitespace cleanups
2011-01-04 02:21:38 -05:00
Matthias Clasen
32bfc980c1
Remove pack property altogether
2011-01-04 02:06:03 -05:00
Matthias Clasen
723fedef8b
Remove pack consideration from tab drawing
2011-01-04 02:03:03 -05:00
Matthias Clasen
4ea886aea1
Don't consider pack when allocating tabs
2011-01-04 01:57:22 -05:00
Matthias Clasen
f9d6bc6cca
Drop pack consideration from gtk_notebook_search_page
2011-01-04 01:39:18 -05:00
Matthias Clasen
a7bb193377
Drop internal function to find page position
2011-01-04 01:36:09 -05:00
Matthias Clasen
f838ecf9f0
Remove pack consideration from tab dnd
2011-01-04 01:35:52 -05:00
Matthias Clasen
88501d527d
Remove pack consideration from tab reordering
2011-01-04 01:23:05 -05:00
Matthias Clasen
03b37a2e54
Remove pack arguments from some internal functions
...
This removes pack from gtk_notebook_{set,query}_tab_label_packing.
2011-01-04 01:11:28 -05:00
Matthias Clasen
08a99e9ab3
Remove the deprecated GtkNotebook:tab-pack child property
2011-01-04 00:57:34 -05:00
Matthias Clasen
98b140e7b5
Don't use GtkNotebook:tab-pack in testnotebookdnd
2011-01-04 00:55:50 -05:00
Matthias Clasen
c874bba0e1
GtkNotebook: fix reference to no-longer-exiting function in docs
2011-01-03 22:55:38 -05:00
Matthias Clasen
72b69ae2ed
Don't use page_size in GtkSpinButton
...
It ought to be 0 anyway, but don't use it.
This puts bug 307963 to rest.
2011-01-03 21:51:58 -05:00
Matthias Clasen
a975d62071
Rename gtk-update-icon-cache and gtk-builder-convert back
...
In bug 635207, it was pointed out that it is a bad idea to
rename these tools purely in the name of parallel-installability,
since it forces dependencies to make a choice between running
gtk-update-icon-cache and gtk-update-icon-cache-3.0 (or both ?!).
So, we rename these utilities back to their un-suffixed names
and rely on distributors to resolve the conflict between GTK+ 2.x
and GTK+ 3.0 packages, which can be done e.g. by dropping the
utilities from the gtk3 packages and add a gtk3 -> gtk2 dependency.
2011-01-03 21:35:23 -05:00
Carlos Garnacho
7266d0f11f
Make GtkPathBar use ::style-updated
2011-01-04 03:06:27 +01:00
Carlos Garnacho
c3b5b3531c
GtkPaned: Remove unneeded call
2011-01-04 03:06:26 +01:00
Carlos Garnacho
f9a5c14ac0
Make GtkOffscreenWindow use GtkStyleContext
2011-01-04 03:06:26 +01:00
Carlos Garnacho
7e2dea1dff
GtkNotebook: remove unneeded call
2011-01-04 03:06:25 +01:00
Carlos Garnacho
61691117dc
GtkMisc: Remove unneeded calls
2011-01-04 03:06:24 +01:00
Carlos Garnacho
905604550a
Make GtkMessageDialog use GtkStyleContext
2011-01-04 03:06:24 +01:00
Carlos Garnacho
166b709c7f
Make GtkLinkButton use ::style-updated
2011-01-04 03:06:23 +01:00
Carlos Garnacho
80e115331c
GtkInvisible: Avoid chaining up in ::style-updated
2011-01-04 03:06:22 +01:00
Carlos Garnacho
7b3de2d552
Make GtkHandleBox size request code use GtkStyleContext for padding
2011-01-04 03:06:22 +01:00
Carlos Garnacho
b062a583d3
Make GtkFixed use GtkStyleContext
2011-01-04 03:06:21 +01:00
Carlos Garnacho
14a5c0b9ff
Make GtkFileChooser use GtkStyleContext
2011-01-04 03:06:21 +01:00
Carlos Garnacho
8e18c2cfd2
Make GtkFileChooserButton use ::style-updated
2011-01-04 03:06:21 +01:00
Carlos Garnacho
96d8f85dcc
Make DnD code use GtkStyleContext for the highlight rectangle.
2011-01-04 03:06:20 +01:00
Carlos Garnacho
e02cbf4770
Make GtkEntryCompletion use GtkStyleContext
2011-01-04 03:06:20 +01:00
Carlos Garnacho
e4c509837f
GtkEntry: get font description from GtkStyleContext
2011-01-04 03:06:20 +01:00
Carlos Garnacho
55145e0e4e
GtkEntry: Remove unneeded calls
2011-01-04 03:06:19 +01:00
Carlos Garnacho
c180edd80c
Make GtkDrawingArea use GtkStyleContext
2011-01-04 03:06:19 +01:00
Carlos Garnacho
552c4c78f6
GtkExpander: remove unneeded call
2011-01-04 03:06:19 +01:00
Carlos Garnacho
6c21f3d8e6
Remove unneeded/deprecated call from size requisition code
2011-01-04 03:06:19 +01:00
Carlos Garnacho
c296d11ac3
GtkToolItem: Remove unneeded call
2011-01-04 03:06:19 +01:00
Carlos Garnacho
be0ebc9f5a
Make GtkDialog use ::style-updated
2011-01-04 03:06:18 +01:00
Carlos Garnacho
99791d183c
Make GtkCellView use GtkStateFlags
2011-01-04 03:06:18 +01:00
Carlos Garnacho
554e649a68
Make GtkTooltip use GtkStyleContext
2011-01-04 03:06:17 +01:00
Carlos Garnacho
41389cb435
Make GtkWin32EmbedWidget use GtkStyleContext
2011-01-04 03:06:17 +01:00
Carlos Garnacho
665a94e0f3
Make GtkPlug use GtkStyleContext
2011-01-04 03:06:15 +01:00
Carlos Garnacho
81eb953206
Make GtkRecentChooser use GtkStyleContext
2011-01-04 03:06:14 +01:00
Carlos Garnacho
732730425a
GtkSeparatorToolItem: remove unneeded call
2011-01-04 03:06:13 +01:00
Carlos Garnacho
ddd12f3f19
Make GtkSocket use GtkStyleContext
2011-01-04 03:06:12 +01:00
Carlos Garnacho
cb21085187
GtkSwitch: remove deprecated call.
2011-01-04 03:06:11 +01:00
Carlos Garnacho
f4cc2c6f17
GtkToolbar: remove deprecated call
2011-01-04 03:06:11 +01:00
Carlos Garnacho
a090de1780
Make GtkToolButton use ::style-updated
2011-01-04 03:06:10 +01:00
Carlos Garnacho
24db0283ad
Update GtkTrayIcon to GtkStyleContext
2011-01-04 03:06:10 +01:00
Carlos Garnacho
dd8887c07d
Compress all ::style-updated prior to ::realize
...
This is done to avoid early emission of this signal, that was
causing warnings during GtkDialog construction.
2011-01-04 03:06:09 +01:00
Carlos Garnacho
7981869308
Update GtkAssistant to GtkStyleContext
2011-01-04 03:06:08 +01:00
Carlos Garnacho
00a80c9bdc
Update GtkAboutDialog to GtkStyleContext
2011-01-04 02:56:26 +01:00
Carlos Garnacho
804e8a0572
Update GtkToolPalette to GtkStyleContext.
2011-01-04 02:56:26 +01:00
Carlos Garnacho
badbef33ab
GtkWindow: remove unneeded call
...
gtk_widget_style_attach() is no longer necessary.
2011-01-04 02:56:25 +01:00
Diego Escalante Urrelo
d0a3846eb1
gtkenums: add GTK_STATE_FLAG_NORMAL = 0
...
Allows a more readable omission of GtkStateFlag arguments.
Bug #638608
2011-01-03 20:37:35 -05:00
Matthias Clasen
83058bf2ca
Use AM_V_GEN in a few more places
...
Based on a patch by Javier Jardón in
https://bugzilla.gnome.org/show_bug.cgi?id=621720
2011-01-03 20:33:36 -05:00
Matthias Clasen
411cda4ff4
Keep an explicit dep on cairo in the gdk pc file
2011-01-03 18:12:54 -05:00
Matthias Clasen
86a7ae67bc
GtkColorButton: trivial doc and formatting fixes
2011-01-03 17:18:43 -05:00
Javier Jardón
55016f72f2
gtktexttag: Move public members to private header
...
And fix gail to not poke at GtkTextTag internals
2011-01-03 15:05:46 -05:00
Matthias Clasen
6a11c59290
Release GtkApplication earlier
...
GtkWindow was only releasing the application in finalize, causing
problems for language bindings. Now we release it already in destroy
(and then again in finalize for good measure).
https://bugzilla.gnome.org/show_bug.cgi?id=638580
2011-01-03 13:11:55 -05:00
Frederic Crozat
b673e5b1ee
Scale down print dialog size
...
Shrink the preview display a little to make the print dialog
fit on a typical netbook screen.
https://bugzilla.gnome.org/show_bug.cgi?id=637958
2011-01-03 12:51:22 -05:00
Matthias Clasen
b555be06b7
Make styleexamples work
...
If we are keeping this code in source control, might as well
make it work.
https://bugzilla.gnome.org/show_bug.cgi?id=638179
2011-01-03 12:34:23 -05:00
Matthias Clasen
c7f39eb07e
add gtk_selection_data_get_data_with_length API which can be bound
...
* gtk_selection_data_get_data can't be bound because we need to know the length
of data inorder to marshal it
https://bugzilla.gnome.org/show_bug.cgi?id=635299
2011-01-03 12:13:30 -05:00
Julien Cristau
d211c8af6b
gdk/x11: don't select RANDR events if the extension is missing
...
Prevents an Xlib warning on Xnest, or Xorg with xinerama, or other
non-RANDR-capable xserver. Reintroduce a have_randr12 field in
GdkDisplayX11 to avoid having to call XRRQuery{Extension,Version} twice,
and don't select randr 1.2 events if that's false.
https://bugzilla.gnome.org/show_bug.cgi?id=634711
Signed-off-by: Julien Cristau <jcristau@debian.org >
2011-01-03 12:13:30 -05:00
Kristian Høgsberg
317f8baf60
configure.ac: Consolidate gdk backend specific checks and code
...
Only the big chunk of x11 checks is left further down in the file,
but that depends on variables and checks above it, so we'll leave that in
place for now.
2011-01-03 11:59:45 -05:00
Kristian Høgsberg
9c002cf2c1
Silence automake warnings
...
When commenting out a binary, also comment out the related variables.
Don't include Makefile.decl in gtk-doc Makefile.am's as they disagree
on assigning to EXTRA_DIST.
2011-01-03 11:59:45 -05:00
Kristian Høgsberg
cacee7e7a3
configure.ac: Support multiple GDK backends in one build
2011-01-03 11:59:45 -05:00
Benjamin Otte
ae7e5fc2d1
gdk: Simplify code
...
Move a previous vfunc into the only caller.
2011-01-03 17:44:24 +01:00
Benjamin Otte
6c39cade16
gdk: Get rid of GdkDisplayDeviceHooks
...
Move the only user to call the function directly and copy the called
function over.
2011-01-03 17:44:24 +01:00
Benjamin Otte
6e18276f52
gdk: Move get_device_state out of the display hooks
...
Previous callers now use _gdk_device_query_state() directly.
2011-01-03 17:44:24 +01:00
Benjamin Otte
2267602295
gdk: Simplify code
...
Fold the previous vfunc into the only caller.
2011-01-03 17:44:24 +01:00
Benjamin Otte
8d2104fdc9
gdk: Move window_get_device_position function out of the device hooks
2011-01-03 17:44:24 +01:00
Matthias Clasen
c07f9c040f
Some configure.ac cleanups
...
Change from --with-xinput to --enable-xinput, and consistently
use AC_HELP_STRING. Also document the packagekit options in the
docs.
2011-01-03 11:29:26 -05:00
Benjamin Otte
d72d19d247
API: gdk: Remove gdk_display_set_device_hooks()
...
There's no usecase for them, so remove them before we have to commit to
keeping an API.
Make the hooks private for now, actually removing them will come in
followup patches.
2011-01-03 16:51:38 +01:00
Benjamin Otte
ff1ad99dce
API: gdk: Remove gdk_display_set_pointer_hooks()
...
Its usecase was GERD - http://testbit.eu/~timj/historic/gerd/ - and that
project is long since dead.
I couldn't find any app using it after asking around and googling either.
2011-01-03 16:35:10 +01:00
Benjamin Otte
36a15720b1
API: gdk: Remove gdk_set_pointer_hooks()
...
Its usecase was GERD - http://testbit.eu/~timj/historic/gerd/ - and that
project is long since dead.
It has been superseded in GTK 2.2 by GdkDisplayPointerHooks anyway.
2011-01-03 16:25:18 +01:00
Benjamin Otte
d1ecd28695
cups: Someone can neither type, read compiler output and run tests.
...
Being able to do one of these would have caught this.
2011-01-03 16:25:18 +01:00
Matthias Clasen
7537907baf
cups printbackend: create a pdf surface when appropriate
...
This should address bug 560177.
Based on a patch by Adrian Johnson.
2011-01-03 09:34:04 -05:00
Matthias Clasen
a493fad990
Remove gtk_printer_new from gtkprintbackend.h
...
The function has been in gtkprinter.h forever.
2011-01-03 08:14:34 -05:00
Adrian Johnson
ebcd0ba233
Set file GtkPrinter accepts_pdf/ps based on selected format
2011-01-03 08:14:34 -05:00
Adrian Johnson
856cc65f63
Set "accepts-pdf" property to true only if supported by the print backend
2011-01-03 08:14:34 -05:00
Carlos Garcia Campos
3fff4bd091
GtkRadioButton: Use "radio" style class instead of "check"
2011-01-03 13:09:00 +01:00
Matthias Clasen
83f5e4868c
Drop no-longer-used migration docs
2011-01-02 23:57:03 -05:00
Nguyễn Thái Ngọc Duy
cf752786f3
gdkdnd-x11.c: fix building without HAVE_XCOMPOSITE
...
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com >
2011-01-02 23:40:00 -05:00
Nguyễn Thái Ngọc Duy
98a30bbf3e
gdkcursor-x11.c: fix building without HAVE_XCURSOR
...
Signed-off-by: Nguyễn Thái Ngọc Duy <pclouds@gmail.com >
2011-01-02 23:39:55 -05:00
Matthias Clasen
85fe6cb2c4
Move GtkSpinButton docs inline
...
...and modernize the examples at the same time.
This fixes a problem pointed out in bug 638193.
2011-01-02 23:30:02 -05:00
Matthias Clasen
1a87dfdf6d
Fix list handling in gdk_x1_display_init_input
...
Pointed out in bug 638386.
2011-01-02 21:41:30 -05:00
Kjartan Maraas
7ee697ab8d
Updated Norwegian bokmål translation from Torstein Adolf Winterseth
2011-01-02 19:32:29 +01:00
Kjartan Maraas
8a9457cb80
Updated Norwegian bokmål translation from Torstein Adolf Winterseth
2011-01-02 19:31:56 +01:00
John Ralls
acf13456b1
Fix refresh of static autorelease_pool so that it doesn't happen in gtk-nested loops.
2011-01-02 10:23:20 -08:00
Hans Breuer
23506c0e44
c99ism: declaration in the mid of a block
2011-01-02 13:33:13 +01:00
Hans Breuer
53c1b21ffb
win32: disable gdk_display_get_default ()->core_pointer
...
I neither know how to trigger this code nor what would be
the suggested replacement API. BUt it's the last thing stopping
me to compile GTK3 for win32.
2011-01-02 13:33:12 +01:00
Hans Breuer
5fe027500e
win32: include gtkprivate.h for win32 GTK_DATA_PREFIX
2011-01-02 13:33:11 +01:00
Hans Breuer
d4c4db6a7c
Avoid C99 sinf()
2011-01-02 13:33:10 +01:00
Hans Breuer
67b4eff921
win32: use GtkSocketPrivate
2011-01-02 13:33:09 +01:00
Hans Breuer
a2b1da064a
win32: ported backend specific code to now backend specific API
2011-01-02 13:33:08 +01:00
Hans Breuer
cfeaba9d62
Protect Unix specific print functions with G_OS_UNIX
...
Although gtk.symbols seems to be unused on Unix now it still
must not contain unprotected Unix only functions, because they
can not be exported on win32.
2011-01-02 13:33:07 +01:00
Hans Breuer
95213b3f04
win32: update msvc build
2011-01-02 13:33:06 +01:00
Hans Breuer
1d838f586c
win32: gdk3 resurrection
...
There are sure regressions but basic stuff seems to be working
again after all the API breakage done with comments like
"Win32 and Quartz need to be ported still."
2011-01-02 13:33:04 +01:00
Hans Breuer
fc122305d0
Protect inclusion of unistd.h
2011-01-02 13:29:23 +01:00
Hans Breuer
cdb998dea6
Fix line endings
...
The unix version had CrLf which results in modified by checkout
under windows.
2011-01-02 13:08:06 +01:00
Daniel Nylander
54cd607393
Updated Swedish translation
2010-12-31 01:42:34 +01:00
Daniel Nylander
ac8a10f6c4
Updated Swedish translation
2010-12-30 21:15:44 +01:00
Jorge González
3810e4da49
Updated Spanish translation
2010-12-29 22:51:20 +01:00
Fran Diéguez
a6168288f8
Solved bug 638231 in Galician translations
2010-12-29 13:05:44 +01:00
Tristan Van Berkom
c234313a25
Make GtkCheckButton's label left aligned by default.
...
Since we no longer limit the label's allocation to the minimum, now
we take a saner approach to left aligning the label.
2010-12-29 18:20:32 +09:00
Tristan Van Berkom
a6a97ad442
Fixed unused variable in GtkCheckButton.
2010-12-29 16:30:38 +09:00
Tristan Van Berkom
21aef5b77f
Fixed generic height-for-width implementation of GtkBin to consider request adjustments
...
Since "->adjust_size_request()" was added, it became important for GtkBin's
generic height-for-width implementation to further check the requests
using this vfunc.
2010-12-29 16:26:05 +09:00
Tristan Van Berkom
f519da41cf
Make GtkCheckButton allocate all remaining space to it's child instead
...
of limiting it to it's minimum size.
This fixes height-for-width labels inside a GtkCheckButton, for some
reason GtkCheckButton was limiting the child allocation to the child's
minimum request, probably for the sake of virtual left-alignment of
the child label to be beside the checkmark. This should be done by
other means if nescesarry.
2010-12-29 16:19:48 +09:00
Tristan Van Berkom
2fe4e6a815
Added proper height-for-width implementation to GtkAlignment.
...
For "padding" cases, it would be ok to fallback on GtkBin class
implementation of height-for-width. However in cases where the
user set's an xscale/yscale the GtkAlignment needs to take care
of properly adjusting the for_size when querying it's child.
2010-12-29 16:18:04 +09:00
Tristan Van Berkom
7fab89d93f
Removed checks in gtksizerequest.c
...
Checks were in place to ensure that widgets never request taller
or wider than screen size. This was there to test a theory about
scrolled window children functioning correctly with dynamic content
however it breaks GtkViewport children which can generally return a
value taller than screen height intentionally, GtkViewport uses this
value to update the adjustments.
2010-12-29 16:12:11 +09:00
Carlos Garnacho
ac00e77e54
Make GtkToolbar use GtkStyleContext
2010-12-28 19:25:49 +01:00
Carlos Garnacho
a3a9c61a5a
Make GtkHandleBox use GtkStyleContext
2010-12-28 19:25:49 +01:00
Carlos Garnacho
029fb53ac2
Make GtkSwitch use GtkStyleContext
2010-12-28 19:25:48 +01:00
Carlos Garnacho
18b333bfe7
Make GtkFileChooserEntry make GtkStyleContext
2010-12-28 19:25:48 +01:00
Carlos Garnacho
b2e8992291
Make GtkProgressBar use GtkStyleContext
2010-12-28 19:25:48 +01:00
Carlos Garnacho
e3457a83cf
Make GtkScrolledWindow use GtkStyleContext
2010-12-28 19:25:48 +01:00
Carlos Garnacho
53a4feadf0
Make GtkEventBox use GtkStyleContext.
2010-12-28 19:25:47 +01:00
Carlos Garnacho
06462b98a0
Make GtkFrame use GtkStyleContext.
2010-12-28 19:18:57 +01:00
Carlos Garnacho
7a623988e5
Fix leak in GtkStyle.
2010-12-28 19:06:46 +01:00
Tristan Van Berkom
05254766c7
Avoid rendering frames when shadow type argument is GTK_SHADOW_NONE in
...
gtk_paint_* functions.
2010-12-28 23:15:39 +09:00
Ignacio Casal Quinteiro
9d64a5833d
Fix docs.
2010-12-28 11:18:01 +01:00
Matthias Clasen
7032996c76
Remove bashisms from configure.ac
...
Pointed out by Koop Mast in
https://bugzilla.gnome.org/show_bug.cgi?id=637974
2010-12-27 19:24:05 -05:00
Benjamin Otte
42fbccd3d2
API: gdk: Remove gdk_device_set_source()
...
The source of a device is not changeable.
2010-12-27 20:08:50 +01:00
Benjamin Otte
e4cc259111
testgtk: Don't use deprecated APIs
2010-12-27 19:43:24 +01:00
Benjamin Otte
7ab7422821
testgtk: Use the relevant device to query the widget to snapshot
...
Also gets rid of deprecated functions.
2010-12-27 19:27:16 +01:00
Benjamin Otte
9746991548
API: gdk: Make gdk_display_get_window_at_device_position() a device API
...
It's now called gdk_device_get_window_at_position(). It doesn't make
sense to keep device-specific API part of the display.
2010-12-27 18:46:41 +01:00
Benjamin Otte
0c285341a9
API: gdk: gdk_display_get_device_state() => gdk_device_get_position()
...
The API was not display-specific, but belonged to the device. Also, we
didn't find a user of the modifier mask, so we dropped it.
2010-12-27 18:46:41 +01:00
Alejandro Piñeiro
586283ecbb
[gail] Clean the code to check the redundan object on the show watcher
...
The watcher doesn't add a window if is a redundant object. This
patch fixes two things:
* The check was made twice.
* It uses a check with the string "redundant object", when the
defined role ATK_ROLE_REDUNDANT_OBJECT is available
2010-12-27 16:23:55 +01:00
Alejandro Piñeiro
e1029b907c
[gail] Proper connection to a toplevel window destroy signal
...
Only connect to the destroy of a toplevel window if it was
really added to the toplevel list of windows.
The destroy callback was added to remove the window from
the toplevel list. The callback doesn't cause a error,
but would iterate on the toplevel list without success.
2010-12-27 13:21:09 +01:00
Matthias Clasen
48b47971b5
Fix some issues with initial setup of GdkX11DisplayManager
...
We need to defer setting the default display until the
GdkDisplay is fully initialized. Also, short-circuit some
encoding conversions when creating windows, to avoid an
implicit dependency on the display being in the list of
displays yet.
2010-12-27 01:02:52 -05:00
Matthias Clasen
59ea137fa0
GtkTreeView: Don't use deprecated grab api
2010-12-26 23:40:59 -05:00
Matthias Clasen
51f7e42650
Remove pointless sealing from GtkTextMark
2010-12-26 23:17:10 -05:00
Matthias Clasen
0c4a0dae6d
Remove pointless sealing from GtkTextChild
2010-12-26 22:58:57 -05:00
Matthias Clasen
9dee9a84d0
Removed sealed members from GtkMenuItem
2010-12-26 22:58:57 -05:00
A S Alam
05eb55dcfc
update Punjabi Properities file
2010-12-27 07:30:19 +05:30
Benjamin Otte
45d98d108e
tooltip: Don't use deprecated APIs
2010-12-27 01:05:40 +01:00
Benjamin Otte
a5f493bfad
notebook: Use nondeprecated API to query coordinates
2010-12-27 00:50:30 +01:00
Benjamin Otte
9bab53f1bd
hsv: Fix gcc warnings
2010-12-27 00:45:56 +01:00
Matthias Clasen
5bc0cf1a19
Fix some more typos
2010-12-25 00:29:23 -05:00
Matthias Clasen
8f816d7c3b
Fix a few typos
2010-12-25 00:26:22 -05:00
Matthias Clasen
27ce9421d0
Fix up GDK docs
2010-12-25 00:02:39 -05:00
Matthias Clasen
436e75c34c
Add deprecation guards for deprecated grab APIs
2010-12-24 20:01:24 -05:00
Matthias Clasen
bde1d072e5
Don't use gdk_{pointer,keyboard}_grab
...
Instead use gdk_device_grab.
2010-12-24 20:00:19 -05:00
Matthias Clasen
1d41b98cf8
Add deprecation guards for deprecated GdkAppLaunchContext API
...
Also adapt the docs to not use deprecated API.
2010-12-24 17:37:00 -05:00
Matthias Clasen
1e13b42b9b
Avoid some gtk-doc warnings
2010-12-24 17:36:19 -05:00
Matthias Clasen
29eb3fba5f
Fix gdk_x11_display_text_property_to_text_list
...
This was an incomplete attempt to get rid of the custom free function.
Lets just keep it for now. Bug 637849, patch by Dan Winship.
Also add a test case for this function.
2010-12-24 16:27:31 -05:00
Matthias Clasen
92f163d40a
Consistently hide class structs
...
And, since we've decided to keep the structs private, there is
no point in having the standard GObject clas macros anymore either.
2010-12-24 15:54:12 -05:00
John Ralls
806b6dfa08
Rename GdkQuartzWindow.h and .c to GdkQuartzNSWindow.h and .c
...
Normally HFS+ (the MacOSX file system) isn't case-sensitive, so having both
GtkQuartzWindow.h and gtkquartzwindow.h causes the latter to overwrite the
former during git pull, breaking the build.
2010-12-24 11:29:08 -08:00
Carlos Garnacho
0f0512aee3
Use gtk_style_context_get_font() in GtkSpinButton
2010-12-24 20:20:40 +01:00
Carlos Garnacho
92102c3bf4
Make GtkSeparator use GtkStyleContext
2010-12-24 19:38:14 +01:00
Carlos Garnacho
7c35994bda
Make GtkPaned use GtkStyleContext
2010-12-24 19:38:06 +01:00
Carlos Garnacho
760d6d1e78
Do not set "entry" class in spinbutton buttons.
...
Also, fix an unpaired gtk_style_context_save() call.
2010-12-24 19:37:56 +01:00
Carlos Garnacho
2bd221d215
Bug 637910 - GtkSpinner - does not animate
...
Fix widget-to-window coordinates translation in the
style context animation code.
2010-12-24 19:37:49 +01:00
Carlos Garnacho
7f099a9a23
Make GtkArrow use GtkStyleContext
2010-12-24 19:37:41 +01:00
Carlos Garnacho
e5e95934ba
Fix color name (as of rgb.txt) parsing in symbolic colors
...
The end of the substring wasn't being detected properly.
2010-12-24 19:37:30 +01:00
Carlos Garnacho
1cecb10584
Make GtkAccelLabel use GtkStyleContext.
2010-12-24 19:37:20 +01:00
Javier Jardón
5e74427dee
gailmenushell.c: Fix typo
2010-12-24 18:42:24 +01:00
Javier Jardón
03cddad42b
build: Use autoreconf
2010-12-24 18:40:54 +01:00
Kristian Rietveld
c659542333
Check for NULL pointer
2010-12-24 14:45:47 +01:00
Javier Jardón
30cdab13fe
docs: Add docs about how to get a GtkDevice
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=637895
2010-12-24 14:39:55 +01:00
Matthias Clasen
55ca24d1d4
Drop GtkThemeEngine
...
It is not used anymore.
2010-12-23 22:16:50 -05:00
Matthias Clasen
ca493cd20d
Fix a few warnings
2010-12-23 22:11:50 -05:00
Matthias Clasen
7ff572dfd3
Add some missing includes
2010-12-23 22:11:28 -05:00
Matthias Clasen
1bcf8a0027
Remove sealed members from GtkSettings
2010-12-23 21:56:50 -05:00
Stef Walter
433a22cd11
Remove private header from gtkwindow.h
...
https://bugzilla.gnome.org/show_bug.cgi?id=637907
2010-12-23 19:23:48 -06:00
Matthias Clasen
7650482e46
Add sufficient API to make gail work
...
The accessible implementations should really be folded into
gtk proper. Until that happens, we need some more guts exposed...
2010-12-23 20:11:38 -05:00
Matthias Clasen
2ed81aa57c
Remove sealed members from GtkMenuShell
2010-12-23 18:21:53 -05:00
Matthias Clasen
c5b020e628
Remove sealed members from GtkMenu
2010-12-23 15:51:20 -05:00
Jorge Gonzalez
65652d818d
Updated Spanish translation
2010-12-23 20:47:02 +01:00
Gheyret T.Kenji
9b6a0a0e2b
Added UG translation
2010-12-23 20:17:15 +01:00
Gheyret T.Kenji
80b534561b
Added UG translation
2010-12-23 20:11:32 +01:00
Gheyret T.Kenji
4064a100f0
Added UG translation
2010-12-23 19:18:55 +01:00
Matthias Clasen
96d1c2c46e
Reserve space for a pointer in GtkDrawingArea
...
It was pointed out that this will let us add a private pointer
without abi break in the future, should we ever need one.
2010-12-23 13:01:21 -05:00
Matthias Clasen
3e08a23237
Drop long-obsolete linux framebuffer APIs
...
The functions to set frames on windows stopped being interesting
when the linux framebuffer port was dropped, many years ago.
Similar functionality may come back with client-side decorations
in the future.
2010-12-23 12:59:49 -05:00
Kristian Rietveld
9ab2786991
GtkCellRendererText: use PANGO_PIXELS_CEIL for text_width
...
Usually pango_layout_get_pixel_extents() is used, which uses
PANGO_PIXELS_CEIL on the rectangle's width. This commit makes the new
function gtk_cell_renderer_text_get_preferred_width() consistent with
this.
This fixes rounding errors on Mac OS X, where we were seeing tree views
with a double height for a single line of text, while the usual single
row height would have been sufficient.
2010-12-23 18:41:23 +01:00
Kristian Rietveld
31536736ea
Hide GtkTreeViewColumn buttons when header_window is not visible
2010-12-23 18:19:56 +01:00
Kristian Rietveld
26173c7864
Delimit the other_entries array
2010-12-23 18:19:55 +01:00
Matthias Clasen
3a6800a898
Some small doc corrections
2010-12-23 11:18:50 -05:00
Matthias Clasen
1f9ce46906
Update keymap docs to match current behaviour
...
An overlooked API change in the gdk-backend work: many of the
keymap functions used to accept NULL to mean 'default keymap'.
They no longer do, so update the docs to match the new behaviour.
2010-12-23 10:06:08 -05:00
Kristian Rietveld
374f8e22aa
quartz: internalize _gdk_quartz_window_set_needs_display_in_region
2010-12-23 14:17:42 +01:00
Kristian Rietveld
f0b8dcb4f3
quartz: move gdkgeometry-quartz into gdkwindow-quartz.c
2010-12-23 14:17:42 +01:00
Kristian Rietveld
deffbd9885
quartz: reorder gdkprivate-quartz.h and related clean up
2010-12-23 14:17:42 +01:00
Kristian Rietveld
ac6f50120b
quartz: _gdk_quartz_visual -> gdk_quartz_visual
2010-12-23 14:17:42 +01:00
Kristian Rietveld
1e2907fa02
quartz: _gdk_quartz_screen -> gdk_quartz_screen
2010-12-23 14:17:42 +01:00
Kristian Rietveld
0736544174
quartz: _gdk_quartz_keymap -> gdk_quartz_keymap
2010-12-23 14:17:42 +01:00
Kristian Rietveld
0d8eeb924e
quartz: _gdk_quartz_display -> gdk_quartz_display
2010-12-23 14:17:42 +01:00
Kristian Rietveld
07110a6170
quartz: we must provide a window on drag begin now
2010-12-23 14:17:42 +01:00
Kristian Rietveld
0840b25165
quartz: fix some more typos
2010-12-23 14:17:42 +01:00
Kristian Rietveld
1e814709d7
quartz: fix typo
2010-12-23 14:17:41 +01:00
Kristian Rietveld
fb8717f722
quartz: move utils to gdkutils-quartz.c
2010-12-23 14:17:41 +01:00
Kristian Rietveld
f15934bd66
quartz: remove gdkmain-quartz.c
2010-12-23 14:17:41 +01:00
Kristian Rietveld
caa9794af8
quartz: Clean up header files, use same arrangement as X11 backend
2010-12-23 14:17:41 +01:00
Erdal Ronahi
dd5a74dcbc
Updated Kurdish translations
2010-12-23 14:14:10 +01:00
Matthias Clasen
af9d59aaca
Allow inspection of construct-only object properties
...
The 'Properties' button here is not really modifying the property
in any way, so it doesn't make sense to disable it just because
the object can only be set at construction.
This lets us poke at e.g. the cell area of an icon view.
2010-12-23 00:43:50 -05:00
Brian Cameron
f90365d46b
Fix spacing.
2010-12-22 21:58:40 -06:00
Brian Cameron
e88a44f4c9
Fix bug #637721 , fix function prototype.
2010-12-22 21:57:12 -06:00
Matthias Clasen
d77dcfb9b2
Better fix for keynav dnd
...
With proper rounding, we can go back to a 'small step' of 1.
2010-12-22 22:33:40 -05:00
Matthias Clasen
7e0a30b752
Abort a drag when a keynav drop has not destination
...
This was claimed to cause problems for Chromium, see bug 599130.
Also work around apparent rounding errors in XIWarpDevice by
setting the 'small step' for keynav dnd to 2 instead of 1 - I notice
that a warp seems to sometimes warp a little less than I tell it to,
and if I tell it to only move by 1 pixel then moving less means
that you are stuck.
2010-12-22 21:47:14 -05:00
Matthias Clasen
9baf24f87e
Add a default handler for drag_failed
...
And use it in notebook dnd.
2010-12-22 18:46:29 -05:00
Matthias Clasen
e6693ab840
Avoid invariant checking spew in gnome-shell
...
For normal toplevels, visible is tightly bound to mapped, but for
something like a toplevel that exists within a Clutter stage we
may want to make mapping dependenton external factors, so we shouldn't
actually checked that !mapped toplevels are !visible.
Pointed out by Owen Taylor,
https://bugzilla.gnome.org/show_bug.cgi?id=637834
2010-12-22 16:54:52 -05:00
Kristian Rietveld
197590258f
quartz: Make keyboard input work again
2010-12-22 22:33:05 +01:00
Kristian Rietveld
48b6b939d3
Implement process_updates_recurse for GdkOffscreenWindow
...
Makes offscreen windows work again.
2010-12-22 20:41:39 +01:00
Matthias Clasen
03f7e26d26
Don't return PropertyNotify.state as modifier state
...
It isn't, it really is a GdkPropertyState.
Reported by Tim Janik in bug 633795.
2010-12-22 14:33:09 -05:00
Matthias Clasen
3adb7c7a49
Avoid a crash
...
pointed out in bug 533745
2010-12-22 14:08:03 -05:00
Javier Jardón
187762d8b3
docs: fix a typo
2010-12-22 17:05:50 +00:00
Kristian Rietveld
083c556e00
quartz: rename GdkDeviceManagerCore -> GdkQuartzDeviceManagerCore
2010-12-22 17:47:05 +01:00
Kristian Rietveld
59a3d9ae46
quartz: Rename GdkDeviceCore -> GdkQuartzDeviceCore
2010-12-22 17:47:05 +01:00
Kristian Rietveld
e2e4391992
quartz: commit forgotten file
2010-12-22 17:47:05 +01:00
Kristian Rietveld
2e7f14c90f
quartz: GdkDeviceCore: check for NULL pointer
2010-12-22 17:47:04 +01:00
Kristian Rietveld
32731fcb07
quartz: register before/after process all updates
2010-12-22 17:47:04 +01:00
Kristian Rietveld
ab74358b82
quartz: set all methods on window class, not root window class
2010-12-22 17:47:04 +01:00
Kristian Rietveld
552e7be7e5
quartz: set window_type in display_class
2010-12-22 17:47:04 +01:00
Kristian Rietveld
b0ffe16f90
quartz: introduce GdkQuartzWindow (as a subclass of GdkWindow)
2010-12-22 17:47:04 +01:00
Kristian Rietveld
3bc60a8149
quartz: rename GdkQuartzWindow to GdkQuartzNSWindow
2010-12-22 17:47:04 +01:00
Kristian Rietveld
c6fad1d2cb
quartz: fix typo
2010-12-22 17:47:04 +01:00
Kristian Rietveld
c87e878308
quartz: add new files to Makefile.am
2010-12-22 17:47:04 +01:00
Kristian Rietveld
e5695de12b
GdkDisplayManager: register Quartz backend when applicable
2010-12-22 17:47:04 +01:00
Kristian Rietveld
5226ae3ecc
quartz: create gdkdisplaymanager-quartz.h
2010-12-22 17:47:04 +01:00
Kristian Rietveld
f2883fe8eb
quartz: gdkselection-quartz.c: fix typos
2010-12-22 17:47:04 +01:00
Kristian Rietveld
b638515ae0
quartz: re-introduce _gdk_quartz_display_list_devices
2010-12-22 17:47:03 +01:00
Kristian Rietveld
4c663f0474
gdkwindow-quartz: fix typo
2010-12-22 17:47:03 +01:00
Kristian Rietveld
4a6c50c298
gtkclipboard-quartz: use accessors and add missing include
2010-12-22 17:47:03 +01:00
Kristian Rietveld
44d9fb2d71
gtkdnd-quartz: use accessors and add missing include
2010-12-22 17:47:03 +01:00
Kristian Rietveld
7979be1430
quartz: gtkquartz.c: add missing include
2010-12-22 17:47:03 +01:00
Kristian Rietveld
9b4f5a424c
gdk: Fix toplevel makefile to build non-x11 backends again
2010-12-22 17:47:03 +01:00
Kristian Rietveld
6b96c56976
quartz: remove duplicate definition of gdk_flush
2010-12-22 17:47:03 +01:00
Kristian Rietveld
8b4d583cd8
quartz: gdkkeys-quartz.c: remove duplicate function
2010-12-22 17:47:03 +01:00
Kristian Rietveld
3d02a14f4f
quartz: remove duplicate functions from gdkmain-quartz.c
2010-12-22 17:47:03 +01:00
Kristian Rietveld
fbd9fd6a38
quartz: make gdkwindow-quartz.c build again
2010-12-22 17:47:03 +01:00
Kristian Rietveld
c14078f388
quartz: adapt gdkdisplay-quartz.c to new function names
2010-12-22 17:47:03 +01:00
Kristian Rietveld
5f782ed9e7
quartz: add prototype for _gdk_quartz_screen_new()
2010-12-22 17:47:03 +01:00
Kristian Rietveld
1b344ad8e4
quartz: convert GdkVisual
2010-12-22 17:47:02 +01:00
Kristian Rietveld
d024153c96
quartz: Fix screen implementation, rename to GdkQuartzScreen
2010-12-22 17:47:02 +01:00
Kristian Rietveld
cde6dade8f
quartz: Port gdkkeys-quartz.c to new API
2010-12-22 17:47:02 +01:00
Kristian Rietveld
6fe3100f14
quartz: Remove gdkinput code
2010-12-22 17:47:02 +01:00
Kristian Rietveld
e4a0101542
quartz: gdkeventloop-quartz.c: fix
2010-12-22 17:47:02 +01:00
Kristian Rietveld
d0976d9f53
quartz: Fix gdkevents-quartz.c
2010-12-22 17:47:02 +01:00
Kristian Rietveld
b2844cb48b
quartz: Make GdkQuartzDisplay compile
2010-12-22 17:47:02 +01:00
Kristian Rietveld
709b4d4346
quartz: Fix display manager, move over code from gdkmain-quartz.c
2010-12-22 17:47:02 +01:00
Kristian Rietveld
988b8bf96a
quartz: gdkcursor-quartz.h: fix cut-n-paste error
2010-12-22 17:47:02 +01:00
Kristian Rietveld
98b8bf035f
quartz: gdkdevice-core: fix up
2010-12-22 17:47:02 +01:00
Kristian Rietveld
da481666cd
quartz: gdkdevice-core.c: use GdkQuartzCursor
2010-12-22 17:47:01 +01:00
Kristian Rietveld
62273fc08a
quartz: add forgotten file (gdkdnd-quartz.h)
2010-12-22 17:47:01 +01:00
Kristian Rietveld
f4c0c47a1a
quartz: move bits into gdkcursor-quartz.h (private header for now)
2010-12-22 17:47:01 +01:00
Kristian Rietveld
dff3973198
quartz: remove GdkCursorPrivate typedef
2010-12-22 17:47:01 +01:00
Kristian Rietveld
013cbea25f
quartz: Remove API for extension checks
2010-12-22 17:47:01 +01:00
Kristian Rietveld
881ea6e06c
quartz: convert GdkQuartzWindow to new drag context API
2010-12-22 17:47:01 +01:00
Kristian Rietveld
71404825c3
quartz: fix up GdkDragContext conversion
2010-12-22 17:47:01 +01:00
Kristian Rietveld
8cb301762a
Fix typo
2010-12-22 17:47:01 +01:00
Kristian Rietveld
3ace122563
quartz: turn quartz GdkCursor into GObject
2010-12-22 17:47:01 +01:00
Matthias Clasen
bd1ff477ca
Deal with property encoding functions for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
de41790470
Implement selection related vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
762548d303
Implement selection owner vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
547d674ce5
Implement window property vfuncs for quartz
2010-12-22 17:47:01 +01:00
Matthias Clasen
168b3c13b7
Implement keyval vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
9ae2dc0deb
Drop gdk_set_locale from quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
a1b300ecb6
Implement test vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
6eb2a3520c
Implement atom-related vfuncs for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
51f149df5e
Implement get_keymap vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
46352afa6f
Implement create_window_impl vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
57efe15bda
Drop gdk_spawn functions
...
These have been removed since the implementation was just
a straight wrapper around g_spawn.
2010-12-22 17:47:00 +01:00
Matthias Clasen
9dbe3bd316
Drop unimplemented foreign window functions
...
These have been relegated to backend-specific
2010-12-22 17:47:00 +01:00
Matthias Clasen
b2ff02332f
Implement event_data_{copy,free} for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
4b92625fe0
Implement notify_startup_complete vfunc for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
2f3c7da763
Remove a duplicate doc comment
2010-12-22 17:47:00 +01:00
Matthias Clasen
1a04631707
Implement get_next_serial for quartz
2010-12-22 17:47:00 +01:00
Matthias Clasen
dadbc63f1e
gdk_display_warp_pointer is in the frontend now
2010-12-22 17:46:59 +01:00
Matthias Clasen
a1a0205dad
Implment process_updates_recurse vfunc for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
3232be603a
Implement has_pending and queue_events vfuncs for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
733c8fc8e7
Derive GdkDisplayManager for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
8a9c604b8a
Adapt quartz device code to new ways
...
We will need to rename the Core implementations in X11/Quartz
to not clash, later.
2010-12-22 17:46:59 +01:00
Matthias Clasen
e2fea748d6
Adapt quartz visual code to new ways
...
We may still need a subclass here later, not sure
2010-12-22 17:46:59 +01:00
Matthias Clasen
46e8aadaf8
Rename _gdk_dnd_init
2010-12-22 17:46:59 +01:00
Matthias Clasen
25271f5e9a
Implement dnd vtables for quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
d2ce9ec3dc
Convert a bunch of visual related calls to use the screen vtable, quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
41352f24d6
Convert all GdkScreen methods to vtable calls, quartz backend
2010-12-22 17:46:59 +01:00
Matthias Clasen
f43f259d49
Derive GdkKeymap for Quartz
2010-12-22 17:46:59 +01:00
Matthias Clasen
acd99409b8
Make display method vtable calls, quartz backend
2010-12-22 17:46:59 +01:00
Matthias Clasen
064bfceaad
Convert all gdk_window methods to vtable calls in the quartz backend
2010-12-22 17:46:59 +01:00
Matthias Clasen
62cbc1acd4
continue to install gdk-$TARGET-3.0.pc
2010-12-22 11:39:58 -05:00
Matthias Clasen
05b43caf4c
Add a section about gdk_spawn to migration guide
2010-12-22 11:13:31 -05:00
Tristan Van Berkom
e20503836c
Fixed GtkGrid GtkContainerClass->forall() to not use a for loop.
...
This loop needs to be safe for removing children in a forall loop.
2010-12-22 21:25:53 +09:00
Matthias Clasen
367211ed7f
Document WINDOWING macros
2010-12-22 01:43:57 -05:00
Matthias Clasen
3973ef760e
Mention GDK_BACKEND in the docs
2010-12-22 01:32:18 -05:00
Matthias Clasen
fa59cc4652
Fix the X backend docs
2010-12-22 01:31:15 -05:00
Matthias Clasen
a6b05106a5
GtkAboutDialog: Be slightly more flexible when listing credits
...
Make sure we render credits ok that are occurring in the wild,
such as "Contact us at:", "<foo@bar>" or "guy1\nguy2\nguy3"
https://bugzilla.gnome.org/show_bug.cgi?id=637763
https://bugzilla.gnome.org/show_bug.cgi?id=637736
2010-12-22 01:03:58 -05:00
Matthias Clasen
4cc76927b1
Show translators properly in the new about dialog
...
translator-credits is a single string, typically with newline-
separated names.
2010-12-22 00:31:05 -05:00
Robert Ancell
2013e23c4b
Use getters and setters for GtkPrintJob in gtkprintbackendtest.c
2010-12-22 15:36:47 +11:00
Robert Ancell
f4419be0d6
Fix DSO link issues
2010-12-22 15:01:50 +11:00
Matthias Clasen
e60eff282a
Bump version
2010-12-21 20:17:35 -05:00
Matthias Clasen
83364e8529
Fix distcheck
2010-12-21 19:37:18 -05:00
Matthias Clasen
b824cdd6db
Fix a blunder in grab handling
...
This was causing segfaults which would go away when compiled with
debug options.
2010-12-21 18:42:30 -05:00
Matthias Clasen
4b10167ce6
Set a default value for rgba style properties
2010-12-21 18:18:34 -05:00
Matthias Clasen
5b6bdcf016
Fix a tag mismatch in the docs
2010-12-21 18:18:34 -05:00
Mike Gorse
2a324ae304
Fix inclusion of gdkconfig.h
2010-12-21 18:18:07 -05:00
Matthias Clasen
4331d62567
Add gtkselectionprivate.h to Makefile
2010-12-21 17:57:40 -05:00
Matthias Clasen
fcbfa05347
Drop no-longer-existing header from Makefile
2010-12-21 17:36:50 -05:00
Matthias Clasen
3ca69937f4
Don't install headers twice
2010-12-21 16:37:16 -05:00
Matthias Clasen
9cdbb31c06
Update NEWS
2010-12-21 16:25:27 -05:00
Matthias Clasen
7b6d759b04
Temporarily disable combo box entry test
...
This one got broken by the treeview refactoring, I assume.
2010-12-21 14:43:17 -05:00
Matthias Clasen
940d123de5
Add gdk_disable_multidevice to headers
2010-12-21 14:33:56 -05:00
Owen W. Taylor
a2dddb1da0
Return an appropriate GtkStyle from gtk_rc_get_style_by_paths()
...
Always returning NULL (no match) from gtk_rc_get_style_by_paths()
means that looking up colors and style properties based on the
GtkStyle will give default values instead of themed values. We can
do better by returning a GtkStyle based on a GtkWidgetPath that we
figure out from the values passed in to get_style_by_paths().
https://bugzilla.gnome.org/show_bug.cgi?id=637520
2010-12-21 14:27:25 -05:00
Matthias Clasen
928fd84ebf
Implement some more vfuncs in GdkOffscreenWindow
2010-12-21 14:20:19 -05:00
Matthias Clasen
82fe7594f9
More include shuffling; keep X extension headers to ourselves
2010-12-21 14:17:02 -05:00
Matthias Clasen
10a7f49fe7
Check the right library for symbols
2010-12-21 12:41:29 -05:00
Matthias Clasen
f9e876e265
Fix another typo
2010-12-21 12:32:34 -05:00
Matthias Clasen
b3bd184274
Fix a silly typo
2010-12-21 12:19:03 -05:00
Matthias Clasen
ecddaa7a8e
Disable the GtkPlug xi2 hack more thoroughly
2010-12-21 12:07:10 -05:00
Matthias Clasen
106047ffa4
Detangle includes for GdkDeviceManager subclasses
2010-12-21 12:07:10 -05:00
Matthias Clasen
b1aaa10b6a
Detangle includes for device subclasses
2010-12-21 12:07:10 -05:00
Matthias Clasen
e5090396bf
Forgotten file
2010-12-21 12:07:10 -05:00
Matthias Clasen
bd36374413
Rename GdkAppLaunchContextX11 to GdkX11AppLaunchContext
2010-12-21 12:07:10 -05:00
Matthias Clasen
3fb8c3415b
Rename GdkDragContextX11 to GdkX11DragContext
2010-12-21 12:07:09 -05:00
Matthias Clasen
fdfabea958
Don't export gdk_x11_cursor_finalize
2010-12-21 12:07:09 -05:00
Matthias Clasen
71a515ef17
Get abicheck to almost pass again
2010-12-21 12:07:09 -05:00
Matthias Clasen
b4802e3042
Rename x11-specific GdkDevice[Manager] implementations
...
Make them all fit in the gdk_x11_ prefix, and make the
get_type functions and standard macros available in headers.
2010-12-21 12:07:09 -05:00
Matthias Clasen
5cddc7ccbb
Rename GdkDevice[Manager]Core to GdkX11Device[Manager]Core
...
This is mainly to avoid clash with the classes of the same
name in the quartz backend.
2010-12-21 12:07:09 -05:00
Matthias Clasen
e96c193d06
Rename GdkKeymapX11 to GdkX11Keymap
...
And add a gdkx11keys.h header file.
2010-12-21 12:07:09 -05:00
Matthias Clasen
146fd989d6
Rename GdkDisplayManagerX11 to GdkX11DisplayManager
...
And add a gdkx11displaymanager.h header file.
2010-12-21 12:07:09 -05:00
Benjamin Otte
36893a9ef8
gdk: Make GdkWindow abstract
...
This way backend implementors get an error if they don't set
display_class->window_type to their subclass. And that's exactly what we
want.
2010-12-21 12:07:09 -05:00
Benjamin Otte
dcb03b1085
gdk: Use G_DEFINE_TYPE for GdkWindow
2010-12-21 12:07:08 -05:00
Benjamin Otte
19699989e5
x11: Add a GdkX11Window class for X11 windows
2010-12-21 12:07:08 -05:00
Benjamin Otte
af7afbbe06
gdk: Allow display subclasses to override the type used for windows
...
We want to have different window types for different displays, so we can
write code like this:
#if GDK_WINDOWING_X11
if (GDK_IS_X11_WINDOW (window))
{
/* do x11 stuff */
}
else
#endif
#if GDK_WINDOWING_WAYLAND
if (GDK_IS_WAYLAND_WINDOW (window))
{
/* do wayland stuff */
}
else
#endif
{
/* do stuff for unsupported system */
}
This requires different GdkWindow types and we currently don't have
that, as only the GdkWindowImpl differs. With this method, every backend
defines a custom type that's just a simple subclass of GdkWindow. This
way GdkWindow behaves like all the other types (visuals, screens,
displays) and we can write code like the above.
2010-12-21 12:07:08 -05:00
Benjamin Otte
3036922b3d
gdk: Create windows via _gdk_display_create_window()
...
THe use of this function will become visible in the next commits. But
wrapping g_object_new() is a generally a good idea anyway.
2010-12-21 12:07:08 -05:00
Benjamin Otte
503087dfc9
x11: Export GdkX11Screen
2010-12-21 12:07:08 -05:00
Benjamin Otte
a8b69df376
x11: Rename GdkScreenX11 to GdkX11Screen
2010-12-21 12:07:08 -05:00
Benjamin Otte
b154d3abf6
x11: Export GdkX11Visual
2010-12-21 12:07:08 -05:00
Benjamin Otte
d185987ebd
x11: Rename GdkVisualX11 to GdkX11Visual
2010-12-21 12:07:08 -05:00
Benjamin Otte
86e0a9aef7
x11: Have a proper GdkVisualX11Class struct
2010-12-21 12:07:08 -05:00
Benjamin Otte
21d8160c57
x11: Export GdkX11Cursor
2010-12-21 12:07:08 -05:00
Benjamin Otte
4848bf2719
x11: typedef GdkX11Display to GdkDisplay
...
This is for compatibility reasons. We want to change APIs that operate
on X11 objects to take the X11 objects as arguments. However, this would
break a lot of APIs and we'd like to avoid this, so we play this little
trick (we will use the same trick for the other X11 objects). Also,
gobject-introspection and other bindings can correctly attach the
functions to the correct types as it is the same scheme that GDK2 used
for pixmaps, windows and drawables.
For GTK 4, we will remove this trick, so apps should properly cast their
objects right now.
Unfortunately, I don't think there is a way to use
GDK_DISABLE_DEPRECATED or similar macros to check for proper type casts
while compiling ensure compatibility with future GDK versions. I'm free
to consider them though.
2010-12-21 12:07:07 -05:00
Benjamin Otte
eba4529246
x11: Export GdkX11Display
2010-12-21 12:07:07 -05:00
Benjamin Otte
4db086da4b
x11: Rename GdkDisplayX11 to GdkX11Display
...
Also rename all the macros etc.
2010-12-21 12:07:07 -05:00
Benjamin Otte
8e2240f699
x11: Rename GdkDisplayX11 to GdkX11Display
2010-12-21 12:07:07 -05:00
Benjamin Otte
85bd61778f
API: gdk: GDK_DISPLAY_OBJECT() => GDK_DISPLAY()
...
GDK_DISPLAY_OBJECT is now deprecated. No need to keep failures from
gtk1 around.
2010-12-21 12:07:07 -05:00
Benjamin Otte
04d1459fca
x11: Move remaining APIs into gdkx11utils.h
...
Now gdkx.h is a clean header equivalent to gdk.h.
2010-12-21 12:07:07 -05:00
Benjamin Otte
dd177b5201
x11: Move atom API into gdkx11property.h
2010-12-21 12:07:07 -05:00
Benjamin Otte
ebe46e6f9d
x11: Move selection-specific API into gdkx11selection.h
2010-12-21 12:07:07 -05:00
Benjamin Otte
7949073dd5
x11: Move display-specific APIs into gdkx11display.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
6dfa90f57c
x11: Move screen-specific API into gdkx11screen.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
0ca6a7ab20
x11: Move visual-specific API into gdkx11visual.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
55f3451754
x11: Move cursor API into gdkx11cursor.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
124cf96850
x11: Split out public window API into gdkx11window.h
2010-12-21 12:07:06 -05:00
Benjamin Otte
66f7c3a562
API: gdk: gdk_display_warp_device() => gdk_device_warp()
...
warping devices has nothing to do with displays, so putting it there
seems weird.
2010-12-21 12:07:06 -05:00
Benjamin Otte
7a33592231
gdk: Move gdk_cursor_get_image() to the base class
...
.. and make it call a vfunc on the cursor
2010-12-21 12:07:06 -05:00
Benjamin Otte
60dc856daf
x11: Remove duplicated docs
...
They're in gdk/gdkdisplay.c now.
2010-12-21 12:07:06 -05:00
Benjamin Otte
095d1905a9
x11: Don't keep the display around anymore
...
Use gdk_cursor_get_display() instead.
2010-12-21 12:07:06 -05:00
Benjamin Otte
4793bd3399
gdk: Move gdk_cursor_get_display() out of the backends
...
Now that we store the display inside the cursor, that change is obvious.
2010-12-21 12:07:05 -05:00
Benjamin Otte
7a14b30ea3
gdk: Make display a property of GdkCursor
2010-12-21 12:07:05 -05:00
Benjamin Otte
28b2d7e5da
gdk: Make cursor-type a property of the cursor
2010-12-21 12:07:05 -05:00
Benjamin Otte
3e068e921f
API: gdk: Deprecate gdk_cursor_ref() and gdk_cursor_unref()
...
Now that GdkCursor is a GObject, it doesn't need custom refcount
handling anymore.
2010-12-21 12:07:05 -05:00
Benjamin Otte
73d8ffd74f
testgtk: Use g_object_unref instead of gdk_cursor_unref
2010-12-21 12:07:05 -05:00
Benjamin Otte
e622ae9a68
gtk-demo: Use g_object_unref instead of gdk_cursor_unref
2010-12-21 12:07:05 -05:00
Benjamin Otte
8f1f743903
gtk: Use g_object_unref instead of gdk_cursor_unref
2010-12-21 12:07:05 -05:00
Benjamin Otte
a9637f05b6
gdk: Use g_object_(un)ref instead of gdk_cursor_(un)ref
2010-12-21 12:07:05 -05:00
Benjamin Otte
768b425ce6
x11: Use g_object_(un)ref instead of gdk_cursor_(un)ref
2010-12-21 12:07:04 -05:00
Benjamin Otte
0b4913a166
gdk: Make GdkCursor a GObject
...
Also port the X11 implementation. Win32 and Quartz need to be ported
still.
2010-12-21 12:07:04 -05:00
Benjamin Otte
66e3894539
gdk: Move GdkCursor definition into a private header
2010-12-21 12:07:04 -05:00
Benjamin Otte
2eef91ad93
x11: Move GdkCursorPrivate into the C file
2010-12-21 12:07:04 -05:00
Benjamin Otte
8e3afc6e5a
x11: Use public API to access cursor's xcursor
2010-12-21 12:07:04 -05:00
Matthias Clasen
3d5d558393
Downgrade some Since tags
2010-12-21 12:07:04 -05:00
Matthias Clasen
2650328ea8
Add win32 implementation for foreign window functions
2010-12-21 12:07:04 -05:00
Matthias Clasen
58529e69ec
Drop sm_client_id implementation for Quartz
2010-12-21 12:07:04 -05:00
Matthias Clasen
10e23de49e
Drop sm_client_id win32 implementation
2010-12-21 12:07:04 -05:00
Matthias Clasen
00e2b949eb
Reinstate the correct field value
2010-12-21 12:07:03 -05:00
Matthias Clasen
572bb20011
Deal with property encoding functions
...
Move everything dealing with compound text to be X11 specific
Only gdk_text_property_to_utf8_list and gdk_utf8_to_string_target
are kept across backends, so add vfuncs for these.
Also, remove the non-multihead-safe variants of all these.
2010-12-21 12:07:03 -05:00
Matthias Clasen
61104d58ea
Avoid unnecessary use of gdk conversion routines
...
We can use use gtk_selection_data_get_uris, instead of
manually doing the conversion ourselves.
2010-12-21 12:07:03 -05:00
Matthias Clasen
05497c799a
Add a vfunc for gdk_selection_convert
2010-12-21 12:07:03 -05:00
Matthias Clasen
95868ef00b
Add a vfunc for gdk_selection_property_get
2010-12-21 12:07:03 -05:00
Matthias Clasen
625b8305e9
Add a vfunc for gdk_selection_send_notify_for_display
2010-12-21 12:07:03 -05:00
Matthias Clasen
7e22cf7e50
Rename some private x11 backend functions to _gdk_x11
2010-12-21 12:07:03 -05:00
Matthias Clasen
cc03a6df79
Add vfuncs for get/set_selection_owner
2010-12-21 12:07:03 -05:00
Matthias Clasen
519f09f7f4
Add vfuncs for keyval and window property functions
...
The keyval functions should really be generic, and the window
property api should be completely revisited, but for now this
will allow us to proceed.
2010-12-21 12:07:03 -05:00
Matthias Clasen
fdabc9585d
Drop g[dt]k_set_locale
...
These functions were essentially just calling setlocale anyway.
The X11 version was also setting a gdk_use_mb variable that
is not used anywhere.
2010-12-21 12:07:02 -05:00
Matthias Clasen
2211e52ec5
Don't use gtk_set_locale
2010-12-21 12:07:02 -05:00
Matthias Clasen
afa0ebf36b
Add vfuncs for gdk_test apis
2010-12-21 12:07:02 -05:00
Matthias Clasen
28abd0c75f
Add vfuncs for atoms
2010-12-21 12:07:02 -05:00
Matthias Clasen
62e9bb06a0
Add a vfunc for gdk_keymap_get_for_display
2010-12-21 12:07:02 -05:00
Matthias Clasen
a97b1891b3
Rename private keymap symbols to _gdk_x11_keymap...
2010-12-21 12:07:02 -05:00
Matthias Clasen
1d5afe4880
Rename the _gdk_xid_table functions
2010-12-21 12:07:02 -05:00
Matthias Clasen
55e1031e84
Remove gdk_net_wm_supports
...
This function is totally misnamed, only operates on the default
screen, and has a perfectly fine replacement in
gdk_x11_screen_supports_net_wm_hint.
2010-12-21 12:07:02 -05:00
Matthias Clasen
902fd60a86
Remove the --sync commandline option
...
Remove the --sync option and remove the possibility of backend-specific
commandline options altogether. --sync is being replaced by
a GDK_SYNCHRONIZE environment variable.
2010-12-21 12:07:02 -05:00
Matthias Clasen
b938e71e1d
Remove unused _gdk_use_xshm global
2010-12-21 12:07:01 -05:00
Matthias Clasen
021f595a38
Rename _gdk_window_move_resize_child
...
Rename _gdk_window_move_resize_child and _gdk_window_process_expose
to _gdk_x11.
2010-12-21 12:07:01 -05:00
Matthias Clasen
214342eac5
Clean up gdkx.h a bit
...
Moving the direct-access redefinitions of various macros
to gdkprivate-x11.h and use that header throughout in x11/.
Also remove a workaround for a long-fixed X server bug.
2010-12-21 12:07:01 -05:00
Matthias Clasen
32e3dcfb47
drop dead function
2010-12-21 12:07:01 -05:00
Matthias Clasen
126212b470
Add a vfunc for _gdk_window_impl_new
2010-12-21 12:07:01 -05:00
Matthias Clasen
d5803fa9b2
Get rid of the _gdk_selection_property global
2010-12-21 12:07:01 -05:00
Matthias Clasen
185cdddb0d
Rename _gdk_moveresize functions to _gdk_x11_moveresize
2010-12-21 12:07:01 -05:00
Matthias Clasen
19cf9309a5
Drop gdkx_visual_get
...
The function is badly named, not multihead-safe, basically unused,
and has a better replacement with gdk_x11_screen_lookup_visual.
2010-12-21 12:07:01 -05:00
Matthias Clasen
e11bbbf194
Rename _gdk_xgrab_ apis to _gdk_x11_window_
2010-12-21 12:07:01 -05:00
Matthias Clasen
566abbad25
Rename _gdk_send_xevent to _gdk_x11_display_send_xevent
2010-12-21 12:07:00 -05:00
Matthias Clasen
28b7c6f05d
Rename _gdk_event_mask_table to _gdk_x11_event_mask_table
2010-12-21 12:07:00 -05:00
Matthias Clasen
985eb14469
Multiple changes to reduce the amount of unprefixed symbols
...
The X11 backend exports a number of symbols which are _-prefixed
(so don't become part of the gdk api), but are not named in a
way to prevent accidental clashes between backends.
The one API change here is that the gdk_xid_table functions
have been removed - they did not server an purpose, since the
xid table only stores windows anyway, and we already have a
lookup-by-xid function for windows.
2010-12-21 12:07:00 -05:00
Benjamin Otte
33417c36f1
plug: Comment hack for xinput that used private x11 backend API
2010-12-21 12:07:00 -05:00
Matthias Clasen
624dc45755
Move event source apis to gdk_x11
...
Reduces the changes of cross-backend collisions
2010-12-21 12:07:00 -05:00
Matthias Clasen
25c66c11e2
Remove gdk_spawn functions
...
These functions were trivial g_spawn wrappers in all backends
except for X11, and they can be easily replaced by
g_app_info_create_for_commandline + GdkAppLaunchContext.
2010-12-21 12:07:00 -05:00
Matthias Clasen
ef85f112da
Don't use gdk_spawn
...
Replace the sole use of gdk_spawn in GTK+ by GAppInfo.
2010-12-21 12:07:00 -05:00
Matthias Clasen
536a7c8abb
Work around issues with events without screens
...
Just use the default display for copy/free of event data.
Maybe the vfuncs should be moved to GdkDisplayManager.
2010-12-21 12:07:00 -05:00
Matthias Clasen
6c16ddc2d3
Make GdkAppLaunchContext work again
...
We didn't set the display, ever. Add a construct-only property
for this purpose.
2010-12-21 12:07:00 -05:00
Matthias Clasen
fa33839d72
Consistently use per-display error traps in the X11 backend
2010-12-21 12:06:59 -05:00
Matthias Clasen
2d7583c0e3
Make gdk_window_{lookup,foreign_new}_for_display backend specific
...
At the same time, make GDK_IS_DISPLAY_X11 available in gdkx.h, and
add some exemplaric ifdefs to GTK+ code.
2010-12-21 12:06:59 -05:00
Matthias Clasen
39a71b8831
Add vfuncs for _gdk_windowing_event_data_{copy,free}
2010-12-21 12:06:59 -05:00
Matthias Clasen
968668629b
Go back to installing libgdk.so
2010-12-21 12:06:59 -05:00
Matthias Clasen
5eb4506b94
Drop the --screen cmdline argument
...
Commandline arguments should go away altogether, but this one
goes first, since we then don't need to worry about
_gdk_windowing_substitute_screen_number anymore.
2010-12-21 12:06:59 -05:00
Matthias Clasen
beaa11be98
Add a vfunc for gdk_notify_startup_complete
...
At the same time, add a display api for this, since it really
is per-display.
2010-12-21 12:06:59 -05:00
Matthias Clasen
a251d3786b
Remove sm-client-id related functions from headers
2010-12-21 12:06:59 -05:00
Matthias Clasen
2186203422
Remove unused get_offsets functions from headers
2010-12-21 12:06:59 -05:00
Matthias Clasen
224726f554
Remove gdk_windowing_{get_device_state,window_at_device_position}
...
The !trusted workaround code is pushed down into the GdkDevice
subclasses, and we use the device vfuncs directly in gdkdisplay.c
2010-12-21 12:06:59 -05:00
Matthias Clasen
9adb974155
Add a vfunc for _gdk_windowing_window_get_next_serial
2010-12-21 12:06:58 -05:00
Matthias Clasen
9635f09623
Move warp functions to the frontend
...
There were already GdkDevice vfuncs for this.
2010-12-21 12:06:58 -05:00
Matthias Clasen
4a74060d63
Make gdk_set_sm_client_id X11-specific
...
This is really not a cross-platform API
2010-12-21 12:06:58 -05:00
Matthias Clasen
ccb6edeb8b
Add vfuncs for process_updates_recurse and the before and after hooks
2010-12-21 12:06:58 -05:00
Matthias Clasen
da216c0665
Add vfuncs for a bunch of cursor functionality to GdkDisplay
2010-12-21 12:06:58 -05:00
Javier Jardón
dfe6ba932c
Don't access GdkDisplay fields directly
...
Use accessors instead.
2010-12-21 12:06:58 -05:00
Matthias Clasen
ea96e5e16f
Explode gdkinternals.h into per-class private headers
...
At the same time, move some more class and instance structs
out of public headers.
2010-12-21 12:06:58 -05:00
Matthias Clasen
ff8a334725
Hide GdkDevice struct
...
Once its hidden, we can kill the GdkDevicePrivate struct too.
2010-12-21 12:06:58 -05:00
Matthias Clasen
b5df501296
Move destroy_foreign comment
2010-12-21 12:06:57 -05:00
Matthias Clasen
218fa6757a
Weed out no longer needed declarations
2010-12-21 12:06:57 -05:00
Matthias Clasen
5fa8791c86
Add a vfunc for _gdk_events_queue
2010-12-21 12:06:57 -05:00
Matthias Clasen
ec9c97752d
Work toward turning GdkDisplayManager into a backend singleton
...
This commit hides the GdkDisplayManager instance and class structs,
adds vfuncs for listing displays, opening displays, and getting and
setting the default display. The X11 backend has a derived
GdkDisplayManagerX11.
The gdk_display_manager_get() function is responsible for deciding on
which of the compiled in backends to use. Currently, it consults the
GDK_BACKEND environment variable and falls back to x11.
2010-12-21 12:06:57 -05:00
Matthias Clasen
fa4b54b6de
Add per-target pc files back
...
Dropping those will be an unnecessary pain.
2010-12-21 12:06:57 -05:00
Matthias Clasen
9a1cc81acb
Add a vfunc to replace _gdk_windowing_window_destroy_foreign
...
All backends updated.
2010-12-21 12:06:57 -05:00
Matthias Clasen
1e694b4dd8
Add a vfunc for gdk_window_set_composited
2010-12-21 12:06:57 -05:00
Matthias Clasen
7f6ac56e3c
Add a vfunc for gdk_window_set_composited
2010-12-21 12:06:57 -05:00
Matthias Clasen
280e8329b4
Match parameters between headers and doc comment
2010-12-21 12:06:57 -05:00
Matthias Clasen
a169f6e32d
Make GdkDevice parallel-implementable
...
Use the grab and ungrab vfuncs from the frontend instead of the
_gdk_windowing wrappers, and move some things around accordingly.
Again, only the X11 backend has been updated, other backends
need to be updated to match.
2010-12-21 12:06:56 -05:00
Matthias Clasen
c7559f57ed
Hide GdkScreen too
2010-12-21 12:06:56 -05:00
Matthias Clasen
3412d7a23a
Don't access GdkScreen fields
2010-12-21 12:06:56 -05:00
Matthias Clasen
d5c0b92d5d
Hide GdkDeviceManager and GdkDeviceManagerClass
...
And nuke GdkDeviceManagerPrivate at the same time. Again a commit
that only deals with the X11 backend, other backends will need to
catch up.
2010-12-21 12:06:56 -05:00
Matthias Clasen
c6a5074295
Move GdkVisual parallel-implementable
...
It turned out no vfuncs were necessary. I've decided to move
the screen member up to GdkVisual, since it is the same in all
backends. The X11 backend subclasses now, to add the X members
that it needs to keep track of. GdkVisual and GdkVisualClass
are hidden now.
2010-12-21 12:06:56 -05:00
Matthias Clasen
23a2b42216
Fully initialize the ClientMessage struct
...
Otherwise we run into warnings from xdnd_status_filter
2010-12-21 12:06:56 -05:00
Matthias Clasen
8e1d320ce9
Rename _gdk_dnd_init
...
Nonstatic backend-specific functions need an x11 in their name.
2010-12-21 12:06:56 -05:00
Matthias Clasen
c53ec081ce
Add vtables for DND
...
This commit hides GdkDragContext and GdkDragContextClass, adds
vfuncs for most drag context functionality, and turns the X11 DND
implementation into GdkDragContextX11. We also add vfuncs to
GdkDisplay for gdk_drag_get_protocol and to GdkWindow for
gdk_drag_begin, and implemenet them for X11.
Other backends need similar treatment and are broken now.
2010-12-21 12:06:56 -05:00
Matthias Clasen
3c47c8467c
Remove some direct access to GdkDragContext members
2010-12-21 12:06:56 -05:00
Matthias Clasen
ae2c3a909c
tests: Don't access GdkDragContext fields directly
2010-12-21 12:06:55 -05:00
Matthias Clasen
a843a9d614
Make abicheck work again
2010-12-21 12:06:55 -05:00
Matthias Clasen
06f75b3727
Make GdkAppLaunchContext display-dependent
...
Add a GdkDisplay::get_app_launch_context vfunc, and a
gdk_display_get_app_launch_context that for X11 returns a subclass.
For win32 and quartz, the implementations were trivial, so we
just return a new GdkAppLaunchContext without subclassing. Since
the type of the context now depends on the display,
gdk_app_launch_context_set_display is deprecated.
2010-12-21 12:06:55 -05:00
Matthias Clasen
de84a7b14f
Move gdk_window_lookup to common code
2010-12-21 12:06:55 -05:00
Matthias Clasen
31cd046cd0
Move gdk_add_client_message_filter to common code
2010-12-21 12:06:55 -05:00
Matthias Clasen
8075cfd658
Move gdk_get_display to common code
2010-12-21 12:06:55 -05:00
Matthias Clasen
6465e8dd15
Reorganize pc files for a single library
...
After this commit, pc files no longer include the gdk backend in
their name, and we no longer install a pc file for gdk. There is
now a single gtk+-3.0.pc file. It turns out a separate gtk+-x11-3.0.pc
file is not necessary, since gdkx.h doesn't have a separate include
directory that would have to be added to Cflags.
2010-12-21 12:06:55 -05:00
Matthias Clasen
07d49ee56a
Merge libgdk and libgtk
...
This commit does a number of things:
- remove some dead wchar configury from configure.ac and gdkconfig.h
- repurpose gdkconfig.h as header that contains GDK_WINDOWING_foo
macros for each included backend, include it in gdk.h and install
it in $includedir instead of below $libdir
- drop the backend from the library names
- build libgdk-3.0.la as a convenience lib and include it in libgtk-3.0.la
It does not yet enable building multiple backends at the same time.
2010-12-21 12:06:55 -05:00
Alexander Larsson
ae146a2817
Convert a bunch of visual related calls to use the screen vtable
2010-12-21 12:06:55 -05:00
Alexander Larsson
f52223f380
Convert all GdkScreen methods to vtable calls
2010-12-21 12:06:54 -05:00
Alexander Larsson
84c03b14e8
Move GdkScreenClass to internal header
2010-12-21 12:06:54 -05:00
Alexander Larsson
8c6162b50c
Convert all gdk_keymap methods to vtable calls
2010-12-21 12:06:54 -05:00
Alexander Larsson
4ad948ec4a
Move GdkKeymapClass definition to internal header
...
This lets us change this without affecting apps.
2010-12-21 12:06:54 -05:00
Alexander Larsson
5fda1669ea
Make display method vtable calls
2010-12-21 12:06:54 -05:00
Alexander Larsson
f1c32f109d
Hide GdkDisplayClass from public header
...
There is no need for apps to access this class, as its only implemented
in the gdk backends, and we want to be free to change it later.
2010-12-21 12:06:54 -05:00
Alexander Larsson
ac7d55c948
Convert all gdk_window methods to vtable calls
2010-12-21 12:06:54 -05:00
Tristan Van Berkom
49273f2277
Added "fixed-size" cell property to GtkCellAreaBox
...
Now a cell can either have a "fixed" size or it can have
an "aligned" starting point or both. "fixed" size cells take
no space when they are invisible.
2010-12-22 00:28:18 +09:00
Tristan Van Berkom
c8ae68c33d
Fixed gtk_cell_layout_set_cell_data_func() to pass the correct layout object
...
Added _gtk_cell_area_set_cell_data_func_with_proxy() to be called by
gtk_cell_layout_set_cell_data_func() when the layouting object itself
is not the underlying cell area.
2010-12-22 00:28:18 +09:00
Michael Natterer
13f18567e9
gdk: return 0, not NULL from gdk_device_get_n_axes()
2010-12-21 15:16:35 +01:00
Carlos Garnacho
ac0353e08a
Make gtk_style_context_get_* functions more robust
...
Even if the default CSS contains values for these, handle non-existing
values as queries might happen on an incomplete style.
2010-12-21 14:44:49 +01:00
Jesse van den Kieboom
e36ba3465b
Added out annotations for gtk_icon_size_lookup/_for_settings
...
https://bugzilla.gnome.org/show_bug.cgi?id=637606
2010-12-21 13:24:12 +01:00
Jesse van den Kieboom
939f68a35e
Added out annotations for gtk_accelerator_parse
...
https://bugzilla.gnome.org/show_bug.cgi?id=637606
2010-12-21 13:24:12 +01:00
Yaron Shahrabani
1bb68f0bc5
Updated Hebrew translation
2010-12-21 12:46:41 +02:00
Carlos Garnacho
e02b10046d
Ensure widgets get a GtkStyle with its backing GtkStyleContext
...
Since the default style also has a backing context, it wasn't
being replaced after initialization.
2010-12-21 01:33:51 +01:00
Javier Jardón
33fd2104b7
docs: unmap signal will always be emitted when a widget is unmapped
...
Since commit 9552152dd9
2010-12-20 23:53:53 +00:00
Matthias Clasen
5c2f407935
Fix problems with window handling in GtkCalendar
...
After the window removal a while ago, the calendar main window
was not properly moved in size_allocate. Also, we ought to hide/show
the windows in map/unmap, not keep them visible at all times.
Bug 634657
2010-12-20 17:12:02 -05:00
Carlos Garnacho
17e97467df
Strengthen checks in functions taking a GdkDevice
...
Docs have also been improved, to make explicit the device
type/source accepted.
2010-12-20 23:08:10 +01:00
Carlos Garcia Campos
0c518a81b8
printing: Set new print operation settings before emitting custom-widget-apply signal
...
So that custom settings can be added from the custom-widget-apply
callback.
https://bugzilla.gnome.org/show_bug.cgi?id=637069
2010-12-20 21:10:53 +01:00
Havoc Pennington
9552152dd9
Always emit unmap when a widget is unmapped
...
Previously, for performance reasons we would sometimes
skip invoking the unmap signal (and associated vfunc)
in favor of simply unrealizing. However, widgets then
had no way to clean stuff up when they were hidden
(but still inside a parent which was shown).
This patch also removes _gtk_tooltip_hide() which
was done in both unmap and unrealize in gtkwidget.c,
now can only be in unmap.
There are probably lots of things cleaned up in
unrealize that would now be better to move to unmap.
https://bugzilla.gnome.org/show_bug.cgi?id=629923
2010-12-20 13:04:45 -05:00
Havoc Pennington
b67c5af55b
Add invariant that a child is unmapped if parent is unmapped
...
Requires fixes to GtkContainer and GtkWindow to unmap their
children, rather than just withdrawing or hiding the container
window.
Requires fix to GtkHandleBox to chain up to GtkContainer unmap.
Historically we avoided these unmaps for efficiency reasons,
but these days it's a bigger problem that there's no way
for child widgets to know that one of their ancestors has
become unmapped.
2010-12-20 12:58:04 -05:00
Havoc Pennington
23ce44c9fe
Verify GtkWidget invariants if G_ENABLE_DEBUG is defined
...
These checks are a bit expensive so require --enable-debug=yes.
gtk_widget_verify_invariants() checks invariants mentioned
in docs/widget_system.txt in particular, and can verify
others in the future.
Some of the invariants in docs/widget_system.txt don't
in fact hold right now, so those are #if 0'd in this
patch pending someone fixing either the docs or the code.
2010-12-20 12:46:51 -05:00
Matthias Clasen
28cc7baef0
Make GtkEntry hide completely
...
When it was converted to no-window, we forgot to make it hide/show
its input window as necessary.
2010-12-20 12:28:05 -05:00
Matthias Clasen
335bfbc8fc
Update GtkAboutDialog documentation
...
Also, remove some dead code, pointed out in bug 637608.
2010-12-20 11:40:39 -05:00
Carlos Garnacho
33cd32f796
Make gtk_style_new() use a backing GtkStyleContext
...
Fixes a bug in mutter where it would resort to a dummy style
to get iconview rubberband color.
Reported by Mathieu Bridon in
https://bugzilla.gnome.org/show_bug.cgi?id=637520
2010-12-20 17:18:35 +01:00
Matthias Clasen
5b299ce7af
Remove reference to GTK2_RC_FILES from the docs
...
Pointed out in bug 637471.
2010-12-20 10:23:43 -05:00
Cosimo Cecchi
a5fe3fef7b
appchooserdialog: use new GLib API to modify positioning
...
The dialog will always show up with the last selected application.
2010-12-20 16:08:21 +01:00
Matthias Clasen
183bf8ac9d
Use g_strtod when converting strings for GtkCellRendererSpin
...
These strings are likely user-provided values, so we should
respect locale settings.
Reported in bug 637189.
2010-12-20 10:02:00 -05:00
Matthias Clasen
a9753ef5c6
Add a test for basic style properties
2010-12-20 08:19:23 -05:00
Carlos Garnacho
7030492a3b
Disable XI2 in gtk_test_init()
...
gdk_test_simulate_*() uses XSendEvent, which doesn't currently work
with XI2/GenericEvents, so make tests use core events for the time
being. Luckily there's a lot more to test than low-level event
handling in these tests.
2010-12-20 13:55:38 +01:00
Carlos Garnacho
ca7fe1cb73
GtkStyleProperties: Assign default value for the font property
...
This fixes a failure when running make test, where style queries
happened before there was even an screen.
2010-12-20 13:55:37 +01:00
Ivar Smolin
3c8076f3dc
[l10n] Updated Estonian translation
2010-12-20 13:54:25 +02:00
Javier Jardón
08af2cb488
gail: Fix a typo
...
This fixes commit d0b81b2148
2010-12-20 11:52:37 +00:00
Baurzhan Muftakhidinov
079b72574a
Updates to Kazakh translation
2010-12-20 17:06:25 +06:00
Matthias Clasen
d4e9cd09ab
Fix up symbol lists
2010-12-19 23:45:21 -05:00
Javier Jardón
26a304c54b
Move GtkSelectionData to a private header
2010-12-19 20:48:20 +00:00
Mahyar Moghimi
39b85421f8
Updating Persian translations (minor change)
2010-12-19 13:42:39 +03:30
Nguyễn Thái Ngọc Duy
75970da97f
po/vi.po: import some translations from Ubuntu/Maverick
2010-12-19 16:24:42 +07:00
Yaron Shahrabani
3573179ced
Updated Hebrew translation
2010-12-19 09:09:16 +02:00
Javier Jardón
66e7915dc4
gtktreeselection: Move public members to a private structure
2010-12-19 05:01:22 +00:00
Javier Jardón
d0b81b2148
gail: Use accessor functions to access GtkTreeSelection
2010-12-19 04:56:32 +00:00
Javier Jardón
74a7bc3a77
gtk/gtktreeview.c: Use accessor to access GtkTreeSelection
2010-12-19 04:56:32 +00:00
Javier Jardón
e92da3e166
gtkcombobox.c: Use accessor functions to access GtkTreeSelection
2010-12-19 01:27:41 +00:00
Matthias Clasen
1b67d31bd9
Remove G_SEAL from private headers
2010-12-18 17:46:19 -05:00
Matthias Clasen
8105125369
Remove sealed members from GtkPrintJob
...
Also add accessors for these members, and use them in print backends.
2010-12-18 17:45:31 -05:00
Matthias Clasen
5863382e11
Don't use GtkSocket internals in gail
2010-12-18 17:39:42 -05:00
Matthias Clasen
eb11430228
Fix gdk symbols after recent changes
2010-12-18 17:39:42 -05:00
Matthias Clasen
5ee3a44415
Remove sealed members from GtkSocket
2010-12-18 17:39:41 -05:00
Jorge González
53845f0851
Updated Spanish translation
2010-12-18 14:39:36 +01:00
Carlos Garnacho
56c3d4b1be
Remove dead Gtk[Rc]Style code
...
Most code in gtkrc.c has been turned into a no-op, but that one
reverting in public API (gtk_rc_scanner_new() and such). GtStyle
is also more shallow, now fully relies in the backing
GtkStyleContext and all connection to gtkrc.c has been removed.
GtkBinding has been also affected, there is no replacement yet
for custom keybindings in style files, so that piece of code that
hooked into gtkrc has been replaced by a FIXME so in the future
it may be added back.
2010-12-18 12:10:00 +01:00
Carlos Garnacho
d7dc12d301
Adapt gtk_widget_set_name() docs to style context.
2010-12-18 11:43:37 +01:00
Carlos Garnacho
bbc637f7fd
GtkWindow: remove deprecated call.
...
gtk_style_context_reset_widgets() can be used now to reset all widgets
in a screen.
2010-12-18 11:43:37 +01:00
Matthias Clasen
b45e5fa51e
Remove sealed members from GtkTreeModelSort
2010-12-17 23:49:27 -05:00
Matthias Clasen
121746605b
Add the private struct in class_init
2010-12-17 21:50:18 -05:00
Matthias Clasen
881ea2881d
Remove sealed members from GtkTreeStore
2010-12-17 21:45:20 -05:00
Matthias Clasen
60953ae0f4
Avoid accidental exports
2010-12-17 21:43:42 -05:00
Matthias Clasen
841edfe8c3
Remove an unused pointer from GtkDrawingArea
...
This is part of removing all sealed members from instance structures.
2010-12-17 20:54:13 -05:00
Matthias Clasen
7b665316cf
Hide GtkWindowGroup members
...
In the process of removing all sealed members from headers.
At the same time, add a gtkwindowprivate.h header and move
all internal functions from gtkwindow.h there.
2010-12-17 20:41:16 -05:00
Matthias Clasen
a2dda0c2bb
Trivial changes
...
Whitespace fixes, comment formatting, etc
2010-12-17 19:14:35 -05:00
Matthias Clasen
453bf477ed
Don't query the position of keyboards
...
Turns out that this causes X errors with the XI2 implementation.
2010-12-17 18:41:24 -05:00
Matthias Clasen
8bc4e13c22
No links in title, please
2010-12-17 18:41:24 -05:00
Colin Walters
d08ff485f2
gdkwindow: Fix event unref iteration
...
We were double looping previously which caused a NULL deref.
2010-12-17 15:41:15 -05:00
Matthias Clasen
33fb60e050
Fix an escaping problem
...
& must be escaped as & in examples.
2010-12-17 14:53:43 -05:00
Matthias Clasen
55a0f8700f
Another doc format problem
2010-12-17 14:51:53 -05:00
Matthias Clasen
17c7bda6a3
Fix a doc comment format problem
...
Parameters / enum values come first, then the paragraph.
2010-12-17 14:50:55 -05:00
Matthias Clasen
5627ba161e
More parameter name mismatches
2010-12-17 14:49:27 -05:00
Matthias Clasen
9d8682b9ac
Fix a few parameter name mismatches
2010-12-17 14:46:18 -05:00
Matthias Clasen
b32f4ae7c4
Add deprecation guards for gtk_icon_set_render_icon
2010-12-17 14:31:44 -05:00
Matthias Clasen
55ffebe505
Avoid a gtk-doc warning
2010-12-17 14:27:48 -05:00
Matthias Clasen
4317ae32c3
Adjust symbol lists in the docs
2010-12-17 14:24:25 -05:00
Cosimo Cecchi
b792a31995
widgetpath: allow GTypes non-derived from GTK_TYPE_WIDGET
...
This makes things like GtkCellRenderer or GtkNumerableIcon more easily
themeable.
https://bugzilla.gnome.org/show_bug.cgi?id=637169
2010-12-17 18:30:57 +01:00
Colin Walters
806c04411d
gdk: Fix GdkWindowFilter internal refcounting
...
Running gnome-shell under valgrind, I saw the attached invalid write.
Basically we can destroy a window during event processing, and the old
window_remove_filters simply called g_free() on the filter, ignoring
the refcount. Then later in event processing we call filter->refcount--,
which is writing to free()d memory.
Fix this by centralizing list mutation and refcount handling inside
a new shared _gdk_window_filter_unref() function, and using that
everywhere.
==13876== Invalid write of size 4
==13876== at 0x446B181: gdk_event_apply_filters (gdkeventsource.c:86)
==13876== by 0x446B411: _gdk_events_queue (gdkeventsource.c:188)
==13876== by 0x44437EF: gdk_display_get_event (gdkdisplay.c:410)
==13876== by 0x446B009: gdk_event_source_dispatch (gdkeventsource.c:317)
==13876== by 0x4AB7159: g_main_context_dispatch (gmain.c:2436)
==13876== by 0x4AB7957: g_main_context_iterate.clone.5 (gmain.c:3087)
==13876== by 0x4AB806A: g_main_loop_run (gmain.c:3295)
==13876== by 0x8084D6B: main (main.c:722)
==13876== Address 0x1658bcac is 12 bytes inside a block of size 16 free'd
==13876== at 0x4005EAD: free (vg_replace_malloc.c:366)
==13876== by 0x4ABE515: g_free (gmem.c:263)
==13876== by 0x444BCC9: window_remove_filters (gdkwindow.c:1873)
==13876== by 0x4454BA3: _gdk_window_destroy_hierarchy (gdkwindow.c:2043)
==13876== by 0x447BF6E: gdk_window_destroy_notify (gdkwindow-x11.c:1115)
==13876== by 0x43588E2: _gtk_socket_windowing_filter_func (gtksocket-x11.c:518)
==13876== by 0x446B170: gdk_event_apply_filters (gdkeventsource.c:79)
==13876== by 0x446B411: _gdk_events_queue (gdkeventsource.c:188)
==13876== by 0x44437EF: gdk_display_get_event (gdkdisplay.c:410)
==13876== by 0x446B009: gdk_event_source_dispatch (gdkeventsource.c:317)
==13876== by 0x4AB7159: g_main_context_dispatch (gmain.c:2436)
==13876== by 0x4AB7957: g_main_context_iterate.clone.5 (gmain.c:3087)
https://bugzilla.gnome.org/show_bug.cgi?id=637464
2010-12-17 12:07:37 -05:00
Kristian Rietveld
faf35d708b
Fix size allocation for list mode combo box
2010-12-17 16:53:46 +01:00
Kristian Rietveld
21fc66f120
Set cell_view to NULL immediately after unparenting
...
This way we are sure no invalid pointer will be accessed in between.
2010-12-17 16:53:46 +01:00
Kristian Rietveld
81515f7183
Check if popup_window is mapped, not popup_widget
...
Before hide_all was used on popup_window, which means popup_widget
was also unmapped. This is now no longer the case. This fixes
subsequent pop ups for appears-as-list == 1.
2010-12-17 16:53:46 +01:00
Benjamin Otte
d50c582961
selection: constify GtkSelectionData getters
2010-12-17 16:47:57 +01:00
Carlos Garnacho
2c8c1c6df4
Remove *_set_extension_events() and old API to query devices.
...
The old functions to get core pointer and devices list are gone as
well. This slice is entirely replaced internally by multidevice
handling and may just go.
2010-12-17 16:25:14 +01:00
Bastien Nocera
23c1d1cbc9
gtk: Add symbolic property for GtkVolumeButton
...
When the application prefers symbolic icons, avoids
having to reimplement the button in the software itself.
https://bugzilla.gnome.org/show_bug.cgi?id=636969
2010-12-17 13:23:23 +00:00
Kjartan Maraas
668604dcfd
Updated Norwegian bokmål translation
2010-12-17 13:09:58 +01:00
Tristan Van Berkom
df0d61e50d
Fixed gtk_entry_set_icon_tooltip_text & markup to not crash
...
Setting this property before the icon is actually set was
resulting in a crash (found by way of Glade bug 606103).
2010-12-17 18:15:08 +09:00
Tristan Van Berkom
b11bb46a76
Fixed parameter names in gtkcellarea.h for gtk-doc parsing.
2010-12-17 15:35:21 +09:00
Tristan Van Berkom
941a0e95d7
Fixed documentation of GtkCellLayout <cell-packing>
...
Mention that it's safe to use <cell-packing> tag for any GtkCellLayout
in GTK+ since they *all* use an underlying GtkCellArea (at least they
will once the other branches land).
2010-12-17 15:26:28 +09:00
Tristan Van Berkom
71e7cd0ec4
Merge branch 'master' into treeview-refactor
...
Conflicts:
tests/testtreeedit.c
2010-12-17 15:25:15 +09:00
Kristian Rietveld
735fa8b197
Avoid recursion in do_validate_rows()
...
I have never really liked the updates done to the adjustments in
do_validate_rows() and other validation functions. But it is really
required. I have to come up with a real solution to this one day.
2010-12-16 23:33:42 +01:00
Kristian Rietveld
88f8859f90
Should pass inner_area to cell in gtk_cell_area_activate_cell()
2010-12-16 22:42:10 +01:00
Kristian Rietveld
e3cab18354
Clip focus rectangle to background area
2010-12-16 12:33:00 +01:00
Kristian Rietveld
c01ad6f615
Fix background area calculation in RTL mode
2010-12-16 12:26:18 +01:00
Javier Jardón
e9a77a1535
docs: gtknotebook.c: Use accessor functions to access GtkSelectionData
2010-12-16 00:16:00 +00:00
Javier Jardón
cf9e9ff47f
gtk/gtkclipboard.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
e5a3b7edbf
gtk/gtkcolorbutton.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
1a2d9c368e
gtk/gtkcolorsel.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
a86d1fa7c3
gtk/gtkdnd.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
499aa2b3b9
gtk/gtkfilechooserbutton.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
c806c0821a
gtk/gtkfilechooserdefault.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
fbbe9f5191
gtk/gtkiconview.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
8537163e20
gtk/gtklinkbutton.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:16 +00:00
Javier Jardón
ad4ac2182a
gtk/gtknotebook.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
1ceddae7da
gtk/gtktextbuffer: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
2b7afcdd79
gtk/gtktextview.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
7c6012d933
gtk/gtktoolpalette.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
640f85e568
gtk/gtktreednd.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
1cfd78269e
gtk/gtktreeview.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
a66f095b62
demos/gtk-demo/clipboard.c: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Javier Jardón
7105e8e907
tests: Use accessor functions to access GtkSelectionData
2010-12-15 23:58:15 +00:00
Kristian Rietveld
a28c11a27f
Clip to cell_area when rendering cell content
...
This fixes a GTK+ 3.0 regression. In GTK+ 2, the render method
on GtkCellRenderer had a expose_area parameter, typically set to
cell_area. This parameter was used for clipping cell content to be
rendered to the cell area (and thus clipping to within the focus
rectangle). During the rendering clean up this parameter was removed
and no clipping put back into place.
Since expose_area was usually equal to cell_area anyway, it does not make
sense to reintroduce the expose_area parameter. Instead, we do clipping at
two levels:
- in gtk_cell_renderer_render() we clip to background_area. We cannot
clip to cell_area here because we want to allow cell renderers to
render in the background area (e.g. background color/effect).
- cell renderers should clip to clip_area when rendering cell
content individually (as they had to individually clip to expose_region
before).
2010-12-16 00:07:08 +01:00
Kristian Rietveld
c8d130efa7
Revisit "Handle clicks in indentation area"
...
Check (x, y) is inside background area. If yes, continue processing
and clamp the coordinates into cell area. This way we will properly
handle getting a cell (which is only used for setting the focus cell)
for clicks in the indentation area (in LTR and RTL mode) and clicks
in the focus rectangle area in case focus-line-width is large.
2010-12-15 23:55:26 +01:00
Jorge González
67f6a43702
Updated Spanish translation
2010-12-15 22:00:00 +01:00
Kristian Rietveld
5399f7b6e6
Make testtreeview handle RTL environment variable for testing
2010-12-15 21:36:47 +01:00
Kristian Rietveld
8e98333d8b
RTL fix for gtk_tree_view_focus_to_cursor()
2010-12-15 21:31:35 +01:00
Kristian Rietveld
92e145e719
No need to correct direction for rtl, GtkCellArea takes care of that
2010-12-15 21:27:40 +01:00
Kristian Rietveld
0112c32c5b
Make testcellarea handle RTL environment variable for testing
2010-12-15 21:22:35 +01:00
Kristian Rietveld
be39883de2
Correct calculation of the cell focus rectangle
...
The cell's focus rectangle is located around the cell's aligned area.
To get to the correct coordinates for this rectangle, we have to subtract
focus_line_width from the found aligned_area.
2010-12-15 21:17:27 +01:00
Carlos Garnacho
ec82d133b1
Remove debug messages from GdkDevice
2010-12-15 15:48:43 +01:00
Benjamin Otte
198fc0b774
tests: Hardcode testinput colors instead of trying to use GtkStyle
...
Makes it work with new themeing APIs.
2010-12-15 14:51:26 +01:00
Benjamin Otte
cae6021d3a
tests: Make testiconview-keynav set its custom style using CSS.
2010-12-15 14:51:26 +01:00
Benjamin Otte
1b64655eb6
cssprovider: Explode if we fail to parse the default CSS
...
This can only happen if somebody really messed up with a checkin, and in
that case we want to explode early.
2010-12-15 14:51:26 +01:00
Benjamin Otte
9e393020c4
gail: Fix for new style code
2010-12-15 14:51:26 +01:00
Benjamin Otte
211ccb5c73
xim: Fix for new style code
2010-12-15 14:51:26 +01:00
Benjamin Otte
d3ed729643
gtkrc: Remove unused code
...
Makes gcc happy.
2010-12-15 14:51:26 +01:00
Benjamin Otte
e77ce71caa
gtk-demo: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
e274ac4b6c
tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
1312f774f5
tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
7caec64bc3
tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
6aa745b819
tests: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:26 +01:00
Benjamin Otte
b0b9c9683b
dnd-quartz: gtk_widget_render_icon() => gtk_widget_render_icon_pixbuf()
2010-12-15 14:51:25 +01:00
Benjamin Otte
88767b0af7
gdk: Don't use NULL for integers
2010-12-15 14:51:25 +01:00
Florian Müllner
ce5dae6702
Complete renaming of gdk_enable_multidevice()
...
The function was renamed in commit c4a5c2ed4 , but some places were
missed, most notably the public header.
2010-12-15 13:05:11 +01:00
Benjamin Otte
544146b9be
size-request: Clamp size requests to screen size
...
Size requests should only ever need to return the screen's width/height
and max. This way, potentially large widgets (tree view or icon view)
don't need to do so many computations, but can stop when their computed
size has reached the screen size.
2010-12-15 10:41:20 +01:00
Matthias Clasen
208d717fef
Optimize gdk_window_set_shape_combine_region
...
When setting no shape on an unshaped window, nothing changes,
so return early instead of recomputing lots of visibility
information.
Pointed out by Owen Taylor in bug 637156.
2010-12-14 22:21:39 -05:00
Matthias Clasen
b7fd6f1e88
Remove gtk_widget_reset_shapes
...
See bug 637155.
2010-12-14 22:15:33 -05:00
Carlos Garnacho
f9ed6baeb4
Improve docs for gtk_widget_reset_style().
...
Document that it may be needed in containers when
children are reordered.
2010-12-15 03:33:01 +01:00
Carlos Garnacho
44a7ef7bec
Add gdk_window_[gs]et_source_events()
...
This function will enable events for all devices of a given
GdkInputSource, either these available at the time of the call,
or these that are connected in the future.
2010-12-15 03:17:59 +01:00
Carlos Garnacho
be7de347bf
xi2: Improve device hierarchy handling
...
The xi2 device manager now handles slaves being detached and/or
attached to a master.
gdk_device_list_slaves() has been added so it is possible to
know how slaves relate with masters. The other backends (X11 and not)
don't neeed to to anything special here since their hierarchy is
fully flat.
2010-12-15 03:17:59 +01:00
Carlos Garnacho
9f41101ccc
Emit GdkDevice::changed when the slave device being used changes
...
When the slave device changes, the master takes the shape of the
new one, modifying its axes, this signal is more useful to catch
this situation than the n-axes property
2010-12-15 03:17:58 +01:00
Carlos Garnacho
f5a20ab65a
Add gdk_event_[gs]et_source_device().
...
This function may be used to know the hardware device that triggered
an event, it could resort to the master device in the few cases there's
not a direct hardware device to relate to the event (i.e.: crossing events
due to grabs)
2010-12-15 03:17:58 +01:00
Carlos Garnacho
c4a5c2ed4b
Enable XI2 by default
...
gdk_enable_multidevice() has been replaced with gdk_disable_multidevice(),
so applications may call that function if they want to go back at the
previous behavior.
There would be usually little reasons to call that function, unless the
application is doing X calls itself that count on old fashioned core
devices.
2010-12-15 03:17:58 +01:00
Carlos Garnacho
66800aa212
Make GtkTextView use GtkStyleContext
...
GtkTextAppearance still uses GdkColors, even though it could
switch to GdkRGBA with little hassle as it seems sheldomly used
out there.
2010-12-15 03:17:58 +01:00
Diego Escalante Urrelo
b0560107e9
docs: fix link failure on gtk-doc scanner binaries
...
Bug #637243
2010-12-14 20:31:14 -05:00
Diego Escalante Urrelo
02f92f29d5
gtkstylecontext: fix typos in annotations
...
Fixes Bug #637256
2010-12-15 00:46:25 +00:00
Benjamin Otte
9929743f24
docs: Redo drawing area drawing docs
...
They don't seem to have been updated for a long time...
2010-12-14 21:10:22 +01:00
Tristan Van Berkom
8ca6bbbfc0
Make GtkCellArea independantly GtkBuildable.
...
Simply use the GtkCellLayoutIface hooks for this.
2010-12-14 15:52:40 +09:00
William Jon McCann
96a4fc4e5b
Update about dialog design to not use a swarm of dialogs
...
This is a modernization of the GtkAboutDialog look done
by William Jon McCann. The most noteworthy changes are:
- no more subdialogs
- show license short text in the main dialog
- less verbose email link formatting
- the dialog is modal to its transient parent
2010-12-14 00:15:21 -05:00
Carlos Garnacho
ee31a016ec
Make GtkInfoBar use GtkStyleContext
...
All colors are defined now in the default css, and classes have
been added so the bars are fully themeable (as opposed to
gtk_widget_override_*, which require changing the color map itself)
2010-12-14 02:29:57 +01:00
Carlos Garnacho
fbb75b9b5d
Add headers/docs changes for gtk_theming_engine_get_font()
...
Apparently I didn't git add enough...
2010-12-13 22:42:05 +01:00
Carlos Garnacho
afca06b362
Add getter for font description in GtkThemingEngine
...
This function is analogous to gtk_style_context_get_font().
2010-12-13 22:31:30 +01:00
Carlos Garnacho
a517cf1bed
Make GtkExpander use GtkStyleContext
2010-12-13 22:31:30 +01:00
Carlos Garnacho
89e6cad92f
GtkSpinButton: Use GtkStyleContext
2010-12-13 22:31:29 +01:00
Carlos Garnacho
c64a1891f8
Port GtkRange widgets to GtkStyleContext
2010-12-13 22:31:29 +01:00
Carlos Garnacho
3306305fe1
GtkNotebook: Use GtkStyleContext.
2010-12-13 22:31:29 +01:00
Carlos Garnacho
8b8eab1c81
GtkEntry: Use GtkStyleContext.
2010-12-13 22:31:28 +01:00
Carlos Garnacho
618b1a8b33
GtkCssProvider: Make selectors applying from the topmost widget rank higher
...
For example, for an entry within a notebook, previously these 2 rules would
have the same weight:
.entry {}
.notebook {}
Now ".entry" will rank higher than ".notebook" for the GtkEntry, further
specific selectors such as:
.notebook .entry {}
still get a higher score than the previous ones.
2010-12-13 22:31:28 +01:00
Carlos Garnacho
d80868aa68
GtkThemingEngine: Render tabs background in the correct direction.
...
The cairo context has been already rotated, so using GTK_JUNCTION_BOTTOM
is expected to be used there.
2010-12-13 22:31:28 +01:00
Carlos Garnacho
2371ed8b87
GtkThemingEngine: handle expander transitions to active, and rtl
2010-12-13 22:31:28 +01:00
Carlos Garnacho
1f697f2695
GtkThemingEngine: remove unused variable
2010-12-13 22:31:27 +01:00
Carlos Garnacho
99f59d8266
Fix coalescing of state animation areas for multiple window widgets.
...
Coordinates needed to be translated relative to the window position
in within the widget.
2010-12-13 22:31:27 +01:00
Paolo Borelli
f285a84bd6
Add convenience function for the font description.
2010-12-13 22:31:27 +01:00
Tristan Van Berkom
e2c8ecba30
Fixed an error in my last commit in gtk_cell_area_box_context_copy().
2010-12-13 19:13:43 +09:00
Tristan Van Berkom
623abdedf6
Added gtk_entry_completion_new_with_area()
2010-12-13 15:58:07 +09:00
Tristan Van Berkom
96d636a780
Updated some docs and gtk.symbols file for new apis
...
Added gtk_cell_area_context_get_preferred_height_for_width and
width_for_height & gtk_cell_area_copy_context() to gtk.symbols
and gtk3-sections.txt (also finished up documenting those apis).
2010-12-13 15:43:58 +09:00
Tristan Van Berkom
41cd9d1394
Fixed gtk_cell_area_box_context_copy() to also copy it's allocations.
2010-12-13 15:37:12 +09:00
Kristian Rietveld
d743ecf82e
Handle clicks in indentation area
...
For this case, we want to set focus on the first cell in the column.
2010-12-12 17:32:59 +01:00
Tristan Van Berkom
2e1e97305f
Make GtkTreeView explicitly focus the first cell in the first column when grabbing focus
...
When focus is initially grabbed and there is no focus column, when selecting
the first column for focus, further explicitly focus into the first cell
using gtk_cell_area_focus().
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
31226ebfb2
Fixed GtkTreeView to give focus back to the last focued cell when hitting
...
the edge.
When focusing left/right or up/down inside GtkCellArea, now we save what
was the last focused cell and if we hit the side (or top or bottom) of
the view we then restore focus to the last focused cell.
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
7e526d57f0
Add an editable cell to testverticalcells showing functional vertical focus navigation.
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
632f1f3ac4
Modified gtk_tree_view_move_cursor_up_down to move focus inside the cell area
...
This currently leaves us the problem of maintaining the right cell in
focus for horizontal areas, the solution for that comming in the
next patch.
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
2752fd0f16
Removing gtk_tree_view_move_focus_column() and only calling gtk_cell_area_focus()
...
This function did alot of nothing, gtk_cell_area_focus() simply returns whether
the focus stays in the area (column) or not, seems not to cause regressions to
just call it directly instead.
2010-12-12 17:21:28 +01:00
Tristan Van Berkom
0431dd67f8
Added apis to GtkCellArea for GtkIconView purposes.
...
Added a few apis,
- GtkCellAreaContext get_preferred_height_for_width &
width for height apis and vfuncs, this lets the icon view
request the collective (and aligned) height for width for
a said row.
- gtk_cell_area_copy_context() this creates a duplicate of
an already created and requested context, this way the icon
view uses a global context to request the widths of all rows
and then makes a copy with all the stored alignments and
uses a separate copy to calculate the height and alignments
of each row separately.
2010-12-13 00:29:21 +09:00
Kristian Rietveld
ff39c76bfd
Welcome _gtk_tree_view_column_get_cell_at_pos to the second dimension
2010-12-12 15:22:49 +01:00
Kristian Rietveld
cbfc3f5bf0
Make gtk_tree_view_get_cell_area() aware of row separators
2010-12-12 15:09:27 +01:00
Kristian Rietveld
8c743a0363
Add unit test for row separator height
2010-12-12 15:03:33 +01:00
Kristian Rietveld
d142d8bb6c
Do not enforce a minimum of expander_size in gtk_tree_view_get_row_height
...
Instead this is now enforced in gtk_tree_view_get_cell_area_height().
There are rows for which a height in between 0 and expander_size is
allowed, for example separator rows.
2010-12-12 14:34:26 +01:00
Tristan Van Berkom
1c8093b65e
Fixed some glitches in GtkCellAreaBox keynav from my last commit.
2010-12-12 20:40:34 +09:00
Tristan Van Berkom
89b3700b78
Make GtkCellAreaBox remember what was the last focus cell so that when
...
cycling focus from row to row for a horizontal area we can remember
where focus was the last time around.
2010-12-12 20:40:26 +09:00
Tristan Van Berkom
2f4e451075
Added "edit_only" argument to gtk_cell_area_activate()
...
This argument allows the caller to specify that only an editable
cell should start editing but an activatable cell should not toggle
it's state, this is important for public apis like
gtk_tree_view_set_cursor_on_cell() which are only intended to
programatically bring attention to the editing of a specific
row or cell but not actually change any data.
GtkTreeView & CellAreaScaffold updated for the last minute api change.
2010-12-12 17:15:46 +09:00
Tristan Van Berkom
46c49ee260
Removed the resetting_context flag from GtkTreeViewColumn private data
...
No longer need to detect if we're currently resetting the context since
the context properly now avoids re-triggering the reset by properly
avoiding to notify properties that dont change as a result of the reset.
2010-12-12 16:43:07 +09:00
Tristan Van Berkom
fa71b24e9a
Fixed gtk_cell_area_context_real_reset() to only notify properties if they change.
2010-12-12 16:42:37 +09:00
Milan Bouchet-Valat
029083454b
[GtkComboBoxText] Add checks for id-column/entry-text-column >= 0
...
If the GtkComboBoxText doesn't have id-column or entry-text-column
set for some reason (value -1), better warn and return. Else, unrelated
assertions fail, and warnings from gtk_tree_model_get_column_type()
are printed, which are not really obvious.
https://bugzilla.gnome.org/show_bug.cgi?id=637018
2010-12-11 19:10:51 +01:00
Matthias Clasen
3b90d877b7
Remove unused header
2010-12-10 23:39:10 -05:00
Matthias Clasen
948ab1a168
Don't access GdkVisual fields directly
...
Use accessors instead.
2010-12-10 02:32:18 -05:00
Matthias Clasen
83204928b9
Don't access GdkDragContext fields directly
...
Instead use the accessors.
2010-12-10 00:59:07 -05:00
Matthias Clasen
fe5e0e4502
Add some forgotten accessors for GdkDragContext
...
These fields are accessed in gtk.
2010-12-10 00:58:33 -05:00
Martyn Russell
bb87eada6b
gtksearchenginetracker: Update to work with libtracker-sparql
...
libtracker-sparql is available in Tracker 0.9/0.10
2010-12-09 23:53:51 +00:00
Benjamin Otte
ddb5e12e61
docs: Reinstate pixbufs section in GDK docs
...
It was accidentally removed in 0775b0a858
2010-12-09 23:56:25 +01:00
Benjamin Otte
3070d6e3d5
Revert "docs: Reinstate pixbufs section in GDK docs"
...
I committed my whole working tee instead of just one file. Ooops.
This reverts commit ded14b2562 .
2010-12-09 23:55:33 +01:00
Benjamin Otte
ded14b2562
docs: Reinstate pixbufs section in GDK docs
...
It was accidentally removed in 0775b0a858
2010-12-09 11:14:21 +01:00
Tristan Van Berkom
95ca1e241c
Removed calculation of background area when about to edit a cell (no need to check the background area of the cell in this case).
2010-12-09 13:59:17 +09:00
Tristan Van Berkom
32d9396f00
Changed misleading variable name in gtk_cell_area_real_activate.
2010-12-09 13:59:04 +09:00
Guillaume Desmottes
107cebe546
gtk_css_provider_get_named: don't leak subpath ( #636777 )
2010-12-08 21:13:03 -05:00
Matthias Clasen
05abea6c4f
Add missing include
...
See bug 636732
2010-12-08 11:49:48 -05:00
Marek Kasik
da85312097
Mark conflicts when printer has changed
...
Schedule marking of conflicts when printer has changed.
Map conflict warning immediately. (#635401 )
2010-12-08 17:37:27 +01:00
Carlos Garcia Campos
24e832187f
GtkCellRendererPixbuf: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:16:02 +01:00
Carlos Garcia Campos
e779b8f249
GtkIconFactory: mention gtk_widget_render_icon_pixbuf() in docs
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:15:25 +01:00
Carlos Garcia Campos
3a3a4e8f3b
GtkStatusIcon: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:14:48 +01:00
Carlos Garcia Campos
2dde04140d
GtkImage: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:13:43 +01:00
Carlos Garcia Campos
e2100b13d0
GtkFileChooser: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:12:59 +01:00
Carlos Garcia Campos
a5dba1670e
GtkEntry: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:12:14 +01:00
Carlos Garcia Campos
8017092977
dnd: Use gtk_widget_render_icon_pixbuf()
...
Instead of gtk_widget_render_icon() which is now deprecated.
2010-12-08 17:10:34 +01:00
Carlos Garcia Campos
5582bd23fb
Add gtk_widget_render_icon_pixbuf() prototype to gtkwidget.h
...
And move gtk_widget_render_icon() to deprecation guards block
2010-12-08 16:46:57 +01:00
Paolo Borelli
61731c65aa
Annotate ColorButton get_color and get_rgba.
2010-12-08 15:30:42 +01:00
Paolo Borelli
f5d7a63aff
Fix gtk_builder_add_objects_from_file g-i annotation
...
Use the same annotation already used for add_objects_from_string
2010-12-08 15:15:50 +01:00
Tristan Van Berkom
f1c26dfdb2
Fixed gtk-docs typo in gtkcellarea.c
2010-12-08 22:31:33 +09:00
Tristan Van Berkom
40e9f91f43
Fixed foreach_alloc call from gtk_cell_area_real_render to pass the real background area.
2010-12-08 21:27:52 +09:00
Tristan Van Berkom
34f4b5c190
Added 'background_area' calculation to GtkCellAreaClass->foreach_alloc vfunc
...
This allows us to reduce code allocation code paths in subclasses, as
a result GtkCellArea implements the ->render() vfunc and the subclass
only decides the cell area and background area distributions in a single
code path.
2010-12-08 21:18:05 +09:00
Robert Ancell
6188ea608f
Add missing X11/Xlib.h include required for X11/extensions/sync.h
2010-12-08 18:44:20 +11:00
Tristan Van Berkom
a47a557fc3
Merge branch 'master' into treeview-refactor
2010-12-08 15:24:49 +09:00
Milan Bouchet-Valat
13209a9a6c
More annotations for GdkDisplay
...
Mostly (out), and a few (allow-none) for parameters.
2010-12-07 19:12:57 +01:00
Matthias Clasen
38321eacbf
GtkStyleContext migration guide tweaks
...
Move the guide into the 2-to-3 guide, since it is something
you have to do when porting from 2 to 3. Also add an example
for handling of temporary state changes and some more text
about color handling.
2010-12-07 12:59:17 -05:00
Matthias Clasen
5ac194c2d7
Some doc additions
2010-12-07 09:55:30 -05:00
Tristan Van Berkom
fc5cabba90
Added minimum size parameter to GtkWidgetClass->adjust_size_allocation.
...
This allows us to add a check before executing
->get_preferred_height_for_width() to ensure we always
request for at least the minimum required size (and lets
us remove the warning in gtkcontainer.c telling implementors
to do this check manually from thier container implementations).
2010-12-07 23:47:40 +09:00
Cosimo Cecchi
503be10148
label: plug a memory leak
2010-12-07 10:13:32 +01:00
Cosimo Cecchi
6f67f5281f
app-chooser-widget: plug a memory leak
2010-12-07 10:08:47 +01:00
Tristan Van Berkom
5fef00de2c
Adding gtk_tree_view_column_new_with_area to gtk.symbols and gtk3-sections.txt.
2010-12-07 17:04:04 +09:00
Tristan Van Berkom
1b33698384
Revert "Temporary fix to make separator rows request enough space for the expander size."
...
This reverts commit 515af9ce70 .
2010-12-07 14:09:26 +09:00
Tristan Van Berkom
515af9ce70
Temporary fix to make separator rows request enough space for the expander size.
...
This fix is incorrect, treeviews dont rely on the expander size for drawing
separator rows (added XXX comment in line), need to fix this somewhere else
2010-12-07 13:52:31 +09:00
Tristan Van Berkom
97e060b094
Fixed my mistake in validate_row (), now the height of treeviews in GtkEntryCompletion is correct again.
2010-12-07 13:52:18 +09:00
Matthias Clasen
509e0423e1
Bump version
2010-12-06 20:37:30 -05:00
Matthias Clasen
fae1e74812
More !srcdir fixes for the stylecontext test
2010-12-06 19:05:18 -05:00
Matthias Clasen
26f6b48ccb
Update for the removal of gtk_decorated_window_ apis
2010-12-06 17:44:12 -05:00
Matthias Clasen
fe008de12c
Fix POTFILES for recent changes
2010-12-06 14:35:13 -05:00
Matthias Clasen
f2ab9e497d
Prepare the stylecontext test to run out-of-srcdir
...
This is necessary to make distcheck work.
2010-12-06 14:13:07 -05:00
Matthias Clasen
ad80cb6279
Allow + in identifiers
...
This is necessary since we treat paths as identifiers in
@import rules, and it is common to have a + in there (at least
when distchecking gtk+ ...)
2010-12-06 14:13:07 -05:00
Benjamin Otte
9b042e39ec
gdk: Add section docs for GdkRGBA
2010-12-06 18:57:11 +01:00
Benjamin Otte
fc711434bc
gtk: Remove old DirectFB code for drawing window decorations
...
I'm not sure it'd even compile.
2010-12-06 18:57:11 +01:00
Benjamin Otte
8f8aeb7dfe
gdk: Remove GdkWindowObject typedef
...
It's unused by now.
2010-12-06 18:57:11 +01:00
Kjartan Maraas
48e92c6939
Updated Norwegian bokmål translation
2010-12-06 18:14:03 +01:00
Colin Walters
65e3c09139
introspection: Fix (out) for gdk_screen_get_monitor_geometry
...
Scanner doesn't detect this case correctly because it's a typedef;
work around it here by explicitly specifying that it's caller
allocates. See bug 636393 for the scanner issue.
2010-12-06 11:42:47 -05:00
Colin Walters
66f0f55b62
configure: Drop AC_PREREQ back down to 2.62
...
Commit 39f5740763 bumped the
autoconf version to 2.64 with no explicit rationale. It looks
to me like a copy-and-paste error. Reverting back to 2.62 (the
previous version). 2.63 at least (RHEL6) works here.
2010-12-06 11:27:57 -05:00
Matthias Clasen
96139cbb00
Update NEWS for 2.91.6
2010-12-06 10:56:03 -05:00
Matthias Clasen
48dba326c2
Disable theme engines for now
...
They need to be ported to GtkThemingEngine.
2010-12-06 10:19:00 -05:00
Murray Cumming
d23fb64d97
Fix a typo to fix the build.
2010-12-06 16:01:55 +01:00
Matthias Clasen
5f75ffc974
Add gtk_widget_path_get_type to the headers
...
Bug 636591
2010-12-06 09:50:01 -05:00
Kristian Rietveld
fd6e57687d
Port Quartz backend to latest rendering-cleanup changes
2010-12-06 14:15:47 +01:00
Matthias Clasen
3b753aa05e
Fix Makefile syntax
2010-12-06 07:26:00 -05:00
Tristan Van Berkom
55bbe4a3a5
Adding gtk_tree_view_column_new_with_area().
...
Creates a treeviewcolumn using a specific GtkCellArea.
This patch also makes GtkEntryCompletion use the new api
instead of g_object_new().
2010-12-06 19:04:51 +09:00
Tristan Van Berkom
f08f1f92aa
Fixed some nit-picking bugs in GtkCellArea
...
- Dont try fetching a cell renderer for an event when the event
coordinate is outside the cell area allocation (can happen
on the y axis, not all events are button events).
- Dont remove focus-line-width (inner area) an extra time from
GtkCellArea->event
- Dont remove focus-line-width from the cell area at all for the
editable widget... use the whole area including the focus line
(compared with git master behaviour and now it looks right, check
the multiline editable string in testtreeedit).
2010-12-06 17:27:03 +09:00
Tristan Van Berkom
0d0ec85877
Fixed GtkTreeViewColumn to reset the context when _gtk_tree_view_column_cell_set_dirty is called.
...
This fixes autosize columns... result can be viewable by checking
tests/testtreeview and setting the second column to autosize and then
expanding/colapsing some rows.
2010-12-06 17:03:53 +09:00
Tristan Van Berkom
bf1aa2ad87
Changed GtkTreeViewColumn->requested_width to ->padding
...
Now we bookkeep the treeview assigned padding asides from the
requested width stored in the GtkCellAreaContext, this removes
the need for bookkeeping the deepest expanded depth in gtktreeview.c
At allocation time, just remove the padding from the allocated width
of the column and feed the rest to the underlying cell area.
2010-12-06 16:31:07 +09:00
Tristan Van Berkom
a090d62339
Added expand controls to testtreeedit (now you can play with align & expand effects in cells there).
2010-12-06 16:30:18 +09:00
Tristan Van Berkom
9366a345b4
Fix GtkCellAreaBox allocate_cells_manually to handle undersized areas.
2010-12-06 16:29:40 +09:00
Tristan Van Berkom
c6572265cb
Fixed gtk-doc statement in GtkCellArea header
2010-12-06 16:29:13 +09:00
Matthias Clasen
f1fafca6ca
Make invalid stylesheets fail to parse again
...
The recent improvements to error reporting caused gtk_css_provider_load...
to always return TRUE and leave the error unset. Error messages were instead
dumped out with g_message, which is not helpful.
This commit changes things back to the way they were before:
If a GError is passed in, parsing will fail at the first error, reporting
it in the given GError. If no GError is passed in, we keep going and
just issue the warning messages. This fixes the parser tests.
2010-12-06 00:47:13 -05:00
Matthias Clasen
94c9eb72ce
Don't use g_warning when loading an engine fails
...
This causes the tests to abort if clearlooks can't be found.
2010-12-06 00:44:01 -05:00
Tristan Van Berkom
2588165bfb
Added gtk_cell_area_foreach_alloc() to further simplify GtkCellArea subclasses
...
gtk_cell_area_foreach_alloc() itterates over an allocated list of cells
and calls a callback with the cell's allocation until the callback returns
TRUE.
- Removed vfunc get_cell_allocation() and implemented
gtk_cell_area_get_cell_allocation() using foreach_alloc()
- Added gtk_cell_area_get_cell_at_position() using foreach_alloc()
- Removed GtkCellAreaBox ->event() implementation and implemented
mouse "click" cell activation in GtkCellArea class directly using
gtk_cell_area_get_cell_at_position().
2010-12-06 14:11:28 +09:00
Tristan Van Berkom
4b065f5389
Changed gtk_cell_area_forall to gtk_cell_area_foreach since thats more widely used semantics.
...
Also gave a boolean return value to the callback to allow breaking out of the loop.
2010-12-06 12:41:38 +09:00
Benjamin Otte
d378470e87
appchooser: Remove bogus function declaration
2010-12-06 01:30:19 +01:00
Benjamin Otte
6d6ee9a26a
style: Remove unused code
2010-12-06 01:02:52 +01:00
Benjamin Otte
e4c9d1a321
gdk: Constify argument to gdk_rgba_copy()
2010-12-06 01:02:52 +01:00
Benjamin Otte
d55073fde6
gdk: Remove depth argument from GdkWindowImpl->get_geometry()
2010-12-06 01:02:52 +01:00
Benjamin Otte
645d0ac403
API: gdk: Remove depth argument from gdk_window_get_geometry()
...
We don't want to expose depth anymore. If you need it, query the visual.
2010-12-06 01:02:52 +01:00
Benjamin Otte
84fd9b166c
gdk: Remove nonexisting function from internal header
2010-12-06 01:02:19 +01:00
Paolo Borelli
b36cb87df9
Use the new style context API in GtkButton
...
Mostly replaces gtk_widget_style_get with gtk_style_context_get_style
2010-12-05 23:12:32 +01:00
Paolo Borelli
4a7e746bbc
Use the new style context API in GtkLabel.
2010-12-05 22:07:30 +01:00
Paolo Borelli
561346bd40
Remove unused function modify_color_property
2010-12-05 22:07:30 +01:00
Carlos Garnacho
4cca7554b8
GtkStyleContext: warn on meaningless coords in gtk_render_* calls
2010-12-05 20:19:55 +01:00
Carlos Garnacho
5361490db8
Bug 636511 - New style override functions do not work on textview
...
Emit ::style-set on overrider style changes, this is necessary
in the mean time so widgets not listening yet to ::style-updated
get the style changes.
2010-12-05 20:19:55 +01:00
Jorge González
059aa89cbd
Updated Spanish translation
2010-12-05 18:33:31 +01:00
Kristian Rietveld
d28cbd6e6d
Bring back _gtk_tree_view_column_get_cell_at_pos
...
The function has been re-implemented around GtkCellArea. This commits
also brings back the invocation of this function in
gtk_tree_view_button_press(). I shouldn't have removed this.
2010-12-05 18:18:36 +01:00
Matthias Clasen
d5df33c75f
Fix abi check after recent merges
2010-12-05 12:18:30 -05:00
Kristian Rietveld
2a6550176c
Replace FIRST_PIXEL macros with something that's more clear
2010-12-05 18:04:07 +01:00
Kristian Rietveld
7fe950a745
Clean up and clarify row height calculations
2010-12-05 17:56:30 +01:00
Kristian Rietveld
924359c31d
Clean up _gtk_tree_view_column_cell_event
2010-12-05 17:12:37 +01:00
Kristian Rietveld
6c73647727
Remove the need for _gtk_tree_view_column_get_focus_area
2010-12-05 17:10:21 +01:00
Kristian Rietveld
64ddd3f40f
Clarify start_pos parameter gtk_tree_view_column_cell_get_position
...
By renaming it to x_offset.
2010-12-05 17:04:52 +01:00
Kristian Rietveld
77d972e436
Remove private accessor for focus column
2010-12-05 15:20:17 +01:00
Kristian Rietveld
0a1982aff3
Move _gtk_tree_view_column_cell_focus to gtktreeview.c
2010-12-05 15:18:13 +01:00
Kristian Rietveld
131783005e
Use structure bitfield instead of GtkTreeViewFlags
2010-12-05 15:12:53 +01:00
Fran Diéguez
4701aeb3bc
Updated Galician translations
2010-12-05 14:57:08 +01:00
Kristian Rietveld
73f99eda1d
Turn TREE_VIEW_DRAW_EXPANDERS into an inline function
2010-12-05 14:47:51 +01:00
Kristian Rietveld
ebba08a842
Remove unused TREE_VIEW_COLUMN_REQUESTED_WIDTH macro
2010-12-05 14:42:40 +01:00
Kristian Rietveld
43de55d7a9
Turn TREE_VIEW_HEADER_HEIGHT into an inline function
2010-12-05 14:42:08 +01:00
Tristan Van Berkom
364fe807f4
Added g_getenv("RTL") to test rtl layouting.
2010-12-05 22:15:31 +09:00
Tristan Van Berkom
3ca2ec5d2d
Fixed conflicts from rebasing GtkTreeViewColumn changes from treeview-refactor.
2010-12-05 22:15:19 +09:00
Tristan Van Berkom
847581b67c
Adding testverticalcells.c.
...
This test displays a GtkTreeViewColumn rendering a vertically
oriented GtkCellArea along side a horizontally oriented column
in the same treeview.
2010-12-05 22:15:03 +09:00
Tristan Van Berkom
78979b2954
Removing hack and fixing gtk_tree_view_column_cell_get_size().
...
Now consult gtk_cell_area_context_get_preferred_height().
It can be that height-for-widths requested here were too large
when multiple cells are in play because of the alignments stored
in the context... removing the temporary focus-line-width hack.
2010-12-05 22:14:52 +09:00
Tristan Van Berkom
1b28d87253
Added GtkTreeViewColumn:cell-area construct-only property.
...
Allow feeding treeviewcolumn a custom cell-area (or not a custom one,
but allow sharing the cell-area with say, the combo-box area).
This patch also:
- Fixes signal connections to the area (now they do eventually get
disconnected at dispose time, they are handled regardless if a
treeview is set but execute safely, at least there is only one
connection/disconnection).
- Fixes refcounting on the cell_area (GtkCellArea is GInitiallyUnowned).
- Adds a constructor() in order to build the cell-area if one has
not been provided by the caller before hand at g_object_new()
construct time.
2010-12-05 22:14:40 +09:00
Tristan Van Berkom
0baee408f2
Fixed GtkTreeViewColumn allocation to only subtract the depth padding/indentation from the expander column.
2010-12-05 22:14:27 +09:00
Tristan Van Berkom
779125976c
Changed GtkTreeView to bookkeep the deepest expanded depth instead of recalculating it at column allocation time.
2010-12-05 22:14:11 +09:00
Tristan Van Berkom
b54c004c6b
Allocate proper inner cell area to the GtkTreeViewColumn.
...
This is a premature patch, it traverses the tree's expanded
rows and fetches the deepest depth every time we allocate a
column. The deepest depth should rather be cached and pushed
when a row expands, then recalculated when the deepest expanded
row collapses.
2010-12-05 22:13:58 +09:00
Tristan Van Berkom
81e1d02de3
Created _gtk_tree_view_column_request_width().
...
Removed gtk_tree_view_get_real_requested_width_from_column() from
gtktreeview.c in favor of this function in the treeviewcolumn domain
(since this function goes and checks treeviewcolumn internals, settings
and derives the real requested width, seems logical this should be done
by the treeviewcolumn instead).
2010-12-05 22:12:16 +09:00
Tristan Van Berkom
7b36405a94
Use gtk_tree_view_get_real_requested_width_from_column() all around
...
GtkTreeView duplicated the contents of this function word-for-word
inside gtk_tree_view_update_size().
2010-12-05 22:12:04 +09:00
Tristan Van Berkom
cf8299f098
Changed _gtk_tree_view_column_set_width for _gtk_tree_view_column_allocate
...
Now the GtkTreeViewColumn takes care of move/resizing its window and
allocating its button (except for the special case of current drag_column
where the column doesnt actually get reallocated).
2010-12-05 22:11:50 +09:00
Tristan Van Berkom
4038cd76b3
Removed GtkTreeViewPrivate from gtktreeprivate.h and added a few more accessors.
...
This actually much simplifies interaction with GtkTreeSelection
(at least reduces code size where dealing width the treeview anchor path).
2010-12-05 22:11:37 +09:00
Tristan Van Berkom
4b5c80dc0f
Removed the private sharing of internal treeview macros from gtktreeprivate.h
...
Added them directly to gtktreeview.c.
2010-12-05 22:11:21 +09:00
Tristan Van Berkom
9f4f22faf1
Removed all variables from GtkTreeViewColumn and created GtkTreeViewColumnPrivate
...
Some details:
- button_request was not needed, consult the minimum request of the button
- gtk_tree_view_column_get_button() needed to be public as people can set
tooltips on the button (and libgail accesses the button).
2010-12-05 22:11:08 +09:00
Kristian Rietveld
137f16c4c5
Do not bother starting a draw call if bar_size <= 0
2010-12-05 13:57:04 +01:00
Yaron Shahrabani
86c8ce1cc0
Updated Hebrew translation
2010-12-05 14:14:03 +02:00
Paolo Borelli
e0efd067e4
Avoid memory corruption in the color_properties hashtable.
2010-12-05 12:30:28 +01:00
Tristan Van Berkom
f24c21f1f0
Added proper handling of right to left layouting of cells to GtkCellAreaBox.
2010-12-05 15:24:19 +09:00
Tristan Van Berkom
c6e1463d1e
Added different icon at the end of testtreeedit to see if RTL is actually working.
2010-12-05 15:24:05 +09:00
Tristan Van Berkom
7b61cd8257
Merge branch 'master' into treeview-refactor
2010-12-05 13:14:39 +09:00
Javier Jardón
d351b40a0b
Add internal accessor for GtkEntry->is_cell_renderer
...
This fixes commit fb3429e507
2010-12-04 22:06:02 -05:00
Matthias Clasen
5fdc140dd8
Fix a segfault in gdk_window_beep
...
Not a good idea to cast an instance to a class...
2010-12-04 17:25:40 -05:00
Matthias Clasen
afcd50d607
Try again to fix the gdk symbol list
...
Grr, gdk_window_class_class_get_type should have been
gdk_window_window_class_get_type.
2010-12-04 16:32:02 -05:00
Matthias Clasen
144c3fd478
Fix gdk_rgba_parse call
2010-12-04 16:16:29 -05:00
Carlos Garnacho
37719380ae
Fix call to gtk_widget_override_cursor()
2010-12-04 18:26:34 +01:00
Carlos Garnacho
3d28adf317
Make gtk_widget_override_cursor() take GdkRGBAs
...
Even though the style properties have the GdkColor type, the other
gtk_widget_override_* API takes RGBA colors, so it is consistent
now.
2010-12-04 17:49:28 +01:00
Tristan Van Berkom
0d786985a3
Merge branch 'master' into treeview-refactor
...
Conflicts:
gtk/gtkmarshalers.list
tests/Makefile.am
2010-12-05 00:36:37 +09:00
Paolo Borelli
cd76b057e9
Annotate gdk_window_get_geometry, get_position and get_origin
2010-12-04 15:47:50 +01:00
Carlos Garnacho
1c87180d5d
GtkThemingEngine: Fix parameters for gtk_theming_engine_lookup_color()
2010-12-04 15:39:58 +01:00
Carlos Garnacho
8c02445bc5
testgtk: Fix gdk_rgba_parse() arguments.
2010-12-04 15:39:58 +01:00
Carlos Garnacho
0cba2dc726
GtkCssProvider: Improve error handling and reporting.
...
Nicer error reports are provided, and a GError can be spread from
anywhere in parsing, so over time more precise and meaningful
messages can be produced.
2010-12-04 15:39:57 +01:00
Carlos Garnacho
06d8676354
GtkThemingEngine: Be a bit more robust against missing essential properties.
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
07eeae1582
GtkWidget: add gtk_widget_render_icon_pixbuf()
...
and deprecate gtk_widget_render_icon()
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
905ba2f198
GtkIconFactory: add gtk_icon_set_render_icon_pixbuf()
...
and deprecate gtk_icon_set_render_icon().
2010-12-04 15:39:57 +01:00
Carlos Garcia Campos
b75972d0ce
GtkStyle: set style context state before calling gtk_render_icon_pixbuf()
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
ca59b042df
GtkStyle: make context property readable
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
15d997d58a
GtkWidget: queue a resize when style context changed
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
f261d56da3
GtkStyleContext: invalidate icon caches when resetting widgets
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
3b3307b946
Use gtk_style_context_reset_widgets() instead of gtk_rc_reset_styles()
2010-12-04 15:39:56 +01:00
Carlos Garcia Campos
a8c8c23c77
GtkSettings: add _gtk_settings_get_screen() private method
2010-12-04 15:39:55 +01:00
Carlos Garnacho
47add6c7c3
Block direct #including in style headers
2010-12-04 15:39:55 +01:00
Carlos Garnacho
bacb7906f2
Add helper API for getting colors/borders in GtkStyleContext/GtkThemingEngine
2010-12-04 15:39:55 +01:00
Carlos Garnacho
3e8d138ed6
GtkStyleProperties: Refactor color/gradient resolution
2010-12-04 15:39:55 +01:00
Carlos Garnacho
9aca6c8071
GtkWidget: Add gtk_widget_override_cursor().
...
This function replaces gtk_widget_modify_cursor().
2010-12-04 15:39:54 +01:00
Carlos Garnacho
b0c87faa50
Add GtkModifierStyle as a private object
...
This object backs up gtk_widget_override_* operations. This object
is not meant to be public because any intention to modify widgets'
style in a themeable way should involve using regions/classes, so
they're modifiable through CSS. As such, the API is really
short-scoped.
2010-12-04 15:39:54 +01:00
Carlos Garnacho
0d2d60cf8a
Gtk9Slice: Fix stretch rendering.
...
"Nearest" filter used when scaling the image, so image borders
aren't blurred.
2010-12-04 15:39:54 +01:00
Carlos Garnacho
afeac82fbd
GtkThemingEngine: Add gtk_theming_engine_lookup_color()
...
It could also be handy for theme engines...
2010-12-04 15:39:53 +01:00
Carlos Garnacho
066f35bf28
Parse user CSS from $XDG_CONFIG_HOME/gtk-3.0/gtk.css
2010-12-04 15:39:53 +01:00
Carlos Garnacho
9bdb7e6945
GtkThemingEngine: Remove unused variables
2010-12-04 15:39:53 +01:00
Carlos Garnacho
901af8fec8
Fix compiler warnings.
2010-12-04 15:39:52 +01:00
Carlos Garnacho
cf0bd12e6c
GtkStyleProperties: Turn border-width into a GtkBorder property.
...
All current users of this CSS property have been updated to deal
with a GtkBorder.
Also a 0 border width has been set in the default CSS to ensure
GtkStyleContext and GtkThemingEngine always provide a non-NULL
pointer for this property.
2010-12-04 15:39:52 +01:00
Carlos Garnacho
f7e7201f11
Fix docs typo.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
daab45565a
GtkCssProvider: Fix up state matching when looking up style properties.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
297fa7a3dd
GtkStyleProvider: Add GtkStateFlags parameter to get_style_property().
...
Widget style properties can now have different values depending on the
current state.
2010-12-04 15:39:51 +01:00
Carlos Garnacho
2ca905db5e
GtkStyleContext: Handle directionality when picking next provider.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
46de2130d3
GtkWidget: unset NULL properties when overriding style.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
64b7d9e5c1
GtkThemingEngine: Render gradients in tabs.
...
Background will be actually rotated in tabs, so the "bottom" side coincides
with the junction point, this makes gradients work as expected in rotated tabs.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
32c2b13969
GtkThemingEngine: split background rendering to a private function.
2010-12-04 15:39:50 +01:00
Carlos Garnacho
4c1a2426d4
GtkStyle: Commit a few typos when translating states.
2010-12-04 15:39:49 +01:00
Carlos Garcia Campos
4aaf193602
docs: gtk_style_context_get_screen() always returns a valid screen
2010-12-04 15:39:49 +01:00
Carlos Garcia Campos
7a5a622998
Check screen really changed before notifying it and invalidating the context
2010-12-04 15:39:49 +01:00
Carlos Garcia Campos
7abf76fbc1
Initialize screen of GtkStyleContext to default screen
2010-12-04 15:39:48 +01:00
Matthias Clasen
587c08a151
Add explanation to failing test
2010-12-04 15:39:48 +01:00
Matthias Clasen
12d6b5889d
Add a testcase a problem with style property handling
2010-12-04 15:39:48 +01:00
Matthias Clasen
f86e8f7512
Allow images for background-image
...
In addition to -gtk-gradient(...), allow url(path), and create
a pattern from the image. Still to do: allow stretch/repeat options.
2010-12-04 15:39:48 +01:00
Matthias Clasen
ca143b1303
Add list of classes and regions to the docs
2010-12-04 15:39:48 +01:00
Matthias Clasen
897c370f5f
Avoid compiler warnings
2010-12-04 15:39:47 +01:00
Matthias Clasen
5adfe6029d
Don't add class "scrollbar" for every trough
...
Turns out "trough" as a detail string is used in a variety
of widgets, not all of which are scrollbars.
2010-12-04 15:39:47 +01:00
Matthias Clasen
2578f4f4c3
Trivial doc fixes
2010-12-04 15:39:47 +01:00
Matthias Clasen
e598f17871
Some header cleanups
...
Move GtkGradient to their own files, also move GtkBorder out of
gtkstyle.h, so that header can be all deprecated.
2010-12-04 15:39:47 +01:00
Matthias Clasen
1915a19503
Add deprecation notes
2010-12-04 15:39:46 +01:00
Matthias Clasen
f8a874abb1
Initial attempt at deprecating GtkStyle api
...
This will probably need some finetuning.
2010-12-04 15:39:46 +01:00
Matthias Clasen
e374f7e4b5
Forgotten files
2010-12-04 15:39:46 +01:00
Matthias Clasen
757837b611
Make tests compile without using GtkStyle api
2010-12-04 15:39:46 +01:00
Matthias Clasen
9b1118a35d
Port gtk3-demo to GtkStyleContext
2010-12-04 15:39:46 +01:00
Matthias Clasen
bbca96044e
Fix memory handling when dealing with colors
2010-12-04 15:39:45 +01:00
Matthias Clasen
ab0a8fc17f
Improve the migration guide
...
Add some hints about dealing with colors.
2010-12-04 15:39:45 +01:00
Matthias Clasen
53c2114356
Deprecate gtk_icon_info_load_symbolic_for_style
...
We might end removing it altogether since it is a bit silly to have
Since: 3.0
Deprecated: 3.0
2010-12-04 15:39:45 +01:00
Carlos Garnacho
e9ef162d4c
GtkSpinner: Use style context for rendering.
...
Animation is now handled by the theming layer, a looping animation
has been defined in the default CSS to handle active spinners.
2010-12-04 15:39:45 +01:00
Carlos Garnacho
3d956b10ee
GtkStyleContext: handle prelight transitions
2010-12-04 15:39:44 +01:00
Carlos Garnacho
c90bee16ba
GtkThemingEngine: Handle prelight transitions in render_layout()
2010-12-04 15:39:44 +01:00
Carlos Garnacho
e696c24f08
GtkThemingEngine: Also render topright and bottomleft corners if junction sides say so
2010-12-04 15:39:44 +01:00
Carlos Garnacho
11004ef61d
Initialize all looping, active state transitions on map()
...
This allows widgets to gtk_widget_set_state_flags() before mapping
and have animations started anyway when this happens.
2010-12-04 15:39:44 +01:00
Carlos Garnacho
4027dceaa9
Add #define for the "spinner" style class
2010-12-04 15:39:44 +01:00
Carlos Garnacho
62e9188ff3
GtkStyleContext: store layout extents for animation purposes.
2010-12-04 15:39:43 +01:00
Carlos Garnacho
818aca5aee
GtkStyleContext: Only allow looping transitions for states being turned on.
2010-12-04 15:39:43 +01:00
Carlos Garnacho
ad6da0cdb8
GtkStyleContext: Stop animations if the window is gone.
2010-12-04 15:39:43 +01:00
Carlos Garnacho
cc18d65986
GtkThemingEngine: render square corner if the gap is too close on render_frame_gap()
2010-12-04 15:39:43 +01:00
Matthias Clasen
f0eed4a5b1
Use gtk_icon_info_load_symbolic_for_context
...
gtk_icon_info_load_symbolic_for_style is going to be deprecated.
2010-12-04 15:39:43 +01:00
Matthias Clasen
f90881271f
Add a GtkStyleContext-variant of symbolic icon loading
2010-12-04 15:39:42 +01:00
Matthias Clasen
091c882996
Some tweaks for the GtkStyleContext migration guide
2010-12-04 15:39:42 +01:00
Matthias Clasen
0f98b15090
Add illustration to gtk_render_handle docs
2010-12-04 15:39:42 +01:00
Matthias Clasen
3ddee2561b
Small doc addition
2010-12-04 15:39:42 +01:00
Matthias Clasen
d1f1af202b
Add a frame-gap illustration
2010-12-04 15:39:42 +01:00
Matthias Clasen
1391a61bc5
Improve frame-gap drawing
...
Instead of overdrawing the gap with bg-color, clip it away.
2010-12-04 15:39:42 +01:00
Matthias Clasen
54eadfcefd
Fix another parameter mismatch
2010-12-04 15:39:42 +01:00
Matthias Clasen
4e3dabf582
Fix up symbol list for docs
2010-12-04 15:39:41 +01:00
Matthias Clasen
b51c0f826a
fix parameter name mismatch
2010-12-04 15:39:41 +01:00
Matthias Clasen
8abe9f300c
Forgotten file
2010-12-04 15:39:41 +01:00
Carlos Garnacho
9c0ef02ea5
GtkButton: Remove unneeded gtk_style_context_notify_state_change() calls
...
There is now code to handle this for one-item widgets (such as GtkButton)
in gtk_widget_set_state_flags()
2010-12-04 15:39:41 +01:00
Carlos Garnacho
2f0b5d8a9d
GtkCheckButton: Look active when the pointer button is pressed and hovering
2010-12-04 15:39:41 +01:00
Carlos Garnacho
037c982824
GtkStyleContext: Handle empty areas when coalescing invalidation regions.
2010-12-04 15:39:41 +01:00
Carlos Garnacho
2fb9687f55
GtkToggleButton: Make it able to be prelight and active at the same time.
2010-12-04 15:39:40 +01:00
Carlos Garnacho
1d5a6b687e
GtkComboBox: Use style context for rendering
2010-12-04 15:39:40 +01:00
Carlos Garnacho
c6b2e47931
Let gtk_widget_get_path() correct early calls during init().
2010-12-04 15:39:40 +01:00
Carlos Garnacho
ebd8463007
GtkCssProvider: Handle unfocused label selections in default CSS.
2010-12-04 15:39:40 +01:00
Carlos Garnacho
90dd2eb42b
GtkLabel: Use style context for rendering.
2010-12-04 15:39:40 +01:00
Carlos Garnacho
0fce9342ef
GtkThemingEngine: Draw 3D-like effects on square frames with lines.
2010-12-04 15:39:40 +01:00
Carlos Garnacho
3138cc7677
GtkThemingEngine: Render rounded frames with light/shadow connections at 45°
2010-12-04 15:39:39 +01:00
Carlos Garnacho
95ae1a0aa6
GtkThemingEngine: don't overshoot when rendering frames.
2010-12-04 15:39:39 +01:00
Carlos Garnacho
e47c8e2490
GtkStyle: Return the default icon set if no context is attached.
2010-12-04 15:39:39 +01:00
Carlos Garnacho
5d496aa7f3
GtkStyle: Do not warn if attach count == 0
...
This is going go happen more and more often now, as realize handlers start
removing the gtk_widget_style_attach() calls.
2010-12-04 15:39:39 +01:00
Carlos Garnacho
6bf04fbd94
GtkCssProvider: Add a default border color for insensitive elements.
2010-12-04 15:39:39 +01:00
Matthias Clasen
e57e0e978d
Illustrate extension rendering
2010-12-04 15:39:39 +01:00
Matthias Clasen
8589c5c65e
Add slider illustration
2010-12-04 15:39:38 +01:00
Matthias Clasen
8d951476bf
Add an activity example
...
This doesn't work, since it trips up on num-steps not being
available for GtkEventBox.
2010-12-04 15:39:38 +01:00
Matthias Clasen
7e96a51953
Add examples for frame rendering
2010-12-04 15:39:38 +01:00
Matthias Clasen
4c04d944e8
Atempt to fix stretched 9slice rendering
2010-12-04 15:39:38 +01:00
Matthias Clasen
30fe448750
Fix handling of junctions in frame drawing code
2010-12-04 15:39:38 +01:00
Matthias Clasen
e522381183
Add a background example to the docs
2010-12-04 15:39:38 +01:00
Matthias Clasen
d532c0e5c2
Test some wilder names for classes, etc
2010-12-04 15:39:37 +01:00
Matthias Clasen
391e445d11
Allow digits in selectors and values, where appropriate
2010-12-04 15:39:37 +01:00
Matthias Clasen
31368f16cb
Add the style example code used to generate illustrations
2010-12-04 15:39:37 +01:00
Matthias Clasen
f13f315312
Some more images for gtk_render docs
2010-12-04 15:39:37 +01:00
Matthias Clasen
d4c70f214d
Declare transition and border-image properties to be writeonly
...
We don't make the types of their values public, so getting their
values is useless and will leak.
2010-12-04 15:39:37 +01:00
Matthias Clasen
a5e10e9b26
Improve some gtk_render_ docs
...
With pictures !!
2010-12-04 15:39:36 +01:00
Matthias Clasen
d7a0fe5bf1
Document predefined style provider priorites
...
Also, rename GTK_STYLE_PROVIDER_PRIORITY_DEFAULT to _THEME and
use it for themes.
2010-12-04 15:39:35 +01:00
Matthias Clasen
a260059c7f
Fix doc formatting
2010-12-04 15:39:35 +01:00
Matthias Clasen
d9b0da5b83
Fix resize grip drawing
...
There was some confusion about junctions...
2010-12-04 15:39:34 +01:00
Matthias Clasen
be0ed14cce
Fix GtkRadioButton drawing
2010-12-04 15:39:34 +01:00
Matthias Clasen
fc10599ac8
Make unfocused selections visible in entries
2010-12-04 15:39:33 +01:00
Matthias Clasen
21a193ad02
Make expanders prelight
2010-12-04 15:39:33 +01:00
Matthias Clasen
8b6112b6e0
Rewrite GtkInfoBar color handling to bypass GtkStyle
...
This avoids a segfault that was happening due to the recursion
detection not working anymore with the old way of doing things.
2010-12-04 15:39:33 +01:00
Carlos Garnacho
d63615d9cc
GtkCssProvider: Render inconsistent toggle buttons differently.
2010-12-04 15:39:32 +01:00
Carlos Garnacho
9b2f878b06
GtkCssProvider: do not use selected fg/bg in sliders or spinbutton buttons.
2010-12-04 15:39:32 +01:00
Carlos Garnacho
bcf1ee4825
GtkCssProvider: Use 1px border width for spinbutton buttons.
2010-12-04 15:39:32 +01:00
Carlos Garnacho
74b032b816
GtkCssProvider: Render radio and check boxes framess in menus.
2010-12-04 15:39:32 +01:00
Carlos Garnacho
b33d48a802
GtkCssProvider: use selected fg/bg for selected menu items in CSS.
2010-12-04 15:39:31 +01:00
Carlos Garnacho
85aa672ff7
GtkCssProvider: Draw frame around menubars and toolbars in default CSS.
2010-12-04 15:39:31 +01:00
Matthias Clasen
fea567bb9f
More documentation reshuffling
2010-12-04 15:39:31 +01:00
Matthias Clasen
ace967a042
Tweak wording
2010-12-04 15:39:30 +01:00
Matthias Clasen
3a7f79e814
Document border images better
2010-12-04 15:39:30 +01:00
Matthias Clasen
953ac51fb8
Make url parsing work for slices
...
The border-image parsing code relies on parse_path_str to return
a meaningful end_ptr in case of success, too.
2010-12-04 15:39:29 +01:00
Matthias Clasen
28e549082c
Fix Gtk9Slice creation
2010-12-04 15:39:29 +01:00
Matthias Clasen
69254c552a
Allow / in values
...
Otherwise, using url(path) on the right-hand side of properties
is not going to work.
2010-12-04 15:39:28 +01:00
Matthias Clasen
7d6fb7b7e7
Add some images to the docs
...
Add graphs for the transition functions and gradient examples.
2010-12-04 15:39:28 +01:00
Matthias Clasen
b2d338d370
GtkWidgetPath documentation tweaks
2010-12-04 15:39:27 +01:00
Matthias Clasen
077270142f
GtkStyleContext documentation tweaks
2010-12-04 15:39:27 +01:00
Matthias Clasen
bcf3de095f
Document various style-related enums
2010-12-04 15:39:26 +01:00
Carlos Garnacho
11480c57f0
GtkStyleContext: Use correct type for animation duration.
2010-12-04 15:39:26 +01:00
Carlos Garnacho
32ccac94e0
GtkAnimationDescription: parse "loop" correctly.
...
This sscanf parsing needs to go...
2010-12-04 15:39:25 +01:00
Carlos Garnacho
0c1cfd8a34
GtkStyle: handle scales when translating the detail string.
2010-12-04 15:39:24 +01:00
Carlos Garnacho
71f187a84f
GtkCssProvider: Handle progressbars.
2010-12-04 15:39:24 +01:00
Carlos Garnacho
f3445a2430
GtkCssProvider: Do not have border-color the same than active bg-color.
2010-12-04 15:39:24 +01:00
Carlos Garnacho
171157b0e4
GtkMenu: Use GtkStyleContext for rendering.
2010-12-04 15:39:23 +01:00
Carlos Garnacho
6fff76568c
GtkMenuBar: Use GtkStyleContext for rendering.
2010-12-04 15:39:23 +01:00
Carlos Garnacho
0df9c70200
Use gtk_render_activity() when rendering progressbars through GtkStyle
2010-12-04 15:39:23 +01:00
Carlos Garnacho
ee37847952
GtkCssProvider: Use default value when handling "none".
...
This way the default value has a way to override other values in previous
GtkStyleProviders when merged.
2010-12-04 15:39:22 +01:00
Matthias Clasen
5e26fb75a0
Add GtkStyleProperties to the docs
2010-12-04 15:39:22 +01:00
Matthias Clasen
e2f91f7201
Documentation improvements
...
This patch adds more detail to the explanation of CSS, and also
adds documentation about which files are read.
We also make :focus an alternative to :focused (since :focus is
a standard CSS pseudo-class).
2010-12-04 15:39:22 +01:00
Matthias Clasen
42dd5b2e15
Adapt testgtk.css to parser changes
2010-12-04 15:39:21 +01:00
Carlos Garnacho
9567ed01e8
GtkCssProvider: Base prelight foreground on bg color.
...
Entries are also handled, so base/text colors are used.
2010-12-04 15:39:21 +01:00
Carlos Garnacho
de94d04fea
GtkCssProvider: Make prelight a bit less light in default CSS.
2010-12-04 15:39:21 +01:00
Carlos Garnacho
bc3c9ce619
GtkStyle: Fix typo.
...
GtkStateType was being used in gtk_style_context_get(), instead of
GtkStateFlags, oops.
2010-12-04 15:39:20 +01:00
Carlos Garnacho
ead23cd0ce
GtkThemingEngine: Make render_option() depend on border-style and border-color.
2010-12-04 15:39:20 +01:00
Carlos Garnacho
be4a616e6e
GtkRadioButton: Use GtkStyleContext for rendering.
2010-12-04 15:39:20 +01:00
Carlos Garnacho
756e20f58c
Make "button" class depend on mode for GtkToggleButtons
2010-12-04 15:39:20 +01:00
Carlos Garnacho
84d586043e
Fix checkbuttons theming in CSS so it's more similar to 2.x
2010-12-04 15:39:19 +01:00
Carlos Garnacho
7478a77b04
GtkCheckButton: Use GtkStyleContext for rendering.
2010-12-04 15:39:19 +01:00
Carlos Garnacho
04783534ed
GtkThemingEngine: Make render_check() depend on border-style and border-color.
2010-12-04 15:39:19 +01:00
Carlos Garnacho
f62583d30c
GtkContainer: Also copy permanent container's classes on get_path_for_child()
...
This makes inheritance work for the simplest cases when style is defined
for classes.
2010-12-04 15:39:18 +01:00
Carlos Garnacho
6d1cf76822
GtkWidgetPath: Make iter API deal with gints.
...
now gtk_widget_path_iter_* takes gints instead of guints, and also accept
numbers == -1 or > path_length for the path head.
2010-12-04 15:39:18 +01:00
Carlos Garnacho
5f88997297
GtkWidgetPath: Make gtk_widget_path_prepend_type() return nothing.
...
It's senseless to always return 0
2010-12-04 15:39:18 +01:00
Carlos Garnacho
198bb314c7
GtkStyleContext: preserve state on save().
2010-12-04 15:39:18 +01:00
Carlos Garnacho
1bfb169ce6
GtkThemingEngine: Documents that engines must only use this API.
...
It was a bit unclear in the documentation, even if it was from the
API POV.
2010-12-04 15:39:18 +01:00
Matthias Clasen
c5b38121ec
Add tests for matching
...
These tests try to decipher how specificity works for selectors.
2010-12-04 15:39:17 +01:00
Matthias Clasen
e1819055b9
Copy GtkWidgetPaths correctly
...
The code was forgetting to copy class information.
2010-12-04 15:39:17 +01:00
Matthias Clasen
49fed3d7d7
More css parsing tests
2010-12-04 15:39:17 +01:00
Matthias Clasen
4135fbf4d6
A little closer to css
...
Declarations are ;-separated, but there is no ; required after
the last declaration. We harmlessly accept either.
2010-12-04 15:39:17 +01:00
Javier Jardón
295cf25d6b
docs: Refer to gtk_paint_*() instead draw_*() vfuncs in the migration guide
2010-12-04 15:39:17 +01:00
Matthias Clasen
933440e1f1
Some css parsing tests
2010-12-04 15:39:16 +01:00
Matthias Clasen
0396550ece
Work harder at parsing import statements
...
Also, turn g_warning() into g_message() for now, so that tests
don't abort. Eventually, this needs to all go into GErrors.
2010-12-04 15:39:16 +01:00
Matthias Clasen
11cd19987b
Move import syntax closer to css
...
Css allows @import url ("foo.css") or @import "foo.css" or
@import url ('foo.css') but not @import url(foo.css) or @immport foo.css.
2010-12-04 15:39:16 +01:00
Matthias Clasen
f92c352f96
Some error reporting
...
When we take a GError argument, better use it.
2010-12-04 15:39:16 +01:00
Matthias Clasen
5f13b65065
Fix prototype of gtk_css_style_provider_load_from_data
...
GError arguments must be **.
2010-12-04 15:39:16 +01:00
Matthias Clasen
72f9a7940f
Add an outline around menu popups
2010-12-04 15:39:15 +01:00
Matthias Clasen
c8e5d3b07b
Transform the 'menu' detail string to the 'popup' class
2010-12-04 15:39:15 +01:00
Matthias Clasen
016a656923
Fix prelighting of inconsistent radio and check buttons
2010-12-04 15:39:15 +01:00
Matthias Clasen
b6776dc116
Fix the resize handle drawing
2010-12-04 15:39:15 +01:00
Matthias Clasen
627b33265b
Handle float and uint style properties
...
These were giving errors in testgtk.
2010-12-04 15:39:15 +01:00
Matthias Clasen
f0eafe60f8
Remove debug output
2010-12-04 15:39:14 +01:00
Matthias Clasen
4e778d7371
Fix a typo
2010-12-04 15:39:14 +01:00
Matthias Clasen
512bc44dbc
Make frames visible by default
2010-12-04 15:39:14 +01:00
Matthias Clasen
9ca66efe2c
Fix a memory leak
2010-12-04 15:39:14 +01:00
Matthias Clasen
69f91fed94
Translate detail strings for radio buttons
2010-12-04 15:39:14 +01:00
Carlos Garnacho
25b6945971
GtkThemingEngine: remove unused code
2010-12-04 15:39:13 +01:00
Carlos Garnacho
892fe46324
Fix compile warnings
2010-12-04 15:39:13 +01:00
Carlos Garnacho
c9dc09e980
GtkStyleProvider: Pass a GParamSpec in get_style_property().
...
This is so we can know the owner type of the property, and matching
with the stored strings in GtkCssProvider is direct.
2010-12-04 15:39:13 +01:00
Carlos Garnacho
b613f1f1f2
GtkStyleContext: Also use screen providers for widget style properties.
2010-12-04 15:39:13 +01:00
Carlos Garnacho
13e186bbca
Handle menuitem detail string better.
2010-12-04 15:39:13 +01:00
Carlos Garnacho
9a2d1e5433
GtkSettings: install theme CSS with a lower priority.
...
This is so GtkSettings has an opportunity to modify theme colors.
2010-12-04 15:39:12 +01:00
Carlos Garnacho
0057aa5445
Add corners to GtkJunctionSides, defining sides as 2 corners.
2010-12-04 15:39:12 +01:00
Matthias Clasen
eb8a1c4e33
Don't whine about expander-style missing
...
This check was lost in the GtkStyleContext porting.
2010-12-04 15:39:12 +01:00
Carlos Garnacho
43cff6f6f7
GtkCssProvider: theme notebooks.
2010-12-04 15:39:11 +01:00
Carlos Garnacho
6099399fa7
GtkThemingEngine: Use border settings on render_extension/frame_gap()
2010-12-04 15:39:11 +01:00
Carlos Garnacho
60a2e90df7
GtkStyle: transform tabs' detail string.
2010-12-04 15:39:10 +01:00
Carlos Garnacho
534942d994
GtkThemingEngine: Do not use possible reserved word.
2010-12-04 15:39:10 +01:00
Carlos Garnacho
5bf9f8c410
testgtk: Try to locate the right file.
2010-12-04 15:39:09 +01:00
Carlos Garnacho
d4aade109f
Fix gtk_css_provider_get_named() docs.
2010-12-04 15:39:09 +01:00
Carlos Garnacho
c37797a10c
GtkSettings: Keep right refcount of the theme provider.
2010-12-04 15:39:08 +01:00
Carlos Garnacho
611cb007b4
GtkSettings: Ensure the theme CSS is loaded on startup.
2010-12-04 15:39:08 +01:00
Carlos Garnacho
8243c3c025
GtkCssProvider: Fix typo in gtk_css_provider_get_named()
...
provider was being redefined in the inner block, so the loaded
provider didn't get to be returned.
2010-12-04 15:39:08 +01:00
Carlos Garnacho
a185954d7c
Hardcode 3.0 version for style files and paths.
...
It's about time to start using the right paths.
2010-12-04 15:39:07 +01:00
Carlos Garnacho
37f9f491d2
Make testgtk load CSS for custom styling.
2010-12-04 15:39:07 +01:00
Carlos Garnacho
9ffaf1122d
GtkCssProvider: Accept '%' in value strings.
2010-12-04 15:39:06 +01:00
Carlos Garnacho
64e798e190
Do not initialize RC subsystem.
2010-12-04 15:39:06 +01:00
Carlos Garnacho
62ee0956e3
GtkStyleProperties: Use GParamSpec for properties registration.
2010-12-04 15:39:06 +01:00
Carlos Garnacho
1c847d9c21
GtkCssProvider: Docs fix for -gtk-gradient() syntax.
2010-12-04 15:39:06 +01:00
Carlos Garnacho
bcf81a0e23
Handle looping transition animations.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
1123159dc9
GtkCssProvider: Handle better wrong enum/flag values.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
9bb96e271d
GtkCssProviders: Parse GTypeFlags based values.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
5cb6fed0bd
GtkCssProvider: Add initial unit parsing logic
...
At the moment only "px" are supported, and such is the default
value when no unit is specified.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
65abcb722e
GtkCssProvider: Handle the "none" keyword to unset properties.
2010-12-04 15:39:05 +01:00
Carlos Garnacho
c57fdf4c75
GtkStyleContext: Resolve symbolic colors for widget style properties.
2010-12-04 15:39:04 +01:00
Carlos Garnacho
d865cf4b38
GtkStyleProperties: Handle GdkColor types.
...
Just in case.
2010-12-04 15:39:04 +01:00
Carlos Garnacho
8b9b9c22e7
GtkCssProvider: Also parse GdkColor values
...
This is necessary for widget style properties to work.
2010-12-04 15:39:04 +01:00
Carlos Garnacho
815e3499ae
GtkCssProvider: Add lighter/darker color functions.
...
These behave the same than in GtkStyle.
2010-12-04 15:39:04 +01:00
Carlos Garnacho
cb2f9a86e5
GtkCssProvider: allow color names from rgb.txt when parsing colors.
2010-12-04 15:39:03 +01:00
Carlos Garnacho
44b1a6c852
GtkStyleContext: Add #define's for the default properties.
2010-12-04 15:39:03 +01:00
Carlos Garnacho
1be9d6ebc9
Document missing GtkStateType values.
...
The documentation has also moved to gtkenums.h.
2010-12-04 15:39:02 +01:00
Carlos Garnacho
1487b34679
Remove GTK_STATE_LAST.
...
It didn't turn out to be that useful, nor widely used.
2010-12-04 15:38:56 +01:00
Carlos Garnacho
1fb6cc8d77
Use the correct cairo-gobject.h include path.
2010-12-04 15:38:56 +01:00
Carlos Garnacho
2fe0a51ed0
Add gtk_render_icon_pixbuf() function to docs.
2010-12-04 15:38:56 +01:00
Carlos Garnacho
04fbb74388
Add GtkStyleContext migration docs.
2010-12-04 15:38:56 +01:00
Carlos Garnacho
fb97bd1f0a
GtkThemingEngine: Document missing class vmethods.
2010-12-04 15:38:55 +01:00
Carlos Garnacho
4689b63739
GtkButton: Use GtkStyleContext for rendering.
2010-12-04 15:38:55 +01:00
Carlos Garnacho
dc2df7d178
GtkWindow: Use GtkStyleContext for rendering.
2010-12-04 15:38:55 +01:00
Carlos Garnacho
3f12fc2bd8
GtkStyleContext: Add gtk_style_context_set_background().
...
This function replaces gtk_style_set_background().
2010-12-04 15:38:54 +01:00
Carlos Garnacho
d9664021cc
GtkWidget: Update pango context from style context's font description.
2010-12-04 15:38:49 +01:00
Carlos Garnacho
1cfeeadc70
GtkWidget: Ensure the style context always has an screen.
...
Things like font settings depend on the screen, and widgets
like GtkTextView trigger queries on widgets without screen
when the parent window is being destroyed.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
48f239c1f2
Add CSS class defines for toolbars and docks.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
99879d4a5f
GtkStyle: translate a few more detail strings.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
3848a58b17
GtkCssProvider: theme progressbars in default CSS.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
0431239ead
GtkThemingEngine: ensure 1px wide frames aren't painted between pixels.
2010-12-04 15:38:48 +01:00
Carlos Garnacho
f66275fa6a
GtkThemingEngine: Use square cap for solid frames.
2010-12-04 15:38:47 +01:00
Carlos Garnacho
3d1403e684
GtkThemingEngine: ensure that background isn't rendered past the frame boundaries.
2010-12-04 15:38:47 +01:00
Carlos Garnacho
d6ba3b7d89
GtkThemingEngine: Get rid of obsolete code for tooltips.
2010-12-04 15:38:47 +01:00
Carlos Garnacho
661a13fe4d
GtkStyleContext: Fix check for GtkIconSize in render_icon_pixbuf().
2010-12-04 15:38:46 +01:00
Carlos Garnacho
405f2f306a
GtkStyleContext: restore widget state too in restore().
2010-12-04 15:38:45 +01:00
Carlos Garnacho
8b267a58da
GtkCssProvider: Do not miss the last class name in concatenated classes.
...
Selectors like .menu.check or .entry.progressbar were being misparsed
and attributed to .menu and .entry.
2010-12-04 15:38:45 +01:00
Carlos Garnacho
d321713704
GtkStyle: transform window background detail string.
2010-12-04 15:38:44 +01:00
Carlos Garnacho
1ec47b20db
GtkStyle: Transform menubar detail string.
2010-12-04 15:38:43 +01:00
Carlos Garnacho
46b8cc8686
GtkStyle: Transform menu accelerators string
2010-12-04 15:38:42 +01:00
Carlos Garnacho
4c898a3c7e
GtkStyleContext: Define some more class names.
2010-12-04 15:38:42 +01:00
Carlos Garnacho
912ad78cc5
Remove GTK_REGION_DEFAULT
...
GTK_STYLE_CLASS_DEFAULT is preferred to match a default area, as
it doesn't make sense to have a per-region default.
2010-12-04 15:38:41 +01:00
Carlos Garnacho
271145645c
GtkThemingEngine: Use GtkSymbolicColor for shades.
2010-12-04 15:38:41 +01:00
Carlos Garnacho
df95a74a27
GtkThemingEngine: Do not require a default value when registering properties
...
NULL should work for 0 for int/double/enum/... types and NULL for
pointer types, this should be sane enough to not require a default
value.
2010-12-04 15:38:40 +01:00
Carlos Garnacho
765f653df6
GtkSymbolicColor: Only require styleproperties when resolving named colors.
...
It is not necessary for resolving colors based on literals,
so be a bit less strict here.
2010-12-04 15:38:40 +01:00
Carlos Garnacho
525963d74d
GtkSymbolicColor: convert to/from hls when shading.
...
This makes shading equal to GtkStyle's.
2010-12-04 15:38:39 +01:00
Carlos Garnacho
3ea9568c20
GtkSymbolicColor: Do not clamp shade/mix/alpha factors.
2010-12-04 15:38:39 +01:00
Carlos Garnacho
a23863211b
GtkStyleContext: Add gtk_render_icon_pixbuf()
...
This function is similar to gtk_style_render_icon(), which is now
implemented on top of this one.
2010-12-04 15:38:38 +01:00
Carlos Garnacho
06c8857191
GtkThemingEngine: Fix compile warning.
2010-12-04 15:38:38 +01:00
Carlos Garnacho
605fa03248
Fix compile warning
2010-12-04 15:38:37 +01:00
Carlos Garnacho
f2c6c82ff0
GtkStatusIcon: update to use gtk_widget_override_symbolic_color().
2010-12-04 15:38:37 +01:00
Carlos Garnacho
f383e6b0a2
GtkWidget: Add new set of methods to override style information.
...
gtk_widget_override_*() deprecates gtk_widget_modify_*(). There are
only functions to modify fg/bg/font/symbolic color, If anything more
fancy/complex is needed. There is the possibility of adding a
GtkStyleProvider yourself.
2010-12-04 15:38:36 +01:00
Carlos Garnacho
920637abef
GtkStyle: Listen to context changes.
...
This way the GtkStyle is updated to the latest style info, actually
emitting ::style-set must be performed after invalidating the style
context.
2010-12-04 15:38:36 +01:00
Carlos Garnacho
33e95ae65f
GtkStyleContext: Add the start of a default set of class names/regions.
2010-12-04 15:38:36 +01:00
Carlos Garnacho
071ccaf8a7
Theming documentation fixes
...
2 functions were not in -sections.txt, and GtkStyleSet was renamed
to GtkStyleProperties.
2010-12-04 15:38:35 +01:00
Carlos Garnacho
80e74d79bb
GtkStyleContext: Fix merging of local and global providers.
2010-12-04 15:38:35 +01:00
Carlos Garnacho
fb8de847df
GtkStyleProperties: Merge font descriptions on merge()
...
This is necessary so incomplete font descriptions are ensured to have
family and size.
2010-12-04 15:38:34 +01:00
Carlos Garnacho
af20ba6103
GtkSymbolicColor: Take const GdkRGBA in new_literal().
2010-12-04 15:38:34 +01:00
Carlos Garnacho
2efa2947be
Document gtk_render_* functions.
2010-12-04 15:38:34 +01:00
Carlos Garnacho
ebf5bd390f
Add gtk_render_activity()
...
This method will render progress bars and spinners, these should
handle active and inconsistent states' animation progress in order
to perform animations.
2010-12-04 15:38:33 +01:00
Carlos Garnacho
af1f8701dc
GtkThemingEngine: draw resize grip through render_handle().
...
GtkJunctionSides is used instead of GdkWindowEdge, GtkStyle
implementation has changed to use GtkStyleContext's.
2010-12-04 15:38:33 +01:00
Carlos Garnacho
227294a6aa
GtkWidget: Trigger state change transitions on state flags change.
...
This makes state transitions automatic for non-complex widgets, complex
widgets such as GtkTreeView still need to notify state updates themselves.
2010-12-04 15:38:33 +01:00
Carlos Garnacho
c0d08ff627
GtkToolItemGroup: Set widget state as state flags.
2010-12-04 15:38:33 +01:00
Carlos Garnacho
1c2f27fe11
GtkToggleButton: Set widget state as state flags.
2010-12-04 15:38:32 +01:00
Carlos Garnacho
80d1ce9f67
GtkRadioButton: Set widget state as state flags.
2010-12-04 15:38:32 +01:00
Carlos Garnacho
517eaa55e5
GtkNotebook: Set widget state as state flags.
2010-12-04 15:38:32 +01:00
Carlos Garnacho
5f0f21aad3
GtkMenuItem: Set widget state as state flags.
2010-12-04 15:38:31 +01:00
Carlos Garnacho
9ae2e29f44
GtkMenu: Set widget state as state flags.
2010-12-04 15:38:31 +01:00
Carlos Garnacho
399499225e
GtkExpander: Set widget state as state flags.
2010-12-04 15:38:31 +01:00
Carlos Garnacho
f7f5ac1b09
GtkEntry: Set widget state as state flags.
2010-12-04 15:38:31 +01:00
Carlos Garnacho
0e25b19515
GtkComboBox: Set widget state as state flags.
2010-12-04 15:38:30 +01:00
Carlos Garnacho
401b655307
GtkButton: Set widget state as state flags.
2010-12-04 15:38:30 +01:00
Carlos Garnacho
cd98204619
Implement widget states as a set of flags
...
gtk_widget_(set|unset|get)_state_flags() has been added, using GtkStateFlags
to represent the widget state. GtkStateType API has been implemented on top
of the new one.
2010-12-04 15:38:30 +01:00
Carlos Garnacho
34b91a74e5
Document missing value in GtkStateFlags
2010-12-04 15:38:30 +01:00
Carlos Garnacho
4acc20abc1
s/GtkStyleSet/GtkStyleProperties/
...
The former name had oddities such as gtk_style_set_set() and such,
so the new name is nicer in that regard and not much longer.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
1bdd761c3f
GtkWidget: Ensure name changes involve a style context update.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
8ea649e0a0
Rely only on fg/bg colors.
...
"foreground-color" has been renamed to just "color" as in regular CSS,
and the "text-color" and "base-color" properties have been removed. The
default CSS has been changed to have widgets cope with this change.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
7de2cf3286
GtkCssProvider: Fix parsing of concatenated classes.
...
Now selectors such as:
GtkWidget#name.class1.class2
#name.class1.class2
.class1.class2
are parsed correctly, being meaningful for a widget defining several
classes.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
a8a1d8cd01
GtkThemingEngine: Use ::name when registering style props.
2010-12-04 15:38:29 +01:00
Carlos Garnacho
90de318ab3
GtkThemingEngine: Add ::name construct only property
...
This property is to be set by theming engines, the name set will be favored
over the object type name when registering custom properties, making possible
something like:
-Clearlooks-border: blah;
2010-12-04 15:38:28 +01:00
Carlos Garnacho
c88e3bfc0c
GtkStyleSet: Prevent from possible underflow.
2010-12-04 15:38:28 +01:00
Carlos Garnacho
51b742044a
GtkCssProvider: Parse alpha() symbolic colors.
...
The "alpha" symbolic color modifies a passed color's alpha by a factor,
the syntax would accept things like:
background-color: alpha (@bg_color, 0.8);
foreground-color: alpha (shade (@fg_color, 0.8), 0.5);
2010-12-04 15:38:28 +01:00
Carlos Garnacho
ca44965f33
GtkSymbolicColor: Add gtk_symbolic_color_new_alpha()
...
This function modifies the alpha channel of a color, multiplying
it by a factor.
2010-12-04 15:38:28 +01:00
Carlos Garnacho
0bd81ef710
GtkCssProvider: Make default style depend more on custom colors.
2010-12-04 15:38:28 +01:00
Carlos Garnacho
5310ad8070
GtkStyle: Get to style GtkCellRendererText text.
2010-12-04 15:38:27 +01:00
Carlos Garnacho
6356f01b06
GtkThemingEngine: render 0-radius frames with 3D-like 45° corner effect
2010-12-04 15:38:27 +01:00
Carlos Garnacho
43f7fb8354
GtkThemingEngine: Clear the background for .background class
2010-12-04 15:38:27 +01:00
Carlos Garnacho
d565e15951
GtkStyle: translate active state in paint_flat_box().
2010-12-04 15:38:27 +01:00
Carlos Garnacho
087249db07
GtkCssProvider: Update end string when misparsing symbolic colors.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
7d441000f7
GtkCssProvider: Allow '\t' when parsing values.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
4ca3b5071e
GtkSymbolicColor: Initialize alpha when resolving shades.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
975f133d63
GtkThemingEngine: Improve rendering of inset/outset borders.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
39ce35dd75
GtkCssProvider: Improve default CSS.
2010-12-04 15:38:26 +01:00
Carlos Garnacho
6bd0865601
GtkStyle: Handle scrollbar buttons.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
490d59f045
Do not shade alpha values.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
3bfc59b9bb
GtkStyle: Match "trough" and "slider" detail strings.
...
This is so scrollbars can be themed throught the "trough" and
"slider" classes.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
4e02218f52
Use GdkRGBA all around in GtkStyleContext.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
3a455ed8f9
GtkStyleSet: Register the border-style and border-color properties
...
This is also implemented in the theming engine, although the default
CSS should be using it in order to theme buttons, troughs, sliders
and such.
2010-12-04 15:38:25 +01:00
Carlos Garnacho
8d4ffedbf1
GtkStyleContext: '_' prefix the structs, gtk-doc prefers this.
2010-12-04 15:38:24 +01:00
Carlos Garnacho
770f050d8c
GtkWidgetPath: turn into a boxed type.
2010-12-04 15:38:24 +01:00
Carlos Garnacho
c9a3da5025
GtkStyleContext: s/set/add/ and s/unset/remove/ for classes/regions.
...
Several classes and regions may be set to GtkStyleContext, so rename
the functions to be more intuitive.
2010-12-04 15:38:24 +01:00
Carlos Garnacho
161d5175e1
GtkThemingEngine: Honor border-radius in render_background().
2010-12-04 15:38:24 +01:00
Carlos Garnacho
f7dd423862
GtkStyleSet: Register the "border-radius" property
2010-12-04 15:38:24 +01:00
Carlos Garnacho
32b50f2948
GtkStyleContext: Update function declaration in header.
2010-12-04 15:38:23 +01:00
Carlos Garnacho
0a0a1a20a7
GtkCssProvider: Make it able to parse enums.
2010-12-04 15:38:23 +01:00
Carlos Garnacho
d03caa4683
GtkCssProvider: Run through the widget path in the correct order.
...
Comparing a selector with a widget path was being done backwards since
the change to use GtkContainer::get_path_for_child().
2010-12-04 15:38:23 +01:00
Matthias Clasen
35a41bd801
Make loading of theming engines from modules work
2010-12-04 15:38:23 +01:00
Carlos Garnacho
d0f681e898
GtkStyleContext: Add gtk_style_context_new().
2010-12-04 15:38:22 +01:00
Carlos Garnacho
c2f47063c3
GtkCssProvider: Parse default/sorted region flags.
2010-12-04 15:38:22 +01:00
Carlos Garnacho
4a9890e3ab
GtkCssProvider: Parse missing widget states.
2010-12-04 15:38:22 +01:00
Carlos Garnacho
68bfb94f69
Change semantics of the methods to check whether an animation is running.
...
It actually messed up with the state being actually set, and having a
transition animation running for it. Now this dichotomy is removed, and
gtk_style_context_state_is_running() only checks whether an animation is
running, leaving state checking to flags & GTK_STATE_FLAG_*.
2010-12-04 15:38:22 +01:00
Carlos Garnacho
96c16e246c
GtkStyleContext: Actually store region ID when starting an animation.
2010-12-04 15:38:21 +01:00
Carlos Garnacho
a79626b7fb
Add theming docs
...
Both API and file format is documented, there's still missing
a migration doc though.
2010-12-04 15:38:21 +01:00
Carlos Garnacho
59b0fa8133
Remove GtkOrientation parameter from gtk_render_handle().
...
The case for paned can be guessed out from the height and width,
for handlebox the orientation parameter doesn't make much sense,
and this way it could also be used for resize grips.
2010-12-04 15:38:21 +01:00
Benjamin Berg
e8c103f652
Use cairo gobject support instead of a new boxed type.
2010-12-04 15:38:20 +01:00
Carlos Garnacho
88a3c2daae
GtkGradient: Handle symbolic gradients.
...
The css parser has been modified to parse correctly radial gradients:
background-image: -gtk-gradient (radial,
center center, 0,
center center, 0.8,
from (#000 ), to (#fff));
The theming engine has been modified to correctly animate these,
as well as transitions between different pattern types.
2010-12-04 15:38:20 +01:00
Carlos Garnacho
2e8b1cd358
Gtk9Slice: Fix stretch case.
2010-12-04 15:38:20 +01:00
Carlos Garnacho
a65d0d00c0
GtkWidget: Store GtkStyleContext in private struct.
2010-12-04 15:38:19 +01:00
Carlos Garnacho
5bbab9872d
GtkStyleContext: Cache style properties accross class/region changes.
2010-12-04 15:38:19 +01:00
Carlos Garnacho
88b78953b6
GtkContainer: Add method to get the GtkWidgetPath for a child.
...
This is now used throughout in order to have the full path for a given widget,
including intermediate named regions, the default implementation just returns
the GtkContainer's path copy, no intermediate regions between.
2010-12-04 15:38:19 +01:00
Carlos Garnacho
c575733eda
GtkStyleContext: Fix animation framework to work with the new draw() semantics.
...
Invalidation region coalescing now happens recursively as draw() runs, and the
widget's x/y as now drawing coordinates are 0,0 based.
2010-12-04 15:38:18 +01:00
Carlos Garnacho
f9788eb173
GtkCssProvider: Add support for @import rules
...
Now other CSS files can be referenced from the currently parsed file:
@import url (other-file.css);
@import url (/some/file.css);
2010-12-04 15:38:18 +01:00
Carlos Garnacho
0ef48c0bde
GtkCssProvider: no need for resetting the parser prior to parsing data
...
This is done anyway on each iteration to parse_rule() in parse_stylesheet()
2010-12-04 15:38:18 +01:00
Carlos Garnacho
8e96e4e41f
GtkCssProvider: improve file paths parser.
...
It will now return a full path, and check about the file being sane.
2010-12-04 15:38:18 +01:00
Carlos Garnacho
1772b00e85
GtkCssProvider: Transform custom colors to a @define-color rule.
...
Given there are other rules such as @import (which will be supported),
keep a sane namespace here, so for (re)defining a color name, in the CSS
file it will look like:
@define-color color-name #fff;
@define-color other-color mix (@color-name, #f00, 0.4);
2010-12-04 15:38:18 +01:00
Carlos Garnacho
a1a90396b7
GtkThemingEngine: Do not return a const GtkThemingEngine on load()
2010-12-04 15:38:18 +01:00
Carlos Garnacho
5c2cf1e934
Plug some leaks.
2010-12-04 15:38:18 +01:00
Carlos Garnacho
5c8a818671
Fix typo in the Gtk9Slice parser.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
5b11d14a49
GtkButton: Notify on prelight state change.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
908babd8ae
GtkThemingEngine: Implement animations between gradients/colors.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
d8187b34bb
GtkSymbolicColor: Use G_DEFINE_BOXED_TYPE
2010-12-04 15:38:17 +01:00
Carlos Garnacho
7583f31609
GtkStyleContext: Store animation region for a bunch of paint operations.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
fecc079087
GtkStyleContext: Invalidate whole window if no invalidation region is obtained.
2010-12-04 15:38:17 +01:00
Carlos Garnacho
20051e02eb
GtkCssProvider: use mapped file to read CSS files.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
80cf01c271
GtkCssProvider: unset filename on load_from_data()
2010-12-04 15:38:16 +01:00
Carlos Garnacho
96e5a02148
GtkThemingEngine: Use border-image to render borders if an image is available.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
7ee564c7cd
GtkCssProvider: Add a parser for 9slice typed properties.
...
The value it parses is similar to the border-image CSS3 property,
so strings like this will be accepted:
border-image: url (foo.png) 4 3 4 3 repeat repeat;
the image path is relative to the parsed CSS file dirname if no
absolute path is provided.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
f363e31a09
Register the border-image property
...
It will contain a 9-sliced image, so it can be rendered as rectangles with any
dimensions.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
089f375cdb
Add Gtk9Slice
...
This is a private boxed object to contain information about a border image
in order to render it in a size independent way.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
cc68e62e24
GtkSettings: Add a new provider for the theme CSS file.
2010-12-04 15:38:16 +01:00
Carlos Garnacho
ac73a8f7a8
GtkStyleContext: Add gtk_style_context_reset_widgets()
...
This function recalculates the style for all widgets on a screen.
2010-12-04 15:38:15 +01:00
Carlos Garnacho
679ff63d5c
GtkCssProvider: Add gtk_css_provider_get_named()
...
This functions loads a CSS file from a installed theme.
2010-12-04 15:38:15 +01:00
Carlos Garnacho
a07fe2c0e6
Add generic providers per-screen.
...
The providers are added as soon as gtk GtkSettings object for the screen
is created.
2010-12-04 15:38:15 +01:00
Carlos Garnacho
1e66155aec
GtkStyleContext: invalidate context when setting the screen
2010-12-04 15:38:14 +01:00
Carlos Garnacho
8dfa0e03ea
GtkWidget: Set style context's screen before the widget_path.
...
This is so the style context has all necessary information before
triggering a style change on setting the path.
2010-12-04 15:38:14 +01:00
Carlos Garnacho
49ac732a18
GtkStyleContext: Add gtk_style_context_[add|remove]_provider_for_screen()
...
These functions allow per-screen style providers. also, the changed signal
will be emitted whenever a style context changes.
2010-12-04 15:38:14 +01:00
Carlos Garnacho
f239704094
GtkWidget: Add gtk_widget_reset_style().
...
This function is analogous to gtk_widget_reset_rc_styles(),
updates style recursively on a widget.
2010-12-04 15:38:13 +01:00
Carlos Garnacho
3c390c9c8e
GtkWidget: Add the style-updated signal
...
This signal is emitted whenever the widget's style changes.
2010-12-04 15:38:13 +01:00
Carlos Garnacho
77ccdfc94e
GtkStyle: Protect against padding being NULL
2010-12-04 15:38:13 +01:00
Carlos Garnacho
9f84e101bf
GtkStyleContext: Add gtk_style_context_invalidate().
...
This function will regenerate all styling information.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
756bbf526f
GtkStyleSet: Fix typo
2010-12-04 15:38:12 +01:00
Carlos Garnacho
58b6e538c9
GtkThemingEngine: use background-image in render_background()
2010-12-04 15:38:12 +01:00
Carlos Garnacho
2794e8d6dd
GtkStyleSet: Register a "background-image" property.
...
Ironically, it currently just handles gradients, the name is to conform
to current CSS gradient implementation trends.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
cf87923d1b
GtkStyleSet: Handle GtkGradients as a replacement for cairo_pattern_t
...
The former will handle GtkSymbolicColors, which will be resolved and
cached at query time.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
3fc5c87bcb
GtkCssProvider: Add a parser for gradients.
2010-12-04 15:38:12 +01:00
Carlos Garnacho
142a72637d
Add GtkGradient.
...
This type defines a gradient between 2 symbolic colors, with any number
of color stop between these. At the moment it has been put besides
GtkSymbolicColor, although should be completely private, it will likely
need extending in the future for radial gradients.
At some point, it maybe should also be used for images, so painting
both a gradient and an image is consistent.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
74de1839a4
GtkStyleSet: Set an empty default_value if none is provided.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
c908e263ac
GtkCssProvider: strip whitespaces in symbolic color values.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
f12d7409cc
Allow linefeeds in property values.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
02a30118c6
Add a boxed type for cairo_pattern_t.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
621a95f515
GtkSettings: implement GtkStyleProvider
2010-12-04 15:38:11 +01:00
Carlos Garnacho
58a51bca97
GtkStyle: Fill in x/ythickness and font_desc from the style context.
2010-12-04 15:38:11 +01:00
Carlos Garnacho
643abe3127
GtkStyleSet: Register "margin" property.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
585afafa39
Add basic parser for GtkBorder properties.
...
Different units aren't supported, it takes 1 to 4 integers representing
pixel distances.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
846f67d805
GtkStyle: Allow GTK_ARROW_NONE.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
7e7347d1a0
GtkNotebook: invert tab drawing order so region flags are set correctly.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
78a98decae
Get rid of GdkPangoRenderer code in GtkThemingEngine.
2010-12-04 15:38:10 +01:00
Carlos Garnacho
f058359182
Replace GdkRegion and GdkRectangle with their cairo counterparts.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
c9d626523d
Remove gtkalias from style context code.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
9dfba95f09
GtkCssProvider: Add gtk_css_provider_load_from_path()
2010-12-04 15:38:09 +01:00
Carlos Garnacho
0ce649e965
Plug a bunch of leaks.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
91904f6778
GtkButton: Notify on active state when (un)depressed
2010-12-04 15:38:09 +01:00
Carlos Garnacho
9b949479b3
GtkThemingEngine: Animate checkboxes activation.
2010-12-04 15:38:09 +01:00
Carlos Garnacho
7519ed278b
GtkThemingEngine: Add progress arg to gtk_theming_engine_is_state_set()
2010-12-04 15:38:09 +01:00
Carlos Garnacho
3c07e3d3df
GtkWidget: Update GtkStyleContext animation regions on allocation change.
2010-12-04 15:38:08 +01:00
Carlos Garnacho
61a0544b8b
GtkStyleContext: Add animation machinery.
...
Animation regions are confined through gtk_style_context_[push|pop]_animatable_region,
anything that's painted between these calls will be invalidated if an animation starts
for any of the regions in the stack.
gtk_style_context_notify_state_change() may be called from widgets to indicate a
change for a given GtkStateType, in that case an animation will be started if there
is an animation description for the widget/state.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
bbd0c5a2a2
GtkStyleContext: Declare gtk_style_context_list_classes() in header.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
52baa7d51e
GtkCssProvider: Parse properties of type GtkAnimationDescription.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
114f30b772
GtkStyleSet: Register the "transition" property.
2010-12-04 15:37:38 +01:00
Carlos Garnacho
ed840e73e4
Add GtkAnimationDescription as a private boxed object.
...
This struct will be used to represent an animation in GtkStyleSet. It
will only be used internally in GtkStyleContext in order to trigger
animations, engines shouldn't need this.
2010-12-04 15:37:37 +01:00
Carlos Garnacho
2e2c07b695
Add GtkTimeline as a private object.
...
This will only be used internally by GtkStyleContext in order
to animate state changes. When a proper animation framework is
introduced in GTK+, it may be ditched.
2010-12-04 15:37:37 +01:00
Carlos Garnacho
4781f94de2
Move all theming stack to use GtkStateFlags.
...
This support goes from the theming engines, which are able to retrieve
style for different combined states to the CSS provider, where several
state pseudo-classes may be specified, such as:
GtkButton:active:prelight {}
2010-12-04 15:37:37 +01:00
Carlos Garnacho
2c7c4d9a51
GtkStyleContext: Return insertion position if not found when matching classes/regions
2010-12-04 15:37:37 +01:00
Carlos Garnacho
11ac0cb3e1
GtkStyle: set the active flag depending on shadow_type in draw_box().
2010-12-04 15:37:37 +01:00
Carlos Garnacho
bccec3ef0c
GtkCssProvider: Use class for tooltips.
2010-12-04 15:37:36 +01:00
Carlos Garnacho
74697d91fe
GtkCssProvider: Parse and match class info.
2010-12-04 15:37:36 +01:00
Carlos Garnacho
27c91622f6
Set classes info in GtkWidgetPath.
2010-12-04 15:37:36 +01:00
Carlos Garnacho
2dabf20cfd
GtkStyleContext: Add gtk_style_context_list_classes().
2010-12-04 15:37:36 +01:00
Carlos Garnacho
8a1b6e8224
GtkWidgetPath: Add methods to include class info in paths.
2010-12-04 15:37:36 +01:00
Carlos Garnacho
a3637ec60d
s/child class/region/ everywhere.
...
"Child class" is an invented term anyway, and it conceptually defines
identifiable regions in widgets.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
198d75bea5
GtkStyleContext: Rename internal struct.
...
GtkStyleRegion has been renamed to GtkStyleInfo, as it doesn't really
have much to do with regions itself, the information it contains does.
This struct is used in save/restore.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
e04dfd4d6d
GtkThemingEngine: Add gtk_theming_engine_register_property().
...
This function may be used for custom property registration from
theming engines. The property names will have the
-${engine-type-name}-${prop-name} format, the parser has been
modified to allow properties with '-' as the first char.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
d9e3782391
GtkStyleSet: Fix compiler warning.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
355f0d69ab
GtkStyleSet: Allow custom parsers on registered properties.
2010-12-04 15:37:35 +01:00
Carlos Garnacho
99224c9eec
GtkCssProvider: Parse correctly widget types with a name.
...
There's now a distinction between:
GtkLabel#label-name: Label with name "label-name"
GtkWindow #label-name: Window containing a widget named "label-name"
2010-12-04 15:37:34 +01:00
Carlos Garnacho
56e4ffabea
Compare widget names as GQuarks in style matching.
2010-12-04 15:37:34 +01:00
Carlos Garnacho
09d8592b5b
GtkWidgetPath: Make API more consistent.
2010-12-04 15:37:34 +01:00
Carlos Garnacho
ad08330fae
Compare region names as quarks in style matching.
2010-12-04 15:37:34 +01:00
Carlos Garnacho
d47d3d0200
GtkCssProvider: Set child combinators in default CSS.
2010-12-04 15:37:34 +01:00
Carlos Garnacho
5f77ead9c6
GtkCssProvider: Parse and compare widget names.
2010-12-04 15:37:33 +01:00
Carlos Garnacho
52878c45b5
GtkCssProvider: Don't jump too eagerly to the next element when comparing selectors.
2010-12-04 15:37:33 +01:00
Carlos Garnacho
85dbc71921
GtkCssProvider: Immediately bail out if GType couldn't be resolved.
2010-12-04 15:37:33 +01:00
Carlos Garnacho
9ebbc7b5c5
GtkCssProvider: Small optimization.
2010-12-04 15:37:33 +01:00
Sven Herzberg
c001833ed1
GtkCssProvider: don't ignore custom attributes
...
* gtk/gtkcssprovider.c: don't ignore custom attribites (which can be
added by theme engines)
2010-12-04 15:37:33 +01:00
Sven Herzberg
27bc581dca
GtkWidgetPath: properly use const
...
* gtk/gtkwidgetpath.c,
* gtk/gtkwidgetpath.h: use const where possible
2010-12-04 15:37:32 +01:00
Carlos Garnacho
b6226cb7b9
GtkThemingEngine: Render correctly spinbutton buttons.
2010-12-04 15:37:32 +01:00
Carlos Garnacho
dd8da82d1e
GtkStyle: set junction details in spinbutton buttons.
2010-12-04 15:37:32 +01:00
Carlos Garnacho
8c117b1638
GtkThemingEngine: Add gtk_theming_engine_get_junction_sides().
2010-12-04 15:37:31 +01:00
Carlos Garnacho
9108739c9b
GtkStyleContext: Add gtk_style_context_[gs]et_junction_sides().
...
These functions will help widgets specify how does one element being painted
relate to other contiguous elements.
2010-12-04 15:37:31 +01:00
Carlos Garnacho
d9b42ce50f
Add GtkJunctionSides flags.
2010-12-04 15:37:30 +01:00
Carlos Garnacho
143c4b3b60
GtkStyleContext: Add gtk_style_context_lookup_color().
...
gtk_style_lookup_color() now uses this function internally.
2010-12-04 15:37:30 +01:00
Carlos Garnacho
b4a24d6457
GtkStyleSet: Register the "border" property.
2010-12-04 15:37:29 +01:00
Carlos Garnacho
78cc97f7b3
GtkThemingEngine: fix typo in function declaration.
2010-12-04 15:37:28 +01:00
Carlos Garnacho
fcf12ff9b9
GtkThemingEngine: Add gtk_theming_engine_get_direction().
2010-12-04 15:37:28 +01:00
Carlos Garnacho
978d97ea6f
GtkWidget: Set style context direction.
2010-12-04 15:37:27 +01:00
Carlos Garnacho
dc216ffb00
GtkStyleContext: Add gtk_style_context_[gs]et_direction().
2010-12-04 15:37:27 +01:00
Carlos Garnacho
e15dc89f89
GtkWidget: Add the default CSS provider to all style contexts.
2010-12-04 15:37:27 +01:00
Carlos Garnacho
85398fc05f
GtkCssProvider: Add gtk_css_provider_get_default().
...
This method returns a GtkCssProvider with the default style information
loaded.
2010-12-04 15:37:26 +01:00
Carlos Garnacho
bd6751230a
GtkStyle: Move gtk_render_* calls to default vmethod implementations.
2010-12-04 15:37:26 +01:00
Carlos Garnacho
9255e20bf8
GtkWidget: Create GtkStyle on top of GtkStyleContext.
2010-12-04 15:37:26 +01:00
Carlos Garnacho
6c549fecd3
GtkWidget: Construct style for partial widget hierarchies.
...
Some unparented widgets like to ask style details, so now the style is
constructed regardless of the parent being present or not, and then
reconstructed if the parent changes.
2010-12-04 15:37:25 +01:00
Carlos Garnacho
09d6c4ea52
GtkStyle: Optionally construct above a GtkStyleContext.
2010-12-04 15:37:25 +01:00
Carlos Garnacho
1e83e52b3d
GtkThemingEngine: Add code to render GtkFrame frame with gap.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
d858801ec3
GtkThemingEngine: Obey active/selected when rendering text.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
5510f24cc1
GtkThemingEngine: Rip out focus rendering from old code.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
eadaded374
GtkThemingEngine: Rip out expander rendering from old code.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
d22f393be3
GtkThemingEngine: Render frames and spinbutton boxes properly.
2010-12-04 15:37:24 +01:00
Carlos Garnacho
7482b636e6
GtkThemingEngine: Improve background rendering.
...
Now active and selected states are taken into account, and GtkSpinButton
buttons are special cased.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
911431c0b2
GtkThemingEngine: Improve pixel alignment in arrows.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
c18ee462e3
GtkThemingEngine: Add methods to retrieve widget style properties.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
0dc81b9a35
GtkStyleSet: Allow setting default value when registering properties.
...
This is now used for the "engine" keyword, where the default engine is used
if none is specified.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
c712480912
GtkStyleContext: Add varargs functions for getting widget style properties.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
5f2e8bc0d1
GtkStyleContext: Ensure style rebuilds after adding/removing classes.
2010-12-04 15:37:23 +01:00
Carlos Garnacho
7748b1d2de
GtkStyleContext: ensure class lookup return the correct insertion position if not found.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
0813a2283e
GtkCssProvider: Allow '_' in the middle of symbolic color names.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
227c500dce
GtkThemingEngine: Improve slider rendering.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
44373ec551
GtkThemingEngine: Cairo-ify frame rendering from GtkStyle.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
8771f46dae
GtkThemingEngine: Cairo-ify frame_gap rendering from GtkStyle.
2010-12-04 15:37:22 +01:00
Carlos Garnacho
7d2b51f147
GtkThemingEngine: Cairo-ify extension rendering from GtkStyle.
2010-12-04 15:37:21 +01:00
Carlos Garnacho
4772b67563
GtkThemingEngine: Make render_background use drawing primitives.
2010-12-04 15:37:21 +01:00
Carlos Garnacho
1b556aa4d1
GtkThemingEngine: Unify code to render lines.
2010-12-04 15:37:21 +01:00
Carlos Garnacho
75b059a3f2
GtkThemingEngine: Add cairo-ified rendering primitives.
...
Functions to add paths for lines, rectangle sides, and the gap side in notebooks
have been added.
2010-12-04 15:37:20 +01:00
Carlos Garnacho
5cdb3f0e90
GtkThemingEngine: Cairo-ify handle rendering from GtkStyle.
2010-12-04 15:37:20 +01:00
Carlos Garnacho
9261c2a9d7
GtkThemingEngine: Take option rendering from GtkStyle.
2010-12-04 15:37:20 +01:00
Carlos Garnacho
4e45e9099e
GtkThemingEngine: Take checkbox rendering from GtkStyle.
2010-12-04 15:37:19 +01:00
Carlos Garnacho
27f5257d49
GtkStyleContext: Don crash on empty class sets.
2010-12-04 15:37:19 +01:00
Carlos Garnacho
038bcdcdb6
GtkThemingEngine: Use GdkPangoRenderer when painting layouts.
2010-12-04 15:37:19 +01:00
Carlos Garnacho
475f0fc266
GtkStyleContext: Add gtk_style_context_save/restore().
...
This API will be used to have savepoints when adding and removing
style classes information.
2010-12-04 15:37:18 +01:00
Carlos Garnacho
4a465d279d
GtkThemingEngine: Add gtk_theming_engine_get_screen().
2010-12-04 15:37:18 +01:00
Carlos Garnacho
5db7197c27
GtkWidget: Set screen info in GtkStyleContext.
2010-12-04 15:37:18 +01:00
Carlos Garnacho
758c3e18cc
GtkStyleContext: Add gtk_style_context_[gs]et_screen()
2010-12-04 15:37:17 +01:00
Carlos Garnacho
41650933fd
GtkStyleContext: Add priv pointer to object struct.
2010-12-04 15:37:17 +01:00
Carlos Garnacho
10f6c04f33
GtkStyleSet: Add priv pointer to object struct.
2010-12-04 15:37:17 +01:00
Carlos Garnacho
875237187c
GtkCssProvider: Add priv pointer to object struct.
2010-12-04 15:37:17 +01:00
Carlos Garnacho
51a8f642da
Fix include.
2010-12-04 15:37:16 +01:00
Carlos Garnacho
a256171d34
GtkStyleContext: Add gtk_style_context_lookup_icon_set().
2010-12-04 15:37:16 +01:00
Carlos Garnacho
318e0f28ee
GtkStyleProvider: Add gtk_style_provider_get_icon_factory().
...
With this, style providers have a way to override default icon theme.
2010-12-04 15:37:16 +01:00
Carlos Garnacho
be5d4adf6b
GtkCssProvider: Allow symbolic colors when parsing style rules.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
1de8f75517
GtkCssProvider: Parse color mappings.
...
These are of the form:
@color-a: #fff;
@color-b: mix (@color-a, #000 , 0.5)
@color-c: shade (@color-b, 0.7)
In the stylesheet, arbitrary nesting of these commands is handled.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
4ed96df96a
GtkStyleSet: Optionally take GtkSymbolicColors.
...
gtk_style_set_set_property() now takes both GdkColor and GtkSymbolicColor
GValues, All accessors still return GdkColors, so any symbolic color will
be resolved and replaced in the styleset at that time.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
b8fb2d1a36
GtkSymbolicColor: Add method to resolve to a GdkColor.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
e2b8efcbec
GtkStyleSet: Add API to map symbolic colors.
2010-12-04 15:37:15 +01:00
Carlos Garnacho
7094213df9
Add GtkSymbolicColor.
...
This is a small boxed struct used to store symbolic colors so they
can be resolved at a later point.
2010-12-04 15:37:14 +01:00
Carlos Garnacho
d748ea983d
GtkWidgetPath: Add to gtkalias.
2010-12-04 15:37:14 +01:00
Carlos Garnacho
b50c88d170
GtkCssProvider: Plug memory leak.
2010-12-04 15:37:14 +01:00
Carlos Garnacho
2cd4ff4215
GtkCssProvider: Fix compile warning.
2010-12-04 15:37:14 +01:00
Carlos Garnacho
1d4687675f
GtkCssProvider: set scanner->input_name.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
6c91ba1cc2
GtkWidget: Do not reset GtkStyleContext per get_style_context().
2010-12-04 15:37:13 +01:00
Carlos Garnacho
22bae20ce8
GtkWidget: Hook up widget style property querying to style context.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
03370c6e0c
GtkStyleContext: Add methods to get style property values.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
bf12227435
GtkCssProvider: Implement GtkStyleProvider->get_style_property
...
Style properties in the resource files are something like:
-GtkComboBox-appears-as-string
-GtkEntry-icon-prelight
Following the usual naming spec for extensions to CSS.
2010-12-04 15:37:13 +01:00
Carlos Garnacho
37335fbb6f
GtkWidgetPath: Add methods to check topmost widget type.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
6990a01299
GtkStyleProvider: Add method to get widget style properties.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
eaddc9f254
GtkCssProvider: refactor out selector matching.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
eec75f1f59
GtkCssProvider: Ensure each scope has its parser config.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
ff05cc4849
GtkCssProvider: Parse boolean values.
2010-12-04 15:37:12 +01:00
Carlos Garnacho
aa5ec97cac
GtkCssProvider: Make additions to parse_value() less error prone.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
814957021f
Fix compile warning.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
66d1cb8054
GtkStyleSet: Register GtkThemingEngine type.
...
This has been also hooked up to the CSS provider, which parses the "engine"
value to load the corresponding module.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
327a9fc66a
GtkWidget: Generate GtkWidgetPath on set_parent.
...
There's no need to wait for realize() to have the right widget style.
2010-12-04 15:37:11 +01:00
Carlos Garnacho
6906138e45
GtkStyleSet: Remove default value for registered properties.
...
This should be handled at a higher level, a single default value for all
states isn't that useful...
2010-12-04 15:37:10 +01:00
Carlos Garnacho
80e01becbe
Fix compilation.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
a323310c19
GtkNotebook: Set GtkChildClassFlags for tabs.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
e899fdd973
GtkCssProvider: Set default value if no state pseudo-class is specified.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
66accc4184
GtkStyleSet: Add gtk_style_set_set_default().
...
This will set the default value to a given property for all possible states,
such default value will only be used if the queried state doesn't have a
value itself.
2010-12-04 15:37:10 +01:00
Carlos Garnacho
bd9bd1310b
GtkStyleContext: Fix compiler warning.
2010-12-04 15:37:09 +01:00
Carlos Garnacho
17908880b5
GtkStyle: Use new render methods underneath.
...
This commit should probably be squashed in the future, when GtkStyleContext
is on par with it, and GtkStyle is just a shallow object on top of
GtkStyleContext and calling it in the default implementation methods, so
all gtk_paint_* and gtk_draw_* would work.
2010-12-04 15:37:09 +01:00
Carlos Garnacho
f5adc2a1c3
Add region details in gtk_widget_get_path().
2010-12-04 15:37:09 +01:00
Carlos Garnacho
cf27f6f1cf
GtkStyleContext: fix typos in code.
...
The wrong list was being modified in gtk_style_context_set_child_class(),
and gtk_style_context_has_child_class() was checking for *flags != 0, not
flags != NULL.
2010-12-04 15:37:09 +01:00
Carlos Garnacho
104caa74f0
GtkStyleContext: Add gtk_style_context_list_child_classes().
2010-12-04 15:37:09 +01:00
Carlos Garnacho
67c4f8d02e
GtkCssProvider: Compare GtkWidgetPath regions with css.
2010-12-04 15:37:08 +01:00
Carlos Garnacho
977a972358
GtkCssProvider: fix parsing of consecutive pseudo-classes.
...
Now either of foo{}, foo:first-child{}, foo:nth-child(even):insensitive or
foo:active{} will be correctly parsed.
2010-12-04 15:37:08 +01:00
Carlos Garnacho
0be4659c5d
GtkCssProvider: move to next selector element on match or child combinator.
2010-12-04 15:37:08 +01:00
Carlos Garnacho
bc0af3208d
GtkCssProvider: free selector path on parse_rule().
2010-12-04 15:37:08 +01:00
Carlos Garnacho
07171d5f68
GtkCssProvider: Add named regions to selector path.
2010-12-04 15:37:08 +01:00
Carlos Garnacho
707d5ae99c
GtkCssProvider: Parse named regions.
2010-12-04 15:37:07 +01:00
Carlos Garnacho
11c874619b
GtkWidgetPath: Add API for named regions.
2010-12-04 15:37:07 +01:00
Carlos Garnacho
71949e05c4
Refurbish GtkWidgetPath API.
...
The foreach() function is now gone, there's now API to get
GTypes and names from the position in the path.
2010-12-04 15:37:07 +01:00
Carlos Garnacho
f60e3f3a8a
Move GtkChildClassFlags to gtkenums.h.
2010-12-04 15:37:06 +01:00
Carlos Garnacho
8c03503d16
GtkCssProvider: Add support for child/descendant combinators.
...
Now, selectors like:
GtkWindow > GtkButton {}
GtkNotebook > GtkLabel {}
will represent a direct parent/child relation between both elements, while
GtkWindow GtkButton {}
GtkNotebook GtkLabel {}
will allow intermediate children between these.
2010-12-04 15:37:06 +01:00
Carlos Garnacho
d691e79cbf
GtkCssProvider: Fix typo freeing SelectorElements.
2010-12-04 15:37:05 +01:00
Carlos Garnacho
abbeb89b7c
GtkCssProvider: Allow empty selector.
...
universal selector is implied, so things like this work:
:active {}
:insensitive{}
2010-12-04 15:37:05 +01:00
Carlos Garnacho
4c8353bcbf
GtkCssProvider: Allow '*' selectors.
...
These would match a single widget of any type.
2010-12-04 15:37:04 +01:00
Carlos Garnacho
468f216b1c
GtkCssProvider: Add state parsing.
...
Now state is now defined as a pseudoclass in the CSS format, selectors like:
GtkWidget:active { }
GtkButton:insensitive { }
GtkCalendar:prelight { } (also :hover is accepted)
...
define the style for the given state.
2010-12-04 15:37:03 +01:00
Carlos Garnacho
7dada9949d
GtkWidget: Create GtkCssProvider for user modifications.
...
~/.gtk-X.0.css is checked, and added as a style resource if available.
2010-12-04 15:37:03 +01:00
Carlos Garnacho
82f485afd9
GtkStyleProvider: Add defines for most common priorities.
2010-12-04 15:37:02 +01:00
Carlos Garnacho
bccad0c65c
Added GtkCssProvider.
...
GtkCssProvider is a GtkStyleProvider implementation which is able to read
CSS-like input to style widgets.
At the moment, only the basic parser features are available.
2010-12-04 15:37:02 +01:00
Carlos Garnacho
7c5c4d86ae
Add GtkWidgetPath parameter to gtk_style_provider_get_style().
2010-12-04 15:37:02 +01:00
Carlos Garnacho
9971f386b0
GtkStyleSet: Add method to lookup property default settings.
2010-12-04 15:37:01 +01:00
Carlos Garnacho
7647deb417
GtkStyleSet: Make property registration take const GValues.
2010-12-04 15:37:01 +01:00
Carlos Garnacho
fdcda4b356
GtkStyleContext: allow late set_path() calls.
...
Now the properties will only be regenerated whenever there's a GtkWidgetPath
to query about.
2010-12-04 15:37:00 +01:00
Carlos Garnacho
bdadcb568c
GtkStyleContext: Fix compiler warning.
2010-12-04 15:37:00 +01:00
Carlos Garnacho
f984c39e93
GtkStyleContext: Fix typo.
2010-12-04 15:37:00 +01:00
Carlos Garnacho
f8c74ae54b
GtkStyleContext: Add gtk_render_handle().
2010-12-04 15:36:59 +01:00
Carlos Garnacho
9e5d9ff28d
GtkThemingEngine: Add vmethod to render a handle area.
2010-12-04 15:36:59 +01:00
Carlos Garnacho
160821042c
GtkStyleContext: Add gtk_render_extension().
2010-12-04 15:36:59 +01:00
Carlos Garnacho
aa1d492fe9
GtkThemingEngine: Add vmethod to render an extension.
2010-12-04 15:36:58 +01:00
Carlos Garnacho
88492a50d6
GtkStyleContext: Add gtk_render_frame_gap().
2010-12-04 15:36:58 +01:00
Carlos Garnacho
af1edc3d88
GtkThemingEngine: Add vmethod to render frames with a gap.
2010-12-04 15:36:58 +01:00
Carlos Garnacho
6a1b54f8bf
GtkStyleContext: Add gtk_render_slider().
2010-12-04 15:36:57 +01:00
Carlos Garnacho
2ebdf80adc
GtkThemingEngine: Add vmethod to render sliders.
2010-12-04 15:36:57 +01:00
Carlos Garnacho
86727adc4d
GtkStyleContext: Add gtk_render_line().
2010-12-04 15:36:57 +01:00
Carlos Garnacho
b8f6617d99
GtkThemingEngine: Add vmethod to render lines.
2010-12-04 15:36:56 +01:00
Carlos Garnacho
f80fbbd829
GtkStyleContext: Add gtk_render_layout().
2010-12-04 15:36:56 +01:00
Carlos Garnacho
92994a0129
GtkThemingEngine: Add vmethod to render layouts.
2010-12-04 15:36:56 +01:00
Carlos Garnacho
0486f5bbc0
GtkStyleContext: Add gtk_render_focus().
2010-12-04 15:36:56 +01:00
Carlos Garnacho
8439537e2f
GtkThemingEngine: Add vmethod to render focus indicator.
2010-12-04 15:36:55 +01:00
Carlos Garnacho
9c3b079c1c
GtkStyleContext: Add gtk_render_expander().
2010-12-04 15:36:55 +01:00
Carlos Garnacho
19fdaabf4c
GtkThemingEngine: Add vmethod to render expanders.
2010-12-04 15:36:55 +01:00
Carlos Garnacho
b4c8eba480
GtkStyleContext: Add gtk_render_frame().
2010-12-04 15:36:55 +01:00
Carlos Garnacho
48990bc71c
GtkThemingEngine: Add vmethod to render frames.
2010-12-04 15:36:54 +01:00
Carlos Garnacho
25488633ec
GtkStyleContext: Add gtk_render_background().
2010-12-04 15:36:54 +01:00
Carlos Garnacho
13812de971
GtkThemingEngine: Add vmethod to render backgrounds.
2010-12-04 15:36:54 +01:00
Carlos Garnacho
01a8e06842
GtkStyleContext: Add gtk_render_arrow().
2010-12-04 15:36:54 +01:00
Carlos Garnacho
b7ca7d19ee
GtkThemingEngine: Add vmethod to render arrows.
2010-12-04 15:36:54 +01:00
Carlos Garnacho
1c15b140a9
GtkStyleContext: Add gtk_render_option().
2010-12-04 15:36:53 +01:00
Carlos Garnacho
263f6de0e5
GtkThemingEngine: Add vmethod to render radio buttons.
2010-12-04 15:36:53 +01:00
Carlos Garnacho
401625b8b3
GtkStyleContext: Add gtk_render_check().
2010-12-04 15:36:53 +01:00
Carlos Garnacho
acf4306bcd
GtkThemingEngine: Add vmethod to render checkboxes.
2010-12-04 15:36:53 +01:00
Carlos Garnacho
bf7a9914dd
GtkThemingEngine: Add accessors to style classes.
2010-12-04 15:36:53 +01:00
Carlos Garnacho
fe4a6cea73
GtkWidget: Add widget path to style context.
2010-12-04 15:36:53 +01:00
Carlos Garnacho
1d2aa61407
GtkStyleContext: Add child style classes.
...
Child style classes are like style classes, but with additional positional
information. This would be usually set by the parent container.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
9a76d1a332
GtkStyleContext: Add style classes.
...
Style classes are the replacement of detail strings.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
bd3b97d82b
GtkStyleContext: Relate to a GtkThemingEngine.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
0171c76871
GtkThemingEngine: Add module loading capabilities.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
57be029b15
Add GtkThemingEngine.
...
GtkThemingEngine will be the theming engines base class, with default
implementations for all paint functions, and readonly access to the
related GtkStyleContext data.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
b7e6ae3983
GtkStyleContext: Add gtk_style_context_[gs]et_path()
...
This relates a GtkStyleContext with a widget path, so
all style querying would happen based on it.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
9794b6adf9
GtkWidget: Add gtk_widget_get_path().
...
This function composes and returns a GtkWidgetPath representing
the passed widget.
2010-12-04 15:36:52 +01:00
Carlos Garnacho
61360dfddf
Add GtkWidgetPath.
...
GtkWidgetPath represents a widget path. It will mainly used by theming
engines to know detail about the widget hierarchy without actually
accessing the widget.
2010-12-04 15:36:51 +01:00
Carlos Garnacho
835cc7049c
GtkStyleContext: Add getters and setter for state.
2010-12-04 15:36:51 +01:00
Carlos Garnacho
3f93c714ae
GtkWidget: Add gtk_widget_get_style_context().
...
There will be one GtkStyleContext per widget, at the moment its
lifetime is tied to the widget's, but it could be narrowed down
to GTK_WIDGET_REALIZED.
2010-12-04 15:36:51 +01:00
Carlos Garnacho
2e96770e0b
Add GtkStateFlags.
...
It basically represents GtkStateType as a flag set.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
8a7e035ac7
GtkStateType: Add inconsistent and focused state.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
b82355c76e
GtkStyleContext: Fix typo.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
28b7782d78
GtkStyleSet: Add method to register border property.
2010-12-04 15:36:50 +01:00
Carlos Garnacho
16484f8459
GtkStyleSet: Add method to register font properties.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
1a3d964615
GtkStyleContext: Add methods to query composed style.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
2da033b18c
GtkStyleSet: Return default value if value is not set.
2010-12-04 15:36:49 +01:00
Carlos Garnacho
9fdcbd7a84
GtkStyleSet: Add valist and varargs getters/setters.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
2bf7483e74
GtkStyleSet: Use property GQuark as store keys.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
4c60de4783
GtkStyleSet: Add style property registration funcs.
...
Also some properties have been added as a default set.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
2b425d89c8
Add GtkStyleContext.
...
GtkStyleContext will conglomerate the information of several
GtkStyleProviders for widgets and theme engines to query it.
2010-12-04 15:36:48 +01:00
Carlos Garnacho
530ae15f96
gtkstyleset.h: Add declaration for gtk_style_set_merge().
2010-12-04 15:36:48 +01:00
Carlos Garnacho
f969470ad8
GtkStyleSet: Implement GtkStyleProvider.
...
As simple as it can get.
2010-12-04 15:36:47 +01:00
Carlos Garnacho
019fa73308
Add GtkStyleProvider, an interface to provide style details.
...
The get_style() function isn't final yet, further parameters
should be added to query details based on the widget hierarchy,
name, etc.
2010-12-04 15:36:47 +01:00
Carlos Garnacho
f601abd25f
Add GtkStyleSet, a store of style properties.
...
At the moment there's only basic API for adding,
removing and clearing a property. There's also
API to merge 2 GtkStyleSets.
2010-12-04 15:36:47 +01:00
Carlos Garnacho
06288b5ae8
Add GTK_STATE_LAST to mark the end of GtkState enum.
2010-12-04 15:36:47 +01:00
Yaron Shahrabani
0d873a61e5
Updated Hebrew translation
2010-12-04 15:28:27 +02:00
Tristan Van Berkom
1d3961b342
Fixing gtk_cell_area_box_focus().
...
the ->focus() method was getting mixed up when more than
one cell was in the same group (not aligned), added the
proper check to break out of the loop on time.
2010-12-04 21:49:44 +09:00
Tristan Van Berkom
c4eff8b6b0
Added some "align" checkbuttons to show configurable cell alignments in testtreeedit.
2010-12-04 21:41:48 +09:00
Tristan Van Berkom
bbee4de33d
Fixed typo in GtkCellArea docs.
2010-12-04 20:54:36 +09:00
Tristan Van Berkom
b0f849eafd
Changed GTK_CELL_AREA_WARN_INVALID_CHILD_PROPERTY_ID for GTK_CELL_AREA_WARN_INVALID_CELL_PROPERTY_ID
2010-12-04 20:52:03 +09:00
Tristan Van Berkom
9c7e00f744
Fixing GtkTreeViewColumn to use the new _gtk_cell_layout_buildable_custom_tag_end correctly.
2010-12-04 17:10:31 +09:00
Tristan Van Berkom
84eb40b57e
Added GtkEntryCompletion:cell-area construct property.
...
- Removed most of GtkCellLayout implementation in favor of ->get_area()
- This allows GtkBuildable cell layout implementation to implement
the child "cell-properties"
- Also allows feeding a custom/different GtkCellArea implementation to
layout cells.
- Share the internal area with the created GtkTreeViewColumn.
2010-12-04 16:55:49 +09:00
Tristan Van Berkom
52ba4f49c5
Added boolean return to GtkCellLayout buildable custom tag end shared private function.
2010-12-04 16:53:28 +09:00
Tristan Van Berkom
c8c5ed8fa1
Removing hack and fixing gtk_tree_view_column_cell_get_size().
...
Now consult gtk_cell_area_context_get_preferred_height().
It can be that height-for-widths requested here were too large
when multiple cells are in play because of the alignments stored
in the context... removing the temporary focus-line-width hack.
2010-12-04 16:04:04 +09:00
Tristan Van Berkom
0f4a2d322b
Fixed merge conflicts from cherry-pick of construct-only GtkTreeViewColumn:cell-area property.
2010-12-04 15:52:40 +09:00
Tristan Van Berkom
acc4dd2912
Added GtkTreeViewColumn:cell-area construct-only property.
...
Allow feeding treeviewcolumn a custom cell-area (or not a custom one,
but allow sharing the cell-area with say, the combo-box area).
This patch also:
- Fixes signal connections to the area (now they do eventually get
disconnected at dispose time, they are handled regardless if a
treeview is set but execute safely, at least there is only one
connection/disconnection).
- Fixes refcounting on the cell_area (GtkCellArea is GInitiallyUnowned).
- Adds a constructor() in order to build the cell-area if one has
not been provided by the caller before hand at g_object_new()
construct time.
2010-12-04 15:49:46 +09:00
Tristan Van Berkom
9c6a801f52
Migrated GtkCellLayout documentation into the source code.
...
Also added a section on specifying <cell-packing> properties
in the GtkCellLayout UI description.
2010-12-04 15:41:42 +09:00
Tristan Van Berkom
7e2571a358
Added "Cell Properties" section to the GtkCellArea documentation.
2010-12-04 15:02:53 +09:00
Tristan Van Berkom
2a41de70b1
Removing an unused variable from GtkCellRendererText->get_preferred_width()
2010-12-04 14:31:45 +09:00
Matthias Clasen
12e5e24c3e
Another attempt to fix the gdk symbol list
2010-12-03 23:50:58 -05:00
Matthias Clasen
d998e7761c
Update sections
2010-12-03 15:41:37 -05:00
Benjamin Otte
350fb1d55c
API: gdk: Rename GdkWindowObjectClass to GdkWindowClass
...
Be consistent in the naming of objects.
2010-12-03 19:11:13 +01:00
Benjamin Otte
d916398dd2
API: Rename GdkWindowClass to GdkWindowWindowClass
...
We argued replacing GdkWindowClass with a input_only boolean, but this
is not doable in an API-stable way, so I decided against it.
2010-12-03 19:11:13 +01:00
Matthias Clasen
a996a309c7
One more forgotten symbol
2010-12-03 13:05:23 -05:00
Matthias Clasen
5687d7f880
Update gdk symbol list
2010-12-03 13:04:42 -05:00
Andrej Žnidaršič
3d81af670d
Updated Slovenian translation
2010-12-03 18:10:08 +01:00
Matthias Clasen
17e2c5391c
Fix up parameter mismatches in the docs
...
And other minor gdk doc fixes.
2010-12-03 09:07:06 -05:00
Matthias Clasen
4ef86fc500
Add annotation to gdk_screen_get_monitor_geometry
...
Pointed out by William Jon McCann.
2010-12-03 08:21:48 -05:00
Tristan Van Berkom
c5a60e035d
Removed GtkCellAreaBoxPrivate from GtkCellAreaBox section.
2010-12-03 17:21:28 +09:00
Tristan Van Berkom
0fa7477091
Adding documentation for GtkCellAreaBox.
2010-12-03 17:13:31 +09:00
Tristan Van Berkom
9e3ebe4955
Marking GtkCellArea structure portions as /*< private >*/
2010-12-03 17:12:59 +09:00
Tristan Van Berkom
4c165de31f
Added gtk-doc to GtkCellArea & GtkCellAreaContext.
2010-12-03 16:29:11 +09:00
Tristan Van Berkom
b84f5aa4dd
Added symbols from 'treeview-refactor' branch to gtk.symbols file.
2010-12-03 16:28:06 +09:00
Michael Natterer
e4cbe47a11
gtk: properly indent calls to gdk_threads_add_timeout()
2010-12-02 23:01:12 +01:00
Bastien Nocera
b1beaa2dea
docs: Fix building with latest GDK changes
2010-12-02 21:01:53 +00:00
Matthias Clasen
f5c27476a5
Don't require a display for the color test
...
Its not really needed, and the build bot doesn't have X...
2010-12-02 16:00:15 -05:00
Benjamin Otte
fdb242ac6a
gdk: Clean up Cairo code
...
Remove a bunch of code that is not required.
2010-12-02 20:21:05 +01:00
Benjamin Otte
0b6c184eaa
label: Clarify docs for gtk_label_get_layout()
2010-12-02 20:21:05 +01:00
Benjamin Otte
f9a9567731
gdk: Replace direct calls of _gdk_event_func with _gdk_event_emit()
...
For now that function just calls the event func.
2010-12-02 20:21:05 +01:00
Benjamin Otte
b3e8504111
x11: Don't include gdkprivate.h in gdkx.h
...
It's private, mkay?
And include it directly where we need it anyway.
2010-12-02 20:21:05 +01:00
Benjamin Otte
a6b407cf4a
gtk: Fix typos in comment
2010-12-02 20:21:05 +01:00
Benjamin Otte
8c6831ab5e
gdk: Remove useless macros from gdkprivate.h
2010-12-02 20:21:05 +01:00
Benjamin Otte
f5be938840
gtk: Don't include private GDK headers
...
Use the function that exists for this purpose instead.
2010-12-02 20:21:05 +01:00
Benjamin Otte
585c489577
gdk: Remove GDK_PANGO_UNITS_OVERFLOWS() from internal headers
...
It's unused.
2010-12-02 20:21:05 +01:00
Benjamin Otte
4d1604c77d
gdk: Move window beeps into GdkWindowImpl
...
One less magic function. Also refactored it to make it easier to
implement. It now returns TRUE if it beeped and FALSE if it failed to do
so. A default implementation exists that just returns FALSE for all the
backends that can't beep windows (read: everything but X11 with XKB -
and why on earth do keyboard libs implement beeping?)
2010-12-02 20:21:05 +01:00
Benjamin Otte
1269f8424f
gdk: Make get_shape and get_input_shape vfuncs
...
Trying to get rid of all the _gdk_windowing_something() functions that
we expect backends to magically know about and instead put them in a
proper interface (mostly GdkWindowImplClass).
2010-12-02 20:21:04 +01:00
Benjamin Otte
218eea4378
gdk: Remove GdkDrawable
...
It's unused.
2010-12-02 20:21:04 +01:00
Benjamin Otte
b9fc6a0c03
gdk: Remove remaining includes of gdkdrawable.h
2010-12-02 20:21:04 +01:00
Benjamin Otte
4bfa4e0d86
gdk: Make GdkWindowImpl inherit from GObject
2010-12-02 20:21:04 +01:00
Benjamin Otte
3494f87a10
API: Remove GdkNoExposeEvent
...
It's not used by anyone and not supported by any backend but X11.
2010-12-02 20:21:04 +01:00
Benjamin Otte
98838df2db
gdk: Make GdkWindow->impl a GdkWindowImpl
2010-12-02 20:21:04 +01:00
Benjamin Otte
e3013a5cf5
docs: Replace mentions of drawable with window in migration guide
...
No need to let gtk3-aware people learn about wonderous gtk2 terms when
they are migrating old code. ;)
2010-12-02 20:21:04 +01:00
Benjamin Otte
d03c94907a
docs: Remove overrides for types that don't exist anymore
2010-12-02 20:21:04 +01:00
Benjamin Otte
ba20a00570
tests: Remove disabled testtext example
2010-12-02 20:21:04 +01:00
Benjamin Otte
804c2c8350
cellrenderer: Fix docs to say cairo_t instead of GdkDrawable
2010-12-02 20:21:04 +01:00
Benjamin Otte
17a0a467a1
gdk: Pass the GdkWindow to resize_cairo_surface vfunc
...
So it's in sync with all the other vfuncs.
2010-12-02 20:21:04 +01:00
Benjamin Otte
e4c27b0a59
API: GdkWindow no longer is a GdkDrawable
...
Also, name the get_type function properly.
2010-12-02 20:21:03 +01:00
Benjamin Otte
1ad7c5f8c5
x11: Remove unused GDK_DRAWABLE_XROOTWIN macro
2010-12-02 20:21:03 +01:00
Benjamin Otte
2408936bb5
x11: Remove duplicate definition of GDK_WINDOW_XID
...
Now, where did that come from?
2010-12-02 20:21:03 +01:00
Benjamin Otte
d1700d6e3c
gdk: Move ref_cairo_surface from GdkDrawable to GdkWindowImpl
...
Also make it take the actual GdkWindow, not the implementation, like all
the other vfuncs do.
2010-12-02 20:21:03 +01:00
Benjamin Otte
62d004cf8f
gdk: Remove _gdk_drawable_ref_cairo_surface()
...
Instead, call the vfunc directly from gdkWindow.c
2010-12-02 20:21:03 +01:00
Benjamin Otte
9d2abf81d2
x11: Remove outdated variable definition
2010-12-02 20:21:03 +01:00
Benjamin Otte
1215f70e23
gdk: Remove GdkDrawable->create_cairo_surface vfunc
...
It's unused.
2010-12-02 20:21:03 +01:00
Benjamin Otte
370d272b13
gdk: Remove _gdk_window_impl_get_type() function
...
It was only used in the backends, and they can use the correct type
directly.
2010-12-02 20:21:03 +01:00
Benjamin Otte
ac4609ecc9
x11: Fix in_rectangle computation
...
A point is not in a rectangle when it's at the x + width coordinate.
2010-12-02 20:21:03 +01:00
Benjamin Otte
1bb6f48bb3
gdk: Rename GdkWindowObject to GdkWindow
...
... and remove most of the casting that used to be necessary.
2010-12-02 20:21:03 +01:00
Benjamin Otte
7acb64f983
gdk: Make GdkWindowImpl a class, not an interface
...
It's a subclass of GdkDrawable and the baseclass for GdkWindowImplX11
etc now.
2010-12-02 20:21:02 +01:00
Benjamin Otte
b3bca70d5b
gdk: Remove unused medialib code
2010-12-02 20:21:02 +01:00
Benjamin Otte
b1f6df8085
API: Remove gdkdrawable.h from public headers
...
It continues to exist as a private header.
2010-12-02 20:21:02 +01:00
Benjamin Otte
771fa78257
textbuffer: Remove check for GdkDrawable
...
This should only have been used for stipple patterns, and those are gone
now.
2010-12-02 20:21:02 +01:00
Benjamin Otte
cf6ce6e671
API: Decouple GdkWindow from GdkDrawable
...
Make GdkWindow no longer typedeffed to GdkDrawable, but instead make it
be its own (private) type.
2010-12-02 20:21:02 +01:00
Benjamin Otte
81605623e2
gdk: Use GdkDrawable for impl pointers
...
... instead of GdkWindow
2010-12-02 20:21:02 +01:00
Benjamin Otte
a7e6d6c4b4
gtk: Avoid GdkDrawable usage, including needless casts
2010-12-02 20:21:02 +01:00
Benjamin Otte
63808f90a2
gail: Avoid needless calls to GdkDrawable
2010-12-02 20:21:02 +01:00
Benjamin Otte
62622a94ae
gdk: Pass Drawable as argument
...
We're not passing a GdKWindow here, but the implementation.
2010-12-02 20:21:02 +01:00
Benjamin Otte
072498ae87
gdk: Make _gdk_window_ref_cairo_surface() protected and use it
...
... instead of _gdk_drawable_ref_cairo_surface() where appropriate.
Also, don't implement the drawable->create_cairo_surface vfunc anymore.
This is in preparation for the split of GdkWindow from GdkDrawable.
2010-12-02 20:21:02 +01:00
Benjamin Otte
e724054d19
API: Remove GDK_WINDOW_XWINDOW() macro
...
Use GDK_WINDOW_XID() instead.
THis was done using sed, so there might be issues resulting to that.
Feel free to fix.
2010-12-02 20:20:56 +01:00
Benjamin Otte
18a6976e5a
API: gdk: Don't track outstanding surfaces
...
You are not allowed to track surfaces from GDK or draw outside of expose
events. So we can remove ugly hacks needed previously. See
https://bugzilla.gnome.org/show_bug.cgi?id=606009 for the introduction
of this workaround.
2010-12-02 20:17:28 +01:00
Benjamin Otte
fe6f76a5a2
x11: Make wrapper member a GdkDrawable
...
This is in preparation for getting rid of GdkDrawable as a dependency of
GdkWindow.
2010-12-02 20:17:28 +01:00
Benjamin Otte
becaf660fc
API: gdk_drawable_get_visible_region => gdk_window_get_visible_region
...
Also get rid of the GdkDrawable vfunc.
2010-12-02 20:17:28 +01:00
Benjamin Otte
6a3a89a621
API: gdk_drawable_get_clip_region() => gdk_window_get_clip_region()
...
Also remove the vfunc from GdkDrawableClass.
2010-12-02 20:17:28 +01:00
Benjamin Otte
97e6e9d212
API: Make gdk_cairo_create() take a GdkWindow
...
This is not strictly an API change as GdkDrawable is typedeffed to
GdkWindow, but it changes the header, so I'm marking it as such.
gdk_cairo_create() can only be used with windows these days, so it makes
sense to pass a window. With that, we can alseo remove the
set_cairo_clip() vfunc from GdkDrawable and implement it inside
gdkwindow.c.
2010-12-02 20:17:28 +01:00
Benjamin Otte
65dde2f92f
API: Remove gdk_cairo_reset_clip()
...
You should not ever ever ever call cairo_reset_clip(). If you do, your
code is broken and you deserve everything you get.
And we should definitely not support this insanity.
2010-12-02 20:17:28 +01:00
Benjamin Otte
d154344a43
win32: Remove some unused defines
2010-12-02 20:17:28 +01:00
Benjamin Otte
88399c041c
x11: Remove GdkDrawableImplX11
...
It's not use anymore, the whole functionality has been moved to
GdkWindowImplX11.
2010-12-02 20:17:27 +01:00
Benjamin Otte
3e6a4af6d3
x11: _gdk_x11_drawable_update_size() => _gdk_x11_window_update_size()
2010-12-02 20:17:27 +01:00
Benjamin Otte
bb79506665
x11: Move cairo_surface and wrapper members to GdkWindowImplX11 struct
2010-12-02 20:17:27 +01:00
Benjamin Otte
1c7f58fdb6
x11: Move xid member from GdkDrawableImplX11 to GdkWindowImplX11
2010-12-02 20:17:27 +01:00
Benjamin Otte
a3c5005eef
x11: Use GDK_WINDOW_XID() instead of writing it out
2010-12-02 20:17:27 +01:00
Benjamin Otte
094b0eeb98
x11: Remove screen member from GdkDrawableImplX11
2010-12-02 20:17:27 +01:00
Benjamin Otte
5f12730599
x11: Get display from window, not from impl-drawable's screen
2010-12-02 20:17:27 +01:00
Benjamin Otte
cfa67127a1
x11: Get display from window, not from impl-drawable's screen
2010-12-02 20:17:27 +01:00
Benjamin Otte
dc7d8dae67
x11: Change GDK_WINDOW_SCREEN macro
...
on't look at GdkDrawableImplX11->screen, but call
gdk_window_get_screen() instead.
2010-12-02 20:17:27 +01:00
Benjamin Otte
5139eecc75
API: x11: Remove GDK_DRAWABLE_XID and GDK_DRAWABLE_XDISPLAY
...
Window equivalents exist and drawables are on their way out.
2010-12-02 20:17:27 +01:00
Benjamin Otte
3b8aea389d
x11: Use window macros instead of drawable macros
...
GDK_WINDOW_XID() instead of GDK_DRAWABLE_XID()
GDK_WINDOW_XDISPLAY() instead of GDK_DRAWABLE_XDISPLAY()
2010-12-02 20:17:27 +01:00
Benjamin Otte
91679c384a
API: Remove gdk_x11_drawable_get_xdisplay()
...
No need for the function. Macros exist to do the same thing.
2010-12-02 20:17:27 +01:00
Benjamin Otte
0841281b55
x11: Use window macros in test code
2010-12-02 20:17:27 +01:00
Benjamin Otte
28ba4c2146
im-xim: Use window macros instead of drawable macros
2010-12-02 20:17:27 +01:00
Benjamin Otte
3af4432c6f
API: x11: Remove gdk_x11_window_get_drawable_impl()
...
It's not used anymore
2010-12-02 20:17:27 +01:00
Benjamin Otte
deffc9e39f
API: x11: Change GDK_WINDOW_XDISPLAY() macro
...
Instead of lots of magic, we can go the usual way of requesting the
XDisplay of the window's display. So we do that.
2010-12-02 20:17:27 +01:00
Benjamin Otte
cf51750bf4
API: x11: gdk_drawable_get_xid => gdk_window_get_xid
...
Also moves the function implementations to gtkwindow-x11.c.
2010-12-02 20:17:27 +01:00
Jorge González
86390c99dd
Updated Spanish translation
2010-12-02 19:28:16 +01:00
Jorge González
c5d1b36e87
Updated Spanish translation
2010-12-02 19:28:12 +01:00
Tristan Van Berkom
513546f3df
Adding GtkCellArea to gtk-doc build (added to gtk3.types, gtk-docs.sgml and updated gtk3-sections.txt file).
2010-12-03 00:29:43 +09:00
Tristan Van Berkom
a7ad110fe9
Adding more documentation to GtkCellArea, documented GtkCellAreaClass structure.
2010-12-03 00:29:22 +09:00
Bastien Nocera
66122b369e
gtk: Centre the text under the icon in GtkIconView
...
No point in setting the alignment to centre if we don't center it
within the cell itself.
2010-12-02 15:04:32 +00:00
Tristan Van Berkom
005964b22a
Manually pulling back a GtkTreeViewColumn fix from treeview-refactor-staging
...
This fix has evolved in the staging branch since all column members are
on a private structure, but since it causes warnings when closing the
windows of the testcellarea test (because the combo-boxes use a treeviewcolumn)
I thought it nice for now to just manually include the fix.
The fix is just proper bookkeeping of delegate objects at dispose() time.
2010-12-02 17:42:46 +09:00
Tristan Van Berkom
cd09abf461
Changed tests/testcellarea.c (and scaffolding) to only reorient the GtkCellArea
...
It's a better test case if the scaffolding only displays the rows from top
to bottom and doesnt line up the cells from left to right (because it shows
that height-for-width still works with vertically oriented areas).
2010-12-02 17:10:10 +09:00
Tristan Van Berkom
2bf8f7eab9
Removed unused variable from GtkCellAreaBoxContext.
2010-12-02 17:09:44 +09:00
Tristan Van Berkom
03a72118ad
Merge branch 'master' into treeview-refactor
...
Conflicts:
tests/Makefile.am
2010-12-02 13:58:02 +09:00
Matthias Clasen
dd678ac323
Avoid a warning when finalizing toolbars
...
Recent changes cause disposing menus to emit ::deactivate. So better
disconnect the deactivate handler first.
2010-12-01 23:32:35 -05:00
Tristan Van Berkom
a9fd00a435
Fixed GtkCellAreaBoxContext for some typos introduced while removing GtkCellAreaContext->sum_preferred_width()/height() apis.
2010-12-02 13:19:37 +09:00
Cosimo Cecchi
6587652433
app-chooser-button: don't insert empty rows in the combobox
2010-12-01 20:18:12 +01:00
Cosimo Cecchi
b17f033857
app-chooser-button: add a note in the docs
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
6e6379c633
app-chooser: add docs and symbols coverage for new API
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
510d65ba08
app-chooser-button: add gtk_app_chooser_button_set_active_custom_item()
...
This allows to pre-select a custom item.
2010-12-01 17:04:22 +01:00
Cosimo Cecchi
9ffd1f7adb
app-chooser-button: make sure to always get a valid iter
...
Even in case there are no installed applications for our content type.
2010-12-01 17:03:51 +01:00
Bastien Nocera
959fc60c47
gtk: Allow hiding the trough/slider in GtkScale
...
When setting a GtkRange's upper and lower values to the same
value, the slider will not be drawn any more.
https://bugzilla.gnome.org/show_bug.cgi?id=549720
2010-12-01 15:39:50 +00:00
Tristan Van Berkom
30561228ed
Added some rules to GtkCellAreaBox for rendering the last cell.
...
- When we reach a cell that is out of the render area, break out
of the loop (for columns user resized too small)
- CLAMP the size of the last renderer to fit into the area
(so that renderers get a chance to ellipsize when rendered
with a space less than allocation, same reason as above).
- Hand out remaining space in the render area to the last cell,
this is for shallow rows in the expand column which may recieve
more than the allocated width.
2010-12-01 22:56:06 +09:00
Ivar Smolin
926622e2dd
[l10n] Updated Estonian translation
2010-12-01 13:17:39 +02:00
Mahyar Moghimi
80b1c80dbb
Updating Persian translation
2010-12-01 14:19:46 +03:30
Mahyar Moghimi
b9bc2f1321
Updating Persian translation
2010-12-01 14:16:19 +03:30
Tristan Van Berkom
a852deeb03
Fixed GtkCellArea to always activate a cell at gtk_cell_area_activate() time even if no cells have focus.
2010-12-01 16:22:18 +09:00
Tristan Van Berkom
26ac551b74
Added special clause to GtkCellAreaBox focus navigation.
...
If the area has no activatable cells and has focus when
focus should be cycled, immediately focus out of the area
(because focus in that case is given to the entire area).
2010-12-01 15:18:40 +09:00
Emmanuele Bassi
b9859de917
switch: Fix the attribution line
...
Thomas Wood pointed out that the original MxGtkLightSwitch widget upon
which I based the behaviour of GtkSwitch was not written by him; the
original authors are:
Joshua Lock
Robert Staudinger
Jussi Kukkonen
My apologies to all of them.
2010-11-30 21:54:48 +00:00
Matthias Clasen
bdeba634d9
Update checkmenuitem docs slightly
2010-11-30 11:36:34 -05:00
Cosimo Cecchi
117e88646f
Merge branch 'open-with-dialog'
2010-11-30 17:31:59 +01:00
Cosimo Cecchi
4fe23cae78
app-chooser: other misc doc fixes
2010-11-30 17:27:53 +01:00
Cosimo Cecchi
960516bf33
app-chooser: add more symbols & docs
2010-11-30 16:30:33 +01:00
Cosimo Cecchi
cb916f2746
Merge branch 'master' into open-with-dialog
...
Conflicts:
docs/reference/gtk/gtk3-sections.txt
gtk/gtk.symbols
2010-11-30 16:27:28 +01:00
Guillaume Desmottes
8076dbfb5c
gtkspinner: don't setup the timeout twice ( #636129 )
2010-11-30 15:59:49 +01:00
Cosimo Cecchi
5f942b1232
app-chooser-button: remove leftover typedef
2010-11-30 15:04:50 +01:00
Cosimo Cecchi
50e967d17b
build: order new files alphabetically
2010-11-30 15:04:00 +01:00
Cosimo Cecchi
d8ef15c592
app-chooser: update docs
2010-11-30 15:03:33 +01:00
Ryan Lortie
922324553b
Bug 619148 - "active ID" properties (GtkComboBox)
...
Based on a patch by Matthias, add an "active-id" property for
GtkComboBox and add some convenience API for GtkComboBoxText.
Also, add a test case to gtk-demo.
2010-11-30 00:29:16 -05:00
Emmanuele Bassi
781d4faf4c
a11y: Use ATK macros and clean up/2 - GtkSpinner
...
ATK provides macros to the same effect as G_DEFINE_TYPE; using these
macros has the advantage of removing tons of duplicated code and
reducing the maintainership burden.
The widgets with inline accessibility implementation should switch to
these macros, and clean up the code.
https://bugzilla.gnome.org/show_bug.cgi?id=636060
2010-11-30 02:06:57 +00:00
Emmanuele Bassi
e7966a2c0c
a11y: Use ATK macros and clean up/1 - GtkAssistant
...
ATK provides macros to the same effect as G_DEFINE_TYPE; using these
macros has the advantage of removing tons of duplicated code and
reducing the maintainership burden.
The widgets with inline accessibility implementation should switch to
these macros, and clean up the code.
https://bugzilla.gnome.org/show_bug.cgi?id=636060
2010-11-30 02:06:56 +00:00
Matthias Clasen
2fffce2c23
Forgotten changes
2010-11-29 16:47:45 -05:00
Javier Jardón
f07480eb44
GtkSwitch: Add missing "Since: 3.0" tags
2010-11-29 22:00:49 +01:00
Javier Jardón
e3556c7f3e
configure: Fix typo
2010-11-29 21:33:43 +01:00
Andrej Žnidaršič
8caa0c8c36
Updated Slovenian translation
2010-11-29 21:27:47 +01:00
Matthias Clasen
c39a434281
Bump version
2010-11-29 14:48:24 -05:00
Matthias Clasen
2392dacb2b
No more rulers
2010-11-29 13:56:27 -05:00
Matthias Clasen
4893d662a7
Clean up POTFILES.skip as well
2010-11-29 13:29:49 -05:00
Matthias Clasen
d79afd9a17
Update NEWS
2010-11-29 13:04:15 -05:00
Matthias Clasen
9c1e61e9aa
Revert c00b85bf3f
...
This needs more work, currently we do dupe targets when copying
target entries in various places, and consequently free them
later. To do this correctly, the strings need to be interned
or something like that.
2010-11-29 13:00:04 -05:00
Matthias Clasen
670dfdb7cc
Re-add some conditionals to symbols files
...
We need to keep the ifdefs for platform abi differences.
2010-11-29 12:47:44 -05:00
Cosimo Cecchi
51cb082022
app-chooser-online: rework of the online module
...
- the _get_default() method is now async
- the PackageKit module will return NULL in case PackageKit is not
available in the session bus
- the dummy module doesn't exist anymore
- the dialog won't display the online button in case there's no module
available
2010-11-29 18:10:06 +01:00
Matthias Clasen
6b5221380e
remove some duplicate symbols
2010-11-29 12:04:38 -05:00
Matthias Clasen
a562646678
Add gdk_device_get_n_keys to symbol list
2010-11-29 11:49:11 -05:00
Matthias Clasen
6a3be062b3
Add GtkSwitch to POTFILES
2010-11-29 11:46:58 -05:00
Matthias Clasen
6210faa070
Updates
2010-11-29 11:43:45 -05:00
Matthias Clasen
2451e6f690
Small doc fixup
2010-11-29 11:25:10 -05:00
Matthias Clasen
99aa90b0bc
Add GtkSwitch to the widget gallery
2010-11-29 11:23:07 -05:00
Matthias Clasen
0ca07a6df7
Add a GtkSwitch
2010-11-29 10:14:21 -05:00
Cosimo Cecchi
134e74177e
app-chooser-button: tabs to spaces
2010-11-29 16:10:58 +01:00
Cosimo Cecchi
232a5c7b3b
app-chooser-button: change the API approach for custom items
...
Introduce a 'custom-item-activated' on the widget, which behaves
similairly to GtkEntryCompletion::action-activated, i.e. is emitted when
a custom item is chosen from the dropdown list.
Clients can use the name provided when adding the item as a detail for
the signal, to get notified when that specific item is activated, or use
the signal without details to get notifications for all custom items.
2010-11-29 16:04:59 +01:00
Emmanuele Bassi
1f71d641e8
switch: Use ATK macros to reduce the amount of code
...
And the insanity.
Reviewed-by: Christian Persch <chpe@gnome.org >
2010-11-29 14:06:02 +00:00
Emmanuele Bassi
9ad31a5a21
switch: Use the right value for comparison
2010-11-29 13:23:28 +00:00
Emmanuele Bassi
ae95cdf8fc
switch: Add accessibility implementation
...
Modelled on GailToggleButton.
https://bugzilla.gnome.org/show_bug.cgi?id=634987
2010-11-29 12:52:10 +00:00
Emmanuele Bassi
044040dfd1
docs: Add GtkSwitch to the API reference
...
https://bugzilla.gnome.org/show_bug.cgi?id=634987
2010-11-29 12:52:10 +00:00
Emmanuele Bassi
0cd0e4091f
Add GtkSwitch, a "light-switch" like widget
...
The GtkSwitch widget is a simple UI control that has two states: on and
off. Toggling between the states is possible by clicking the widget or
by dragging the handle.
https://bugzilla.gnome.org/show_bug.cgi?id=634987
2010-11-29 12:52:10 +00:00
Theppitak Karoonboonyanan
7d0e356946
Updated Thai translation.
2010-11-29 18:56:35 +07:00
Cosimo Cecchi
8ae7993397
app-chooser-button: include gtk-docs for show-dialog-item
2010-11-29 12:25:52 +01:00
Cosimo Cecchi
06f501fa07
app-chooser-button: rename GtkAppChooserComboBox -> GtkAppChooserButton
2010-11-29 12:19:18 +01:00
Tristan Van Berkom
b39521dcf7
Make GtkTreeView tell the column about expand space instead of just assigning column->width.
...
Also modified the api to open up the way for treeview to tell the column
about how much of its size is really used to render the area.
2010-11-29 18:04:47 +09:00
Tristan Van Berkom
5729d2552b
Fix GtkCellAreaBox to not paint a focus rectangle while a cell is currently being edited.
2010-11-29 16:49:34 +09:00
Tristan Van Berkom
626f27f7ed
Changed cell area/renderer "can_focus" semantics to "is_activatable" across the board.
...
This is because focus in treeviews can be given to cells that cannot do anything
with activation (for better keynav), so we dissociate the concept of cell
activation and focusing.
2010-11-29 16:29:09 +09:00
Tristan Van Berkom
dbe026ed1e
Fixed GtkCellAreaBox->focus() to not give focus to cells that are siblings of an intentional focus cell.
2010-11-29 16:20:01 +09:00
Tristan Van Berkom
5f427ff476
Make focus rectangle painted on all cells if the GtkCellAreaBox is requested to paint focus and none of the cells are activatable.
2010-11-29 16:14:46 +09:00
Tristan Van Berkom
87892261e0
Make editable widget fill the entire inner area of the edited cell
...
instead of just the aligned focus area to match previous behaviour
2010-11-29 16:03:53 +09:00
Tristan Van Berkom
865eb60d21
Fixed GtkCellLayout to pack cells via the api when parsing builder input.
2010-11-29 13:03:54 +09:00
Tristan Van Berkom
cad41833a2
Allow minimal implementation of GtkCellLayout
...
Since GtkCellArea delegate does all the work, cell layout widgets
who use a GtkCellArea internally only have to implement the _get_area()
method, this just reduces code to forward the calls over the the internal
cell area.
2010-11-29 13:03:41 +09:00
Tristan Van Berkom
d3aed12b65
Removed cell_layout implementation details in GtkTreeViewColumn in favor of cell_layout->get_area
2010-11-29 13:01:49 +09:00
Tristan Van Berkom
2394f5e49b
Touching up GtkCellArea docs.
2010-11-29 11:02:29 +09:00
Tristan Van Berkom
9ee9081405
Added initial detailed docs for GtkCellArea.
2010-11-29 10:55:50 +09:00
Tristan Van Berkom
c1cbc8790e
Removed gtk_cell_area_context_sum_preferred_width/height apis.
...
Turns out theres not much reason to do this in a separate api,
now we just sum up the sizes of aligned cell groups in GtkCellAreaContextBox
when pushing the group size.
2010-11-29 10:55:50 +09:00
Kristian Rietveld
217f688376
Remove obsolete code line
2010-11-28 21:14:33 +01:00
Kristian Rietveld
cbbff6c5e6
Add temporary hack to get the row heights right
2010-11-28 21:02:36 +01:00
Kristian Rietveld
6568b59e8a
Remove unused retrieval of focus-line-width
2010-11-28 20:40:59 +01:00
Kristian Rietveld
7527350d69
validate_row no longer uses focus-line-width
2010-11-28 20:39:51 +01:00
Emmanuele Bassi
1779ae79a1
rgba: Invert the arguments and improve bindability
...
Since parse() is a method of the Gdk.RGBA class, the GdkRGBA pointer
should be the first argument, and the string the second one, to allow a
more natural binding.
https://bugzilla.gnome.org/show_bug.cgi?id=635879
2010-11-28 19:01:51 +00:00
Kristian Rietveld
6fe9df2f1d
First go at migrating GtkTreeView(Column) to GtkCellArea
...
This is still very much a work in progress, but it renders and more or
less works. I will be fixing up the details in the very near future.
Important: this commit breaks ABI as it modifies the GtkTreeViewColumn
structure in gtktreeviewcolumn.h. This is a sealed structure that needs
to be moved to an internal header file, most likely gtktreeprivate.h.
2010-11-28 19:54:24 +01:00
Kristian Rietveld
05b217ab2a
Allow non-editable cells to receive focus
...
Slight tweak for GtkTreeView, also non-editable cells must be able to receive
focus to get all keyboard navigation right. This will be further tweaked
to get focus siblings to work like focus cells did in GtkTreeView before
refactoring.
2010-11-28 19:54:24 +01:00
Kristian Rietveld
354b3412dd
Available extra space could be less than zero
...
The allocated size, or (horizontally speaking) for-width size, can be
smaller than the sum of all minimum widths. For example when the user
is resizing tree view columns manually.
2010-11-28 19:54:18 +01:00
Matthias Clasen
b0bf2b5202
Avoid delays in starting applications
...
Only query file info once, and don't do it for non-native files, since
that may cause sync network IO.
Bug http://bugzilla.gnome.org/show_bug.cgi?id=635588
2010-11-27 23:12:09 -05:00
Matthias Clasen
289ad41bd1
Fix recursion in the GtkIconView accessible initialization
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634474
2010-11-27 20:56:09 -05:00
Tristan Van Berkom
5df7dab3cf
Changed all the flush apis on GtkCellAreaContext for a single "reset" api.
2010-11-27 16:05:14 +09:00
Tristan Van Berkom
cbc4416c8e
Removing the height_for_width vfuncs on GtkCellAreaContextClass which I forgot to remove.
2010-11-27 15:40:45 +09:00
Tristan Van Berkom
e21c224f28
Fixing GtkCellAreaBox at render time to consider height-for-width when stacked vertically
...
Also bullet-proofing GtkCellAreaBoxContext at allocate time.
2010-11-26 23:44:22 +09:00
Spoiala Marian
ec78fb1821
Updated Romanian translation
2010-11-26 16:03:14 +02:00
Lucian Adrian Grijincu
7c4f20f4e3
Updated Romanian translation
2010-11-26 16:02:41 +02:00
Tristan Van Berkom
08cc318946
Fixed CellAreaScaffold for new gtk_cell_area_context_allocate() api.
2010-11-26 21:38:29 +09:00
Tristan Van Berkom
487223d480
Finally really support rendering of cells in an unallocated context.
...
What this means is basically that a vertically oriented GtkCellAreaBox
will render cells properly even if the height is not constant for every
for of data in the said GtkCellAreaContext (i.e. the height was not allocated
by gtk_cell_area_context_allocate).
This is done completely on the fly and so is much more heavy duty
at render time (considerably slower but not visibly noticable in
lightweight views like GtkTreeMenu). Note that cell alignments
are not possible in an unallocated orientation, each row of data
individually receives only enough space to render the independant
row and no space is reserved for alignments if the size is not
a constant size across rows in the same context.
2010-11-26 21:38:10 +09:00
Tristan Van Berkom
fa3c8f182e
Revert "Removed tons of api that we dont absolutely need in GtkCellAreaContext:"
...
This reverts commit 5f7787ab2e .
2010-11-26 21:37:51 +09:00
Andika Triwidada
4df1214483
Updated Indonesian translation
2010-11-26 12:08:00 +07:00
Bastien Nocera
b850f8bf18
docs: Make docs build after GtkRuler removal
2010-11-26 00:47:55 +00:00
Lucian Adrian Grijincu
24862a5f60
Updated Romanian translation
2010-11-26 01:29:50 +02:00
Lucian Adrian Grijincu
d588f85cc8
Updated Romanian translation (remove windows line endings)
2010-11-26 01:25:14 +02:00
Spoiala Marian
e2e05e8bf3
Updated Romanian translation
2010-11-26 01:24:15 +02:00
Spoiala Marian
e2f6cf4561
Updated Romanian translation
2010-11-26 01:22:40 +02:00
Cosimo Cecchi
ef9543e978
tests: fix indentation
2010-11-25 17:32:13 +01:00
Cosimo Cecchi
67e842be87
app-chooser-combobox: add a method to trigger the GtkAppChooserDialog
...
It's an optional special item in the combobox, turned off by default.
2010-11-25 17:30:01 +01:00
Tristan Van Berkom
7fc7bd613b
Changed GtkCellRendererText to request less than wrap-width if the text is smaller than the wrap-width (or width-chars).
2010-11-25 22:46:55 +09:00
Tristan Van Berkom
2dd2c7ce05
Added gtk_cell_renderer_get_aligned_area() and class vfunc.
...
Since a cell renderer might use more space than the natural
size when recieving expand space it's impossible to know how
much space is actually used to render content.
Adding this virtual method to allow text renderers to implement
it, the base default method uses height-for-width apis and aligns
the cell assuming the renderer uses a fixed size.
This commit removes the similar code from gtkcellarea and
subclasses.
2010-11-25 17:41:26 +09:00
Tristan Van Berkom
5f7787ab2e
Removed tons of api that we dont absolutely need in GtkCellAreaContext:
...
- gtk_cell_area_context_get_height_for_width()
- gtk_cell_area_context_get_width_for_height()
- gtk_cell_area_context_push_height_for_width()
- gtk_cell_area_context_push_width_for_height()
- gtk_cell_area_context_flush_height_for_width()
- gtk_cell_area_context_flush_width_for_height()
- Contextual size changed signal
All of these are not really important for the CellArea to operate
and not of any real consequential value to the user (the user can
accumulate the returned values from height-for-width requests
and do as they please with it).
2010-11-25 16:36:46 +09:00
Tristan Van Berkom
9d0c2f6b37
Make GtkCellAreaBox handle rendering without a previous allocation in the orientation of choice.
...
This is so that treeviews can have some columns oriented vertically and
some horizontally, usually the column will only allocate the areas
width, having vertical columns without fixed row heights just means
it's slower to render.
2010-11-25 16:09:51 +09:00
Tristan Van Berkom
57a94bfb53
Merge branch 'master' into treeview-refactor
2010-11-25 15:07:47 +09:00
Tristan Van Berkom
eb5a500495
Changing GtkBox:fill child property default back to TRUE.
...
Since Havoc's patches introducing the GtkWidget halign/valign
properties, fill should always be TRUE. If the widget should
not fill its allocated space then it should set the halign or
valign properties for that purpose.
This also consequently fixes bug 634592.
2010-11-25 14:37:02 +09:00
Tristan Van Berkom
6716e7c3f1
Fixed GtkMenuShell to deactivate itself at dispose time
...
Since GdkDevice stuff, it seems that destroying an active
menu doesnt get rid of all the device grabery, this fixes
bug 635693.
2010-11-25 14:08:55 +09:00
Matthias Clasen
a498d9a9ba
Coding style fixups
...
This commit adjusts the app chooser code to GTK+ coding style:
- line up prototypes
- remove some excess {}
- remove tabs and trailing whitespace
- add docs
2010-11-24 18:32:05 -05:00
Matthias Clasen
f64448473e
Coding style fixes
2010-11-24 16:50:00 -05:00
Matthias Clasen
964b684455
Improve packing in testappchooser
2010-11-24 16:47:15 -05:00
Matthias Clasen
47308db2ba
Fix reference counting for icons
2010-11-24 16:09:55 -05:00
Milan Bouchet-Valat
2e3935ba9d
Fix missing (transfer) annotations in GDK
...
Mostly missing (transfer none).
2010-11-24 21:37:20 +01:00
Michael Natterer
c00b85bf3f
Bug 565665 - GtkTargetEntry member target should be const char *
2010-11-24 21:01:45 +01:00
Michael Natterer
aaf8530177
gdk: remove GdkDeviceKey and GdkDeviceAxis from the public API
...
move GdkDeviceKey to gdkdevice.c because it's still used there, remove
GdkDeviceAxis entirely.
2010-11-24 20:28:19 +01:00
Michael Natterer
bdf18500ec
gdk: gdk_device_get_n_keys() is now Since: 2.24
2010-11-24 20:16:25 +01:00
Cosimo Cecchi
183d75b812
app-chooser-combobox: make refresh properly work with custom items
...
The refresh implementation leaves the custom items in place, and just
refreshes the recommended applications.
2010-11-24 19:08:17 +01:00
Cosimo Cecchi
2a95707b4c
app-chooser-combobox: add an initial implementation
...
GtkAppChooserCombobox is an implementation of GtkAppChooser inside a
combobox that shows recommended applications for a given content type.
2010-11-24 18:45:42 +01:00
Cosimo Cecchi
627f9b70a7
app-chooser-dialog: add a 'Forget Association' context menu item
2010-11-24 17:12:08 +01:00
Cosimo Cecchi
6b900cf276
app-chooser-widget: add a 'populate-popup' signal for context menus
...
This way applications can append items to the menu, which will
automatically show when there's more than one item in it.
2010-11-24 17:12:04 +01:00
Benjamin Otte
e0fb7a86e5
gtk: Remove GtkRuler
...
It is really bad code, mostly unused and no one stepped up to fix it.
Note that Gtk developers do not object to a ruler widget in priciple,
just to the current implementation. If someone wants to propose a sane
version, please don't hesitate.
https://bugzilla.gnome.org/show_bug.cgi?id=613942
2010-11-24 16:56:10 +01:00
Benjamin Otte
c5e25b1532
gtk: Remove unused variables from build scripts
...
ALL_FILES and INCLUDE_VARIABLES are unused
2010-11-24 16:40:40 +01:00
Benjamin Otte
0c0b1c3a46
gtk: Uncruftify gtk.symbols
2010-11-24 16:39:32 +01:00
Benjamin Otte
fd96b16c15
gdk: Remove unused macros from build
...
Both ALL_FILES and INCLUDE_VARIABLES don't exist anymore
2010-11-24 16:18:46 +01:00
Benjamin Otte
cca530070e
gdk: Clean up gdk.symbols file
...
Remove all the macro madness and sort it alphabetically.
2010-11-24 16:15:47 +01:00
Cosimo Cecchi
783b36398e
tests: remove radio mode from the test
2010-11-24 15:50:08 +01:00
Cosimo Cecchi
067b4ccb33
Revert "open-with-dialog: remove automatic setting of support-for-type"
...
This reverts commit 4cfe121296 .
Conflicts:
gtk/gtkappchooserdialog.c
2010-11-24 15:49:47 +01:00
Tor Lillqvist
4e59750ac0
No fsync on Windows
2010-11-24 14:36:29 +02:00
Tor Lillqvist
290ecb0aba
Fix compilation breakage in gdk/win32
2010-11-24 14:26:53 +02:00
John Ralls
c0aae6644a
Replace references to sealed GdkDevice private variables with accessor calls in quartz.
2010-11-23 16:53:45 -08:00
Mario Blättermann
38b8ab3002
[l10n] Updated German translation
2010-11-23 21:14:15 +01:00
Michael Natterer
fb5dd9f72f
Move all GdkDevice members to private and add one missing accessor
2010-11-23 20:25:13 +01:00
Cosimo Cecchi
abf3b4af07
open-with-widget: make sure to escape the string we use for markup
2010-11-23 18:15:28 +01:00
Cosimo Cecchi
d0c35d63e0
Revert "open-with-widget: don't check if the app supports URIs/files"
...
This reverts commit b432242078 .
2010-11-23 18:10:01 +01:00
Cosimo Cecchi
05bb715c51
app-chooser: rename GtkOpenWith to GtkAppChooser
2010-11-23 17:50:15 +01:00
Cosimo Cecchi
6f0a605891
open-with-dialog: don't show the 'Show More...' button in all mode
2010-11-23 16:53:23 +01:00
Cosimo Cecchi
b432242078
open-with-widget: don't check if the app supports URIs/files
...
Because some apps are broken wrt. this property.
2010-11-23 16:53:23 +01:00
Cosimo Cecchi
e861180a03
open-with-widget: add a show-default property
2010-11-23 16:53:23 +01:00
Cosimo Cecchi
0833894c38
open-with-widget: remove context menu
...
The widget should not modify itself the application list in any way.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
cb934ad868
open-with-widget: remove radio mode
...
It's not useful for now.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
9d550fe42a
open-with-pk: don't show an error if no apps are found
...
gnome-packagekit already shows a message dialog for us.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
04eb875e86
open-with-diaolog: set the default text according to the dialog mode
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
1be137ae9f
open-with-widget: let the default fallback text be customizable
...
We'll set it from the dialog.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
44ef183fa1
tests: update to the new API
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
2cb1b7e891
open-with: move the "Show more applications" button in the dialog
...
It doesn't really belong in the widget now that we have the new states.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
4cfe121296
open-with-dialog: remove automatic setting of support-for-type
...
We don't want to hardcode any kind of policy in these widgets/dialogs from
now on.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
3b6941f087
open-with: add a public _refresh() method
...
This can be useful now that we're splitting some items from the widget.
2010-11-23 16:53:22 +01:00
Cosimo Cecchi
f12ff4b676
open-with-widget: move to a property-based state
...
We can enable on-demand one of the three sections (recommended,
fallback, other apps) or use the special ALL property to display everything
uncategorized.
These properties are also easily bindable from outside.
2010-11-23 16:53:17 +01:00
Cosimo Cecchi
09b8d37b8a
open-with-dialog: use misc_set_alignment instead of widget_set_halign
2010-11-23 16:51:41 +01:00
Cosimo Cecchi
e7194c31a7
open-with-pk: don't set error if the user cancelled the installation
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
9df2c0910d
open-with-dialog: integrate the online capability
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
d4e1dd9734
open-with: add a PackageKit module for online lookup of applications
...
It's implemented with a GIOExtensionPoint, which has two
implementations:
- a dummy one, which just errors out
- a PackageKit one, which looks up for the specified content type using
the PK DBus API and GDBus.
The PK module is optional, and can be compiled out at configure time.
TODO: a Win32 implementation of the module.
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
86a8f99806
open-with-widget: don't forget to set the search column
...
Otherwise find-as-you-type won't work at all.
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
4becd25bf5
open-with-widget: don't sort by name recommended apps
2010-11-23 16:51:40 +01:00
William Jon McCann
9bbbfe3aa8
Using italics here actually introduces more visual clutter than anything
2010-11-23 16:51:40 +01:00
William Jon McCann
370ecf0ee8
Use Related instead of the somewhat jargonny fallback
2010-11-23 16:51:40 +01:00
William Jon McCann
3c7e6cd49c
Use other instead of more
...
More doesn't make sense when there are no apps in the list and
they aren't just more apps they are apps in another category.
2010-11-23 16:51:40 +01:00
William Jon McCann
8ea4faf0d3
The colon is a bit unneccessary and looks a bit ugly
2010-11-23 16:51:40 +01:00
William Jon McCann
1226070b93
Improve wording of no apps text
2010-11-23 16:51:40 +01:00
William Jon McCann
076e851c5f
Add some window border to test open with
2010-11-23 16:51:40 +01:00
William Jon McCann
04452df476
Add a default file to open with test
2010-11-23 16:51:40 +01:00
William Jon McCann
d09550b2d2
Simplify title and heading
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
8b16f73f88
open-with-widget: don't set border in the widget box
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
9a1cd83933
open-with-widget: add support for fallback applications
...
Needs some new API in GIO, which is not yet merged.
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
a443eb8602
open-with-dialog: remove old declarations
2010-11-23 16:51:40 +01:00
Cosimo Cecchi
1bb2a1b9ec
open-with: remove obsolete code
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9150f6b13a
open-with-widget: simplify code a bit
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
a6a56d4194
open-with-widget: add a "Show more applications" button
...
So that we don't always show them all unconditionally in HEADINGS mode.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
7d8e7e5f1d
open-with-widget: make the list more pretty
...
Use bigger icons, with bold names and italic descriptions next to them.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9ffe52c049
open-with-dialog: don't ever show_all()
...
As there might be some elements in the widget that we don't want to
always show.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
254cc6aca6
open-with-widget: add a context menu for recommended entries
...
We can put "Forget association" there, which removes the application
from the recommended list.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
f8a6ac5429
tests: update to new API
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
2f5073fbb3
open-with-dialog: remove the mode from the dialog, we won't use it anymore
...
According to the new design, the dialog should automatically do the
right thing wrt. app association and default handling.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
cf25ec8fa7
open-with: first attempt to split the dialog into a widget + interface
...
Like GtkFileChooser does; GtkOpenWith is a generic interface, which is
now implemented by both GtkOpenWithDialog and GtkOpenWithWidget (and in
the future also by GtkOpenWithComboBox).
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
9d6055d0c8
tests: use new open with mode in the tests
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
a4283d7bab
open-with: turn the show_all_applications boolean into an enum
...
We have three modes of showing applications now:
- RECOMMENDED mode: shows only the recommended applications
- ALL mode: shows all applications, uncategorized
- HEADINGS: shows headings for recommended and other applications
(default).
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
77b5fcfa93
open-with: add docs and integrate with the build GTK+ conventions
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
8c8f7f83ba
open-with: add gtk_open_with_dialog_get_mode()
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
df8ccfb800
open-with: change the API to make it symmetric for GFile or content-type
...
It's much more convenient this way.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
3a6b936573
tests: rewrite the GtkOpenWithDialog test to make it more interactive
...
Now you can play with all the options provided by GtkOpenWithDialog API.
2010-11-23 16:51:39 +01:00
Cosimo Cecchi
accb766db2
open-with: add misc utility API to the dialog
...
- _set/get_show_other_applications() is a way to only display
recommended applications in the dialog
- _set/get_show_set_as_default_button() is a way to control the
"Remember this application" checkbox
We also get rid of he "application-selected" signal, in favour of a
_get_selected_application() API inspired by GtkFileChooser.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
a8cf63cc84
open-with: add xpadding to the treeview renderers
...
We use a GtkCellRenderer hack for this.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
ee9a7a3baf
open-with: cope with NULL GAppInfo
...
It's not that the GAppInfo can actually be NULL, but we use the store to
save headings too, which have no GAppInfo in their rows.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
1d67b4ac26
open-with: don't override the class signal handler, as it's RUN_LAST
...
And explain why in a comment; basically we want our handler to always
run before client code.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
c8ea415873
open-with: don't use gtk_misc_* functions
...
They're so passe'!
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
3d044a7c3e
open-with: add a "show-other-applications" property
...
This is useful for use-cases where showing a list of all the installed
applications can be confusing. We can control that with a property now.
2010-11-23 16:51:38 +01:00
Cosimo Cecchi
be18ca45f0
open-with: initial implementation of GtkOpenWithDialog
2010-11-23 16:51:38 +01:00
Tristan Van Berkom
e53dc3479f
Added GtkCellAreaClass->apply_attributes()
...
Made gtk_cell_area_apply_attributes use a vfunc & signal so that
subclasses might do specialized things picking up attributes from the
model possibly for embedding widgets, and as specially for GtkTreeMenu
to connect to the signal and synchronize the menu sensitivity states
in a more convenient way than going through the GtkCellLayoutDataFunc.
2010-11-23 23:37:58 +09:00
Chris Kühl
fad1bc0de4
tests: Fixed argument naming inconsistancy
2010-11-23 10:49:44 +01:00
Tristan Van Berkom
d56babefb4
Removed cell margin apis and now deal with "focus-line-width".
2010-11-23 16:26:46 +09:00
Colin Walters
6c6b493926
iconcache: Ensure we don't lose data on power loss
...
fsync() should ensure our data hits disk; since corrupt icon
caches break all apps, we need to ensure it's valid.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=635307
2010-11-22 20:49:59 +01:00
William Jon McCann
323df2b280
Make gdk_event_apply_filters safe against changes in filter list
...
An event filter may add or remove filters itself. This patch does
two things to address this case. The first is to take a temporary
reference to the filter while it is being used. The second is
to wait until after the filter function is run before determining
the next node in the list to process. This guards against
changes to the next node. It also does not run functions
that have been marked as removed. Though I'm not sure if this
case can arise.
https://bugzilla.gnome.org/show_bug.cgi?id=635380
2010-11-22 13:16:24 -05:00
Javier Jardón
abe20a7c97
docs: Add private structures to private sections
2010-11-20 21:26:50 +01:00
Javier Jardón
a61d63d607
docs: Add new GtkAssitant API to gtk3-sections
2010-11-20 21:15:00 +01:00
Javier Jardón
5cd64fbd08
docs: Add the new GtkScrollablePolicy API to gtk3-sections
2010-11-20 21:14:41 +01:00
Gheyret T.Kenji
f350c4c1b2
Added UG translation
2010-11-20 11:56:21 +01:00
Kjartan Maraas
85e15a3880
Updated Norwegian bokmål translation
2010-11-20 11:50:08 +01:00
John (J5) Palmieri
f2a187f27a
[gi] add array annotations for DnD related methods
2010-11-19 15:06:40 -05:00
Michael Natterer
bc0e6b2b21
gtk: remove GtkWidget::size-request
...
Fixes Bug 633324 - Stop invoking size-request completely
2010-11-19 19:38:48 +01:00
Martin Pitt
3431f7a2d7
GtkRadioButtons: Mark group arguments as "allow-none"
...
In the current introspection data, the various gtk_radio_button_new_*
constructors take an existing group or widget. These all allow passing a NULL
widget or group list, so that it becomes easy to build a radio button list in a
loop (pass in None the first time, and the previously created button in all
other iterations).
Add the missing "allow-none" tag to the introspection data, so that this will
also eventually work for GIR users. NB that it does not actually work for some
constructors yet (like new_with_label_from_widget()) due to
https://bugzilla.gnome.org/show_bug.cgi?id=561264 .
https://bugzilla.gnome.org/show_bug.cgi?id=635253
2010-11-19 16:29:43 +01:00
Owen W. Taylor
a4d59f7415
Create the icon pixmap with the system visual
...
Since what we are doing is turning an icon with alpha into a
no-alpha icon + mask for legacy window managers, it makes more sense
to use the system visual than the window's visual, which might
be ARGB.
https://bugzilla.gnome.org/show_bug.cgi?id=634821
2010-11-19 09:29:43 -05:00
Evan Martin
d3f1312c98
docs: Copy GtkSizeGroup ownership discussion to GtkWindowGroup
...
The two behave identically, so the text is the same with s/size/window/.
2010-11-19 09:24:02 -05:00
Michael Natterer
c2fd7e8350
gtk: draw the frame around the spinbutton's buttons conditionally
...
(depending on GtkEntry::has-frame)
2010-11-19 14:55:47 +01:00
Javier Jardón
39f5740763
configure: define GTK+ version before AC_INIT
...
So the gtk_version varibale will be defined
2010-11-19 09:02:17 +01:00
Javier Jardón
4e3db2e3a8
gtkcombobox: Use accessor functions to access GtkTreeViewColumn
2010-11-19 08:38:12 +01:00
Javier Jardón
224ce2cf6c
gtktreeview: Use accessor functions to access GtkTreeViewColumn
2010-11-19 08:38:12 +01:00
Javier Jardón
c4be956473
gtkentry: move public members to private structure
2010-11-19 08:38:12 +01:00
Javier Jardón
f2abd656f6
gail: Use accessor functions to access GtkEntry
...
Also, we can't access entry->preedit now. Commented that code until
some gail expert can fix it
2010-11-19 06:15:27 +01:00
Javier Jardón
8c941d2b4e
Add _gtk_entry_get_im_context() internal accessor
...
It's needed by gtktreeview
2010-11-19 06:15:27 +01:00
Javier Jardón
fb3429e507
gtkcombobox: Do not access GtkEntry internals
...
It's not needed anymore
2010-11-19 06:15:27 +01:00
Javier Jardón
9fa0edd928
gail: we cant access button->in_button directly now.
...
Commented some code until some gail expert can fix this.
2010-11-19 06:15:27 +01:00
Javier Jardón
dec57f8ce9
Create a private header to access some GtkButton variables
2010-11-19 06:15:26 +01:00
Javier Jardón
c295ab0943
gtktbutton: Move public members to private structure
2010-11-19 06:15:26 +01:00
Javier Jardón
9f16f99358
docs: Improve cross-referencing in the migration guide
2010-11-19 04:44:42 +01:00
Javier Jardón
29fc179a89
gtkplug: Do not leak in gtk_plug_realize()
...
Indeed, we should check for window->wmclass_name
Reported by Guillaume Desmottes in bug
https://bugzilla.gnome.org/show_bug.cgi?id=635175
2010-11-18 17:52:18 +01:00
Tristan Van Berkom
c03a3ca601
Fixing GtkScrolledWindow inconsistent scrollbar visibility.
...
Also removing the hack to prevent hangs which is properly fixed by
the preceeding commit.
2010-11-19 00:53:19 +09:00
Tristan Van Berkom
f20ac5792f
Fixing hangs with GtkScrolledWindow
...
Now gtk_widget_size_allocate() unsets the resize_needed flags
before returning, essentially this means that any widget that
has a queued resize and is allocated before resize time, including
queued resizes from inside a size_allocate() method will be
cancelled.
2010-11-19 00:53:13 +09:00
Michael Natterer
881282e055
gtk: honor entry->has_frame again draw the frame conditionally
...
when GtkEntry had visible windows, it was never noticed that we always
draw the frame, because the text_area window would cover it if
draw_frame was FALSE.
2010-11-18 01:06:57 +01:00
Michael Natterer
3ec8daa66c
gtk: draw the progress only on the text area
...
so it doesn't extend under GtkSpinButton's buttons.
2010-11-18 01:06:57 +01:00
Javier Jardón
4782804b9d
demos: Replace size_request by get_preferred_width/height
2010-11-17 23:58:53 +01:00
Javier Jardón
f427d6998d
gtkoffscreenbox.c: Replace size_request by get_preferred_width/height
2010-11-17 23:58:53 +01:00
Javier Jardón
10d5686fe1
docs: Move Height-for-width geometry management virtual methods docs
2010-11-17 23:58:26 +01:00
Jordi Mas
ad2209135d
Fix for Catalan translation
2010-11-16 19:39:20 -05:00
Federico Mena Quintero
b8cde53350
bgo#634558 - filechooser - Actually focus the Search entry when selecting the Search shortcut
...
Signed-off-by: Federico Mena Quintero <federico@novell.com >
2010-11-16 10:58:16 -06:00
John (J5) Palmieri
6ebc15028b
[gi] add "array" annotations to GtkAboutDialog methods
...
* set_authors, set_documenters and set_artists required the array annotation
to work properly
2010-11-16 11:07:20 -05:00
Tristan Van Berkom
7105d02a13
Merge branch 'master' into treeview-refactor
2010-11-16 16:21:04 +09:00
Javier Jardón
446c0fd1ad
gtkmain: Remove deprecated gtk_init_add() function
...
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-11-16 16:20:49 +09:00
Javier Jardón
d5eee0d1bd
Deprecate GtkCallbackMarshal and GtkFunction
...
As they're only used by already deprecated API
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-11-16 16:20:49 +09:00
Javier Jardón
a512143bab
GtkArg is deprecated since 2.2
2010-11-16 16:20:49 +09:00
Javier Jardón
a5ab0a4c84
docs: Add cross-reference in GtkAlign docs
2010-11-16 16:20:49 +09:00
Javier Jardón
8809e46a41
docs: Fix a typo in gtk_button_set_alignment() docs
2010-11-16 16:20:49 +09:00
Javier Jardón
70bb3776f0
docs: Remove template of unused functions
2010-11-16 16:20:49 +09:00
Javier Jardón
ccd740f1b6
docs: Move documentation to inline comments: event_structs
...
All the GDK documentation is now moved to inline comments
2010-11-16 16:20:49 +09:00
Javier Jardón
1cbba3fae2
docs: Move documentation to inline comments: x_interaction
2010-11-16 16:20:49 +09:00
Javier Jardón
7d12d2a649
docs: Move documentation to inline comments: drawing
2010-11-16 16:20:48 +09:00
Javier Jardón
dd2db852cc
docs: Move documentation to inline comments: gdkthreads
2010-11-16 16:20:48 +09:00
Javier Jardón
7524d5fcbe
docs: Move documentation to inline comments: gdkevents
2010-11-16 16:20:48 +09:00
Javier Jardón
4d6c033d16
docs: Move documentation to inline comments: properties
2010-11-16 16:20:48 +09:00
Javier Jardón
7090aa1e1b
docs: Move documentation to inline comments: gdkselection
2010-11-16 16:20:48 +09:00
Javier Jardón
4593df1ef5
docs: Move documentation to inline comments: gdkvisual
2010-11-16 16:20:48 +09:00
Javier Jardón
2adf427467
docs: Move documentation to inline comments: gdkpango
2010-11-16 16:20:48 +09:00
Javier Jardón
1b5f0d5968
docs: Move documentation to inline comments: gdkcursor
2010-11-16 16:20:48 +09:00
Bastien Nocera
e85c0f63fb
gdk: Add big fat warning about updating XSettings
...
There's a tool to see if we forgot to update the gdk_settings_map
array, or got the offsets wrong. Mention those above the XSettings
list.
2010-11-16 16:20:48 +09:00
Bastien Nocera
038fb4b7e9
gdk: Update gdk_settings_map for blink timeout to work
...
gdk_settings_map needs to be updated when gdk_settings_names is changed,
and it's easier to add the setting at the end, so we don't need to
recalculate everything.
Really fixing:
https://bugzilla.gnome.org/show_bug.cgi?id=634697
2010-11-16 16:20:48 +09:00
John (J5) Palmieri
0d07cba436
[gi] add "out" annotations to gtk_tree_store_sort_column_id params
2010-11-16 16:20:48 +09:00
Petr Kovar
1e3f7ba162
Update Czech translation
2010-11-16 16:20:48 +09:00
Javier Jardón
4f92875bb1
docs: gdkrgba: Add "Since: 3.0" tags
2010-11-16 16:20:47 +09:00
Javier Jardón
40b7a916a8
docs: Remove GdkPixmap template
2010-11-16 16:20:47 +09:00
Javier Jardón
2909edb3e7
docs: Move documentation to inline comments: general
2010-11-16 16:20:47 +09:00
Javier Jardón
145fe4bdc0
docs: Move documentation to inline comments: gdkkeys
2010-11-16 16:20:47 +09:00
Javier Jardón
0b61aaacd1
docs: move documentation to inline comments: gdktesting
2010-11-16 16:20:47 +09:00
Javier Jardón
209afbbf17
docs: Move documentation to inline comments: gdkscreen
2010-11-16 16:20:47 +09:00
Javier Jardón
1a1c4be6c3
docs: Move documentation to inline comments: gdkdisplaymanager
2010-11-16 16:20:47 +09:00
Javier Jardón
236f15c3a9
docs: Move documentation to inline comments: gdkdisplay
2010-11-16 16:20:47 +09:00
Javier Jardón
bb218b08e9
docs: Move documentation to inline comments: gdkapplaunchcontext
2010-11-16 16:20:47 +09:00
Jordi Mas
3166767c36
Fixes wrong translation for Catalan
2010-11-16 16:20:47 +09:00
Bruce Cowan
bad8d0b8e6
Updated British English translation
2010-11-16 16:20:47 +09:00
Carlos Garcia Campos
a00cd60540
docs: Mention that tooltip_column text should be escaped in GtkIconView
2010-11-16 16:20:46 +09:00
Javier Jardón
333ff7dbfc
docs: Do not refer to deprecated GNOME2 porting guide
...
But to the related sections of Pango manual
2010-11-16 16:20:46 +09:00
Javier Jardón
abb98246ff
docs: Update URL of some documentation links
...
http://developer.gnome.org -> http://library.gnome.org
2010-11-16 16:20:46 +09:00
Gheyret T.Kenji
cb1ef69b12
Added UG translation
2010-11-16 16:20:46 +09:00
Gabor Kelemen
1dd7424f0c
Updated Hungarian translation
2010-11-16 16:20:46 +09:00
Tristan Van Berkom
b0919b2058
Added "cell-packing" property GtkBuildable parsing to GtkCellLayout
...
Added gtk_cell_layout_get_area() iface vfunc and use that to apply
packing cell properties to the child renderers when parsing from
GtkBuilder.
2010-11-16 15:11:18 +09:00
Javier Jardón
70d95f04e7
gtkmain: Remove deprecated gtk_init_add() function
...
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-11-16 06:54:01 +01:00
Javier Jardón
77d6bd12b9
Deprecate GtkCallbackMarshal and GtkFunction
...
As they're only used by already deprecated API
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-11-16 06:54:01 +01:00
Javier Jardón
5f3d819746
GtkArg is deprecated since 2.2
2010-11-16 06:43:16 +01:00
Javier Jardón
d45fd566b1
docs: Add cross-reference in GtkAlign docs
2010-11-16 03:51:53 +01:00
Javier Jardón
9e78176685
docs: Fix a typo in gtk_button_set_alignment() docs
2010-11-16 03:37:42 +01:00
Javier Jardón
2e2effbb6c
docs: Remove template of unused functions
2010-11-15 21:08:19 +01:00
Javier Jardón
b204995c6d
docs: Move documentation to inline comments: event_structs
...
All the GDK documentation is now moved to inline comments
2010-11-15 21:08:11 +01:00
Javier Jardón
e2cfecf813
docs: Move documentation to inline comments: x_interaction
2010-11-15 21:06:35 +01:00
Javier Jardón
a384b35bb5
docs: Move documentation to inline comments: drawing
2010-11-15 21:06:35 +01:00
Javier Jardón
b63800bd33
docs: Move documentation to inline comments: gdkthreads
2010-11-15 21:06:35 +01:00
Javier Jardón
4400f997a8
docs: Move documentation to inline comments: gdkevents
2010-11-15 21:06:35 +01:00
Javier Jardón
d2915ed9d1
docs: Move documentation to inline comments: properties
2010-11-15 21:06:34 +01:00
Javier Jardón
2f06ec02be
docs: Move documentation to inline comments: gdkselection
2010-11-15 18:24:31 +01:00
Javier Jardón
6bfdecef7a
docs: Move documentation to inline comments: gdkvisual
2010-11-15 18:24:31 +01:00
Javier Jardón
9a8fcfa65a
docs: Move documentation to inline comments: gdkpango
2010-11-15 18:24:31 +01:00
Javier Jardón
cc13047315
docs: Move documentation to inline comments: gdkcursor
2010-11-15 18:24:31 +01:00
Bastien Nocera
157ec27a9a
gdk: Add big fat warning about updating XSettings
...
There's a tool to see if we forgot to update the gdk_settings_map
array, or got the offsets wrong. Mention those above the XSettings
list.
2010-11-15 17:15:19 +00:00
Bastien Nocera
6b23787d5a
gdk: Update gdk_settings_map for blink timeout to work
...
gdk_settings_map needs to be updated when gdk_settings_names is changed,
and it's easier to add the setting at the end, so we don't need to
recalculate everything.
Really fixing:
https://bugzilla.gnome.org/show_bug.cgi?id=634697
2010-11-15 17:15:19 +00:00
John (J5) Palmieri
a3da018a64
[gi] add "out" annotations to gtk_tree_store_sort_column_id params
2010-11-15 12:14:43 -05:00
Petr Kovar
f69a0354bb
Update Czech translation
2010-11-15 06:07:55 +01:00
Javier Jardón
9677dc0b60
docs: gdkrgba: Add "Since: 3.0" tags
2010-11-15 06:04:06 +01:00
Javier Jardón
d8e74867e4
docs: Remove GdkPixmap template
2010-11-15 05:39:25 +01:00
Javier Jardón
1268c17983
docs: Move documentation to inline comments: general
2010-11-15 05:35:40 +01:00
Javier Jardón
2cd0302e64
docs: Move documentation to inline comments: gdkkeys
2010-11-15 05:19:33 +01:00
Javier Jardón
44ff1d86b4
docs: move documentation to inline comments: gdktesting
2010-11-15 04:12:57 +01:00
Javier Jardón
5f89dea7f1
docs: Move documentation to inline comments: gdkscreen
2010-11-15 04:12:57 +01:00
Javier Jardón
133dfe55f3
docs: Move documentation to inline comments: gdkdisplaymanager
2010-11-15 04:12:57 +01:00
Javier Jardón
ca480f3771
docs: Move documentation to inline comments: gdkdisplay
2010-11-15 03:37:21 +01:00
Tristan Van Berkom
4ceb25e011
More documentation in gtkcellarea.c
2010-11-15 11:23:55 +09:00
Javier Jardón
8ca6882e88
docs: Move documentation to inline comments: gdkapplaunchcontext
2010-11-15 03:18:45 +01:00
Jordi Mas
466931cb9a
Fixes wrong translation for Catalan
2010-11-14 14:54:33 -05:00
Bruce Cowan
4083e49fe2
Updated British English translation
2010-11-14 14:35:29 +00:00
Tristan Van Berkom
92dc7f31d4
Cleaned up cell editing api in GtkCellArea
...
Now layouting widgets need only concern themselves with
the "add-editable" and "remove-editable" signals, also added
lots of gtk-doc comments.
2010-11-14 23:33:26 +09:00
Carlos Garcia Campos
3b90a21763
docs: Mention that tooltip_column text should be escaped in GtkIconView
2010-11-14 12:39:48 +01:00
Javier Jardón
ac94503180
docs: Do not refer to deprecated GNOME2 porting guide
...
But to the related sections of Pango manual
2010-11-14 01:56:14 +01:00
Javier Jardón
97862638ec
docs: Update URL of some documentation links
...
http://developer.gnome.org -> http://library.gnome.org
2010-11-14 01:24:19 +01:00
Gheyret T.Kenji
0f3b0e14e4
Added UG translation
2010-11-13 22:39:03 +01:00
Gabor Kelemen
fab3fcf222
Updated Hungarian translation
2010-11-13 16:48:38 +01:00
Tristan Van Berkom
1bca6349fb
Mass rename GtkCellAreaIter --> GtkCellAreaContext
2010-11-13 16:23:01 +09:00
Khaled Hosny
bef9559089
Updated Arabic translation
2010-11-13 15:23:34 +09:00
Javier Jardón
df5286f11e
examples/gtkdial: Do not use size_request vfunc
2010-11-13 15:23:34 +09:00
Matthias Clasen
c68a4ad4f6
Fix a crash in gnome-terminal when using a compositor
...
In this case, gnome-terminal sets an RGBA visual on its window,
and we need to be careful when creating the icon pixmap, to create
the pixmap with the same depth as the visual, or we risk a BadMatch
from XRenderCreatePicture deep inside cairo.
2010-11-13 15:23:34 +09:00
Bastien Nocera
7d11c16b17
gdk: Add XSetting for "gtk-cursor-blink-timeout"
...
Otherwise the blink timeout is the one used by default in GTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=634697
2010-11-13 15:23:34 +09:00
Matthias Clasen
ed0aff4792
Remove no longer existing files
...
The gdk-pixbuf VC project files are gone, so don't reference
them from Makefile.am anymore.
2010-11-13 15:23:33 +09:00
Matthias Clasen
52adead88f
Really get rid of _gtk_cell_renderer_calc_offset
2010-11-13 15:23:33 +09:00
Owen W. Taylor
342d897b58
Pass the correct GDK library when working around Debian libtool
...
We need to link against gdk/libgdk-x11-3.0.la, not
gdk/x11/libgdk-x11.la, which is the convenience library containing
the backend functions.
2010-11-13 15:23:33 +09:00
Chao-Hsiung Liao
88c1543845
Updated Traditional Chinese translation (Hong Kong and Taiwan)
2010-11-13 15:23:33 +09:00
Murray Cumming
131da8507b
gtk_dialog_get_content_area(): Fix the docs.
...
This returns a GtkBox now, not a GtkVBox.
Language bindings may need to adjust their APIs accordingly.
2010-11-13 15:23:32 +09:00
Murray Cumming
233afbdab1
gtkdialog.c: Remove trailing whitespace
2010-11-13 15:23:32 +09:00
Marek Kasik
0fe9e481dd
Print files to Documents directory by default
...
Set default directory to G_USER_DIRECTORY_DOCUMENTS
when printing to file backend and fallback to the current
directory when it is not available (#633896 ).
2010-11-13 15:23:32 +09:00
Chun-wei Fan
9d52a9d920
gtk.vcprojin: include .rc file
2010-11-13 15:23:32 +09:00
Chun-wei Fan
cf34b804a4
gtk+.sln: Remove GDK-Pixbuf compilation stuff
...
GDK-Pixbuf is in a package of its own, so remove the project files from here
2010-11-13 15:23:32 +09:00
Chun-wei Fan
2d84d1cb38
gtk+.vsprops: Update for GTK-3.0
...
-removed headers that ceased to exist
-bump API version
-made up for new headers that is to be installed
-gtk-demo program and related sources/data copied to bin/gtk3-demo
2010-11-13 15:23:32 +09:00
Chun-wei Fan
14a40180cd
gtklabel.c: Added hack for rint()
2010-11-13 15:23:31 +09:00
Chun-wei Fan
25c2f4b780
gtkwocket-win32.c Added missing include to avoid C4013
2010-11-13 15:23:31 +09:00
Chun-wei Fan
2e0278c752
gtk: fix C99-style variable declarations in various sources
2010-11-13 15:23:31 +09:00
John (J5) Palmieri
4e47110120
[introspection] mark invokers for gtkeditable vfuncs
2010-11-13 15:23:31 +09:00
John (J5) Palmieri
b17a25142f
[introspection] add transfer none annotation to gdk_keyval_name return
...
* moved docs from .sgml file to th e.c file so we can add the annotation
2010-11-13 15:23:31 +09:00
Matthias Clasen
fdde029f06
bump version
2010-11-13 15:23:31 +09:00
Matthias Clasen
3e9d7a30b0
fix up accidental exports
2010-11-13 15:23:30 +09:00
Matthias Clasen
b2ed95dd11
Another attempt at scrolledwindow size allocation
...
Patches taken from bug 633278.
2010-11-13 15:23:30 +09:00
Colin Walters
2facb830fa
introspection: Explicitly include libgdk-x11.la when scanning gtk
...
Debian changed the behavior of libtool to not follow dependencies
from .la files. Fortunately, the scanner explicitly looks at the
.la files to see if they're really shared; if not it doesn't add
them to the .gir, so there's no cost.
https://bugzilla.gnome.org/show_bug.cgi?id=633405
2010-11-13 15:23:30 +09:00
Matthias Clasen
79042e31a6
Rewrap text in gtk-demo
2010-11-13 15:23:30 +09:00
Matthias Clasen
70e161d2a2
Fix the doc build
2010-11-13 15:23:30 +09:00
Matthias Clasen
0a015f1bdb
Don't export _gtk_cell_renderer_calc_offset
...
This is just a private convenience function, and exporting _-prefixed
functions doesn't work with our libtool setup. Just do the 3 line
calculation in gail.
2010-11-13 15:23:29 +09:00
Tristan Van Berkom
e7c4ede64c
Fixed some background area related bugs in CellAreaScaffold, cleanup testcellarea
2010-11-13 15:09:36 +09:00
Khaled Hosny
d129c2616b
Updated Arabic translation
2010-11-13 03:20:47 +02:00
Javier Jardón
c466d5ee65
examples/gtkdial: Do not use size_request vfunc
2010-11-13 01:43:46 +01:00
Matthias Clasen
45498417c8
Fix a crash in gnome-terminal when using a compositor
...
In this case, gnome-terminal sets an RGBA visual on its window,
and we need to be careful when creating the icon pixmap, to create
the pixmap with the same depth as the visual, or we risk a BadMatch
from XRenderCreatePicture deep inside cairo.
2010-11-12 19:22:49 -05:00
Bastien Nocera
7a52b1df67
gdk: Add XSetting for "gtk-cursor-blink-timeout"
...
Otherwise the blink timeout is the one used by default in GTK+.
https://bugzilla.gnome.org/show_bug.cgi?id=634697
2010-11-12 19:11:21 +00:00
Tristan Van Berkom
eda16a096d
Fixed some errors in testcellarea testcases.
2010-11-12 23:09:57 +09:00
Tristan Van Berkom
51b75ef44b
Added tests to reflect proper treatment of background area.
...
CellAreaScaffold now also reflects how cell_area should be
passed to gtk_cell_area_activate() and gtk_cell_area_event()
and how the background area for gtk_cell_area_renderer() should
be created.
2010-11-12 21:55:28 +09:00
Tristan Van Berkom
47d55c4a4b
Added orientation control to testcellarea's focus/editing test
2010-11-12 19:44:45 +09:00
Tristan Van Berkom
38666b406f
Ironed out the kinks in editing apis for GtkCellArea
...
- Added gtk_cell_area_aligned_cell_area() to get the aligned
internal area use by a cell (for focus painting and for
event areas).
- Provide the event area in "editing-started" signal
- Fire "remove-editable" when editing is canceled by the user,
an implementing layouting widget need only catch "editing-started"
and "remove-editable" now.
- CellAreaScaffold/testcellarea now edit textrenderers.
2010-11-12 19:25:07 +09:00
Tristan Van Berkom
7e821aa980
Distribute portions of GtkCellArea:render() background_area argument to cells
...
Also added gtk_cell_area_get/set_style_detail() to set the string to be
used by the area in gtk_paint_* functions.
2010-11-12 14:06:00 +09:00
Matthias Clasen
aff1ca2d5c
Remove no longer existing files
...
The gdk-pixbuf VC project files are gone, so don't reference
them from Makefile.am anymore.
2010-11-11 14:12:04 -05:00
Matthias Clasen
5beb96e1db
Really get rid of _gtk_cell_renderer_calc_offset
2010-11-11 14:09:29 -05:00
Tristan Van Berkom
33db66e728
Added event handling to GtkCellAreaBox
...
Now GtkCellAreaBox handles the click event to activate renderers
and checks if the area is in a sibling of a focus renderer, possibly
activating the proper focus sibling renderer.
Also GtkCellArea gains a "focus-changed" signal to allow it to
change the currently focused row according to the button events.
2010-11-11 18:13:54 +09:00
Tristan Van Berkom
f330b40521
GtkCellArea now paints focus on cells
...
Added concept of "Focus Siblings" to GtkCellArea so that some
static text/icon may be included in the focus/click area of
an activatable or editable cell, implemented focus drawing
as well, updated testcellarea to reflect the changes.
2010-11-11 16:13:06 +09:00
Owen W. Taylor
63913ffe54
Pass the correct GDK library when working around Debian libtool
...
We need to link against gdk/libgdk-x11-3.0.la, not
gdk/x11/libgdk-x11.la, which is the convenience library containing
the backend functions.
2010-11-10 17:10:45 -05:00
Tristan Van Berkom
524110f902
Focus driving in GtkCellArea now works.
...
- Fixed focus driving in GtkCellArea with refined apis
- Added gtk_cell_area_activate() to be called when the area has focus
(to activate or start editing the focused cell)
- Added support for this in cellareascaffold
- testcellarea now watches the "toggled" signal for a toggle renderer
and updates the model state accordingly, this currently works with
keyboard navigation, however focus is still not painted on cells.
2010-11-10 22:25:13 +09:00
Chao-Hsiung Liao
b96d100637
Updated Traditional Chinese translation (Hong Kong and Taiwan)
2010-11-10 19:37:39 +08:00
Murray Cumming
7c21974009
gtk_dialog_get_content_area(): Fix the docs.
...
This returns a GtkBox now, not a GtkVBox.
Language bindings may need to adjust their APIs accordingly.
2010-11-10 11:35:34 +01:00
Murray Cumming
ba4dde9b45
gtkdialog.c: Remove trailing whitespace
2010-11-10 11:35:09 +01:00
Tristan Van Berkom
4643d90c5f
Committing new (and simplified) focus handling approach for GtkCellArea.
...
Also adding missing file cellareascaffold.h
2010-11-10 19:17:06 +09:00
Marek Kasik
bbd0e73c1b
Print files to Documents directory by default
...
Set default directory to G_USER_DIRECTORY_DOCUMENTS
when printing to file backend and fallback to the current
directory when it is not available (#633896 ).
2010-11-10 10:48:17 +01:00
Chun-wei Fan
02cbc516eb
gtk.vcprojin: include .rc file
2010-11-10 10:30:03 +08:00
Chun-wei Fan
7e47a5a18a
gtk+.sln: Remove GDK-Pixbuf compilation stuff
...
GDK-Pixbuf is in a package of its own, so remove the project files from here
2010-11-10 10:28:02 +08:00
Chun-wei Fan
66edc82942
gtk+.vsprops: Update for GTK-3.0
...
-removed headers that ceased to exist
-bump API version
-made up for new headers that is to be installed
-gtk-demo program and related sources/data copied to bin/gtk3-demo
2010-11-10 10:25:05 +08:00
Chun-wei Fan
8c674c5d84
gtklabel.c: Added hack for rint()
2010-11-10 10:21:08 +08:00
Chun-wei Fan
086bfc723e
gtkwocket-win32.c Added missing include to avoid C4013
2010-11-10 10:15:45 +08:00
Chun-wei Fan
ce3680fe15
Merge ssh://git.gnome.org/git/gtk+
2010-11-10 10:14:13 +08:00
Chun-wei Fan
76dc9e6b53
gtk: fix C99-style variable declarations in various sources
2010-11-10 10:08:14 +08:00
John (J5) Palmieri
eb34f3350f
[introspection] mark invokers for gtkeditable vfuncs
2010-11-09 21:00:14 -05:00
John (J5) Palmieri
cdf517d1c8
[introspection] add transfer none annotation to gdk_keyval_name return
...
* moved docs from .sgml file to th e.c file so we can add the annotation
2010-11-09 21:00:14 -05:00
Matthias Clasen
bc070b9d24
bump version
2010-11-09 15:24:50 -05:00
Matthias Clasen
6929db78a3
fix up accidental exports
2010-11-09 13:51:55 -05:00
Matthias Clasen
185bb2837b
Another attempt at scrolledwindow size allocation
...
Patches taken from bug 633278.
2010-11-09 13:19:42 -05:00
Colin Walters
4acf92c08d
introspection: Explicitly include libgdk-x11.la when scanning gtk
...
Debian changed the behavior of libtool to not follow dependencies
from .la files. Fortunately, the scanner explicitly looks at the
.la files to see if they're really shared; if not it doesn't add
them to the .gir, so there's no cost.
https://bugzilla.gnome.org/show_bug.cgi?id=633405
2010-11-09 11:37:25 -05:00
Matthias Clasen
b3a4095d55
Rewrap text in gtk-demo
2010-11-09 11:20:17 -05:00
Matthias Clasen
6613fc7b36
Fix the doc build
2010-11-09 08:16:33 -05:00
Matthias Clasen
88366ad5fe
Don't export _gtk_cell_renderer_calc_offset
...
This is just a private convenience function, and exporting _-prefixed
functions doesn't work with our libtool setup. Just do the 3 line
calculation in gail.
2010-11-09 08:15:06 -05:00
Matthias Clasen
c51bfe8757
Bump glib req. to 2.27.3
2010-11-09 16:18:16 +09:00
Chun-wei Fan
fb1a9d8c0d
gdk.vcprojin: Include .rc file and fixed linker settings
...
-Added the missed gdk.rc file
-Made up for missed libraries required for link for configs other than Debug|win32
2010-11-09 16:18:16 +09:00
Chun-wei Fan
2fd00b9af3
gtk-demo.vcproj: set linker settings to be consistent
...
-Made up for the additional dependencies for setups other than Debug|Win32 (the correct setting)
-Made Subsystem="1" for all setups like Debug|Win32 (the correct setting)
2010-11-09 16:18:16 +09:00
Chun-wei Fan
5c52344551
gtk+.vsprops: Removed GdkPixbuf stuff and made up for missed headers
...
-Removed the GdkPixbuf stuff as it is now in a package of its own and added
it as a dependent library here
-Made up for the headers missed in the installation stage for GTK+/GDK
2010-11-09 16:18:16 +09:00
Matthias Clasen
67112dae94
NEWS for 2.91.4
2010-11-09 16:18:15 +09:00
Matthias Clasen
f991f88d3f
Fix entry completion window sizing
...
I don't think we are at the end of scrolledwindow tweaks yet,
but this will make things work for now, as they used to.
https://bugzilla.gnome.org/show_bug.cgi?id=633670
2010-11-09 16:18:15 +09:00
Ryan Lortie
3f2281f8c6
pixbuf engine: remove only use of GCache in Gtk
...
We'll be deprecating GCache in GLib soon.
2010-11-09 16:18:15 +09:00
Patrick Bernaud
8eb7181979
docs: Move documentation to inline comments: GtkPaned
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634338
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-09 16:18:15 +09:00
Patrick Bernaud
a00a0fb209
docs: Move documentation to inline comments: GtkProgressBar
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634339
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-09 16:18:15 +09:00
Patrick Bernaud
312fd9efc0
docs: Move documentation to inline comments: GtkPageSetup
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634340
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-09 16:18:15 +09:00
Tristan Van Berkom
f85938a211
Changed testcellarea
...
Changed testcellarea to watch the iter for size changes and queue resizes
instead of explicitly queueing resizes when controls change.
2010-11-09 14:09:47 +09:00
Tristan Van Berkom
e03b280757
Adding expand/align controls to testcellarea.
2010-11-09 13:50:53 +09:00
Tristan Van Berkom
c932beef4b
Fixing GtkCellAreaBox to rebuild groups when align/expand child properties change.
2010-11-09 13:50:30 +09:00
Tristan Van Berkom
2a3ae8da3a
Added orientation control on testcellarea test
...
shows vertical orientation of cells lined up horizontally instead
of horizontal orientation of cells stacked up vertically.
2010-11-09 13:23:12 +09:00
Tristan Van Berkom
368cded84d
Fixed a bug in GtkCellAreaBoxIter when allocating vertically.
2010-11-09 13:22:44 +09:00
Matthias Clasen
f114efcd10
Bump glib req. to 2.27.3
2010-11-08 23:20:38 -05:00
Chun-wei Fan
3aabef6942
gdk.vcprojin: Include .rc file and fixed linker settings
...
-Added the missed gdk.rc file
-Made up for missed libraries required for link for configs other than Debug|win32
2010-11-09 12:13:17 +08:00
Chun-wei Fan
2fccd515f6
gtk-demo.vcproj: set linker settings to be consistent
...
-Made up for the additional dependencies for setups other than Debug|Win32 (the correct setting)
-Made Subsystem="1" for all setups like Debug|Win32 (the correct setting)
2010-11-09 12:06:34 +08:00
Chun-wei Fan
1b3cc80df8
gtk+.vsprops: Removed GdkPixbuf stuff and made up for missed headers
...
-Removed the GdkPixbuf stuff as it is now in a package of its own and added
it as a dependent library here
-Made up for the headers missed in the installation stage for GTK+/GDK
2010-11-09 11:40:51 +08:00
Matthias Clasen
f718f1bee6
NEWS for 2.91.4
2010-11-08 21:20:02 -05:00
Matthias Clasen
1ddf183bac
Fix entry completion window sizing
...
I don't think we are at the end of scrolledwindow tweaks yet,
but this will make things work for now, as they used to.
https://bugzilla.gnome.org/show_bug.cgi?id=633670
2010-11-08 18:39:02 -05:00
Ryan Lortie
3ecc361f97
pixbuf engine: remove only use of GCache in Gtk
...
We'll be deprecating GCache in GLib soon.
2010-11-08 18:17:48 -05:00
Patrick Bernaud
76ba033f59
docs: Move documentation to inline comments: GtkPaned
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634338
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 23:22:03 +01:00
Patrick Bernaud
6a93e3bbe1
docs: Move documentation to inline comments: GtkProgressBar
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634339
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 23:21:57 +01:00
Patrick Bernaud
692024940c
docs: Move documentation to inline comments: GtkPageSetup
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=634340
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 23:21:49 +01:00
Tristan Van Berkom
85d6aa1627
Added test and scaffolding widget for GtkCellArea.
2010-11-09 01:26:38 +09:00
Tristan Van Berkom
e5e507e1d4
Added GtkCellArea classes to gtk.h and fixed a remainig rendering bug.
2010-11-09 01:25:45 +09:00
Tristan Van Berkom
92b9f432dd
Fixed initial bugs in GtkCellArea implementation, starting to render
...
Tested all of this with some scaffolding code, test case comming soon.
2010-11-08 17:43:27 +09:00
Tristan Van Berkom
0336838366
Implemented focus handling in GtkCellAreaBox
...
Now when the GtkCellAreaBox receives key events it cycles
the currently focused cell to the next focusable cell in the box
while observing the navigation direction, it then emits "focus-leave"
when hitting the boundries of the area.
2010-11-08 11:31:03 +09:00
Tristan Van Berkom
09e3d9d3aa
Added gtk_cell_area_stop_editing to allow explicit stopping of cell editing.
2010-11-08 11:31:03 +09:00
Tristan Van Berkom
cbe1154e51
Added gtk_cell_area_activate_cell() and some cell editing management
...
Now:
- The current edit cell and editable widget in use can be fetched
with properties and accessors
- gtk_cell_area_activate_cell() handles bookkeeping of the currently
edited cell, starting the editing of a cell, activating a cell etc
- Exported signals are available on GtkCellArea: "editing-started",
"editing-canceled", "editing-done", "remove-editable".
- Upon receiving GDK_KEY_Escape current editing gets canceled.
2010-11-08 11:31:03 +09:00
Hans Breuer
017f637a76
Bug 609622 - disappearing statusicon
...
Windows 7 is managing status icon visibility across process lifetime,
which did not work with GTK+ create icons. Apparently the mechanism
does not require use of new API (like suggested by MSDN), but it is
enough to give a "unique" tooltip at creation time.
Formerly this initial tooltip was not set at all, later setting via
gtk_status_icon_set_tooltip_text() is not enough, but luckily
different follow-up tooltips don't disturb the intended behavior.
(cherry picked from commit ae0544c636 )
(cherry picked from commit 8a9d458baf )
2010-11-08 11:31:03 +09:00
Hans Breuer
0b749700e6
Update msvc build
2010-11-08 11:31:03 +09:00
Matthias Clasen
e5c0d40d94
Make GtkFileChooserButton behave as expected when expanding
2010-11-08 11:31:03 +09:00
Ivar Smolin
c4a54055fe
[l10n] Updated Estonian translation
2010-11-08 11:31:02 +09:00
Garrett Regier
c65a617bd7
docs: Move documentation to inline comments: GtkCellView
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 11:31:02 +09:00
Garrett Regier
24c3b956f3
docs: Move documentation to inline comments: GtkCellRendererText
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 11:31:02 +09:00
Javier Jardón
322db81256
docs: Move documentation to inline comments: GtkCellRenderer
2010-11-08 11:31:02 +09:00
Javier Jardón
b1112cb87c
docs: Move documentation to inline comments: GtkSettings
2010-11-08 11:31:02 +09:00
Garrett Regier
bf17f3f32c
docs: Move documentation to inline comments: GtkColorSelection
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 11:31:02 +09:00
Garrett Regier
46627d008f
docs: Move documentation to inline comments: GtkLayout
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-08 11:31:02 +09:00
Kizito Birabwa
e1e90c6f9c
Added Luganda translation
2010-11-08 11:31:02 +09:00
Tor Lillqvist
a446664c25
Add _gtk_cell_renderer_calc_offset
2010-11-08 11:31:02 +09:00
Tor Lillqvist
bd8464834c
Fix build breakage and avoid a warning
2010-11-08 11:31:02 +09:00
Tor Lillqvist
7754bf1a63
Avoid a compiler warning
2010-11-08 11:31:02 +09:00
Tor Lillqvist
c418de1672
Drop unused static function
2010-11-08 11:31:02 +09:00
Javier Jardón
a31142a8fa
docs: move documentation to inline comments: GtkColorButton
2010-11-08 11:31:01 +09:00
Javier Jardón
65834294a5
docs: move documentation to inline comments: GtkTreeView
2010-11-08 11:31:01 +09:00
Javier Jardón
0331e1fab7
docs: Move documentation to inline comments: GtkTextView
2010-11-08 11:31:01 +09:00
Matthias Clasen
3b541bcfd4
GtkApplication: rewrite example application
...
The intended way of using GtkApplication is mainly by subclassing,
so make the example do that.
2010-11-08 11:31:01 +09:00
Matthias Clasen
9157e15653
GtkApplication: drop Quit from the docs
...
GtkApplication does not currently implement any default actions.
2010-11-08 11:31:01 +09:00
Javier Jardón
a62b185e29
docs: move documentation to inline comments: GtkEntry
2010-11-08 11:31:01 +09:00
Javier Jardón
dfeff671c4
docs: Fix generation of GtkGrid documentation
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
99144330a0
tests: fix the build
...
gtk_box_new() changed API recently.
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
1433ea24b5
icon-theme: always force icon sizes for emblems
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
c068e988a1
tests: add a test for pixbufs implementing the GIcon interface
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
4239e49982
icon-theme: support pixbufs implementing the GIcon interface
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-08 11:31:01 +09:00
Cosimo Cecchi
cb51ad606f
gtkwindow: properly set the window icon list ( #631331 )
...
This was probably a rendering-cleanup regression.
2010-11-08 11:31:01 +09:00
Hans Breuer
9452b271a0
Bug 609622 - disappearing statusicon
...
Windows 7 is managing status icon visibility across process lifetime,
which did not work with GTK+ create icons. Apparently the mechanism
does not require use of new API (like suggested by MSDN), but it is
enough to give a "unique" tooltip at creation time.
Formerly this initial tooltip was not set at all, later setting via
gtk_status_icon_set_tooltip_text() is not enough, but luckily
different follow-up tooltips don't disturb the intended behavior.
(cherry picked from commit ae0544c636 )
(cherry picked from commit 8a9d458baf )
2010-11-07 23:58:29 +01:00
Hans Breuer
dc40e17af8
Update msvc build
2010-11-07 23:35:04 +01:00
Matthias Clasen
9dfeee8127
Make GtkFileChooserButton behave as expected when expanding
2010-11-07 11:22:07 -05:00
Ivar Smolin
5400ec8168
[l10n] Updated Estonian translation
2010-11-07 10:50:45 +02:00
Garrett Regier
3aad9f6617
docs: Move documentation to inline comments: GtkCellView
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-06 18:21:36 +01:00
Garrett Regier
d5593dec9e
docs: Move documentation to inline comments: GtkCellRendererText
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-06 18:21:36 +01:00
Javier Jardón
6cfd907290
docs: Move documentation to inline comments: GtkCellRenderer
2010-11-06 18:21:35 +01:00
Javier Jardón
c418ea89e5
docs: Move documentation to inline comments: GtkSettings
2010-11-06 18:21:35 +01:00
Garrett Regier
aa4c96544b
docs: Move documentation to inline comments: GtkColorSelection
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-06 17:42:00 +01:00
Garrett Regier
65536550c5
docs: Move documentation to inline comments: GtkLayout
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-11-06 17:42:00 +01:00
Kizito Birabwa
a9a7b60898
Added Luganda translation
2010-11-06 16:41:54 +01:00
Tor Lillqvist
8f98c7f68c
Add _gtk_cell_renderer_calc_offset
2010-11-06 14:12:14 +02:00
Tor Lillqvist
58ed78cbe0
Fix build breakage and avoid a warning
2010-11-06 13:13:59 +02:00
Tor Lillqvist
1e9c091457
Avoid a compiler warning
2010-11-06 13:13:37 +02:00
Tor Lillqvist
6e56d05cbc
Drop unused static function
2010-11-06 13:13:10 +02:00
Javier Jardón
c08e7f01fe
docs: move documentation to inline comments: GtkColorButton
2010-11-06 03:26:14 +01:00
Javier Jardón
5efde9d6d0
docs: move documentation to inline comments: GtkTreeView
2010-11-06 03:26:14 +01:00
Javier Jardón
f90bdb33c8
docs: Move documentation to inline comments: GtkTextView
2010-11-06 03:26:14 +01:00
Matthias Clasen
04ba8ef77a
GtkApplication: rewrite example application
...
The intended way of using GtkApplication is mainly by subclassing,
so make the example do that.
2010-11-05 16:26:51 -04:00
Matthias Clasen
ef3cc732cb
GtkApplication: drop Quit from the docs
...
GtkApplication does not currently implement any default actions.
2010-11-05 16:26:51 -04:00
Javier Jardón
0e0c4ee129
docs: move documentation to inline comments: GtkEntry
2010-11-05 20:49:20 +01:00
Javier Jardón
cf71dbde90
docs: Fix generation of GtkGrid documentation
2010-11-05 17:28:18 +01:00
Cosimo Cecchi
c69075f170
tests: fix the build
...
gtk_box_new() changed API recently.
2010-11-05 17:01:34 +01:00
Cosimo Cecchi
a994a9f945
icon-theme: always force icon sizes for emblems
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-05 16:28:32 +01:00
Cosimo Cecchi
fcfd494b78
tests: add a test for pixbufs implementing the GIcon interface
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-05 16:28:32 +01:00
Cosimo Cecchi
5071aa72ad
icon-theme: support pixbufs implementing the GIcon interface
...
https://bugzilla.gnome.org/show_bug.cgi?id=634060
2010-11-05 16:28:32 +01:00
Cosimo Cecchi
f437507d4d
gtkwindow: properly set the window icon list ( #631331 )
...
This was probably a rendering-cleanup regression.
2010-11-05 16:26:30 +01:00
Tristan Van Berkom
631bdc438c
Made progress on focus handling.
...
- Added vfunc to get the allocation of a cell inside an area
- Superclass GtkCellArea handles activation of focused cells
by handling key events (as well as editing of editable cells)
- Added signal "editing-started" to GtkCellArea to signal that
editing has started (generally signaled from inside event handling)
- Added properties "focus-cell" and "edited-cell"
2010-11-05 22:19:50 +09:00
Tristan Van Berkom
1ad5fa3e7a
Committing half-way done focus work.
2010-11-05 22:19:50 +09:00
Murray Cumming
ce815afece
GtkWidget/GtkContainer: Slight fixes to geometry-management docs.
...
Replace it's with its in several places.
Replace some , with .
Replace some ; with .
Fix some plurals.
Other minor corrections.
2010-11-05 22:19:50 +09:00
Murray Cumming
b8bcbd1376
GtkWidget: Document the size-request signal deprecation.
...
Hopefully my text is correct.
2010-11-05 22:19:50 +09:00
Matthias Clasen
a83b0b68ce
Handle empty button boxes gracefully
...
https://bugzilla.gnome.org/show_bug.cgi?id=633915
2010-11-05 22:19:50 +09:00
Christian Dywan
7ca240916f
Only show Desktop in file chooser button if there is one
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=632894
2010-11-05 22:19:50 +09:00
Owen W. Taylor
d2b64a1db2
Switch to CSS interpretation of rgb() and rgba() colors
...
CSS3 defines a somewhat odd syntax for rgba() colors - the rgb values
are integers from 0 to 255 or percentages and the a value is a
float from 0 to 1. To avoid increasing the total amount of confusion
in the world, make gdk_rgb_to_string() and gdk_rgb_parse() follow
this syntax rather than using floats for r, g, and b.
https://bugzilla.gnome.org/show_bug.cgi?id=633762
2010-11-05 22:19:50 +09:00
Ryan Lortie
4bdff81f2e
gtktoolitemgroup: don't use GTimeSpec
...
Use gint64 time instead.
2010-11-05 22:19:49 +09:00
Javier Jardón
65e045f5f4
Revert "Move the /*< private >*/ at the correct position"
...
All the object structures is opaque
This reverts commit c59ca4f6b9 .
2010-11-05 22:19:49 +09:00
Javier Jardón
dadf5c331a
docs: Improve cross-referencing on GtkGrid docs
2010-11-05 22:19:49 +09:00
Javier Jardón
7dd52d7b60
docs: Fix gtk-doc markup in GtkWidget docs
2010-11-05 22:19:49 +09:00
Takayuki KUSANO
77be5690fd
Updated Japanese translation
2010-11-05 22:19:49 +09:00
Murray Cumming
32b21694ef
Fix tiny documetnation typo.
2010-11-05 22:19:49 +09:00
Murray Cumming
d1829ecd74
GtkWidget/GtkContainer: Slight fixes to geometry-management docs.
...
Replace it's with its in several places.
Replace some , with .
Replace some ; with .
Fix some plurals.
Other minor corrections.
2010-11-04 16:37:54 +01:00
Murray Cumming
897a333744
GtkWidget: Document the size-request signal deprecation.
...
Hopefully my text is correct.
2010-11-04 16:11:25 +01:00
Matthias Clasen
10f0e991da
Handle empty button boxes gracefully
...
https://bugzilla.gnome.org/show_bug.cgi?id=633915
2010-11-03 23:01:09 -04:00
Christian Dywan
1c14268687
Only show Desktop in file chooser button if there is one
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=632894
2010-11-03 19:19:19 +01:00
Owen W. Taylor
5daab52661
Switch to CSS interpretation of rgb() and rgba() colors
...
CSS3 defines a somewhat odd syntax for rgba() colors - the rgb values
are integers from 0 to 255 or percentages and the a value is a
float from 0 to 1. To avoid increasing the total amount of confusion
in the world, make gdk_rgb_to_string() and gdk_rgb_parse() follow
this syntax rather than using floats for r, g, and b.
https://bugzilla.gnome.org/show_bug.cgi?id=633762
2010-11-03 13:41:45 -04:00
Ryan Lortie
fbdcf193ae
gtktoolitemgroup: don't use GTimeSpec
...
Use gint64 time instead.
2010-11-03 08:26:27 -04:00
Javier Jardón
1f1e7c37ad
Revert "Move the /*< private >*/ at the correct position"
...
All the object structures is opaque
This reverts commit c59ca4f6b9 .
2010-11-03 03:38:06 +01:00
Javier Jardón
4e0a50db9e
docs: Improve cross-referencing on GtkGrid docs
2010-11-03 03:31:57 +01:00
Javier Jardón
dab457fbc6
docs: Fix gtk-doc markup in GtkWidget docs
2010-11-03 03:31:46 +01:00
Takayuki KUSANO
b80322ba93
Updated Japanese translation
2010-11-03 09:02:19 +09:00
Murray Cumming
764f627733
Fix tiny documetnation typo.
2010-11-02 10:43:42 +01:00
Tristan Van Berkom
832c123fd2
Extended gtk_cell_area_apply_attributes() to account for expander/expanded cells
...
The state of expanded cells must come from the view, since these states
can vary across views accessing the same model (also "finished up" the
applying of attributes code).
2010-11-02 18:01:03 +09:00
Murray Cumming
73e45cef9d
GtkScrollable: Improve the documentation text.
2010-11-02 17:51:07 +09:00
Murray Cumming
d3aa89fc11
GtkScrollable: Improve the documentation text.
2010-11-02 09:23:24 +01:00
Tristan Van Berkom
7ddf87f9ef
Account for the possibility of invisible cells in GtkCellAreaBox/Iter
...
Also changed the GtkCellAreaBox to keep groups in an array
instead of a list, for this code it's generally more useful
this way (and more optimized).
2010-11-02 16:51:06 +09:00
Tristan Van Berkom
e3b75cb053
Adding tentative implementation of GtkCellAreaBox->grab_focus().
2010-11-02 12:04:38 +09:00
Murray Cumming
0583288dd9
Removed a trailing enum comma.
2010-11-02 12:04:38 +09:00
Ignacio Casal Quinteiro
997835af83
Normalize boolean.
2010-11-02 12:04:38 +09:00
Ignacio Casal Quinteiro
bea2487d83
Do not use gbooleans to save some bits.
2010-11-02 12:04:38 +09:00
Matthias Clasen
afa282f009
Bump version
2010-11-02 12:04:38 +09:00
Paolo Borelli
5e90bb269d
Get rid of unused shaped_object list in _GtkTextLineDisplay
...
https://bugzilla.gnome.org/show_bug.cgi?id=631076
2010-11-02 12:04:37 +09:00
Matthias Clasen
053171c530
Update NEWS
2010-11-02 12:04:37 +09:00
Matthias Clasen
bb0ff159cb
GtkToolitemGroup: Use monotonic clock for animation timeout
2010-11-02 12:04:37 +09:00
Ignacio Casal Quinteiro
ed62f93439
Add caseless unit tests for textiter.
2010-11-02 12:04:37 +09:00
Ignacio Casal Quinteiro
794e0446e9
Add case insensitive to GtkTextIter. Fixes bug #61852 .
...
This code has been taken from GtkSourceView so also kudos to Paolo Maggi
and Paolo Borelli for helping with this patch.
2010-11-02 12:04:37 +09:00
Paolo Borelli
3511215730
Fix backward search bug exposed by the unit test
...
When searching with multiple lines first_line_start/end were initialized
to the last line start/end iters
2010-11-02 12:04:37 +09:00
Ignacio Casal Quinteiro
a2360f979a
Add unit tests for textiter.
2010-11-02 12:04:37 +09:00
Matthias Clasen
ac3258b07d
Avoid exporting an extra symbol
2010-11-02 12:04:37 +09:00
Matthias Clasen
31b0c1ad35
Fix make check
2010-11-02 12:04:37 +09:00
Paolo Borelli
002704fe25
Move the /*< private >*/ at the correct position
2010-11-02 12:04:37 +09:00
Matthias Clasen
673e660edc
NEWS for 2.91.3
2010-11-02 12:04:37 +09:00
Ivar Smolin
cba8cd8c59
[l10n] Updated Estonian translation
2010-11-02 12:04:36 +09:00
Matthias Clasen
a8ade90b4f
Fix a typo
2010-11-02 12:04:36 +09:00
Matthias Clasen
0c8df06f73
Mention actions in the libunique migration guide
2010-11-02 12:04:36 +09:00
Matthias Clasen
71d6a289fc
Fix interaction between scrolling menus and automatic mnemonics
...
https://bugzilla.gnome.org/show_bug.cgi?id=612611
2010-11-02 12:04:36 +09:00
Michael Natterer
ca6398a649
gtk: remove all border_width handling from the button box
...
and let GtkContainer do the job; fixes doubled border widths. GtkBox
did already delegate border handling to Gtkcontainer, which interacted
badly with a subclass that didn't.
2010-11-02 12:04:36 +09:00
Michael Natterer
8dd7023b52
gtk: fix automatic width of spin buttons which have no width in chars set
2010-11-02 12:04:35 +09:00
Michael Natterer
8979855f60
tests: missed these two gtk_box_new() which sneaked in by rebasing...
2010-11-02 12:04:35 +09:00
Matthias Clasen
c70f3e26d2
GtkAssistant: Mention custom pages in the introduction
2010-11-02 12:04:35 +09:00
Michael Natterer
260ccdfebe
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-11-02 12:04:35 +09:00
Matthias Clasen
c50f790417
Add content size test for scrolled window
2010-11-02 12:04:35 +09:00
Bastien Nocera
76a0b9e5fa
GtkAssistant: Add custom page type
...
The custom page type will not show any buttons by default, and
it is left to the application to add its own buttons instead.
The _next_page() and _previous_page() functions can be used
for the back and forward buttons used by the application.
https://bugzilla.gnome.org/show_bug.cgi?id=576498
2010-11-02 12:04:34 +09:00
Bastien Nocera
ef2fe67832
GtkAssistant: Add more details about buttons shown
...
Add more documentation about which buttons will be shown for which
type of GtkAssistant page.
https://bugzilla.gnome.org/show_bug.cgi?id=576498
2010-11-02 12:04:34 +09:00
Matthias Clasen
75fd27e920
Improve GtkAssistant docs
2010-11-02 12:04:34 +09:00
Martin Nordholts
0feb08a4bb
Handle NULL intp in test_increment_intp()
...
Support passing NULL for &int to gtk_test_display_button_window() so
we can use that function also when we are not interested in counting
clicks.
2010-11-02 12:04:34 +09:00
Murray Cumming
c4714662b1
Removed a trailing enum comma.
2010-11-01 23:09:21 +01:00
Ignacio Casal Quinteiro
d8d73163fd
Normalize boolean.
2010-11-01 22:59:21 +01:00
Ignacio Casal Quinteiro
37dc91f012
Do not use gbooleans to save some bits.
2010-11-01 22:43:35 +01:00
Matthias Clasen
586c5f0bb0
Bump version
2010-11-01 13:13:04 -04:00
Paolo Borelli
5dddcb1fa5
Get rid of unused shaped_object list in _GtkTextLineDisplay
...
https://bugzilla.gnome.org/show_bug.cgi?id=631076
2010-11-01 17:09:58 +01:00
Matthias Clasen
450b1f4322
Update NEWS
2010-11-01 11:44:30 -04:00
Matthias Clasen
69c7213ba9
GtkToolitemGroup: Use monotonic clock for animation timeout
2010-11-01 11:43:15 -04:00
Ignacio Casal Quinteiro
1fad7eaf85
Add caseless unit tests for textiter.
2010-11-01 15:21:53 +01:00
Ignacio Casal Quinteiro
2f98a1c8b3
Add case insensitive to GtkTextIter. Fixes bug #61852 .
...
This code has been taken from GtkSourceView so also kudos to Paolo Maggi
and Paolo Borelli for helping with this patch.
2010-11-01 15:21:48 +01:00
Paolo Borelli
42910194a9
Fix backward search bug exposed by the unit test
...
When searching with multiple lines first_line_start/end were initialized
to the last line start/end iters
2010-11-01 15:21:43 +01:00
Ignacio Casal Quinteiro
be703155aa
Add unit tests for textiter.
2010-11-01 15:21:39 +01:00
Matthias Clasen
9ff207bd25
Avoid exporting an extra symbol
2010-11-01 09:17:21 -04:00
Matthias Clasen
816f08872a
Fix make check
2010-11-01 09:17:21 -04:00
Paolo Borelli
c59ca4f6b9
Move the /*< private >*/ at the correct position
2010-11-01 14:15:03 +01:00
Matthias Clasen
8eee2f9bce
NEWS for 2.91.3
2010-11-01 08:14:19 -04:00
Tristan Van Berkom
e94a177774
Added cell focus apis to GtkCellArea.
2010-11-01 16:01:25 +09:00
Ivar Smolin
b2ff82d0a3
[l10n] Updated Estonian translation
2010-11-01 08:19:38 +02:00
Tristan Van Berkom
54004237be
Added GtkCellRendererState flags to GtkCellArea->event/render() methods
2010-11-01 12:39:00 +09:00
Matthias Clasen
750a9f3225
Fix a typo
2010-10-31 22:16:41 -04:00
Matthias Clasen
a3f19ddae8
Mention actions in the libunique migration guide
2010-10-31 22:14:53 -04:00
Matthias Clasen
54a5e37136
Fix interaction between scrolling menus and automatic mnemonics
...
https://bugzilla.gnome.org/show_bug.cgi?id=612611
2010-10-31 15:53:07 -04:00
Michael Natterer
d1a58b78be
gtk: remove all border_width handling from the button box
...
and let GtkContainer do the job; fixes doubled border widths. GtkBox
did already delegate border handling to Gtkcontainer, which interacted
badly with a subclass that didn't.
2010-10-31 20:16:19 +01:00
Michael Natterer
476b4c248c
gtk: fix automatic width of spin buttons which have no width in chars set
2010-10-31 20:03:55 +01:00
Michael Natterer
240e1b4b59
tests: missed these two gtk_box_new() which sneaked in by rebasing...
2010-10-31 20:01:28 +01:00
Matthias Clasen
c6a379dc62
GtkAssistant: Mention custom pages in the introduction
2010-10-31 14:34:35 -04:00
Michael Natterer
3a0afce509
gtk: remove "gboolean homogeneous" from gtk_box_new()
...
Because it's FALSE in virtually all use cases.
2010-10-31 19:22:28 +01:00
Matthias Clasen
81d7dd0774
Add content size test for scrolled window
2010-10-31 14:10:41 -04:00
Bastien Nocera
cbbfd7beb6
GtkAssistant: Add custom page type
...
The custom page type will not show any buttons by default, and
it is left to the application to add its own buttons instead.
The _next_page() and _previous_page() functions can be used
for the back and forward buttons used by the application.
https://bugzilla.gnome.org/show_bug.cgi?id=576498
2010-10-31 16:08:46 +00:00
Bastien Nocera
b5abd10940
GtkAssistant: Add more details about buttons shown
...
Add more documentation about which buttons will be shown for which
type of GtkAssistant page.
https://bugzilla.gnome.org/show_bug.cgi?id=576498
2010-10-31 16:08:46 +00:00
Tristan Van Berkom
9c4eb3d431
Changed GtkCellArea margin-left/right... for cell-margin-left/right...
...
The rationale here is that every cell in an area needs to have space
reserved around it, requests have to be fully margin inclusive...
cells need to have the full size fed as the "background area" and
the "cell area" has margins removed... This will be used by GtkTreeViewColumn
to set the focus line width so that cells can paint a background on the
full background, then render themselves into the cell area... and parents
can go ahead and draw focus and other indicators on the background area
but outside of the cell area.
2010-10-31 22:50:53 +09:00
Tristan Van Berkom
163c3c8852
Added margins to the cell area
...
Added margin properties to the cell area, margins will be removed
from the area given to ->render() when creating the inner cell area.
2010-10-31 18:55:51 +09:00
Tristan Van Berkom
25b00759c5
Implemented cell packing properties on GtkCellAreaBox
2010-10-31 17:45:29 +09:00
Tristan Van Berkom
01d2eddf03
Added GTK_CELL_AREA_WARN_INVALID_CHILD_PROPERTY_ID to gtkcellarea.h
2010-10-31 17:45:06 +09:00
Tristan Van Berkom
d781c226da
Implemented "cell properties" on the GtkCellArea
...
Added cell "packing" properties for generic configuration
of child cells inside an area.
2010-10-31 17:13:15 +09:00
Tristan Van Berkom
6da74b6e1e
Finished up allocation of cells.
...
Added get_allocated_cells() which returns a practical list
of cells with allocation for render/event time, this abstracts
whether the cells are individually aligned or aligned into groups,
when there are groups of cells before an alignment, those groups
get allocated on the fly for render time.
2010-10-31 15:22:39 +09:00
Tristan Van Berkom
e494f102cf
Cleaned up GtkCellAreaIter implementation to use arrays to store grouped cell information.
2010-10-31 13:06:10 +09:00
Matthias Clasen
c5e9526faf
Improve GtkAssistant docs
2010-10-30 21:30:23 -04:00
Martin Nordholts
cdda7f9151
Handle NULL intp in test_increment_intp()
...
Support passing NULL for &int to gtk_test_display_button_window() so
we can use that function also when we are not interested in counting
clicks.
2010-10-31 00:49:38 +02:00
Tristan Van Berkom
b12e7a8115
Adding GtkCellAreaIter arg to GtkCellArea->render/->event
2010-10-30 23:48:52 +09:00
Tristan Van Berkom
972e077966
Fixed hangs in TextView and ToolPalette
...
Fixed the hangs by adding a ->inside_allocation flag and avoiding to
queue resizes while inside the allocation loop. The extra queue'd resizes
were causing the scrolled window size_allocate() to perform the guess
again and again thus causing an infinite loop.
2010-10-30 23:37:24 +09:00
Tristan Van Berkom
a3b4681f9f
Fixing typo in scrolled window
...
Seems with GtkScrollable interface we were setting the hadjustment as
the vadjustment, thanks to Cosimo Cecchi who debugged this and finally
found the typo.
2010-10-30 23:37:24 +09:00
Tristan Van Berkom
ae71cf7209
Fixed hangs in TextView and ToolPalette
...
Fixed the hangs by adding a ->inside_allocation flag and avoiding to
queue resizes while inside the allocation loop. The extra queue'd resizes
were causing the scrolled window size_allocate() to perform the guess
again and again thus causing an infinite loop.
2010-10-30 23:10:43 +09:00
Tristan Van Berkom
338001ae48
Fixing typo in scrolled window
...
Seems with GtkScrollable interface we were setting the hadjustment as
the vadjustment, thanks to Cosimo Cecchi who debugged this and finally
found the typo.
2010-10-30 23:09:14 +09:00
Tristan Van Berkom
ea6df20bbb
Added the majority of the allocate machinery to GtkCellAreaIter[Box].
2010-10-30 23:06:26 +09:00
Tristan Van Berkom
86fb6ab216
Fixed GtkCellAreaIter to notify invalidation of sizes on flush
...
Also fixed GtkCellAreaBox to track the iters it creates and flush
them when the overall layout configuration changes (add/remove/reorder/
spacing changed etc).
2010-10-30 21:40:22 +09:00
Javier Jardón
1dc7e3d885
Emphasize that GtkBox and GtkTable can be replaced by GtkGrid
2010-10-30 17:37:04 +09:00
Javier Jardón
c15ef6405c
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 17:37:03 +09:00
Javier Jardón
ae1d1fd048
docs: remove template of deprecated gtkcombo widget
2010-10-30 17:37:03 +09:00
Matthias Clasen
1469c3fd69
Migration guide additions
...
Add some information about expand flags and the scrollable interface.
2010-10-30 17:37:03 +09:00
Christian Persch
71b8875d2b
Make gdk_rgba_to_string() take a const GdkRGBA
...
https://bugzilla.gnome.org/show_bug.cgi?id=633216
2010-10-30 17:37:03 +09:00
Matthias Clasen
0aa94bb946
Fix initial size allocation with child widgets
...
On some cases, it would take a resize of the window for children
to 'jump into place'.
https://bugzilla.gnome.org/show_bug.cgi?id=633500
2010-10-30 17:37:03 +09:00
Javier Jardón
6c301d4b0a
Use gtk_scrollbar_new() instead gtk_[v|h]scrollbar_new()
2010-10-30 17:37:03 +09:00
Javier Jardón
234553c093
Use gtk_scale_new() instead gtk_[v|h]scale_new()
2010-10-30 17:37:03 +09:00
Javier Jardón
d03d2943d2
Use gtk_scale_new_with_range() instead gtk_[v|h]scale_new_with_range()
2010-10-30 17:37:03 +09:00
Javier Jardón
cdf4b4bbd5
Use gtk_paned_new() instead gtk_[v|h]paned_new()
2010-10-30 17:37:03 +09:00
Javier Jardón
524e704147
Use gtk_ruler_new() instead gtk_[v|h]ruler_new()
2010-10-30 17:37:02 +09:00
Javier Jardón
821c3c6578
Use gtk_separator_new() instead gtk_[v|h]separator_new()
2010-10-30 17:37:02 +09:00
Javier Jardón
2615ebf37e
Use gtk_button_box_new() instead gtk_[v|h]_button_box_new()
2010-10-30 17:37:02 +09:00
Michael Natterer
34627a6371
gtk: remove declarations of removed internal functions
2010-10-30 17:37:02 +09:00
Matthias Clasen
ef03dc3fc6
Don't set get_preferred_width_for_height to NULL
...
The size request machinery expects that it is non-NULL.
2010-10-30 17:37:02 +09:00
Matthias Clasen
70bef431b0
GtkComboBox: Add a constructor that takes a model and adds an entry
...
https://bugzilla.gnome.org/show_bug.cgi?id=633050
2010-10-30 17:37:02 +09:00
Javier Jardón
d0974d4f02
Re-enable deprecation guards
2010-10-30 17:37:02 +09:00
Carles Ferrando
92431720dc
Updated Catalan (Valencian) translation
2010-10-30 17:37:02 +09:00
Carlos Garnacho
18797dfa9a
Use the client pointer for events with no device.
...
The core pointer is sort of meaningless in a multidevice environment,
the client pointer is used instead to fake a GdkDevice on events that
don't have one.
2010-10-30 17:37:02 +09:00
Owen W. Taylor
2d65bd08c3
Remove unused GdkDeviceManager variable
...
gdk_display_get_device_manager() was called but the device manager
not used.
2010-10-30 17:37:02 +09:00
Matthias Clasen
ac0b97aa23
ifdef X-specific stuff
...
gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.
2010-10-30 17:37:01 +09:00
Matthias Clasen
22d01c45cc
GtkButtonBox doesn't do height-for-width
...
GtkButtonBox doesn't do height-for-width, therefore we should
explicitly set these methods to NULL instead of hoping that the
inherited GtkBox implementations work ok.
2010-10-30 17:37:01 +09:00
John (J5) Palmieri
1448111a58
[introspection] annotate delete_text invoker to match do_delete_text v-method
2010-10-30 17:37:01 +09:00
Vincent Untz
e0d1652a99
Port tests to GtkScrollable API instead of deprecated GtkLayout API
...
https://bugzilla.gnome.org/show_bug.cgi?id=633374
2010-10-30 17:37:01 +09:00
Tristan Van Berkom
3b1c301a66
Made GtkCellAreaBox:align-cells a packing property per cell
...
Implemented all request apis on GtkCellAreaBox considering
alignment of groups of cells (some cells can be aligned while
others fill space smartly).
2010-10-30 17:35:22 +09:00
Ignacio Casal Quinteiro
211c39c500
Remove useless vars.
2010-10-30 17:35:22 +09:00
Tristan Van Berkom
89cc46374d
Fire a warning if there are any handlers connected to the deprecated "size-request" signal.
2010-10-30 17:35:22 +09:00
Tristan Van Berkom
731853a7ec
Added a runtime warning if any class is implementing the ->size_request() vfunc.
2010-10-30 17:35:22 +09:00
Tristan Van Berkom
b277ba4238
Make GtkPathBar use set_size_request() instead of the "size-request" signal.
2010-10-30 17:35:22 +09:00
Tristan Van Berkom
05ca7e14b0
Removed size_request from GtkToolItemGroup
...
Ofcourse GtkToolPalette needs real migration to height-for-width
apis, this patch just removes the need for the size_request
signal and vfunc.
2010-10-30 17:35:21 +09:00
Tristan Van Berkom
3265d46c9d
Use gtk_widget_set_size_request() instead of handling "size-request" signals.
2010-10-30 17:35:21 +09:00
Matthias Clasen
d02443d57c
Add a migration guide section on size_request
2010-10-30 17:35:21 +09:00
Matthias Clasen
9c128ed442
Fix the build
2010-10-30 17:35:21 +09:00
Matthias Clasen
eb60282b1b
Fix gtk_fixed_get_preferred_width
...
When dealing with widths, use x, not y.
Spotted by Ignacio Casal Quintero.
2010-10-30 17:35:21 +09:00
Bastien Nocera
2a37d949ba
gtk: Fix crasher when loading symbolic icons
...
If the style didn't include symbolic colors for either success,
warning or error, gtk_icon_info_load_symbolic_for_style() would crash.
Instead, make sure we don't try to use the colors if they're not
available, and fallback on default colors inside
_gtk_icon_info_load_symbolic_internal().
2010-10-30 17:35:20 +09:00
Owen W. Taylor
d8fdbd8b72
GtkSocket: Add error trap around call to XFixesChangeSaveSet()
...
Previously any X error from XFixesChangeSaveSet() was being eaten
by the subsequent error trap when sending a client message. With
asynchronous error traps, that side effect no longer occurs, so
we need to add a proper error trap around the call to
XFixesChangeSaveSet().
https://bugzilla.gnome.org/show_bug.cgi?id=633274
2010-10-30 17:35:20 +09:00
Tristan Van Berkom
d86164f90d
Revert "Removed size_request from GtkTextView"
...
This reverts commit 87dfa724eb .
I pushed this to the wrong branch, ouch sorry.
2010-10-30 17:35:20 +09:00
Matthias Clasen
2d4f3e1365
Remove size_request from GtkSocket
...
This is only preliminary, GtkSocket can do minimal/natural width
properly, there's code for that in the extended-layout branch.
2010-10-30 17:35:20 +09:00
Matthias Clasen
965b3af8a1
Don't g_free gslice-allocated structures
...
This was causing memory corruption when removing remote plugs from
sockets.
2010-10-30 17:35:20 +09:00
Matthias Clasen
3cdf3bc46c
Remove size_request from GtkScale
2010-10-30 17:35:20 +09:00
Tristan Van Berkom
e573a455bb
Removed size_request from GtkTearoffMenuItem
2010-10-30 17:35:20 +09:00
Tristan Van Berkom
292f32dde8
Fixed remaining call to ->size_request in GtkTextView.
2010-10-30 17:35:20 +09:00
Matthias Clasen
ebcb6e6b94
Remove size_request from GtkSeparatorToolItem
2010-10-30 17:35:20 +09:00
Matthias Clasen
5e0451de3a
Use correct icon name in testtoolbar
2010-10-30 17:35:20 +09:00
Tristan Van Berkom
0db2b334b0
Removed size_request from GtkTextView
2010-10-30 17:35:19 +09:00
Matthias Clasen
9f074f8612
Remove size_request from gtkToolItem
2010-10-30 17:35:19 +09:00
Tristan Van Berkom
0b3e2ffee6
Removing size_request from GtkToolPalette
...
Note GtkToolPalette is internally height-for-width, it needs to
be refactored to cooperate with GTK+'s height-for-width geometry
management properly.
2010-10-30 17:35:19 +09:00
Matthias Clasen
bf75f63f49
Remove size_request from GtkToolbar
...
This is just a bandaid fix, the toolbar should really return proper
min/natural sizes, so that we can handle the overflow properly.
2010-10-30 17:35:19 +09:00
Matthias Clasen
f3d5e20cff
Remove size_request from GtkTable
2010-10-30 17:35:19 +09:00
Tristan Van Berkom
cd2a7a899f
Removing size_request from GtkTreeview.
...
This should be implemented as propery height-for-width by
the treeview-refactor branch. This commit includes a FIXME
comment that scroll adjustments should not be updated from
inside size requests but only after receiving an allocation.
2010-10-30 17:35:19 +09:00
Matthias Clasen
113362b169
Remove size_request from GtkRuler
2010-10-30 17:35:19 +09:00
Matthias Clasen
7f8d92f02c
Remove size_request from GtkPathBar
2010-10-30 17:35:19 +09:00
Matthias Clasen
70c81d6651
Remove size_request from GtkSeparator
2010-10-30 17:35:19 +09:00
Matthias Clasen
4927c16486
Remove size_request from GtkRange
2010-10-30 17:35:19 +09:00
Matthias Clasen
53744b6daf
Fix a typo
2010-10-30 17:35:19 +09:00
Matthias Clasen
6b5debcaca
Remove size_request from GtkPaned
...
This is not the final word; GtkPaned should really implement
height-for-width, but I didn't have time to complete that now.
2010-10-30 17:35:18 +09:00
Ivar Smolin
c823f33516
[l10n] Updated Estonian translation
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
34e1cd373b
Removed size_request from GtkOffscreenWindow
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
af0c4bc656
Removed size_request from GtkNotebook
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
e9f541dc51
Removed size_request from GtkMenuBar
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
0f9c04769b
Removed size_request from GtkImageMenuItem
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
8565b86223
Removed size_request from GtkIconView.
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
399f353427
Remove size_request from GtkHandleBox
2010-10-30 17:35:18 +09:00
Tristan Van Berkom
16512bd9d3
Fixed unused variable in get_preferred_height().
2010-10-30 17:35:18 +09:00
Matthias Clasen
f336754a8f
Remove size_request from GtkSpinButton
2010-10-30 17:35:18 +09:00
Matthias Clasen
eca2d782ce
Remove size_request from GtkProgressBar
2010-10-30 17:35:17 +09:00
Matthias Clasen
f83403098d
Remove size_reuqest from GtkImage
2010-10-30 17:35:17 +09:00
Matthias Clasen
d4a07d5661
Remove size_request from GtkLayout
2010-10-30 17:35:17 +09:00
Matthias Clasen
381cd8b07c
Remove size_request from GtkHSV
2010-10-30 17:35:17 +09:00
Matthias Clasen
b3f6f67c33
Remove size_request from GtkFixed
2010-10-30 17:35:17 +09:00
Matthias Clasen
e165c6c884
Remove size_request from GtkEntry
2010-10-30 17:35:17 +09:00
Matthias Clasen
2e4e7264e6
Remove size_request from GtkCheckButton
2010-10-30 17:35:17 +09:00
Matthias Clasen
23a9127765
Remove size_request from GtkCalendar
2010-10-30 17:35:17 +09:00
Matthias Clasen
2078db969c
Remove size_request from GtkButtonBox
2010-10-30 17:35:17 +09:00
Matthias Clasen
42de07f2f3
Remove size_request from GtkAssistant
2010-10-30 17:35:17 +09:00
Javier Jardón
65dd3460ce
Fix gtk-doc markup: /* <private> */ should be /*< private >*/
2010-10-30 17:35:17 +09:00
Javier Jardón
73bac5af3b
Emphasize that GtkBox and GtkTable can be replaced by GtkGrid
2010-10-30 06:53:44 +02:00
Javier Jardón
a9894d4cf4
Use gtk_box_new() instead gtk_[v|h]box_new()
2010-10-30 05:22:58 +02:00
Javier Jardón
b2207f6730
docs: remove template of deprecated gtkcombo widget
2010-10-30 05:03:02 +02:00
Matthias Clasen
9795bd4c8c
Migration guide additions
...
Add some information about expand flags and the scrollable interface.
2010-10-29 22:48:26 -04:00
Christian Persch
edec3e12dd
Make gdk_rgba_to_string() take a const GdkRGBA
...
https://bugzilla.gnome.org/show_bug.cgi?id=633216
2010-10-29 21:16:52 -04:00
Matthias Clasen
630b2c58b4
Fix initial size allocation with child widgets
...
On some cases, it would take a resize of the window for children
to 'jump into place'.
https://bugzilla.gnome.org/show_bug.cgi?id=633500
2010-10-29 21:15:13 -04:00
Javier Jardón
570b90e218
Use gtk_scrollbar_new() instead gtk_[v|h]scrollbar_new()
2010-10-30 02:26:24 +02:00
Javier Jardón
217036975a
Use gtk_scale_new() instead gtk_[v|h]scale_new()
2010-10-30 02:26:24 +02:00
Javier Jardón
8177ad320e
Use gtk_scale_new_with_range() instead gtk_[v|h]scale_new_with_range()
2010-10-30 02:26:23 +02:00
Javier Jardón
b3a7d401a1
Use gtk_paned_new() instead gtk_[v|h]paned_new()
2010-10-30 02:26:23 +02:00
Javier Jardón
f00f120fd7
Use gtk_ruler_new() instead gtk_[v|h]ruler_new()
2010-10-30 02:26:23 +02:00
Javier Jardón
8d008790be
Use gtk_separator_new() instead gtk_[v|h]separator_new()
2010-10-30 02:26:23 +02:00
Javier Jardón
e31304fb7b
Use gtk_button_box_new() instead gtk_[v|h]_button_box_new()
2010-10-30 02:26:23 +02:00
Michael Natterer
8154a5930d
gtk: remove declarations of removed internal functions
2010-10-29 20:24:41 +02:00
Matthias Clasen
b2397d3d7e
Don't set get_preferred_width_for_height to NULL
...
The size request machinery expects that it is non-NULL.
2010-10-29 12:58:24 -04:00
Matthias Clasen
ac3fe174f7
GtkComboBox: Add a constructor that takes a model and adds an entry
...
https://bugzilla.gnome.org/show_bug.cgi?id=633050
2010-10-29 12:28:42 -04:00
Javier Jardón
8b512bd9dd
Re-enable deprecation guards
2010-10-29 05:10:52 +02:00
Carles Ferrando
a4d9d2c3d4
Updated Catalan (Valencian) translation
2010-10-29 01:37:58 +01:00
Carlos Garnacho
b1dec866e5
Use the client pointer for events with no device.
...
The core pointer is sort of meaningless in a multidevice environment,
the client pointer is used instead to fake a GdkDevice on events that
don't have one.
2010-10-28 23:01:16 +02:00
Owen W. Taylor
398728feb5
Remove unused GdkDeviceManager variable
...
gdk_display_get_device_manager() was called but the device manager
not used.
2010-10-28 16:43:55 -04:00
Matthias Clasen
7da5cd5fe6
ifdef X-specific stuff
...
gdk_x11_ APIs can only be used inside #ifdef GDK_WINDOWING_X11.
2010-10-28 14:27:04 -04:00
Matthias Clasen
7018c2acc7
GtkButtonBox doesn't do height-for-width
...
GtkButtonBox doesn't do height-for-width, therefore we should
explicitly set these methods to NULL instead of hoping that the
inherited GtkBox implementations work ok.
2010-10-28 14:25:50 -04:00
John (J5) Palmieri
a863697784
[introspection] annotate delete_text invoker to match do_delete_text v-method
2010-10-28 13:25:10 -04:00
Vincent Untz
4f9f52a6ea
Port tests to GtkScrollable API instead of deprecated GtkLayout API
...
https://bugzilla.gnome.org/show_bug.cgi?id=633374
2010-10-28 12:18:28 -04:00
Ignacio Casal Quinteiro
60feed7360
Remove useless vars.
2010-10-28 11:54:05 +02:00
Tristan Van Berkom
c41ec57fb0
Fire a warning if there are any handlers connected to the deprecated "size-request" signal.
2010-10-28 16:00:19 +09:00
Tristan Van Berkom
18f46adb7d
Added a runtime warning if any class is implementing the ->size_request() vfunc.
2010-10-28 15:41:00 +09:00
Tristan Van Berkom
2f3e51389e
Merge branch 'kill-size-request'
2010-10-28 15:30:32 +09:00
Tristan Van Berkom
7af16e8d91
Make GtkPathBar use set_size_request() instead of the "size-request" signal.
2010-10-28 15:17:06 +09:00
Tristan Van Berkom
1523509467
Removed size_request from GtkToolItemGroup
...
Ofcourse GtkToolPalette needs real migration to height-for-width
apis, this patch just removes the need for the size_request
signal and vfunc.
2010-10-28 15:16:06 +09:00
Tristan Van Berkom
6e22c646c6
Use gtk_widget_set_size_request() instead of handling "size-request" signals.
2010-10-28 14:56:04 +09:00
Matthias Clasen
df4c566220
Add a migration guide section on size_request
2010-10-27 15:55:33 -04:00
Matthias Clasen
48d0be545c
Fix the build
2010-10-27 13:01:21 -04:00
Matthias Clasen
a84b81d4fe
Fix gtk_fixed_get_preferred_width
...
When dealing with widths, use x, not y.
Spotted by Ignacio Casal Quintero.
2010-10-27 12:53:47 -04:00
Bastien Nocera
94c8390ad7
gtk: Fix crasher when loading symbolic icons
...
If the style didn't include symbolic colors for either success,
warning or error, gtk_icon_info_load_symbolic_for_style() would crash.
Instead, make sure we don't try to use the colors if they're not
available, and fallback on default colors inside
_gtk_icon_info_load_symbolic_internal().
2010-10-27 17:52:30 +01:00
Owen W. Taylor
cb287cde00
GtkSocket: Add error trap around call to XFixesChangeSaveSet()
...
Previously any X error from XFixesChangeSaveSet() was being eaten
by the subsequent error trap when sending a client message. With
asynchronous error traps, that side effect no longer occurs, so
we need to add a proper error trap around the call to
XFixesChangeSaveSet().
https://bugzilla.gnome.org/show_bug.cgi?id=633274
2010-10-27 12:40:59 -04:00
Tristan Van Berkom
d13bf0801d
Revert "Removed size_request from GtkTextView"
...
This reverts commit 87dfa724eb .
I pushed this to the wrong branch, ouch sorry.
2010-10-28 01:40:51 +09:00
Matthias Clasen
e3bf39b2e6
Remove size_request from GtkSocket
...
This is only preliminary, GtkSocket can do minimal/natural width
properly, there's code for that in the extended-layout branch.
2010-10-27 11:18:47 -04:00
Matthias Clasen
f5207ab647
Don't g_free gslice-allocated structures
...
This was causing memory corruption when removing remote plugs from
sockets.
2010-10-27 11:18:46 -04:00
Matthias Clasen
fb0a72dc0f
Remove size_request from GtkScale
2010-10-27 11:18:46 -04:00
Tristan Van Berkom
a41436c40f
Removed size_request from GtkTearoffMenuItem
2010-10-27 23:59:43 +09:00
Tristan Van Berkom
c33a2b7237
Fixed remaining call to ->size_request in GtkTextView.
2010-10-27 23:34:58 +09:00
Tristan Van Berkom
1132f54dcc
Removing size_request from GtkTextView
2010-10-27 23:25:05 +09:00
Matthias Clasen
8f9807ac15
Remove size_request from GtkSeparatorToolItem
2010-10-27 10:17:58 -04:00
Matthias Clasen
cb34d4036d
Use correct icon name in testtoolbar
2010-10-27 10:14:25 -04:00
Tristan Van Berkom
87dfa724eb
Removed size_request from GtkTextView
2010-10-27 22:59:49 +09:00
Matthias Clasen
17c1bb4e52
Remove size_request from gtkToolItem
2010-10-27 09:54:44 -04:00
Tristan Van Berkom
7a85a31cc4
Removing size_request from GtkToolPalette
...
Note GtkToolPalette is internally height-for-width, it needs to
be refactored to cooperate with GTK+'s height-for-width geometry
management properly.
2010-10-27 22:51:35 +09:00
Matthias Clasen
1205f5a230
Remove size_request from GtkToolbar
...
This is just a bandaid fix, the toolbar should really return proper
min/natural sizes, so that we can handle the overflow properly.
2010-10-27 09:41:37 -04:00
Matthias Clasen
f7740fe580
Remove size_request from GtkTable
2010-10-27 09:33:41 -04:00
Tristan Van Berkom
add32bab71
Removing size_request from GtkTreeview.
...
This should be implemented as propery height-for-width by
the treeview-refactor branch. This commit includes a FIXME
comment that scroll adjustments should not be updated from
inside size requests but only after receiving an allocation.
2010-10-27 22:28:41 +09:00
Matthias Clasen
1184295620
Remove size_request from GtkRuler
2010-10-27 09:23:07 -04:00
Matthias Clasen
fc081e7847
Remove size_request from GtkPathBar
2010-10-27 09:13:26 -04:00
Matthias Clasen
7947f1933e
Remove size_request from GtkSeparator
2010-10-27 08:33:42 -04:00
Matthias Clasen
d95f8ae2e2
Remove size_request from GtkRange
2010-10-27 08:10:40 -04:00
Matthias Clasen
2b728f66a8
Fix a typo
2010-10-27 07:57:19 -04:00
Matthias Clasen
9b60d27b83
Remove size_request from GtkPaned
...
This is not the final word; GtkPaned should really implement
height-for-width, but I didn't have time to complete that now.
2010-10-27 07:55:27 -04:00
Ivar Smolin
d8051d1f94
[l10n] Updated Estonian translation
2010-10-27 11:22:06 +03:00
Tristan Van Berkom
80ac6c9701
Removed size_request from GtkOffscreenWindow
2010-10-27 14:43:30 +09:00
Tristan Van Berkom
9a80908c91
Removed size_request from GtkNotebook
2010-10-27 14:35:04 +09:00
Tristan Van Berkom
2dca7ad91d
Removed size_request from GtkMenuBar
2010-10-27 14:30:07 +09:00
Tristan Van Berkom
c8c3cf9beb
Removed size_request from GtkImageMenuItem
2010-10-27 14:12:41 +09:00
Tristan Van Berkom
814cd2c3ff
Removed size_request from GtkIconView.
2010-10-27 14:11:36 +09:00
Tristan Van Berkom
7e3e0636aa
Remove size_request from GtkHandleBox
2010-10-27 13:56:46 +09:00
Tristan Van Berkom
393bd507bb
Fixed unused variable in get_preferred_height().
2010-10-27 13:56:13 +09:00
Matthias Clasen
ac1bb229d1
Remove size_request from GtkSpinButton
2010-10-26 23:46:06 -04:00
Matthias Clasen
e45e9b187b
Remove size_request from GtkProgressBar
2010-10-26 23:30:48 -04:00
Matthias Clasen
4ca87168d4
Remove size_reuqest from GtkImage
2010-10-26 23:16:40 -04:00
Matthias Clasen
86cb8d02d3
Remove size_request from GtkLayout
2010-10-26 23:08:15 -04:00
Matthias Clasen
909a005cb2
Remove size_request from GtkHSV
2010-10-26 23:08:01 -04:00
Matthias Clasen
58354f2036
Remove size_request from GtkFixed
2010-10-26 23:07:56 -04:00
Matthias Clasen
2432bf4a58
Remove size_request from GtkEntry
2010-10-26 21:41:13 -04:00
Matthias Clasen
3bb3dc72e3
Remove size_request from GtkCheckButton
2010-10-26 21:29:58 -04:00
Matthias Clasen
f85543af98
Remove size_request from GtkCalendar
2010-10-26 21:06:40 -04:00
Matthias Clasen
8178e6016a
Remove size_request from GtkButtonBox
2010-10-26 20:57:40 -04:00
Matthias Clasen
d08e8aac62
Remove size_request from GtkAssistant
2010-10-26 20:57:23 -04:00
Javier Jardón
e0e6d5b4df
Fix gtk-doc markup: /* <private> */ should be /*< private >*/
2010-10-26 18:35:04 +02:00
Tristan Van Berkom
abcfd2d5ef
Merge branch 'master' into treeview-refactor
2010-10-27 01:06:58 +09:00
Tristan Van Berkom
695e427522
Added most of the request code for GtkCellAreaBox
...
Added the following to GtkCellAreaBox:
- GtkCellAreaBox:spacing property defines spacing between cells
- GtkCellAreaBox:align-cells property defines whether cells should
be aligned with cells in adjacent rows.
- Implementations for get_preferred_width / get_preferred_height
- Implementations for get_preferred_height_for_width and the other
when the box is oriented in the easy way (i.e. height_for_width()
implemented for a vertical box, no virtual allocations done yet).
2010-10-27 01:01:58 +09:00
Fran Diéguez
fca72da479
Updated galician translations
2010-10-26 17:00:40 +02:00
Matthias Clasen
b69232e51b
Stop calling GtkWidget parameters 'request'
...
There were at least a few places where we were using GTK_WIDGET()
on something that was already a GtkWidget*, just because it was
named wrong.
2010-10-26 10:53:46 -04:00
Tristan Van Berkom
11f8dfe3f4
Finished up initial revision of GtkCellAreaBoxIter
...
The interaction between this class and GtkCellAreaBox could
use some optimization, maybe the cells and their sizes should
be returned as a list and iterated over at the same time as
requesting sizes instead of the hash table approach currently
taken, however the code is clean this way for now.
2010-10-26 23:01:17 +09:00
Tristan Van Berkom
97e3ccc58b
Added GtkCellAreaBox subclass to handle alignments of cells across rows inside a GtkCellAreaBox.
2010-10-26 18:22:59 +09:00
Tristan Van Berkom
b5e529f578
Added GtkCellAreaIter class
...
Added base class to hold alignment and overall size request information
while itterating over the size requests of various rows of a GtkTreeModel,
updated GtkCellArea/GtkCellAreaBox classes accordingly.
2010-10-26 17:14:20 +09:00
Yaron Shahrabani
bb77ea4a2c
Update properties Hebrew translation.
2010-10-26 08:32:32 +02:00
Xan Lopez
9c7016ab87
gtkcomboboxtext: remove unused variable
2010-10-26 15:18:35 +09:00
Javier Jardón
5aea672e00
gtk.symbols: Add scrollable policy API
2010-10-26 06:07:43 +02:00
Javier Jardón
8dd7ae38f9
gtkfilechooserentry: Use accessor functions to access GtkEntry
2010-10-26 06:07:43 +02:00
Javier Jardón
0b72acf78d
gtkspinbutton: Use accessor functions to access GtkEntry
2010-10-26 06:07:42 +02:00
Javier Jardón
f5615022a7
Use accessor functions to access GtkButton
2010-10-26 06:07:42 +02:00
Javier Jardón
8991603c88
gtktogglebutton: move public members to private structure
2010-10-26 06:07:42 +02:00
Javier Jardón
49446ed57c
gtktogglebutton: Add _gtk_toggle_button_set_active private accessor
...
It's needed by gtkradiobutton
2010-10-26 06:07:42 +02:00
Javier Jardón
a93e79f8d2
gtkradiobutton: Use accessor functions to access GtkToggleButton
2010-10-26 06:07:42 +02:00
Javier Jardón
783d18650b
gtkcheckbutton: Use accessor functions to access GtkToggleButton
2010-10-26 06:07:42 +02:00
Javier Jardón
356cfaa084
gtktoggletoolbutton: Use accessor functions to access GtkToggleButton
2010-10-26 06:07:42 +02:00
Javier Jardón
fda588d10d
gail: use accessor functions to access GtkToggleButton
2010-10-26 06:07:33 +02:00
Javier Jardón
49c409c498
tests: use accessor functions to access GtkToogleButton
2010-10-26 05:02:19 +02:00
Tristan Van Berkom
8679563247
Merge branch 'master' into treeview-refactor
2010-10-26 11:37:27 +09:00
Tristan Van Berkom
209715f0ef
Missed adding the scrolled window test in previous commit, added scrolled window test.
2010-10-26 11:35:04 +09:00
Tristan Van Berkom
3fe0fb4ed9
Added GtkScrollablePolicy property to scrollable interface
...
This patch adds the GtkScrollablePolicy type property to GtkScrollable
and implements it in all subclasses. GtkScrolledWindow observes this
property to make a good guess about when to show/hide scrollbars for
height-for-width content.
Most scrollable children do not do height-for-width *yet* but
most certainly will (toolpalette, treeview, iconview, textview
widgets all TODO), for scrollable widgets that do have a minimum
and natural size, it's important for them to observe the state
of this property in order to properly drive the scroll adjustments
according to the desired GtkScrollablePolicy. This patch makes
GtkViewport do this.
Patch also adds tests/testscrolledwindow.c to display the effects
of this property.
2010-10-26 10:15:56 +09:00
Matthias Clasen
04c1337bda
Bump version
2010-10-25 18:32:37 -04:00
Matthias Clasen
a7285e6435
Include gdkrgba.h
2010-10-25 14:35:19 -04:00
Matthias Clasen
7bbaa56f53
More updates
2010-10-25 13:59:49 -04:00
Matthias Clasen
c406b6ed22
Add new GdkRGBA apis to gtk.symbols
2010-10-25 13:49:37 -04:00
Matthias Clasen
9c60da8978
Add new GdkRGBA api to symbol list
2010-10-25 13:44:43 -04:00
=Christian Persch
d3f1745493
Use g_ascii_strto[u]ll instead of strto[u]l
...
We don't want GtkBuilder input to be locale-dependent.
Bug #632503
2010-10-25 12:22:20 -04:00
Matthias Clasen
377e7179b8
Add tests for GdkRGBA serialization
...
In particular, test that serialization is not dependent on the
locale.
2010-10-25 12:10:48 -04:00
Matthias Clasen
366a37d8c1
Add some GdkRGBA tests
2010-10-25 12:01:11 -04:00
Matthias Clasen
503698f587
Support resetting cell renderer colors with NULL again
...
This functionality was lost when GdkRGBA was introduced.
Bug 632936
2010-10-25 11:17:24 -04:00
Jorge González
546be63ecc
Updated Spanish translation
2010-10-25 16:26:28 +02:00
Richard Hughes
1d7aabee69
Fix make distcheck as gtkcomboboxentry does not exist anymore
2010-10-25 10:20:10 +01:00
Fran Diéguez
4a63814815
Updated Galician translations
2010-10-25 01:13:13 +02:00
Ignacio Casal Quinteiro
fdea6c5c19
Fix typo.
2010-10-24 22:51:51 +02:00
Matthias Clasen
52a7553b2c
GtkCalendar: turn into a no-window widget
...
After these changes, GtkCalendar only has a few input-only windows
left for catching input events. All drawing goes to the parent
window now.
2010-10-24 14:43:05 -04:00
Matthias Clasen
bcb23945f6
Bring back lost functionality
...
Double-click to mark/unmark was lost a while ago.
Also add easy RTL testing.
2010-10-24 14:43:04 -04:00
Matthias Clasen
6153feb3b6
Fill out the bug section
2010-10-24 14:43:04 -04:00
Tristan Van Berkom
fe3f948d0a
Implemented GtkCellLayoutIface->reorder on GtkCellAreaBox.
2010-10-24 20:08:21 +09:00
Tristan Van Berkom
468a1d3e7c
Implemented basic child list handling on GtkCellAreaBox
...
Added the child list to GtkCellAreaBox, added _pack_start() and
_pack_end() apis to GtkCellAreaBox since they are appropriate there
and implemented GtkCellLayoutIface to override the _pack_start()/end()
methods (since the base GtkCellArea class simply forwards these apis
to the generic ->add() api on the base class).
2010-10-24 20:01:04 +09:00
Tristan Van Berkom
0722fbe7c8
Removed attribute handling from class vfuncs of GtkCellArea.
...
Now GtkCellArea handles attribute connections in the base class,
subclasses only need to add/remove the renderers, render them,
do geometry and handle events.
2010-10-24 19:20:10 +09:00
Khaled Hosny
5e163f79d0
Updated Arabic translation
2010-10-24 12:04:02 +02:00
Tristan Van Berkom
0e3179b669
Merge branch 'master' into treeview-refactor
2010-10-24 15:49:18 +09:00
Tristan Van Berkom
0d7fdfb36e
Merge branch 'master' into treeview-refactor
2010-10-24 15:48:46 +09:00
Tristan Van Berkom
45e42ca2d2
Implemented remaining portions of GtkCellLayout iface
...
Now GtkCellArea provides a generic way of applying attributes
from a GtkTreeModel/GtkTreeIter, GtkCellArea bookkeeps a hashtable
of GtkCellLayoutDataFunc's and completely abstracts the applying
of data to cells... GtkCellArea implementations need only to bookkeep
the added renderers and attributes (probably we can abstract the
attribute bookkeeping in the base class as well).
Things starting to take a good and practical shape.
2010-10-24 15:44:48 +09:00
Matthias Clasen
520a6aeb8f
Fix up docs
2010-10-23 23:41:08 +02:00
Matthias Clasen
d7653e7c0c
Add a unique->GtkApplication migration guide
2010-10-23 22:51:38 +02:00
Matthias Clasen
1be9b7f782
Some GtkApplication cleanups
...
Remove no-longer-needed vfuncs, no longer existing functions,
and improve the docs here and there.
2010-10-23 21:24:24 +02:00
Matthias Clasen
3e594dd845
Fix doc build
2010-10-23 21:23:22 +02:00
Matthias Clasen
7651c231e0
Revert the id-column patch
...
It didn't quite turn out as I wanted it.
I'll put it in bug 619148 for now.
2010-10-23 19:34:20 +02:00
Tristan Van Berkom
051dcde4bf
Fixed fallout from GtkScrollable patches.
...
The scrollable patch removed set_scroll_adjustments (NULL, NULL) from
gtk_tree_view_init() which ensured the treeview would have adjustments
at all times, this patch adds set_v/hadjustment (NULL) to _init to ensure
the same thing (without it, there are crashes when trying to access the
adjustments notably from set_headers_visible() in gedit).
2010-10-23 22:53:06 +09:00
Jorge González
ff5972c4cd
Updated Spanish translation
2010-10-23 14:25:35 +02:00
Tristan Van Berkom
ed63ae2bd3
Fixed push/pop_recursion_check() to not fire warnings for expected code.
...
I.e. Since we are now calling get_preferred_width() to ensure a good 'for_size'
for get_height_for_width() we need to avoid warning about this internal expected
recursion.
2010-10-23 20:03:41 +09:00
Tristan Van Berkom
741d10ca4f
Adding initial code skeleton for GtkCellAreaBox.
2010-10-23 17:01:58 +09:00
Tristan Van Berkom
8885320d21
Merge branch 'master' into treeview-refactor
2010-10-23 13:25:45 +09:00
Javier Jardón
0dd5eb4b61
docs: GtkComboBoxText: more fixes
2010-10-23 03:03:50 +02:00
Javier Jardón
d94adcf643
docs: Some fixes in GtkComboboxText notations
2010-10-23 03:01:35 +02:00
Yaron Shahrabani
f89aaf9091
Updated Hebrew translation.
2010-10-23 02:40:54 +02:00
Matthias Clasen
a94db5b3b9
Fix distcheck
2010-10-23 02:31:30 +02:00
Matthias Clasen
ae6ba3adeb
NEWS for 2.91.2
2010-10-23 02:31:30 +02:00
Matthias Clasen
9fb36fff36
Add a way to associate numeric ids with combobox values
...
This will let us use combo boxes as property editors for
GSettings enmerations easily.
2010-10-23 02:31:30 +02:00
Javier Jardón
38dbb84095
gtkadjustment: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
96f2f2ff5b
gtkscrollbar: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
ec0c739520
gtktreemodelfilter: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
8d3b36d534
gtktreeselection: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
e51daa79fe
gtktreesortable: Move documentation to inline comments
2010-10-23 00:31:37 +02:00
Javier Jardón
16cf23959f
gtktreeviewcolumn: Move documentation to inline comments
2010-10-23 00:31:36 +02:00
Javier Jardón
8f766d36f4
gtktreestore: Move documentation to inline comments
2010-10-23 00:31:36 +02:00
Carlos Garnacho
d2781bc74b
GtkBuilder: Prepare for parsing GdkRGBA types.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
d1140d0b1e
GtkCellRendererText: Add [foreground|background]-rgba properties
...
These properties use GdkRGBA to render the cell renderer's content.
Note that Pango attributes are used to render the foreground color,
so the alpha value is currently ignored.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
5fbf20c2d8
GtkCellRenderer: Add ::cell-background-rgba property
...
This property uses GdkRGBA in order to render the cell renderer's
background.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
1bbbd005a4
GtkColorButton: Add API to deal with GdkRGBA.
2010-10-22 20:14:57 +02:00
Carlos Garnacho
cb5b74e9c6
GtkColorSelection: Add API to deal with GdkRGBA.
...
The hook to change the global palette is still unchanged, it is quite
tied to GdkColor and the color format used to store the palette in
GtkSettings.
2010-10-22 20:14:56 +02:00
Carlos Garnacho
e351a48d6a
Make gtk_icon_info_load_symbolic() Take GdkRGBA colors.
2010-10-22 20:14:56 +02:00
Carlos Garnacho
684c9415ee
GtkCellView: Add gtk_cell_view_set_background_rgba()
...
A ::background-rgba property was also added, this API is meant
to replace the gtk_cell_view_set_background_color() call.
2010-10-22 20:14:56 +02:00
Carlos Garnacho
ce06043f17
GdkWindow: Add gdk_window_set_background_rgba()
...
This new function takes a GdkRGBA in order to set the background to
an alpha color. Keep in mind that RGBA visuals and a composited environment
are still necessary to have an alpha background displayed.
2010-10-22 20:14:56 +02:00
Carlos Garnacho
5a5f8081f0
Add GdkRGBA struct to supersede GdkColor
...
GdkRGBA is a boxed struct similar to GdkColor, with the difference
that it stores alpha information as well, and colors are stored in
[0..1] doubles, in the cairo spirit.
gdk_cairo_set_source_rgba() has been also added to allow easier handling
of this new type.
2010-10-22 20:14:56 +02:00
Matthias Clasen
c750003168
Point to GtkGrid from the GtkBox and GtkTable docs
2010-10-22 19:59:29 +02:00
Matthias Clasen
d2eac1bf81
Remove some warnings
2010-10-22 19:28:32 +02:00
Matthias Clasen
09ec50af90
Remove GtkScrollablePolicy again
...
This was a miscommunication, the properties need to live elsewhere.
2010-10-22 19:24:03 +02:00
Matthias Clasen
0d9ebb501d
Move min-display-width/height to GtkScrolledWindow
...
It is just too annoying to have to implement these properties in
every scrollable. Instead, we now have ::min-content-height/width
in GtkScrolledWindow.
We also add GtkScrollablePolicy to determine how to size the
scrollable content.
2010-10-22 19:21:17 +02:00
Emmanuele Bassi
ce5a29bc38
recent-manager: Coalesce multiple changes
...
Since the ::changed implementation of GtkRecentManager implies a
synchronous write operation, when we receive multiple requests to emit a
::changed signal we might end up blocking.
This change coalesces multiple ::changed emission requests using the
following sequence:
• the first request will install a timeout in 250 ms, which will
emit the ::changed signal
• each further request while the timeout has not been emitted
will increase a counter
‣ if the counter reaches 250 before the timeout has been
emitted, then the RecentManager will remove the timeout
source and force a signal emission and reset the counter
This sequence should guarantee that frequent ::changed emission requests
are coalesced, and also guarantee that we don't let them dangle for too
long.
https://bugzilla.gnome.org/show_bug.cgi?id=616997
2010-10-22 18:08:48 +01:00
Christian Dywan
5ef2b46d64
Don't declare various unused variables in gtk_grid_set_orientation
2010-10-22 19:05:40 +02:00
Alberto Garcia
d6a73fd5b0
Assign all g_signal_connect() and friends to gulong variables
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=87821
2010-10-22 18:58:47 +02:00
Javier Jardón
56d5b45443
GtkExpander: avoid use of gtk_get_event_widget()
...
We can compare the window to the window instead of the widget to the widget.
2010-10-22 18:21:44 +02:00
Javier Jardón
8999053b5f
docs: Add gtk-doc notation
...
to emphasize that GtkMisc and GtkAdjustment are not encouraged in new code
2010-10-22 17:59:38 +02:00
Michael Natterer
1f77384ab3
gtk: undef DISABLE_DEPRECATED around including our own header
...
so we can see our own deprecated API and don't get warnings.
2010-10-22 17:10:49 +02:00
Michael Natterer
3dc1f09772
gtk: use the new scrollable API to get to the scroll adjustments
2010-10-22 17:10:49 +02:00
Richard Hughes
585d7192fd
Fix make dist now that gtkcomboboxentry does not exist
2010-10-22 16:07:55 +01:00
Tristan Van Berkom
d26ac6421b
Fixed problems with combination of height-for-width apis and
...
alignment/margin vfuncs adjust_size_request/allocation
Now get_height_for_width() will internally update the for_width
before passing it to the real height_for_width() vfunc, allowing
margins and extra space for alignments to be stripped, thus requesting
sufficient height for greater than natural widths (and also accounting
for margins properly). Test case adjusted in testadjustsize to ensure
proper behavior.
2010-10-23 00:11:37 +09:00
Michael Natterer
a46dec176e
gtk: use the new scrollable API to get scroll adjustments
2010-10-22 17:03:21 +02:00
Michael Natterer
8e7aed9489
gtk: fix tool palette scroll adjustment setting
...
Create a new adjustment if there was *no* adjustment passed in, not
the other way around. Also remove unused function
gtk_tool_palette_set_adjustment().
2010-10-22 17:01:58 +02:00
Michael Natterer
6d2e4c26bd
gtk: return 0 not NULL from functions returning gint
2010-10-22 16:54:45 +02:00
Matthias Clasen
8cd13d09e8
Discourage use of GtkMisc and GtkAlignment
2010-10-22 16:52:08 +02:00
Matthias Clasen
a9204e65dd
Remove child flipping from GtkGrid
...
We decided that this is not really the right thing to do, for one
thing, because it doesn't flip ::expand and ::margin properties
of children.
2010-10-22 16:43:45 +02:00
Matthias Clasen
8f0ae8e8a3
Add GtkGrid
...
GtkGrid is a container similar to GtkTable, without legacy
properties and unnecessary restrictions.
It does height-for-width geometry management.
2010-10-22 16:42:50 +02:00
Matthias Clasen
c10127156f
Make the docs build
2010-10-22 16:42:50 +02:00
Matthias Clasen
a7465c3479
Fix a typo
2010-10-22 16:42:50 +02:00
Michael Natterer
ba9efeda4b
gtk: add gtk_entry_get_text_area() and gtk_entry_get_icon_area()
...
as replacement for the removed get_foo_window() functions, so draw()
callbacks can figure where to paint.
2010-10-22 14:48:08 +02:00
Christian Persch
95610f2a14
recent-chooser: Use gtk_recent_info_get_gicon()
...
https://bugzilla.gnome.org/show_bug.cgi?id=617174
2010-10-22 12:20:55 +01:00
Christian Persch
b0fe3e49bb
Add gtk_recent_info_get_gicon()
...
https://bugzilla.gnome.org/show_bug.cgi?id=617174
2010-10-22 11:58:00 +01:00
Emmanuele Bassi
27b71e0143
recent-manager: Fix the documentation
...
The default RecentManager is not destroyed at the end of the process.
https://bugzilla.gnome.org/show_bug.cgi?id=602794
2010-10-22 11:54:53 +01:00
Emmanuele Bassi
03fc0dd5ca
recent-manager: Add RecentInfo.create_app_info()
...
A simple wrapper that makes it possible to create a GAppInfo from a
GtkRecentInfo blob.
2010-10-22 11:54:53 +01:00
Emmanuele Bassi
06758f1ab5
recent-manager: Move the file under XDG_USER_DATA
...
Do not use $HOME/.recently-used.xbel any more. No migration path is
included: we're breaking API anyway.
https://bugzilla.gnome.org/show_bug.cgi?id=524304
2010-10-22 11:53:09 +01:00
Tadej Borovšak
55196a705f
Add GtkScrollable interface
...
The GtkScrollable interface provides "hadjustment" and "vadjustment"
properties that are used by GtkScrolledWindow. It replaces
the ::set_scroll_adjustment signal. The scrollable interface
also has ::min-display-width/height properties that can be
used to control the minimally visible part inside a scrolled window.
2010-10-22 11:03:45 +02:00
Tristan Van Berkom
705e7ee100
Added GtkCellArea to the build
...
Starting to form a good api, implemented most of GtkCellLayout iface
on the base class routing the apis through the new class vfuncs.
2010-10-22 16:41:52 +09:00
Tristan Van Berkom
86b3c1b65e
Enhanced GtkWidget documentation with regards to height-for-width geometry management.
2010-10-21 22:53:06 +09:00
Tristan Van Berkom
8bb20925ed
Adding vague initial draft of GtkCellArea to the codebase (treeview-refactor branch).
2010-10-21 22:46:10 +09:00
Benjamin Otte
5e8baa5f63
container: Fix typo that caused madness
...
Interestingly, this typo has been causing madness since 2 months, but
Mitch complained only today.
2010-10-21 15:31:07 +02:00
Benjamin Otte
e428a0937a
configure: Enable silent rules by default
...
Go Hackfest!
2010-10-21 15:08:46 +02:00
Benjamin Otte
e6f95e9316
entry: No, you can not haz ununused variables
2010-10-21 15:08:14 +02:00
Christian Dywan
5862075e9d
comboboxtext: Add gtk_combo_box_text_remove_all()
...
https://bugzilla.gnome.org/show_bug.cgi?id=324899
2010-10-21 14:30:11 +02:00
Benjamin Otte
707d05bac0
progressbar: Remove declaration of nonexisting function
2010-10-21 14:30:11 +02:00
Benjamin Otte
715f57790b
socket: Fix compiler issues
2010-10-21 14:30:11 +02:00
Matthias Clasen
596da84312
Make GtkEntry a no-window widget
...
Use input-only windows for capturing input, and just draw onto
the parent window. This allows themes to make entries with rounded
corners. Patch by Boram Park.
https://bugzilla.gnome.org/show_bug.cgi?id=632736
2010-10-21 13:17:33 +02:00
Michael Natterer
e4654327df
gtk: change GtkIconView to "support" actual trees
...
Remove the check for GTK_TREE_MODEL_LIST_ONLY and make the view
display only the first level of the tree, ignoring all insert, remove
etc. events on the model's branches. This enables generic application
code which always produces GtkTreeStores (also for flat lists) to
display grids of these flat trees.
2010-10-21 12:57:55 +02:00
Matthias Clasen
331323e5c7
Make GtkSpinButton a no-window widget
...
We still retain an input-only window here for now, but all
the painting is done to the parent window.
2010-10-21 11:41:20 +02:00
Matthias Clasen
f4d57dbe98
Make GtkProgressBar a no-window widget
...
It doesn't really have a good reason for having a window.
2010-10-21 11:40:46 +02:00
Matthias Clasen
0a3fa74a52
Properly propagate expand flags
...
When showing a widget that already has need_compute_expand set,
we need to queue the recomputation on the parent.
2010-10-21 11:14:26 +02:00
Ryan Lortie
c7e1f567b6
GtkButton: avoid use of gtk_get_event_widget()
...
We can compare the window to the window instead of the widget to the
widget.
2010-10-21 00:37:29 +02:00
Ryan Lortie
56d2590b49
GtkIMContextSimple: avoid gdk_window_get_user_data
...
We lookup a widget to call a function on GtkWidget that ends up just
performing an operation directly on the GdkWindow again anyway
(beeping). There's already fallback code at the point of the call that
does exactly that anyway, so just do that all of the time.
2010-10-20 23:58:20 +02:00
Javier Jardón
3fcec464ac
gtk.symbols: Add missing GtkApplication api
2010-10-20 20:46:48 +02:00
Michael Natterer
0f2d1547f8
gdk: add alpha to the offscreen window's surface if its visual is RGBA
2010-10-20 17:44:23 +02:00
Michael Natterer
c2f29f2cef
gtk: clean up GtkWidget signals
...
- add slots for damage-event, move-focus and keynav-failed
- reorder signals a bit so related stuff is grouped together
- some indentation fixes in the GtkWidgetClass
- remove the move-focus compat hack from GtkTextView
- turn the move-focus compat hack in GtkWindow into properly
implementing GtkWidget::move-focus()
2010-10-20 17:02:38 +02:00
Emmanuele Bassi
ef9a6f205c
Re-add copyright notice
...
https://bugzilla.gnome.org/show_bug.cgi?id=632677
2010-10-20 12:05:23 +01:00
Richard Hughes
55f76d8bee
Do not install the hello-world and window-default example programs
2010-10-20 11:57:58 +01:00
Michael Natterer
283f7ddd6c
tests: gdk_device_get_history() takes "gint *n_events" again, not guint
2010-10-20 12:50:21 +02:00
Emmanuele Bassi
2cc059a0e7
Split off gtkprivate.h
...
The gtkprivate.h header contains GtkWidget-specific private symbols that
are not useful except in a handful of cases. Basically everything
includes gtkprivate.h for the GTK_PARAM_* macros.
https://bugzilla.gnome.org/show_bug.cgi?id=632539
2010-10-20 10:34:26 +01:00
Emmanuele Bassi
9b34bf17e5
build: Do not install gtkprivate.h
...
This is a private header file, and it should *not* be installed. It
should also not be scanned by the introspection machinery.
https://bugzilla.gnome.org/show_bug.cgi?id=632539
2010-10-20 10:34:25 +01:00
Emmanuele Bassi
9f9edb662e
settings: Move setting property registration in gtksettings.c
...
Some GtkSettings property are registered by other classes. This leads
to the "interesting" issue that setting GtkSettings:gtk-button-images
requires that the GtkButton class is referenced first - or that a
GtkButton is created.
https://bugzilla.gnome.org/show_bug.cgi?id=632538
2010-10-20 10:34:25 +01:00
Javier Jardón
9f035742e3
gtkapplication: fix docs
2010-10-20 11:07:11 +02:00
Matthias Clasen
0219eea4d7
Remove GtkComboBoxEntry and the combo box text api
2010-10-20 11:02:03 +02:00
Ryan Lortie
c5ebb61b6f
GtkApplication: add gtk_application_get_windows()
...
Return a GList of the GtkWindow objects for each window that has the
application set as its "application" property.
2010-10-19 21:10:02 +02:00
Javier Jardón
9b3ee686ea
Completely remove gtk_widget_hide_all
...
This completes commit d1a9d764a8
2010-10-19 20:25:33 +02:00
Matthias Clasen
d1a9d764a8
Remove gtk_widget_hide_all()
...
it's useless and a trap for programmers
https://bugzilla.gnome.org/show_bug.cgi?id=438318
2010-10-19 19:31:38 +02:00
Matthias Clasen
4824a73084
Add padding to class structs
2010-10-19 19:07:36 +02:00
Matthias Clasen
921f069269
Remove the outdated faq
...
It mainly contains information that is already covered in the
API docs, or is outdated, or refers to no longer existing widgets.
2010-10-19 18:22:08 +02:00
Kristian Rietveld
6e4643de14
Make gdk_pixbuf_get_from_surface() accept negative src_x,y coordinates
2010-10-19 14:07:39 +02:00
Kristian Rietveld
046ca498de
dnd-quartz: get hot spot from device offset for surface and use this
2010-10-19 14:07:39 +02:00
Kristian Rietveld
8ac7f64123
dnd-quartz: take hot spot into account when setting up drag
2010-10-19 14:07:39 +02:00
Michael Natterer
a1134e5622
gdk: change signature of gdk_device_get_history() back to what it used to be
...
"n_events" went back from guint to gint.
2010-10-19 13:30:42 +02:00
Jorge González
e09e8718f8
Updated Spanish translation
2010-10-19 12:39:25 +02:00
krishnababu k
7eb42bbc7f
Updated Telugu Translations
2010-10-19 15:57:59 +05:30
Javier Jardón
04900c8caa
docs: Update templates
2010-10-19 03:31:02 +02:00
Javier Jardón
bf4ee1b52b
configure.ac: Update Glib required version to 2.27.1
2010-10-19 03:06:49 +02:00
Ryan Lortie
ab5fb5dee5
GtkApplication rewrite
2010-10-19 01:31:09 +02:00
Benjamin Otte
ff142ac2ef
gtk: Add gtk_widget_queue_draw_region()
...
People were requesting it and it mirrors the behavior of GdkWindow.
2010-10-18 19:22:44 +02:00
Benjamin Otte
9e31ef616d
cups: Add hack to work around gcc warning
...
gcc warns if you switch on values that are not part of the enum you're
switching on. So handle those cases in the default handler by using if
statments.
PS: Someone file a bug against cups about this?
2010-10-18 19:22:44 +02:00
Benjamin Otte
3b8a264a5e
print: Make things compile again
...
Remove workaround for entries - the general codepath should just work.
2010-10-18 19:22:44 +02:00
Benjamin Otte
3a55137709
selection: Hi, I can't get my code right
...
Also, I refuse to compile with -Werror, so I don't notice.
2010-10-18 19:22:44 +02:00
Benjamin Otte
6e90804b30
notebook: Hi, I can't get my function prototypes right
...
Also, I refuse to compile with -Werror
2010-10-18 19:22:43 +02:00
Benjamin Otte
e0d7da3c8c
x11: Set GDK_PIXBUF_ENABLE_BACKEND before including files
...
Otherwise we get an undefined gdk_pixbuf_set_option().
2010-10-18 19:22:43 +02:00
Benjamin Otte
206b41c6f6
widget: Remove special case in gtk_widget_queue_draw_area()
...
This path would only do anything where widget->window was not located at
widget->allocation.x/y but at a different position. This should never
happen in the real world. But if it does, GTK3 will break for you.
Better fix your widget.
2010-10-18 19:22:43 +02:00
Colin Walters
d34b9ed192
introspection: Filter out all headers ending in "private"
...
We were including at least "gtkprivate.h" before.
2010-10-18 13:02:41 -04:00
Ryan Lortie
8cca398a2f
Gdk X11: Add setter for startup notify ID
...
For launch requests coming in over DBus.
2010-10-18 17:21:22 +02:00
Matthias Clasen
b613cc6478
Don't add a second cell renderer
...
When has-entry is TRUE, GtkComboBox already adds a cell renderer
for the text column, so avoid adding a second one in GtkComboBoxText.
https://bugzilla.gnome.org/show_bug.cgi?id=632381
2010-10-18 08:13:41 -04:00
Jorge González
8d456e3c50
Updated Spanish translation
2010-10-18 11:32:45 +02:00
Christian Dywan
6db62c6617
Use new GtkComboBoxEntry in all tests
2010-10-18 09:13:44 +02:00
Christian Dywan
f891c58432
Don't use old GtkComboBoxEntry in gail
...
Use gtk_combo_box_get_has_entry instead.
2010-10-18 09:13:44 +02:00
Christian Dywan
ba32934ea6
Add gtk_combo_box_{get,set}_popup_fixed_width to gtk.symbols
2010-10-18 09:13:44 +02:00
Kristian Rietveld
cc22469b69
Icon view must layout before the draw handler is called
...
gtk_icon_view_layout(), which can resize the bin window and thus
underlying surfaces, could be called from gtk_icon_view_draw(). So
we have to make sure that layouting is done before the draw handler is
called. We use the same construction as in tree view here, the layout
idle handler is installed with a higher priority than
GDK_PRIORITY_REDRAW and we wrap the call to gdk_window_process_updates()
in a new function that will flush the layout queue beforehand.
2010-10-17 10:30:46 +02:00
Kristian Rietveld
f27d7bdea5
Implement gtk_drag_set_icon_surface in gtkdnd-quartz
2010-10-17 10:30:46 +02:00
Kristian Rietveld
d2c6533107
Fix typo in docs
2010-10-17 10:30:46 +02:00
Kristian Rietveld
47969615b2
Use cairo_surface_destroy instead of g_object_unref
2010-10-17 10:30:46 +02:00
Takayuki KUSANO
b06f05e72c
Updated Japanese translation
2010-10-17 15:12:27 +09:00
Tristan Van Berkom
31abdf723a
Allow GtkComboBox popup to be wider than the combo itself.
...
This patch adds a GtkComboBox:popup-fixed-width to decide if the
popup's width should be a fixed width matching the combo's allocated width.
The patch includes a kindof hack to work around treeviews currently
not supporting height-for-width geometry (for list-mode only), this
hack can be safely removed once treeviews start reporting natural
widths properly.
2010-10-17 14:11:27 +09:00
Matthias Clasen
17cd0db6a8
Fix some GtkComboBoxText problems
...
We must use entry-text-column explicitly to 0, since it defaults to -1.
2010-10-16 08:17:34 -04:00
Matthias Clasen
a62e1b95bc
Fix some GtkComboBoxText problems
2010-10-16 08:16:55 -04:00
Kjartan Maraas
098d23c096
Updated Norwegian bokmål translation
2010-10-16 12:22:01 +02:00
Javier Jardón
f2ae6814e7
docs: Remove template about deprecated GtkItemFactory
2010-10-16 05:24:24 +02:00
Matthias Clasen
963f6c587a
Bump version to 2.91.2
2010-10-15 22:38:37 -04:00
Matthias Clasen
2dd3317522
More distcheck fixes
2010-10-15 21:55:17 -04:00
Matthias Clasen
c6c1871734
Add filechooser settings gschema to EXTRA_DIST
2010-10-15 21:20:13 -04:00
Matthias Clasen
bd7e3852ac
More examples removal
2010-10-15 20:59:38 -04:00
Matthias Clasen
9ae2c1fcf9
Drop crazy listing of all example files
...
This will likely mean that the old examples will not appear in the
tarball until they have been integrated in the new 'getting started'
docs.
2010-10-15 20:53:07 -04:00
Matthias Clasen
39529dcfed
Fix make distcheck
2010-10-15 20:48:37 -04:00
Matthias Clasen
4869aeb28d
Update POTFILES.in
2010-10-15 20:20:25 -04:00
Matthias Clasen
a0aed8402b
Remove a private symbol from gtk.symbols
2010-10-15 20:14:11 -04:00
Matthias Clasen
4f9175d7fc
Temporarily disable test involving file choosers
...
After the filechooser got converted to use gsettings, it can no
longer be used uninstalled, breaking make distcheck here.
Also disable the treeview-scrolling tests, since they are failing
here.
2010-10-15 20:14:11 -04:00
Matthias Clasen
f87b26a653
Fix up symbol lists
2010-10-15 20:14:11 -04:00
Javier Jardón
45c463e376
GtkComboBoxText: Use gtk_combo_box_text_remove instead gtk_combo_box_text_remove_text
2010-10-16 02:07:38 +02:00
Matthias Clasen
2dbfca9d02
Update NEWS for 2.91.1
2010-10-15 19:01:36 -04:00
Matthias Clasen
88d74e23fa
Remove tutorial from configure.ac
2010-10-15 18:18:58 -04:00
Marek Kasik
95e69afea8
Parse lpoptions correctly
...
Parse options job-sheets, job-hold-until and sides correctly.
Add get_lpoption_name() for translation of lpoption names to
gtk option names. Usable for options which values don't need
conversion (e.g. number-up, number-up-layout, job-billing
and job-priority).
Rename array option_names to ppd_option_names to reflect its
purpose better. Rename get_option_name() to get_ppd_option_name()
because of the same reason.
2010-10-15 17:01:16 -04:00
Christian Dywan
d70b7f49b6
Use property system to coerce model data to G_TYPE_STRING
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=423201
2010-10-15 17:00:13 -04:00
Matthias Clasen
50cbd23d5b
docs: cross-reference to GtkComboBoxText
2010-10-15 16:58:28 -04:00
Matthias Clasen
3e9bdf6fd9
Add docs for GtkComboBoxText
2010-10-15 16:58:27 -04:00
Matthias Clasen
3e2a259a78
docs: fix a cross-reference
2010-10-15 16:58:27 -04:00
Matthias Clasen
43250e8faf
Deprecate the old combobox text convenience api
2010-10-15 16:58:27 -04:00
Javier Jardón
e7f51ef6a4
Use the new GtkComboBoxText API
...
Also remove mentions of the old text convenience API from the docs,
and point to GtkComboBoxText instead.
2010-10-15 16:58:27 -04:00
Matthias Clasen
99cfbecf46
Add gtk_combo_box_text_new_with_entry
...
Also, make use of the configured entry_text_column.
2010-10-15 16:58:26 -04:00
Matthias Clasen
8353754c17
docs: adjust Since tags
2010-10-15 16:58:26 -04:00
Christian Dywan
a16722fc3a
Use text column value in GtkComboBoxText
2010-10-15 16:58:26 -04:00
Christian Dywan
7a5a5e9c5d
Added GtkComboBoxText api
...
This is a derived class of GtkComboBox to replace the
gtk_combo_box_*_text() convenience API.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=612396
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-10-15 16:58:26 -04:00
John Ralls
27ad64dccf
Bug 631719 - Restore second, more important, call to set label from the menu item.
2010-10-15 13:14:19 -07:00
Javier Jardón
80d3f1fcda
docs: update OSX port project page
2010-10-15 20:55:32 +02:00
Alberto Garcia
8d05e74212
Make gtk_accelerator_get_default_mod_mask() return a GdkModifierType
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=313350
2010-10-15 14:46:22 -04:00
Christian Persch
b5621b3c89
Take cursor hotspot from pixbuf if available
...
Allow -1 for the hotspot coordinates in gdk_cursor_new_from_pixbuf,
if the pixbuf contains the x_hot/y_hot options with appropriate values.
Bug #632140 .
2010-10-15 14:38:21 -04:00
Javier Jardón
cbc358ead8
docs: Document GtkScrolledWindow's signals
...
Based on a patch by Björn Lindqvist
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=351247
2010-10-15 20:34:07 +02:00
Matthias Clasen
921fc8807c
Deprecate gtk_init_add, gtk_remove_add and friends
...
This functions are going to be removed in GTK+ 3.
https://bugzilla.gnome.org/show_bug.cgi?id=629955
2010-10-15 14:13:32 -04:00
Colin Walters
18578b33c5
Add boxed type and constructor
...
This allows bindings to sanely construct these.
https://bugzilla.gnome.org/show_bug.cgi?id=632095
2010-10-15 13:54:37 -04:00
Matthias Clasen
f87023d8ee
Forgotten file
2010-10-15 13:07:08 -04:00
Matthias Clasen
0ff28d72f6
examples: build examples that are included in the docs
...
We build the examples that are included in the 'getting started'
chapter of the docs to prevent them from bitrotting. Also
remove the awk scripts used to extract the old examples from
the tutorial, since the tutorial is gone. I'm still leaving
the examples themeselves in place, for possible inclusion in
'getting started' later on.
2010-10-15 13:02:50 -04:00
Matthias Clasen
ef7fddac3b
docs: Drop the old tutorial
...
The tutorial is outdated, essentially stuck at GTK+ 2.0.
At this point, it is more misleading than helpful.
2010-10-15 13:02:50 -04:00
Matthias Clasen
28cb8583c3
docs: move some tutorial content to the reference
...
We add a "Getting started" chapter that will grow into a
(hopefully) non-outdated, maintained tutorial. For now, it
includes two minimal examples by xincluding them.
2010-10-15 13:02:50 -04:00
Emmanuele Bassi
f085c8b272
docs: Move the introduction of the tutorial in the reference
...
The tutorial should just go away, but some of its contents can be moved
to the API reference as chapters.
https://bugzilla.gnome.org/show_bug.cgi?id=632059
2010-10-15 13:02:50 -04:00
Benjamin Otte
22d28ef47d
x11: Don't set ParentRelative if the parent's visual is different
...
It's like 82e6e32c , but when a pattern is given as argument.
https://bugzilla.gnome.org/show_bug.cgi?id=632218
2010-10-15 17:10:05 +02:00
Matthias Clasen
56e797397b
Improve GtkBox and GtkTable docs a bit
...
This adds some details gleaned from the tutorial, before its
impending demise.
2010-10-15 10:58:35 -04:00
Emmanuele Bassi
17ffcb0cc6
link-button: Add ::activate-link signal
...
We cannot use the GtkButton::clicked signal to override the default
behavior of GtkLinkButton (i.e. call gtk_show_uri()), because
GtkButton::clicked is registered as a RUN_FIRST signal, which obviously
prevents any other signal handler connected to it to stop the
propagation before the class handler has a chance to run.
For this reason we can add a GtkLinkButton::activate-link signal, which
will be emitted by the default GtkButton::clicked signal handler; the
::activate-link signal has a boolean return value, which allows simpler
code for stopping the propagation to the next signal handler.
https://bugzilla.gnome.org/show_bug.cgi?id=632150
2010-10-15 10:36:01 +01:00
Tristan Van Berkom
d7c7f010b0
Removed screwy GtkScrolledWindow logic
...
Removed portion of scrolled-window that observes user-set
size request data (aux_info->width/height) on the child directly
in order to derive it's minimum possible size... if the scrolled
window has (auto/always) scrollbars in a said orientation; only
request enough space for the scrollbars (bug 631976).
2010-10-15 14:14:14 +09:00
Matthias Clasen
479dc131ee
Implement get_preferred_width/height in GtkEventBox
...
And drop size_request.
2010-10-14 23:04:24 -04:00
Matthias Clasen
aaf0f0f5c3
Use gtk_container_handle_border_width() in GtkEventBox
2010-10-14 22:34:39 -04:00
Matthias Clasen
bda1f35585
Inclusion cleanups in sources
...
Try to do inclusions in the same sequence, more or less.
2010-10-14 22:09:36 -04:00
Matthias Clasen
88ef199ed7
Inclusion cleanups in headers
2010-10-14 22:08:53 -04:00
Matthias Clasen
9d644e9d2d
Make gdk.h an include-only header
...
Move declarations to other headers, and introduce some new ones:
gdkmain.h, gdkrectangle.h, gdkthreads.h.
2010-10-14 22:08:48 -04:00
Matthias Clasen
e613d26448
Drop dead gxid_proto.h header
...
This header is no longer used.
2010-10-14 22:08:26 -04:00
Matthias Clasen
9ff4f0819f
Some GDK documentation fixes
2010-10-14 21:45:56 -04:00
Fridrich Štrba
733f1710c6
Enable the build of MS Windows engine again
...
The MS Windows engine compiles anew, so enable it so that one can fix remaining issues
2010-10-14 20:56:30 +02:00
Federico Mena Quintero
85e47b5c4e
Part of bgo#613728 - [GtkTreeView] Focus the list, not the headers, when Tab-focusing
...
The idea is that it is way more common to want to manipulate the
actual list, rather than the headers. Once you Tab into the treeview
(and the list part gets the focus), you can use Shift-Tab to focus
the headers.
This means that some hysteresis is added to the focus chain, but
it makes the treeview a lot more convenient to focus with the keyboard.
Signed-off-by: Federico Mena Quintero <federico@novell.com >
2010-10-14 13:17:46 -05:00
Kristian Rietveld
5cbb309841
Initialize device_cursor hash table before creating impl window
2010-10-14 18:01:51 +02:00
Kristian Rietveld
aeec832f0e
Do not call validate_visible_area() from the draw method
...
Because validate_visible_area() can modify the window size (and thus
the underlying surface), it should not be called from within the draw
method. Given that the presize handler is run with a higher priority
than redraw, and the presize handler will validate the visible area,
there should not be cases wherein the draw method is called and
validate_visible_area() has not been run yet.
However, one such a case was gdk_window_process_updates(), which would
trigger the draw method at some point. We now work around this
by factoring this in a new gtk_tree_view_bin_process_updates() function
that will run the presize handler first if needed.
Note: for other platforms, it might still be the case that the draw
method is called and validate_visible_area() has not been run yet.
(For example the Mac backend calls gdk_window_process_updates() from
the drawRect method, and the redraw-in-idle handling thus works
differently). This does not seem to be a problem now, if
it will be in the future we need to take care of that then.
2010-10-14 17:26:17 +02:00
Kristian Rietveld
4fc31dd87a
Add test for bug 163214
2010-10-14 16:47:00 +02:00
Kristian Rietveld
51820d3e34
Add test for bug 111500
...
This test is constructed in such a way that it breaks when you
(currently!) do not trigger a size-request from validate_visible_area.
Especially row expansion appears to have a need for this currently.
2010-10-14 16:47:00 +02:00
Kristian Rietveld
e774e235d7
Add unit test for bug 93584
2010-10-14 16:47:00 +02:00
Kristian Rietveld
359818d6b7
Also test scrolling to a new row in a mixed height model
2010-10-14 16:47:00 +02:00
Martin Schlemmer
3d31254fd9
Trying to fix MS Windows engine
2010-10-14 14:20:04 +02:00
Matthias Clasen
34b117865a
Initialize variables
...
valgrind was complaining about uninitialized values here, and
sure enough, gdkdevice-xi.c doesn't set device position.
2010-10-14 08:14:33 -04:00
Benjamin Otte
407b73dd80
build: Require cairo-gobject for GDK
...
With the new signal added, GDK now also requires cairo-gobject.
2010-10-14 13:53:23 +02:00
Michael Natterer
4ca2632d42
gdk: add slots for all GdkWindowObject signals
...
Also add padding for future extension.
2010-10-14 13:43:08 +02:00
Michael Natterer
9d9742f1e5
Bug 631599 - Allow to use arbitrary surfaces for offscreen windows
...
Add signal GdkWindow::create-surface which allows to use any
surface type as storage for offscreen windows.
Test the new signal in tests/gdkoffscreenbox.c
2010-10-14 13:25:23 +02:00
Michael Natterer
10c76c1c95
gtk: add cast to fix warning in my last commit
2010-10-14 11:35:30 +02:00
Cody Russell
44cb3bcfed
Implement style_set() for GtkWindow to resize window grips when the style changes.
2010-10-13 23:04:11 -05:00
Tristan Van Berkom
9612c64817
Deprecate GtkComboBoxEntry in favor of added properties to GtkComboBox
...
GtkComboBox now sports a construct-only "has-entry" property which
decides if it uses a GtkEntry to allow additional user input. Also
it has a new "entry-text-column" to fetch strings for the entry
from the model.
This patch deprecates the GtkComboBoxEntry and updates the rest of GTK+
to use the new semantics on GtkComboBox instead.
GtkComboBoxEntry will be removed altogether before GTK+ 3, in a
later commit.
2010-10-13 21:52:27 -04:00
Matthias Clasen
7c8ee80c5a
Add new API to docs and symbol list
2010-10-13 11:24:56 -04:00
Matthias Clasen
7791013754
Support GtkWidget expand properties in GtkNotebook
...
We expand a tab if either tab-expand is set, or the generic widget
expand property in the correct direction is set. And we do not
propagate expand flags from tab labels to the notebook, only
the expand flags from the pages.
2010-10-13 10:49:06 -04:00
Matthias Clasen
48de50df89
Support GtkWidget expand properties in GtkTable
...
We expand a child when it either has the table-specific expand flag
or the generic expand property set. Override compute_expand so that
it also takes the table-specific expand flags of children into
account.
https://bugzilla.gnome.org/show_bug.cgi?id=628902
2010-10-13 10:49:06 -04:00
Matthias Clasen
29ce9e679a
Add a GtkTable testcase
2010-10-13 10:49:06 -04:00
Havoc Pennington
8abb18f910
Support GtkWidget expand properties in GtkBox
...
This consists of:
* expand a child if either child->expand || gtk_widget_get_expand(child)
* override compute_expand so that child->expand will cause us to
return TRUE for gtk_widget_get_expand()
https://bugzilla.gnome.org/show_bug.cgi?id=628902
2010-10-13 10:49:06 -04:00
Havoc Pennington
7597a35477
add tests/testexpand.c used to test the expand props on GtkWidget
...
There are two colored boxes with toggle buttons nested
inside several GtkBox. Toggling these to expand mode
should automatically propagate expansion up through
the several GtkBox such that resizing the window
results in resizing the colored boxes.
https://bugzilla.gnome.org/show_bug.cgi?id=628902
2010-10-13 10:49:04 -04:00
Havoc Pennington
031856eb33
Add horizontal and vertical expand flags, compute_expand() to GtkWidget
...
GtkWidget now has flags for horizontal and vertical expand, and
a compute_expand() method. compute_expand() is used by containers
to set a default expand flag. (If a widget has expand set explicitly,
it always overrides the results of compute_expand.)
GtkContainer has a default implementation of compute_expand which
simply walks over all child widgets and sets expand=TRUE
if any child is expanding.
The overall effect is that you only have to set expand on
leaf nodes in the widget tree, while previously you had to
set expand all the way up the tree as you packed every
container. Also, now containers need not have their own child
properties for expand.
For old containers which do have "expand" child properties,
they should override compute_expand and include the child
properties in whether the container is expand=TRUE.
Also, the old container should use
"child_prop_expand || gtk_widget_compute_expand()" everywhere
it previously used simply "child_prop_expand"
https://bugzilla.gnome.org/show_bug.cgi?id=628902
2010-10-13 10:40:07 -04:00
Matthias Clasen
7d5a85c3ad
Some more resize grip cleanups
...
Don't recompute hints whenever we determine the drag edge, and
take the drag edge into account when deciding whether to show
the grip.
2010-10-13 10:39:09 -04:00
Matthias Clasen
9e661ed0e9
Unify handling of GtkWindow::resizable property
2010-10-13 10:23:51 -04:00
Matthias Clasen
b36819957f
Remove GtkWrapBox from the docs, too
2010-10-13 10:21:04 -04:00
Matthias Clasen
dbdc9c99e5
Make GtkRecentManager use standard icon names for themed icons
2010-10-13 10:18:03 -04:00
Matthias Clasen
f8b8c95f45
Some resize grip cleanups
...
Safe space in the private struct, always set the cursor when we
update visibility, since the cursor depends on resizability conditions
too. And don't set the shape needlessly.
2010-10-13 09:51:54 -04:00
Tristan Van Berkom
e3cc39cb98
Removed all traces of GtkWrapBox from GTK+.
2010-10-13 22:26:44 +09:00
Matthias Clasen
5e1d8814ca
Don't start a drag if we are not resizable
...
This was caused by get_drag_edge() returning -1 to mean 'no drag',
but callers didn't really pay attention. Change get_drag_edge()
to return a boolean instead.
2010-10-13 08:31:06 -04:00
Christian Persch
803233cc14
Use GSettings for the filechooser settings
...
Bug #630850 .
2010-10-13 14:31:07 +02:00
Jorge González
a2e88f9b80
Updated Spanish translation
2010-10-13 14:26:30 +02:00
Jorge González
3b7cbaa47f
Updated Spanish translation
2010-10-13 01:25:28 +02:00
Jorge González
af31afb906
Updated Spanish translation
2010-10-12 21:56:42 +02:00
Michael Natterer
6bdc9b7f8a
Bug 563002 - Doesn't call 'update-preview' on set_filename
...
Call gtk_tree_view_set_cursor() in addition to
gtk_tree_selection_select_iter() when selecting the file in
show_and_select_files() so the preview update machinery gets
triggered.
(cherry picked from commit 795c8070db )
2010-10-12 21:27:21 +02:00
Matej Urbančič
4469d2cde1
Updated Slovenian translation
2010-10-12 20:09:27 +02:00
Kristian Rietveld
25bf8ba4de
Don't check resize-grip-visible in default values unit test
...
The value for this property is determined at runtime.
2010-10-12 19:12:44 +02:00
Kristian Rietveld
d7c3d378eb
Disable resize grip on spin button test
...
Otherwise, the resize grip obscures the decrement button causing the
test to fail.
2010-10-12 19:12:44 +02:00
Kristian Rietveld
c143105ae9
Fix scrolled window policy so the size allocation does not "flap"
2010-10-12 19:12:44 +02:00
Kristian Rietveld
65c3fc9953
Handle off-by-one errors due to rounding
2010-10-12 19:12:44 +02:00
Kristian Rietveld
b58e3bb30c
Use double iso. float since that is what GtkAdjustment uses
2010-10-12 19:12:44 +02:00
Kristian Rietveld
e732c16aab
Use GtkAdjustment accessors to properly compress changed signals
2010-10-12 19:12:44 +02:00
Matthias Clasen
c7e024d160
Rework GdkPangoRenderer example to use existing api
2010-10-12 11:29:56 -04:00
Matthias Clasen
abb25b7895
docs: add a longdesc for X-specifics
2010-10-12 11:29:56 -04:00
Matthias Clasen
0a8abdcdf6
docs: Update cairo-related docs
2010-10-12 11:29:55 -04:00
Matthias Clasen
d8700a02f1
docs: Remove mentions of GdkPixmap from cursor docs
2010-10-12 11:29:55 -04:00
Matthias Clasen
ec7c2acf7b
Move GdkVisualType docs inline
2010-10-12 11:29:55 -04:00
Matthias Clasen
4d63d96762
docs: Correct some link targets
2010-10-12 11:29:55 -04:00
Jorge González
2853db41f8
Updated Spanish translation
2010-10-12 17:16:12 +02:00
Tor Lillqvist
eae3183f1c
Add two new functions to gtk.symbols
2010-10-12 14:39:30 +03:00
Michael Natterer
bef6c0a4a3
Bug 631599 - Allow to use arbitrary surfaces for offscreen windows
...
As a first step, create surfaces lazily and factor surface creation
out to a single function.
2010-10-12 11:34:20 +02:00
Tristan Van Berkom
e85dad38e2
Added logic to GtkScrolledWindow when allocating height-for-width children.
...
This patch makes the scrolled window reconsider allocating the child
the full width or height (depending on the child's request mode) without
a scrollbar. For instance when the child is height-for-width; the child
will first be tested if the content's height for full allocated width
(without a vscrollbar) will allow the contents height for that width
to fit the allocated height.
Patch is a simplified version of code inspected in st-scroll-view.c.
Note that this patch assumes children will begin to scroll only after
reaching their minimum size; adding a property to the future
GtkScrollableIface to decide whether to scroll-to-minimum or scroll-to-natural
will effect this code (it should then reconsider whether the child
will scroll below the natural size instead of the minimum).
Patch addresses bug 629778.
2010-10-12 17:16:32 +09:00
Tristan Van Berkom
0e0d938cc3
Make GtkScrolledWindow offload border-width calculations to GtkContainerClass.
2010-10-12 17:10:55 +09:00
Matthias Clasen
f106d369a7
Don't link to old stuff
2010-10-12 01:10:32 -04:00
Matthias Clasen
5a6ea62125
Add a missing close tag
2010-10-12 01:05:39 -04:00
Matthias Clasen
b23dc8477f
Remove a note about GTK 1.2 api
2010-10-12 00:57:13 -04:00
Matthias Clasen
36f1d08bce
Fix a trivial typo
2010-10-12 00:50:18 -04:00
Matthias Clasen
6899956770
Reorder some sections
2010-10-12 00:47:49 -04:00
Matthias Clasen
cf1745a935
Remove mentions of dialog separator from the docs
2010-10-12 00:38:04 -04:00
Matthias Clasen
82712a150a
Some documentation updates
2010-10-12 00:33:38 -04:00
Matthias Clasen
e0c2a4e10f
Inspect geometry when setting resize grip cursors
...
We want to use the same cursor as metacity when the window is only
resizable in one dimension.
2010-10-11 23:26:58 -04:00
Owen W. Taylor
a4a7a611f2
GtkWindow: Allow setting size from geometry
...
If you set a geometry widget via gtk_window_set_geometry_hints() it
becomes very hard to compute appropriate toplevel sizes in pixels
to make the window a particular size. Synthesizing strings and passing
them to gtk_window_parse_geometry() is possible, but to avoid
avoid such ugliness, add functions:
gtk_window_set_default_geometry()
gtk_window_resize_to_geometry()
That act like gtk_window_set_default_size() and
gtk_window_resize() but are in terms of the resize increments of the
geometry widget.
https://bugzilla.gnome.org/show_bug.cgi?id=631796
2010-10-11 14:06:16 -04:00
Owen W. Taylor
519d758711
Warn when calling gtk_window_parse_geometry() on an empty window
...
gtk_window_parse_geometry() gets the size of the window in order
to interpret the position of the window; calling it before, say,
calling gtk_widget_show_all() on a window is a subtle trap, so
add a warning in the case we can easily detect.
https://bugzilla.gnome.org/show_bug.cgi?id=631794
2010-10-11 14:06:03 -04:00
Owen W. Taylor
88cf547029
Fix handling of the geometry widget
...
The geometry widget feature of gtk_window_set_geometry_hints() has
never really worked right because the calculation that GTK+ did to
compute the base size of the window only worked when the geometry
widget had a larger minimum size than anything else in the window.
Setup:
* Move the GtkSizeGroup private functions to a new private header
gtksizegroup-private.h
* Add the possibilty to pass flags to _gtk_size_group_queue_resize(),
with the flag GTK_QUEUE_RESIZE_INVALIDATE_ONLY to suppress adding
the widget's toplevel to the resize queue.
* _gtk_container_resize_invalidate() is added to implement that feature
* _gtk_widget_override_size_request()/_gtk_widget_restore_size_request()
allow temporarily forcing a large minimum size on the geometry
widget without creating resize loops.
GtkWindow:
* Compute the extra width/height around the geometry widget
correctly; print a warning if the computation fails.
* Always make the minimum size at least the natural minimum
size of the toplevel; GTK+ now fails badly with underallocation.
* Always set the base size hint; we were failing to set it
properly when the specified minimum size was overriden, but
it's harmless to always set it.
Tests:
* New test 'testgeometry' that replaces the 'gridded geometry' test
from testgtk. The new test is roughly similar but creates a bunch
of windows showing different possibilities.
* The testgtk test is removed. No need to have both.
https://bugzilla.gnome.org/show_bug.cgi?id=68668
2010-10-11 14:05:29 -04:00
Tristan Van Berkom
c250a7e673
Added documentation to GtkContainer about implementing containers using height-for-width apis.
2010-10-12 00:47:43 +09:00
Vincent Untz
4490aeddf7
build: Distribute README.multipress
...
https://bugzilla.gnome.org/show_bug.cgi?id=631872
2010-10-11 15:21:56 +02:00
Fran Diéguez
70228649ee
Updated Galician translations
2010-10-11 10:22:04 +02:00
Ivar Smolin
4588408268
[l10n] Updated Estonian translation
2010-10-11 09:40:35 +03:00
Javier Jardón
c2ab54a31f
docs: Move documentation do inline comments: GtkContainer
2010-10-11 05:13:45 +02:00
Javier Jardón
cabc386252
docs: Improve reference crossing in GtkWidget docs
2010-10-11 05:04:20 +02:00
Xan Lopez
71b4d83144
Plug memory leak in GtkWindow
...
1,936 (112 direct, 1,824 indirect) bytes in 4 blocks are definitely lost in loss record 13,453 of 13,673
at 0x4005BDC: malloc (vg_replace_malloc.c:195)
by 0x69615A1: cairo_region_create (cairo-region.c:196)
by 0x683BFBF: gdk_cairo_region_create_from_surface (gdkcairo.c:455)
by 0x670C882: set_grip_shape (gtkwindow.c:5020)
by 0x670CFBF: resize_grip_create_window (gtkwindow.c:5271)
by 0x670C466: gtk_window_realize (gtkwindow.c:4902)
Signed-off-by: Benjamin Otte <otte@redhat.com >
2010-10-11 02:33:25 +02:00
Xan Lopez
3f3d33ee6c
Plug leak in gdkcairo.c
...
1,968 (1,236 direct, 732 indirect) bytes in 1 blocks are definitely lost in loss record 11,816 of 11,947
at 0x4025BDC: malloc (vg_replace_malloc.c:195)
by 0x6950676: _context_get (cairo.c:250)
by 0x6950940: cairo_create (cairo.c:370)
by 0x685CD1E: _gdk_cairo_surface_extents (gdkcairo.c:381)
by 0x685CEDA: gdk_cairo_region_create_from_surface (gdkcairo.c:433)
Signed-off-by: Benjamin Otte <otte@redhat.com >
2010-10-11 02:33:09 +02:00
Javier Jardón
ee58c6c37d
docs: Move documentation to inline comments: GtkScrolledWindow
2010-10-11 02:17:08 +02:00
Javier Jardón
9009683247
docs: Region returned by gdk_cairo_region_create_from_surface() should be freed
2010-10-11 02:17:08 +02:00
Gil Forcada
0afd8be7ef
Updated Catalan translation
2010-10-10 23:22:40 +02:00
Simos Xenitellis
120a1006da
l10n: Updated Greek translation for gtk+ properties
2010-10-10 21:18:39 +03:00
Jorge González
6c258b863d
Updated Spanish translation
2010-10-09 14:26:20 +02:00
A S Alam
ff2476152b
updating translation for Punjabi
2010-10-09 08:27:32 +05:30
Matthias Clasen
9d750ad13e
Fix a problem with 'resize grip avoidance' in scrollbars
...
We need to be a little more careful when determining the overlap
between the new allocation and the grip area. This was causing
vertical scrollbars in evince to overlap with the grip.
2010-10-08 22:04:33 -04:00
Matthias Clasen
2f8f0d8eab
Check for grip_window != NULL in gtk_window_draw
...
This is safer, since GtkWindow subclasses may override realize
and end up with has_resize_grip == TRUE, but grip_window still
being NULL - as is the case with GtkPlug.
2010-10-08 20:19:24 -04:00
William Jon McCann
de3e703444
gail: GtkTreeViewColumn doesn't have a destroy signal anymore
...
Replace with g_object_set_qdata_full usage.
2010-10-08 19:57:06 -04:00
William Jon McCann
f8b573766d
Don't assume widgets are containers when walking the focus tree
...
This causes problems for links in labels.
2010-10-08 19:27:35 -04:00
Colin Walters
6c537bd0bf
autogen: Explicitly allow libtool > 2.2
...
Apparently 2.4 is out, I'm not aware of a reason we shouldn't
allow it.
2010-10-08 16:46:50 -04:00
Matthias Clasen
31a45c957c
Fix grip window positioning
...
We need to position the grip window in size_allocate after all,
otherwise the grip ends up in the wrong place when the window
is realized early.
Also, avoid shadowing a variable.
2010-10-08 14:21:11 -04:00
Matthias Clasen
0ebf090d9e
Don't show resize grips on override-redirect window
2010-10-08 14:01:46 -04:00
Matthias Clasen
9b9ccb56b1
Make GtkPaned use gtk_container_class_handle_border_width
2010-10-08 11:11:33 -04:00
Matthias Clasen
f7418b1652
Make GtkPaned use gtk_container_class_handle_border_width
2010-10-08 10:45:24 -04:00
Matthias Clasen
c113b8e229
Make GtkPathBar use gtk_container_class_handle_border_width
2010-10-08 10:27:00 -04:00
Tristan Van Berkom
5a7cfa7fb9
Migrated old GtkSizeRequestIface documentation to GtkWidget and added notes to gtk_widget_get_preferred_size().
2010-10-08 23:18:05 +09:00
Christian Dywan
e9a7a2104b
Use and print note for key only if there are credentials
...
Otherwise key might be printed uninitialized.
2010-10-08 16:03:49 +02:00
Tristan Van Berkom
3267cd08e9
Removed call to get_preferred_size (widget, NULL, NULL);
...
This was another case of making sure size-request was called
before other code was doing get_child_requisition(), now caching
is done via the same api so no need for that line.
2010-10-08 22:33:21 +09:00
Tristan Van Berkom
480b9f6b11
Removed needless initial size request of children
...
Old code was probably doing size-request on all children initially,
and then calling get_child_requisition() in other passes, now these
are cached after the first request anyway.
2010-10-08 22:33:21 +09:00
Tristan Van Berkom
c1e9f4a798
Removed needless size-requesting of children (child sizes are ignored at request time).
2010-10-08 22:33:21 +09:00
Matthias Clasen
2e98e37fe4
Make GtkTable use gtk_container_handle_border_width
2010-10-08 09:28:00 -04:00
Matthias Clasen
f8490e425f
Add a migration guide section about resize grips
2010-10-08 02:18:15 -04:00
Matthias Clasen
8ed725bad8
Get scrollbars out of the way of the window's resize grip
...
If there are both horizontal and vertical scrollbars, there is
an unused 'corner' into which the resize grip fits. Individual
scrollbars need to be shortened and moved to make room for the
resize grip.
2010-10-08 02:14:19 -04:00
Matthias Clasen
b04bceb47e
Remove resize grip handling from GtkStatusbar
...
We remove the resize grip from GtkStatusbar, but keep the code
that makes the content avoid the grip, and adapt it to GtkWindow
grips.
The gtk_status_bar_set/get_has_resize_grip() functions and related
properties are removed.
2010-10-08 02:14:19 -04:00
Cody Russell
fe9a45c413
Remove uses of gtk_statusbar_set_has_resize_grip()
...
This function is going away.
2010-10-08 02:14:19 -04:00
Matthias Clasen
f9265ea3b8
Fix resize grip drawing in GtkAssistant
...
Chain up in the draw() implementation of GtkAssistant to let
GtkWindow draw the resize grip. This avoids black resize grips
in GtkAssistant windows.
2010-10-08 02:14:19 -04:00
Matthias Clasen
f6347baf64
Add resize grips to GtkWindow
...
Allow any window to display a resize grip, in the south-east or
south-west corner, depending on text direction. This is implemented
as a shaped window that gets overlayed on top of whatever content
is there. We add api that allows widgets to avoid the resize grip,
if desired.
The ::has-resize-grip property controls if a window may display
a resize grip. It will only be displayed if the window is resizable
and not maximized.
The size and visual appearance of the resize grip is under theme
control, using the resize-grip-width/height style properties and
the paint_resize_grip style function.
2010-10-08 02:14:10 -04:00
Matthias Clasen
368f0d0843
Fix export of a few (currently unused) configure variables
...
Turns out that autoconf eats all the m4_define magic before
AC_INIT.
2010-10-07 07:50:30 -04:00
William Jon McCann
cadbdd32ba
gail: don't try to get stock id from images that aren't stock
...
Fixes assertion caused by 41d2a4d059
2010-10-07 02:52:35 -04:00
Tor Lillqvist
bbf189ca0d
Gail needs _gtk_cell_renderer_calc_offset
2010-10-07 01:28:48 +03:00
Tor Lillqvist
3c4d1cc856
Bypass the ms-windows engine for now
...
It requires massive changes to build again. I started, but gave
up. More insight is needed.
2010-10-07 01:28:47 +03:00
Tor Lillqvist
e346d26f70
Make it compile again for Windows
2010-10-07 01:28:47 +03:00
Stef Walter
4196f56de9
Remove reference to hooks in gtk_about_dialog_set_website() docs.
...
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-10-06 23:54:35 +02:00
Federico Mena Quintero
e17b9ae8ba
Filechooser - In OPEN or SAVE mode, typing a plain folder name should switch to it
...
If you type 'subfolder/' and hit Enter, the file chooser will switch you to
it. But if you type just 'subfolder' without the trailing slash, apps would
receive *that* filename (e.g. file:///foo/bar/subfolder) as the response, and
they would likely print an error that they can't open that file (as it is
a folder). So, we change the file chooser's current folder to that subfolder
in this case.
Signed-off-by: Federico Mena Quintero <federico@novell.com >
2010-10-06 13:10:16 -05:00
Benjamin Otte
e3e243688a
widget: Fix GtkWidget::draw docs
...
width and height have been gone for a while...
2010-10-06 12:53:33 +02:00
Tristan Van Berkom
e1b00b52d2
Enhanced documentation description for GtkWrapBox (text by Murray Cumming).
2010-10-06 17:00:43 +09:00
Baurzhan Muftakhidinov
22e9fcf6db
Updates for Kazakh translation
2010-10-06 10:36:18 +06:00
John Ralls
c3851df92d
Replace GDK_Tab and GDK_ISO_Left_Tab with GDK_KEY equivalents
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=631475
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-10-06 01:20:29 +02:00
Javier Jardón
718ccc9e4e
docs: visuals: Do not mention deprecated GdkRGB API's
...
Reported by Milan Bouchet-Valat in bug
https://bugzilla.gnome.org/show_bug.cgi?id=631473
2010-10-06 01:11:19 +02:00
Benjamin Otte
60655a36dc
docs: Dn't mark all signals in GtkWidgetClass as private
...
They are meant to be overwritten by subclasses after all.
2010-10-05 23:25:53 +02:00
Benjamin Otte
04c630d0fd
viewport: Clip contents properly when called via gtk_widget_draw()
2010-10-05 23:22:55 +02:00
Benjamin Otte
2a1650843d
Revert "testgtk: Remove snapshot test"
...
This reverts commit 99c82af20a and fixes
up things to compile again. Of course, the snapshotting now uses
gtk_widget_draw() instead.
2010-10-05 23:22:55 +02:00
Javier Jardón
cc0ada40b5
docs: reword GtkAdjustment short description
2010-10-05 22:55:08 +02:00
Federico Mena Quintero
1d21668ecc
Handle the case where you type /blah/nonexistent in SELECT_FOLDER mode
...
Previously name_entry_get_parent_info_cb() would fail as it doesn't handle SELECT_FOLDER.
Now we just make that function act the same as for CREATE_FOLDER mode. In either
case, if you type "/blah/nonexistent" and hit Enter, you want a folder
with that name to be created (under the already-existing /blah).
Signed-off-by: Federico Mena Quintero <federico@novell.com >
2010-10-05 15:35:31 -05:00
Stephen Shaw
f7a20e35c1
Clarify the name of a callback
...
The old save_entry_get_info_cb() was misnamed; it is actually used
to see if a file's presumed parent *is* a folder. So we rename
it to name_entry_get_parent_info_cb().
Signed-off-by: Federico Mena Quintero <federico@novell.com >
2010-10-05 15:35:31 -05:00
Stephen Shaw
2b348f9a48
bgo#629722 - file chooser should cope with typing a directory name and then Enter
...
file_exists_get_info_cb() used to let some actions fall through to
the code that checks for the file type of the selected file's parent
(e.g. to see if /foo/bar *is* indeed a folder if you type /foo/bar/baz).
However, we need to be more explicit for each file chooser action, as
in SELECT_FOLDER mode typing /foo/foldername and hitting Enter would not
give you an immediate selection, but rather the file chooser would
complain that it couldn't create that directory as it already exists.
Signed-off-by: Federico Mena Quintero <federico@novell.com >
2010-10-05 15:35:30 -05:00
Kibavuidi Nsiangani
0eab3a7ad7
Added Kikongo translation
2010-10-05 21:56:56 +02:00
Kristian Rietveld
eca2af5230
Make set_cairo_surface_size a vfunc on GdkWindowImpl
...
Note the special implementation of this method on GdkOffscreenWindow
that makes sure its current surface is not destroyed.
2010-10-05 15:38:23 +02:00
Michael Natterer
a472d1a400
tests: don't call gtk_widget_get_allocation() on NULL children
2010-10-05 13:05:56 +02:00
Javier Jardón
90d9bfe086
gtkmenu: Really fix menu code
...
Previous patch f0039aa2a4
is not correct as it try to fix a bug introduced in commit
3a10216dd0
2010-10-04 18:51:28 +02:00
Christian Persch
f0039aa2a4
Fix a crash in menu code
...
https://bugzilla.gnome.org/show_bug.cgi?id=631311
2010-10-04 10:36:43 -04:00
Matthias Clasen
21eae6b6f3
Make GdkRectangle arguments in GtkCellRenderer use const consistently
...
https://bugzilla.gnome.org/show_bug.cgi?id=630900
2010-10-04 10:23:55 -04:00
Kristian Rietveld
8970b174dc
quartz: Emulate root window as 1x1 bitmap
...
We subclass GdkWindowImplQuartz into a new GdkRootWindowImplQuartz,
and override the get_context method in order to do this cleanly.
Also made release_context a virtual method, since the root window has
to release its CGContextRef differently compared to normal windows.
2010-10-04 11:45:47 +02:00
Javier Jardón
97bdf55b6d
docs: Move documentation to inline comments: colors
2010-10-04 03:48:05 +02:00
Javier Jardón
9e869af6c5
docs: Move documentation to inline comments: pixbufs
2010-10-04 03:36:12 +02:00
Javier Jardón
a4c2018452
docs: Move documentation to inline comments: regions
2010-10-04 03:19:43 +02:00
Javier Jardón
4e71a4df7b
docs: Move documentation to inline comments: cairo_interaction
2010-10-04 03:04:09 +02:00
Javier Jardón
5a30dad531
docs: Move documentation to inline comments: GtkComboBox
2010-10-04 02:37:42 +02:00
Ignacio Casal Quinteiro
13c4c554ef
Add missing vfuncs to gtknotebook.
2010-10-03 21:48:56 +02:00
Javier Jardón
bbd80b671a
docs: Move documentation to inline comments: GtkNotebook
2010-10-03 20:21:48 +02:00
Žygimantas Beručka
b4f81fd612
Updated Lithuanian translation by Aurimas Černius <aurisc4@gmail.com> and Rimas Kudelis <rq@akl.lt>
2010-10-03 15:21:48 +02:00
Žygimantas Beručka
a1ee7e7a30
Updated Lithuanian translation by Aurimas Černius <aurisc4@gmail.com>
2010-10-03 15:15:53 +02:00
José Aliste
846f774642
textview: Fix clip usage
...
The previous code used cairo_clip_extents() and interpreted its
parameters wrong.
https://bugzilla.gnome.org/show_bug.cgi?id=631203
2010-10-03 12:30:30 +02:00
Javier Jardón
c4705377f4
docs: Latest 2.x release will be 2.24, not 2.22
2010-10-03 04:59:23 +02:00
Javier Jardón
2a9d299aa3
docs: Use gtk_widget_get_preferred_size() instead gtk_size_request_get_preferred_size()
...
GtkSizeRequest interface is now merged in GtkWidget
2010-10-03 03:42:31 +02:00
Garrett Regier
78bd97bfbe
docs: Move documentation to inline comments: GtkEntryBuffer
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=617320
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-10-03 01:21:38 +02:00
Javier Jardón
ccaf842919
docs: Move documentation to inline comments: GtkTooltip
2010-10-03 00:59:39 +02:00
Javier Jardón
3846988211
docs: Move documentation to inline comments: GtkToolbar
2010-10-03 00:30:25 +02:00
Garrett Regier
5fcf06bb91
docs: Move documentation to inline comments: GtkComboBoxEntry
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=617308
Signed-off-by: Javier Jardón <jjardon@gnome.org >
2010-10-02 22:39:35 +02:00
William Jon McCann
5fbd77526a
gail: use a weak pointer instead of an invalid destroy signal
2010-10-02 15:45:46 -04:00
Matthias Clasen
fcbe49829c
Bump version to 2.91.1
2010-10-01 23:29:00 -04:00
Matthias Clasen
6f3c3c3413
Fix a reference in the gdk_pixbuf_get_from_surface docs
2010-10-01 21:43:23 -04:00
Matthias Clasen
30a660213e
More distcheck fixes
2010-10-01 21:40:34 -04:00
Benjamin Otte
e9c9193ff6
gail: Fix menu emission hooks
...
Ref the GtkmenuItem class, so we can add emission hooks. And actually
add the emission hooks again that were removed in
7c140feb6b .
2010-10-02 03:34:42 +02:00
Benjamin Otte
872ef111ec
gdk: Make gdk_pixbuf_get_from_*() bindable
...
The ownership of the return value for gdk_pixbuf_get_from_window() and
gdk_pixbuf_get_from_surface() was determined by the first argument.
Because that is an ugly design and the functions are new to GTK3, we
decided to adapt them.
And that adaptation was quite easy since almost no one passses anything
but NULL as the first argument.
2010-10-02 03:08:24 +02:00
Matthias Clasen
0555dd0645
Fix distcheck
...
Don't include config.h in headers, it doesn't work.
2010-10-01 20:02:35 -04:00
Matthias Clasen
9595501dbd
Fix make dist
2010-10-01 18:46:09 -04:00
Matthias Clasen
4eac816898
Update NEWS for 2.91.0
2010-10-01 18:29:14 -04:00
Matthias Clasen
8fdcd4bfb2
Update po files
2010-10-01 18:29:12 -04:00
Colin Walters
9a6c1e58b6
Distribute autogen.sh
...
This makes it easier for OS vendors to always invoke autogen.sh
for building, regardless of building from legacy tarballs or
git snapshots.
2010-10-01 17:30:18 -04:00
Matthias Clasen
2d3d2a2626
Set version to 2.91.0
...
Having an odd minor helps some tools which assume 'even minor == stable'
and 2.91 will keep us in sync with the wider GNOME versioning.
2010-10-01 14:57:25 -04:00
Matthias Clasen
fc2da1a137
Migration guide: Add an example for creating custom cursors
2010-10-01 14:54:11 -04:00
Matthias Clasen
86665897db
Revert an erroneous change
2010-10-01 13:46:39 -04:00
Matthias Clasen
e3957f559d
GTK docs: Update width-for-height docs
...
Some places did not get updated after the recent rename-and-GtkWidget-merge.
2010-10-01 13:10:35 -04:00
Matthias Clasen
0bca60fdd3
GTK docs: various fixups
2010-10-01 13:05:12 -04:00
Matthias Clasen
d35aa02dd5
Drop GdkSpan type
...
GdkSpan is not used anywhere.
2010-10-01 09:39:10 -04:00
Matthias Clasen
28aa906681
GDK docs: Improve gdk_pixbuf_get_from_window docs
2010-10-01 09:38:36 -04:00
Matthias Clasen
32d1defc76
GDK docs: help gtk-doc understand gdk_window_invalidate_maybe_recurse
2010-10-01 09:10:52 -04:00
Matthias Clasen
448d903c16
GDK docs: improve the gdk_x11_display_error_trap_push docs
2010-10-01 08:16:38 -04:00
Matthias Clasen
4e96a84c67
GDK docs: Clean out some dead symbols
2010-10-01 08:09:31 -04:00
Matthias Clasen
036aa0eea9
GdkVisual: tell gtk-doc to ignore the innards
2010-10-01 07:37:26 -04:00
Matthias Clasen
8f91329900
Update for recent api changes
2010-10-01 07:09:28 -04:00
Matthias Clasen
98b497eb99
Remove colormap api from gdk.symbols
2010-10-01 07:09:28 -04:00
Richard Hughes
f3716aa210
Complete the removal of GtkObject to fix make dist
2010-10-01 12:37:34 +01:00
Richard Hughes
908bdf7941
Complete the removal of examples/pixmap to fix make dist
2010-10-01 12:37:34 +01:00
Jonh Wendell
0fa0e653d5
Initialize private structure
2010-09-30 16:56:11 -03:00
William Jon McCann
7c140feb6b
gail: remove obsolete select and deselect signals from MenuItem
...
They were removed in 3bd93e5bfd
2010-09-30 14:42:38 -04:00
Benjamin Otte
f64e2df911
dnd: Fix gtk_drag_set_icon_surface() with translucent surfaces
...
The code for surfaces with alpha content was apparently untested and
screwed up the signs.
2010-09-30 16:25:44 +02:00
Benjamin Otte
7203b72193
gdk: Fix gdk_cairo_region_create_from_surface() with device offsets
2010-09-30 16:24:41 +02:00
Benjamin Otte
c6e58f84ee
trayicon: Use gdk_cairo_get_clip_rectangle() to simplify code
2010-09-30 15:50:52 +02:00
Benjamin Otte
7acb4d0502
docs: Add note about hot_x/y in gtk_drag_set_icon_surface()
2010-09-30 13:55:10 +02:00
Kristian Rietveld
1b9029fc64
Fix GDK build on Quartz
2010-09-30 09:01:11 +02:00
Colin Walters
ad474edda8
introspection: Fix some annotation syntax
2010-09-29 10:45:04 -04:00
Benjamin Otte
14dc932fd1
gtk: Fix remaining mentions of gtk_container_propagate_expose()
...
That includes the gtkcontainer.h header file.
https://bugzilla.gnome.org/show_bug.cgi?id=630800
2010-09-29 14:14:20 +02:00
Benjamin Otte
1408bd9a37
gdk: Don't (un)set the background when destroying a window.
...
This previously caused the x11 code to do a XSetWindowBackgroundPixmap
call on a window that was about to be destroyed. And that's not really
useful.
https://bugzilla.gnome.org/show_bug.cgi?id=630864
2010-09-29 12:18:17 +02:00
Benjamin Otte
82e6e32c77
x11: Don't set ParentRealtive if the parent's visual is different
...
Causes a BadMatch otherwise, see code comments.
https://bugzilla.gnome.org/show_bug.cgi?id=630864
2010-09-29 12:18:17 +02:00
Javier Jardón
72d48cbc61
gtk-demo: remove GtkObject type
2010-09-29 06:11:13 +02:00
Javier Jardón
7f88afef90
examples/gtkdial/gtkdial.c: Fixing for removal of GtkObject type
2010-09-29 06:06:50 +02:00
Javier Jardón
34ae2ea601
examples/colorsel/colorsel.c: remove unneded GTK_OBJECT cast
2010-09-29 06:01:07 +02:00
Javier Jardón
e141bd3287
testtext: Use gtk_widget_destroy() instead gtk_object_destroy()
2010-09-29 05:58:02 +02:00
Javier Jardón
b072ea220c
Remove unneded casts
...
As gtk_adjustment_new() returns a GtkAdjustment* now
https://bugzilla.gnome.org/show_bug.cgi?id=630731
2010-09-29 01:18:10 +02:00
Javier Jardón
42f480a537
gtk_adjustment_new() should return a GtkAdjustment*
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=630731
2010-09-29 01:18:10 +02:00
Benjamin Otte
948768c708
API: remove gtk_window_set_visual()
...
gtk_widget_set_visual() exists now and can be used instead.
This reverts commit 59b227e123 .
2010-09-28 19:13:24 +02:00
Benjamin Otte
bf81be51eb
testgtk: Use gtk_widget_set_visual()
2010-09-28 19:11:46 +02:00
Benjamin Otte
32c80ca6a9
trayicon: Use gtk_widget_set_visual()
2010-09-28 19:11:30 +02:00
Benjamin Otte
5ac6234815
API: gtk: Add gtk_widget_set_visual()
...
It turns out that the previous handling of just providing a way to set
visuals just on toplevels was not sufficient. In particular it
complicated the various implementations of the tray icon specification.
This patch reintroduces gtk_widget_set_visual() which behaves very
similar to GTK2's gtk_widget_set_colormap().
A future commit will remove the gtk_window_set_visual() function.
2010-09-28 19:11:21 +02:00
Benjamin Otte
d4fb25f6de
widget: Fix compile warnings: missing return value
2010-09-28 18:33:23 +02:00
Benjamin Otte
d9c581900b
gail: Fix tests compilation - too many casts
2010-09-28 18:26:31 +02:00
Benjamin Otte
65dee4e31b
toolbar: Fix compilation warnings - missing cast
2010-09-28 18:26:23 +02:00
Benjamin Otte
de89fe501d
treeview: Fix compilation warnings - missing cast
2010-09-28 18:26:05 +02:00
Benjamin Otte
69240d9824
offscreenwindow: Fix includes
2010-09-28 18:24:55 +02:00
Benjamin Otte
6c7daaf8b9
notebook: Fix compilation warnings - missing cast
2010-09-28 18:24:34 +02:00
Benjamin Otte
7adeca53b2
combobox: Fix compilation warnings - missing cast
2010-09-28 18:24:14 +02:00
Michael Natterer
06773b1e8b
gdk: remove "screen" member from GdkOffscreenWindow, it has become obsolete
...
Also remove screen parameter from _gdk_offscreen_window_new() and get
rid of a bunch on includes in gdkoffscreenwindow.c
2010-09-28 16:05:38 +02:00
Tor Lillqvist
f51f39af2a
Create directory before installing files there
2010-09-28 16:24:24 +03:00
Claudio Saavedra
e0f290278b
Fix maintainer-clean
...
gtkimcontextsimpleseqs.h is not really autogenerated but shipped
https://bugzilla.gnome.org/show_bug.cgi?id=630708
2010-09-28 10:39:39 +03:00
Matthias Clasen
2b3574dda1
Improve some docs
2010-09-27 20:59:08 -04:00
Sílvia Miranda
296824ecf3
Updated Catalan translation
2010-09-28 00:04:12 +02:00
Gil Forcada
3ae29e1d6b
Removed invalid entry
2010-09-28 00:03:28 +02:00
Benjamin Otte
dec47f062e
label: Fix rendering of rotated labels
...
gtk_paint_layout is utterly broken. Someone needs to fix it so we use
the cairo_t's matrix and don't juggle with both Pango and cairo matrices
everywhere.
2010-09-27 20:49:39 +02:00
Benjamin Otte
1b170a1a14
gtk-demo: Clean up toolpalette drawing code
...
Fix compile warning and use cairo_paint() instead of querying the widget
size and cairo_fill()ing it.
2010-09-27 20:49:06 +02:00
Benjamin Otte
efefc4e794
cups: Fix compile warnings with --enable-debug
2010-09-27 20:48:43 +02:00
Benjamin Otte
f0d337a0ca
x11: Fix debug code
...
With recent changes, nobody compiled with debug enabled. Fix that.
2010-09-27 17:39:51 +02:00
Tristan Van Berkom
7047502d84
Fix erroneous usage of height-for-width apis in gtk_widget_real_adjust_size_allocation().
...
When fitting a widget into its allocation, the second dimension
is always dependent on the first, so gtk_widget_get_preferred_size()
cannot be used directly (because we want the natural height for
the allocated width, not the natural height for the natural width,
which is generally a smaller height than the height-for-minimum-width
or height-for-allocated-width).
Added test to testadjustsize to ensure proper behaviour.
2010-09-27 21:15:16 +09:00
Tristan Van Berkom
de0428fe52
Fixing documentation of gtk_widget_get_request_mode()
2010-09-27 15:11:27 +09:00
Tristan Van Berkom
427226b083
Fixing demos/ directory to build for removal of GtkObject type.
2010-09-27 15:10:50 +09:00
Tristan Van Berkom
e4a0a39a56
Fixing tests/ build for removal of GtkObject type.
2010-09-27 15:10:23 +09:00
Tristan Van Berkom
53214f2584
Fixing gail build for removal of GtkObject type.
2010-09-27 15:09:51 +09:00
Matthias Clasen
87e29c99d7
Add a migration guide section on GtkObject
2010-09-26 22:29:33 -04:00
Matthias Clasen
b81de973af
Remove GtkObject from the docs
2010-09-26 22:18:46 -04:00
Matthias Clasen
d869a1e419
Remove GtkWidgetFlags
2010-09-26 22:18:46 -04:00
Matthias Clasen
f53ad33994
Remove GtkObject completely
2010-09-26 22:18:19 -04:00
Javier Jardón
eac1959d2c
Move destroy signal to GtkWidget
...
Also make GtkWidget derive from GInitiallyUnowned
2010-09-26 22:18:18 -04:00
Javier Jardón
3b8184cfee
Move classes that currently derive from GtkObject to GInitiallyUnowned
2010-09-26 22:18:13 -04:00
Javier Jardón
945e97e505
Move documentation to inline comments: GtkPaperSize
2010-09-27 03:49:49 +02:00
Tadej Borovšak
d947178e42
Update and expand GtkAccelMap API docs
2010-09-27 03:04:34 +02:00
Javier Jardón
e267ed84db
Move documentation to inline comments: GtkAccelMap
2010-09-27 02:56:25 +02:00
Matthias Clasen
aa8561aac2
Add a missing end tag
2010-09-26 20:42:07 -04:00
Benjamin Otte
f15860fb31
tests: Port testadjustsize to draw vfunc
2010-09-27 00:50:14 +02:00
Javier Jardón
e16f9bc51c
gtk-demo: Use draw signal in toolpalette demo
2010-09-27 00:07:20 +02:00
Damyan Ivanov
b8b6ceef16
Updated Bulgarian translation
2010-09-26 22:34:23 +03:00
Benjamin Otte
18e489fedd
image: Fix up draw function
...
The previous port to the draw function was a tiny bit incomplete. This
patch should fix the remaining issues and remove unused variables.
2010-09-26 17:51:05 +02:00
Matthias Clasen
b522a1b367
Migration guide: Add an example for colormap -> visual
2010-09-26 15:11:46 +02:00
Matthias Clasen
d3a90eae72
Expand the migration guide
...
This commit add some text about mult-window ::draw implementations,
pointing out the gtk_cairo_should_draw_window() and
gtk_cairo_transform_to_window() convenience functions.
2010-09-26 15:11:46 +02:00
Benjamin Otte
c34c05217c
accellabel: Remove gtk_widget_is_drawable() check from draw vfunc
2010-09-26 15:11:46 +02:00
Benjamin Otte
41e6da4075
treeview: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:46 +02:00
Benjamin Otte
bc3d3e6cf4
spinbutton: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:46 +02:00
Benjamin Otte
92732ffea0
notebook: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:46 +02:00
Benjamin Otte
bd4545c03a
menu: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:46 +02:00
Benjamin Otte
7a2010ae28
iconview: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:46 +02:00
Benjamin Otte
90beb8a514
entry: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:46 +02:00
Benjamin Otte
e13d93a707
calendar: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:45 +02:00
Benjamin Otte
19d1377494
textview: Use gtk_cairo_transform_to_window()
2010-09-26 15:11:45 +02:00
Benjamin Otte
0795f1e0c9
API: Add gtk_cairo_transform_to_window()
...
The function reverses the transform that GTK does before emitting a draw
event. So we can use it in "old" widgets to revert the coordinate system
properly.
2010-09-26 15:11:45 +02:00
Benjamin Otte
e66129015d
cellrenderer: Merge GtkCellSizeRequest into GtkCellRenderer
...
This mostly goes to keep consistency with the changes to GtkSizeRequest
in the last patch, as GtkCellSizeRequest requires GtkCellRenderer and
GtkCellRenderer implements GtkCellSizeRequest there's no use in keeping
them separate.
This patch renames the functions:
gtk_cell_size_request_get_request_mode()
=> gtk_cell_renderer_get_request_mode()
gtk_cell_size_request_get_width()
=> gtk_cell_renderer_get_preferred_width()
gtk_cell_size_request_get_height()
=> gtk_cell_renderer_get_preferred_height()
gtk_cell_size_request_get_size()
=> gtk_cell_renderer_get_preferred_size()
gtk_cell_size_request_get_width_for_height()
=> gtk_cell_renderer_get_preferred_width_for_height()
gtk_cell_size_request_get_height_for_width()
=> gtk_cell_renderer_get_preferred_height_for_width()
... and moves the corresponding vfuncs to GtkCellRenderer.
The patch also renames the implementations of these functions in cell
renderers to include the word "preferrred".
2010-09-26 15:11:45 +02:00
Benjamin Otte
d9c9259861
Move GtkSizeRequest into GtkWidget
...
It doesn't make sense to keep them separate as GtkSizeRequest requires a
GtkWidget and GtkWidget implements GtkSizeRequest, so you can never have
one without the other.
It also makes the code a lot easier because no casts are required when
calling functions.
Also, the names would translate to gtk_widget_get_width() and people
agreed that this would be a too generic name, so a "preferred" was added
to the names.
So this patch moves the functions:
gtk_size_request_get_request_mode() => gtk_widget_get_request_mode()
gtk_size_request_get_width() => gtk_widget_get_preferred_width()
gtk_size_request_get_height() => gtk_widget_get_preferred_height()
gtk_size_request_get_size() => gtk_widget_get_preferred_size()
gtk_size_request_get_width_for_height() =>
gtk_widget_get_preferred_width_for_height()
gtk_size_request_get_height_for_width() =>
gtk_widget_get_preferred_height_for_width()
... and moves the corresponding vfuncs to the GtkWidgetClass.
The patch also renames the implementations of the vfuncs in widgets to
include the word "preferrred".
2010-09-26 15:11:45 +02:00
Benjamin Otte
f52a1fcfbd
API: remove gdk_drawable_get_size()
2010-09-26 15:11:45 +02:00
Benjamin Otte
5b687d938a
gdk: Remove default implementations for get_*_region
...
This should only be used on windows anyway and GdkWindow has an
implementation for both functions.
2010-09-26 15:11:45 +02:00
Benjamin Otte
9403e167b4
docs: Get rid of gdk_drawable_get_size() usage in shooter example
2010-09-26 15:11:45 +02:00
Benjamin Otte
aa70d351c4
tests: Get rid of gdk_drawable_get_size() usage in testwindows
2010-09-26 15:11:45 +02:00
Benjamin Otte
cdba1f6519
tests: Get rid of gdk_drawable_get_size() usage in offscreenbox
2010-09-26 15:11:45 +02:00
Benjamin Otte
15497825c0
testgtk: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
ffa5587fb3
dnd-quartz: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
99eae4e208
window: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
64dddaf1fe
widget: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
f999c8dc29
viewport: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
21d6aba620
treeview: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
e10f5e9ad5
textview: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
e25208825f
testutils: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
f0c067063c
spinbutton: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
fb43f590e9
plug: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
dca859dfa1
offscreenwindow: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
6eb6135e2d
notebook: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
2743f0bdcd
menu: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
a145deb083
iconview: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
2e5df3306a
handlebox: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
34c6e35152
entry: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
7125712299
calendar: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:44 +02:00
Benjamin Otte
c5d309e596
msw-engine: Remove sanitize_size code
...
It's not needed with the new APIs
2010-09-26 15:11:43 +02:00
Benjamin Otte
f5ad38fdc4
gtk-demo: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:43 +02:00
Benjamin Otte
9826c31a9f
gdk: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:43 +02:00
Benjamin Otte
0a57863f73
win32: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:43 +02:00
Benjamin Otte
f44f35548d
quartz: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:43 +02:00
Benjamin Otte
e8e657725c
x11: Get rid of gdk_drawable_get_size() usage
2010-09-26 15:11:43 +02:00
Benjamin Otte
6c971ac479
API: Remove window clear APIs
...
The feature can and should be implemented manually using
gdk_window_get_background() and Cairo drawing. A non-cairo drawing API
does not make sense in GDK anymore.
2010-09-26 15:11:43 +02:00
Benjamin Otte
fd200f07f5
gdk: No need to clear offscreen window when showing
...
I don't think it's necessary to clear the backing surface when showing
the window, as we're going to repaint it anyway. If it's needed, we can
implement it again using internal APIs, as the public window_clear()
APIs are going away.
2010-09-26 15:11:43 +02:00
Benjamin Otte
af32c9c9be
API: Add size getters for GdkWindow
...
gdk_window_get_width() and gdk_window_get_height() will replace
gdk_drawable_get_size().
2010-09-26 15:11:43 +02:00
Matthias Clasen
f3ccf2fccf
Add gtk_cairo_should_draw_window to the docs
2010-09-26 15:11:43 +02:00
Matthias Clasen
b7027d778c
Docs: start migration guide additions
2010-09-26 15:11:43 +02:00
Benjamin Otte
5f57cede3c
widget: Check the widget has an allocation in gtk_widget_draw()
...
Following the mailing list discussion, require that the widget does not
have a pending size_allocate when calling the draw function.
http://mail.gnome.org/archives/gtk-devel-list/2010-September/msg00214.html
and the associated thread explain this in more detail.
2010-09-26 15:11:43 +02:00
Benjamin Otte
b89920e203
API: Add gtk_widget_draw()
...
And here's the final patch that all the previous patches were about.
2010-09-26 15:11:43 +02:00
Benjamin Otte
1142c8bf18
API: gtk_cell_renderer_render_cairo() => gtk_cell_renderer_render()
2010-09-26 15:11:43 +02:00
Benjamin Otte
ec6e97be4d
API: Remove gtk_cell_renderer_render()
...
The next commit will rename gtk_cell_renderer_render_cairo() to
gtk_cell_renderer_render() again
2010-09-26 15:11:43 +02:00
Benjamin Otte
67284a57de
API: Get rid of gtk_draw_insertion_cursor()
...
and rename gtk_cairo_draw_insertion_cursor() to
gtk_draw_insertion_cursor().
2010-09-26 15:11:43 +02:00
Benjamin Otte
1d3f6b30b0
API: Rename gtk_cairo_paint_*() to gtk_paint_*()
...
Large patch, but just renaming.
Indentation should still mostly be correct because I took care of
keeping the indentation for this function name.
2010-09-26 15:11:42 +02:00
Benjamin Otte
70e6aba0d0
API: style: Remove old drawing functions
2010-09-26 15:11:42 +02:00
Benjamin Otte
326f887ae7
API: widget: Remove the expose event
...
gtk_widget_send_expose() now calls the draw function.
2010-09-26 15:11:42 +02:00
Benjamin Otte
9aa4f417d0
API: Remove gtk_container_propagate_expose()
...
Also, move the documentation to its replacement
gtk_widget_propagate_draw().
2010-09-26 15:11:42 +02:00
Benjamin Otte
7947b3faf8
container: Implement gtk_container_propagate_draw() without fallbacks
...
No more fallbacks to gtk_container_propagate_expose().
2010-09-26 15:11:42 +02:00
Benjamin Otte
45744d9a5f
Change semantics of the draw signal
...
Previously, we tried to move the context's origin to the widget's top
left location, no matter what window the paint was happening on. Now we
only do that for child windows of the widget's window and leave the
context untouched for windows that the widget has created outside its
own hierarchy. In those casses, we also don't clip the context to
the widget's allocation.
Includes fixes to GtkHandlebox for this effect and fixes all known
issues with it.
These semantics assume that gtk_widget_draw() should only draw the parts
of a widget that are inside child windows and not draw stuff that is
located in completely different GdkWindows. In the handlebox case, it
means that it should only draw the handle when it is attached, but not
when it isn't. We'll likely need a special draw function for the
detached handlebox if we want to draw it.
2010-09-26 15:11:42 +02:00
Benjamin Otte
0acec382c8
widget: Clip drawing to the widget's allocation.
...
I've seen (and written) quite some widgets (and theme engines) that use
cairo_paint() to draw the background. So avoiding overdraw makes sense.
Also move all that setup into a _gtk_widget_draw_internal() function
that will be used by all functions that can be used by other functions
that draw widgets.
2010-09-26 15:11:42 +02:00
Benjamin Otte
0c285bad75
iconfactory: Initialize varibale to NULL in failure path
...
Otherwise we use random memory and that is not good.
2010-09-26 15:11:42 +02:00
Benjamin Otte
8929321cba
image: Add a default case to switch statement to avoid gcc warnings
2010-09-26 15:11:42 +02:00
Benjamin Otte
45836db7a5
test: Port offscreen test to draw vfunc
2010-09-26 15:11:42 +02:00
Benjamin Otte
8aa402b610
gtk-demo: Port offscreen example to draw vfunc
2010-09-26 15:11:42 +02:00
Benjamin Otte
256012bdbd
gtk-demo: Port offscreen example to draw vfunc
2010-09-26 15:11:42 +02:00
Benjamin Otte
e194bc14fd
testgtk: Use draw signal in layout test
2010-09-26 15:11:42 +02:00
Benjamin Otte
5442f5b9f2
testgtk: Use draw signal in scrolling test
2010-09-26 15:11:42 +02:00
Benjamin Otte
0ab6956579
testgtk: Use draw signal in cursors example
2010-09-26 15:11:41 +02:00
Benjamin Otte
87940287aa
testgtk: Remove non-existing property from frame constructor
2010-09-26 15:11:41 +02:00
Benjamin Otte
38c932ace6
testgtk: Use draw signal in gridded geometry example
2010-09-26 15:11:41 +02:00
Benjamin Otte
c42f6ff4bf
testgtk: Make big windows test not use expose events
...
Instead, use gdk_window_set_background().
2010-09-26 15:11:41 +02:00
Benjamin Otte
e1571a5936
testgtk: Use draw signal in resize grips example
2010-09-26 15:11:41 +02:00
Benjamin Otte
5625c20759
x11: When querying window size, ask the wrapper, not ourselves
2010-09-26 15:11:41 +02:00
Benjamin Otte
7c62a44324
gdk: Make GdkWindow cope better with its surface outliving the window
...
Make extra sure we release the surface properly. Also make sure that the
released surface doesn't keep any references to us.
2010-09-26 15:11:41 +02:00
Benjamin Otte
ba21d3e687
tests: Use draw vfunc in print-editor
2010-09-26 15:11:41 +02:00
Benjamin Otte
e65b1cfd76
testoffscreen: Connect to draw signal
2010-09-26 15:11:41 +02:00
Benjamin Otte
9cd83da6dc
tests: Use draw signal in testinput
2010-09-26 15:11:41 +02:00
Benjamin Otte
97b997d59e
testpixbuf-save: Use the draw signal
2010-09-26 15:11:41 +02:00
Benjamin Otte
b271c76c06
testpixbuf-scale: Connect to draw signal
2010-09-26 15:11:41 +02:00
Benjamin Otte
ebba458336
pixbuf-demo: Use draw signal
2010-09-26 15:11:41 +02:00
Benjamin Otte
f1171c9c07
gtk-demo: Use draw signal in color selection demo
2010-09-26 15:11:41 +02:00
Benjamin Otte
c6f28c3dbc
testtooltips: Connect to draw signal
2010-09-26 15:11:41 +02:00
Benjamin Otte
07d0c0b921
testtooltips: Don't call gdk_window_get_pointer() in expose events
2010-09-26 15:11:41 +02:00
Benjamin Otte
b8ebcdd0e0
testgtk: Connect to draw signal in "rotated text" example
2010-09-26 15:11:41 +02:00
Benjamin Otte
7af767333e
testgtk: Connect to draw signals in "composited window" example
2010-09-26 15:11:41 +02:00
Benjamin Otte
ec604d11ec
testgtk: Connect to draw signal in alpha test
...
Test still behaves weird, no idea why though.
2010-09-26 15:11:41 +02:00
Benjamin Otte
dfd0ceab1c
tests: Connect to draw signal in testimage
2010-09-26 15:11:40 +02:00
Benjamin Otte
f8b420783d
tests: Connect to draw signal in testoffscreenwindow
2010-09-26 15:11:40 +02:00
Benjamin Otte
0ad2f57332
tests: Connect to draw signal in testellipsise
...
The test seems broken, not sure why.
2010-09-26 15:11:40 +02:00
Benjamin Otte
9c980372d2
testcairo: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
eed9468e06
perf: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
b452bb768d
imcontextxim: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
73b6ddbf47
gtk-demo: Connect to draw signal in rotated-text
2010-09-26 15:11:40 +02:00
Benjamin Otte
9ef1dfc0a3
gtk-demo: Connect to draw signal in pixbufs example
2010-09-26 15:11:40 +02:00
Benjamin Otte
ef56ba83f8
gtk-demo: Connet to draw signal in drawingarea example
2010-09-26 15:11:40 +02:00
Benjamin Otte
3f10e45ea1
printunixdialog: Connect to draw vfunc
2010-09-26 15:11:40 +02:00
Benjamin Otte
d207fd05e5
printunixdialog: Connect to draw signal for collate callback
2010-09-26 15:11:40 +02:00
Benjamin Otte
b0f078ba43
dnd-quartz: Connect to draw func for dnd hilight
2010-09-26 15:11:40 +02:00
Benjamin Otte
729f80b554
dnd: Connect to raw func for drag hilight
2010-09-26 15:11:40 +02:00
Benjamin Otte
830cda9e32
colorsel: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
b717f1b265
filechooserentry: Connect to draw event
2010-09-26 15:11:40 +02:00
Benjamin Otte
8f2fdec7d6
colorbutton: Connect to draw event
2010-09-26 15:11:40 +02:00
Benjamin Otte
5f771c8a9f
notebook: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
c54968e964
tooltip: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
bec11c352d
toolitemgroup: Connect to draw signal
2010-09-26 15:11:40 +02:00
Benjamin Otte
a4bbe4da10
assistant: Port to draw vfunc
2010-09-26 15:11:39 +02:00
Benjamin Otte
b0c5302115
trayicon: Port to draw vfunc
2010-09-26 15:11:39 +02:00
Benjamin Otte
1b9f793311
window: Port to draw vfunc
2010-09-26 15:11:39 +02:00
Benjamin Otte
15f48a818d
window: Remove hack to set background
...
I can't see this having any effect in current code, but who knows...
2010-09-26 15:11:39 +02:00
Benjamin Otte
67299ed106
expander: Port to draw vfunc
2010-09-26 15:11:39 +02:00
Benjamin Otte
e63d6dd379
frame: Port to draw vfunc
2010-09-26 15:11:39 +02:00
Benjamin Otte
fac27827c4
frame: Remove unneeded is_drawable() check
2010-09-26 15:11:39 +02:00
Benjamin Otte
ff97485695
API: checkbutton: Port to draw vfunc
...
Requires changing the API of the draw_indicator vfunc.
2010-09-26 15:11:39 +02:00
Benjamin Otte
be8a398bb5
radiobutton: Remove redundant is_drawable() check
2010-09-26 15:11:39 +02:00
Benjamin Otte
70bdbb3f4c
checkbutton: Remove redundant is_drawable() check
2010-09-26 15:11:39 +02:00
Benjamin Otte
66bd7c1578
checkbutton: Remove excessive is_drawable() check
2010-09-26 15:11:39 +02:00
Benjamin Otte
6a0c31143f
handlebox: Port to draw vfunc
2010-09-26 15:11:39 +02:00
Benjamin Otte
2e53b58b01
handlebox: Simplify painting code
2010-09-26 15:11:39 +02:00
Benjamin Otte
08d05f954d
handlebox: Don't draw outside of expose events
...
We do a queue_draw() via queue_resize() here, so everything's fine.
2010-09-26 15:11:39 +02:00
Benjamin Otte
748d3d612d
button: Port to draw vfunc
...
Also port togglebutton, they use the same paint function.
2010-09-26 15:11:39 +02:00
Benjamin Otte
e0be884297
button: Remove is_drawable() check
...
It's already done in the expose function
2010-09-26 15:11:39 +02:00
Benjamin Otte
ee15f5aab1
tearoffmenuitem: remove is_drawable() check
2010-09-26 15:11:39 +02:00
Benjamin Otte
c9c9d2ac15
API: checkmenuitem: Port to draw vfunc
...
Requires changing the draw_indicator vfunc to take a cairo_t.
2010-09-26 15:11:39 +02:00
Benjamin Otte
79477e097d
tearoffmenuitem: Port to draw vfunc
2010-09-26 15:11:39 +02:00
Benjamin Otte
557b9d0b26
tearoffmenuitem: Don't clear the window, it should be clear already
2010-09-26 15:11:38 +02:00
Benjamin Otte
d992df0a47
tearoffmenuitem: Merge paint() into expose()
2010-09-26 15:11:38 +02:00
Benjamin Otte
6f6c81e527
menuitem: Remove is_drawable() check
2010-09-26 15:11:38 +02:00
Benjamin Otte
475f96216d
menuitem: Port to draw vfunc
2010-09-26 15:11:38 +02:00
Benjamin Otte
e6d1c8aeab
menuitem: Move paint function into expose function
2010-09-26 15:11:38 +02:00
Benjamin Otte
1f640d127e
combobox: Port to draw vfunc
2010-09-26 15:11:38 +02:00
Benjamin Otte
fe4c61b1ec
eventbox: Port to draw vfunc
2010-09-26 15:11:38 +02:00
Benjamin Otte
d17ba1d30a
eventbox: Merge paint function into expose function
2010-09-26 15:11:38 +02:00
Benjamin Otte
ce2d6cc015
scrolledwindow: Port to draw vfunc
2010-09-26 15:11:38 +02:00
Benjamin Otte
5eabd8c6fa
scrolledwindow: Move paint function into expose handler
...
Also remove the is_drawable() check. It will not be needed once we have
the draw vfunc.
2010-09-26 15:11:38 +02:00
Benjamin Otte
8af968946f
viewport: No need to check if the widget is drawable anymore
2010-09-26 15:11:38 +02:00
Benjamin Otte
bf8df2daea
viewport: Port to draw vfunc
2010-09-26 15:11:38 +02:00
Benjamin Otte
4a23b12911
viewport: Pass sizes explicitly to paint functions
2010-09-26 15:11:38 +02:00
Benjamin Otte
e087fe7e99
viewport: Merge gtk_viewport_paint() into expose function
2010-09-26 15:11:38 +02:00
Benjamin Otte
01a1e16dcf
viewport: Don't paint stuff in realize handler
2010-09-26 15:11:38 +02:00
Benjamin Otte
f383e1f183
notebook: Port to draw vfunc
2010-09-26 15:11:38 +02:00
Benjamin Otte
21099d31ed
notebook: The drawable check is not necessary
...
Large patch, but that's only indentation.
2010-09-26 15:11:38 +02:00
Benjamin Otte
fadf269a36
notebook: Draw tabs and arrows with Cairo
...
Includes a fix to only draw the current page once during a drag
operation.
2010-09-26 15:11:38 +02:00
Benjamin Otte
ad030e1696
notebook: Simplify draw_tab function a bit
...
Don't keep lots of local variables that are only used once.
2010-09-26 15:11:38 +02:00
Benjamin Otte
806bcb10ff
notebook: remove check for is_drawable
...
When we reach that code, the widget will always be drawable
2010-09-26 15:11:37 +02:00
Benjamin Otte
c46ce97145
notebook: Reorder expose function in preparation of draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
f94ff0b3b9
notebook: Use a for loop when iterating over a list
2010-09-26 15:11:37 +02:00
Benjamin Otte
468e453a31
notebook: Draw focus when drawing tab
...
Instead of using a special function, draw the focus of a tab when the
tab actually is painted. Simplifies the code quite a bit.
2010-09-26 15:11:37 +02:00
Benjamin Otte
a5e487846a
notebook: Remove useless optimization
...
It will become especially useless once we draw with Cairo exclusively.
2010-09-26 15:11:37 +02:00
Benjamin Otte
1c94efc921
paned: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
f2d7e6c8d4
infobar: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
299d533376
statusbar: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
782af63273
layout: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
8fc35150a2
iconview: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
c8b16f66b6
iconview: Check if the cr is clipped instead of using region
2010-09-26 15:11:37 +02:00
Benjamin Otte
ab781bd89b
iconview: Simplify rubberband drawing
2010-09-26 15:11:37 +02:00
Benjamin Otte
0d6461714b
menu: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
240ca0bb21
menubar: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
00375c7692
textview: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
9daab81ab5
separatortoolitem: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
818005f3fe
toolbar: Port to draw vfunc
2010-09-26 15:11:37 +02:00
Benjamin Otte
9a8c9d6579
toolbar: Don't propagate events to placeholders
...
In particular don't when that's done using uninitialized memory
2010-09-26 15:11:36 +02:00
Benjamin Otte
a18ec3485c
toolpalette: Port to draw vfunc
2010-09-26 15:11:36 +02:00
Benjamin Otte
f525837e39
treeview: Port to draw vfunc
2010-09-26 15:11:36 +02:00
Benjamin Otte
327a04807e
treeview: Update rubberbanding code to Cairo
2010-09-26 15:11:36 +02:00
Benjamin Otte
bf3b4438bb
treeview: Do not put different windows in else if branches anymore
2010-09-26 15:11:36 +02:00
Benjamin Otte
f679516ce1
treeview: Use Cairo for all bin window drawing
2010-09-26 15:11:36 +02:00
Benjamin Otte
62f5fdc856
treeview: Invalidate on expander changes, don't just repaint
...
Repaints are supposed to be initiated by GDK, not by random repaints.
2010-09-26 15:11:36 +02:00
Benjamin Otte
bc1cd6c5cb
treeview: Draw empty tree view with Cairo
2010-09-26 15:11:36 +02:00
Benjamin Otte
0cbe62f943
API: Add gtk_container_propagate_draw()
...
Equivalent to gtk_container_propagate_expose(), just for the draw event.
Also port GtkContainer to the draw vfunc
2010-09-26 15:11:36 +02:00
Benjamin Otte
90379ed68a
widget: Store the expose event in the cairo_t, not just the window
...
This way we can grab it for propagating expose events. Not sure if we
need to do this once we're all Cairo, but for now we do.
2010-09-26 15:11:36 +02:00
Benjamin Otte
fb4ba51d44
accellabel: Port to draw vfunc
2010-09-26 15:11:36 +02:00
Benjamin Otte
4aefc82496
label: Port to draw vfunc
2010-09-26 15:11:36 +02:00
Benjamin Otte
2e75cecd49
scale: Port to draw vfunc
2010-09-26 15:11:36 +02:00
Benjamin Otte
e605272436
range: Port to draw vfunc
2010-09-26 15:11:36 +02:00
Benjamin Otte
745f110814
range: Make drawing use a single cairo context
2010-09-26 15:11:36 +02:00
Benjamin Otte
c85f91e14c
tests: Remove ability to set backend from testfilechooser
...
There's no backends anymore
2010-09-26 15:11:35 +02:00
Benjamin Otte
1d5796c95b
arrow: Port to draw vfunc
2010-09-26 15:11:35 +02:00
Benjamin Otte
9233a08991
calendar: Port to draw vfunc
2010-09-26 15:11:35 +02:00
Benjamin Otte
725749cd14
calendar: Fix drawing order for windows
2010-09-26 15:11:35 +02:00
Benjamin Otte
02572cdf7e
calendar: Create one cairo_t per expose event and pass it around
2010-09-26 15:11:35 +02:00
Benjamin Otte
ed996bcd68
cellview: Port to draw vfunc
2010-09-26 15:11:35 +02:00
Benjamin Otte
0a6b7e5759
spinner: Port to draw vfunc
2010-09-26 15:11:35 +02:00
Benjamin Otte
7121ec2880
image: Port to draw vfunc
2010-09-26 15:11:35 +02:00
Benjamin Otte
c76221426a
image: Always render the whole image
...
Otherwise effects like blur etc will have funny seams on repaints.
Oh, and also, the draw vfunc doesn't have an equivalent to event->area
;)
2010-09-26 15:11:35 +02:00
Benjamin Otte
5228913f68
spinbutton: Port to draw vfunc
2010-09-26 15:11:35 +02:00
Benjamin Otte
d13a2ad66a
entry: Remove gtk_entry_is_drawable() checks when painting
2010-09-26 15:11:35 +02:00
Benjamin Otte
c412c1c752
entry: Port to draw signal
2010-09-26 15:11:35 +02:00
Benjamin Otte
696989d499
entry: Split else ifs into separate if statements
...
Preparation for the draw vfunc
2010-09-26 15:11:35 +02:00
Benjamin Otte
ec4be3619f
entry: Add bug reference to workaround
2010-09-26 15:11:35 +02:00
Benjamin Otte
867ab99b1a
API: Add gtk_cairo_should_draw_window()
...
See the function documentation for its purpose and the next commit(s)
for examples on how to use it.
2010-09-26 15:11:35 +02:00
Benjamin Otte
04e58c192e
ruler: Port to draw signal
2010-09-26 15:11:35 +02:00
Benjamin Otte
ee8788f766
API: ruler: Change draw_pos vfunc to take a cr, width and height
...
Also refactor code to use it
2010-09-26 15:11:35 +02:00
Benjamin Otte
f5a10b05b5
API: ruler: Remove private ruler draw functions from header
2010-09-26 15:11:34 +02:00
Benjamin Otte
892593eff4
ruler: Change the way the ruler handles exposes
...
1) Don't directly draw in motion-notify, instead call
gtk_widget_queue_draw()
2) Don't draw ticks in expose events anymore, only when they were
changed
2010-09-26 15:11:34 +02:00
Benjamin Otte
c68029b778
API: ruler: Change draw_ticks vfunc
...
We now pass in a cairo_t of the backbuffer and the width and height of
the widget/backbuffer, so the vfunc has a place to draw to.
2010-09-26 15:11:34 +02:00
Benjamin Otte
3bd8319a08
ruler: Don't create two cairo_t's
2010-09-26 15:11:34 +02:00
Benjamin Otte
84671438b0
separator: Convert to draw signal
2010-09-26 15:11:34 +02:00
Benjamin Otte
812d9b9948
hsv: Convert to draw signal
2010-09-26 15:11:34 +02:00
Benjamin Otte
5ea1d78857
progressbar: Port to new draw signal
2010-09-26 15:11:34 +02:00
Benjamin Otte
7108586b16
widget: Add draw signal
...
For now, the draw signal is emitted by default from the expose event, so
widgets can chose to either implement the expose event or the draw
function.
This is for the transitional period from expose event to draw signal.
Note that for now subclasses can only implement the draw function when
none of their parents implemented the expose event.
2010-09-26 15:11:34 +02:00
Benjamin Otte
9507670db4
API: Add API to query width and height when rendering
...
The functions are gtk_widget_get_allocated_width() and
gtk_widget_get_allocated_height().
They are currently identical to using width/height of
gtk_widget_get_allocation(), but are introduced for ease of use (no need
to use a custom struct) and to free people from having to think about
allocation.x and allocation.y (which is where the origin of the cairo
context in GtkWidget::draw is located).
2010-09-26 15:11:34 +02:00
Benjamin Otte
d4f08efd57
API: add gdk_cairo_get_clip_rectangle() convenience API
2010-09-26 15:11:34 +02:00
Benjamin Otte
39b376681c
build: Depend on cairo-gobject
...
We want to use cairo types for signals and properties, so we need to
depend on the library providing them.
2010-09-26 15:11:34 +02:00
Kristian Rietveld
03cf19e8e2
Create cairo context after running validate_visible_area()
...
validate_visible_area() can change the vertical adjustment and thus
trigger window moves/scrolls. This seems to change the surface for
which gtk_tree_view_bin_expose() just created a cairo context. Creating
the cairo context after the call to validate_visible_area() fixes
such crashes.
2010-09-26 15:11:34 +02:00
Kristian Rietveld
0129b89153
quartz: Get size from wrapper, not drawable
2010-09-26 15:11:34 +02:00
Matthias Clasen
0775b0a858
Make the docs build
2010-09-26 15:11:34 +02:00
Benjamin Otte
e624656c20
API: Remove GdkColormap
2010-09-26 15:11:34 +02:00
Benjamin Otte
94f809d439
gdk: Remove nonexisting function from internal header
2010-09-26 15:11:34 +02:00
Benjamin Otte
cf4cb4f6d9
API: Remove colormap handling from GdkScreen
...
In particular, the following functions are gone:
- gdk_screen_get_default_colormap()
- gdk_screen_set_default_colormap()
- gdk_screen_get_system_colormap()
- gdk_screen_get_rgba_colormap()
2010-09-26 15:11:34 +02:00
Benjamin Otte
04d5c477aa
API: Remove gdk_drawable_get_colormap()
...
And with it, remove any notion of colormaps from GdkWindow. In
particular, X11 windows will now not set attrs.colormap when calling
XCreateWindow.
2010-09-26 15:11:33 +02:00
Benjamin Otte
28b4567159
x11: Keep a default X Colormap in every visual to construct windows with
...
This way, we can specify a colormap when constructing windows. And ew
must do that to avoid BadMatch from XCreateWindow when we use a
different visual.
2010-09-26 15:11:33 +02:00
Benjamin Otte
47ee996198
x11: Use G_DEFINE_TYPE() to define GdkVisual
...
Also add a priv pointer to GdkVisual and use it for the GdkVisualPrivate
structure. Then Make GdkVisualPrivate actually private to
gdkvisual-x11.c and make other callers use proper function calls to
access it.
2010-09-26 15:11:33 +02:00
Benjamin Otte
571e749d60
x11: Set background color bypassing colormaps
...
Direct and TrueColor visuals don't alloc colors, so they don't need to
fiddle with colormaps. Just copy the code that computes the pixel value
from gdkcolor-x11.c and use it. For other visual types, don't set the
background color and fallback to background = None.
2010-09-26 15:11:33 +02:00
Benjamin Otte
f08254074c
API: Remove colormap member from GdkWindowAttr
...
Also remove all code that cares about differing colormaps for child
windows.
2010-09-26 15:11:33 +02:00
Benjamin Otte
eac72ec830
quartz: Compare visuals for RGBA, not colormaps
2010-09-26 15:11:33 +02:00
Benjamin Otte
504a2d4194
API: Remove gdk_drawable_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
b5097de481
gdk: gdk_drawable_get_display() => gdk_window_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
2ee8fdb79b
gtk: gdk_drawable_get_display() => gdk_window_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
7f486231ac
API: Add gdk_window_get_display()
2010-09-26 15:11:33 +02:00
Benjamin Otte
0f13411cb0
x11: Use gdk_window_get_screen() in the testutils
2010-09-26 15:11:33 +02:00
Benjamin Otte
a6ef356107
API: Remove drawable getters for visual, screen and depth
...
Removed and replaced are:
gdk_drawable_get_visual() => gdk_window_get_visual()
gdk_drawable_get_screen() => gdk_window_get_screen()
gdk_drawable_get_depth() => gdk_visual_get_depth
(gdk_window_get_visual())
2010-09-26 15:11:33 +02:00
Benjamin Otte
ffed076891
quartz: Remove unused _gdk_quartz_colormap_get_cgcolor_from_pixel()
2010-09-26 15:11:33 +02:00
Benjamin Otte
a6e936788a
gdk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visual
2010-09-26 15:11:33 +02:00
Benjamin Otte
9f47be2216
gtk: gdk_drawable_get_screen/visual => gdk_window_get_screen/visual
2010-09-26 15:11:33 +02:00
Benjamin Otte
5b9bbf9de2
API: Add gdk_window_get_visual() and gdk_window_get_screen()
...
Now that we store the visual in the GdkWindow, these are rather trivial
accessors.
2010-09-26 15:11:32 +02:00
Benjamin Otte
eee6c002d1
gdk: store the visual in the GdkWindowObject
2010-09-26 15:11:32 +02:00
Benjamin Otte
894d402c0f
API: Remove gdk_drawable_set_colormap()
2010-09-26 15:11:32 +02:00
Benjamin Otte
e316157671
API: gdk_pixbuf_get_from_drawable() => gdk_pixbuf_get_from_window()
...
The Colormap argument needed to be removed, so the renaming is just a
side effect.
2010-09-26 15:11:32 +02:00
Benjamin Otte
a9f198082a
dnd: Remove unused colormap code
2010-09-26 15:11:32 +02:00
Benjamin Otte
3607a4c082
API: Remove setters and getters for default colormaps
...
This removes:
gtk_widget_set_default_colormap()
gtk_widget_get_default_colormap()
gtk_widget_get_default_visual()
Colormaps are gone, and the default visual is the system visual of the
default screen.
2010-09-26 15:11:32 +02:00
Benjamin Otte
c51e8bd9e5
API: Remove colormap setting and getting from GtkWidget
...
gtk_widget_get_colormap() and gtk_widget_set_colormap() are gone. They
are replaced by visuals.
2010-09-26 15:11:32 +02:00
Benjamin Otte
4701bdb2a8
style: Move from colormaps to visuals
2010-09-26 15:11:32 +02:00
Benjamin Otte
fc52c9daf3
testgtk: Check visual, not colormap for RGBA availability
2010-09-26 15:11:32 +02:00
Benjamin Otte
0a63e954af
gtk-demo: Remove colormaps from window attributes
2010-09-26 15:11:32 +02:00
Benjamin Otte
2fc80e6102
gdk: Create paint surfaces of the same content as the window
...
Previously, we failed to create RGBA double buffers for RGBA windows.
2010-09-26 15:11:32 +02:00
Benjamin Otte
c64946c52d
trayicon: Use XClearArea
...
gdk_window_clear_area() isn't smart enough to clear to a parent pixmap
that is part of a window that GDK doesn't manage.
2010-09-26 15:11:32 +02:00
Benjamin Otte
d7ede44dae
testgtk: gtk_widget_set_colormap() => gtk_window_set_visual()
2010-09-26 15:11:32 +02:00
Benjamin Otte
4515f0803b
trayicon: Change to use gtk_window_set_visual()
...
One less user of colormaps, and the code is cleaner, too!
2010-09-26 15:11:32 +02:00
Benjamin Otte
59b227e123
window: Keep track of own visual
...
Add gtk_window_set_visual() and a "visual" property. This allows
changing the window visual to the rgba one and other awesome things
(like implementing the trayicon spec).
2010-09-26 15:11:32 +02:00
Benjamin Otte
913f3fcc9f
gtk: Change gtk_widget_get_visual()
...
We now return the visual of the topmost widget in widget's stack that
has a window. If no such widget exists, but a GtkWindow is a parent, we
return its visual (note: GtkWindow Will gain support for setting visuals
soon). If a window doesn't exist, we return the system visual of the
default screen.
This change has multiple reasons:
- Colormaps are gone
Now visuals are the most important resource for creating GDK windows.
- Allow widgets to change visuals for themselves and their children
By walking the hierarchy, we ensure that child windows have the same
visual as their parents by default. But widgets can still select a
different visual in their realize handler when creating the GDK
window.
- Have a replacement for gtk_widget_set_colormap()
That function is going to die with colormaps, so a replacement was
needed. That replacement is going to be gdk_window_set_visual().
- Make a future transition to no-window GTK easy
Should we ever attempt a change to make all GTK widgets no-window, a
gtk_widget_set_visual() would be silly, as only widgets with windows
can have their own visuals. So only toplevels will gain the ability to
change it.
2010-09-26 15:11:31 +02:00
Benjamin Otte
600f52321b
tests: Don't set colormap when creating offscreen windows
2010-09-26 15:11:31 +02:00
Benjamin Otte
08e6fc11ad
testgtk: Don't set colormap when creating GDK windows
2010-09-26 15:11:31 +02:00
Benjamin Otte
e8a6bad00b
gtk: Don't set colormap anymore when creating GDK windows
...
Colormaps are about to be removed, so not using them sounds like an
awesome idea.
2010-09-26 15:11:31 +02:00
Benjamin Otte
a38472c139
testgtk: No need to set a custom colourmap here
2010-09-26 15:11:31 +02:00
Benjamin Otte
e06d04032b
spinner: We're a no-window widget, so setting a colormap does nothing
2010-09-26 15:11:31 +02:00
Benjamin Otte
ce7379a8bd
style: Remove depth member from GtkStyle
2010-09-26 15:11:31 +02:00
Benjamin Otte
6a2124d566
gdk: Remove _gdk_drawable_get_source_drawable()
...
Now that we don't create pixmaps anymore, this function is not needed
anymore. The indirection it did previously is now basically moved to
gdk_window_create_similar_surface()
2010-09-26 15:11:31 +02:00
Benjamin Otte
b09019560b
style: Remove depth checks in render functions
...
There's no need for them anymore now that we render with Cairo.
2010-09-26 15:11:31 +02:00
Benjamin Otte
a520b4f372
x11: Remove some unused macros
2010-09-26 15:11:31 +02:00
Benjamin Otte
a7208d675f
x11: s/GDK_DRAWABLE_DISPLAY/GDK_WINDOW_DISPLAY
2010-09-26 15:11:31 +02:00
Benjamin Otte
c340fb7efd
tests: No need to allocate colors anymore
2010-09-26 15:11:31 +02:00
Benjamin Otte
b479ff9cb5
API: Remove gtk_widget_push_colormap()
...
And of course, gtk_widget_pop_colormap() is gone, too.
No replacement is necessary, the function is basically unused.
2010-09-26 15:11:31 +02:00
Benjamin Otte
522becccc0
gdk: Remove pixmap debug category
...
It's not used anywhere anymore.
2010-09-26 15:11:30 +02:00
Benjamin Otte
f74f9b2766
gdk: Remove GdkPixmap
...
All iusers of it are gone, so it's now time to let go.
cairo_surface_t is a full replacement, combined with
gdk_window_create_similar_surface().
2010-09-26 15:11:30 +02:00
Kristian Rietveld
cadcd029a1
Include OS X system headers
2010-09-26 15:11:30 +02:00
Benjamin Otte
4dd215f82d
tests: Remove GdkPixmap from test
...
It's not used anymore. (Was it ever?)
2010-09-26 15:11:30 +02:00
Benjamin Otte
b7f2f9a678
gtk: Remove special code for detecting pixmaps as event targets
2010-09-26 15:11:30 +02:00
Kristian Rietveld
18a4ed6fd0
quartz: Remove else-clause for pixmaps
2010-09-26 15:11:30 +02:00
Benjamin Otte
9bcbdb7494
x11: Create blank cursor without pixmaps
2010-09-26 15:11:30 +02:00
Benjamin Otte
e6b74551d1
gdk: Get rid of all occurences of "pixmap" in the comments
...
Replace them with the correct term, usually "surface".
2010-09-26 15:11:30 +02:00
Benjamin Otte
55c4cdab1a
x11: Make fallback cursor code not use pixmaps
...
The fallback code for when XCursor wasn't available was still using
GdkPixmap to create the bitmaps.
2010-09-26 15:11:30 +02:00
Benjamin Otte
8d3319f088
x11: Remove last traces of XShm
...
Since deletion of GdkImage, shm is no longer in use.
2010-09-26 15:11:30 +02:00
Benjamin Otte
2b4efe2690
x11: Remove _gdk_x11_convert_to_format()
...
It's unused now.
2010-09-26 15:11:30 +02:00
Benjamin Otte
47292f28d5
x11: Upload cursor image using Cairo
...
There's no need to write our own upload function when the cursor format
is identical to CAIRO_FORMAT_ARGB32.
2010-09-26 15:11:30 +02:00
Benjamin Otte
6607f2b794
API: Rename gdk_set_source_pixmap() to gdk_set_source_window()
...
That's what it's used for now.
2010-09-26 15:11:30 +02:00
Benjamin Otte
e500f997db
gdk: Convert test to not use pixmaps
2010-09-26 15:11:30 +02:00
Benjamin Otte
90b4b88629
API: Remove gdk_window_set_back_pixmap()
...
The same effect can be achieved with
gdk_window_set_background_pattern().
2010-09-26 15:11:30 +02:00
Benjamin Otte
36f0a96161
demos: No need to set the background, it gets overridden anyway
2010-09-26 15:11:30 +02:00
Benjamin Otte
de2a4d1b1a
perf: Use a temp window instead of a normal one
...
This way, we don't need hacks to not set the background.
2010-09-26 15:11:30 +02:00
Benjamin Otte
4a9c32dc36
API: Remove APIs to generate pixmaps from pixbufs
...
The 3 functions in question were:
- gdk_pixbuf_render_threshold_alpha()
- gdk_pixbuf_render_pixmap_and_mask()
- gdk_pixbuf_render_pixmap_and_mask_for_colormap()
All of them can be replaced using Cairo if they have to. The
functionality is only needed to talk to old X interfaces and normal apps
do fine without them.
2010-09-26 15:11:29 +02:00
Benjamin Otte
6453710266
x11: Set the icon using Cairo
...
No more GdkPixmap to store the icon and its mask, but instead use cairo
surfaces. Also render the icon into the surfaces using Cairo instead of
gdk_pixbuf_render_threshold_alpha().
2010-09-26 15:11:29 +02:00
Benjamin Otte
332652f702
API: Change offscreen windows to use a cairo_surface_t
...
This requires changes to all the offscreen surface getters that used to
return a GdkPixmap before.
2010-09-26 15:11:29 +02:00
Benjamin Otte
ebdf26e1d8
gdk: Use surfaces for double buffering
...
Don't use pixmaps anymore. Also use subsurfaces for implicit paints and
correcly set device offsets.
2010-09-26 15:11:11 +02:00
Benjamin Otte
666539736d
gdk: Make csw windows have their own cairo surface
...
With Cairo 1.10 now having cairo_surface_create_for_rectangle(), we can
use them. No need to create multiple native surfaces for the same X
window (ugh) anymore.
2010-09-26 15:11:11 +02:00
Benjamin Otte
b69fdbbd04
API: Remove gdk_window_get_internal_paint_info()
...
This function should not exist in public API, it exposes too many
internals.
2010-09-26 15:11:11 +02:00
Benjamin Otte
d04bb38b28
gdk: offscreen window source drawable now is the root window
...
As the source drawable is only used for creating pixmaps these days, we
don't have to keep a real drawable around, but can just use the root
window.
2010-09-26 15:11:11 +02:00
Benjamin Otte
6d27362620
gdk: Create surfaces directly, not from the source drawable
...
The notion of a source drawable does not make a lot of sense for windows
that are not backed by a drawable, such as GdkOffscreenWindow after
converting it to cairo_surface_t.
2010-09-26 15:11:11 +02:00
Benjamin Otte
2bedd205c5
gdk: Remove gdk_windowing_create_cairo_surface()
...
Instead, actually use the create_cairo_surface vfunc on the
implementation drawable. D'oh.
2010-09-26 15:11:11 +02:00
Benjamin Otte
804fd4b15a
dnd: Replace last pixmap usage with cairo surfaces.
2010-09-26 15:11:11 +02:00
Benjamin Otte
b370cb0d4c
API: image: Remove ability to set image from a pixmap
2010-09-26 15:11:11 +02:00
Benjamin Otte
3ba78fed2a
API: Remove the ability to set the dnd icon from a pixmap
2010-09-26 15:11:11 +02:00
Benjamin Otte
19bad9fecc
tests: Convert testinput to use cairo_surface_t
2010-09-26 15:11:11 +02:00
Benjamin Otte
d7335837e0
gdk: Remove gdk_window_redirect_to_drawable()
...
Also remove the reverse gdk_window_remove_redirection().
The code was only used by the snapshotting code, and that code is dead
now.
2010-09-26 15:11:11 +02:00
Benjamin Otte
039e0c273a
testoffscreen: Remove unused code
2010-09-26 15:11:11 +02:00
Benjamin Otte
ca8a835874
API: Remove gtk_widget_get_snapshot()
...
It will be replaced with gtk_widget_draw().
2010-09-26 15:11:11 +02:00
Benjamin Otte
99c82af20a
testgtk: Remove snapshot test
...
gtk_widget_get_snapshot is on its way out.
The test can be added back once we have gtk_widget_draw(), but until
then, there's no way to take snapshots.
2010-09-26 15:04:02 +02:00
Benjamin Otte
8ac0e98f98
ruler: Make the backing store use a surface
2010-09-26 15:04:02 +02:00
Benjamin Otte
b186680a43
API: make gtk_icon_view_create_drag_icon() return a cairo_surface_t
...
GdkPixmap is going to die!
2010-09-26 15:04:02 +02:00
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
2c1633699f
gdk: Rewrite background handling
...
Now the window background is a cairo_pattern_t. The backends will try to
set this as good as they can on the windowing system, but no guarantees
are made on wether the windowing system supports the pattern.
Also gets rid of GDK_NO_BG as undefined behavior is not a good idea to
support, and GDK_NO_BG effectively made the window's contents undefined.
It wasn't effectively used in GTK anyway.
2010-09-26 15:03:00 +02:00
Benjamin Otte
c250b3fe1d
gdk: Remove supports_native_bg on WindowImplIface
...
This will not be TRUE for anything anymore, once we fix background
handling.
2010-09-26 15:03:00 +02:00
Benjamin Otte
95686cb704
gdk: Remove send_expose event from gdk_window_clear_region_internal()
...
It's always FALSE.
2010-09-26 15:03:00 +02:00
Benjamin Otte
547e2cc837
gdk: Remove GdkWindowImpl->clear_region
...
It was only used on the X11 backend and is easier to implement locally,
in particular when we want to allow backgrounds that X can't handle.
2010-09-26 15:03:00 +02:00
Benjamin Otte
3d98537c2e
gdk: Simplify clear_area code
...
No more use for a gdk_window_clear_area_internal() function as there's
just one caller.
2010-09-26 15:03:00 +02:00
Benjamin Otte
6ab793da8d
API: Remove gdk_window_clear_area_e()
...
Awesome name for a function. Plus, it's unused and its functionality can
easily be replicated.
2010-09-26 15:03:00 +02:00
Benjamin Otte
4b57560666
gdk: Don't use clear_area_e() in offscreenwindow
...
Instead, call gdk_window_invalidate_rect() ourselves.
2010-09-26 15:02:59 +02:00
Benjamin Otte
bfa6ad6e7c
gdk: Remove _gdk_windowing_get_shape_for_mask()
...
It's unused. And there's a replacement available with
gdk_cairo_region_create_from_surface()
2010-09-26 15:02:59 +02:00
Benjamin Otte
a7fec8cf46
API: Remove shape_combine_mask functions from gdk
...
This removes gdk_window_shape_combine_mask() and
gdk_window_input_shape_combine_mask(). GdkBitmap is going away and a
replacement exists via the combine_region() functions and
gdk_cairo_region_create_from_surface().
2010-09-26 15:02:59 +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
96b387599d
API: Add gdk_cairo_region_create_from_surface()
...
The function converts the given surface into an alpha bitmap mask. This
is mostly useful for setting shape regions.
Also adds a new internal function _gdk_cairo_surface_extents() that
computes a surface's extents.
2010-09-26 15:02:59 +02:00
Benjamin Otte
6218c16ff8
API: Remove gdk_cursor_new_from_pixmap()
...
gdk_cursor_new_from_pixbuf() is the proper replacement.
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
6ef27387e0
API: remove gdk_window_set_icon()
...
gdk_window_set_icon_list() now does everything gdk_window_set_icon()
used to do.
2010-09-26 15:02:59 +02:00
Benjamin Otte
dceb149ca4
testgtk: Convert WM hints example to use gdk_window_set_icon_list()
...
gdk_window_set_icon() is about to go away.
Also removes the circles.xbm file and uses the oncluded openfile logo
instead.
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
241f38992b
x11: remove icon_window property, it's not used anymore
2010-09-26 15:02:59 +02:00
Benjamin Otte
c65bb2b3b4
x11: Set icon based on icon list
...
Basically copies the code for setting the WM icon hint from GtkWindow to
GdkWindow. This achieves the following:
- Putting this X11 specific code into the X11 backend
- Enables removal of gdk_window_set_icon()
- Gets rid of Pixmap/Bitmap usage outside of GDK.
2010-09-26 15:02:59 +02:00
Benjamin Otte
da9b45be78
pixbuf-engine: remove unused theme_pixbuf_render_no_cairo()
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
761a1932a6
pixbuf-engine: Add Cairo version for draw_gap_image()
2010-09-26 15:02:57 +02:00
Benjamin Otte
e08d4258bb
pixbuf-engine: Add Cairo version for draw_simple_image()
2010-09-26 15:02:57 +02:00
Benjamin Otte
507f37b536
pixbuf-engine: Make theme_pixbuf_render take a cairo_t
...
This is in preparation for the theme engine switch to Cairo. We keep the
old function around so that we can step-by-step upgrade all the vfuncs.
2010-09-26 15:02:57 +02:00
Benjamin Otte
f7cfaee18a
pixbuf-engine: Get rid of unused mask argument
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
71991f339d
GtkScrolledWindow: document changed default policy
2010-09-25 12:54:47 -04:00
Matthias Clasen
5aad25aa42
Nuke the 'Types' section from the docs
2010-09-24 23:03:51 -04:00
Matthias Clasen
3fd767c92d
Remove mention of input dialog from the docs
2010-09-24 22:16:53 -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
Tomeu Vizoso
41f4fd94df
Don't try to unref event->dnd.context unconditionally.
...
As it's not set in gdk_event_new but eventually later.
https://bugzilla.gnome.org/show_bug.cgi?id=630520
2010-09-24 18:20:41 +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
8578ff4b38
Remove gtk_notebook_set_window_creation_hook in testnotebookdnd.c
2010-09-24 11:53:20 -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
Matthias Clasen
3557761fb3
docs: Add a CODING-STYLE document
...
This document mostly codifies the existing GTK+ coding style
conventions; it is strongly based on the clutter document of
the same name.
2010-09-23 22:28:02 -04:00
Matthias Clasen
65db1100ec
docs: remove defsformat.txt
...
We should not ship documentation for file formats we are no longer
using.
2010-09-23 22:28:01 -04:00
Matthias Clasen
c45985ae01
docs: remove gtk-config.txt
...
Considering that gtk-config has been obsoleted by pkg-config
a decade ago, we should stop shipping docs for it...
2010-09-23 22:28:01 -04:00
Matthias Clasen
8026cd386b
Bump gobject-introspection dep in INSTALL.in
2010-09-23 22:28:01 -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
Takayuki KUSANO
381c14f1e2
Updated Japanese translation
2010-09-24 02:16:55 +09:00
Javier Jardón
61e9f570d9
INSTALL.in: Automate the versions of the dependencies
2010-09-23 19:05:13 +02:00
Kenneth Nielsen
e56a209077
Updated Danish translation
2010-09-22 22:58:04 +02: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
bb90394147
Do not disable GDK deprecation guards
2010-09-22 04:28:53 +02:00
Javier Jardón
fb62d6105f
Do not disable deprecation guards
2010-09-22 04:21:13 +02:00
Javier Jardón
9ef738c4ab
Add deprecation guards for gdk_device_get_core_pointer()
2010-09-22 03:53:23 +02:00
Javier Jardón
9c3d1080d6
Do not use deprecated gdk_display_get_core_pointer()
...
Use gdk_device_manager_get_client_pointer() instead
2010-09-22 03:42:15 +02:00
Matthias Clasen
59bc9e8860
Fix an off-by-one error in serial range handling
...
trap->end_sequence is the first serial for which we don't
ignore errors anymore, so we know the trap is dead if
end_sequence <= processed_serial.
Bug 629608
2010-09-21 21:10:15 -04: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
Matthias Clasen
eba2d6cf61
autogen.sh: run gtkdocize before aclocal
2010-09-21 12:45:51 -04: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
Michael Natterer
9e2996decd
configure.ac: remove check for sigsetjmp(), it belonged to gdk-pixbuf
2010-09-21 12:35:37 +02:00
Owen W. Taylor
93e203e067
Use g_warning() for X errors and X IO errors
...
Currently fprintf(stderr, ...) is used for X error and X IO errors
(unless compiled with debugging, in which case g_error() is used for
X errors.)
But if an application is redirecting log messages, we really want
X errors to appear in that same log, so it's better to use a g_logv()
variant.
Though g_warning() isn't really appropriate for "lost connection to the
server", G_LOG_LEVEL_INFO isn't part of the "prefixed log levels"
so will produce output without the application name and PID.
https://bugzilla.gnome.org/show_bug.cgi?id=630216
2010-09-21 00:30:46 -04: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
Johan Dahlin
6ba904486c
Add a couple of missing transfer annotations
2010-09-20 23:45:01 -03:00
Johan Dahlin
330bc154ed
Fixup gtk-doc comment syntax
2010-09-20 23:40:21 -03: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
Owen W. Taylor
14e38da150
Only store error codes in inner-most X error trap
...
When an error occurs with nested traps in place, only the innermost
trap should have the error code stored in it; outer traps are
shielded by the inner trap.
https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-20 16:35:41 -04:00
Aron Xu
1592738d2f
Add a ug.po for po-properties, re-enable ug in LINGUAS.
2010-09-20 20:16:29 +00:00
Emmanuele Bassi
1aea318d0f
po: Disable ug localization
...
The ug.po file is missing from the po-properties directory and it's
breaking the build.
2010-09-20 13:51:38 +01:00
Takayuki KUSANO
bb7ffddff2
Updated Japanese translation
2010-09-20 18:50:58 +09:00
Sweta Kothari
e8a60e6123
Updated Gujarati Translations
2010-09-20 12:50:44 +05:30
Aron Xu
d14687ef4b
Add ug to LINGUAS.
2010-09-20 05:17:10 +00:00
Matthias Clasen
def95d1319
Add new error trap api to gdk.symbols and gdk3-sections.txt
2010-09-19 22:45:02 -04:00
Javier Jardón
743202261a
Add deprecation guards for gtk_cell_renderer_get_size()
2010-09-19 17:47:09 +02:00
Kenneth Nielsen
ae3be469b3
Updated Danish translation
2010-09-19 17:40:56 +02:00
Wouter Bolsterlee
bc7654826f
Updated Dutch translation by Vincent van Adrighem
2010-09-19 16:39:54 +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
Havoc Pennington
e32ab82069
Improve tests for X error traps, fix two bugs
...
* don't lose track of previous X error handler
if nested traps are pushed
* free any remaining traps when display
is finalized
Test will fail unless bug 630032 is closed so
gdk_display_close() works.
https://bugzilla.gnome.org/show_bug.cgi?id=630033
2010-09-18 23:03:31 -04:00
Havoc Pennington
c7d73ee587
Fix bugs that crashed gdk_display_close() on x11
...
* _gdk_device_set_associated_device() did not allow NULL device
* GdkDisplay should dispose device manager to avoid devices
trying to touch the display in finalize
* GdkDeviceManagerXI did not ref devices in id hash
* GdkDisplayX11 did not ref devices in ->input_devices
2010-09-18 22:57:36 -04:00
Havoc Pennington
b837ef5a6d
Revamp and modernize X error traps
...
* add per-display gdk_x11_display_error_trap_push()
(X11-specific because gdk_error_trap_push() probably
should have been)
* make gdk_error_trap_push() handle only GDK displays
not displays opened without a GDK wrapper
* make gdk_error_trap_pop() and gdk_x11_display_error_trap_pop()
automatically sync only if needed, so manual gdk_flush() is not
required
* add gdk_error_trap_pop_ignored() which just asynchronously
ignores errors, so never needs to sync
* add G_GNUC_WARN_UNUSED_RESULT to plain pop(), because
if you use plain pop() and don't need the return value,
the async gdk_error_trap_pop_ignored() should be used
instead. This results in lots of warnings to clean
up in a later patch.
The main objective here was to avoid the need to sync just
to ignore an error. Now, syncing is automatic, and only
happens when we need to know the error code.
https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-18 18:19:27 -04:00
Matthias Clasen
4f3e5e6ebc
Add some minimal test for X error traps
2010-09-18 18:18:36 -04:00
Havoc Pennington
8d5b4e9f6e
Replace crufty old code for gdk error traps with GQueue and GSlice
...
No need to do a manual free list these days.
https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-18 16:44:25 -04:00
Havoc Pennington
de3512dbba
Remove trailing whitespace and obsolete doc comments from gdk_error_trap code
...
(there are actual docs in the template file, these were some kind of
pre-gtk-doc comments without useful info)
https://bugzilla.gnome.org/show_bug.cgi?id=629608
2010-09-18 16:39:56 -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
Ryan Lortie
ac051a7b2c
depend on GLib 2.27.0
2010-09-17 20:49:30 -04:00
Javier Jardón
809dbe9f99
gail: Do not use deprecated gtk_cell_renderer_get_size()
...
Use gtk_cell_size_request_get_size() instead
https://bugzilla.gnome.org/show_bug.cgi?id=629785
2010-09-17 20:00:25 +02: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
28c66ed9b0
Fix a doc comment
2010-09-17 09:25:49 -04:00
Matthias Clasen
bf19aa46e9
Scan gdk/x11 sources for Gdk-3.0.gir
...
The doc comments (with annotations) for some of the gdk api are down
in x11/ sources, so we need to scan those too, when building Gdk-3.0.gir.
2010-09-17 09:23:30 -04:00
Matthias Clasen
6aa8941b84
Add annotations
...
The goi scanner warns about these nowadays.
2010-09-17 00:18:20 -04:00
Aron Xu
ab0e68e586
Update Simplified Chinese translation of po-properties.
2010-09-16 17:34:27 +00: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
Colin Walters
bf2a7ee1b6
introspection: Only use 0.9.3 API
2010-09-15 15:07:58 -04:00
Petr Kovar
8e72e9a7a0
Update Czech translation
2010-09-15 20:31:29 +02:00
Petr Kovar
67e6ac5af9
Update Czech translation
2010-09-15 20:01:47 +02: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
Tristan Van Berkom
896e249e8f
Added a default size of a magic number to testwrapbox.c
...
This was added to the test only for the sake of making it
easier to reproduce a bug with scrolled windows (bug 629778).
Expected behaviour: The vertical scrollbar should dissapear as soon
as the required height for the full allocation width (without any
vertical scrollbar) is small enough to not need a scrollbar.
2010-09-16 01:41:53 +09:00
Sebastian Dröge
560ca1eaad
gdk: Only use XComposite if it is available
...
Fixes build if it isn't available. Bug #629748 .
2010-09-15 16:42:57 +02: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
15d46dd866
demos: Use gtk_size_request_get_size() instead 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
Christian Kirbach
a18e2370bf
[l10n] Updated German translation
2010-09-14 23:38:07 +02:00
Tristan Van Berkom
2ee532645f
Adjusted new documentation for GtkSizeGroup.
2010-09-15 04:51:36 +09:00
Tristan Van Berkom
266476d32b
Added documentation to gtksizegroup.sgml explaining what happens with height-for-width widgets.
...
When grouping height-for-width trading widgets (wrapping labels for instance)
vertically; the height for the minimum width will always be used for the entire
group... this patch warns about this in the docs.
2010-09-15 04:04:02 +09: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
Javier Jardón
450beef2a2
demos: Do not use deprecated gtk_widget_get_child_requisition()
...
Use gtk_size_request_get_size() instead
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
96c3858b21
Make testwrapbox scrolled window scrollbars automatic.
...
Did this in the hope to reproduce infinite recursion bugs
with height-for-width in scrolled windows (see complex bgo #611740
for reference for now).
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
Adel Gadllah
85ae875dcb
[GdkWindowCache] Don't ignore the CompositeOverlayWindow
...
Add the composite overlay window to the cache, as this can be a reasonable Xdnd proxy as well.
This is only done when the screen is composited in order to avoid mapping
the COW. We assume that the CM is using the COW (which is true for pretty
much any CM currently in use).
https://bugzilla.gnome.org/show_bug.cgi?id=601731
2010-09-13 18:20:22 +02: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
Kristian Rietveld
234d750bb3
Update Quartz backend for GDK key name changes
2010-09-13 16:26:02 +02:00
Takayuki KUSANO
d93ab58829
Updated Japanese translation.
2010-09-13 22:19:59 +09:00
Havoc Pennington
1dc9451b57
Add padding and alignment tests to testadjustsize.c
2010-09-12 21:47:10 -04: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
dc1940e99e
Add testadjustsize test, to test new adjust size methods and related features
...
This will test size adjust, and interactions with other padding and border
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
Javier Jardón
e3fafd7512
docs: Fix gdk_display_get_core_pointer() docs
...
Point to gdk_device_manager_get_client_pointer(),
not gdk_display_get_client_pointer().
2010-09-13 02:48:21 +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