1 | /* |
2 | * Copyright (C) 2021 Red Hat, Inc |
3 | * |
4 | * Author: |
5 | * Matthias Clasen <mclasen@redhat.com> |
6 | * |
7 | * This library is free software; you can redistribute it and/or |
8 | * modify it under the terms of the GNU Library General Public |
9 | * License as published by the Free Software Foundation; either |
10 | * version 2 of the License, or (at your option) any later version. |
11 | * |
12 | * This library is distributed in the hope that it will be useful, |
13 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
14 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
15 | * Library General Public License for more details. |
16 | * |
17 | * You should have received a copy of the GNU Library General Public |
18 | * License along with this library. If not, see <http://www.gnu.org/licenses/>. |
19 | */ |
20 | |
21 | #include "config.h" |
22 | |
23 | #include <gtk/gtk.h> |
24 | |
25 | |
26 | G_MODULE_EXPORT void |
27 | set_icon_theme_hicolor (void) |
28 | { |
29 | GtkSettings *settings; |
30 | |
31 | g_test_message (format: "Attention: setting icon-theme to hicolor" ); |
32 | |
33 | settings = gtk_settings_get_for_display (display: gdk_display_get_default ()); |
34 | g_object_set (object: settings, first_property_name: "gtk-icon-theme-name" , "hicolor" , NULL); |
35 | } |
36 | |