Alexander Larsson
e417b18373
gdk_gl_texture_quad: Use shaders to texture things
...
This is the modern way OpenGL works, and using it will let us
switch to a core context for the paint context, and work on
OpenGL ES 2.0.
2014-11-06 12:24:43 +01:00
Alexander Larsson
c78e7e7f17
GdkGL: Rename "context" to "paint_context" to clarify things a bit
2014-11-06 12:24:43 +01:00
Alexander Larsson
aaa335b9e8
gdk_cairo_draw_from_gl: Document that this changes the current context
2014-11-06 12:24:43 +01:00
Alexander Larsson
8c6395d8a1
GdkGLContextX11: Use passed in context, not get_current()
2014-11-06 12:24:43 +01:00
Alexander Larsson
10a44e8f7a
Add gdk_gl_texture_quad() helper
...
Right now this just centralizes the glBegin/glEnd code, but
this will be replaced with buffer objects later.
2014-11-06 12:24:43 +01:00
Alexander Larsson
3c34ca3405
gdkgl: Don't constantly re-create the tmp framebuffer
2014-11-06 12:24:43 +01:00
Dimitris Spingos
0ac24904bd
Updated Greek translation
2014-11-06 13:49:23 +02:00
Matthias Clasen
5a01208f55
GtkHeaderBar: Queue a resize when pack-type is changed
...
Otherwise, buttons appear to stick to the wrong side in glade.
2014-11-06 01:05:51 -05:00
Robert Ancell
053b65a21a
mir: Handle pointer up/down events without a button mask set (i.e. touch events)
...
The Mir backend was checking for button mask changes to generate the appropriate
GDK event. When Mir generates a touch event it has no button mask. In this case
we'll just generate a primary button event.
2014-11-06 11:15:52 +13:00
Lapo Calamandrei
fdc01f80af
Adwaita: dim GtkPlacesSidebar icons color
2014-11-05 16:01:28 +01:00
Benjamin Otte
0e44722fd8
tests: Add deprecation guards
...
It's the last test still spewing these and I'm too lazy to do a proper
fix.
2014-11-05 13:06:32 +01:00
Matthias Clasen
dd7a851f69
widget-factory: Fill up page 2 properly
...
The collapsed expander leaves and odd empty corner, so expand
it initially.
2014-11-05 06:29:47 -05:00
Matthias Clasen
45c0461f9b
widget-factory: Add another osd
...
This is modeled after the totem osd.
2014-11-05 06:13:39 -05:00
Alexander Larsson
dd721acb84
GdkGLContextX11: Only set swap interval when it changed
2014-11-05 12:02:18 +01:00
Alexander Larsson
e4bf60224b
GdkGL: Fix and clean up gdk_cairo_draw_from_gl()
...
This was unnecessarily creating a framebuffer in the texture case,
and it was not properly setting up a framebuffer with the texture
as source in the software fallback w/ texture source case.
2014-11-05 09:54:05 +01:00
Robert Ancell
c41231cc0f
mir: Don't assert on unknown Mir events.
...
If we get a Mir event we don't understand generate a warning instead of an assert.
2014-11-05 15:50:55 +13:00
Matthias Clasen
e2882e4845
GtkHeaderBar: Make the position child property writable
...
Glade asssumes that it is, and without this, rearranging children
in glade is very cumbersome.
2014-11-04 16:56:25 -05:00
Carlos Garnacho
d9a433daf7
gtkwindow: Resort to regular event bubbling by all means on non-toplevels
...
If the multipress gesture is not created (ie. not a toplevel GtkWindow),
also avoid possibly calling gtk_widget_event() on the events gotten here.
2014-11-04 19:03:27 +01:00
Carlos Garnacho
03a30e462e
gtkwindow: Do not create the multipress gesture for plugs
...
GtkPlugs may "qualify" as toplevels, even though they're not meant to
be WM manipulated, so refuse to create the multipress gesture for these
too.
2014-11-04 19:03:18 +01:00
Yosef Or Boczko
5f26876acb
Updated Hebrew properties translation
2014-11-04 19:23:13 +02:00
Yosef Or Boczko
2eb874a8b0
Updated Hebrew translation
2014-11-04 19:22:40 +02:00
Lapo Calamandrei
c160340e6c
Adwaita: brighter dark variant header-bar bottom shade
2014-11-04 14:59:24 +01:00
Matthias Clasen
113e1d1dc0
Make window scale changes work again
...
Commit afd9709aff
made us keep impl window
cairo surfaces around across changes of window scale. But the
window scale setter forgot to update the size and scale of the
surface. The effect of this was that toggling the window scale
from 1 to 2 in the inspector was not causing the window to draw
at twice the size, although the X window was made twice as big,
and input was scaled too. Fix this by updating the surface when
the window scale changes.
2014-11-03 22:35:11 -05:00
Matthias Clasen
824fa0314d
Add some more builder tests
2014-11-03 19:07:18 -05:00
Alexander Larsson
ef9ac24e95
GtkGLArea: Correctly position/size input window on realize
2014-11-03 13:35:00 +01:00
Alexander Larsson
6fbc439fd7
GdkGLContext: Add display property
...
We need to use this in the code path where we make the context
non-current during destroy, because at that point the window
could be destroyed and gdk_window_get_display() would return
NULL.
2014-11-03 13:20:55 +01:00
Alexander Larsson
3656c21030
GtkGLArea: Don't dispose gl context on unrealize
...
This was done to ensure the context is not current, but this is
pretty broken for shared contexts. We now just make it non-current.
2014-11-03 13:19:40 +01:00
Alexander Larsson
9930e6dcaa
GtkGLArea: Add create-context signal
...
This lets you hook into the GL context creation which is useful
if you want to share one GL context between GtkGLArea widgets.
2014-11-03 10:43:31 +01:00
Matthias Clasen
4aa0d16865
Only warn once if inhibit-related dbus calls fail
...
No need to spam about it.
https://bugzilla.gnome.org/show_bug.cgi?id=734140
2014-11-03 00:48:42 -05:00
Matthias Clasen
95e8ae6e75
GtkIconTheme: Improve an error message
...
Mention the name of the theme when an icon lookup fails.
https://bugzilla.gnome.org/show_bug.cgi?id=687963
2014-11-03 00:25:14 -05:00
Matthias Clasen
2aa3eea781
GtkFileChooser: Add a menuitem for 'sort directories first'
...
This has been requested repeatedly.
2014-11-03 00:02:13 -05:00
Alberts Muktupāvels
bdaef1f88d
gtkmenu: fix unnecessary scroll buttons
...
Don't change menu height if menu is out of monitor only by shadow
width.
https://bugzilla.gnome.org/show_bug.cgi?id=738321
2014-11-02 22:11:03 -05:00
Lapo Calamandrei
264cab2b52
Adwaita: add borders to menus in a non composited env
...
https://bugzilla.gnome.org/show_bug.cgi?id=738800
2014-11-02 22:04:14 -05:00
Matthias Clasen
2873195644
GtkHeaderBar: Fix a corner-case in child properties
...
The child property setting must be prepared to deal with any
child property for any child, even if it doesn't make sense,
like the pack-type for the custom title. This is happening
in glade when undoing a change in the custom-title property.
2014-11-02 17:49:47 -05:00
Dimitris Spingos
cc22325612
Updated Greek translation
2014-11-02 10:52:52 +02:00
Matthias Clasen
120abd9a6e
csd: Improve appearance inside glade
...
glade turns windows into non-toplevels, so we can easily recognize
that situation and avoid adding a humongous shadow area.
2014-11-01 14:49:02 -04:00
Matthias Clasen
1a3bdefb00
Fix an ordering issue in event destruction
...
gdk_event_get_display accesses event->any.window, so don't
free that window first thing.
2014-11-01 14:44:03 -04:00
Matthias Clasen
18a2a6a90e
GtkVolumeButton: Fix annoying double formatting
...
We meant to specify 0.2, and it came out as 0.2000000001.
2014-11-01 13:21:00 -04:00
Matthias Clasen
d8cc9d9a51
glade: Add GtkColorEditor to private widgets
2014-11-01 13:20:59 -04:00
Matthias Clasen
ffa49723a2
glade: Drop a no-longer existing private widget
...
GtkScaleButtonScale fell by the wayside when the scale button
was ported to a popover.
2014-11-01 13:20:59 -04:00
Cosimo Cecchi
276a510b4b
radiobutton: don't consider hidden buttons in the group for focus
...
When a GtkRadioButton has no focus, it will accept it when there is no
other active button in its group.
If the active button in the group is hidden, for example because the UI
desires not to have a default option pre-selected, currently the focus
will not be accepted, which is not desired behavior.
This commit changes the code to only consider visible buttons in the
group when checking whether another button is active.
https://bugzilla.gnome.org/show_bug.cgi?id=739474
2014-11-01 10:08:42 -07:00
Matthias Clasen
e6e511eb46
GtkListBox: Fix a bug in unselection
...
Ensure that gtk_list_box_get_selected_row returns NULL after
gtk_list_box_unselect_all. Add a testcase that detects this
problem.
2014-10-31 22:34:09 -04:00
Matthias Clasen
fcdec5ac41
icon-browser: Add search
...
Most of the code was already in place, just some loose ends
to fix up.
2014-10-31 22:28:17 -04:00
Matthias Clasen
3c997239e9
inspector: Search refinements
...
Show close buttons on all search bars.
2014-10-31 21:14:09 -04:00
Matthias Clasen
3f3725d97b
inspector: Refine object tree search
...
Behave similar to traditional treeview search, and center
the row when moving between matches.
2014-10-31 21:13:18 -04:00
Matthias Clasen
992c5f0dd6
inspector: Add search to the object tree
...
This is also an attempt to figure out a better story for search
in treeviews.
2014-10-31 21:02:50 -04:00
Matthias Clasen
69a0b31d2d
Trivial: sort file list alphabetically
2014-10-31 14:16:02 -04:00
Lapo Calamandrei
00f618ea1a
Adwaita: special case .default-decoration
...
Titlebars which are just window handles can be smaller.
2014-10-31 16:53:23 +01:00
Lapo Calamandrei
5a5e74bbe2
Adwaita: simpler gtkcalendar style (once again)
2014-10-31 16:44:21 +01:00
Matthias Clasen
89e12495b6
inspector: Improve search in style property list
...
Use a search bar with a search entry instead of the builtin
treeview search popup.
2014-10-30 20:54:54 -04:00