logo

badwolf

Minimalist and privacy-oriented WebKitGTK+ browser
commit: 06b30dc68c6ab107ffea26ece270cd31c3ad9317
parent: fb3246adea4083f5d073cf8cd2d5e1ca5686ebe7
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 11 May 2020 02:22:31 +0200

Use text in toggle buttons

Thanks to neaunoire for the suggestion( https://merveilles.town/@neauoire/104146912977989993 ).

Diffstat:

Mbadwolf.c10++++------
Minterface.css1+
Mpo/messages.pot28++++++++++++++++------------
3 files changed, 21 insertions(+), 18 deletions(-)

diff --git a/badwolf.c b/badwolf.c @@ -542,14 +542,12 @@ new_browser(struct Window *window, const gchar *target_url, WebKitWebView *relat gtk_widget_set_name(browser->toolbar, "browser__toolbar"); browser->location = gtk_entry_new(); gtk_widget_set_name(browser->location, "browser__location"); - browser->javascript = gtk_toggle_button_new(); + browser->javascript = gtk_toggle_button_new_with_label(_("JS")); gtk_widget_set_name(browser->javascript, "browser__javascript"); - gtk_container_add(GTK_CONTAINER(browser->javascript), - gtk_image_new_from_icon_name("text-x-script", GTK_ICON_SIZE_LARGE_TOOLBAR)); - browser->auto_load_images = gtk_toggle_button_new(); + gtk_button_set_relief(GTK_BUTTON(browser->javascript), GTK_RELIEF_NONE); + browser->auto_load_images = gtk_toggle_button_new_with_label("IMG"); gtk_widget_set_name(browser->auto_load_images, "browser__load_images"); - gtk_container_add(GTK_CONTAINER(browser->auto_load_images), - gtk_image_new_from_icon_name("image-x-generic", GTK_ICON_SIZE_LARGE_TOOLBAR)); + gtk_button_set_relief(GTK_BUTTON(browser->auto_load_images), GTK_RELIEF_NONE); browser->statusbar = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 0); gtk_widget_set_name(browser->statusbar, "browser__statusbar"); diff --git a/interface.css b/interface.css @@ -1 +1,2 @@ #browser__location, #browser__statuslabel { font-family: monospace; } +button:checked label { font-weight: bold; } diff --git a/po/messages.pot b/po/messages.pot @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: Badwolf 0.5.1+g5da95c2.develop\n" +"Project-Id-Version: Badwolf 0.5.1+gada0d15.develop\n" "Report-Msgid-Bugs-To: contact+badwolf-msgid@hacktivis.me\n" -"POT-Creation-Date: 2020-05-11 01:36+0200\n" +"POT-Creation-Date: 2020-05-11 02:35+0200\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <LL@li.org>\n" @@ -41,7 +41,7 @@ msgstr "" msgid "Badwolf Downloads" msgstr "" -#: badwolf.c:792 +#: badwolf.c:790 #, c-format msgid "Buildtime WebKit version: %d.%d.%d\n" msgstr "" @@ -93,6 +93,10 @@ msgstr "" msgid "Error: The given identity doesn't match the expected one.\n" msgstr "" +#: badwolf.c:545 +msgid "JS" +msgstr "" + #: keybindings.c:32 #, c-format msgid "" @@ -100,11 +104,11 @@ msgid "" "Runtime WebKit version: %d.%d.%d" msgstr "" -#: badwolf.c:721 +#: badwolf.c:719 msgid "New tab" msgstr "" -#: badwolf.c:841 +#: badwolf.c:839 msgid "Open new tab" msgstr "" @@ -112,12 +116,12 @@ msgstr "" msgid "Out of Memory" msgstr "" -#: badwolf.c:790 +#: badwolf.c:788 #, c-format msgid "Running Badwolf version: %s\n" msgstr "" -#: badwolf.c:797 +#: badwolf.c:795 #, c-format msgid "Runtime WebKit version: %d.%d.%d\n" msgstr "" @@ -131,11 +135,11 @@ msgstr "" msgid "Temporarly Add Exception" msgstr "" -#: badwolf.c:598 +#: badwolf.c:596 msgid "Toggle javascript" msgstr "" -#: badwolf.c:599 +#: badwolf.c:597 msgid "Toggle loading images automatically" msgstr "" @@ -143,7 +147,7 @@ msgstr "" msgid "Unknown Crash" msgstr "" -#: badwolf.c:644 +#: badwolf.c:642 msgid "search in current page" msgstr "" @@ -159,12 +163,12 @@ msgstr "" msgid "the web process terminated for an unknown reason.\n" msgstr "" -#: badwolf.c:804 +#: badwolf.c:802 #, c-format msgid "webkit-web-extension directory set to: %s\n" msgstr "" #. TRANSLATOR Ignore this entry. Done for forcing Unicode in xgettext. -#: badwolf.c:875 +#: badwolf.c:873 msgid "ΓΈ" msgstr ""