[ghex] hex-dialog: Small print on labels to leave more space for numbers
- From: Logan Rathbone <larathbone src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ghex] hex-dialog: Small print on labels to leave more space for numbers
- Date: Fri, 17 Jun 2022 16:36:32 +0000 (UTC)
commit a093f086a037c654a9f38e605ba0b57535c793b8
Author: Logan Rathbone <poprocks gmail com>
Date: Fri Jun 17 12:24:58 2022 -0400
hex-dialog: Small print on labels to leave more space for numbers
src/hex-dialog.c | 12 ++++++++++--
1 file changed, 10 insertions(+), 2 deletions(-)
---
diff --git a/src/hex-dialog.c b/src/hex-dialog.c
index 9378f62..5ea07ca 100644
--- a/src/hex-dialog.c
+++ b/src/hex-dialog.c
@@ -127,8 +127,12 @@ create_dialog_prop (HexDialogEntryTypes type,
gint xpos, gint ypos)
{
GtkWidget *label;
+ char *markup;
- label = gtk_label_new(_(HexDialogEntries[type].name));
+ label = gtk_label_new (NULL);
+ markup = g_strdup_printf ("<small>%s</small>", _(HexDialogEntries[type].name));
+ gtk_label_set_markup (GTK_LABEL(label), markup);
+ g_free (markup);
gtk_widget_set_halign (label, GTK_ALIGN_END);
gtk_grid_attach (GTK_GRID (grid), label,
xpos, ypos, 1, 1);
@@ -166,6 +170,7 @@ GtkWidget *hex_dialog_getview(HexDialog *dialog)
GtkWidget *label;
GtkAdjustment *adjuster;
GtkWidget *spin;
+ char *stream_length_str;
grid = gtk_grid_new ();
gtk_grid_set_row_spacing (GTK_GRID(grid), 6);
@@ -208,7 +213,10 @@ GtkWidget *hex_dialog_getview(HexDialog *dialog)
G_CALLBACK(config_toggled_cb), dialog);
gtk_box_append(GTK_BOX(hbox), dialog->config_hex);
- label = gtk_label_new(_("Stream Length:"));
+ label = gtk_label_new (NULL);
+ stream_length_str = g_strdup_printf ("<small>%s</small>", _("Stream Length:"));
+ gtk_label_set_markup (GTK_LABEL(label), stream_length_str);
+ g_free (stream_length_str);
gtk_widget_set_halign (label, GTK_ALIGN_END);
gtk_grid_attach (GTK_GRID (grid), label, 4, 3, 1, 1);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]