[gnome-software: 15/110] Remove gtk_widget_set_has_window




commit ace537bbe37ea5dc092de59734b5009bcb9ed7ce
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date:   Sat Aug 21 14:17:44 2021 -0300

    Remove gtk_widget_set_has_window
    
    It doesn't exist anymore, and it's behavior is not to be replaced
    either.

 src/gs-app-addon-row.c           | 1 -
 src/gs-app-context-bar.c         | 1 -
 src/gs-app-row.c                 | 1 -
 src/gs-app-version-history-row.c | 1 -
 src/gs-category-tile.c           | 1 -
 src/gs-context-dialog-row.c      | 1 -
 src/gs-feature-tile.c            | 1 -
 src/gs-featured-carousel.c       | 1 -
 src/gs-info-bar.c                | 1 -
 src/gs-picture.c                 | 2 --
 src/gs-review-row.c              | 1 -
 src/gs-rounded-bin.c             | 1 -
 src/gs-screenshot-image.c        | 2 --
 src/gs-star-image.c              | 1 -
 src/gs-star-widget.c             | 1 -
 src/gs-summary-tile.c            | 1 -
 16 files changed, 18 deletions(-)
---
diff --git a/src/gs-app-addon-row.c b/src/gs-app-addon-row.c
index 20aa50c03..d28993ca7 100644
--- a/src/gs-app-addon-row.c
+++ b/src/gs-app-addon-row.c
@@ -283,7 +283,6 @@ gs_app_addon_row_class_init (GsAppAddonRowClass *klass)
 static void
 gs_app_addon_row_init (GsAppAddonRow *row)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (row), FALSE);
        gtk_widget_init_template (GTK_WIDGET (row));
 
        g_signal_connect (row->checkbox, "toggled",
diff --git a/src/gs-app-context-bar.c b/src/gs-app-context-bar.c
index 79279f4ad..938650342 100644
--- a/src/gs-app-context-bar.c
+++ b/src/gs-app-context-bar.c
@@ -771,7 +771,6 @@ tile_clicked_cb (GtkWidget *widget,
 static void
 gs_app_context_bar_init (GsAppContextBar *self)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
        gtk_widget_init_template (GTK_WIDGET (self));
 }
 
diff --git a/src/gs-app-row.c b/src/gs-app-row.c
index 644276d03..d36501eb5 100644
--- a/src/gs-app-row.c
+++ b/src/gs-app-row.c
@@ -855,7 +855,6 @@ gs_app_row_init (GsAppRow *app_row)
 
        priv->show_description = TRUE;
 
-       gtk_widget_set_has_window (GTK_WIDGET (app_row), FALSE);
        gtk_widget_init_template (GTK_WIDGET (app_row));
 
        g_signal_connect (priv->button, "clicked",
diff --git a/src/gs-app-version-history-row.c b/src/gs-app-version-history-row.c
index 921393fae..21541ea9f 100644
--- a/src/gs-app-version-history-row.c
+++ b/src/gs-app-version-history-row.c
@@ -40,7 +40,6 @@ gs_app_version_history_row_class_init (GsAppVersionHistoryRowClass *klass)
 static void
 gs_app_version_history_row_init (GsAppVersionHistoryRow *row)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (row), FALSE);
        gtk_widget_init_template (GTK_WIDGET (row));
 }
 
diff --git a/src/gs-category-tile.c b/src/gs-category-tile.c
index fef3bc433..ee8d82dc9 100644
--- a/src/gs-category-tile.c
+++ b/src/gs-category-tile.c
@@ -167,7 +167,6 @@ gs_category_tile_dispose (GObject *object)
 static void
 gs_category_tile_init (GsCategoryTile *tile)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (tile), FALSE);
        gtk_widget_init_template (GTK_WIDGET (tile));
 }
 
diff --git a/src/gs-context-dialog-row.c b/src/gs-context-dialog-row.c
index 907e47279..341c71111 100644
--- a/src/gs-context-dialog-row.c
+++ b/src/gs-context-dialog-row.c
@@ -77,7 +77,6 @@ css_class_for_importance (GsContextDialogRowImportance importance)
 static void
 gs_context_dialog_row_init (GsContextDialogRow *self)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
        gtk_widget_init_template (GTK_WIDGET (self));
 }
 
diff --git a/src/gs-feature-tile.c b/src/gs-feature-tile.c
index 1c85083eb..3237d3b3f 100644
--- a/src/gs-feature-tile.c
+++ b/src/gs-feature-tile.c
@@ -436,7 +436,6 @@ gs_feature_tile_size_allocate (GtkWidget     *widget,
 static void
 gs_feature_tile_init (GsFeatureTile *tile)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (tile), FALSE);
        gtk_widget_init_template (GTK_WIDGET (tile));
 }
 
diff --git a/src/gs-featured-carousel.c b/src/gs-featured-carousel.c
index a90da9e7c..66cadb12e 100644
--- a/src/gs-featured-carousel.c
+++ b/src/gs-featured-carousel.c
@@ -189,7 +189,6 @@ app_tile_clicked_cb (GsAppTile *app_tile,
 static void
 gs_featured_carousel_init (GsFeaturedCarousel *self)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
        gtk_widget_init_template (GTK_WIDGET (self));
 
        /* Ensure the text directions are up to date */
diff --git a/src/gs-info-bar.c b/src/gs-info-bar.c
index caac2ece6..da9b239f1 100644
--- a/src/gs-info-bar.c
+++ b/src/gs-info-bar.c
@@ -79,7 +79,6 @@ gs_info_bar_set_property (GObject *object,
 static void
 gs_info_bar_init (GsInfoBar *infobar)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (infobar), FALSE);
        gtk_widget_init_template (GTK_WIDGET (infobar));
 }
 
diff --git a/src/gs-picture.c b/src/gs-picture.c
index 492943226..ed227f861 100644
--- a/src/gs-picture.c
+++ b/src/gs-picture.c
@@ -382,8 +382,6 @@ gs_picture_init (GsPicture *picture)
 {
        AtkObject *accessible;
 
-       gtk_widget_set_has_window (GTK_WIDGET (picture), FALSE);
-
        accessible = gtk_widget_get_accessible (GTK_WIDGET (picture));
        if (accessible != NULL) {
                atk_object_set_role (accessible, ATK_ROLE_IMAGE);
diff --git a/src/gs-review-row.c b/src/gs-review-row.c
index c80b43b65..5801053d3 100644
--- a/src/gs-review-row.c
+++ b/src/gs-review-row.c
@@ -140,7 +140,6 @@ gs_review_row_init (GsReviewRow *row)
 {
        GsReviewRowPrivate *priv = gs_review_row_get_instance_private (row);
        priv->network_available = TRUE;
-       gtk_widget_set_has_window (GTK_WIDGET (row), FALSE);
        gtk_widget_init_template (GTK_WIDGET (row));
 }
 
diff --git a/src/gs-rounded-bin.c b/src/gs-rounded-bin.c
index 8c077c933..b44e5f229 100644
--- a/src/gs-rounded-bin.c
+++ b/src/gs-rounded-bin.c
@@ -68,7 +68,6 @@ static void clear_masks (GsRoundedBin *self);
 static void
 gs_rounded_bin_init (GsRoundedBin *self)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
 }
 
 static void
diff --git a/src/gs-screenshot-image.c b/src/gs-screenshot-image.c
index 1372667f9..e7a995063 100644
--- a/src/gs-screenshot-image.c
+++ b/src/gs-screenshot-image.c
@@ -683,8 +683,6 @@ gs_screenshot_image_init (GsScreenshotImage *ssimg)
        ssimg->settings = g_settings_new ("org.gnome.software");
        ssimg->showing_image = FALSE;
 
-       gtk_widget_set_has_window (GTK_WIDGET (ssimg), FALSE);
-
        g_type_ensure (GS_TYPE_PICTURE);
        gtk_widget_init_template (GTK_WIDGET (ssimg));
 
diff --git a/src/gs-star-image.c b/src/gs-star-image.c
index 332ad3002..cf4161dae 100644
--- a/src/gs-star-image.c
+++ b/src/gs-star-image.c
@@ -222,7 +222,6 @@ gs_star_image_init (GsStarImage *self)
 {
        self->fraction = 1.0;
 
-       gtk_widget_set_has_window (GTK_WIDGET (self), FALSE);
        gtk_widget_set_size_request (GTK_WIDGET (self), 16, 16);
 }
 
diff --git a/src/gs-star-widget.c b/src/gs-star-widget.c
index 60747dfe7..eb092d9f9 100644
--- a/src/gs-star-widget.c
+++ b/src/gs-star-widget.c
@@ -251,7 +251,6 @@ gs_star_widget_realize (GtkWidget *widget)
 static void
 gs_star_widget_init (GsStarWidget *star)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (star), FALSE);
        gtk_widget_init_template (GTK_WIDGET (star));
 }
 
diff --git a/src/gs-summary-tile.c b/src/gs-summary-tile.c
index 33622c212..b47bf808f 100644
--- a/src/gs-summary-tile.c
+++ b/src/gs-summary-tile.c
@@ -103,7 +103,6 @@ gs_summary_tile_refresh (GsAppTile *self)
 static void
 gs_summary_tile_init (GsSummaryTile *tile)
 {
-       gtk_widget_set_has_window (GTK_WIDGET (tile), FALSE);
        tile->preferred_width = -1;
        gtk_widget_init_template (GTK_WIDGET (tile));
 }


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