]>
Pileus Git - ~andy/gtk/log
Alexander Larsson [Fri, 22 Jan 2010 08:34:57 +0000 (09:34 +0100)]
Avoid integer overflow in gdk_rectangle_intersect
If e.g. the right edge of the leftmost rectangle is near MIN_INT, and
the left edge of the rightmost rectangle is large then subtracting these
can lead to an integer overflow, making the resultant "width" falsely
positive, thus returning a very wide result instead of the expected
no-intersection result.
We avoid the overflow by not doing the subtraction unless we know the
result will be positive. There are still risks for overflow if x + width
or y + width is larger than MAXINT, but we won't ever overflow for valid
rects now.
This may fix #607687
Matthias Clasen [Tue, 19 Jan 2010 18:00:47 +0000 (13:00 -0500)]
Add a way to set wm_class on statusicons
Since the shell uses wm_class for sorting statusicons.
Alexander Larsson [Wed, 20 Jan 2010 14:37:16 +0000 (15:37 +0100)]
When native window requests button presses request other button related events
We need to do this because otherwise the implicit button grab for this
(native) window will not deliver the button events not selected for
by this window. This is a problem because non-native child windows may
select using a wider event mask, and we can't emulate these events if we
don't get the native events.
Fixes bug #607508
Javier Jardón [Tue, 19 Jan 2010 15:57:13 +0000 (16:57 +0100)]
Fix some compilation warnings
The warnings was introduced with the changes in commit
a491091e292cad33c7c040b6deb05acb43aaec5f
Alexander Larsson [Tue, 19 Jan 2010 15:37:42 +0000 (16:37 +0100)]
Drop outstanding cairo surfaces when window is made native
Any old cairo_surface referencing the old impl window will be wrong
when we make a window native, so drop it.
This fixes bug #599511
Alexander Larsson [Tue, 19 Jan 2010 15:36:49 +0000 (16:36 +0100)]
Move common gdkwindow.c code into function gdk_window_drop_cairo_surface
This code is duplicated in several places, and more to come, so put
it all in one place.
Russell Kyaw [Tue, 19 Jan 2010 14:35:41 +0000 (16:35 +0200)]
Added Burmese translation for gtk+ properties
Russell Kyaw [Tue, 19 Jan 2010 14:35:04 +0000 (16:35 +0200)]
Added Burmese translation
Simos Xenitellis [Tue, 19 Jan 2010 14:34:50 +0000 (16:34 +0200)]
Added Burmese (my) to po/LINGUAS
Alexander Larsson [Tue, 19 Jan 2010 13:44:52 +0000 (14:44 +0100)]
Track direct window cairo access and avoid tricks when used
When a cairo surface is requested for direct window access (i.e. not
when double-buffering) we can't really track when the actual drawing happens
as cairo drawing is not virtualized. This means we can't properly flush
any outstanding window moves or implicit paints.
This actually causes problems with e.g. abiword (bug #606009) where they
draw without double-buffering. If you press down it scrolls the window
and then draws the caret, but the caret drawing does not flush the
outstanding move from the scroll, so the caret gets drawn on the wrong
screen.
We fix this by never allowing either implicit paints or outstanding window
moves on impl-windows where any windows related to it has an outstanding
direct cairo surface. Luckily this is not very common so in practice this
doesn't matter much.
Kjartan Maraas [Tue, 19 Jan 2010 10:21:18 +0000 (11:21 +0100)]
Updated Norwegian bokmål translation
Kjartan Maraas [Tue, 19 Jan 2010 10:19:55 +0000 (11:19 +0100)]
Updated Norwegian bokmål translation
Kjartan Maraas [Wed, 13 Jan 2010 17:38:57 +0000 (18:38 +0100)]
Updated Norwegian bokmål translation
Murray Cumming [Tue, 19 Jan 2010 08:04:15 +0000 (09:04 +0100)]
GtkToolPalette: Fix a compiler warning introduced in my last commit.
Javier Jardón [Mon, 18 Jan 2010 16:12:42 +0000 (17:12 +0100)]
Add gtk_widget_has_rc_style() accessor
Add gtk_widget_has_rc_style() as accessor for sealed
GTK_WIDGET_RC_STYLE widget flag.
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Matthias Clasen [Mon, 18 Jan 2010 19:04:49 +0000 (14:04 -0500)]
Fix a redraw problem with action widgets
Fixes bug 603245.
Kristian Rietveld [Mon, 18 Jan 2010 21:18:25 +0000 (22:18 +0100)]
Bug 607322 - Double-click doesn't work if the item is selected in...
Slight correction to fix for #596473.
Murray Cumming [Mon, 18 Jan 2010 08:37:14 +0000 (09:37 +0100)]
GtkToolPalette: Change gtk_tool_palette_get_drop_group() return.
* gtk/gtktoolpalette.[h|cc]: gtk_tool_palette_get_drop_group():
Change the return type from GtkWidget* to GtkToolItemGroup*,
for consistency with other parts of GTK+, such as GtkToolbar.
Matthias Clasen [Mon, 18 Jan 2010 06:20:50 +0000 (01:20 -0500)]
Fix some issues with action widgets
We need to hide/show them depending on show_tabs, and we should
not grow the notebooks requisition unless we have to. Reported
in bug 601412.
Matthias Clasen [Mon, 18 Jan 2010 04:47:20 +0000 (23:47 -0500)]
Fix declaration of gtk_print_job_set_status
The problem was reported in bug 606698.
Matthias Clasen [Mon, 18 Jan 2010 04:33:19 +0000 (23:33 -0500)]
Reset effective_attrs when necessary
This fixes both bug 607217 and bug 607269.
Matthias Clasen [Mon, 18 Jan 2010 03:47:14 +0000 (22:47 -0500)]
Fix a few C99isms
Reported in bug 606761.
Daniel Nylander [Sat, 16 Jan 2010 12:47:42 +0000 (13:47 +0100)]
Updated Swedish translation
Matej Urbančič [Fri, 15 Jan 2010 18:39:32 +0000 (19:39 +0100)]
Updated Slovenian translation
Alexander Larsson [Fri, 15 Jan 2010 15:06:12 +0000 (16:06 +0100)]
Avoid drawing implicit paints to destroyed windows
It may happen that a window gets destroyed during painting, if so
we should not draw the implicit paint double-buffered pixmap to it
as that will cause a BadDrawable X error.
This fixes bug 600865
Xandru Armesto Fernandez [Fri, 15 Jan 2010 12:26:37 +0000 (13:26 +0100)]
Updated asturian translation
Xandru Armesto Fernandez [Fri, 15 Jan 2010 12:21:50 +0000 (13:21 +0100)]
Updated asturian translations
Xandru Armesto Fernandez [Fri, 15 Jan 2010 12:21:40 +0000 (13:21 +0100)]
Updated asturian translations
Murray Cumming [Thu, 14 Jan 2010 09:26:49 +0000 (10:26 +0100)]
GtkToolPalette: Use GtkToolItemGroup* instead of GtkWidget* for setter parameters.
See Bug #567729
Michael Natterer [Wed, 13 Jan 2010 21:23:03 +0000 (22:23 +0100)]
Some fixes in gtkoffscreenwindow.h
- use (void) not () for void functions
- disallow individual inclusion unconditionally
Inaki Larranaga Murgoitio [Wed, 13 Jan 2010 16:36:18 +0000 (17:36 +0100)]
Updated Basque language
Inaki Larranaga Murgoitio [Wed, 13 Jan 2010 15:32:02 +0000 (16:32 +0100)]
Updated Basque language
Javier Jardón [Tue, 12 Jan 2010 20:00:30 +0000 (21:00 +0100)]
[docs] Use the correct GTK-doc syntax to refer to GTK+ properties
Jorge González [Tue, 12 Jan 2010 19:22:44 +0000 (20:22 +0100)]
Updated Spanish translation
Javier Jardón [Tue, 12 Jan 2010 19:17:38 +0000 (20:17 +0100)]
[docs] Use the correct GTK-doc syntax to refer to GTK+ property
Javier Jardón [Tue, 12 Jan 2010 15:57:00 +0000 (16:57 +0100)]
[docs] Remove GTK+ 1.2 tutorial from master
The tutorial it's still inside the gtk-1-2 branch if It's needed
Khaled Hosny [Tue, 12 Jan 2010 16:42:26 +0000 (18:42 +0200)]
Updated Arabic translation
Javier Jardón [Fri, 18 Dec 2009 02:42:41 +0000 (03:42 +0100)]
[docs] Fix documentation build warnings
Fix issues when using GI annotations so the xslt does a
fallback if the local links do not exist.
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=604876
Matthias Clasen [Tue, 12 Jan 2010 06:10:13 +0000 (01:10 -0500)]
Correct PRC6 and PRC9 envelope sizes
See bug 603144 for the full story.
Matthias Clasen [Mon, 11 Jan 2010 18:58:16 +0000 (13:58 -0500)]
Bump version
Matthias Clasen [Mon, 11 Jan 2010 18:57:21 +0000 (13:57 -0500)]
2.19.3
Matthias Clasen [Mon, 11 Jan 2010 17:58:34 +0000 (12:58 -0500)]
Dco updates
Matthias Clasen [Mon, 11 Jan 2010 17:21:10 +0000 (12:21 -0500)]
Updates
Christian Persch [Mon, 4 Jan 2010 11:32:54 +0000 (12:32 +0100)]
Implement property editor for GdkColor properties
Bug #606434.
Christian Dywan [Mon, 11 Jan 2010 16:37:13 +0000 (17:37 +0100)]
Limit GtkContainer::border-width to 65535
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=605199
Matthias Clasen [Mon, 11 Jan 2010 15:23:57 +0000 (10:23 -0500)]
Plug a pixmap leak
We were getting our refcounts tangled up when setting drawable clips on
GCs with CSW, leading to a pretty bad pixmap leak. See bug 606143.
Christian Dywan [Mon, 11 Jan 2010 09:59:26 +0000 (10:59 +0100)]
Implement "preedit-changed" in GtkEntry and GtkTextView
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=602284
Christian Dywan [Mon, 11 Jan 2010 09:35:06 +0000 (10:35 +0100)]
Use const gchar* in gtk_window_get_icon_name implementation
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=597100
Christian Dywan [Mon, 11 Jan 2010 09:30:48 +0000 (10:30 +0100)]
Document GtkWidget::state-changed signal properly
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=598383
Javier Jardón [Mon, 11 Jan 2010 05:25:59 +0000 (06:25 +0100)]
[docs] Add missing "Deprecated: 2.x" to the api doc comments
Daniel Nylander [Sat, 9 Jan 2010 15:59:32 +0000 (16:59 +0100)]
Updated Swedish translation
Daniel Nylander [Sat, 9 Jan 2010 15:54:54 +0000 (16:54 +0100)]
Updated Swedish translation
Christian Persch [Wed, 6 Jan 2010 17:46:37 +0000 (18:46 +0100)]
Allow NULL iter in gtk_combo_box_set_active_iter to unset
Bug #606230.
Matthias Clasen [Fri, 8 Jan 2010 18:22:19 +0000 (13:22 -0500)]
Try a little harder to survive close to OOM
Matthias Clasen [Fri, 8 Jan 2010 18:20:28 +0000 (13:20 -0500)]
Avoid an FPE for ludicrous scale values
...just bail out early.
Javier Jardón [Fri, 8 Jan 2010 16:42:34 +0000 (17:42 +0100)]
Use g_strcmp0() instead custom safe_strcmp()
Reported by Rafal Luzynski in
https://bugzilla.gnome.org/show_bug.cgi?id=606415
Xandru Armesto Fernandez [Fri, 8 Jan 2010 16:55:32 +0000 (17:55 +0100)]
Updated asturian language
Javier Jardón [Thu, 7 Jan 2010 07:33:08 +0000 (08:33 +0100)]
Fix links in GtkComboBox migration guide
Some link to GTK+ classes are not gererated because the ":" near
the class name; solution: "#GtkComboBox<!---->:"
Also, added some links to the proper signals
Fixes https://bugzilla.gnome.org/show_bug.cgi?id=606291
Jean Brefort [Thu, 7 Jan 2010 15:40:49 +0000 (16:40 +0100)]
fix critical in gtk_editable_insert_text
Javier Jardón [Mon, 4 Jan 2010 03:56:11 +0000 (04:56 +0100)]
Deprecate widget flag: GTK_WIDGET_CAN_FOCUS
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Javier Jardón [Mon, 4 Jan 2010 02:07:11 +0000 (03:07 +0100)]
Deprecate some widget flags
Deprecate the following:
GTK_WIDGET_APP_PAINTABLE
GTK_WIDGET_CAN_DEFAULT
GTK_WIDGET_DOUBLE_BUFFERED
GTK_WIDGET_HAS_DEFAULT
GTK_WIDGET_HAS_GRAB
GTK_WIDGET_RECEIVES_DEFAULT
https://bugzilla.gnome.org/show_bug.cgi?id=69872
Shankar Prasad [Thu, 7 Jan 2010 08:10:17 +0000 (13:40 +0530)]
Made couple of translation changes in kn.po
Matthias Clasen [Thu, 7 Jan 2010 03:44:16 +0000 (22:44 -0500)]
Setup libjpeg error handlers early enough
See bug 606068 for details.
Jorge González [Wed, 6 Jan 2010 13:33:14 +0000 (14:33 +0100)]
Updated Spanish translation
Timo Jyrinki [Wed, 6 Jan 2010 09:41:07 +0000 (11:41 +0200)]
One-line fix to a noticiable translation bug.
Matej Urbančič [Tue, 5 Jan 2010 16:00:15 +0000 (17:00 +0100)]
Updated Slovenian translation
Maxim V. Dziumanenko [Tue, 5 Jan 2010 15:02:41 +0000 (17:02 +0200)]
Update Ukrainian translation
Kjartan Maraas [Tue, 5 Jan 2010 12:48:13 +0000 (13:48 +0100)]
Updated Norwegian bokmål translation.
Inaki Larranaga Murgoitio [Tue, 5 Jan 2010 11:54:33 +0000 (12:54 +0100)]
Updated Basque language
Javier Jardón [Mon, 4 Jan 2010 10:47:40 +0000 (11:47 +0100)]
Fix compilation warning: use const *gchar variable
https://bugzilla.gnome.org/show_bug.cgi?id=605090
Javier Jardón [Mon, 21 Dec 2009 03:01:03 +0000 (04:01 +0100)]
Fix compilation warning: use the correct conversion specifier
Use G_GSIZE_FORMAT instead of %i
The warning was added in
commit
ba651d4022ed4dceb6ad7394adcb0ff6c8006581
Christian Dywan [Mon, 4 Jan 2010 07:41:07 +0000 (08:41 +0100)]
Don't use GTK_WIDGET_NO_WINDOW in GtkEventBox
Christian Dywan [Mon, 4 Jan 2010 07:39:24 +0000 (08:39 +0100)]
No GTK_WIDGET_NO_WINDOW in GtkFixed and deprecate gtk_fixed_set_has_window
Christian Dywan [Mon, 4 Jan 2010 07:26:50 +0000 (08:26 +0100)]
Don't use GTK_WIDGET_NO_WINDOW in GtkContainer
Christian Dywan [Mon, 4 Jan 2010 06:49:26 +0000 (07:49 +0100)]
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
Christian Dywan [Mon, 4 Jan 2010 06:30:57 +0000 (07:30 +0100)]
Fix missing GTK_WIDGET cast on printer option widget in construct_widgets
Christian Dywan [Mon, 4 Jan 2010 06:29:42 +0000 (07:29 +0100)]
Fix missing GTK_WINDOW cast in _gtk_menu_shell_update_mnemonics
Benjamin Otte [Sun, 3 Jan 2010 22:11:05 +0000 (23:11 +0100)]
Document missing signal parameter
Javier Jardón [Sun, 20 Dec 2009 20:39:42 +0000 (21:39 +0100)]
[docs] Add documentation for GdkWindow 'cursor' property
Reported by Rafal Luzynski here:
https://bugzilla.gnome.org/show_bug.cgi?id=604821
Theppitak Karoonboonyanan [Sun, 3 Jan 2010 15:24:02 +0000 (22:24 +0700)]
Updated Thai translation.
Hiroyuki Ikezoe [Sun, 3 Jan 2010 09:22:55 +0000 (18:22 +0900)]
Use CAIRO_VERSION instead of CAIRO_VERSION_CODE
Cairo does not have CAIRO_VERSION_CODE macro.
Fix for bug #605472.
Matthias Clasen [Sun, 3 Jan 2010 05:57:14 +0000 (00:57 -0500)]
Make mnemonic hiding work in all cases
Both gtk-enable-mnemonics and gtk-auto-mnemonis did not work with
gtk_label_set_markup_with_mnemonic(). Also, fix gtk_label_set_pattern().
Matthias Clasen [Sun, 3 Jan 2010 03:20:51 +0000 (22:20 -0500)]
Update dependency information
Matthias Clasen [Sun, 3 Jan 2010 01:11:50 +0000 (20:11 -0500)]
Don't use string concatentation in translated strings
gettext can't handle it, and there is no real need to use G_GSIZE_FORMAT
here anyway.
Matej Urbančič [Sat, 2 Jan 2010 08:59:16 +0000 (09:59 +0100)]
Updated Slovenian translation
Matej Urbančič [Sat, 2 Jan 2010 08:59:04 +0000 (09:59 +0100)]
Updated Slovenian translation
Kristian Rietveld [Fri, 1 Jan 2010 19:54:27 +0000 (20:54 +0100)]
Plug leaks in quartz implementation of gtk_drag_begin_idle()
Kristian Rietveld [Fri, 1 Jan 2010 19:39:57 +0000 (20:39 +0100)]
Rework a previous commit to not crash in addition to fixing leaks
The target list/entry to pasteboard entry conversions return a NSSet
now instead of NSArray.
Murray Cumming [Thu, 31 Dec 2009 12:55:51 +0000 (13:55 +0100)]
GtkToolPalette: docs: Minor English corrections.
Johan Dahlin [Thu, 31 Dec 2009 00:48:50 +0000 (01:48 +0100)]
Make sure Gdk-2.0.gir is installed
Fixes a variable name typo
Johan Dahlin [Thu, 31 Dec 2009 00:47:24 +0000 (01:47 +0100)]
Avoid warnings when introspetion is not available
-include is the same as include but will never warn if the
file is not available
Johan Dahlin [Thu, 31 Dec 2009 00:19:13 +0000 (01:19 +0100)]
Fix build with system install of introspection
Or redo it properly and remove previous hack by Matthias.
Kristian Rietveld [Wed, 30 Dec 2009 13:21:31 +0000 (14:21 +0100)]
Fix compiler warning
Kristian Rietveld [Wed, 30 Dec 2009 13:18:33 +0000 (14:18 +0100)]
Fix memory management of types array
Also add autorelease pool to gtk_drag_begin_idle().
Kristian Rietveld [Wed, 30 Dec 2009 13:16:55 +0000 (14:16 +0100)]
Do not leak the NSMutableSet
Kristian Rietveld [Wed, 30 Dec 2009 13:14:21 +0000 (14:14 +0100)]
Release view after setting it as contentView
Fixes GdkQuartzView being leaked.
Kristian Rietveld [Wed, 30 Dec 2009 13:12:42 +0000 (14:12 +0100)]
Fix memleak in get_nsscreen_for_point()
One codepath did not go through GDK_QUARTZ_RELEASE_POOL, refactored
the code to fix this.
Kristian Rietveld [Wed, 30 Dec 2009 13:11:14 +0000 (14:11 +0100)]
Fix memory leak in GdkQuartzView
Should remove the tracking rect in dealloc.
Kristian Rietveld [Mon, 28 Dec 2009 22:01:42 +0000 (23:01 +0100)]
Use CGFLOAT_DEFINED, don't rely on NSINTEGER_DEFINED for this
Kristian Rietveld [Mon, 28 Dec 2009 20:34:17 +0000 (21:34 +0100)]
Unset expander_column when expander column is removed from tree view