[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[no subject]
From: |
Gavin D. Smith |
Date: |
Sun, 20 Mar 2022 04:55:24 -0400 (EDT) |
branch: master
commit cb343cd852371d12d96b56ab4d3009402ba9f194
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Tue Oct 22 12:24:48 2019 +0100
implement back button
---
js/infog/main.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/js/infog/main.c b/js/infog/main.c
index 0ebd85ee3e..d516552e6f 100644
--- a/js/infog/main.c
+++ b/js/infog/main.c
@@ -620,6 +620,12 @@ GtkHeaderBar *header_bar;
GtkWidget *back_button;
GtkWidget *help_button;
+void
+back_clicked_cb (GtkButton *button, gpointer user_data)
+{
+ webkit_web_view_go_back (webView);
+}
+
void
build_gui (void)
{
@@ -636,6 +642,9 @@ build_gui (void)
gtk_window_set_titlebar (GTK_WINDOW(main_window), GTK_WIDGET(header_bar));
back_button = gtk_button_new_with_mnemonic ("_Back");
+ g_signal_connect (back_button, "clicked",
+ G_CALLBACK(back_clicked_cb), NULL);
+
gtk_header_bar_pack_start (header_bar, back_button);
help_button = gtk_button_new_with_mnemonic ("_Help");
gtk_header_bar_pack_start (header_bar, help_button);
- [no subject], (continued)
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject],
Gavin D. Smith <=
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20
- [no subject], Gavin D. Smith, 2022/03/20