logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: e97228fc74b15026f2c8db56c069ffed11898d4d
parent: 3d066fb243e8e94e73fcdc51e79e6088dc6d3de9
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Wed,  8 Jan 2020 10:07:13 +0100

badwolf.c: g_fprintf → fprintf

Diffstat:

Mbadwolf.c32++++++++++++++++----------------
1 file changed, 16 insertions(+), 16 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -9,9 +9,9 @@ #include "uri.h" #include <glib/gi18n.h> /* _() and other internationalization/localization helpers */ -#include <glib/gprintf.h> /* g_fprintf() */ #include <libsoup/soup.h> /* soup* */ #include <locale.h> /* LC_* */ +#include <stdio.h> /* fprintf() */ #include <stdlib.h> /* malloc() */ const gchar *homepage = "https://hacktivis.me/projects/badwolf"; @@ -91,15 +91,15 @@ WebViewCb_web_process_terminated(WebKitWebView *webView, switch(reason) { case WEBKIT_WEB_PROCESS_CRASHED: - g_fprintf(stderr, _("the web process crashed.\n")); + fprintf(stderr, _("the web process crashed.\n")); webView_tab_label_change(browser, _("title|Crashed")); break; case WEBKIT_WEB_PROCESS_EXCEEDED_MEMORY_LIMIT: - g_fprintf(stderr, _("the web process exceeded the memory limit.\n")); + fprintf(stderr, _("the web process exceeded the memory limit.\n")); webView_tab_label_change(browser, _("title|Out of Memory")); break; default: - g_fprintf(stderr, _("the web process terminated for an unknown reason.\n")); + fprintf(stderr, _("the web process terminated for an unknown reason.\n")); webView_tab_label_change(browser, _("title|Unknown Crash")); } @@ -761,21 +761,21 @@ main(int argc, char *argv[]) NULL); #endif - g_fprintf(stderr, _("Running Badwolf version: %s\n"), version); - g_fprintf(stderr, - _("Buildtime WebKit version: %d.%d.%d\n"), - WEBKIT_MAJOR_VERSION, - WEBKIT_MINOR_VERSION, - WEBKIT_MICRO_VERSION); - g_fprintf(stderr, - _("Runtime WebKit version: %d.%d.%d\n"), - webkit_get_major_version(), - webkit_get_minor_version(), - webkit_get_micro_version()); + fprintf(stderr, _("Running Badwolf version: %s\n"), version); + fprintf(stderr, + _("Buildtime WebKit version: %d.%d.%d\n"), + WEBKIT_MAJOR_VERSION, + WEBKIT_MINOR_VERSION, + WEBKIT_MICRO_VERSION); + fprintf(stderr, + _("Runtime WebKit version: %d.%d.%d\n"), + webkit_get_major_version(), + webkit_get_minor_version(), + webkit_get_micro_version()); web_extensions_directory = g_build_filename(g_get_user_data_dir(), "badwolf", "webkit-web-extension", NULL); - g_fprintf(stderr, _("webkit-web-extension directory set to: %s\n"), web_extensions_directory); + fprintf(stderr, _("webkit-web-extension directory set to: %s\n"), web_extensions_directory); window->main_window = gtk_window_new(GTK_WINDOW_TOPLEVEL); window->notebook = gtk_notebook_new();