[epiphany/wip/exalm/gtk4-cleanups-2: 15/27] window-commands: Don't set suggested-action on a dialog button
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [epiphany/wip/exalm/gtk4-cleanups-2: 15/27] window-commands: Don't set suggested-action on a dialog button
- Date: Tue, 30 Nov 2021 19:43:49 +0000 (UTC)
commit c38014afbea573893c16c804e7ee6fc46ffc9e21
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.
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]