Carlos Garnacho
48239ad720
gtk3-demo: Add tool information to "Event axes" demo
...
Print tool type and serial, if found.
2016-04-06 16:12:13 +02:00
Carlos Garnacho
8e917093df
demos: Enable multidevice behavior on event-axes demo
...
On wayland we get separate master/slaves for each tablet, we will
need to receive crossing events for each master pointer if there's
more than one around.
2016-04-06 15:43:29 +02:00
Carlos Garnacho
b465ede53b
demos: Set crossing events mask explicitly on event-axes demo.
2016-04-06 15:43:29 +02:00
Carlos Garnacho
89b7f859a4
gtk3-demo: Show multiple master devices on the "Event axes" demo
2016-04-06 15:43:29 +02:00
Stephen Chandler Paul
505dac94be
gtk-demo: Add support for distance in event_axes
...
Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
2016-04-06 15:43:29 +02:00
Stephen Chandler Paul
6c2a078bf2
gtk-demo: Use GdkAxisUse instead of axis labels
...
Axis labels are very X specific, and are not really possible to port to other
backends such as Wayland. As such, it makes more sense to use GdkAxisUse and
GdkAxisUseFlag in order to determine the axis capabilities of a device and draw
their axes.
Signed-off-by: Stephen Chandler Paul <thatslyude@gmail.com>
2016-04-06 15:43:29 +02:00
Matthias Clasen
fab9c17b89
gtk3-demo: Show more button styles
...
Add examples for suggested-action and destructive-action
buttons in the style classes example.
2016-03-25 22:45:55 -04:00
Matthias Clasen
258ba6c8a4
gtk3-demo: Rename "CSS Theming" group
...
Call it just "Themeing" to avoid the repetition of CSS.
2016-03-25 22:45:55 -04:00
Matthias Clasen
73fe852be0
gtk-demo: Improve markup demo
...
Add squiggly underlines and background, and make the markup editable.
https://bugzilla.gnome.org/show_bug.cgi?id=763741
2016-03-21 13:32:40 -04:00
Carlos Garcia Campos
5107c4a75f
gtk-demo: Rework foreigndrawing to use sizes from the theme
...
Instead of hardcoding the size of the widgets. This makes the output
closer to real widgets and fixes the blurry icons. I've also added a
scale.
https://bugzilla.gnome.org/show_bug.cgi?id=763758
2016-03-21 11:45:48 -04:00
Benjamin Otte
07a69b7247
gtk-demo: Fix copy/paste error
...
http://www.viva64.com/en/b/0383/
2016-03-20 05:32:35 +01:00
Carlos Garnacho
6fd05dfe53
gtk-demo: Handle GDK_TOUCH_CANCEL in event-axes demo
...
It is a thing in wayland, which means we leave traces from older
touches when the compositor takes over touch sequences in order
to handle a gesture.
2016-03-14 15:30:27 +01:00
Matthias Clasen
b7fd0147f7
gtk-demo: Fix a typo
2016-03-08 08:55:59 -05:00
Matthias Clasen
4357c22a89
gtk-demo: Update foreigndrawing example some more
...
The scrollbar changes need to take the theme's negative margins
into account.
2016-03-08 08:55:59 -05:00
Matthias Clasen
fdd3c912a0
gtk-demo: Try to fix foreigndrawing scrollbars
...
The node hierarchy and sizing has changed with the gadgetization
of range widgets.
2016-03-08 08:14:36 -05:00
Matthias Clasen
6d1cdaff7e
gtk-demo: Use <accelerator>
...
Add an example of <accelerator> use in the builder example.
2016-03-05 23:44:03 -05:00
Matthias Clasen
7f9223b0c8
gtk-demo: Fix up the inline-toolbar example
...
The inline toolbar in the style classes demo should use
the icons toolbar-style to ensure that the buttons are square.
2016-03-04 20:50:21 -05:00
Matthias Clasen
435c8c9f0d
gtk-demo: Strip newlines from g_warning and g_error
...
g_logv adds one for us already.
2016-02-28 12:23:12 -05:00
Matthias Clasen
0f3a211d35
gtk-demo: Simplify ui files a bit
...
Strip unneeded IDs.
2016-02-28 00:00:03 -05:00
Matthias Clasen
492fec6294
gtk-demo: Put hte app menu in a separate file
...
No need to cram it in the same file as the main window.
2016-02-27 23:43:06 -05:00
Matthias Clasen
9d5ad67c91
gtk-demo: Add some padding in sidebar
...
Add some padding on the right, to avoid the scrollbar and make
the sidebar appear balanced.
2016-02-27 23:35:33 -05:00
Matthias Clasen
87554eb57a
widget-factory: Make the sliding opt-in
...
The sliding is a little disorienting, so turn it off by default
and add a checkbutton for it in the gear menu.
2016-02-27 23:12:15 -05:00
Matthias Clasen
a7a934a60c
gtk3-demo: Update css
...
Clean up any deprecation warnings from the css examples in
gtk3-demo.
2016-02-27 22:39:09 -05:00
Matt Watson
a051e5677e
widget-factory: transition pages
...
https://bugzilla.gnome.org/show_bug.cgi?id=762642
2016-02-25 19:49:45 -05:00
Benjamin Otte
d10bd41e43
widget-factory: Add myself
...
Actually, I wanted to have a radio toggle cell renderer for testing. But
hey, the commit message is supposed to say the important things!
2016-02-15 18:17:11 +01:00
Caolán McNamara
1d65e8b601
gtk-demo: add menu separator demo
...
doesn't much look like the menu separator in a real menu though.
https://bugzilla.gnome.org/show_bug.cgi?id=762080
2016-02-15 10:19:49 -05:00
Caolán McNamara
ee9c1c1449
gtk-demo: add combobox demos
...
https://bugzilla.gnome.org/show_bug.cgi?id=762080
2016-02-15 08:41:22 -05:00
Caolán McNamara
1131ae27a0
gtk-demo: add menu check and radio examples
...
note that if the "menu" context has no parent then the GTK_STATE_FLAG_NORMAL
menu entries are invisible against the white background.
https://bugzilla.gnome.org/show_bug.cgi?id=762080
2016-02-15 08:41:22 -05:00
Matthias Clasen
e0bf1289b9
gtk3-demo: Fontify all source files
2016-02-14 10:56:26 -05:00
Matthias Clasen
c0a61c2da3
gtk-demo: Streamline application
...
Avoid the odd #ifdef STANDALONE construction; we can show
multiple source files nowadays.
2016-02-14 10:56:26 -05:00
Matthias Clasen
fc90bd5e30
gtk-demo: Fix the size saving for CSD
...
We need to use gtk_window_get_size to get the correct size that
we can pass to gtk_window_set_default_size regardless of CSD
or not.
2016-02-14 10:56:26 -05:00
Matthias Clasen
3a499d61dc
gtk-demo: Add window size saving example
...
Implement the recommendations from
https://wiki.gnome.org/HowDoI/SaveWindowState
in the Application Class example.
2016-02-13 23:03:18 -05:00
Matthias Clasen
7bca66e1ff
gtk-demo: modernize the application demo
...
Subclass GtkApplication and GtkApplicationWindow
and use a template.
2016-02-13 23:03:18 -05:00
Matthias Clasen
29a7373802
widget-factory: Add an inline toolbar example
...
This pattern is still used in applications, so we should have it
represented here to keep it working well.
2016-02-13 17:11:59 -05:00
Caolán McNamara
5562f4f273
gtk-demo: spinbutton and menubar examples
...
https://bugzilla.gnome.org/show_bug.cgi?id=761900
2016-02-12 10:02:31 -05:00
Matthias Clasen
bfd254c932
gtk-demo: Add more foreign drawing examples
...
Add a notebook with an active tab.
Based on a patch by Caolan McNamara.
2016-02-10 21:20:34 -05:00
Caolán McNamara
671552043c
gtk-demo: attempt at a notebook with active box-shadow in tab
2016-02-10 17:26:12 -05:00
Caolán McNamara
701cdda3dc
gtk-demo: Add a menu to foreigndrawing
...
and demo that the block arrows require GTK_STATE_FLAG_DIR_LTR or
GTK_STATE_FLAG_DIR_RTL set to appear
https://bugzilla.gnome.org/show_bug.cgi?id=761828
2016-02-10 16:07:51 -05:00
Matthias Clasen
7ad6043478
gtk-demo: Improve the tag implementation
...
Add margins and make it so that clicking on margins next to
links does not activate them.
2016-02-10 00:07:37 -05:00
Matthias Clasen
5f01e6924f
widget-factory: Update levelbar example
...
Set reasonable level offsets.
2016-02-07 15:05:57 +01:00
Carlos Garnacho
2c0446917d
demos: Modify "Change display" demo to use seat grabs
...
The window picking feature was done through a pointer grab, replace
it by a seat grab on pointing devices.
2016-01-28 12:50:49 +01:00
Emmanuele Bassi
02800033d4
build: Missing build flags
...
The compiler and linker flags variables were renamed in the previous
commit.
2016-01-26 13:32:47 +00:00
Emmanuele Bassi
c8686f0c47
demo: Link against Harfbuzz
...
The font features demo started calling the Harfbuzz API directly
starting from commit 9de3b24c20
. Harfbuzz
is an implicit dependency of Pango on some platforms, but it's not part
of the public dependencies; this means that we cannot expect to link to
Pango and automatically get Harfbuzz symbols to link against —
especially when things like --as-needed are in play.
This change triggered build failures on non-Unix platforms, fixed by
commit 2a9967731a
, as well as build
failures in Continuous, with this error message:
/usr/lib/gcc/x86_64-gnomeostree-linux/4.9.3/../../../../x86_64-gnomeostree-linux/bin/ld:
font_features.o: undefined reference to symbol 'hb_tag_to_string'
//lib/libharfbuzz.so.0: error adding symbols: DSO missing from command
line
collect2: error: ld returned 1 exit status
In order to get the font features demo to build everywhere we should
take an explicit, though optional, check on Harfbuzz, and conditionally
build the font features demo with the right compiler and linker flags.
2016-01-26 11:46:48 +00:00
Chun-wei Fan
2a9967731a
demos: Don't build font features demo on non-UNIX
...
The fonts features demo now uses fontconfig APIs via PangoFT2, which makes
the code not build on non-Linux, so only include this demo in the build
on UNIX.
2016-01-26 15:56:07 +08:00
Matthias Clasen
9de3b24c20
gtk-demo: Expand font features demo
...
Add more features to the list, allow selecting script/language
from the set that is supported by the font, indicate which
features are present in the font for the selected script/language,
and expand the default specimen to cover latin, cyrillic and
greek.
2016-01-25 22:26:21 -05:00
Matthias Clasen
ba582a4a19
One forgotten rename
...
Rename app-menu.ui to menus.ui in EXTRA_DIST too.
2016-01-24 20:10:45 -05:00
Matthias Clasen
792857c7b8
icon browser: Load app menu automagically
...
No need to manually create a builder and pass the resource to it,
just follow the conventions and have GtkApplication do it for us.
2016-01-24 20:01:33 -05:00
Matthias Clasen
873a024f5b
widget-factory: Add a color editor example
2016-01-23 22:30:59 -05:00
Matthias Clasen
770e308c9e
widget-factory: Ensure spinbuttons are sized right
...
GtkEntry now respects the padding set by the theme, so we
need to ask the spin buttons to show 2 characters, otherwise
they will be clipped.
2016-01-23 18:16:51 -05:00
Matthias Clasen
e1068255b3
gtk-demo: Fix font features sources
...
The resources had the prefix, causing the ui file not
to show up.
2016-01-19 22:47:19 -05:00