Matthias Clasen
7dabc2a42c
Merge branch 'master' into 'master'
...
widgetfactory: add separator tool item to presentation
See merge request GNOME/gtk!249
2018-07-19 18:06:25 +00:00
Günther Wutz
1d4ce5a544
widgetfactory: add separator tool item to presentation
2018-07-17 21:50:19 +02:00
Benjamin Otte
cbb1e74bb5
textview: Only create cairo context in gtktextdisplay.c
...
Everything else is done using GtkSnapshot now, including renaming the
draw_layer vfunc to snapshot_layer.
2018-07-14 05:27:54 +02:00
Benjamin Otte
2f72353e0e
gtk-demo: Update aspect-ratio when selecting new puzzle
2018-07-13 14:56:04 +02:00
Timm Bäder
2cc6a3ee5c
widget factory: Use GtkPicture for background selection
...
Showing those background images as 16×16 icons doesn't look very nice.
2018-07-08 21:50:59 +02:00
Timm Bäder
96812450fa
listbox demo: Hide extra_buttons_box by default
...
It should only show up when hovering the row.
2018-07-08 09:41:15 +02:00
Matthias Clasen
7733f646d6
gdk: Rename GdkDragContext to GdkDrag
...
This is to go along with the newly introduced GdkDrop.
This commit includes the necessary updates to the X11, Wayland
and Broadway backends. Other backends have to be updated separately.
2018-07-02 14:59:26 +02:00
Carlos Garnacho
e08e15ba51
gtkentry: Use gestures for entry icons
...
Instead of doing all handling manually in the ::event vfunc,
set up drag/multipress gestures on icon images, and implement
emission of ::icon-press/release and DnD there.
As a side effect, the GdkEvent field in ::icon-press/release
signals has been dropped. Callers that might be interested on it
may still use gtk_get_current_event*().
2018-06-21 12:50:57 +02:00
Benjamin Otte
9a91d3739d
widget: Remove time argument from drag_data_get() vfunc
2018-06-18 23:49:53 +02:00
Benjamin Otte
6d7cb2b781
dnd: Make drag-data-received use a GdkDrop
2018-06-18 23:49:52 +02:00
Руслан Ижбулатов
10b2f6540a
Fix wrong format strings in various places
2018-06-10 21:20:59 +00:00
Benjamin Otte
896f72d33b
gtk-demo: Use GtkImages to select the puzzle
2018-06-10 02:25:55 +02:00
Benjamin Otte
7690c2d042
gtk-demo: Make sliding puzzle demo use GtkPicture
2018-06-10 02:25:28 +02:00
Benjamin Otte
cbd47fa770
gtk-demo: Port images demo to use a GtkPicture in places
2018-06-10 02:23:02 +02:00
Matthias Clasen
9d48a95d9a
puzzle: fix some compiler warnings
...
These slipped under the radar, sorry.
2018-06-09 19:39:43 -04:00
Matthias Clasen
1ee23d0d49
puzzle: Add mouse support
...
Make it so that clicking on a puzzle piece moves enough
pieces to move the empty space there, if it is possible.
2018-06-07 21:47:30 -04:00
Matthias Clasen
ebf042d305
puzzle: Use plain labels
...
The previous code looked cool in the UI, but was too much
of a hack in the code.
2018-06-07 21:47:30 -04:00
Matthias Clasen
a849ffbd79
Add tweaks
...
Allow setting the puzzle size, and allow chosing between
the rose and the radioactive animation. Change the default
size to 3. 6 is just too hard.
2018-06-07 21:47:30 -04:00
Matthias Clasen
547d63d56a
puzzle: Add a reshuffle button
2018-06-07 21:47:30 -04:00
Matthias Clasen
ddad5c3ce9
Keep aspect ratio of the image
...
Since we don't have a good way to control the window size tightly,
make the content keep aspect ratio.
2018-06-07 21:47:30 -04:00
Benjamin Otte
b6c8943bbf
demo: Add the sliding puzzle demo
2018-06-07 21:47:30 -04:00
Benjamin Otte
7e574fa98c
gdk: Get rid of gdk_event_free()
...
Events are objects, so use g_object_unref().
2018-05-29 21:53:44 +02:00
Matthias Clasen
46da8a031b
gtk-demo: Avoid key-press-event
2018-05-19 23:28:44 -04:00
Timm Bäder
f71b2ee79f
gestures demo: widget property is not writable
...
Use gtk_widget_add_controller instead.
2018-05-19 10:18:50 +02:00
Mohammed Sadiq
67becb4510
icon-browser: Fix typo in description
...
This is shown as tooltip-text
2018-05-07 20:50:27 +05:30
Matthias Clasen
1dcb76bc26
Merge branch 'wip/carlosg/controller' into 'master'
...
carlosg/controller
See merge request GNOME/gtk!131
2018-05-01 12:35:53 +00:00
Matthias Clasen
422262436b
Fix the modelbutton demo _again_
...
It lost the action-target properties again.
2018-04-30 20:49:34 -04:00
Benjamin Otte
aca20dbb78
gtk-demo: Always have at least 1 icon in the fishbowl
...
When changing the widget type, don't start out with 0 icons.
2018-04-27 14:32:28 +02:00
Carlos Garnacho
3675f9ccb2
gesturestylus: Port to new API model
2018-04-26 17:59:42 +02:00
Carlos Garnacho
15e00759c7
eventcontrollerkey: Port to new API model
2018-04-26 17:59:42 +02:00
Benjamin Otte
c5f12a7326
padcontroller: Port to new API model
2018-04-26 17:59:42 +02:00
Benjamin Otte
1e6eb1f8b9
draggesture: Port to new API model
2018-04-26 17:59:42 +02:00
Benjamin Otte
bf82149271
longpressgesture: Port to new API model
2018-04-26 17:59:42 +02:00
Benjamin Otte
4ddc94b293
multipressgesture: Port to new API model
2018-04-26 17:59:42 +02:00
Benjamin Otte
66223aaa08
swipegesture: Port to new API model
2018-04-26 17:59:41 +02:00
Benjamin Otte
91efa37fcb
zoomgesture: Port to new API model
2018-04-26 17:59:41 +02:00
Benjamin Otte
703d5340f1
rotategesture: Port to new API model
2018-04-26 17:59:41 +02:00
Benjamin Otte
c2ec738a2e
widget-factory: Put gesture into ui file
2018-04-26 17:59:41 +02:00
Benjamin Otte
2210b9a302
gtk-demo: Merge widgetbowl into fishbowl
2018-04-24 21:55:37 +02:00
Benjamin Otte
aa2f415283
demo: Clean up GtkFishbowl widget
...
1. Remove set_icons property
2. Make it a GtkWidget subclass
3. Add gtk_fishbowl_set_creation_func()
4. Make the widgetbowl use the new benchmarking infrastructure of the
fishbowl
2018-04-24 21:55:37 +02:00
Benjamin Otte
db5b8ca997
demo: Move benchmarking implementation to fishbowl widget
2018-04-24 21:55:37 +02:00
Benjamin Otte
73b4a62f51
snapshot: Redo debug messages
...
Instead of every snapshot function having debug messages, have an
explicit gtk_snapshot_push_debug() function that appends a debug node.
2018-04-24 04:06:58 +02:00
Matthias Clasen
f0f2dd743f
widget-factory: add emoji completion to an entry
2018-04-23 18:54:43 -04:00
Ting-Wei Lan
2a87caf529
gtk-demo, testgtk: Don't pass an integer to fabs
...
It looks like a mistake which compilers are likely to warn.
2018-04-23 18:54:43 -04:00
Benjamin Otte
c5bcc47ce7
demo: Don't add more icons all the time
...
If adding new icons takes longer than a second, the frame clock should
run before we add even more icons...
2018-04-22 02:57:47 +02:00
Benjamin Otte
9cecf123f3
widget-factory: Use a pixbuf instead of a surface
...
This gets rid of the last user of
gdk_cairo_surface_create_from_pixbuf().
2018-04-12 14:03:58 +02:00
Timm Bäder
b7f98314a5
widgetbowl: Add switch demo
2018-04-06 08:24:19 +02:00
Benjamin Otte
fb33110fd1
gtk-demo: Redo viewing of resources
...
1. Don't rely on GtkImage as a detector of file type anymore.
Instead, hardcode all extensions that are in use.
2. Add a display method for videos.
2018-04-06 00:44:18 +02:00
Matthias Clasen
21d1ab42d1
icon-browser: Stop using ::key-press-event
2018-04-05 19:26:53 +02:00
Matthias Clasen
918d552472
gtk-demo: Stop using ::key-press-event in font explorer
...
Use a key controller instead. Note that this currently
breaks the handling of Enter, since we activate key bindings
twice, causing us to switch to the label and back.
2018-04-05 19:26:53 +02:00