Benjamin Otte
b9aef64f09
toolitemgroup: Use gtk_widget_queue_draw()
2016-10-27 05:07:23 +02:00
Benjamin Otte
4d4b355d0e
iconview: Use gtk_widget_queue_draw()
2016-10-27 05:07:23 +02:00
Benjamin Otte
ac88153f60
expander: Remove unnecessary redraws
2016-10-27 05:07:23 +02:00
Benjamin Otte
8b76d12f28
drawingarea: Clarify docs
...
Don't use gdk_window_invalidate(), use gtk_widget_queue_draw().
2016-10-27 05:07:23 +02:00
Benjamin Otte
27ab75250c
widget: Redo how gtk_widget_queue_draw() works
...
Before, we would immediately invalidate the GdkWindow of the widget, now
we call the parent's GtkWidgetClass.queue_draw_child() function.
This allows the parent to track redraw queueing of children.
By default GtkWidgetClass.queue_draw_child() will again chain up to its
parent while respecting the GdkWindow hierarchy for clipping.
GtkWindow is then the only widget actually invalidating the GdkWindow.
This essentially moves redraw queueing from GDK to GTK.
2016-10-27 05:07:23 +02:00
Benjamin Otte
77038a9b0b
widget: Inline function into only caller
...
... and remove all the checks that are not needed in this case.
2016-10-27 05:07:23 +02:00
Benjamin Otte
dd105f3db8
gdk: Remove gdk_window_set_invalidate_handler()
...
It's not used anymore.
2016-10-27 05:03:06 +02:00
Benjamin Otte
b1f61b6fcc
gdk: Add deprecation guards around deprecated function
2016-10-27 05:03:06 +02:00
Benjamin Otte
568f1ff301
pixelcache: Remove
...
It's now unused.
2016-10-27 05:03:06 +02:00
Benjamin Otte
a9c05448a8
textview: Get rid of the pixel cache
2016-10-27 05:03:06 +02:00
Benjamin Otte
134165e773
treeview: Remove the pixel cache usage
2016-10-27 05:03:06 +02:00
Matthias Clasen
6861a5d0a4
Spacing fixes for builtin dialogs
...
Replace border-width and padding by margins, in most places.
2016-10-26 20:58:07 -04:00
Matthias Clasen
50a75b37a9
More gtk-demo spacing fixes
2016-10-26 20:37:23 -04:00
Matthias Clasen
76aeb706ef
gtk-demo: Start to fix up the spacing
...
Replace some cases of lost border-width with margins.
2016-10-26 15:03:04 -04:00
Matthias Clasen
b2284ef48f
Fix widget-factory appearance, a bit
...
Use margins instead of border-width, for now.
2016-10-26 14:42:11 -04:00
Matthias Clasen
e2e8231ca9
color chooser: Fix a problem with show-editor=TRUE
...
For some reason we end up allocating the colorplane widget
before it is realized, and then never initialize the surface.
Fix this by explicitly doing it on realize.
https://bugzilla.gnome.org/show_bug.cgi?id=773474
2016-10-26 14:33:07 -04:00
Benjamin Otte
75358e4d8d
applicationwindow: Fix issues with measure vfunc transition
2016-10-26 19:52:02 +02:00
Benjamin Otte
a750f942ac
viewport: Remove pixelcache
...
With the rework for GSK and queueing of redraws pending, the pixel cache
just gets in the way. So we remove it everywhere.
2016-10-26 19:52:02 +02:00
Emmanuele Bassi
da2d91b9b3
build: Update CLEANFILES
...
We use nodist for gir and typelib files, because we expect them to be
rebuilt.
2016-10-26 16:10:35 +01:00
Emmanuele Bassi
b6c749e61c
build: Beautify the GIR post-processing
...
Use AM_V_GEN to silence the command line output.
2016-10-26 15:58:23 +01:00
Emmanuele Bassi
e161f9eba3
gsk: Add check on GL_MAX_TEXTURE_SIZE
...
We should check (once) what's the maximum GL texture size and then use
that size to check when we create any GL texture, to avoid errors.
2016-10-26 15:49:28 +01:00
Matthias Clasen
42a5608af6
Fix the build
...
Copy-paste error.
2016-10-26 10:45:04 -04:00
Matthias Clasen
9aa1257bd0
GdkWindow: Use the seat to enumerate devices
...
GdkDeviceManager is going away.
2016-10-26 10:36:32 -04:00
Matthias Clasen
7fa09a3e3a
quartz: Stop using gdk_device_manager_list_devices
...
The function has been deprecated.
2016-10-26 10:36:32 -04:00
Matthias Clasen
35fda80a4b
x11: Stop using gdk_device_manager_list_devices
...
The function has been deprecated.
2016-10-26 10:36:32 -04:00
Matthias Clasen
d2d209865b
broadway: Stop using gdk_device_manager_list_devices
...
The function is deprecated.
2016-10-26 10:36:32 -04:00
Alexander Larsson
723b588b5d
Make gdk.la and gsk.la a noninst helper library
...
This merged gtk, gdk and gsk into one library, making it possible to
have internal private APIs between gtk them, as well as producing more
efficient code.
https://bugzilla.gnome.org/show_bug.cgi?id=773100
2016-10-26 16:34:15 +02:00
Benjamin Otte
3fd63e1d67
widget: Improve early exit checks on queue_draw()
...
(1) We don't need to check for realized when we check for mapped right
below.
(2) Empty regions don't need to be drawn.
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
52c4421bd3
win32 theme: Fix tooltip borders
...
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
d1dafbeaef
win32 theme: Fix combobox
...
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
16926308a8
win32 theme: Fix column headers
...
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
1f340882e2
win32 theme: Fix popup window decorations
...
Windows such as combobox's popup were using toplevel window's borders
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
5c6dda0459
gtkwin32theme: delete #if 0 code
...
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
a877d2c163
win32 theme: Fix scale widget
...
It was invisible before.
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
7e3f9d6f71
win32 theme: No need to create a DC for GetThemePartSize
...
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
77ff3ada62
win32 theme: use TS_TRUE in GetThemePartSize
...
Several styles return a size of 0x0px when using TS_DRAW, as
we don't pass a RECT to draw into.
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
ed980824c4
win32 theme: Fix scrollbars
...
The fix is only partial, when both scrollbars are visible their ends
overlap.
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
ea9b992351
Fix CSS warnings in win32 theme
...
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Jaime Velasco Juan
9a9969b337
Fix tiny fonts in win32 theme
...
broken since df08fc91... (css: always get default font size in pixels)
https://bugzilla.gnome.org/show_bug.cgi?id=773221
2016-10-26 16:25:49 +02:00
Sébastien Wilmet
83dc4c8b39
docs: fix copy/paste errors in the docs of GtkScrolledWindow
...
Trivial commit.
2016-10-26 15:20:25 +02:00
Sébastien Wilmet
371aa0dba3
docs: update section file for GtkScrolledWindow
...
Trivial commit.
- More logical ordering (re-group related things).
- Add missing functions: max_content_width/height.
2016-10-26 14:17:00 +02:00
Chun-wei Fan
4b3c0314dd
gdk/win32/gdkevents-win32.c: Avoid gdk_device_manager_get_core_pointer()
...
This function has been removed, so replace it with gdk_seat_get_pointer().
https://bugzilla.gnome.org/show_bug.cgi?id=773299
2016-10-26 18:54:51 +08:00
Chun-wei Fan
306fd15c34
demos: Fix 'make install'
...
We need to change gtk-update-icon-cache to gtk4-update-icon-cache, as that tool
has been renamed.
2016-10-26 18:30:09 +08:00
Chun-wei Fan
ac875073fc
GSK: Add initial Visual Studio projects
...
This adds the initial MSVC build items needed to build GSK under Visual Studio,
this is part of it that is required, we need to add items to the property sheets
to generate the code that is generated via glib-mkenums and glib-compile-resources.
This set includes, with the autotools scripts for the complete:
-GSK project files, which is integrated into the gtk+-4.sln.
-The NMake snippets to build the introspection files for GSK.
-The .bat files to call glib-mkenums to generate the enumeration sources.
2016-10-26 18:30:09 +08:00
Matthias Clasen
c9ce0bd4ba
Drop x11-specific code from the GTK+ dnd code
...
We were using passive grabs to listen for some individual
keys. Nowadays, the managed dnd code in the x11 backend
does the same.
2016-10-26 05:13:52 -04:00
Chun-wei Fan
2ba64e0b62
MSVC builds: Support MSVC 2013 and later
...
We now need C99 features from the compiler which are only supported by
Visual Studio 2013 and later, so drop the MSVC 2008~2012 projects, and make
the baseline supported Visual Studio version be 2013. Update the build files
as a result.
2016-10-26 16:46:38 +08:00
Chun-wei Fan
910300bcb2
build/Makefile.msvcproj: Add rules for MSVC 2013 to be baseline version
...
GTK+-3.89.0 and later will require C99 features that is only supported on
Visual Studio 2013 and later, so prepare build/Makefile.msvcproj for this.
We still keep the 2008~2010 stuff here as this strives to be a shared module,
and there are projects using this that still supports building on pre-2013
Visual Studio.
2016-10-26 16:46:38 +08:00
Chun-wei Fan
2e103e85cc
Remove gtk4-install.props's during re-generation
...
This is to ensure the changes in the generated
build/win32/vs10/gtk4-install.props are applied in
build/win32/vs[11|12|14] as well.
2016-10-26 16:46:38 +08:00
Rico Tzschichholz
b4c37bfff8
visual: Remove deprecated API
2016-10-26 10:12:58 +02:00
Rico Tzschichholz
e0b1f2e5f4
Remove deprecated gdk_display_open_default_libgtk_only
2016-10-26 10:06:23 +02:00