Created
August 8, 2021 16:18
-
-
Save petabyt/a761932df272a1608996feb54ced7459 to your computer and use it in GitHub Desktop.
GTK Markup label example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
label = gtk_label_new(NULL); | |
gtk_widget_set_hexpand(label, TRUE); | |
gtk_label_set_markup(GTK_LABEL(label), | |
"Hello, World\n" | |
"<span size='large'>This is a test.</span?"); | |
gtk_label_set_justify(GTK_LABEL(label), GTK_JUSTIFY_CENTER); | |
gtk_grid_attach(GTK_GRID(mainGrid), label, 0, 0, 1, 1); | |
gtk_widget_show(label); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment