2023-03-31 19:11:10 +00:00
|
|
|
#pragma once
|
2014-11-07 13:40:22 +00:00
|
|
|
|
2021-09-24 18:35:48 +00:00
|
|
|
#include "gdk/gdktypes.h"
|
2014-11-07 13:40:22 +00:00
|
|
|
|
2017-11-17 05:37:10 +00:00
|
|
|
/* Private API for use in GTK+ */
|
|
|
|
|
2014-11-07 13:40:22 +00:00
|
|
|
void gdk_pre_parse (void);
|
|
|
|
|
2018-05-28 16:04:17 +00:00
|
|
|
gboolean gdk_running_in_sandbox (void);
|
2018-11-01 17:46:04 +00:00
|
|
|
gboolean gdk_should_use_portal (void);
|
2017-11-17 21:34:04 +00:00
|
|
|
|
2020-07-24 18:40:36 +00:00
|
|
|
const char * gdk_get_startup_notification_id (void);
|
2018-06-11 15:09:06 +00:00
|
|
|
|
2021-09-14 16:19:13 +00:00
|
|
|
PangoDirection gdk_unichar_direction (gunichar ch) G_GNUC_CONST;
|
2019-01-31 19:03:49 +00:00
|
|
|
PangoDirection gdk_find_base_dir (const char *text,
|
|
|
|
int len);
|
|
|
|
|
2021-07-26 21:03:15 +00:00
|
|
|
void gdk_source_set_static_name_by_id (guint tag,
|
|
|
|
const char *name);
|
|
|
|
|
2022-08-25 18:33:30 +00:00
|
|
|
#ifndef I_
|
|
|
|
#define I_(string) g_intern_static_string (string)
|
|
|
|
#endif
|
|
|
|
|
2022-12-18 05:42:34 +00:00
|
|
|
#if !GLIB_CHECK_VERSION (2, 75, 1)
|
2022-12-16 04:08:35 +00:00
|
|
|
static inline gboolean
|
|
|
|
g_set_str (char **str_pointer,
|
|
|
|
const char *new_str)
|
|
|
|
{
|
|
|
|
char *copy;
|
|
|
|
|
|
|
|
if (*str_pointer == new_str ||
|
|
|
|
(*str_pointer && new_str && strcmp (*str_pointer, new_str) == 0))
|
|
|
|
return FALSE;
|
|
|
|
|
|
|
|
copy = g_strdup (new_str);
|
|
|
|
g_free (*str_pointer);
|
|
|
|
*str_pointer = copy;
|
|
|
|
|
|
|
|
return TRUE;
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|