[ghex/gtk4-port: 62/91] findreplace: tweak strings. hex-dialog: tweak alignment and padding.




commit 4458bbe88f0ac0ccd471eee0da56563e98221739
Author: Logan Rathbone <poprocks gmail com>
Date:   Wed Jan 27 12:30:26 2021 -0500

    findreplace: tweak strings. hex-dialog: tweak alignment and padding.

 src/findreplace.c             | 4 ++--
 src/ghex-application-window.c | 2 +-
 src/hex-dialog.c              | 9 ++++++---
 3 files changed, 9 insertions(+), 6 deletions(-)
---
diff --git a/src/findreplace.c b/src/findreplace.c
index 780f5501..5e8b5397 100644
--- a/src/findreplace.c
+++ b/src/findreplace.c
@@ -243,7 +243,7 @@ find_next_cb (GtkButton *button, gpointer user_data)
                                                "No further matches found."));
                else
                        dialog_str = g_strdup (_("End of file reached.\n\n"
-                                               "String was not found."));
+                                               "No occurrences found from cursor."));
 
                display_info_dialog (parent, dialog_str);
                found = FALSE;
@@ -318,7 +318,7 @@ find_prev_cb (GtkButton *button, gpointer user_data)
                                                "No further matches found."));
                else
                        dialog_str = g_strdup (_("Beginning of file reached.\n\n"
-                                               "String was not found."));
+                                               "No occurrences found from cursor."));
 
                display_info_dialog (parent, dialog_str);
                found = FALSE;
diff --git a/src/ghex-application-window.c b/src/ghex-application-window.c
index 23fbbbcd..fd2b872c 100644
--- a/src/ghex-application-window.c
+++ b/src/ghex-application-window.c
@@ -1844,7 +1844,7 @@ ghex_application_window_init (GHexApplicationWindow *self)
 
        gtk_css_provider_load_from_data (conversions_box_provider,
                                                                         "box {\n"
-                                                                        "   padding: 20px;\n"
+                                                                        "   padding: 12px;\n"
                                                                         "}\n", -1);
 
        /* add the provider to our widget's style context. */
diff --git a/src/hex-dialog.c b/src/hex-dialog.c
index 6fa6dc3a..0ebd5498 100644
--- a/src/hex-dialog.c
+++ b/src/hex-dialog.c
@@ -1,3 +1,5 @@
+/* vim: colorcolumn=80 ts=4 sw=4
+ */
 /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
 /*
  * Copright © David Hammerton 2003
@@ -124,7 +126,7 @@ hex_dialog_new (void)
 }
 
 static void
-create_dialog_prop(HexDialogEntryTypes type,
+create_dialog_prop (HexDialogEntryTypes type,
                                HexDialog *dialog,
                                GtkWidget *grid,
                                gint xpos, gint ypos)
@@ -133,6 +135,7 @@ create_dialog_prop(HexDialogEntryTypes type,
 
     label = gtk_label_new(_(HexDialogEntries[type].name));
     gtk_widget_set_hexpand (label, TRUE);
+       gtk_widget_set_halign (label, GTK_ALIGN_END);
     gtk_grid_attach (GTK_GRID (grid), label,
                      xpos, ypos, 1, 1);
     gtk_widget_show(label);
@@ -173,8 +176,8 @@ GtkWidget *hex_dialog_getview(HexDialog *dialog)
     GtkWidget *spin;
 
     grid = gtk_grid_new ();
-    gtk_grid_set_row_spacing (GTK_GRID (grid), 4);
-    gtk_grid_set_column_spacing (GTK_GRID (grid), 4);
+    gtk_grid_set_row_spacing (GTK_GRID(grid), 6);
+    gtk_grid_set_column_spacing (GTK_GRID(grid), 6);
     gtk_widget_show (grid);
 
     vbox = gtk_box_new (GTK_ORIENTATION_VERTICAL, 0);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]