summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPablo Barciela <[email protected]>2017-12-31 02:15:11 +0100
committerraveit65 <[email protected]>2017-12-31 20:18:59 +0100
commitb1ba85934f96a2d2d8dd281117a105f815843340 (patch)
tree6176fba8ce1861f45862db70ee0706ccb061abe7 /src
parent76c0ee4bcb34bcc683261ce81adbde85781810bb (diff)
downloadmate-system-monitor-b1ba85934f96a2d2d8dd281117a105f815843340.tar.bz2
mate-system-monitor-b1ba85934f96a2d2d8dd281117a105f815843340.tar.xz
procman.cpp: Fix build warning: argument 1 null where non-null expected
Diffstat (limited to 'src')
-rw-r--r--src/procman.cpp10
1 files changed, 3 insertions, 7 deletions
diff --git a/src/procman.cpp b/src/procman.cpp
index 3cc51a5..29b9087 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));