Benjamin Otte
daabd0436f
range: Remove 2 variables
...
Instead, compute their value on-demand.
2014-11-25 19:19:12 +01:00
Benjamin Otte
447a439145
range: Remove unused variable
2014-11-25 19:19:12 +01:00
Benjamin Otte
79712f843c
scale: Always be flippable
...
GtkRange only flips horizontal ranges, so there's no need to unset it
for vertical scales.
Also, set_flippable() is a cute name.
2014-11-25 19:19:12 +01:00
Benjamin Otte
addcb7137e
range: Simplify defines
...
- Delete unused defines
- Don't have 2 defines that are multiplied later
2014-11-25 19:19:12 +01:00
Benjamin Otte
51f5433170
range: Deprecate detail strings in class struct
...
... and stop setting them.
2014-11-25 19:19:12 +01:00
Benjamin Otte
0d1395d07f
range: Remove unused detail quarks
2014-11-25 19:19:11 +01:00
Benjamin Otte
e7f2239cbb
range: Remove unused variable
2014-11-25 19:19:11 +01:00
Matthias Clasen
4634fd81ba
inspector: Make close buttons in search bars have no relief
...
Make our home-grown searchbar lookalike look more alike.
2014-11-25 08:42:26 -05:00
Carlos Garnacho
dde77704ed
popover: Forward key events to focus widget while visible/modal
...
This is the expected behavior while the popover keeps the grab, leaving
this up to the toplevel implementation gives place to key handlers
connected there to handle the event otherwise, and maybe redirect key
events somewhere else.
2014-11-25 14:08:34 +01:00
Matthias Clasen
f71831c780
GtkStack: silently ignore visible-child-name set to NULL
...
This can happen when loading empty stacks in glade.
2014-11-25 00:14:47 -05:00
Matthias Clasen
bef9d05812
inspector: minor cleanup
2014-11-24 20:36:00 -05:00
Ray Strode
3a5d15358e
testsuite: add hide-titlebar-when-maximized test for GtkWindow
...
This commit adds a test that checks whether or not
hide-titlebar-when-maximized can be set before the window is
realized.
https://bugzilla.gnome.org/show_bug.cgi?id=740287
2014-11-24 12:52:25 -05:00
Matthias Clasen
c1ca7986ee
Make scale=2 work again
...
There was a leftover HAVE_CAIRO_SURFACE_SET_DEVICE_SCALE ifdef
that broke things, now that we don't use this define anymore.
2014-11-24 10:02:54 -05:00
Chun-wei Fan
16e863ce65
gdkgl.c: Avoid GCCism in Pointer Arithmetic
...
NULL-plus-something could be seen by the compiler to attempt to do
arithmetic with void *, which is a GCCism. Instead, do the math normally
and cast the results as a void *.
https://bugzilla.gnome.org/show_bug.cgi?id=740605
2014-11-24 22:57:25 +08:00
Matthias Clasen
c7f3b93d99
Keep gtk_window_set_hide_titlebar_when_maximized working
...
This broke in 510c2cdfb6
.
https://bugzilla.gnome.org/show_bug.cgi?id=740287
2014-11-24 06:49:19 -05:00
Matthias Clasen
8d6d73e8d9
Bump version
2014-11-23 20:34:26 -05:00
Matthias Clasen
c64bfa5751
3.15.2
2014-11-23 19:44:01 -05:00
Matthias Clasen
464536b460
Add missing api to the docs
2014-11-23 19:44:01 -05:00
Matthias Clasen
d0d41dfeba
GtkModelButton: Add docs
2014-11-23 19:44:01 -05:00
Matthias Clasen
7d35351c7a
Update expected results
2014-11-23 18:53:06 -05:00
Matthias Clasen
a09ff50a1d
notify test: Exclude a few new properties
...
The button properties don't make sense on GtkModelButton (indicating
that GtkModelButton should really not be a GtkButton subclass).
2014-11-23 18:30:13 -05:00
Matthias Clasen
f95fb6f893
GtkGLArea: avoid extraneous property notifications
2014-11-23 18:30:13 -05:00
Matthias Clasen
ff4f918a69
GtkModelButton: specify the proper default values
...
Caught by the defaultvalue test: ::text starts out as "", and
::iconic should be FALSE by default.
2014-11-23 18:30:13 -05:00
Carlos Garnacho
44c412ecc7
wayland: Pass shadow width to the compositor
...
Use xdg_surface_set_window_geometry() to tell the compositor about the
shadow widths, this makes some gnome-shell/mutter features (edge resistance,
frames around windows in the overview, side maximization, ...) work alright
with GTK+.
In order to add this, some other places in gdkwindow-wayland had to gain
some knowledge about margins:
- xdg_surface_configure() now syncs the shadow after applying the state,
and gdk_wayland_window_set_shadow_width() possibly reconfigures the
window in order to preserve window geometry. This is necessary to keep
shadows in sync with state/geometry changes, as this does not happen
all at once.
- xdg_popups relative to an xdg_surface are shown relative to buffer
coordinates, so the left/top margins must be added there.
https://bugzilla.gnome.org/show_bug.cgi?id=736742
2014-11-23 13:11:08 +01:00
Matthias Clasen
6b95810aae
inspector: Show object title in menu tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
a7ba57f751
inspector: Add menu models to the tree
...
Add both the appmenu and the menubar models as children of the
application, if they exist.
2014-11-22 21:38:47 -05:00
Matthias Clasen
0a37493384
inspector: Show object title in size groups tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
d09f66579b
inspector: Show object title in data tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
af12993c4b
inspector: Show object title on the style property list
...
As with the property list, this replaces the search bar by
a stack containing a search entry.
2014-11-22 21:38:47 -05:00
Matthias Clasen
f38081a4a5
inspector: Show object title on selector tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
38c3600d8b
inspector: Show object title in actions tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
d2aad06513
inspector: Show object title in hierarchy tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
85380f22f3
inspector: Show object title in the classes tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
fe5f9c560b
inspector: Show object title in the css tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
c2326aa5cf
inspector: Show object title in the gestures tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
9e3d0651e1
inspector: Show object title in the signals tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
7a1c5845ef
inspector: Show object title in the properties tab
...
Replace the search bar with a search entry in a stack to make
this work without unseemly height changes.
2014-11-22 21:38:47 -05:00
Matthias Clasen
2ea3171ff9
inspector: Show object title in the misc tab
2014-11-22 21:38:47 -05:00
Matthias Clasen
5b7233f136
inspector: Store object title on object
2014-11-22 21:38:46 -05:00
Matthias Clasen
84463b78e5
inspector: Drop an unused argument
2014-11-22 21:38:46 -05:00
Matthias Clasen
9fb2d6a6b9
inspector: Trivial typo fix
2014-11-22 21:38:46 -05:00
Matthias Clasen
72a501fe15
GtkGLArea: Formatting fixes
2014-11-22 21:38:46 -05:00
Jasper St. Pierre
10a7a89311
gdkinternals: Document our drawing and painting process better
2014-11-22 11:46:53 -08:00
Jasper St. Pierre
c01e37a9a5
gdkgl: Texture quads in one giant draw call
...
This requires us to use GL_TRIANGLES and six verts per quad instead
of four, which makes me think it might not be worth it on
well-optimized GL drivers. However, from talking to some driver
developers about it, the GL_TRIANGLES should be faster, since this
means that there's one giant contiguous buffer instead of many small
buffers.
If we were really rendering a lot of quads, I'd use an element buffer
and GL_PRIMITIVE_RESTART, but we're really not ever rendering that
many quads, and the setup cost for that would just be too annoying.
2014-11-22 10:34:47 -08:00
Jasper St. Pierre
6ffba866a6
gdkgl: Use one VBO for both position and uv attributes
2014-11-22 10:17:43 -08:00
Jasper St. Pierre
37ad6e1147
gdkgl: Texture many quads at once for performance reasons
...
This isn't fully performant yet. To be fully performant, we'd need to
do everything in one giant buffer.
2014-11-22 10:13:58 -08:00
Jasper St. Pierre
7312c01f62
gdkglcontext-x11: Make sure to enable the scissor test
2014-11-22 10:01:51 -08:00
Jasper St. Pierre
37697f1817
gdkgl: Use a GdkTexturedQuad struct to paint quads
...
We'll soon have a new function that paints multiple quads.
2014-11-22 09:40:10 -08:00
Jasper St. Pierre
28846536cb
gdkgl: Clean up program-manipulating code
...
Abstract the program ID and locations into a "program struct" which
we then use.
2014-11-22 09:29:27 -08:00
Jasper St. Pierre
3f0c84f7ad
gdkwindow: Clean up whitespace slightly
...
This has been bothering me for a while.
2014-11-22 08:12:22 -08:00