summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorquinn <quinn>2006-10-04 16:16:19 +0000
committerquinn <quinn>2006-10-04 16:16:19 +0000
commit6b7afdb6f279dceecfbf7efb3049ffa1f5c0ace2 (patch)
treed06d2e39c78acfe59479896a05e94821fd75cb4e /src
parenta255cc5ead0c0673a879e4c89b591d786bc769e0 (diff)
downloadberyl-manager-6b7afdb6f279dceecfbf7efb3049ffa1f5c0ace2.tar.gz
beryl-manager-6b7afdb6f279dceecfbf7efb3049ffa1f5c0ace2.tar.bz2
gint/pointer conversion, closes #329
Diffstat (limited to 'src')
-rw-r--r--src/main.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/main.c b/src/main.c
index 6bb8bab..3e26758 100644
--- a/src/main.c
+++ b/src/main.c
@@ -527,7 +527,7 @@ void reloadWM(GtkWidget * w, gpointer p)
}
void setWM(GtkWidget * w, gpointer p)
{
- gint i = (gint)p;
+ gint i = GPOINTER_TO_INT(p);
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(w)))
{
gint j;
@@ -553,7 +553,7 @@ void setWM(GtkWidget * w, gpointer p)
}
void setFallbackWM(GtkWidget * w, gpointer p)
{
- gint i = (gint)p;
+ gint i = GPOINTER_TO_INT(p);
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(w)))
{
fallBackWM=i;
@@ -571,7 +571,7 @@ void toggleFB(GtkWidget * w, gpointer p)
}
void setDM(GtkWidget * w, gpointer p)
{
- gint i = (gint)p;
+ gint i = GPOINTER_TO_INT(p);
if (gtk_check_menu_item_get_active(GTK_CHECK_MENU_ITEM(w)))
{
DM=i;
@@ -709,7 +709,7 @@ void init_menu()
gtk_widget_show(mitem);
else
gtk_widget_hide(mitem);
- g_signal_connect(mitem,"toggled",G_CALLBACK(setWM),(gpointer)i);
+ g_signal_connect(mitem,"toggled",G_CALLBACK(setWM),GINT_TO_POINTER(i));
WMs[i].Item=mitem;
}
@@ -760,7 +760,7 @@ void init_menu()
gtk_widget_show(mitem);
else
gtk_widget_hide(mitem);
- g_signal_connect(mitem,"toggled",G_CALLBACK(setDM),(gpointer)i);
+ g_signal_connect(mitem,"toggled",G_CALLBACK(setDM),GINT_TO_POINTER(i));
DMs[i].Item=mitem;
}
@@ -799,7 +799,7 @@ void init_menu()
else
gtk_widget_hide(mitem);
WMs[i].FBItem=mitem;
- g_signal_connect(mitem,"toggled",G_CALLBACK(setFallbackWM),(gpointer)(i-3));
+ g_signal_connect(mitem,"toggled",G_CALLBACK(setFallbackWM),GINT_TO_POINTER(i-3));
}
mitem = gtk_separator_menu_item_new();