Benjamin Otte
45836db7a5
test: Port offscreen test 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
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
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
c85f91e14c
tests: Remove ability to set backend from testfilechooser
...
There's no backends anymore
2010-09-26 15:11:35 +02:00
Benjamin Otte
fc52c9daf3
testgtk: Check visual, not colormap for RGBA availability
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
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
a38472c139
testgtk: No need to set a custom colourmap here
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
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
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
19bad9fecc
tests: Convert testinput to use cairo_surface_t
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
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
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
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
Matthias Clasen
8578ff4b38
Remove gtk_notebook_set_window_creation_hook in testnotebookdnd.c
2010-09-24 11:53:20 -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
Javier Jardón
fb62d6105f
Do not disable deprecation guards
2010-09-22 04:21:13 +02: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
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
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
Matthias Clasen
4f3e5e6ebc
Add some minimal test for X error traps
2010-09-18 18:18:36 -04:00
Matthias Clasen
2f78aa3024
Rename h/v-align to h/valign
...
And adjust the getters and setters to match. Also include some
documentation by Havoc Pennington about adjustment of size requests
and allocations.
2010-09-15 20:14:56 -04:00
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
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
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
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
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
Havoc Pennington
1dc9451b57
Add padding and alignment tests to testadjustsize.c
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
Tor Lillqvist
dd36afc207
Don't use the same name for a function that used to be a variable
...
Rename the gtk_major_version() etc functions I introduced yesterday to
start with gtk_get. Avoids misleading results in client programs whose
developers that don't notice the change or the compiler warnings, and
when recompiling against gtk3 then use the function addresses as the
version numbers.
2010-09-09 11:06:26 +03:00
Colin Walters
913cdf3be7
GDK: Prefix key names with KEY_
...
The keysyms create a lot of potential namespace conflicts for
C, and are especially problematic for introspection, where we take
constants into the namespace, so GDK_Display conflicts with GdkDisplay.
For C application compatiblity, add gdkkeysyms-compat.h which uses
the old names.
Just one user in GTK+ continues to use gdkkeysyms-compat.h, which is
the gtkimcontextsimple.c, since porting that requires porting more
custom Perl code.
2010-09-08 18:51:44 -04:00
Tor Lillqvist
cb24bcc613
Turn the gtk version and age variables into functions
...
Having variables exported from a DLL is slightly painful and
potentially error-prone on Windows, so let's try get rid of them now
when we can. Starting with these.
2010-09-08 21:31:33 +03:00
Javier Jardón
4e6a665e61
tests: Use gtk_widget_set_size_request() instead gtk_widget_set_usize()
2010-09-08 18:39:36 +02:00
Benjamin Otte
fc46f2ca2f
tests: Remove all code relating to the blink menu item
2010-09-03 13:38:29 +02:00
Matthias Clasen
18b47b6cd0
Remove blinking from status icons
...
This feature was just a bad idea.
2010-09-02 09:37:06 -04:00
Matthias Clasen
76b21033f9
Adapt tests to dialog api change
2010-09-02 09:31:54 -04:00
Tristan Van Berkom
68568cff66
Enhanced/Simplified GtkWrapBox api as per Havoc's comments.
...
Made an enum GtkWrapBoxPacking for the expand/fill horizontal/vertical
boolean options... changed xpadding/ypadding to be horizontal-padding
and vertical-padding for a more consistent api and better readablility.
2010-09-02 15:36:36 +09:00
Tristan Van Berkom
c9ccc7551b
Some api changes for GtkWrapBox
...
Ammended documentation for GTK_WRAP_BOX_SPREAD_EVEN and renamed
GTK_WRAP_BOX_SPREAD_BEGIN -> GTK_WRAP_BOX_SPREAD_START.
2010-09-02 14:22:55 +09:00
Matthias Clasen
6b5672c199
Remove now unused GtkProgressBarOrientation enum
2010-09-01 23:30:21 -04:00
Matthias Clasen
3302f22da2
Adapt testgtk progressbar test to api changes
2010-09-01 23:26:19 -04:00
Tristan Van Berkom
bbf38a8ebd
Fixing email address in copyright header for testwrapbox test.
2010-08-30 18:24:41 +09:00
Tristan Van Berkom
deaa351630
Added initial revision of GtkWrapBox container widget and test case.
2010-08-28 16:01:59 +09:00
Javier Jardón
72fad93587
tests/testsocket: Fix broken test
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=627867
2010-08-24 23:49:21 +02:00
Javier Jardón
a0e0c9e89c
tests/testgtk.c: Use accessor functions to access GtkWindow
2010-08-23 20:17:41 +02:00
Javier Jardón
c8afa3f000
tests/testxinerama.c: Use accessor functions to access GtkWidget
2010-08-22 18:31:12 +02:00
Javier Jardón
bd52a8541e
tests/testwindows.c: Use accessor functions to access GtkWidget
2010-08-22 18:31:06 +02:00
Javier Jardón
42c71a1d4a
tests/testtooltips.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:58 +02:00
Javier Jardón
f332976871
tests/testsocket_common.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:51 +02:00
Javier Jardón
b012f0f930
tests/testsocket.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:44 +02:00
Javier Jardón
07e38c51e8
tests/testselection.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:37 +02:00
Javier Jardón
1577a7d415
tests/testoffscreenwindow.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:31 +02:00
Javier Jardón
26d837dd2f
tests/testoffscreen.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:23 +02:00
Javier Jardón
0059a30f0d
tests/testinput.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:17 +02:00
Javier Jardón
4a9c3bc214
tests/testiconview-keynav.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:10 +02:00
Javier Jardón
252a8fc048
tests/testgtk.c: Use accessor functions to access GtkWidget
2010-08-22 18:30:03 +02:00
Javier Jardón
1b7b30bf31
tests/testframe.c: Use accessor functions to access GtkWidget
2010-08-22 18:29:56 +02:00
Javier Jardón
4210ec87b0
tests/testellipsise.c: Use accessor functions to access GtkWidget
2010-08-22 18:29:49 +02:00
Javier Jardón
067f418604
tests/testcairo.c: Use accessor functions to access GtkWidget
2010-08-22 18:29:42 +02:00
Javier Jardón
40dbb2deb2
tests/print-editor.c: Use accessor functions to access GtkWidget
2010-08-22 18:29:35 +02:00
Javier Jardón
5d48658f58
tests/gtkoffscreenbox.c: Use accessor functions to access GtkWidget
2010-08-22 18:29:28 +02:00
Javier Jardón
9016f0d9a6
Use standard icon names in demos and tests
2010-08-21 03:08:15 +02:00
Tristan Van Berkom
d73c11b549
Added test case to testheightforwidth.c to show GtkComboBox/GtkMenu wrapping in action
2010-08-18 20:01:28 -04:00
Benjamin Otte
dc7a8f9be7
tests: unbreak testwindows test
...
Delete code that was broken and also used the APIs I just removed.
2010-08-15 03:51:39 +02:00
Javier Jardón
374d5094a3
Use accessor functions to access GtkToolbar
2010-08-14 02:25:33 +02:00
Javier Jardón
1516c86ca4
Use accessor funcions to access GtkCalendar
2010-08-12 18:02:31 +02:00
Benjamin Otte
aaf70d1327
testgtk: Use Cairo to load XBM image
...
This should really use GdkPixbuf, but apparently we can't load XBM
images. And I'm too lazy to convert it.
2010-08-10 21:02:31 +02:00
Benjamin Otte
de285edc72
testgtk: Use Pixbufs in the shapes example
2010-08-10 21:02:31 +02:00
Benjamin Otte
2513636877
testgtk: Rename pixmap => pixbuf in various places
...
Now that we use Pixbufs for the tests instead of Pixmaps, we should name
the tests like that.
2010-08-10 21:02:31 +02:00
Benjamin Otte
6b19815f87
testgtk: Use pixbufs instead of pixmaps
...
This is for creating a GtkImage with an icon.
2010-08-10 21:02:31 +02:00
Benjamin Otte
ad571a3a5e
testgtk: Make image test not use Pixmaps, but Pixbufs
2010-08-10 21:02:31 +02:00
Benjamin Otte
727122b8d6
testgtk: Fix types and get rid of casting
2010-08-10 21:02:31 +02:00
Benjamin Otte
f3c3e47db7
testdnd: Convert to use pixbufs as icons
...
Using Pixmaps is outdated.
2010-08-10 21:02:30 +02:00
Benjamin Otte
c661eb73a1
testgtk: Remove image from drawable test
...
The test only tested old APIs.
2010-08-10 21:02:27 +02:00
Benjamin Otte
8f21b09eee
tests: remove "draw drawable" button from testwindows test
...
draw_drawable is gone soon. And testing the proper functioning of
drawing calls is Cairo's job anyway.
2010-08-10 21:02:27 +02:00
Benjamin Otte
a513bdf3f7
testgtk: Remove alpha drawing test
...
We use Cairo for that these days.
2010-08-10 21:02:26 +02:00
Benjamin Otte
8f19db7565
Replace gdk_rgb_find_color()
...
Use gdk_colormap_alloc_color() instead.
2010-08-10 21:02:26 +02:00
Benjamin Otte
32c95ebe27
tests: remove testrgb test
...
This is in preparation for the GdkRGB removal
2010-08-10 21:02:25 +02:00
Javier Jardón
3ccc617052
Completely remove any use of GtkWindow allow-grow and allow-shrink properties
...
These have been deprecated and removed from master.
GtkWindow:resizable should be used instead.
This completes commit 1a03a65e36
Reported by Benjamin Otte
2010-08-07 17:19:16 +02:00
Tristan Van Berkom
208ba9bb50
Make GtkFrame allocate its label considering natural size requests
...
Also like the GtkExpander, the label widget is allocated the minimum
height for its allocated width and the remaining space is given to
the child, test case included.
2010-08-06 16:57:11 -04:00
Tristan Van Berkom
e83a8826e6
Implemented GtkSizeRequest on GtkExpander and added test
...
Now the expander requests and distributes space naturally,
the expander widget prioritizes the child widget vertically
and only allocates the minimum height for width to the label
widget.
2010-08-05 12:50:25 -04:00
Benjamin Otte
e0efb8798a
testgtk: Remove unused variable
2010-07-26 16:42:48 +02:00
Benjamin Otte
e8bf80ebea
testgtk: Draw rotated text example with pangocairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
8630657324
testgtk: Replace gdk_draw_rectangle() with Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
0a451f508b
test: Convert testinput to Cairo
...
The test is broken though as it draws onto windows outside of expose
events.
And we all know you shouldn't do that.
2010-07-26 16:42:48 +02:00
Benjamin Otte
6dd7e5af08
tests: Make testoffscreen use Cairo
2010-07-26 16:42:48 +02:00
Benjamin Otte
a625e587a3
tests: replace gdk_draw_drawable() with Cairo calls in testinput
2010-07-26 16:42:48 +02:00
Benjamin Otte
17bd528df5
tests: Use gdk_screen_get_default_colormap()
...
We don't need the RGB colormap here.
2010-07-26 16:42:48 +02:00
Benjamin Otte
58ef2afdfa
tests: Use GdkPixbuf for taking a screenshot, not GdkImage
2010-07-26 16:42:48 +02:00
Benjamin Otte
6d4bae5ccc
tests: Remove gdk_draw_pixbuf() with Cairo equivalent
2010-07-26 16:42:47 +02:00
Javier Jardón
bf976cc1e4
Use accessor functions to access GtkStatusbar
2010-07-13 19:40:50 +02:00
Javier Jardón
c17dad9d32
Use accessor functions to access GtkSpinButton
2010-07-13 19:40:50 +02:00
Javier Jardón
92a1382bd6
Use accessor functions to access GtkPaned
2010-07-13 19:40:49 +02:00
Javier Jardón
fbf1de72c4
Use accessor funtions to access GtkLayout
2010-07-13 19:40:48 +02:00
Javier Jardón
2d9aaf4cf3
Use accessor funtions to acces GtkFrame
2010-07-13 19:40:47 +02:00
Javier Jardón
7f2cc85db9
Use accessor functions to access GtkDialog
2010-07-13 19:40:47 +02:00
Javier Jardón
4427760bcc
Use GtkBin accessors
2010-07-13 19:40:47 +02:00
Javier Jardón
3a10216dd0
Use accessor functions to acces GtkContainer
2010-07-13 19:40:46 +02:00
Javier Jardón
9663801be7
Use accessor functions to access GtkColorSelectionDialog
2010-07-13 19:40:46 +02:00
Javier Jardón
d562611660
Use accessor functions to access GtkNotebook
2010-07-13 17:50:48 +02:00
Christian Dywan
04c54efe5c
Deprecate GtkNotebookPage as used in switch-page
...
Fixes: 618327
2010-07-13 16:49:53 +02:00
Ignacio Casal Quinteiro
d219adfa5a
Move sealed attributes to private struct.
2010-07-12 21:12:46 +02:00
Javier Jardón
319d2bb4f1
[gdk] Remove GdkWindowObject public structure
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=622677
2010-07-01 02:26:34 +02:00
Benjamin Otte
300e6b84cd
s/GdkRegion/cairo_region_t/ in all of gtk
...
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Benjamin Otte
3e96cfe8fc
Deprecate the GdkRegion API
...
Includes fixing all callers to use the cairo region API instead. This is
usually just replacing the function names, the only difference is
gdk_region_get_rectangles() being replaced by
cairo_region_num_rectangles() and cairo_region_get_rectangle() which
required a bit more work.
https://bugzilla.gnome.org/show_bug.cgi?id=613284
2010-06-29 16:06:38 +02:00
Colin Walters
905f988166
Revert "Add length to gtk_tree_path_get_indices"
...
This reverts commit eebb16eb1a
.
Was an accidental commit.
2010-06-28 14:15:10 -04:00
Colin Walters
eebb16eb1a
Add length to gtk_tree_path_get_indices
...
The old version wasn't introspectable as it didn't have a length
return parameter. Also, delete gtk_tree_path_get_indices_with_depth,
since it's no longer needed.
2010-06-28 13:50:36 -04:00
Matthias Clasen
75b9f68338
don't build testapplication on OS X
...
See bug 622827
2010-06-26 21:41:58 -04:00
Matthias Clasen
cc5500ad85
Remove pure gdk-pixbuf tests
...
These have been moved over to the gdk-pixbuf module.
2010-06-26 01:09:05 -04:00
Matthias Clasen
16ecf55832
Make GTK+ use an external gdk-pixbuf
2010-06-26 01:09:05 -04:00
Matthias Clasen
686294cb3b
Add an expander-in-dialog example
...
To show how I expect this kind of construction to work, makes it
easier to find the code the next time I need it somewhere.
2010-06-24 00:35:24 -04:00
Carlos Garnacho
604beadbcd
testinput: Do not use deprecated API.
2010-06-24 02:30:54 +02:00
Javier Jardón
1569f722cd
[testapplication] Fix some compilation warnings
2010-06-24 01:51:33 +02:00
Javier Jardón
a7041e9c40
[testinput] Fix compilation warning: Use guint instead int
2010-06-24 01:39:24 +02:00
Tristan Van Berkom
4e23171803
Removed extendedlayoutexample.c (was a failed git mv --> testheightforwidth.c)
2010-06-18 00:12:55 -04:00
Tristan Van Berkom
edd57602b8
Mass api change from GtkExtendedLayout --> GtkSizeRequest
...
This commit makes a few massive changes to the extended layout
code:
a.) gtkextendedlayout.c --> gtksizerequest.c
b.) _is_height_for_width --> get_request_mode()
c.) get_desired_size(), get_desired_width(), get_desired_height() -->
get_size(), get_width(), get_height()
This is the first partial commit and only effects portions
of the tree that have already been merged in master (in order to
easily cherry pick this commit).
Conflicts:
gtk/Makefile.am
gtk/gtk.h
gtk/gtk.symbols
gtk/gtkextendedlayout.h
2010-06-18 00:11:26 -04:00
Colin Walters
bdaefd7efe
[GtkApplication] Update for GApplication API changes
...
Move appid parameter first to match GApplication.
2010-06-16 11:02:39 -04:00
Tor Lillqvist
eb1233d11b
Fix build breakage on non-Unix
...
gdesktopappinfo.h does is in gio-unix headers, so can compile
testapplication only on Unix.
2010-06-09 11:10:22 +03:00
Matthias Clasen
5e0dfed135
Get rid of GtkProgress
...
The entire api was deprecated since 2.0. This patch detangles
GtkProgress from GtkProgressBar and moves all the pieces into
GtkProgressBar that are required for non-deprecated progressbar
functionality.
Bug #620618
2010-06-09 00:35:09 -04:00
Matthias Clasen
1ae257d00a
Add GtkApplication
...
This is a work in progress to stub out an application class. The
primary goal is to provide a mechanism for applications to export
GtkActions, and there is a standard "Quit" action.
This is based on GApplication.
Future work:
* Add a way to say "This is my application menubar", which gets
put into all toplevel windows on non-OS-X, and into the top
on OS X.
* Support session management.
* Support application settings.
https://bugzilla.gnome.org/show_bug.cgi?id=127958
2010-06-07 16:46:30 -04:00
Javier Jardón
da8643e457
Remove some GTK_DISABLE_DEPRECATED and ENABLE_BROKEN guards
2010-06-07 04:50:05 +02:00
Matthias Clasen
354086bafc
Fix a typo
2010-06-03 13:36:09 -04:00
Matthias Clasen
c557f7b7c4
Improved icon view keynav
...
Use ::keynav-failed for arrow navigation in icon views, so that
it is possible to override error handling. Also add API to get the
row/col of an item. With this, it is possible to make arrow keynav
span adjacent icon views, which is desired in the new control-center
shell. testiconview-keynav demonstrates this.
2010-05-30 02:17:51 -04:00
Javier Jardón
cc8dcf738a
Remove deprecated GtkToolbar code
...
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=616817
2010-05-24 20:16:07 +02:00
Matthias Clasen
c51f965782
Some cleanups after the module cache file change
...
Bring the various 'run uninstalled' hacks in line with the
new way of doing things, and fix make install for module cache
files.
Patch by Tadej Borovsak.
2010-05-18 19:23:06 -04:00
Matthias Clasen
7f1f1c09ce
Make gail parallel-installable too
...
Move libgail-util to libgail-util-3.0, and gail.pc to gail-3.0.pc
2010-05-10 20:06:10 -04:00
Javier Jardón
37b62be296
[tests] Move filechooser test files to correct location
2010-05-11 00:50:54 +02:00
Matthias Clasen
7447ef0fc2
Make 3.0 parallel-installable to 2.x
...
In particular, rename
- libraries to lib*-3.0.so
- pc files to *-3.0.pc
- include paths to /usr/include/gtk-3.0/*
- module paths to /usr/lib/gtk-3.0/*
- rc files names to gtk-3.0/gtkrc
- commandline utilities to *-3.0
- adjust documentation
Also change the install location for unix-print headers to
/usr/include/gtk-3.0/unix-print/gtk.
2010-05-08 01:18:53 -04:00
Matthias Clasen
2f6b88ff48
Clean up docs, disable testtext for now.
2010-05-07 00:04:57 -04:00
Matthias Clasen
77d4d3cdae
Merge branch 'gtk-2-90'
...
Conflicts:
gtk/gtkentry.h
2010-05-06 22:55:02 -04:00
Javier Jardón
bcfc53066a
tests: Too many arguments in call to 'create_menu'
2010-05-03 02:59:35 +02:00
Javier Jardón
901105766e
Do not use deprecated GtkNoteBook api in testgtk
2010-05-03 01:51:23 +02:00
Javier Jardón
7065c566a3
Remove deprecated GtkProgress functionality from testgtk
2010-05-03 01:51:23 +02:00
Javier Jardón
2c2726f818
Port testtreeview to new API
...
Use GtkComboBox instead the deprecated GtkOptionMenu
https://bugzilla.gnome.org/show_bug.cgi?id=616679
2010-05-03 01:51:23 +02:00
Christian Dywan
765882ce9a
Declare random item correctly in stresstest-toolbar
2010-05-03 01:51:23 +02:00
Christian Dywan
b4188f876f
Use GtkComboBox, GtkOrientable and no GtkObject in testtoolbar
2010-05-03 01:51:23 +02:00
Christian Dywan
7ccd787f04
Don't set child-min-width/ height in the button box test
...
This is not a property. The feature was removed.
2010-05-03 01:51:23 +02:00
Christian Dywan
786b5774e3
Revert accidental removal of book pixmap strings
2010-05-03 01:51:23 +02:00
Christian Dywan
09c84a006f
Remove unused dump_accels() function from testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
0c0976be1d
Remove GtkTipsQuery demo from testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
1dabde28ac
Don't use gtk_widget_set_uposition/size in testgtk
...
Use gtk_window_move and gtk_widget_set_size_request instead.
2010-05-03 01:51:22 +02:00
Christian Dywan
646b417c20
Remove unused text helper functions from testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
6536ad7299
Use new 2.14 GtkColorSelection API in testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
eaf3ccfba0
Replace GtkFileSelection with GtkFileChooser in testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
c30e1865d8
Use GtkComboBoxEntry for the display list in testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
36c3426efb
Use GtkComboBoxEntry in entry test in testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
81c8fcb72b
Declare book_open/closed_xpm in testgtk notebook
2010-05-03 01:51:22 +02:00
Christian Dywan
a927f1f17d
Remove item factory test from testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
298f1ea9f6
Use "activate" rather than "clicked" for menu items
2010-05-03 01:51:22 +02:00
Christian Dywan
187e49992d
Use GtkComboBox instead of GtkCombo in testsocket
2010-05-03 01:51:22 +02:00
Christian Dywan
464eeda24c
Don't use GtkItemFactory in testsocket
2010-05-03 01:51:22 +02:00
Christian Dywan
44af4852ee
Replace GtkText in testselection with GtkTextView
2010-05-03 01:51:22 +02:00
Christian Dywan
e0602fd6a8
Remove obsolete GtkText test from testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
2f70bb98cb
Remove obsolete GtkTree test from testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
1eefd43961
Use an array and new toolbar API in testgtk
2010-05-03 01:51:22 +02:00
Christian Dywan
b8727e11fd
Replace option menu with combo box in testoffscreen
2010-05-03 01:51:22 +02:00
Christian Dywan
274395063a
Replace option menus in testgtk with combo boxes
2010-05-03 01:51:22 +02:00
Christian Dywan
63131903ad
Use new progress bar API in testgtk progress test
2010-05-03 01:51:22 +02:00
Christian Dywan
3b721ea9c9
Use a tree view in testgtk selection target test
2010-05-03 01:51:21 +02:00
Javier Jardón
e850958c56
Remove GtkOptionMenu tests
2010-05-03 01:51:21 +02:00
Christian Dywan
e8f1a3ccf0
Remove deprecated GtkTooltips
2010-05-03 01:51:21 +02:00
Javier Jardón
04a548a463
Removed a call to a recently removed test function
...
The function was a test of the deprecated GtkList
2010-05-03 01:51:20 +02:00
Javier Jardón
74e6844488
Remove GtkCurve completely
2010-05-03 01:51:20 +02:00
Javier Jardón
d97ca04f5b
Remove GtkGammaCurve completely
2010-05-03 01:51:20 +02:00
Javier Jardón
20342702f4
Remove gtkmain stuff from docs and tutorial.
...
Also, substitue the deprecated functions with the new ones in
documentation and in tests code
2010-05-03 01:51:18 +02:00
Christian Dywan
d72b1e35c9
Use GtkComboBox in the property editor code
2010-05-03 01:51:17 +02:00
Christian Dywan
46b170ba0e
Don't use GtkInputDialog in testinput
2010-05-03 01:51:17 +02:00
Javier Jardón
858d4fb007
Remove remaining GtkButtonBox deprecated stuff
...
This completes commit b1b986cc604bffd924a13fbcb180dd234a0b8d14
2010-05-03 01:49:40 +02:00
Javier Jardón
c9dae4c600
Remove deprecated code: GtkCheckMenuItem
2010-05-03 01:48:45 +02:00
Christian Dywan
014b05e6bd
Don't use gtk_socket_steal in the socket test
2010-05-03 01:41:36 +02:00
Christian Dywan
6f5b7bad3a
Don't use old toolbar API in toolbar stress test
2010-05-03 01:41:36 +02:00
Christian Dywan
a42886d81d
Remove GtkCList, GtkCTree, GtkFileSelection and GtkPreeview tests
2010-05-03 01:39:50 +02:00
Matthias Clasen
4cf9ac5b4d
Add a frame to the examples
2010-05-01 21:40:44 -04:00
Matthias Clasen
ff267664b8
Fix a few typos
2010-04-25 16:59:13 -04:00
Tristan Van Berkom
909ca43c1a
Renamed testextendedlayout2 --> extendedlayoutexample, also removed testextendedlayout and letting it reside for now in native-layout branch.
2010-04-21 04:11:55 -04:00
Tristan Van Berkom
504ec365a7
Improved legibility of the label parameters test.
2010-04-20 22:02:48 -04:00
Tristan Van Berkom
7db18bb726
Added test reflecting the usage of GtkLabel parameters.
2010-04-20 20:44:24 -04:00
Tristan Van Berkom
a3a245ab56
Updated test for api change.
2010-04-20 20:44:11 -04:00
Tristan Van Berkom
4d06d75dce
Updating test for api change.
2010-04-20 20:43:41 -04:00
Tristan Van Berkom
630357beb3
Added test to demonstrate width-for-height labels.
2010-04-20 18:58:44 -04:00
Tristan Van Berkom
a141c66253
Added testextendedlayout2.c to tests.
...
This test is a collection of builder files which demonstrate the
added features of natural sizes and height-for-width geometry; so
far it only contains 3 cases, more to come...
2010-04-19 01:07:20 -04:00
Tristan Van Berkom
33039c1452
Fixed extended layout test to compile without the gtk_label_set_fullsize() api.
2010-04-18 17:56:58 -04:00
Tristan Van Berkom
19ff8cb026
Fixed test to call the extended layout api instead of consulting ->requisition
2010-04-17 22:50:12 -04:00
Tristan Van Berkom
c67559ad03
Adding tests ported over from the old branch by Matthias.
2010-04-10 22:03:20 -04:00
Javier Jardón
8ea37e551b
Don't use GTK_WIDGET_STATE in internal code anymore
...
Use gtk_widget_get/set_state() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:06 -04:00
Javier Jardón
e082783fbb
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_REALIZED)
...
Use new API instead: gtk_widget_set_realized ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:03 -04:00
Javier Jardón
e2f79c33ff
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_NO_WINDOW)
...
Use new API instead: gtk_widget_set_has_window ()
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:59:02 -04:00
Javier Jardón
ee0bf98769
Deprecate widget flag: GTK_WIDGET_REALIZED
...
Use gtk_widget_get_realized() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:58:59 -04:00
Javier Jardón
e53efb120a
Deprecate widget flag: GTK_WIDGET_MAPPED
...
Use gtk_widget_get_mapped() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:58:58 -04:00
Javier Jardón
ec20658b51
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_DEFAULT)
...
Use new API instead: gtk_widget_set_can_default ()
2010-04-03 20:58:22 -04:00
Javier Jardón
76943117be
Don't use GTK_WIDGET_*SET_FLAGS (wid, GTK_CAN_FOCUS)
...
Use new API instead: gtk_widget_set_can_focus ()
2010-04-03 20:58:22 -04:00
Javier Jardón
edc65ce1d2
Deprecate widget flag: GTK_WIDGET_VISIBLE
...
Use gtk_widget_get_visible() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:58:20 -04:00
Javier Jardón
e7127daf84
Deprecate widget flag: GTK_WIDGET_IS_SENSITIVE
...
Use gtk_widget_is_sensitive() instead
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:56:29 -04:00
Javier Jardón
04aba4bde2
Deprecate widget flag: GTK_WIDGET_DRAWABLE
...
Use gtk_widget_is_drawable() instead.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:56:29 -04:00
Christian Persch
a4186b6aa5
Correctly clone the toolbutton's icon-name image widget
...
Bug #608162 .
2010-04-03 20:56:08 -04:00
Javier Jardón
239570abdd
[tests] Not use GtkOptionMenu deprecate widget.
...
Replace GtkOptionMenu with GtkComboBox.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=606288
2010-04-03 20:56:07 -04:00
Javier Jardón
bb7ff7b586
[test] Fix some typos
2010-04-03 20:55:23 -04:00
Christian Persch
cf9edf9ff7
Implement property editor for GdkColor properties
...
Bug #606434 .
2010-04-03 20:55:14 -04:00
Christian Dywan
fc2cbf960c
Deprecate flag macros for toplevel, state, no window and composite child
...
Deprecate widget flag macros GTK_WIDGET_STATE, GTK_WIDGET_SAVED_STATE,
GTK_WIDGET_FLAGS, GTK_WIDGET_TOPLEVEL, GTK_WIDGET_NO_WINDOW and
GTK_WIDGET_COMPOSITE_CHILD.
Also deprecate the type macros GTK_WIDGET_TYPE, GTK_OBJECT_TYPE_NAME and
GTK_OBJECT_TYPE which have become redundant.
Instances of GTK_WIDGET_TOPLEVEL are replaced with gtk_widget_is_toplevel,
GTK_WIDGET_TYPE is replaced with G_OBJECT_TYPE, GTK_WIDGET_COMPOSITE_CHILD
is replaced with use of the "composite-child" property and uses of
GTK_WIDGET_NO_WINDOW are adjusted to use gtk_widget_get_has_window.
Uses of GTK_WIDGET_SAVED_STATE and GTK_WIDGET_FLAGS inside GtkWidget are
changed to direct flag usage.
Documentation is updated to refer to gtk_widget_set_has_window and
gtk_widget_get_has_window.
Gail and tests are updated as well.
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=69872
2010-04-03 20:55:07 -04:00
Cody Russell
4c4f795da9
Add gtk_offscreen_window_get_pixmap() and gtk_offscreen_window_get_pixbuf(), some API docs.
2010-04-03 20:53:45 -04:00
Cody Russell
6b9924db1c
Add delete-event callback to window, use gtk_widget_queue_draw() instead of gtk_widget_draw()
2010-04-03 20:53:44 -04:00
Cody Russell
87487cea62
GtkOffscreenWindow implementation for #604901
2010-04-03 20:53:44 -04:00
Benjamin Otte
3659db3a4a
Fix up linker flags
...
This adds LDFLAGS everywhere where they were previously pulled in via
other libraries. This is however unsupported by modern linkers.
You can trigger these failures by building with gold (or, I'm told, with
very new ld).
2010-04-03 20:51:57 -04:00
Johannes Schmid
21ebf5df86
native-layout: Change test-case so that it is more obvious that the algorithm tries to show as many
...
widgets with full size as possible.
2009-12-14 17:24:52 +01:00
Johannes Schmid
c659d1a505
Merge branch 'master' into native-layout
2009-12-14 15:36:22 +01:00
Johannes Schmmid
e08d04b561
native-layout: Introduce GtkExtendedLayout interface.
2009-12-14 15:32:49 +01:00
Sven Herzberg
70440523e3
let the close button reflect the page_complete status of SUMMARY pages
...
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=604289
In order to respect this properly, we have to restore the original
behavior by watching a flag to check if the user has already set this.
* gtk/gtkassistant.c: fix the bug by introducing a flag to check for
non-automatic value setting
* tests/testassistant.c: updated the "generous assistant" to permit
quick manual testing of this feature
2009-12-10 22:06:30 +01:00
Cody Russell
662e69ad3e
Add gdk_screen_get_primary_monitor(). This fixes bug #601712
2009-12-08 11:27:02 -06:00
Christian Persch
65485cbc7c
Add UI manager attribute to always show image in menu items
...
Add always-show-image="true|false" attribute to <menuitem> element in UI
manager markup. If present, it overrides the always-show-image property
on image menu items. Bug #589842 .
2009-11-27 19:14:43 +01:00
Javier Jardón
c7a5ddf8a7
Disable test until it is rewritten to work
2009-11-09 09:36:23 +01:00
Nicola Fontana
1e1131c959
Do not use static GTypeInfo and GInterfaceInfo
...
Either g_type_register_static_simple (used by G_DEFINE_TYPE_EXTENDED)
and G_IMPLEMENT_INTERFACE use automatic variables for GTypeInfo and
GInterfaceInfo structs, while tutorials and source code often use
static variables. This commit consistently adopts the former method.
https://bugzilla.gnome.org/show_bug.cgi?id=600158
2009-11-06 01:21:09 +01:00
Javier Jardón
232fca6e95
Fix compilation warning
...
Use g_get_current_dir() instead getcwd()
2009-10-20 20:38:14 +02:00
Christian Dywan
06603435a2
Undefine GTK_DISABLE_DEPRECATED in testinput to keep it compiling
2009-10-16 18:45:53 +02:00
Tor Lillqvist
2e0b5580ef
Don't include gdkwin32.h when testing Objective-C++
...
Fixes bug #594644 . If somebody actually some day needs to include
gdkwin32.h from an Objective-C++ program something needs to be done.
2009-10-09 14:35:49 +03:00
Cody Russell
57fa8e8124
Move '-x objective-c++' from CXXFLAGS to CPPFLAGS
2009-09-18 22:37:22 -05:00
Vincent Untz
83719cbb90
Fix warning about pointer/int confusion
...
https://bugzilla.gnome.org/show_bug.cgi?id=594679
2009-09-12 13:23:09 +02:00
Alexander Larsson
812b3c451d
Deprecate GDK_WINDOW_OBJECT and GdkWindowObject
2009-09-04 17:59:18 +02:00
Alexander Larsson
d5125660c1
Add test for gdk_window_restack
2009-09-02 23:39:57 +02:00
Javier Jardón
ec7c24d227
Remove some unused variables (GnomeBug:591218)
2009-08-10 11:06:54 +02:00
Hans Breuer
31357a7ab6
Enable big_window bench on win32, dialog for everyone
2009-07-26 19:14:05 +02:00
Hans Breuer
3750ecc821
Build more testapps, use G_PI instead of M_PI
2009-07-13 09:44:59 +02:00
Matthias Clasen
bde64ecda2
Add a testcase for use-stock/use-underline in buttons
...
The fix for bug 586330 caused some unexpected behaviour changes, that
this testcase ought to illustrate.
2009-07-01 19:02:45 -04:00
Alexander Larsson
10bf7ca744
Clean up embedding api
...
we now use gdk_offscreen_window_set_embedder() instead of a signal
to get the parent. This also replaces set_has_offscreen_changes.
Rename "parent" in all embedding related names to "embedder" to make it
more obviously different than the normal parent.
Rename gdk_window_get_offscreen_pixmap to gdk_offscreen_window_get_pixmap
to match the other offscreen calls.
Rename gdk_window_offscreen_children_changed to gdk_window_geometry_changed
as this is more descriptive.
2009-07-01 14:36:36 +02:00
Alexander Larsson
5341efd4d4
Make win32 backend build and minimally work
2009-07-01 10:28:06 +02:00
Alexander Larsson
7303f3c9fd
Merge branch 'master' into client-side-windows
...
This updates client-side-windows to the the latest soname
change for easier testing.
Conflicts:
gdk/x11/gdkwindow-x11.c
tests/Makefile.am
2009-06-17 12:56:05 +02:00
Benjamin Otte
1a385c50f0
fix compile warnings
...
Fallout from running make CFLAGS="-Werror"; mostly missing casts and
constness issues.
2009-06-17 10:28:03 +02:00
Davyd Madeley
0532056349
Merge branch 'button-box-orientable-584598'
2009-06-15 09:48:14 +08:00
Davyd Madeley
1fe7308dd1
Testcase for GtkOrientable
2009-06-15 09:14:00 +08:00
Federico Mena Quintero
bb362f754a
Add an --initial-folder option to testfilechooser.c
...
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-06-12 14:09:47 -05:00
Federico Mena Quintero
c98ebe3165
Add an --initial-filename option to testfilechooser.c
...
We can use this to test bugs that happen when setting a filename before the
file chooser is shown, as in bgo#161670
Signed-off-by: Federico Mena Quintero <federico@novell.com>
2009-06-12 14:02:37 -05:00