From e10179169327f7e2e3432f2b7775b56176710c99 Mon Sep 17 00:00:00 2001 From: Clement Lefebvre Date: Sat, 5 Sep 2015 17:29:32 +0100 Subject: SysInfo: Let distributions define a custom side image --- src/sysinfo.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src') 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); -- cgit v1.2.1