Skip to content

Commit

Permalink
gtk: fix incorrect status/support pixbuf icon sizes
Browse files Browse the repository at this point in the history
The get_gdk_pixbuf() helper has a default "size" argument of 48
and the code in rgpackagestatus.cc was using it with the default
arg. This lead to an increased size of the status/supported pixbuf.

This is fixed now by explicitely requesting pixbufs with 22 size.

Closes: #1014164
  • Loading branch information
mvo5 committed Jul 1, 2022
1 parent bef6ceb commit 1df799a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions gtk/rgpackagestatus.cc
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,13 @@ void RGPackageStatus::initColors()

void RGPackageStatus::initPixbufs()
{
gchar *s;
const int statusPixbufSize = 22;

for (int i = 0; i < N_STATUS_COUNT; i++) {
s = g_strdup_printf("package-%s", PackageStatusShortString[i]);
StatusPixbuf[i] = get_gdk_pixbuf(s);
gchar *s = g_strdup_printf("package-%s", PackageStatusShortString[i]);
StatusPixbuf[i] = get_gdk_pixbuf(s, statusPixbufSize);
}
supportedPix = get_gdk_pixbuf("package-supported");
supportedPix = get_gdk_pixbuf("package-supported", statusPixbufSize);
}

// class that finds out what do display to get user
Expand Down

0 comments on commit 1df799a

Please sign in to comment.