mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-10 12:40:10 +00:00
f28e94acfa
Instead of gdk_display_set_no_portals() that has to be called after gtk_init(), we now have gtk_disable_portals() that has to be called before gtk_init(). This matches what we already do for gtk_disable_setlocale() and prevents the risk that portals could be accidentally used during gtk_init().
35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include "gdk/gdktypes.h"
|
|
|
|
/* Private API for use in GTK+ */
|
|
|
|
void gdk_pre_parse (void);
|
|
gboolean gdk_is_initialized (void);
|
|
|
|
#define gdk_ensure_initialized() \
|
|
G_STMT_START { \
|
|
if (!gdk_is_initialized ()) \
|
|
g_error ("%s() was called before gtk_init()", G_STRFUNC); \
|
|
} G_STMT_END
|
|
|
|
gboolean gdk_running_in_sandbox (void);
|
|
void gdk_disable_portals (void);
|
|
|
|
gboolean gdk_display_should_use_portal (GdkDisplay *display,
|
|
const char *portal_interface,
|
|
guint min_version);
|
|
|
|
const char * gdk_get_startup_notification_id (void);
|
|
|
|
PangoDirection gdk_unichar_direction (gunichar ch) G_GNUC_CONST;
|
|
PangoDirection gdk_find_base_dir (const char *text,
|
|
int len);
|
|
|
|
void gdk_source_set_static_name_by_id (guint tag,
|
|
const char *name);
|
|
|
|
#ifndef I_
|
|
#define I_(string) g_intern_static_string (string)
|
|
#endif
|