forked from sergiotarxz/mangareader
Allowing swipe back in AdwLeaflet
This commit is contained in:
parent
4c492a5791
commit
d48967f1bf
@ -26,7 +26,6 @@ manga_selected (GtkListView *list_view,
|
||||
MangaPressedValues *manga_pressed_values = (MangaPressedValues *) user_data;
|
||||
AdwLeaflet *views_leaflet = manga_pressed_values->views_leaflet;
|
||||
GtkBox *box = GTK_BOX (gtk_box_new (GTK_ORIENTATION_VERTICAL, 0));
|
||||
printf ("hello world\n");
|
||||
adw_leaflet_append (views_leaflet, GTK_WIDGET (box));
|
||||
adw_leaflet_navigate (views_leaflet, ADW_NAVIGATION_DIRECTION_FORWARD);
|
||||
}
|
||||
|
@ -24,6 +24,7 @@ activate (AdwApplication *app,
|
||||
GtkListView *list_view;
|
||||
GtkWidget *scroll;
|
||||
AdwLeaflet *views_leaflet = ADW_LEAFLET (adw_leaflet_new ());
|
||||
adw_leaflet_set_can_swipe_back (views_leaflet, 1);
|
||||
|
||||
create_headerbar (box);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user