Commit Graph

26661 Commits

Author SHA1 Message Date
John Stowers
b846363e24 Add missing gtk_widget_override_* annotations
https://bugzilla.gnome.org/show_bug.cgi?id=649779
2011-05-09 22:47:03 +12:00
Benjamin Otte
9917861cb1 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.
2011-05-05 18:00:58 +02:00
Martin Pitt
49a764f933 GdkWindow: Add missing (allow-none) annotations 2011-05-03 09:32:11 +02:00
Benjamin Otte
d11c6e1beb 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.
2011-05-02 20:10:48 +02:00
Abduxukur Abdurixit
e3717bc749 Added UG translation 2011-05-02 08:38:25 +02:00
Benjamin Otte
c900fd1cd3 settings: Recompute styles when font name changes 2011-05-01 04:20:12 +02:00
Simos Xenitellis
82d517e829 l10n: Updated Greek translation for gtk+ 2011-04-27 23:22:19 +03:00
Giorgos Stephanakis
7835746ac3 l10n: Updated Greek translation for gtk+ 2011-04-27 23:20:51 +03:00
Chun-wei Fan
57a71d179b VS 2010 support updates
Sorry, accidently left ATK-2.0 stuff in this, should have been
ATK-1.0.  doh.

Only use ATK-2.x in the coming GTK+-3.2

Also mend for GDK-Pixbuf 2.0 include path in property file.
2011-04-27 01:00:07 +08:00
Chun-wei Fan
334ff9781e Bug 643270: VS 2010 support (autotools part)
-Added distribution for the VS 2010 project files
-Added rules in the GDK/GTK+ Makefile.am to fill in the template
 project/filter files during "make dist" to ensure the source file
 listing is up-to-date to simplify maintenance.

This was checked with "make dist" on Ubuntu.

Any comments on the use of the VS 2010 Projects are welcome.
2011-04-27 00:17:13 +08:00
Chun-wei Fan
7f6cc796cb Bug 643270: VS 2010 Project Files
These are the VS2010 project files to compile GDK and GTK+
with the Win32 backend, with a README.txt file to briefly
explain the steps to build this.

The main GDK and GTK+ project/filter files are templates
that are expanded during "make dist" so that the source
file listings in them will be up-to-date as far as
possible, simplifying maintenance.

Any comments and suggestions are welcome.
2011-04-27 00:14:01 +08:00
Chun-wei Fan
71f38cb958 VS 2008 support: Update README.txt again
Make the requirements for GDK-Pixbuf a bit more clear...
2011-04-27 00:06:12 +08:00
Benjamin Otte
f85feed113 widget: Add hack to make label mnemonics work again
Mnemonics for characters that go beyond the baseline (q, y, g) were not
being shown, because they are drawn outside of the label's allocated
size.
This patch just disables the clip-to-size for labels, so that the label
can draw outsize of its allocation. In most cases, that works around
this bug.

https://bugzilla.gnome.org/show_bug.cgi?id=648570
2011-04-26 14:11:04 +02:00
Chun-wei Fan
373b8de3ac VS2008 support: Process filechooser gsettings xml
This will copy the xml file and compile it so that the GTK+3 filechooser
can be used on Windows, especially the MSVC-compiled versions.
2011-04-25 15:12:10 +08:00
Michael Natterer
12cf577f66 gdk: add precondition checks to all GdkKeymap functions
so it warns instead of simply crashing. Also fix some whitespace
stuff.
(cherry picked from commit 6c24a25751)
2011-04-22 00:01:44 +02:00
Paolo Borelli
2143c1835e label: Always respect width-chars and max-width-chars
Not just when labels are set to ellipsize or wrap.

https://bugzilla.gnome.org/show_bug.cgi?id=647284
2011-04-20 16:02:52 +02:00
Gintautas Miliauskas
264539728c Updated Lithuanian translation. 2011-04-19 13:58:33 +02:00
David King
61f111fe76 widget: add Since tags for margin accessors 2011-04-18 08:21:59 +02:00
Matthias Clasen
9833fbd77a gtk_menu_shell_activate shall remain private, seriously
What a travesty ! And all because I forgot to include gtkmenuitem.c
in my first commit related to this.
2011-04-17 23:09:39 -04:00
Chun-wei Fan
4eac7f2417 Update gtk/gtkmenuitem.c...
Copy over the implementation of _gtk_menu_shell_activate
so that C4013 warning/error (aka gcc's "implicit
declaration of ...") can be avoided when compiling
with MSVC.

This is in response of the changes for bug 554057 in commit
f5eee56b56.
2011-04-18 02:04:24 +08:00
Chun-wei Fan
5f14831f7d Update build/win32/vs9/README.txt
Make the build instructions and information more
up-to-date and clearer to people

Please let me know if I have missed any details that
are needed.  Thank you!
2011-04-18 00:23:58 +08:00
Benjamin Otte
be6d434f78 window: cast value so gcc shuts up 2011-04-16 22:51:28 +02:00
Benjamin Otte
a07c41dc38 menushell: Include a function in the private header
Don't copy over the implementation. This avoids a copy of the function.
Reverts 0098344f84.
2011-04-16 22:47:40 +02:00
Benjamin Otte
83678a1c59 entry: Use the new get_frame_size() argument in gtk_entry_draw_frame() 2011-04-16 22:46:06 +02:00
Benjamin Otte
44b5fe2a60 entry: Fix gtk_entry_get_icon_at_pos()
The passed in coordinates are widget-relative, not window-relative.
2011-04-16 22:45:54 +02:00
Benjamin Otte
57fd192679 entry: Add the ability to query frame size in two ways
TRUE: relative to widget->window
FALSE: relative to widget

For now, no caller has beeen changed.
2011-04-16 22:45:48 +02:00
Benjamin Otte
0cf31b35eb window: Only draw the resize grip if it is actually visible
This issue can only be seen if someone calls gtk_widget_draw() on the
window as otherwise gtk_cairo_should_draw_window() would return FALSE.
2011-04-16 22:45:34 +02:00
Benjamin Otte
f537ebf024 docs: Fix wrong description for query-tooltip
Coordinates are not relative to widget->window
2011-04-16 22:45:28 +02:00
Matthias Clasen
89fbd574ce Bump version 2011-04-15 11:48:22 -04:00
Matthias Clasen
dafdcefd17 bump version 3.0.9 2011-04-15 09:32:08 -04:00
Paolo Borelli
8eabbe2220 Free MenuPopulateData struct in all the cases.
For clarity factor out create/free functions.

https://bugzilla.gnome.org/show_bug.cgi?id=646876
2011-04-15 11:17:13 +02:00
Matthias Clasen
6fdfc879c8 Don't leak a list when activating keybindings
Patch by Rui Matos,
https://bugzilla.gnome.org/show_bug.cgi?id=647790
2011-04-14 20:23:11 -04:00
Matthias Clasen
e604efd8d3 Updates 2011-04-14 10:15:46 -04:00
Matthias Clasen
f5eee56b56 GtkMenuShell: always 'activate' menu shells
Failing to do so can leave us with a stuck grab in some cases.
https://bugzilla.gnome.org/show_bug.cgi?id=554057
2011-04-14 09:01:08 -04:00
Matthias Clasen
8990ad6a20 GtkTimeline: don't look when animations are disabled
Otherwise, we end up doing maximal work with minimal effect, and
bring the X server to 100% CPU. Note that this makes spinner widgets
look really unclear, but they really have to be changed to adapt
to enable-animations == FALSE at the widget level.
2011-04-14 08:56:07 -04:00
Javier Jardón
15de4031bc docs: Fix a typo: gtk_style_get_context -> gtk_style_has_context 2011-04-13 13:54:45 +01:00
Cosimo Cecchi
713488ed50 combobox: always give the full allocation to the button in menu mode
The button is what draws the background/frame outline of the combobox,
and padding is defined as the spacing *inside* the widget between the
border and the content.

https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:06:20 -04:00
Cosimo Cecchi
503466c893 combobox: rename border->padding for code clarity
https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:06:20 -04:00
Cosimo Cecchi
e94b311fbf combobox: allocate the right border to the arrow and not to the label
When the combobox is in menu mode, the right padding of the togglebutton
inside, should be allocated to its rightmost children, which is the
arrow.

https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:06:20 -04:00
Cosimo Cecchi
22eb1f5b91 combobox: don't use the border as a padding
This causes the combobox to behave badly from the theme.

https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:06:20 -04:00
Cosimo Cecchi
9f4183c453 combobox: don't add the button style class to the whole widget
It already has a toggle button inside, and this way we cannot theme them
separately.

https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:06:19 -04:00
Cosimo Cecchi
2c29311955 button: don't use the border values for padding
It's wrong, and makes it impossible to theme the button properly.

https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:06:19 -04:00
Cosimo Cecchi
29e45c4c89 button: make gtk_button_get_props() return the padding too
https://bugzilla.gnome.org/show_bug.cgi?id=646882
2011-04-12 17:06:19 -04:00
Dan Winship
00802c73e4 gtk_window_present_with_time: fix when window is not initially visible
When called on a hidden window, gtk_window_present_with_time() would
just fall back to gtk_widget_show(), completely ignoring the passed-in
timestamp. This ended up working anyway if the timestamp came from
in-process, since gdk_window_x11_show() would initialize its user_time
from the time of the most recent event. But if the timestamp came from
another process, this would result in the window being shown with an
out-of-date timestamp.

Fix this by remembering the timestamp from
gtk_window_present_with_time(), and then setting the GdkWindow's
user_time from that when it the window is realized.

https://bugzilla.gnome.org/show_bug.cgi?id=647275
2011-04-12 14:48:27 -04:00
Dan Winship
9404f77eb1 GdkDeviceManagerXI2: don't set user_time on ButtonRelease
The XI2 device manager was mistakenly setting the window user_time on
both ButtonPress and ButtonRelease, which meant that processes that
tried to launch another process based on the time of a ButtonPress
event would end up always focus-stealing-preventing the new app.

https://bugzilla.gnome.org/show_bug.cgi?id=647275
2011-04-12 14:48:02 -04:00
Dan Winship
94b9e819a0 GdkDeviceManagerXI2: process send_event core events
XSendEvent doesn't currently work with XI2 events, so add code to
translate core events when they have the send_event flag.

(We still don't actually select for core pointer/keyboard events, so
we will only receive send_event events that are sent with a 0
event_mask.)

https://bugzilla.gnome.org/show_bug.cgi?id=644847
2011-04-12 14:29:12 -04:00
Takayoshi OKANO
a0d9da7454 Updated Japanese translation. 2011-04-11 23:17:23 +09:00
Tristan Van Berkom
e21d72cf3a Fix some crashes caused by unimplemented functions in GdkOffscreenWindow
These crashes happen when accessing GtkWindow properties and the
GdkWindow is an offscreen (fixes https://bugzilla.gnome.org/show_bug.cgi?id=647244)
2011-04-09 02:03:25 +09:00
Matthias Clasen
f14a1af30e Avoid a warning out of the print dialog
Reported in https://bugzilla.gnome.org/show_bug.cgi?id=647152
2011-04-08 20:46:57 -04:00
Cosimo Cecchi
dcaafb1bc1 themingengine: don't set a line width before saving the cairo context
https://bugzilla.gnome.org/show_bug.cgi?id=647086
2011-04-08 20:34:16 -04:00