[epiphany/wip/exalm/gtk4-cleanups-2: 12/24] window-commands: Don't set suggested-action on a dialog button
- From: Marge Bot <marge-bot src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/gtk4-cleanups-2: 12/24] window-commands: Don't set suggested-action on a dialog button
- Date: Tue, 30 Nov 2021 20:23:48 +0000 (UTC)
commit 471c5bdb03d4360f934e4ea08db2a466cb93e4c8
Author: Alexander Mikhaylenko <alexm gnome org>
Date: Tue Nov 30 12:18:51 2021 +0500
window-commands: Don't set suggested-action on a dialog button
It's already set by the fact it's the default response.
Part-of: <https://gitlab.gnome.org/GNOME/epiphany/-/merge_requests/1035>
src/window-commands.c | 5 -----
1 file changed, 5 deletions(-)
---
diff --git a/src/window-commands.c b/src/window-commands.c
index f6c2d2c34..92ec42b21 100644
--- a/src/window-commands.c
+++ b/src/window-commands.c
@@ -240,7 +240,6 @@ show_profile_selector (GtkWidget *parent,
{
GtkWidget *selector;
GtkWidget *list_box;
- GtkWidget *suggested;
GtkWidget *content_area;
GSList *l;
int response;
@@ -256,10 +255,6 @@ show_profile_selector (GtkWidget *parent,
NULL);
gtk_dialog_set_default_response (GTK_DIALOG (selector), GTK_RESPONSE_OK);
- suggested = gtk_dialog_get_widget_for_response (GTK_DIALOG (selector), GTK_RESPONSE_OK);
- gtk_style_context_add_class (gtk_widget_get_style_context (suggested),
- "suggested-action");
-
content_area = gtk_dialog_get_content_area (GTK_DIALOG (selector));
gtk_container_set_border_width (GTK_CONTAINER (content_area), 5);
gtk_widget_set_valign (content_area, GTK_ALIGN_CENTER);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]