Translation label

Translation label — Translation-aware GtkLabel variant

Synopsis

void                gtk_widget_add_translation_hook     (GtkWidget *w,
                                                         void (funcGtkWidget *, void *) (),
                                                         gpointer data);
GtkWidget*          gtk_label_new_with_translation      (gchar *domain,
                                                         gchar *string);

Description

Support for widgets with "instant-apply" language switching.

Details

gtk_widget_add_translation_hook ()

void                gtk_widget_add_translation_hook     (GtkWidget *w,
                                                         void (funcGtkWidget *, void *) (),
                                                         gpointer data);

Register a callback to be invoked when the current locale changes.

w :

func :

data :


gtk_label_new_with_translation ()

GtkWidget*          gtk_label_new_with_translation      (gchar *domain,
                                                         gchar *string);

Creates a translation-aware label widget. The supplied string is passed through gettext prior to display, and automatically updated if the selected locale is changed.

domain :

string :

Returns :