From 9a84e963a7f849926d851a318e48da4e8d9bc5ce Mon Sep 17 00:00:00 2001 From: CentOS Sources Date: May 09 2023 05:21:18 +0000 Subject: import gnome-logs-3.36.0-8.el9 --- diff --git a/SOURCES/0001-gl-application.c-add-four-shortcuts.patch b/SOURCES/0001-gl-application.c-add-four-shortcuts.patch new file mode 100644 index 0000000..3b24d6e --- /dev/null +++ b/SOURCES/0001-gl-application.c-add-four-shortcuts.patch @@ -0,0 +1,101 @@ +From 8b7f222e75d006cc3573c9b545c26d6fac56b5ce Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Sabri=20=C3=9Cnal?= +Date: Fri, 3 Apr 2020 15:09:26 +0300 +Subject: [PATCH 1/2] gl-application.c: add four shortcuts + +F1: Help +Ctrl+E: Export +Ctrl+N: New window +Ctrl+question: Keyboard shortcuts +--- + src/gl-application.c | 13 +++++++++++++ + 1 file changed, 13 insertions(+) + +diff --git a/src/gl-application.c b/src/gl-application.c +index c20052c..b2ef1f7 100644 +--- a/src/gl-application.c ++++ b/src/gl-application.c +@@ -178,67 +178,80 @@ on_monospace_font_name_changed (GSettings *settings, + } + } + + static GActionEntry actions[] = { + { "new-window", on_new_window }, + { "help", on_help }, + { "about", on_about } + }; + + static void + gl_application_startup (GApplication *application) + { + g_action_map_add_action_entries (G_ACTION_MAP (application), actions, + G_N_ELEMENTS (actions), application); + + /* Calls gtk_init() with no arguments. */ + G_APPLICATION_CLASS (gl_application_parent_class)->startup (application); + + /* gtk_init() calls setlocale(), so gettext must be called after that. */ + g_set_application_name (_(PACKAGE_NAME)); + gtk_window_set_default_icon_name (PACKAGE_TARNAME); + } + + static void + gl_application_activate (GApplication *application) + { + GtkWidget *window; + GlApplicationPrivate *priv; + const gchar * const close_accel[] = { "w", NULL }; + const gchar * const search_accel[] = { "f", NULL }; ++ const gchar * const export_accel[] = { "e", NULL }; ++ const gchar * const help_accel[] = { "F1", NULL }; ++ const gchar * const new_window_accel[] = { "n", NULL }; ++ const gchar * const help_overlay_accel[] = { "question", NULL }; + + window = gl_window_new (GTK_APPLICATION (application)); + gtk_widget_show (window); + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "win.close", close_accel); + gtk_application_set_accels_for_action (GTK_APPLICATION (application), + "win.search", search_accel); ++ gtk_application_set_accels_for_action (GTK_APPLICATION (application), ++ "win.export", export_accel); ++ gtk_application_set_accels_for_action (GTK_APPLICATION (application), ++ "app.help", help_accel); ++ gtk_application_set_accels_for_action (GTK_APPLICATION (application), ++ "app.new-window", new_window_accel); ++ gtk_application_set_accels_for_action (GTK_APPLICATION (application), ++ "win.show-help-overlay", ++ help_overlay_accel); + + priv = gl_application_get_instance_private (GL_APPLICATION (application)); + + on_monospace_font_name_changed (priv->desktop, DESKTOP_MONOSPACE_FONT_NAME, + priv); + } + + static const GOptionEntry options[] = + { + { "version", 'v', 0, G_OPTION_ARG_NONE, NULL, + N_("Print version information and exit"), NULL }, + { NULL } + }; + + static gint + gl_application_handle_local_options (GApplication *application, + GVariantDict *options) + { + if (g_variant_dict_contains (options, "version")) + { + g_print ("%s - Version %s\n", g_get_application_name (), PACKAGE_VERSION); + return 0; + } + + return -1; + } + + static void + gl_application_finalize (GObject *object) + { +-- +2.35.1 + diff --git a/SOURCES/0001-gl-window-Set-default-width-height.patch b/SOURCES/0001-gl-window-Set-default-width-height.patch new file mode 100644 index 0000000..3e42edf --- /dev/null +++ b/SOURCES/0001-gl-window-Set-default-width-height.patch @@ -0,0 +1,55 @@ +From ef4c13a2ec49d94495370bcdb0870252ba43bfd5 Mon Sep 17 00:00:00 2001 +From: =?UTF-8?q?Guido=20G=C3=BCnther?= +Date: Tue, 27 Jul 2021 11:35:09 +0200 +Subject: [PATCH] gl-window: Set default-{width,height} + +Instead of limiting the minimal size rather make those values the +default so the window can shring to smaller sizes on e.g. phones. +--- + data/gl-window.ui | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/data/gl-window.ui b/data/gl-window.ui +index e20569d..28e3fc8 100644 +--- a/data/gl-window.ui ++++ b/data/gl-window.ui +@@ -1,34 +1,34 @@ + +