summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorinfirit <[email protected]>2014-12-19 01:13:52 +0100
committerinfirit <[email protected]>2014-12-19 01:13:52 +0100
commitf8d20d94ba55001016cb7cfed436ea37eafcfee7 (patch)
tree6d334f733c7f83d3e0ea2d5a5ded22e26100d7cf /src
parenteb569602a5a7bafde83f2cb5cad84d38dac0377c (diff)
downloadmate-system-monitor-f8d20d94ba55001016cb7cfed436ea37eafcfee7.tar.bz2
mate-system-monitor-f8d20d94ba55001016cb7cfed436ea37eafcfee7.tar.xz
Fixed incorrect int to pointer conversion warning.
Taken from GSM commit: c1660319e400480e236d1120c4f833c8c3c96ff4 From: Robert Roth <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/interface.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interface.cpp b/src/interface.cpp
index b58123a..c2cf5c9 100644
--- a/src/interface.cpp
+++ b/src/interface.cpp
@@ -807,7 +807,7 @@ create_main_window (ProcData *procdata)
gtk_window_add_accel_group (GTK_WINDOW(app), accel_group);
for (i = 0; i < 4; ++i) {
goto_tab_closure[i] = g_cclosure_new_swap (G_CALLBACK (cb_proc_goto_tab),
- (gpointer) i, NULL);
+ GINT_TO_POINTER (i), NULL);
gtk_accel_group_connect (accel_group, '0'+(i+1),
GDK_MOD1_MASK, GTK_ACCEL_VISIBLE,
goto_tab_closure[i]);