Skip to content

Commit 3c3a823

Browse files
committed
[FIX] - Terminal Warnings
Fixed warning within the terminal that stated a missing font, which additionally added " Sans " if the specified one is not found. Corrected the styling for Css to read correctly in the application.
1 parent 75030f7 commit 3c3a823

File tree

1 file changed

+24
-24
lines changed

1 file changed

+24
-24
lines changed

src/gtk_gui.c

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -106,27 +106,27 @@ static void activate(GtkApplication *app, gpointer user_data)
106106
*button_box0, *button_box1, *button0, *button1, *button2,
107107
*button3, *button4, *button5, *button6, *button7;
108108
const char *css = "window {"
109-
" background-color: #FFFFE4;"
110-
"}"
111-
"headerbar.titlebar {"
112-
" font-family: BigNoodleTitling;"
113-
" font-size: 36px;"
114-
" color: black;"
115-
" background-color: #4CAF50;"
116-
" border: none;"
117-
" padding: 10px 20px;"
118-
" text-decoration: none;"
119-
"}"
120-
"button {"
121-
" background-color: #4CAF50;"
122-
" color: black;"
123-
" 2px solid #008CBA;"
124-
" padding: 10px 20px;"
125-
" text-decoration: none;"
126-
" font-size: 22px;"
127-
" margin: 8px 5px;"
128-
" font-family: BigNoodleTitling;"
129-
"}";
109+
" background-color: #FFFFE4;"
110+
"}"
111+
"headerbar.titlebar {"
112+
" font-family: 'BigNoodleTitling', 'Sans';"
113+
" font-size: 36px;"
114+
" color: black;"
115+
" background-color: #4CAF50;"
116+
" border: none;"
117+
" padding: 10px 20px;"
118+
" text-decoration: none;"
119+
"}"
120+
"button {"
121+
" background-color: #4CAF50;"
122+
" color: black;"
123+
" border: 2px solid #008CBA;"
124+
" padding: 10px 20px;"
125+
" text-decoration: none;"
126+
" font-size: 22px;"
127+
" margin: 8px 5px;"
128+
" font-family: 'BigNoodleTitling', 'Sans';"
129+
"}";
130130
FilterButtonInfo filter_buttons[] = {
131131
{"Black And White Filter", black_and_white_filter_apply},
132132
{"Bright Filter", bright_filter_apply},
@@ -233,9 +233,9 @@ static void activate(GtkApplication *app, gpointer user_data)
233233
gtk_css_provider_load_from_string(provider, css);
234234
// add CSS provider to default display
235235
gtk_style_context_add_provider_for_display(
236-
gdk_display_get_default(),
237-
GTK_STYLE_PROVIDER(provider),
238-
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
236+
gdk_display_get_default(),
237+
GTK_STYLE_PROVIDER(provider),
238+
GTK_STYLE_PROVIDER_PRIORITY_USER);
239239

240240
// show window
241241
gtk_widget_set_visible(window, TRUE);

0 commit comments

Comments
 (0)