summaryrefslogtreecommitdiffstats
path: root/gtk/src/main.c
diff options
context:
space:
mode:
authorJohn Stebbins <[email protected]>2018-04-17 10:11:29 -0700
committerJohn Stebbins <[email protected]>2018-04-17 10:12:36 -0700
commit2967fbd87cecaccdc6ddfe7b2995c2a652fc4dff (patch)
tree777f5fa4ebfa94500238ee21735301dbc5fc7b9c /gtk/src/main.c
parentd0620f96c67c346a2020ad305a14dbaf84a3a8fd (diff)
LinGui: Add activity window font size preference
And make the default font size 8 Fixes https://github.com/HandBrake/HandBrake/issues/1285
Diffstat (limited to 'gtk/src/main.c')
-rw-r--r--gtk/src/main.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/gtk/src/main.c b/gtk/src/main.c
index 3ee755ac2..5341fcea3 100644
--- a/gtk/src/main.c
+++ b/gtk/src/main.c
@@ -815,7 +815,7 @@ stackswitcher button.text-button \n\
#activity_view \n\
{ \n\
font-family: monospace; \n\
- font-size: 7pt; \n\
+ font-size: 8pt; \n\
font-weight: lighter; \n\
} \n\
"
@@ -967,15 +967,15 @@ ghb_idle_ui_init(signal_user_data_t *ud)
extern G_MODULE_EXPORT void
ghb_activate_cb(GApplication * app, signal_user_data_t * ud)
{
- GError * error = NULL;
- GtkCssProvider * css = gtk_css_provider_new();
+ GError * error = NULL;
+ GtkCssProvider * provider = gtk_css_provider_new();
- error = NULL;
- gtk_css_provider_load_from_data(css, MyCSS, -1, &error);
+ gtk_css_provider_load_from_data(provider, MyCSS, -1, &error);
if (error == NULL)
{
GdkScreen *ss = gdk_screen_get_default();
- gtk_style_context_add_provider_for_screen(ss, GTK_STYLE_PROVIDER(css),
+ gtk_style_context_add_provider_for_screen(ss,
+ GTK_STYLE_PROVIDER(provider),
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
}
else
@@ -983,6 +983,7 @@ ghb_activate_cb(GApplication * app, signal_user_data_t * ud)
g_warning("%s: %s", G_STRFUNC, error->message);
g_clear_error(&error);
}
+ g_object_unref(provider);
#if !defined(_WIN32)
notify_init("HandBrake");