summaryrefslogtreecommitdiff
path: root/demos
Commit message (Collapse)AuthorAgeFilesLines
* dnd: Remove "delete" argument from gtk_drag_finish()Benjamin Otte2017-12-101-1/+1
| | | | | | | The argument is ignored by anything but X11. It's treated like suggested_action == MOVE. So do that in gtk_drag_finish(), too.
* Fix fallout from the show-close-button renameMatthias Clasen2017-12-085-5/+5
| | | | | I had overlooked ui files. We should really validate those during build.
* Rename GtkHeaderBar::show-close-buttonMatthias Clasen2017-12-074-4/+4
| | | | | | It is about all window buttons, so rename it to ::show-title-buttons. https://bugzilla.gnome.org/show_bug.cgi?id=779862
* Move editing to button releaseMatthias Clasen2017-12-071-7/+24
| | | | This will free up primary button press for drags.
* Make sure stopped spinner stay visibleMatthias Clasen2017-12-061-5/+2
| | | | | This demo needs stopped spinners to be visible, so the user can interact with them.
* Add a Cut menuitem to the dnd demoMatthias Clasen2017-12-061-26/+31
|
* More work on the dnd demoMatthias Clasen2017-12-061-64/+154
| | | | Still no dnd in the drag-and-drop demo...
* Add some copy-paste for widgets demoMatthias Clasen2017-12-051-5/+156
| | | | Not sure this is quite right yet.
* Start a dnd demoMatthias Clasen2017-12-054-0/+125
| | | | Nothing to see yet.
* dnd: Remove x/y coordinates from drag-data-receivedBenjamin Otte2017-12-051-2/+0
| | | | | | This is in preparation of using input streams to show that these coordinates aren't needed most of the time and can otherwise be saved during GtkWidget::drag-drop.
* widgetbowl: Add some more widget typesTimm Bäder2017-12-041-0/+20
|
* icon-browser: Port to new clipboardBenjamin Otte2017-12-031-3/+3
|
* gtk-demo: Port to GdkClipboardBenjamin Otte2017-12-032-44/+51
|
* textview: Redo clipboard handlingBenjamin Otte2017-12-031-6/+6
| | | | | | Instead of using GtkClipboard and handling everything ourselves, we now put GtkTextBuffer into the GdkClipboard and register (de)serializers for text/plain.
* gtk-demo: Port clipboards example to new clipboardBenjamin Otte2017-12-031-17/+44
|
* widget: gtk_widget_get_clipboard => gtk_widget_get_old_clipboardBenjamin Otte2017-12-032-4/+4
| | | | | Just rename the function, so the previous one can be used for the new clipboard.
* Finish conversion of pixbuf cell renderer icon sizeMatthias Clasen2017-12-011-3/+3
| | | | | | | | | | Change the name of the property from stock-size to icon-size, and make it an enum property instead of uint. This makes it impossible to specify invalid numeric values in ui files, and at the same time makes it possible to refer to the existing values by their nick. Fix up the callers.
* widget-factory: Fix up icon size handlingMatthias Clasen2017-12-012-21/+17
| | | | | Make the icon grid on page 2 work with our new approach to icon sizes.
* widgetbowl: Only use one widget typeTimm Bäder2017-12-012-23/+194
| | | | | | | Every added widget having a separate random widget type makes it useless to use the widgetbowl demo for any sort of performance comparison. Instead. use only one widget type for all the moving children but make that changable.
* Use a texture instead of a pixbuf in gtk_render_iconMatthias Clasen2017-11-291-3/+7
| | | | | | This gets rid of more GdkPixbuf in the API. Update all callers.
* textview: Replace pixbufs by texturesMatthias Clasen2017-11-291-3/+6
| | | | | | | | This affects a few apis, such as gtk_text_iter_get_pixbuf, gtk_text_buffer_insert_pixbuf and GtkTextBuffer::insert-pixbuf, which have all been replaced by texture equivalents. Update all callers.
* icon-browser: Stop using gtk_drag_source_set_icon_pixbufMatthias Clasen2017-11-291-5/+1
| | | | We can just use gtk_drag_source_set_icon_name.
* gdk: Make GdkContentFormats immutableBenjamin Otte2017-11-201-1/+1
|
* contentformats: Rename GtkTargetListBenjamin Otte2017-11-201-7/+7
| | | | It's now called GdkContentsFormat
* dnd: Remove GtkTargetEntry and GtkTargetFlagsBenjamin Otte2017-11-201-2/+2
| | | | | | | warning: We don't do any same-app checks anymore so you currently can copy local data into external apps. This will be fixed later.
* gtk-demo: No need to gdk_flush() hereBenjamin Otte2017-11-171-1/+0
| | | | And if there was a need, GDK should have done it.
* selection: Remove the info uintBenjamin Otte2017-11-163-13/+9
| | | | | | | | | Instead of allowing people to pass a uint user-data, insist on them comparing mime types. The user data was a uint instead of a pointer anyway, so uniqueness could not be guaranteed and it caused more issues than it was worth. And that's ignoring the fact that it basically wasn't used.
* Drop gtk_icon_size_lookupMatthias Clasen2017-11-152-6/+2
| | | | | Add a new, private gtk_image_get_image_size to replace it, and update the remaining callers in a suitable way.
* enums: Change GtkIconSize valuesMatthias Clasen2017-11-1510-61/+22
| | | | | The new values are the ones we intend to keep. The old ones had duplicated meanings and nobody knew which one to take.
* image: Remove icon-size argument from icon settersMatthias Clasen2017-11-158-16/+15
| | | | | | | | Instead, add a function gtk_image_set_icon_size() for the cases where overriding the icon size is necessary. Treat icon sizes the same way as pixel sizes, too. So gtk_image_clear() no longer unsets the icon size.
* image: Change gettersBenjamin Otte2017-11-152-3/+2
| | | | | | | | | | | Instead of returning the icon size with them, make gtk_image_get_icon_name() and gtk_image_get_gicon() only return the icon itself. As a benefit, we can turn them into regular getters that return values instead of requiring out parameters. Instead, provide gtk_image_get_icon_size() to query the icon size.
* toolbar: Remove icon sizesBenjamin Otte2017-11-151-2/+0
|
* dnd: Make GtkDragDest and GtkDragSource use GtkTargetListBenjamin Otte2017-11-152-14/+11
| | | | | This gets rid of GtkTargetEntry in the API and consistently uses GtkTargetList.
* clipboard: Consistently use GtkTargetListBenjamin Otte2017-11-151-1/+1
| | | | | Some code was using GtkTargetList, some used GtkTargetEntry and some GtkTargetPair.
* Expand the cursors demo textMatthias Clasen2017-11-051-1/+4
| | | | Explain what why we show each cursor 4 times.
* gtk-demo: Fix popover positioning in popover testBenjamin Otte2017-11-051-7/+4
|
* gtk-demo: Don't use get_allocation()Benjamin Otte2017-11-051-6/+4
| | | | Use get_width()/get_height() instead.
* gtk-demo: Update cursors demoBenjamin Otte2017-11-054-131/+2853
| | | | | | It's all glade-ified, hurray! It also now properly tests image cursors, named cursors and fallbacks. I'm not gonna tell how many bugs I found though.
* textview: Remove GdkWindow usage from the public APIBenjamin Otte2017-11-041-7/+2
| | | | | | A sideeffect is that we don't set the correct parent window on child widgets anymore, but that is hopefully going to be fixed once we get rid of child windows completely.
* gdk: Cursors no longer have a displayBenjamin Otte2017-11-044-9/+5
| | | | | | | Change constructors to reflect that. While doing so, also add a fallback argument to the cursor constructors, so it is now possible to create cursors with fallback.
* gdk: Remove VisibilityNotify eventsBenjamin Otte2017-11-011-1/+0
|
* icon-browser: Centre Copy button in dialog againJulian Sparber2017-10-311-15/+10
| | | | | | | | This patch moves the "Copy to Clipboard" button into the same container as the description label, to centre the button regardless of the number of icons shown in the grid. https://bugzilla.gnome.org/show_bug.cgi?id=789134
* window: Turn gtk_window_set_screen() into gtk_window_set_display()Benjamin Otte2017-10-3148-99/+98
| | | | | | | And have a priv->display instead of a priv->screen. Includes turning gtk_menu_set_screen() into gtk_menu_set_display(), because that function just forwards to its window.
* icontheme: Use GdkDisplay instead of GdkScreenBenjamin Otte2017-10-313-4/+4
|
* stylecontext: Port to use display instead of screenBenjamin Otte2017-10-312-6/+6
|
* gtk-demo: Remove calls to gtk_style_context_reset_widgets()Benjamin Otte2017-10-314-8/+0
| | | | | Those calls have been unneeded for a long time - since we gained the changed signal on the StyleProvider in fact.
* icon-browser: Make non-symbolic icons visible againMatthias Clasen2017-10-251-2/+0
| | | | | The commit that added the scalable size to the details dialog inadvertedly caused all icons to be hidden. No need to do that.
* Drop all uses of GdkPixbufAnimation in the gtk APIsAlexander Larsson2017-10-232-8/+1
| | | | | These are basically animated gifs, and don't fit well in how modern things animate.
* GtkImage: Drop support for storing pixbufsAlexander Larsson2017-10-232-11/+2
| | | | | | | | | | This drops the pixbuf property and the pixbuf getters. We keep gtk_image_new/set_from_pixbuf, but these are small helpers that immediately convert to a surface, and there is no way to later get back the pixbuf you passed in. The from file/resource codepaths are also changed to load a surface instead of a pixbuf.
* gtk-demo: Use surface apis in the clipboard demoMatthias Clasen2017-10-231-31/+33
| | | | | Stop using gtk_drag_set_icon_pixbuf. This api is going away.