Matthias Clasen
979a7e8afa
Remove an unused struct
...
Positive side-effect: visual c no longer has an empty struct
to complain about.
2018-05-27 11:57:49 -04:00
Timm Bäder
d638ff3afa
popover: Fix setting priv->button_pressed in ::event handler
...
There were two cases in that if/else cascade handling the
event_type == GDK_BUTTON_PRESS case, so priv->button_pressed never got
set.
2018-05-27 17:51:51 +02:00
Matthias Clasen
f9875040c6
Merge branch 'master' into 'master'
...
icontheme: Keep dir_mtimes in order
Closes #1115
See merge request GNOME/gtk!161
2018-05-27 15:50:17 +00:00
Timm Bäder
7f9cd9f9d9
filechooserwidget: Don't chain up in ::event
...
GtkWidgetClass.event is NULL.
2018-05-27 16:20:55 +02:00
Matthias Clasen
d561e52cde
a11y: Stop using ::event
...
We can just as well use notify::has-focus for the purpose of
focus tracking, and we can at the same time avoid emitting the
deprecated AtkObject::focus-event signal.
2018-05-26 08:46:06 -04:00
Daniel Boles
e7809f43ec
SpinButton: Fix an obviously wrong arg description
...
:climb-rate is not about what you get when you single-click on a button,
as this implied: it's what happens if you hold down a button or a key.
Fix the description of @climb_rate to new(), and while here, mention the
key in the blurb of :climb-rate itself.
2018-05-26 01:06:00 +01:00
Jan Alexander Steffens (heftig)
1e06838c1c
icontheme: Keep dir_mtimes in order
...
Don't reverse the order each time we insert a theme. Reverse it only
once, after all themes have been loaded.
Fixes https://gitlab.gnome.org/GNOME/gtk/issues/1115
2018-05-23 20:06:01 +02:00
Matthias Clasen
4bb3ac3e81
Merge branch 'kill-key-events' into 'master'
...
Kill key events
See merge request GNOME/gtk!160
2018-05-23 01:55:05 +00:00
Matthias Clasen
8746322d53
Drop the ::key-press/release-event signals
...
These are the last event-type specific signals,
we are just relying on the generic ::event signal now.
2018-05-21 20:20:55 -04:00
Matthias Clasen
85922f6090
treeview: Stop using ::key-press-event
...
Use a generic ::event handler instead.
2018-05-21 20:20:49 -04:00
Matthias Clasen
ec2d0edd79
spin button: Stop using ::key-release-event
...
Just use the generic ::event signal.
2018-05-21 20:20:43 -04:00
Matthias Clasen
b63def0865
font chooser dialog: Stop using ::key-press-event
...
Use the generic ::event instead.
2018-05-21 20:20:33 -04:00
Matthias Clasen
6084a7ea89
button: Stop using ::key-release-event
...
Use the generic ::event signal instead.
2018-05-21 20:20:24 -04:00
Matthias Clasen
c78166e190
file chooser widget: Stop using ::key-press-event
...
Use a generic ::event handler instead.
2018-05-21 20:20:18 -04:00
Matthias Clasen
576dcf65b3
file chooser entry: Stop using key-press-event
...
Just use the generic ::event signal for now.
2018-05-21 20:20:12 -04:00
Matthias Clasen
7644a9cd72
entry: Stop using ::key-press-event
...
Use a generic ::event handler instead.
2018-05-21 20:20:06 -04:00
Daniel Boles
acd05d09aa
StyleContext: Don't advise using invalidate()
...
It doesn't exist anymore! Also, set_display() is not needed/used in the
demo cited, and we were still referring to gtk3-demo, not gtk4-demo.
2018-05-21 23:39:47 +01:00
Daniel Boles
19ed1b92b0
Range: Up should only mean ++ if we are a GtkScale
...
The last round of patches to get the desired direction of value move in
response to scrolls/keypresses on scales had the inadvertent side effect
of giving the opposite direction on scrollbars. Seeing as gtkrange.c is
already a collection of hacks, add another so that fix only holds if the
instance is a GtkScale, since that is what those patches were aimed at.
Close https://gitlab.gnome.org/GNOME/gtk/issues/1065
2018-05-21 20:21:25 +01:00
Matthias Clasen
33b8f087a3
emoji completion: Stop using key-press-event
...
The generic ::event signal will do.
2018-05-19 23:36:10 -04:00
Matthias Clasen
287c900bdb
Remove key-press-event from more docs
...
This signal will be going away, so stop mentioning it so much.
2018-05-19 23:36:01 -04:00
Matthias Clasen
824bbf3117
popover: Drop key_press_event handler
...
We can do the same in the generic ::event handler.
2018-05-19 23:20:53 -04:00
Matthias Clasen
7928532bc5
emoji: Hide recent section when empty
...
This is part of https://gitlab.gnome.org/GNOME/gtk/merge_requests/143
by Julian Sperber.
2018-05-19 22:53:24 -04:00
Timm Bäder
3edd24fb01
widget: Properly remove event controllers in finalize
...
We were mutating the list while iterating over it. This was not a
problem before since remove_controller just set the controller pointer
to NULL instead of actually removing it from the list of controllers.
2018-05-19 23:03:32 +02:00
Timm Bäder
0aad5da1b3
widget: Remove controller sequence-state-changed signal connection
...
We can avoid a signal connection per event controller (and the
EventControllerData struct) since every event controller knows the
widget it's attached to.
2018-05-19 10:18:50 +02:00
Timm Bäder
8f289227aa
searchbar: Add missing GDK_AVAILABLE_IN_ALL marker
2018-05-19 10:18:50 +02:00
Timm Bäder
662e2b1641
snapshot: Remove superfluous typedef
...
We're already doing this in gtktypes.h
Fixes #214
2018-05-19 10:18:50 +02:00
Timm Bäder
5ff4ef14e6
widget: Directly notify gestures of grab
...
Since each widget has a list of event controllers now, we don't need to
connect to ::grab-notify of the widget for every controller.
2018-05-19 10:18:50 +02:00
Timm Bäder
f13cccd042
widget: Fix measure docs
...
Fix a typo and don't ever pass NULL to a ::measure() implementation.
2018-05-19 10:18:50 +02:00
Timm Bäder
a0d0b52034
scrollbar: Remove get_wheel_delta
...
Unused and undocumented.
2018-05-19 10:18:50 +02:00
Timm Bäder
caaa3f8200
cssvalue: Remove typechecks
...
This path is more than hot and those type checks ruin any kind of real
life profiling.
2018-05-19 10:18:50 +02:00
Matthias Clasen
84364a7ef4
emoji: Improve section scrolling
...
Leave some space above the section heading when scrolling.
This is a part of https://gitlab.gnome.org/GNOME/gtk/merge_requests/143
by Julian Sperber.
2018-05-17 16:42:00 +01:00
Matthias Clasen
1d368b0cd8
Merge branch 'paste-scrolling' into 'master'
...
textview: Don't scroll for pastes in another view
See merge request GNOME/gtk!152
2018-05-17 09:48:36 +00:00
Chun-wei Fan
9332237bd4
gtkemojicompletion.c: Don't use g_autoptr()
...
This code is also built with non-GCC/non-CLang compilers, so don't use a
GCCism here.
2018-05-15 13:49:45 +08:00
Matthias Clasen
71718b9cd1
textview: Don't scroll for pastes in another view
...
GtkTextView scrolls to the insertion point when the text
buffer signals a paste is done. This is wrong when there
are multiple views on the same buffer, and the paste
happened in another view.
To fix this, flip the handling of the scroll_after_paste
boolean to only be TRUE if we know that we want to scroll.
2018-05-14 13:03:34 +01:00
Mohammed Sadiq
9a79b090df
appchooserdialog: Fix memory leak
2018-05-13 14:57:04 +05:30
Mohammed Sadiq
b59a8c2911
appchooserdialog: Don't fire notify::heading twice
...
The gtk_app_chooser_dialog_set_heading() function do emit
notify::heading. Since the setter simply calls the function,
the setter itself shouldn't emit a notify signal by itself.
2018-05-13 14:56:49 +05:30
Mohammed Sadiq
0cd9ef8bcf
aboutdialog: Fix memory leak
2018-05-13 14:56:34 +05:30
Mohammed Sadiq
1f82697e99
video: Fix memory leak
2018-05-13 14:56:22 +05:30
Mohammed Sadiq
14e5218753
snapshot: Fix typo in documentation comment
2018-05-12 09:31:32 +05:30
Mohammed Sadiq
8410d87eb5
label: Rearrange struct members
...
Rearranging so can save us 8 bytes per GtkLabel
on 32/64 bit aligned memory.
Not a big count, but we get it for free.
2018-05-11 16:10:03 +05:30
Mohammed Sadiq
3c7ea78d68
textview: Always show select-all button in touch popup
...
"Select all" action is possible regardless of the text selection state
or if the text is editable or not.
2018-05-11 16:09:57 +05:30
Mohammed Sadiq
b73857faa9
textview: Reset bubble source id once run
...
The bubble_timeout_id was reset only on some special case.
And so warnings were shown when the source is being tried
to be removed with the already removed id.
Fix this by unconditionally resetting the id on start of the function.
2018-05-11 16:09:50 +05:30
Mohammed Sadiq
8e0cc8169e
textview: Simplify creating bubble action buttons
...
Buttons can be created simply with gtk_button_new_from_icon_name().
2018-05-11 16:09:44 +05:30
Mohammed Sadiq
33bacb4150
widget: Avoid an unnecessary check
...
The preceding loop terminates when either the widget is NULL,
or if their type matches. There is no reason to check that again
2018-05-11 16:09:38 +05:30
Robert Ancell
e95eeaeef1
Fix comment typo introduced in a32725bc9a
2018-05-09 11:28:53 +12:00
Matthias Clasen
f5a2ab38f3
Miscellaneous docs improvements
...
Just the usual pre-release doc fixups.
2018-05-07 07:47:18 -04:00
Daniel Boles
e1f1fe9ba6
MediaStream: Fix capitalisation of two new %TRUEs
2018-05-06 21:46:30 +01:00
Matthias Clasen
79e54929a2
Add more media docs
2018-05-06 15:57:10 -04:00
Matthias Clasen
7fdf3d1769
Fixes to the gtk docs
2018-05-05 18:03:31 -04:00
Daniel Boles
901aa59b5b
GesturePan: Remove widget parameter from docs, too
...
71991270b0 (note_112519)
2018-05-05 10:51:24 +01:00