adji

Adji's a Decisive and Joyful Internet browser
git clone https://noxz.tech/git/adji.git
adji

commit: 90a5a0b79ee9119de6826ca89cb6496c8edae420
parent: a3cfdf0e1aca62c99687536eccce256fe3b657a6
author: Chris Noxz <chris@noxz.tech>
date:   Thu, 28 Dec 2023 20:26:54 +0100
fix alphabetic order of renamed function
Mbrowser.h40++++++++++----------
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/browser.h b/browser.h
@@ -257,10 +257,10 @@ static void xdg_open(const gchar *, const gchar *);
 /* callback functions */
 static gboolean cb_context_menu(WebKitWebView *, WebKitContextMenu *,
                                 GdkEvent *, WebKitHitTestResult *, gpointer);
-static void cb_download_press(GtkWidget *, GdkEventButton *, gpointer);
 static void cb_download_changed_progress(GObject *, GParamSpec *, gpointer);
 static void cb_download_finished(GObject *, gpointer);
 static gboolean cb_download_prepare(WebKitDownload *, gchar *, gpointer);
+static void cb_download_press(GtkWidget *, GdkEventButton *, gpointer);
 static void cb_download_start(WebKitWebView *, WebKitDownload *, gpointer);
 static void cb_favicon_changed(GObject *, GParamSpec *, gpointer);
 static gboolean cb_entry_hid(GtkWidget *, GdkEvent *, gpointer);
@@ -306,25 +306,6 @@ cb_context_menu(WebKitWebView                  *web_view,
 	return FALSE;
 }
 
-void
-cb_download_press(GtkWidget                   *btn,
-                  GdkEventButton              *event,
-                  gpointer                     data)
-{
-	switch (event->button) {
-	case 2: /* middle click: cancel and/or remove */
-		if (!(*((gboolean*)g_object_get_data(G_OBJECT(btn), __NAME__"-finished"))))
-			webkit_download_cancel(WEBKIT_DOWNLOAD(data));
-		g_object_unref(WEBKIT_DOWNLOAD(data));
-		gtk_widget_destroy(btn);
-		break;
-	case 1: /* left click: open downloaded file */
-		if ((*((gboolean*)g_object_get_data(G_OBJECT(btn), __NAME__"-finished"))))
-			xdg_open("", webkit_download_get_destination(WEBKIT_DOWNLOAD(data)));
-		break;
-	}
-}
-
 void
 cb_download_changed_progress(GObject           *obj,
                              GParamSpec        *pspec,
@@ -362,6 +343,25 @@ cb_download_prepare(WebKitDownload             *download,
 	return FALSE;
 }
 
+void
+cb_download_press(GtkWidget                   *btn,
+                  GdkEventButton              *event,
+                  gpointer                     data)
+{
+	switch (event->button) {
+	case 2: /* middle click: cancel and/or remove */
+		if (!(*((gboolean*)g_object_get_data(G_OBJECT(btn), __NAME__"-finished"))))
+			webkit_download_cancel(WEBKIT_DOWNLOAD(data));
+		g_object_unref(WEBKIT_DOWNLOAD(data));
+		gtk_widget_destroy(btn);
+		break;
+	case 1: /* left click: open downloaded file */
+		if ((*((gboolean*)g_object_get_data(G_OBJECT(btn), __NAME__"-finished"))))
+			xdg_open("", webkit_download_get_destination(WEBKIT_DOWNLOAD(data)));
+		break;
+	}
+}
+
 void
 cb_download_start(WebKitWebView                *web_view,
                   WebKitDownload               *download,