]>
Pileus Git - ~andy/gtk/log
Matthias Clasen [Sat, 30 Apr 2011 03:40:47 +0000 (23:40 -0400)]
Add a lock button widget
This is a special-purpose button that can be used together with
GPermission objects to control the sensitivity of system settings.
Suitable permission objects can e.g. be obtained from PolicyKit.
http://bugzilla.gnome.org/show_bug.cgi?id=626457
Matthias Clasen [Fri, 6 May 2011 20:31:36 +0000 (16:31 -0400)]
Remove outdated comments
Neither GdkColors nor GdkRGBAs are ever 'allocated' nowadays.
Tristan Van Berkom [Mon, 14 Feb 2011 07:47:57 +0000 (16:47 +0900)]
Adding more traditional checkered background to testtextview.
Tristan Van Berkom [Mon, 14 Feb 2011 07:18:35 +0000 (16:18 +0900)]
Added Since 3.2 annotations for new GdkRGBA properties.
Tristan Van Berkom [Mon, 14 Feb 2011 06:27:42 +0000 (15:27 +0900)]
Added internal GdkRGBA support for GtkTextTag::paragraph-background-rgba
Added the remaining implementation bits for rendering paragraph backgrounds
with rgba values and updated the test case.
Tristan Van Berkom [Mon, 14 Feb 2011 05:27:28 +0000 (14:27 +0900)]
Fixed GtkTextTag to sync the GdkColors with the new GdkRGBA values for backwards compatability.
Tristan Van Berkom [Mon, 14 Feb 2011 05:22:27 +0000 (14:22 +0900)]
Handled error_color with GdkRGBA in gtktextdisplay.c.
Tristan Van Berkom [Mon, 14 Feb 2011 05:00:15 +0000 (14:00 +0900)]
Fixed textview rendering regression.
Background color was not painted on the whole tagged segment after
line breaking, this was due to the default ->prepare_run() function
wiping the internal PangoColors clean... fixed this by unconditionally
setting local rgba colors from prepare_run instead of comparing them
and bailing out.
Tristan Van Berkom [Wed, 9 Feb 2011 14:41:39 +0000 (23:41 +0900)]
Added GdkRGBA properties to GtkTextTag.
This now allows text view to render text with alpha values in
the text foreground and backgrounds, the work is almost complete,
currently the error-underline-color is still a GdkColor style property
and since we use only GdkRGBA for rendering it needs to be converted
and applied, probably a new rgba version of the style property should
also be introduced.
This commit adds tests/testtextview that must be run from the tests/
directory to show translucent text in action.
Cosimo Cecchi [Fri, 6 May 2011 20:08:09 +0000 (16:08 -0400)]
testassistant: don't use deprecated functions
Cosimo Cecchi [Fri, 6 May 2011 18:53:09 +0000 (14:53 -0400)]
progressbar: fetch the padding without the trough style class
This is consistent with the rest of the widget, which uses only one
padding value.
https://bugzilla.gnome.org/show_bug.cgi?id=649593
Cosimo Cecchi [Fri, 6 May 2011 18:33:00 +0000 (14:33 -0400)]
cellrendererprogress: don't force drawing inside the border
The progressbar is composed by two different rendered areas: the trough
(i.e. the non-filled part of the bar) and the bar itself.
The bar should be able to fill the whole height/width of the trough
without resorting to nasty hacks in the theme, and we can control the
amount of space between the bar and the trough with the padding already.
https://bugzilla.gnome.org/show_bug.cgi?id=649593
Matthias Clasen [Fri, 6 May 2011 18:55:58 +0000 (14:55 -0400)]
gtk3-demo: assistant demo simplications
Since header and sidebar images are no longer used, don't set them.
Matthias Clasen [Sun, 17 Apr 2011 00:45:26 +0000 (20:45 -0400)]
GtkAssistant: an new style for assistants
GtkAssistant is widely recognized as a butt-ugly widget.
This commit changes its style to look more modern. We
deprecate the sidebar and header image properties and
don't show them anymore. Instead, page titles are arranged
in a sidebar, with the title of the current page shown
in highlighted style.
Matthias Clasen [Sun, 17 Apr 2011 03:01:30 +0000 (23:01 -0400)]
testassistant: some more tests
Matthias Clasen [Tue, 26 Apr 2011 16:26:51 +0000 (12:26 -0400)]
Silently allow child properties on grandchildren
This commit simply removes some child->parent == container checks,
to add some flexibility for containers with 'inner structure'.
If these checks are considered useful, we can bring them back
with a is_child vfunc that allows container implementations to
decided who they consider legitimate child.
Matthias Clasen [Sat, 16 Apr 2011 17:57:05 +0000 (13:57 -0400)]
Add gtk_container_child_notify
This is a variant of gtk_widget_child_notify() that takes an
explicit container, instead of relying on widget->parent to
be the correct container to use.
Matthias Clasen [Sat, 16 Apr 2011 17:42:24 +0000 (13:42 -0400)]
gtk-demo: Don't leave a dangling pointer to a destroyed widget
When destroying the assistant, clean up the static variable
that points to it.
Matthias Clasen [Fri, 6 May 2011 18:04:50 +0000 (14:04 -0400)]
Some additional auto-mnemonic fixes
Previously, we would also show mnemonics if the user hits
Ctrl+Alt, even though Ctrl+Alt+<x> does not actually trigger.
Rui Matos [Wed, 13 Apr 2011 10:26:55 +0000 (11:26 +0100)]
GtkWindow: set mnemonics visible on focus in if modifier is pressed
With gtk-auto-mnemonics on, we hide mnemonics on focus out. We should also
check if the modifier is pressed on focus in and if so, show mnemonics again.
https://bugzilla.gnome.org/show_bug.cgi?id=618815
Javier Jardón [Fri, 6 May 2011 17:54:22 +0000 (18:54 +0100)]
configure.ac: Indeed the minimum required version is 2.29.4, not 2.29.2
Javier Jardón [Fri, 6 May 2011 17:51:04 +0000 (18:51 +0100)]
configure.ac: Bump glib minimum required version to 2.29.2
As we are using the new g_test_fail() in the gtk-reftest
Benjamin Otte [Fri, 6 May 2011 17:35:40 +0000 (19:35 +0200)]
Revert "arrow: Make minimum size 5px"
This reverts commit
1c46e04f30e8b496ac0cc3ad830b4824e54c1e94 .
The change broke too many widgets that relied on the size being
constant. A proper fix would require letting themes override the size.
That would probably also require letting themes specify the size
relative to font size.
Matthias Clasen [Fri, 6 May 2011 02:21:59 +0000 (22:21 -0400)]
Add an alignment property test
This test compares GtkAlignment properties and GtkWidget margin and
alignment properties.
Matthias Clasen [Fri, 6 May 2011 01:47:14 +0000 (21:47 -0400)]
Expand GtkMisc tests to cover arrows and images
This unveils something fishy with arrows.
Matthias Clasen [Thu, 5 May 2011 21:53:12 +0000 (17:53 -0400)]
Add a misc-alignment reftest
This test compares GtkMisc properties and GtkWidget margin and
alignment properties.
Matthias Clasen [Thu, 5 May 2011 20:15:59 +0000 (16:15 -0400)]
More box<>grid comparison tests
Add a more complicated case with multiple expanding children.
Also, make the window a popup.
Colin Walters [Thu, 5 May 2011 14:13:13 +0000 (10:13 -0400)]
gtkicontheme: More explicitly note ownership transfers of duplicated string
I was hunting a memory leak and couldn't find it; at least I'm
pretty sure all of these are OK. But document things better
for the future.
Also use g_hash_table_replace in one more case for consistency.
https://bugzilla.gnome.org/show_bug.cgi?id=649457
Benjamin Otte [Thu, 5 May 2011 17:34:31 +0000 (19:34 +0200)]
reftests: Add missing css file for grid-expand test
Benjamin Otte [Thu, 5 May 2011 15:32:22 +0000 (17:32 +0200)]
reftests: Add testcase for label justify fix
Benjamin Otte [Thu, 5 May 2011 15:30:58 +0000 (17:30 +0200)]
label: Compute label offset properly for wrapped justified labels
label offsets were computed wrong for wrapped or ellipsized labels that
were right- or center-justified and had excess space available.
Benjamin Otte [Thu, 5 May 2011 03:16:38 +0000 (05:16 +0200)]
reftests: Fix filename in makefile
Benjamin Otte [Thu, 5 May 2011 03:16:09 +0000 (05:16 +0200)]
reftests: Add a test that ensures toplevels and popups render identical
Benjamin Otte [Thu, 5 May 2011 03:13:34 +0000 (05:13 +0200)]
reftests: Ensure we got a draw event before quitting the main loop
Benjamin Otte [Thu, 5 May 2011 02:29:56 +0000 (04:29 +0200)]
reftests: Add a hack to make toplevels work in various WMs
If we have a toplevel, and not a popup window, do wait an additional
0.5s to give the WM/server enough time to actually create the window.
This is a hack and there should be a better solution. But it works.
Please use POPUP windows for tests unless the test must use toplevel
windows.
Benjamin Otte [Thu, 5 May 2011 02:27:38 +0000 (04:27 +0200)]
reftests: Plug a leak
Benjamin Otte [Wed, 4 May 2011 23:09:45 +0000 (01:09 +0200)]
reftests: Add test for box expand handling
Benjamin Otte [Wed, 4 May 2011 18:12:44 +0000 (20:12 +0200)]
reftests: Add a test for grid expand flags
Javier Jardón [Mon, 2 May 2011 15:13:50 +0000 (16:13 +0100)]
gtk/gtktrayicon-x11.c: Use GdkRGBA instead GdkColor
Matthias Clasen [Thu, 5 May 2011 11:46:03 +0000 (07:46 -0400)]
GtkButtonBox: add a non-homogeneous child property
This makes it easier to add things like lock buttons in
dialogs. Part of #626457.
Matthias Clasen [Thu, 5 May 2011 11:26:55 +0000 (07:26 -0400)]
Fix box-packing test
Matthias Clasen [Thu, 5 May 2011 02:58:32 +0000 (22:58 -0400)]
Expand box-packing reftest
Compare vexpand behavior, too.
Matthias Clasen [Thu, 5 May 2011 00:38:38 +0000 (20:38 -0400)]
Add a box-packing reftest
This test compares GtkHBox expand handling with GtkGrid+GtkWidget::hexpand,
to ensure that replacing GtkHBox by GtkGrid works as intended.
Daniel Mustieles [Wed, 4 May 2011 20:46:27 +0000 (22:46 +0200)]
Updated Spanish translation
Javier Jardón [Mon, 2 May 2011 16:42:18 +0000 (17:42 +0100)]
gdk/x11/gdkcursor-x11.c: Use GdkRGBA instead GdkColor
Kristian Rietveld [Wed, 4 May 2011 05:31:39 +0000 (07:31 +0200)]
GdkWindow: remove unused variable
Matthias Clasen [Tue, 3 May 2011 23:35:48 +0000 (19:35 -0400)]
Convert the commit message into a README
Not everybody thinks git grep is a great doc reader...
Carlos Garnacho [Tue, 3 May 2011 22:01:10 +0000 (00:01 +0200)]
GdkWindow: Fix gdk_window_set_[device_]cursor() issues with root/foreign windows
It could be the case that gdk_window_set_cursor() is called on
pointers not yet known to the device tracking code in GdkDisplay,
so update the cursor on all master pointers.
The code actually updating the cursor for the given window has
been refactored out to gdk_window_set_cursor_internal(), used
in gdk_window_set_device_cursor() as well, which makes it handle
root/foreign windows too.
https://bugzilla.gnome.org/show_bug.cgi?id=649313
Colin Walters [Tue, 3 May 2011 16:33:31 +0000 (12:33 -0400)]
gtkdnd: Add API that takes GIcon
This will be useful for me to port gnome-panel to gnome-menus 4, which
uses GAppInfo, which in turn returns icon references as GIcon.
https://bugzilla.gnome.org/show_bug.cgi?id=649295
Colin Walters [Tue, 3 May 2011 15:04:56 +0000 (11:04 -0400)]
gtkimageprivate: Drop unused theme_change_id
Benjamin Otte [Tue, 3 May 2011 12:03:25 +0000 (14:03 +0200)]
reftests: Add a --output option to the test runner
This argument specifies where to dump images instead of /tmp. It's not
hooked up to the test runner, so that one will continue to dump into
/tmp.
Benjamin Otte [Tue, 3 May 2011 10:05:45 +0000 (12:05 +0200)]
reftests: Add test for low mnemonics
Low mnemonics were invisible previously. This tests the fix from
9bb145a677c3c9fa3266ae6999414f441016d93f
Benjamin Otte [Tue, 3 May 2011 09:18:04 +0000 (11:18 +0200)]
reftests: Test that nonresizable windows get the right size
We want the default size, not the minimum one. This tests the fixes from
4f23dc34be1fd497cce84962798f7578e78a32c9
Benjamin Otte [Fri, 22 Apr 2011 02:56:03 +0000 (04:56 +0200)]
tests: Add a test for small ellipsized labels
Tests the fix from
bf413928611e004ae3b5a9f73ff9c777cb7e8e70
Benjamin Otte [Wed, 20 Apr 2011 15:07:49 +0000 (17:07 +0200)]
reftests: Add grid-homogeneous test
Checks that the homogeneous properties of GtkGrid actually do what
they're supposed to.
Tests fixes from
8331b45a5fcbfb919a3bb02ccb93ac6d66c515b9
Benjamin Otte [Tue, 19 Apr 2011 20:15:24 +0000 (22:15 +0200)]
reftests: Add a test for correct entry text clipping in progress drawing
Tests for fixes in
da1f618b096973704bd0b7db071baa1444ef5c7b
Benjamin Otte [Sun, 17 Apr 2011 17:56:52 +0000 (19:56 +0200)]
reftests: Add label-sizing test
Checks that the size requests for labels are as they should be for
required and natural size given various combinations of wrap, ellipsize,
width-chars and max-width-chars.
See
http://mail.gnome.org/archives/gtk-devel-list/2011-April/msg00036.html
for the discussion spawning this test.
Benjamin Otte [Tue, 3 May 2011 07:44:45 +0000 (09:44 +0200)]
reftests: Add
Add a new test runner supposed to do a lot of generic tests. Run it like
this:
./gtk-reftest [OPTIONS] TESTFILE [TESTFILES...]
where FILE is a GtkBuilder ui file to run.
For a general test named "test", you want to have the following files:
1) test.ui
2) test.ref.ui
3) test.css (optional)
The test will then check that test.ui and test.ref.ui are rendered
identically with the provided css.
In detail, for every provided TESTFILE the test runner will:
1) Add the css to the default screen
2) Load the test.ui file and the test.ref.ui file
3) Grab the first GtkWindow subclass widget
4) gtk_widget_show() it and take a snapshot image of its contents into
a cairo surface.
5) Compare the two images to be bitwise identical. If they are not, a
diff image will be created hilighting the differences.
6) Save the images as png files to the output directory named:
- test.out.png (rendering of test.ui)
- test.ref.png (rendering of test.ref.ui)
- test.diff.png (optional, differences from step 5)
7) Fail the test if the two images are not bitwise identical
Credit for the idea of reftests goes to Mozilla and in particular David
Baron. For a larger introduction of why reftests are useful, see
http://weblogs.mozillazine.org/roc/archives/2008/12/reftests.html
Benjamin Otte [Sun, 24 Apr 2011 23:48:59 +0000 (01:48 +0200)]
label: Allow using more underline modes
Martin Pitt [Tue, 3 May 2011 07:30:49 +0000 (09:30 +0200)]
GdkWindow: Add missing (allow-none) annotations
Benjamin Otte [Mon, 2 May 2011 18:07:49 +0000 (20:07 +0200)]
accellabel: Remove leftover debug code
The disabling of the check was added in
63a0ab5e73a618e4fe907f69a1bd6a74cb399dc2
Ooops.
Benjamin Otte [Mon, 2 May 2011 16:36:14 +0000 (18:36 +0200)]
cellarea: Fix warning messages to display the right type
The warning displayed the type of the area instead of the cell
renderer's type before.
Javier Jardón [Mon, 2 May 2011 17:19:09 +0000 (18:19 +0100)]
tests/testgtk.c: Fix crash in cursor test
This was introduced in
commit
ac4c12ff60374e77d88f8e65fc9cb3b5603a193e
Benjamin Otte [Mon, 2 May 2011 14:49:03 +0000 (16:49 +0200)]
menuitem: Deprecate gtk_menu_item_set_right_justified()
And the getter, too: gtk_menu_item_get_right_justified() and the
corresponding property. Also make the only caller use the private
structure (as it did before the recent patches).
Benjamin Otte [Mon, 2 May 2011 14:47:06 +0000 (16:47 +0200)]
testgtk: right-justify menuitem by using expand/align flags
gtk_menu_item_set_right_justify() is about to be deprecated and this
thing should work. (Note: should, because I didn't implemented it yet.)
Benjamin Otte [Mon, 2 May 2011 14:46:06 +0000 (16:46 +0200)]
gtk-demo: Don't right-justify menu items
We don't want to demo things that are a bad idea (quoted from the docs).
Javier Jardón [Mon, 2 May 2011 14:42:54 +0000 (15:42 +0100)]
gtkbuilder.c: gtk_builder_value_from_string() also support GdkRGBA values
Javier Jardón [Mon, 2 May 2011 14:38:36 +0000 (15:38 +0100)]
docs: Remove documentation about deprecated and removed GtkText
Arnel Borja [Sun, 1 May 2011 05:13:45 +0000 (08:13 +0300)]
Bypass libtool for linking with libuuid on win32
Fixes a regression introduced in
07d49ee5 .
Libtool by default refuses to link static libraries into shared
libraries. In Windows, libuuid is however a static library and needed
for shared libgtk; as a work around, use "-Wl,-luuid" to pass the option
directly to the linker.
https://bugzilla.gnome.org/show_bug.cgi?id=642214
Javier Jardón [Mon, 2 May 2011 13:59:53 +0000 (14:59 +0100)]
gtkcalendar: Remove unused variable
Javier Jardón [Tue, 26 Apr 2011 15:14:52 +0000 (16:14 +0100)]
docs/reference/gtk/text_widget.sgml: Use GdkRGBA instead GdkColor
Javier Jardón [Tue, 26 Apr 2011 15:04:52 +0000 (16:04 +0100)]
docs/tools/widgets.c: Use GdkRGBA instead GdkColor
Abduxukur Abdurixit [Mon, 2 May 2011 06:44:33 +0000 (08:44 +0200)]
Added UG translation
Abduxukur Abdurixit [Mon, 2 May 2011 06:34:06 +0000 (08:34 +0200)]
Added UG translation
Kristian Rietveld [Sun, 1 May 2011 14:38:56 +0000 (16:38 +0200)]
tooltips: treat scroll events like key/button press instead of motion
This avoids tooltips from staying visible when scrolling using scroll
events. Suggested by Paul Davis.
Matthias Clasen [Sun, 1 May 2011 14:02:58 +0000 (10:02 -0400)]
GtkWidget: avoid an unused variable warning
Benjamin Otte [Sun, 1 May 2011 06:47:58 +0000 (08:47 +0200)]
window: Make non-resizable windows use default size for geometry hints
Previously, we were trying to size them by the default size, but then
setting the minimum size as the geometry hints' minimum and maximum
size.
Benjamin Otte [Sun, 1 May 2011 06:00:50 +0000 (08:00 +0200)]
accellabel: Only daw accelerator after natural size has been reached
Benjamin Otte [Sun, 1 May 2011 05:19:55 +0000 (07:19 +0200)]
window: Remove overeagerness with new size guessing
Don't use the guessed size when we are interested in the minimum size.
So now we can really shrink menubars.
This reverts parts of
08b2ac1d90b4f3dfa76d6a76fa04ca28c6b7ba12
Benjamin Otte [Sun, 1 May 2011 05:06:06 +0000 (07:06 +0200)]
menubar: Rewrite size allocation to take natural sizes into account
Yay for properly ellipsizing menubars!
Benjamin Otte [Sun, 1 May 2011 03:38:47 +0000 (05:38 +0200)]
menubar: Only query ipadding when we actually need it
Benjamin Otte [Sun, 1 May 2011 03:30:42 +0000 (05:30 +0200)]
menubar: Respect ipadding also in y direction
Benjamin Otte [Sun, 1 May 2011 02:18:53 +0000 (04:18 +0200)]
tests: Make testmenubars make all menubar items ellipsized
This reproduces a bug in Nautilus. And it allows to shrink things,
woohoo!
Benjamin Otte [Sun, 1 May 2011 02:15:42 +0000 (04:15 +0200)]
settings: Recompute styles when font name changes
Benjamin Otte [Sat, 30 Apr 2011 04:41:56 +0000 (06:41 +0200)]
menubar: Implement height-for-width / width-for-height
Pretty much just required hooking up the 2 vfuncs, the previous code
reorg did the rest of the work.
Benjamin Otte [Sat, 30 Apr 2011 04:34:58 +0000 (06:34 +0200)]
menubar: Actually query minimum and natural size of children
Previously, we only queried the minimum size and reported that as
natural size, too.
Benjamin Otte [Sat, 30 Apr 2011 04:31:01 +0000 (06:31 +0200)]
menubar: Query only the necessary size from the child
The get_preferred_size() function was compied form elsewhere. We should
really make that a common API.
Benjamin Otte [Sat, 30 Apr 2011 04:24:51 +0000 (06:24 +0200)]
menubar: Only compute the necessary size
There's no need to compute height when we're only interested in width
Benjamin Otte [Sat, 30 Apr 2011 04:16:18 +0000 (06:16 +0200)]
menubar: compute in advance wether to add toggle size
Benjamin Otte [Sat, 30 Apr 2011 03:56:25 +0000 (05:56 +0200)]
menubar: Change function prototype for size request function
This is in preparation for redoing that function to actually care about
natural sizes.
Benjamin Otte [Sat, 30 Apr 2011 03:50:17 +0000 (05:50 +0200)]
menubar: Remove unnecessary return_if_fail() in vfuncs
Benjamin Otte [Sat, 30 Apr 2011 03:49:20 +0000 (05:49 +0200)]
menubar: Remove useless function declaration
Benjamin Otte [Sat, 30 Apr 2011 03:42:00 +0000 (05:42 +0200)]
menubar: Remove unused variable
Benjamin Otte [Sat, 30 Apr 2011 03:31:05 +0000 (05:31 +0200)]
imagemenuitem: No need to query image size by default
Also makes the code look nicer, so woohoo
Benjamin Otte [Sat, 30 Apr 2011 03:10:55 +0000 (05:10 +0200)]
menubar: Compute proper size even when invisible
Fran Diéguez [Sat, 30 Apr 2011 21:52:35 +0000 (23:52 +0200)]
Updated galician translations
Matthias Clasen [Fri, 29 Apr 2011 20:50:17 +0000 (16:50 -0400)]
Fix the build
G_GNUC_FUNCTION is deprecated.
Colin Walters [Fri, 29 Apr 2011 14:32:56 +0000 (10:32 -0400)]
Drop the last remaining translated g_warning/g_error calls
http://mail.gnome.org/archives/desktop-devel-list/2011-March/msg00069.html
https://bugzilla.gnome.org/show_bug.cgi?id=648943
Colin Walters [Fri, 29 Apr 2011 14:24:21 +0000 (10:24 -0400)]
updateiconcache: Don't translate g_warning/g_error
Kalev Lember [Fri, 29 Apr 2011 11:56:01 +0000 (14:56 +0300)]
Disable gtk-update-icon-cache.exe.manifest with --enable-gtk2-dependency
When gtk-update-icon-cache building is suppressed, its manifest file
should also not be installed.
https://bugzilla.gnome.org/show_bug.cgi?id=648938