Commit Graph

34016 Commits

Author SHA1 Message Date
Yuri Myasoedov
16f3b2f5c8 Updated Russian translation 2013-05-12 12:45:51 +04:00
Matthias Clasen
c3852404e6 GtkWindow: default size is only for initial map
Bring back need_default_size. We need it to preserve this
documented behavior:

The default size of a window only affects the first time a window is
shown; if a window is hidden and re-shown, it will remember the size
it had prior to hiding, rather than using the default size.

With this patch, all of the window sizing tests in
gtk/tests/window pass again.
2013-05-11 18:45:27 -04:00
Matthias Clasen
6bf7af2a46 Add more window-size related tests 2013-05-10 13:53:31 -04:00
Matthias Clasen
0c1fd574b0 Remove gtk_widget_size_allocate from gtk_menu_popup_for_device
GtkMenu calls gtk_widget_size_allocate on its GtkWindow during
gtk_menu_popup_for_device if the menu has not been realised. This can cause the
allocation of the GtkWindow and the size of the GdkWindow to become out of sync
because a top level GtkWindow does not attempt to re-size the GdkWindow when
its allocation is set.
https://bugzilla.gnome.org/show_bug.cgi?id=695120
2013-05-09 13:03:42 -04:00
Ryan Lortie
6ff37b070b GtkCheckMenuItem: remove an unused boolean field
always_show_toggle was always set to TRUE in _init() and never changed
from anywhere else.  Remove it and remove the if() statements based on
it.

https://bugzilla.gnome.org/show_bug.cgi?id=699929
2013-05-09 13:03:34 -04:00
Matthias Clasen
5f9c83da83 Fix a typo
Pointed out in bug
https://bugzilla.gnome.org/show_bug.cgi?id=698051
2013-05-09 13:03:28 -04:00
Marek Kasik
7e86d69854 printing: Don't crash when printer-state-message not provided
Check whether "printer-state-message" was returned before its
usage.

https://bugzilla.gnome.org/show_bug.cgi?id=699750
2013-05-09 15:15:21 +02:00
Matthias Clasen
52decc32fe Add window sizing tests
These are copied from master
2013-05-08 10:22:15 -04:00
Matthias Clasen
bb8254877b Make key themes work again
This was inadvertedly broken in commit
44ba5d253f.
Thanks to Matthew Francis for tracking this down and providing
a fix in https://bugzilla.gnome.org/show_bug.cgi?id=699901
2013-05-08 10:22:15 -04:00
Jiro Matsuzawa
1a3ec8e98d l10n: Update Japanese translation 2013-05-08 21:01:13 +09:00
Jiro Matsuzawa
f35fb0c661 l10n: Update Japanese translation
Merge the latest pot.
2013-05-08 20:59:25 +09:00
Hib Eris
4380ce8495 Revert "Don't build gtk-launch when gio-unix is not available"
The gtk-launch tool can be build without gio-unix (although it
will not really do much without an alternative implementation for
g_desktop_app_info).

So there is no need to not build gtk-launch anymore.

This reverts commit 9a1235bf0d.

https://bugzilla.gnome.org/show_bug.cgi?id=682824
2013-05-01 07:44:53 +02:00
Milo Casagrande
5b74700608 [l10n] Updated Italian translation. 2013-04-30 19:22:12 +02:00
Milo Casagrande
c00b2ead83 [l10n] Updated Italian translation. 2013-04-29 23:00:27 +02:00
Žygimantas Beručka
ca01f7c042 Updated Lithuanian translation 2013-04-28 13:24:23 +03:00
Mario Blättermann
cc9928065b Updated German translation 2013-04-27 22:30:55 +02:00
Rafael Ferreira
f7ecc91327 Updated Brazilian Portuguese translation 2013-04-23 05:09:46 -03:00
Rafael Ferreira
0ce7854a3c Updated Brazilian translation for UI and PO-Prop. 2013-04-22 04:58:51 -03:00
Tristan Van Berkom
fc9c5228d3 Revert "gtkbin: Remove the silliest code on earth"
This reverts commit f4438a1ffc.

The calculation of the delta between parent and child widget
is required in order to automate height-for-width and width-for-height
requests for various GtkBin widgets.

GtkButton, GtkCheckButton, GtkRadioButton, etc, all have different
requests for space around the content which can not be satisfied
with a simple calculation of GtkContainer border-width.
2013-04-22 15:20:33 +09:00
P. F. Chimento
87869d1442 doc: Documented icon-shadow CSS property
The docs say that text-shadow applies a drop shadow to both text
and icons, but icons need to use the icon-shadow property.

https://bugzilla.gnome.org/show_bug.cgi?id=698181
2013-04-19 10:32:45 -04:00
Matthias Clasen
f833d84be1 Fix mouse interaction in combo cell renderer
Pass the event on when calling gtk_cell_editable_start_editing.
https://bugzilla.gnome.org/show_bug.cgi?id=504901
2013-04-19 10:32:38 -04:00
Matthias Clasen
0c9946631a 3.8.1 3.8.1 2013-04-15 13:43:16 -04:00
Carlos Garnacho
8e56a80972 xi2: Reset scroll valuators on synthesized crossing events
On crossing events resulting from moving windows (eg. workspace switch),
deviceid equals sourceid, so make those reset scroll valuators on all
slave devices to avoid misleading jumps in scroll events

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=690275
2013-04-15 11:01:43 +02:00
Alban Browaeys
c6a4065c5a print: disconnect source_changed_handler on printeroptionwidget finalize
Printing a web page without window.print (which still segfault),
that is Ctrl+P is fixed (does not attempt to execute the
source_changed_handler on a printeroptionwidget that has been
destroyed) by disconnecting this handler in the printeroptionwidget
finalize.

https://bugzilla.gnome.org/show_bug.cgi?id=696622
2013-04-14 20:20:49 -04:00
Volker Sobek
03b60f94c0 gtk-demo: Fix typo
https://bugzilla.gnome.org/show_bug.cgi?id=675649
2013-04-14 09:04:39 -04:00
Carlos Garcia Campos
9de7b8af49 gtkprintjob: release the surface and backend before the output io channel
If the GtkPrintJob is freed too early when the surface has been created
but the job hasn't been sent to the printer, it's possible that the
file print backend tries to write to the io chaneel when it is already
closed. This produces runtime critical warnings:

GLib-CRITICAL **: g_io_channel_write_chars: assertion `channel->is_writeable' failed

https://bugzilla.gnome.org/show_bug.cgi?id=685420
2013-04-14 12:20:43 +02:00
Carlos Garcia Campos
b81117479b gtkprintbackendfile: Fix infinite loop in _cairo_write()
It can happen if the io channel has been closed. In that case
g_io_channel_write_chars() returns early because of a g_return macro
that checks if the io channel is writable. When returning from g_return
macros, the bytes written output parameter is not updated and the error
is not filled, so the error is not detected and the written variable is
used uninitialized. We should check the return value of
g_io_channel_write_chars() to break the loop.

https://bugzilla.gnome.org/show_bug.cgi?id=685419
2013-04-14 12:20:36 +02:00
ammonkey
fff0358261 fix mem leak in gtk_drag_set_icon_surface, destroy pattern
https://bugzilla.gnome.org/show_bug.cgi?id=681446
2013-04-13 20:07:51 -04:00
Matthias Clasen
e08c1f5849 Precache more atoms
Add a few more entries to the list of precached atoms.
2013-04-13 20:07:42 -04:00
Matthias Clasen
7106f426bb Revert "Use natural size to set adjustment ranges"
This reverts commit 666d10ec76.

This change severely broke any treeviews without horizontal
scrollbars. Basically, ellipsization never kicks in, and instead
the treeview content just extends outside the visible area,
rendering it inaccessible. This broke e.g. the control-center
keyboard shortcuts panel, the gnome-disks device list, etc etc.
2013-04-13 16:26:34 -04:00
Dušan Kazik
86392ca3d6 Updated slovak translation 2013-04-12 21:26:29 +02:00
Nik Kalach
0077c2ac5a [l10n] Update Interlingua translation 2013-04-09 16:51:25 +02:00
Benjamin Otte
6fad3b1b0d window: Remember current size
Don't just look at previously remembered sizes, also look at the current
size.
This is useful for cases where the window was resized by the user or WM
and not by the application itself.

https://bugzilla.gnome.org/show_bug.cgi?id=696882
2013-04-09 12:23:36 +02:00
Benjamin Otte
d9a6214725 window: Split out a function
We don't want to remember sizes in the not resizable case. Also a
function named "guess_default_size" should not look at previous sizes,
it should guess.
2013-04-09 12:23:31 +02:00
Benjamin Otte
b708fc4c14 window: Remove an unused function.
Luckily, we don't need to support an implementation of a minimal WM for
linux-fb anymore (which is what this function was added for).
2013-04-09 12:23:27 +02:00
Benjamin Otte
e64e81bcf4 docs: Fix Since tag for frame clock functions 2013-04-09 12:23:21 +02:00
Benjamin Otte
38b62e4660 window: restore size after hide/show properly
Old code assumed the size was stored in widget.allocation. This is no
longer true as the allocation is cleared upon hide. However, we store
the last configure request, and that one tracks the last size, so we can
just use that number.

Sometimes things are so easy - once you figure them out...

https://bugzilla.gnome.org/show_bug.cgi?id=696882
2013-04-09 12:23:15 +02:00
Benjamin Otte
d0699235bf plug: Don't unregister windows that were never registered
Fixes warnings when trying to unregister the socket window. The socket
window is foreign, so we shouldn't register it in the first place.

https://bugzilla.gnome.org/show_bug.cgi?id=697427
2013-04-09 12:23:08 +02:00
Bruce Cowan
a7dae64d59 Updated British English translation 2013-04-06 17:13:34 +01:00
Aron Xu
8c42e760bf Update Simplified Chinese translation 2013-04-06 22:27:33 +08:00
Wylmer Wang
e3c46cd253 Update Simplified Chinese translation 2013-04-06 22:19:15 +08:00
Gheyret Kenji
bf28168d42 Updated Uyghur translation
Signed-off-by: Gheyret Kenji <gheyret@gmail.com>
2013-04-06 18:21:55 +09:00
Shankar Prasad
78f02cc5b6 Updated kn translations 2013-04-06 00:24:14 +05:30
Shankar Prasad
afadd23d0a Updated kn translations 2013-04-05 21:14:42 +05:30
Shankar Prasad
51a0f35d83 Updated kn translations 2013-04-05 21:14:42 +05:30
Alexander Larsson
e9848b7db4 broadway: Unsure we clear the grab on window hide 2013-04-05 17:06:47 +02:00
Alexander Larsson
ee4c1ded51 broadway: Fix warning
Don't pass NULL source_device in grab/ungrab events
2013-04-05 17:06:47 +02:00
Shankar Prasad
2e6697b588 Updated kn translations 2013-04-05 19:22:07 +05:30
Shankar Prasad
49c9db74b4 Updated kn translations 2013-04-05 17:51:00 +05:30
Balázs Úr
0ba7d68d50 Updated Hungarian translation 2013-04-04 21:53:17 +02:00