[Debian-on-mobile-maintainers] [Git][DebianOnMobile-team/phosh][debian/latest] 8 commits: app-grid-folder-button: Force pixel size of 24px

Guido Günther (@agx) gitlab at salsa.debian.org
Sun Jun 30 09:13:01 BST 2024



Guido Günther pushed to branch debian/latest at Debian On Mobile / phosh


Commits:
9d8a8c59 by Arun Mani J at 2024-06-26T22:34:26+05:30
app-grid-folder-button: Force pixel size of 24px

Closes: https://gitlab.gnome.org/World/Phosh/phosh/-/issues/1081
Part-of: <https://gitlab.gnome.org/World/Phosh/phosh/-/merge_requests/1465>

- - - - -
11dc1634 by Marge Bot at 2024-06-28T16:49:59+00:00
Merge branch 'folder-icon-size' into 'main'

app-grid-folder-button: Force pixel size of 24px

Closes #1081

See merge request World/Phosh/phosh!1465
- - - - -
d5d379d6 by Guido Günther at 2024-06-30T07:35:52+02:00
treewide: Document changes and release 0.40.0

Part-of: <https://gitlab.gnome.org/World/Phosh/phosh/-/merge_requests/1466>

- - - - -
afef4176 by Marge Bot at 2024-06-30T06:13:35+00:00
Merge branch 'rel-0.40.0' into 'main'

treewide: Document changes and release 0.40.0

See merge request World/Phosh/phosh!1466
- - - - -
22514545 by Guido Günther at 2024-06-30T09:38:00+02:00
New upstream version 0.40.0
- - - - -
eeefa898 by Guido Günther at 2024-06-30T09:38:11+02:00
Update upstream source from tag 'upstream/0.40.0'

Update to upstream version '0.40.0'
with Debian dir f7701f372355b1f71ce041fa36e2d2706e8bbd29
- - - - -
7763599b by Guido Günther at 2024-06-30T09:38:11+02:00
New upstream release

- - - - -
ae25a336 by Guido Günther at 2024-06-30T09:44:16+02:00
Document changes and release 0.40.0-1

- - - - -


4 changed files:

- NEWS
- debian/changelog
- meson.build
- src/app-grid-folder-button.c


Changes:

=====================================
NEWS
=====================================
@@ -1,5 +1,5 @@
-phosh 0.40.0~rc1
-----------------
+phosh 0.40.0
+------------
 Released June 2024
 * New quick setting plugins:
     * Dark style toggle
@@ -10,7 +10,7 @@ Released June 2024
     * Wire up screenshot keybinding
     * Tweak multiple gsetting overrides (default idle-delay, unlock
        sim, sound theme, …)
-    * Fix too large icons in folder buttons
+    * Fix too large and too small icons in folder buttons
     * launcher-box: Properly align count and progress to not look out
       of place
     * Move launched processes to transient scope


=====================================
debian/changelog
=====================================
@@ -1,3 +1,9 @@
+phosh (0.40.0-1) unstable; urgency=medium
+
+  * New upstream release
+
+ -- Guido Günther <agx at sigxcpu.org>  Sun, 30 Jun 2024 09:43:47 +0200
+
 phosh (0.40.0~rc1-1) unstable; urgency=medium
 
   * New upstream release


=====================================
meson.build
=====================================
@@ -1,5 +1,5 @@
 project('phosh', 'c',
-          version: '0.40.0.rc1',
+          version: '0.40.0',
           license: 'GPL-3.0-or-later',
     meson_version: '>= 1.0.0',
   default_options: [ 'warning_level=1', 'buildtype=debugoptimized', 'c_std=gnu11' ],


=====================================
src/app-grid-folder-button.c
=====================================
@@ -107,16 +107,20 @@ build_2x2_grid_icon (PhoshAppGridFolderButton *self)
 
     if (icon == NULL) {
       image = gtk_image_new_from_icon_name (PHOSH_APP_UNKNOWN_ICON,
-                                            GTK_ICON_SIZE_BUTTON);
+                                            GTK_ICON_SIZE_DND);
     } else {
       if (G_IS_THEMED_ICON (icon)) {
         g_themed_icon_append_name (G_THEMED_ICON (icon),
                                    PHOSH_APP_UNKNOWN_ICON);
       }
-      image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_BUTTON);
+      image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_DND);
     }
 
-    gtk_image_set_pixel_size (GTK_IMAGE (image), 16);
+    /* app-grid-button uses 64px for its icon.
+     * Our grid has two rows and two columns, with 8px for spacing.
+     * So 2x + 8 = 64.
+     * It means x = 28. But we use 24 as icons usually have a 2px padding. */
+    gtk_image_set_pixel_size (GTK_IMAGE (image), 24);
     gtk_widget_set_visible (image, TRUE);
     gtk_grid_attach (self->grid, image, i % 2, i >= 2, 1, 1);
   }



View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/phosh/-/compare/ce55e8bae9d84cd932dfd54c4ab621f9d2bdcbbc...ae25a33682c91f006868287020550052fe48d457

-- 
This project does not include diff previews in email notifications.
View it on GitLab: https://salsa.debian.org/DebianOnMobile-team/phosh/-/compare/ce55e8bae9d84cd932dfd54c4ab621f9d2bdcbbc...ae25a33682c91f006868287020550052fe48d457
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/debian-on-mobile-maintainers/attachments/20240630/d15a45e4/attachment-0001.htm>


More information about the Debian-on-mobile-maintainers mailing list