2026-03-19 11:03:29 -06:00
|
|
|
/* ZoiteChat
|
|
|
|
|
* Copyright (C) 1998-2010 Peter Zelezny.
|
|
|
|
|
* Copyright (C) 2009-2013 Berke Viktor.
|
|
|
|
|
* Copyright (C) 2026 deepend-tildeclub.
|
|
|
|
|
*
|
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
|
* (at your option) any later version.
|
|
|
|
|
*
|
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
|
*
|
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
|
* along with this program; if not, write to the Free Software
|
|
|
|
|
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
|
|
|
|
|
*/
|
|
|
|
|
|
2026-03-04 23:28:01 -07:00
|
|
|
#include <glib.h>
|
|
|
|
|
|
|
|
|
|
#include "../theme-gtk3.h"
|
|
|
|
|
|
|
|
|
|
static int apply_current_calls;
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
test_theme_gtk3_stub_reset (void)
|
|
|
|
|
{
|
|
|
|
|
apply_current_calls = 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
int
|
|
|
|
|
test_theme_gtk3_stub_apply_current_calls (void)
|
|
|
|
|
{
|
|
|
|
|
return apply_current_calls;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
theme_gtk3_init (void)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
|
theme_gtk3_apply_current (GError **error)
|
|
|
|
|
{
|
|
|
|
|
(void) error;
|
|
|
|
|
apply_current_calls++;
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
|
theme_gtk3_apply (const char *theme_id, ThemeGtk3Variant variant, GError **error)
|
|
|
|
|
{
|
|
|
|
|
(void) theme_id;
|
|
|
|
|
(void) variant;
|
|
|
|
|
(void) error;
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
|
theme_gtk3_refresh (const char *theme_id, ThemeGtk3Variant variant, GError **error)
|
|
|
|
|
{
|
|
|
|
|
(void) theme_id;
|
|
|
|
|
(void) variant;
|
|
|
|
|
(void) error;
|
|
|
|
|
return TRUE;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
ThemeGtk3Variant
|
|
|
|
|
theme_gtk3_variant_for_theme (const char *theme_id)
|
|
|
|
|
{
|
|
|
|
|
(void) theme_id;
|
|
|
|
|
return THEME_GTK3_VARIANT_PREFER_LIGHT;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
theme_gtk3_invalidate_provider_cache (void)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void
|
|
|
|
|
theme_gtk3_disable (void)
|
|
|
|
|
{
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
gboolean
|
|
|
|
|
theme_gtk3_is_active (void)
|
|
|
|
|
{
|
|
|
|
|
return FALSE;
|
|
|
|
|
}
|