From b04c3acf3836d122bb0ee86332d3d2cf4732c94e Mon Sep 17 00:00:00 2001 From: infirit Date: Wed, 17 Dec 2014 13:25:13 +0100 Subject: interface: Move/Add comment for each Gtk version --- src/interface.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/interface.cpp b/src/interface.cpp index ab201d5..c51914d 100644 --- a/src/interface.cpp +++ b/src/interface.cpp @@ -618,13 +618,14 @@ create_main_window (ProcData *procdata) app = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(app), _("System Monitor")); - /* use rgba colormap, if available */ GdkScreen* screen = gtk_widget_get_screen(app); #if GTK_CHECK_VERSION(3,0,0) + /* use visual, if available */ GdkVisual* visual = gdk_screen_get_rgba_visual(screen); if (visual) gtk_widget_set_visual(app, visual); #else + /* use rgba colormap, if available */ GdkColormap* colormap = gdk_screen_get_rgba_colormap(screen); if (colormap) gtk_widget_set_default_colormap(colormap); -- cgit v1.2.1