diff -Nru mate-power-manager-1.26.0/debian/changelog mate-power-manager-1.26.0/debian/changelog --- mate-power-manager-1.26.0/debian/changelog 2021-12-11 23:02:45.000000000 +0000 +++ mate-power-manager-1.26.0/debian/changelog 2022-04-05 10:57:19.000000000 +0000 @@ -1,3 +1,10 @@ +mate-power-manager (1.26.0-1ubuntu0) jammy; urgency=medium + + * debian/patches: + + Add 0001_add-gaming-input-devices.patch. (LP: #1967854) + + -- Martin Wimpress Tue, 05 Apr 2022 11:57:19 +0100 + mate-power-manager (1.26.0-1) unstable; urgency=medium [ Martin Wimpress ] diff -Nru mate-power-manager-1.26.0/debian/patches/0001_add-gaming-input-devices.patch mate-power-manager-1.26.0/debian/patches/0001_add-gaming-input-devices.patch --- mate-power-manager-1.26.0/debian/patches/0001_add-gaming-input-devices.patch 1970-01-01 00:00:00.000000000 +0000 +++ mate-power-manager-1.26.0/debian/patches/0001_add-gaming-input-devices.patch 2022-04-05 10:54:54.000000000 +0000 @@ -0,0 +1,3764 @@ +diff --git a/data/icons/scalable/status/gpm-gaming-input-000.svg b/data/icons/scalable/status/gpm-gaming-input-000.svg +new file mode 100644 +index 00000000..fdcaa77f +--- /dev/null ++++ b/data/icons/scalable/status/gpm-gaming-input-000.svg +@@ -0,0 +1,507 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff --git a/data/icons/scalable/status/gpm-gaming-input-020.svg b/data/icons/scalable/status/gpm-gaming-input-020.svg +new file mode 100644 +index 00000000..d5e8f506 +--- /dev/null ++++ b/data/icons/scalable/status/gpm-gaming-input-020.svg +@@ -0,0 +1,792 @@ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff --git a/data/icons/scalable/status/gpm-gaming-input-040.svg b/data/icons/scalable/status/gpm-gaming-input-040.svg +new file mode 100644 +index 00000000..4a7ae617 +--- /dev/null ++++ b/data/icons/scalable/status/gpm-gaming-input-040.svg +@@ -0,0 +1,673 @@ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff --git a/data/icons/scalable/status/gpm-gaming-input-060.svg b/data/icons/scalable/status/gpm-gaming-input-060.svg +new file mode 100644 +index 00000000..901ad0f2 +--- /dev/null ++++ b/data/icons/scalable/status/gpm-gaming-input-060.svg +@@ -0,0 +1,521 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff --git a/data/icons/scalable/status/gpm-gaming-input-080.svg b/data/icons/scalable/status/gpm-gaming-input-080.svg +new file mode 100644 +index 00000000..5d209e23 +--- /dev/null ++++ b/data/icons/scalable/status/gpm-gaming-input-080.svg +@@ -0,0 +1,673 @@ ++ ++ ++ ++ ++ ++ ++ ++ image/svg+xml ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff --git a/data/icons/scalable/status/gpm-gaming-input-100.svg b/data/icons/scalable/status/gpm-gaming-input-100.svg +new file mode 100644 +index 00000000..b0201af3 +--- /dev/null ++++ b/data/icons/scalable/status/gpm-gaming-input-100.svg +@@ -0,0 +1,501 @@ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ ++ +diff --git a/src/gpm-statistics.c b/src/gpm-statistics.c +index ae144cb8..e87651bb 100644 +--- a/src/gpm-statistics.c ++++ b/src/gpm-statistics.c +@@ -894,6 +894,9 @@ gpm_stats_add_device (UpDevice *device, GPtrArray *devices) + if ((vendor != NULL && strlen(vendor) != 0) && (model != NULL && strlen(model) != 0)) { + label = g_strdup_printf ("%s %s", vendor, model); + } ++ else if((vendor == NULL || strlen(vendor) == 0) && (model != NULL && strlen(model) != 0)) { ++ label = g_strdup_printf ("%s", model); ++ } + else { + label = g_strdup_printf ("%s", gpm_device_kind_to_localised_string (kind, 1)); + } +diff --git a/src/gpm-tray-icon.c b/src/gpm-tray-icon.c +index 258c2424..9f5fe388 100644 +--- a/src/gpm-tray-icon.c ++++ b/src/gpm-tray-icon.c +@@ -269,6 +269,9 @@ gpm_tray_icon_add_device (GpmTrayIcon *icon, GtkMenu *menu, const GPtrArray *arr + if ((vendor != NULL && strlen(vendor) != 0) && (model != NULL && strlen(model) != 0)) { + label = g_strdup_printf ("%s %s (%.1f%%)", vendor, model, percentage); + } ++ else if((vendor == NULL || strlen(vendor) == 0) && (model != NULL && strlen(model) != 0)) { ++ label = g_strdup_printf ("%s (%.1f%%)", model, percentage); ++ } + else { + label = g_strdup_printf ("%s (%.1f%%)", gpm_device_kind_to_localised_string (kind, 1), percentage); + } +@@ -354,6 +357,7 @@ gpm_tray_icon_create_menu (GpmTrayIcon *icon) + dev_cnt += gpm_tray_icon_add_device (icon, menu, array, UP_DEVICE_KIND_MEDIA_PLAYER); + dev_cnt += gpm_tray_icon_add_device (icon, menu, array, UP_DEVICE_KIND_TABLET); + dev_cnt += gpm_tray_icon_add_device (icon, menu, array, UP_DEVICE_KIND_COMPUTER); ++ dev_cnt += gpm_tray_icon_add_device (icon, menu, array, UP_DEVICE_KIND_GAMING_INPUT); + g_ptr_array_unref (array); + + /* skip for things like live-cd's and GDM */ +diff --git a/src/gpm-upower.c b/src/gpm-upower.c +index 6cf24c66..7311936f 100644 +--- a/src/gpm-upower.c ++++ b/src/gpm-upower.c +@@ -162,6 +162,9 @@ gpm_upower_get_device_icon (UpDevice *device) + index_str = gpm_upower_get_device_icon_index (device); + filename = g_strdup_printf ("gpm-%s-%s", prefix, index_str); + } ++ } else if (kind == UP_DEVICE_KIND_GAMING_INPUT) { ++ index_str = gpm_upower_get_device_icon_index (device); ++ filename = g_strdup_printf ("gpm-%s-%s", prefix, index_str); + } + + /* nothing matched */ +@@ -526,6 +529,10 @@ gpm_device_kind_to_localised_string (UpDeviceKind kind, guint number) + /* TRANSLATORS: tablet device */ + text = ngettext ("Computer", "Computers", number); + break; ++ case UP_DEVICE_KIND_GAMING_INPUT: ++ /* TRANSLATORS: wireless gamepad, joystick etc */ ++ text = ngettext ("Gaming input", "Gaming inputs", number); ++ break; + default: + g_warning ("enum unrecognised: %i", kind); + text = up_device_kind_to_string (kind); diff -Nru mate-power-manager-1.26.0/debian/patches/series mate-power-manager-1.26.0/debian/patches/series --- mate-power-manager-1.26.0/debian/patches/series 1970-01-01 00:00:00.000000000 +0000 +++ mate-power-manager-1.26.0/debian/patches/series 2022-04-05 10:53:47.000000000 +0000 @@ -0,0 +1 @@ +0001_add-gaming-input-devices.patch