diff options
author | Pablo Barciela <[email protected]> | 2017-12-31 02:15:11 +0100 |
---|---|---|
committer | monsta <[email protected]> | 2018-03-20 11:04:47 +0300 |
commit | ab2f7deb9c8f87b4d588c69116ed6698608c0c96 (patch) | |
tree | 17f85b009f40fdf32909320ea737a1c956957666 /src/procman.cpp | |
parent | ab71db7f5014b90388a205eb042b8215e5450c58 (diff) | |
download | mate-system-monitor-ab2f7deb9c8f87b4d588c69116ed6698608c0c96.tar.bz2 mate-system-monitor-ab2f7deb9c8f87b4d588c69116ed6698608c0c96.tar.xz |
procman.cpp: Fix build warning: argument 1 null where non-null expected
Diffstat (limited to 'src/procman.cpp')
-rw-r--r-- | src/procman.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/procman.cpp b/src/procman.cpp index ea50cb2..9dbaf21 100644 --- a/src/procman.cpp +++ b/src/procman.cpp @@ -596,15 +596,11 @@ cb_server (const gchar *msg, gpointer user_data) procman_debug("Changing to PROCMAN_TAB_DISKS via bacon message"); set_tab(GTK_NOTEBOOK(procdata->notebook), PROCMAN_TAB_DISKS, procdata); } - } else - timestamp = strtoul(msg, NULL, 0); - - if (timestamp == 0) - { - /* fall back to rountripping to X */ - timestamp = gdk_x11_get_server_time (window); } + /* fall back to rountripping to X */ + timestamp = gdk_x11_get_server_time (window); + gdk_x11_window_set_user_time (window, timestamp); gtk_window_present (GTK_WINDOW(procdata->app)); |