From 76447c4a5b6c31f9aec0834353e017eeae77f9c4 Mon Sep 17 00:00:00 2001 From: "B. Stack" Date: Wed, 18 Aug 2021 15:24:42 -0400 Subject: 3.24.29 for fc33 --- .gitignore | 2 + appearance__disable-backdrop.patch | 13 ++++ appearance__file-chooser.patch | 29 ++++++++ appearance__message-dialogs.patch | 149 +++++++++++++++++++++++++++++++++++++ appearance__print-dialog.patch | 51 +++++++++++++ csd__clean-headerbar.patch | 82 ++++++++++++++++++++ csd__disabled-by-default.patch | 19 +++++ csd__server-side-shadow.patch | 13 ++++ file-chooser__typeahead.patch | 59 +++++++++++++++ fixes__atk-bridge-errors.patch | 15 ++++ fixes__labels-wrapping.patch | 19 +++++ gtk3.spec | 54 ++++++++++---- notebook_wheel_scroll.patch | 81 ++++++++++++++++++++ other__default-settings.patch | 39 ++++++++++ other__hide-insert-emoji.patch | 28 +++++++ other__mnemonics-delay.patch | 13 ++++ popovers__color-chooser.patch | 22 ++++++ popovers__file-chooser-list.patch | 70 +++++++++++++++++ popovers__places-sidebar.patch | 146 ++++++++++++++++++++++++++++++++++++ 19 files changed, 891 insertions(+), 13 deletions(-) create mode 100644 appearance__disable-backdrop.patch create mode 100644 appearance__file-chooser.patch create mode 100644 appearance__message-dialogs.patch create mode 100644 appearance__print-dialog.patch create mode 100644 csd__clean-headerbar.patch create mode 100644 csd__disabled-by-default.patch create mode 100644 csd__server-side-shadow.patch create mode 100644 file-chooser__typeahead.patch create mode 100644 fixes__atk-bridge-errors.patch create mode 100644 fixes__labels-wrapping.patch create mode 100644 notebook_wheel_scroll.patch create mode 100644 other__default-settings.patch create mode 100644 other__hide-insert-emoji.patch create mode 100644 other__mnemonics-delay.patch create mode 100644 popovers__color-chooser.patch create mode 100644 popovers__file-chooser-list.patch create mode 100644 popovers__places-sidebar.patch diff --git a/.gitignore b/.gitignore index 9c36b46..5f0867d 100644 --- a/.gitignore +++ b/.gitignore @@ -198,3 +198,5 @@ gtk+-2.90.5.tar.bz2 /gtk+-3.24.27.tar.xz /gtk+-3.24.28.tar.xz /gtk+-3.24.29.tar.xz +*.spec.orig +.*.swp diff --git a/appearance__disable-backdrop.patch b/appearance__disable-backdrop.patch new file mode 100644 index 0000000..7f83409 --- /dev/null +++ b/appearance__disable-backdrop.patch @@ -0,0 +1,13 @@ +Index: b/gtk/gtkwindow.c +=================================================================== +--- a/gtk/gtkwindow.c ++++ b/gtk/gtkwindow.c +@@ -8017,7 +8017,7 @@ gtk_window_state_event (GtkWidget + GtkWindow *window = GTK_WINDOW (widget); + GtkWindowPrivate *priv = window->priv; + +- if (event->changed_mask & GDK_WINDOW_STATE_FOCUSED) ++ if ((event->changed_mask & GDK_WINDOW_STATE_FOCUSED) && priv->client_decorated) + ensure_state_flag_backdrop (widget); + + if (event->changed_mask & GDK_WINDOW_STATE_FULLSCREEN) diff --git a/appearance__file-chooser.patch b/appearance__file-chooser.patch new file mode 100644 index 0000000..5681fcf --- /dev/null +++ b/appearance__file-chooser.patch @@ -0,0 +1,29 @@ +Index: b/gtk/gtkfilechooserwidget.c +=================================================================== +--- a/gtk/gtkfilechooserwidget.c ++++ b/gtk/gtkfilechooserwidget.c +@@ -79,6 +79,7 @@ + #include "gtkseparator.h" + #include "gtkmodelbutton.h" + #include "gtkgesturelongpress.h" ++#include "gtkcssprovider.h" + + #include + +@@ -8826,6 +8827,16 @@ post_process_ui (GtkFileChooserWidget *i + gtk_popover_set_relative_to (GTK_POPOVER (impl->priv->rename_file_popover), impl->priv->browse_files_tree_view); + + add_actions (impl); ++ static gboolean style_added = FALSE; ++ if (!style_added) ++ { ++ style_added = TRUE; ++ GtkCssProvider *provider = gtk_css_provider_new (); ++ gtk_css_provider_load_from_data (provider, ++ "filechooser .sidebar-icon, filechooser .path-bar, filechooser .path-bar + button { opacity: 1; -gtk-icon-style: regular; }", -1, NULL); ++ gtk_style_context_add_provider_for_screen (gtk_widget_get_screen (GTK_WIDGET (impl)), ++ GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); ++ } + } + + void diff --git a/appearance__message-dialogs.patch b/appearance__message-dialogs.patch new file mode 100644 index 0000000..1b993d8 --- /dev/null +++ b/appearance__message-dialogs.patch @@ -0,0 +1,149 @@ +Index: b/gtk/gtkdialog.c +=================================================================== +--- a/gtk/gtkdialog.c ++++ b/gtk/gtkdialog.c +@@ -700,12 +700,12 @@ update_spacings (GtkDialog *dialog) + + /* don't set spacing when buttons are linked */ + if (gtk_button_box_get_layout (GTK_BUTTON_BOX (priv->action_area)) != GTK_BUTTONBOX_EXPAND) +- gtk_box_set_spacing (GTK_BOX (priv->action_area), button_spacing); ++ gtk_box_set_spacing (GTK_BOX (priv->action_area), (button_spacing == 0) ? 6 : button_spacing); + + if (!_gtk_container_get_border_width_set (GTK_CONTAINER (priv->action_area))) + { + gtk_container_set_border_width (GTK_CONTAINER (priv->action_area), +- action_area_border); ++ (action_area_border == 0) ? 5 : action_area_border); + _gtk_container_set_border_width_set (GTK_CONTAINER (priv->action_area), FALSE); + } + } +Index: b/gtk/gtkmessagedialog.c +=================================================================== +--- a/gtk/gtkmessagedialog.c ++++ b/gtk/gtkmessagedialog.c +@@ -37,6 +37,7 @@ + #include "gtkintl.h" + #include "gtkprivate.h" + #include "gtktypebuiltins.h" ++#include "gtkcssprovider.h" + + /** + * SECTION:gtkmessagedialog +@@ -327,7 +328,17 @@ gtk_message_dialog_init (GtkMessageDialo + G_GNUC_BEGIN_IGNORE_DEPRECATIONS + action_area = gtk_dialog_get_action_area (GTK_DIALOG (dialog)); + G_GNUC_END_IGNORE_DEPRECATIONS +- gtk_button_box_set_layout (GTK_BUTTON_BOX (action_area), GTK_BUTTONBOX_EXPAND); ++ static gboolean style_added = FALSE; ++ if (!style_added) ++ { ++ style_added = TRUE; ++ GtkCssProvider *provider = gtk_css_provider_new (); ++ gtk_css_provider_load_from_data (provider, ++ "messagedialog > *, messagedialog buttonbox.dialog-action-area, messagedialog box.dialog-action-box { margin: 0; margin-top: 0; padding: 0; }", ++ -1, NULL); ++ gtk_style_context_add_provider_for_screen (gtk_widget_get_screen (GTK_WIDGET (dialog)), ++ GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); ++ } + + settings = gtk_widget_get_settings (GTK_WIDGET (dialog)); + g_object_get (settings, "gtk-keynav-use-caret", &use_caret, NULL); +@@ -372,6 +383,7 @@ setup_type (GtkMessageDialog *dialog, + { + GtkMessageDialogPrivate *priv = dialog->priv; + const gchar *name = NULL; ++ const gchar *icon = NULL; + AtkObject *atk_obj; + + if (priv->message_type == type) +@@ -383,18 +395,22 @@ setup_type (GtkMessageDialog *dialog, + { + case GTK_MESSAGE_INFO: + name = _("Information"); ++ icon = "gtk-dialog-info"; + break; + + case GTK_MESSAGE_QUESTION: + name = _("Question"); ++ icon = "gtk-dialog-question"; + break; + + case GTK_MESSAGE_WARNING: + name = _("Warning"); ++ icon = "gtk-dialog-warning"; + break; + + case GTK_MESSAGE_ERROR: + name = _("Error"); ++ icon = "gtk-dialog-error"; + break; + + case GTK_MESSAGE_OTHER: +@@ -405,6 +421,12 @@ setup_type (GtkMessageDialog *dialog, + break; + } + ++ if (icon) ++ { ++ GtkWidget *image = gtk_image_new_from_icon_name (icon, GTK_ICON_SIZE_DIALOG); ++ g_object_set (image, "visible", TRUE, NULL); ++ g_object_set (dialog, "image", image, NULL); ++ } + atk_obj = gtk_widget_get_accessible (GTK_WIDGET (dialog)); + if (GTK_IS_ACCESSIBLE (atk_obj)) + { +Index: b/gtk/ui/gtkmessagedialog.ui +=================================================================== +--- a/gtk/ui/gtkmessagedialog.ui ++++ b/gtk/ui/gtkmessagedialog.ui +@@ -6,6 +6,7 @@ + 0 + dialog + 1 ++ 5 + + + 1 +@@ -14,23 +15,25 @@ + + + vertical +- 20 +- 0 ++ 8 ++ 2 + + + 1 +- 30 +- 30 +- 30 ++ 2 ++ 2 ++ 12 ++ 5 + + + 1 + vertical +- 10 ++ 12 + + + 1 +- center ++ start ++ 0 + start + 1 + 60 +@@ -43,7 +46,8 @@ + + 1 + 2 +- center ++ start ++ 0 + start + 1 + 60 diff --git a/appearance__print-dialog.patch b/appearance__print-dialog.patch new file mode 100644 index 0000000..cc5ad66 --- /dev/null +++ b/appearance__print-dialog.patch @@ -0,0 +1,51 @@ +Index: b/gtk/gtkprintunixdialog.c +=================================================================== +--- a/gtk/gtkprintunixdialog.c ++++ b/gtk/gtkprintunixdialog.c +@@ -750,6 +750,11 @@ gtk_print_unix_dialog_init (GtkPrintUnix + gtk_dialog_set_default_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); + widget = gtk_dialog_get_widget_for_response (GTK_DIALOG (dialog), GTK_RESPONSE_OK); + gtk_widget_set_sensitive (widget, FALSE); ++ GtkCssProvider *provider = gtk_css_provider_new (); ++ gtk_css_provider_load_from_data (provider, ".dialog-action-box { margin: 0; }", -1, NULL); ++ GtkStyleContext *context = gtk_widget_get_style_context (gtk_widget_get_parent (gtk_dialog_get_action_area (GTK_DIALOG (dialog)))); ++ gtk_style_context_add_provider (context, GTK_STYLE_PROVIDER (provider), GTK_STYLE_PROVIDER_PRIORITY_APPLICATION); ++ gtk_style_context_save (context); + + /* Treeview auxiliary functions need to be setup here */ + gtk_tree_model_filter_set_visible_func (priv->printer_list_filter, +Index: b/gtk/ui/gtkprintunixdialog.ui +=================================================================== +--- a/gtk/ui/gtkprintunixdialog.ui ++++ b/gtk/ui/gtkprintunixdialog.ui +@@ -48,6 +48,7 @@ + 1 + +