pidgin/gtkconv.c

branch
cpw.qulogic.gtk3-required
changeset 33121
d3d820edd000
parent 33120
f6f1a27ade72
child 33127
02a3db370988
equal deleted inserted replaced
33120:f6f1a27ade72 33121:d3d820edd000
1228 } 1228 }
1229 1229
1230 } 1230 }
1231 1231
1232 static void 1232 static void
1233 menu_get_attention_cb(GtkAction *ation, gpointer data) 1233 menu_get_attention_cb(GObject *obj, gpointer data)
1234 { 1234 {
1235 PidginWindow *win = data; 1235 PidginWindow *win = data;
1236 PurpleConversation *conv = pidgin_conv_window_get_active_conversation(win); 1236 PurpleConversation *conv = pidgin_conv_window_get_active_conversation(win);
1237 1237
1238 if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM) { 1238 if (purple_conversation_get_type(conv) == PURPLE_CONV_TYPE_IM) {
1239 int index; 1239 int index;
1240 if (widget == win->menu.get_attention) 1240 if ((GtkAction *)obj == win->menu.get_attention)
1241 index = 0; 1241 index = 0;
1242 else 1242 else
1243 index = GPOINTER_TO_INT(g_object_get_data(G_OBJECT(widget), "index")); 1243 index = GPOINTER_TO_INT(g_object_get_data(obj, "index"));
1244 purple_prpl_send_attention(purple_conversation_get_connection(conv), 1244 purple_prpl_send_attention(purple_conversation_get_connection(conv),
1245 purple_conversation_get_name(conv), index); 1245 purple_conversation_get_name(conv), index);
1246 } 1246 }
1247 } 1247 }
1248 1248

mercurial