summaryrefslogtreecommitdiff
path: root/docs
Commit message (Collapse)AuthorAgeFilesLines
* docs: Remove focus_tracking.txtTimm Bäder2020-02-201-161/+0
| | | | All the info in there is outdated and not useful.
* docs: Remove developers.txtTimm Bäder2020-02-201-60/+0
| | | | | Everything in there has either been removed in the past or is outdated information.
* docs: Remove dnd_internals.txtTimm Bäder2020-02-201-205/+0
| | | | This is either already completely outdated or will be soon.
* stack: Add GtkStackPage:visible accessorsTimm Bäder2020-02-201-2/+4
|
* Merge branch 'wip/xdg-popup-async-relayout' into 'master'Benjamin Otte2020-02-191-1/+3
|\ | | | | | | | | Synchronous popup layout See merge request GNOME/gtk!1241
| * gdk/surface: Replace move_to_rect() with GdkPopupLayout based APIJonas Ådahl2020-02-191-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the gdk_surface_move_to_rect() API with a new GdkSurface method called gdk_surface_present_popup() taking a new GdkPopupLayout object describing how they should be laid out on screen. The layout properties provided are the same as the ones used with gdk_surface_move_to_rect(), except they are now set up using GdkPopupLayout. Calling gdk_surface_present_popup() will either show the popup at the position described using the popup layout object and a new unconstrained size, or reposition it accordingly. In some situations, such as when a popup is set to autohide, presenting may immediately fail, in case the grab was not granted by the display server. After a successful present, the result of the layout can be queried using the following methods: * gdk_surface_get_position() - to get the position relative to its parent * gdk_surface_get_width() - to get the current width * gdk_surface_get_height() - to get the current height * gdk_surface_get_rect_anchor() - to get the anchor point on the anchor rectangle the popup was effectively positioned against given constraints defined by the environment and the layout rules provided via GdkPopupLayout. * gdk_surface_get_surface_anchor() - the same as the one above but for the surface anchor. A new signal replaces the old "moved-to-rect" one - "popup-layout-changed". However, it is only intended to be emitted when the layout changes implicitly by the windowing system, for example if the monitor resolution changed, or the parent window moved.
* | icontheme: Update the apiMatthias Clasen2020-02-181-5/+6
| | | | | | | | | | | | | | | | | | Add properties, and use string arrays instead of lists. Among other things, this renames gtk_icon_theme_list_icons to gtk_icon_theme_get_icon_names. Fixes: https://gitlab.gnome.org/GNOME/gtk/issues/2410
* | dnd: Port the TreeModel machinery to GValue DNDBenjamin Otte2020-02-181-1/+3
| |
* | contentprovider: Add gdk_content_provider_new_typed()Benjamin Otte2020-02-161-0/+1
|/ | | | | Gets around the boilerplate required to create and initialize a GValue by having this function doing it via G_VALUE_COLLECT().
* widget: Add css-classes propertyTimm Bäder2020-02-151-0/+2
| | | | Mirroring the values added and removed via {add,remove}_css_class().
* infobar: Remove _get_{action,content}_area()Timm Bäder2020-02-151-2/+0
| | | | | | Accessors like these are weird to have and we can add widgets to the content area via gtk_container_add() as well as add widgets to the action area via gtk_info_bar_add_action_widget().
* Remove gtk_info_bar_get_content_area() usesTimm Bäder2020-02-151-1/+1
| | | | We can just add() to the info bar directly.
* Drop gdk_surface_new_tempMatthias Clasen2020-02-141-1/+0
| | | | | | GTK is not using this API anymore, and we want to consolidate our surface types to just toplevels and popups.
* window: Remove GtkWindowType and window->typeBenjamin Otte2020-02-141-2/+0
| | | | | And remove code that was making decisions on the type and just use the part for toplevels.
* window: Remove type argument from gtk_window_new()Benjamin Otte2020-02-141-4/+4
|
* widget: Add gtk_widget_get_css_name() APIBenjamin Otte2020-02-141-0/+1
|
* Remove gtk_style_context_get_parent()Emmanuele Bassi2020-02-131-1/+0
| | | | | The function was declared and mentioned in the documentation, but it has been removed in commit 416182a20d062d5865916f86909354ec85d00dd1.
* gdk: Remove gdk_cairo_get_clip_rectangle()Benjamin Otte2020-02-131-1/+0
| | | | | | | | | | | | | The function is fundamentally broken for unbounded surfaces. If a surface is unbounded, we cannot represent this as a cairo_rectangle_int_t, and using the return value doesn't work because it's already used for something else. In GTK3, unbounded surfaces aren't a problem, but GTK4 uses recording surfaces. So better remove that function before we keep using it and using it wrong.
* Merge branch 'mainloop-cleanup' into 'master'Matthias Clasen2020-02-103-9/+17
|\ | | | | | | | | Mainloop cleanup See merge request GNOME/gtk!1404
| * docs: Mention gtk_main in the migration guideMatthias Clasen2020-02-091-0/+13
| |
| * Drop gtk_main and gtk_main_quitMatthias Clasen2020-02-091-2/+0
| | | | | | | | | | The alternatives are to use GtkApplication, or use GMainContext.
| * Stop using gtk_main and gtk_main_quitMatthias Clasen2020-02-091-1/+2
| | | | | | | | Replace these calls with direct use of GMainContext api.
| * Stop using gtk_main_quitMatthias Clasen2020-02-091-2/+2
| | | | | | | | | | Stop using gtk_main and gtk_main_quit in tests and examples. These APIs are on the way out.
| * Drop gtk_main_levelMatthias Clasen2020-02-091-1/+0
| | | | | | | | | | This api isn't useful without gtk_main, which is also on the way out.
| * Drop gtk_main_iterationMatthias Clasen2020-02-091-2/+0
| | | | | | | | | | | | This function and its cousin, gtk_main_iteration_do, are thin wrappers around GMainContext api that should just be used directly.
| * Drop gtk_events_pendingMatthias Clasen2020-02-091-1/+0
| | | | | | | | | | This was just a thin wrapper around gtk_main_context_pending, which should be used directly instead.
* | Merge branch 'icon-theme-api-rework' into 'master'Alexander Larsson2020-02-101-2/+3
|\ \ | | | | | | | | | | | | Icon theme api rework See merge request GNOME/gtk!1390
| * | Expose gtk_icon_paintable_new_for_fileAlexander Larsson2020-02-101-0/+1
| | |
| * | icon paintable: Replace get_filename and get_resource_path with get_file()Alexander Larsson2020-02-101-2/+1
| | | | | | | | | | | | This returns a GFile which can represent both the above.
| * | Add gtk_icon_paintable_get_resource_path()Alexander Larsson2020-02-061-0/+1
| | | | | | | | | | | | | | | Also, return NULL from gtk_icon_paintable_get_filename() if the path is really a resource path.
| * | Add gtk_icon_paintable_get_icon_name()Alexander Larsson2020-02-061-0/+1
| | | | | | | | | | | | This allows you to see which icon was actually chosen.
| * | Remove gtk_icon_paintable_download_texture() public APIAlexander Larsson2020-02-061-1/+0
| | | | | | | | | | | | | | | | | | This allows us do do what we want internally, and anyway it didn't really do what you'd expect anymore now that we do resizing during rendering.
* | | Remove GTK_DEBUG=baselinesMatthias Clasen2020-02-101-4/+0
| |/ |/| | | | | | | This has been reimplemented differently in the inspector.
* | Remove gtk_propagate_event from public APIMatthias Clasen2020-02-092-3/+1
| | | | | | | | | | This is not a function that can be safely called outside of GTK.
* | Remove gtk_main_do_event from the docsMatthias Clasen2020-02-091-1/+0
| |
* | docs: Remove a reference to gtk_main_do_eventMatthias Clasen2020-02-091-6/+44
| | | | | | | | | | | | | | It is not great to put a function in the public api and document it as "do not call this" only so we can refer to its docs in other places. Therefore, fold the docs directly into the input handling overview chapter.
* | Merge branch 'wip/baedert/remove-outline-properties' into 'master'Matthias Clasen2020-02-091-43/+0
|\ \ | | | | | | | | | | | | | | | | | | css: Remove outline border radius properties Closes #2414 See merge request GNOME/gtk!1402
| * | css: Remove outline border radius propertiesTimm Bäder2020-02-081-43/+0
| | | | | | | | | | | | | | | | | | | | | | | | These are always set to the same value as the corresponding border radius properties. They are also non-standard, so remove them and replace them with the border radius properties everywhere. Fixes #2414
* | | gsk: Update docs sectionsMatthias Clasen2020-02-081-2/+1
| | |
* | | docs: Drop a few no longer existing symbolsMatthias Clasen2020-02-081-3/+0
| | |
* | | docs: Update the switch thumbnailMatthias Clasen2020-02-081-0/+0
| | | | | | | | | | | | | | | Make the thumbnail for switches reflect the current appearance of this widget.
* | | Fix build with -Dgtk_doc=trueMatthias Clasen2020-02-081-26/+0
|/ / | | | | | | | | Toolbars were removed, so don't try to create thumbnails of them.
* | Update migrating-3to4.xmlJ Arun Mani2020-02-071-1/+1
| |
* | Rename gtk_widget{get,set,has}_style_class to _css_classTimm Bäder2020-02-071-3/+3
| | | | | | | | We want to use css instead of style everywhere now.
* | calendar: Remove detailsTimm Bäder2020-02-071-8/+0
| | | | | | | | | | | | | | This is an unused feature that's way too complicated for a default calendar widget and complicates the implementation a lot. Since we want to eventually replace this with actual widgets, remove the details support now.
* | GtkToolbar: removeBenjamin Otte2020-02-075-241/+9
| |
* | css: Remove .primary-toolbarBenjamin Otte2020-02-071-1/+0
| | | | | | | | It's not used anywhere anymore.
* | css: Remove .inline-toolbarBenjamin Otte2020-02-071-1/+0
|/ | | | It's not used anywhere anymore.
* Merge branch 'public-emojichooser' into 'master'Matthias Clasen2020-02-053-0/+19
|\ | | | | | | | | emojichooser: Make public See merge request GNOME/gtk!1382
| * emojichooser: Make publicMatthias Clasen2020-02-033-0/+19
| | | | | | | | | | | | | | | | This is a useful widget to have, and it has minimal api. Not having it public forces apps to recreate a lot of complicated machinery for not good reason, if they need an Emoji chooser in a different context.