st/icon-theme: Replace GTK's custom i18n support
GTK uses its own private i18n header, which most notably defines an I_() macro for interning static strings. That may be a worthwhile idea for the entire codebase, but as it's out of scope for this change set, just use the standard i18n support from glib for now. Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2620>
This commit is contained in:
parent
0c3ce595b9
commit
bdd14e3431
@ -25,11 +25,11 @@
|
|||||||
#include <math.h>
|
#include <math.h>
|
||||||
#include <glib.h>
|
#include <glib.h>
|
||||||
#include <glib/gstdio.h>
|
#include <glib/gstdio.h>
|
||||||
|
#include <glib/gi18n-lib.h>
|
||||||
|
|
||||||
#include "st-icon-theme.h"
|
#include "st-icon-theme.h"
|
||||||
#include "st-icon-cache.h"
|
#include "st-icon-cache.h"
|
||||||
#include "st-settings.h"
|
#include "st-settings.h"
|
||||||
#include "gtkintl.h"
|
|
||||||
|
|
||||||
#define DEFAULT_ICON_THEME "Adwaita"
|
#define DEFAULT_ICON_THEME "Adwaita"
|
||||||
|
|
||||||
@ -346,7 +346,7 @@ gtk_icon_theme_class_init (GtkIconThemeClass *klass)
|
|||||||
* that a change has occurred in the contents of the current
|
* that a change has occurred in the contents of the current
|
||||||
* icon theme.
|
* icon theme.
|
||||||
*/
|
*/
|
||||||
signal_changed = g_signal_new (I_("changed"),
|
signal_changed = g_signal_new ("changed",
|
||||||
G_TYPE_FROM_CLASS (klass),
|
G_TYPE_FROM_CLASS (klass),
|
||||||
G_SIGNAL_RUN_LAST,
|
G_SIGNAL_RUN_LAST,
|
||||||
G_STRUCT_OFFSET (GtkIconThemeClass, changed),
|
G_STRUCT_OFFSET (GtkIconThemeClass, changed),
|
||||||
|
Loading…
Reference in New Issue
Block a user