[gnome-software: 51/110] Adapt to GtkButton API changes




commit 0109f6568b46045960bc626409ad57e5fea9db93
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Tue Aug 24 18:53:22 2021 -0300

    Adapt to GtkButton API changes

 src/gs-repo-row.c     | 2 +-
 src/gs-updates-page.c | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gs-repo-row.c b/src/gs-repo-row.c
index df1bccb7c..87926092f 100644
--- a/src/gs-repo-row.c
+++ b/src/gs-repo-row.c
@@ -305,7 +305,7 @@ gs_repo_row_init (GsRepoRow *self)
        priv->switch_handler_id = g_signal_connect (priv->disable_switch, "notify::active",
                                                    G_CALLBACK (disable_switch_clicked_cb), self);
        image = gtk_image_new_from_icon_name ("user-trash-symbolic");
-       gtk_button_set_image (GTK_BUTTON (priv->remove_button), image);
+       gtk_button_set_child (GTK_BUTTON (priv->remove_button), image);
        g_signal_connect (priv->remove_button, "clicked",
                G_CALLBACK (gs_repo_row_remove_button_clicked_cb), self);
 }
diff --git a/src/gs-updates-page.c b/src/gs-updates-page.c
index 3bf52b863..6c286717b 100644
--- a/src/gs-updates-page.c
+++ b/src/gs-updates-page.c
@@ -1299,7 +1299,7 @@ gs_updates_page_setup (GsPage *page,
        gtk_box_prepend (GTK_BOX (self->header_start_box), self->header_spinner_start);
 
        /* setup update details window */
-       self->button_refresh = gtk_button_new_from_icon_name ("view-refresh-symbolic", GTK_ICON_SIZE_MENU);
+       self->button_refresh = gtk_button_new_from_icon_name ("view-refresh-symbolic");
        gtk_accessible_update_property (GTK_ACCESSIBLE (self->button_refresh),
                                        GTK_ACCESSIBLE_PROPERTY_LABEL, _("Check for updates"),
                                        -1);


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