| 318 G_CALLBACK(remove_buddy_icon_cb), box); |
318 G_CALLBACK(remove_buddy_icon_cb), box); |
| 319 if (!(path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon")) |
319 if (!(path = purple_prefs_get_path(PIDGIN_PREFS_ROOT "/accounts/buddyicon")) |
| 320 || !*path) |
320 || !*path) |
| 321 gtk_widget_set_sensitive(menu_item, FALSE); |
321 gtk_widget_set_sensitive(menu_item, FALSE); |
| 322 |
322 |
| 323 gtk_menu_popup(GTK_MENU(box->icon_box_menu), NULL, NULL, NULL, NULL, |
323 gtk_menu_popup_at_pointer(GTK_MENU(box->icon_box_menu), (GdkEvent *)event); |
| 324 event->button, event->time); |
|
| 325 |
324 |
| 326 } else { |
325 } else { |
| 327 choose_buddy_icon_cb(widget, box); |
326 choose_buddy_icon_cb(widget, box); |
| 328 } |
327 } |
| 329 return FALSE; |
328 return FALSE; |