diff options
author | infirit <[email protected]> | 2014-12-17 13:25:13 +0100 |
---|---|---|
committer | infirit <[email protected]> | 2014-12-17 13:53:30 +0100 |
commit | b04c3acf3836d122bb0ee86332d3d2cf4732c94e (patch) | |
tree | 35297dfaf04f474494915be4547fd6f315b1046f | |
parent | 0077af40e5926d19e48413ab22eb21d634de5a64 (diff) | |
download | mate-system-monitor-b04c3acf3836d122bb0ee86332d3d2cf4732c94e.tar.bz2 mate-system-monitor-b04c3acf3836d122bb0ee86332d3d2cf4732c94e.tar.xz |
interface: Move/Add comment for each Gtk version
-rw-r--r-- | src/interface.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
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); |