Skip to content

Commit 1400e77

Browse files
author
qk
committed
Resolve the size of the blank cd icon is too small in Desktop
1 parent 73f179d commit 1400e77

File tree

3 files changed

+14
-2
lines changed

3 files changed

+14
-2
lines changed

libpeony-private/peony-desktop-link.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,15 @@ mount_changed_callback (GMount *mount, PeonyDesktopLink *link)
8585

8686
link->details->display_name = g_mount_get_name (mount);
8787
link->details->activation_location = g_mount_get_default_location (mount);
88-
link->details->icon = g_mount_get_icon (mount);
88+
89+
if (strstr(link->details->filename,_("Disc"))){
90+
91+
link->details->icon = g_themed_icon_new ("media-dvd");
92+
93+
} else{
94+
95+
link->details->icon = g_mount_get_icon (mount);
96+
}
8997

9098
peony_desktop_link_changed (link);
9199
}

libpeony-private/peony-file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4143,7 +4143,7 @@ peony_file_get_gicon (PeonyFile *file,
41434143
mount = peony_file_get_mount (file);
41444144

41454145
if (mount != NULL) {
4146-
mount_icon = g_mount_get_icon (mount);
4146+
// mount_icon = g_mount_get_icon (mount);
41474147
g_object_unref (mount);
41484148
}
41494149
}

po/zh_CN.po

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7492,3 +7492,7 @@ msgstr "缩放"
74927492
#: ../src/peony-zoom-control.c:931
74937493
msgid "Set the zoom level of the current view"
74947494
msgstr "设置当前视图的缩放级别"
7495+
7496+
#: ../libpeony-private/peony-desktop-link.c:89
7497+
msgid "Disc"
7498+
msgstr "光盘"

0 commit comments

Comments
 (0)