diff options
author | Clement Lefebvre <[email protected]> | 2015-09-05 17:29:32 +0100 |
---|---|---|
committer | Clement Lefebvre <[email protected]> | 2015-09-05 17:29:32 +0100 |
commit | e10179169327f7e2e3432f2b7775b56176710c99 (patch) | |
tree | efb4fa16473d465d97d75b052bbc89791c666953 /src | |
parent | aa60086b0f20c4a60efc57a2baa26731f99587cc (diff) | |
download | mate-system-monitor-e10179169327f7e2e3432f2b7775b56176710c99.tar.bz2 mate-system-monitor-e10179169327f7e2e3432f2b7775b56176710c99.tar.xz |
SysInfo: Let distributions define a custom side image
Diffstat (limited to 'src')
-rw-r--r-- | src/sysinfo.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/sysinfo.cpp b/src/sysinfo.cpp index b9b29aa..049a8ca 100644 --- a/src/sysinfo.cpp +++ b/src/sysinfo.cpp @@ -752,12 +752,16 @@ procman_create_sysinfo_view(void) gchar *markup; - hbox = gtk_hbox_new(FALSE, 12); gtk_container_set_border_width(GTK_CONTAINER(hbox), 6); /* left-side logo */ - logo = gtk_image_new_from_file(DATADIR "/pixmaps/mate-system-monitor/side.png"); + if (g_file_test (DATADIR "/pixmaps/mate-system-monitor/distribution/side.png", G_FILE_TEST_EXISTS)) { + logo = gtk_image_new_from_file(DATADIR "/pixmaps/mate-system-monitor/distribution/side.png"); + } + else { + logo = gtk_image_new_from_file(DATADIR "/pixmaps/mate-system-monitor/side.png"); + } gtk_misc_set_alignment(GTK_MISC(logo), 0.5, 0.0); gtk_misc_set_padding(GTK_MISC(logo), 5, 12); gtk_box_pack_start(GTK_BOX(hbox), logo, FALSE, FALSE, 0); |