summaryrefslogtreecommitdiff
path: root/gtk
Commit message (Collapse)AuthorAgeFilesLines
* Stop loading moduleswip/matthiasc/kill-modulesMatthias Clasen2018-02-178-544/+0
| | | | | Stop loading modules. We still support print backends and immodules, but general-purpose modules are going away.
* TextLayout: Clarify implementation of special caseDaniel Boles2018-02-171-5/+1
| | | | | | | | | | | | This exists to exit early for invisible lines. It attempts to use the LineDisplay’s direction to create a corresponding PangoLayout. However, the dir is not yet set by this point, & the display was new0()d, so its dir is always 0 == TEXT_DIR_NONE. Thus, we always create an LTR layout. Whatever the original intent, this outcome seems to be OK, so let’s make the code say what it means, rather than using a misleading conditional. https://bugzilla.gnome.org/show_bug.cgi?id=779099
* calendar: Avoid warnings for new "%OB" formatMatthias Clasen2018-02-171-3/+21
| | | | | | Use the same code we have in gtk-3-22 to deal with strftime() not supporting %OB, and avoid compiler warnings for non-literal format strings.
* cssimage: Get rid of draw vfuncBenjamin Otte2018-02-175-63/+43
| | | | | | | | | All remaining users of that vfunc now implement snapshot using cairo render nodes (win32 and radial). Also, GtkCssImageClass.snapshot is now NULL, so if a subclass doesn't implement it, it will now crash. Previously it would try to call the draw vfunc.
* adwaita: Move searchbar style to box childTimm Bäder2018-02-163-11/+19
| | | | | | | This way, we avoid a 1px border at the bottom of the actual searchbar widget and move it instead to the child of a GtkRevealer. Since we can now use widgets with 0px height, we finally get rid of the 1px border that was drawn even if the searchbar child was hidden.
* gtksettings: Remove leftover codeCarlos Garnacho2018-02-161-5/+0
| | | | The immodule variable is unused
* textview: Implement measure()Timm Bäder2018-02-161-92/+26
| | | | | | Don't use the current layout size as minimum size anymore, that doesn't make sense. Also move the code from size_request() from gtk2 into the now current measure() function.
* gtkbookmarksmanager: Use GTK+ 3.0's bookmarks fileBastien Nocera2018-02-151-1/+5
| | | | | | | | | There's no reason to use a separate file until the format of the file changes though, as this just means that GTK+ 3.x and GTK+ 4.x applications would end up showing different bookmarks in the file chooser. https://bugzilla.gnome.org/show_bug.cgi?id=793425
* gtkplacessidebar: Rename favorites to starredCarlos Soriano2018-02-151-2/+2
| | | | | To have more consistency in the name. The same was done in Nautilus in commit https://gitlab.gnome.org/GNOME/nautilus/commit/27b039b37c1149fc8abbef6a683dd939e6f2bf1f.
* Merge branch 'master' into 'master'Matthias Clasen2018-02-151-2/+3
|\ | | | | | | | | | | | | calendar: Use the new "%OB" format in strftime() Closes #9 See merge request GNOME/gtk!10
| * calendar: Use the new "%OB" format in strftime()Rafal Luzynski2018-02-131-2/+3
| | | | | | | | | | | | | | | | | | | | | | Due to the recent changes introduced in glibc 2.27 "%OB" is the correct format to obtain a month name as used in the calendar header. The same rule has been working in BSD family (including OS X) since 1990s. This change is simple but makes GTK+ 4.x require glibc >= 2.27. If this requirement cannot be fulfilled then we must cherry-pick the full commit cbf118c from gtk-3-22 branch. Closes: #9
* | Merge branch 'wip/carlosg/imwayland' into 'master'Matthias Clasen2018-02-152-0/+28
|\ \ | |/ |/| | | | | modules: Add wayland IM implementation See merge request GNOME/gtk!4
| * modules: Add wayland IM implementationwip/carlosg/imwaylandCarlos Garnacho2018-02-132-0/+28
| | | | | | | | | | This IM context implementation goes through the gtk-text-input protocol, leaving up to the compositor the actual interaction with IM engines.
* | cssprovider: Remove priv pointerTimm Bäder2018-02-132-33/+26
| |
* | menu: Remove an incorrect commentTimm Bäder2018-02-131-2/+0
|/ | | | They are not missing, they are snapshot when chaining up.
* treemenu: Remove unused definesBenjamin Otte2018-02-131-5/+0
|
* Drop method annotation for gtk_drag_cancel()Emmanuele Bassi2018-02-121-1/+1
| | | | | | | | | The other method annotations were removed in commit c306e448b32e. There is no introspected ABI change, as g-ir-scanner would just ignore the annotation. This eliminates the last warning when building GTK on Linux.
* build: Allow using introspection from subprojectsEmmanuele Bassi2018-02-121-4/+29
| | | | | | When building dependencies as subprojects we need to tell the introspection scanner where to find the introspection data; this means using GIR targets from the subproject.
* Fix overzalous method annotations for drag and dropAlban Browaeys2018-02-121-8/+8
| | | | | | | | | | | | | | | | | | | | Functional revert of commit 9c4892f2915. Fixes introspection scanner warnings like: Warning: Gtk: gtk_drag_finish: Methods must belong to the same namespace as the class they belong to That is, the gtk_drag_* functions cannot be methods as they have a "GdkDragContext" as the instance parameter, and that is not a valid type for the Gtk namespace. This is not an introspected ABI change, as the generated introspection data ignores the annotation. Signed-off-by: Emmanuele Bassi <ebassi@gnome.org> https://bugzilla.gnome.org/show_bug.cgi?id=692152
* build: Use GIR targets for built introspection dataEmmanuele Bassi2018-02-121-13/+8
| | | | | | Instead of using `--include-uninstalled` in the scanner arguments, we can tell Meson to use an introspection target, and it'll do the appropriate thing for us.
* menu: Guard against NULL toplevelTimm Bäder2018-02-091-5/+8
| | | | | This can happen, as indicated by GtkMenu explicitly connecting to ::destroy of its toplevel window. Do the same thing in GtkComboBox.
* box: Remove an unnecessary includeTimm Bäder2018-02-091-1/+0
|
* box: Rename private pointers to "priv"Timm Bäder2018-02-091-67/+67
| | | | Which is the style we use everywhere else.
* box: Simplify size_allocateTimm Bäder2018-02-091-7/+7
| | | | Stop looking at the box allocation position since both x and y are 0.
* box: Use widget child list when computing size requestTimm Bäder2018-02-091-69/+50
| | | | | | | Contrary to what the comments in this function might suggest, it does not actually do anything about child positions, child child sizes. So, packing doesn't matter and we don't need to iterate over all child widgets twice.
* box: Use widget child list in compute_size_for_orientationTimm Bäder2018-02-091-12/+8
| | | | | | And remove the non-NULL checks for minimum_size and natural_size since these are non-NULL by definition since this function is only called from measure().
* inspector: Remove gtk.h includeBenjamin Otte2018-02-096-14/+23
|
* a11y: Remove gtk.h include from iconview headerBenjamin Otte2018-02-093-18/+21
|
* a11y: Remove gtk.h include from lockbuttonBenjamin Otte2018-02-093-2/+7
|
* a11y: Remove gtk/h include from menu headerBenjamin Otte2018-02-092-17/+18
|
* a11y: Remove gtk.h include from listbox headersBenjamin Otte2018-02-094-9/+16
|
* a11y: Remove gtk.h from flowbox includesBenjamin Otte2018-02-093-6/+15
|
* a11y: Remove gtk.h include from container accessibleBenjamin Otte2018-02-0919-199/+254
|
* a11y: Remove gtk.h includeBenjamin Otte2018-02-085-9/+23
|
* a11y: Don't include gtk.hBenjamin Otte2018-02-0813-125/+163
| | | | | Also add missing includes and sort them for all the widgets that relied on that before.
* shortcuts: Don't include gtk.hBenjamin Otte2018-02-0810-18/+54
| | | | | Clean up all shortcuts includes to only include the necessary files while we're at it.
* pointerfocus: Don't include gtk.hBenjamin Otte2018-02-085-18/+19
| | | | | Also fix up gtktypes.h to include the required glib.h for G_BEGIN_DECLS and gtkdnd.c to include missing includes.
* cellrendereraccel: unref sizing_labelTimm Bäder2018-02-061-1/+15
|
* notebook: Remove another event type checkTimm Bäder2018-02-061-3/+0
| | | | | Just like 3d65019e98dabc0e2f443d981590983e618dda44, but for release events.
* separatormenuitem: Don't create label widget in get_labelTimm Bäder2018-02-061-0/+9
| | | | | | Calling gtk_menu_item_get_label on a GtkSeparatorMenuItem would otherwise create a GtkLabel child, increasing the vertical size request to that of the child label.
* The big versioning cleanupMatthias Clasen2018-02-06317-6172/+799
| | | | | | | Remove all the old 2.x and 3.x version annotations. GTK+ 4 is a new start, and from the perspective of a GTK+ 4 developer all these APIs have been around since the beginning.
* cssprovider: Use g_file_load_bytes()Benjamin Otte2018-02-051-6/+11
| | | | | | This way, we get a special no-copy case for resources. https://bugzilla.gnome.org/show_bug.cgi?id=790270
* Drop gtk_widget_show_nowMatthias Clasen2018-02-042-50/+0
| | | | | This function does bad things, and is not an API that we want to take into GTK+ 4.
* treeview: Stop using gtk_widget_show_nowMatthias Clasen2018-02-041-1/+1
| | | | If this is a problem, it needs to be handled explicitly.
* searchbar: reorganizeTimm Bäder2018-02-045-98/+96
| | | | | | | | Avoid the ugly priv->tool_box==NULL check in ::add (and ::remove) by just not using template xml for this small class. Also, make sure the GtkBin child is properly set and implement remove to also properly remove it. Remove the manual widget margins and add some CSS for it. Also switch to simply using a GtkCenterBox.
* searchbar: Properly remove child widgetsTimm Bäder2018-02-041-0/+18
| | | | | Since the GtkSearchBar is not the direct parent, we need to remove them properly from priv->box_center.
* searchbar: Remove unused widgetsTimm Bäder2018-02-041-35/+10
| | | | both box_left and box_right are unused.
* glarea: Fix precondition checkTimm Bäder2018-02-041-1/+1
| | | | and the build.
* glarea: Simplify make_currentTimm Bäder2018-02-041-5/+1
| | | | We only use the widget pointer here once.
* rbtree: Privatize headerBenjamin Otte2018-02-036-13/+8
| | | | | | | According to meson it's the only private header that doesn't conform to the *private.h naming. Fix that.