]> granicus.if.org Git - handbrake/commit
LinGui: change chapter list to GtkListBox
authorJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 30 Jul 2019 19:51:13 +0000 (12:51 -0700)
committerJohn Stebbins <jstebbins.hb@gmail.com>
Tue, 30 Jul 2019 19:57:17 +0000 (12:57 -0700)
commit69d60676dd59891de96513c9803562bde4c75ac0
tree87de1bf8c047661cfda02e27b2c6f18d2f7695e9
parent29f9a54e005ef8e44791a7f39733deccfe686b35
LinGui: change chapter list to GtkListBox

GtkListBox is more flexible than GtkTreeView.  It is possible now to
process key press events without creating a custom text cell renderer.

Also due to the way event handling changes in GTK4, it was no longer
even possible to create a custom cell renderer that can process key
events. So this GtkListBox implementation is compatible with GTK4.
13 files changed:
gtk/src/Makefile.am
gtk/src/callbacks.c
gtk/src/callbacks.h
gtk/src/chapters.c [new file with mode: 0644]
gtk/src/chapters.h [new file with mode: 0644]
gtk/src/ghb3.ui
gtk/src/ghb4.ui
gtk/src/ghbcellrenderertext.c [deleted file]
gtk/src/ghbcellrenderertext.h [deleted file]
gtk/src/main.c
gtk/src/marshalers.c
gtk/src/marshalers.h
libhb/hb_json.c