pidgin/gtkconv.c

changeset 19077
2f10c1a25dae
parent 19074
8d9434531b68
child 19078
21470ab5069a
child 19082
c75b06385c8a
equal deleted inserted replaced
19076:84216ea8ddbf 19077:2f10c1a25dae
6582 pidgin_gdk_pixbuf_make_round(scale); 6582 pidgin_gdk_pixbuf_make_round(scale);
6583 gtkconv->u.im->icon_container = gtk_vbox_new(FALSE, 0); 6583 gtkconv->u.im->icon_container = gtk_vbox_new(FALSE, 0);
6584 6584
6585 event = gtk_event_box_new(); 6585 event = gtk_event_box_new();
6586 gtk_container_add(GTK_CONTAINER(gtkconv->u.im->icon_container), event); 6586 gtk_container_add(GTK_CONTAINER(gtkconv->u.im->icon_container), event);
6587 gtk_widget_add_events(event,
6588 GDK_POINTER_MOTION_MASK | GDK_LEAVE_NOTIFY_MASK);
6587 g_signal_connect(G_OBJECT(event), "button-press-event", 6589 g_signal_connect(G_OBJECT(event), "button-press-event",
6588 G_CALLBACK(icon_menu), gtkconv); 6590 G_CALLBACK(icon_menu), gtkconv);
6591 g_signal_connect(G_OBJECT(event), "motion-notify-event",
6592 G_CALLBACK(pidgin_conv_motion_cb), gtkconv);
6593 g_signal_connect(G_OBJECT(event), "leave-notify-event",
6594 G_CALLBACK(pidgin_conv_leave_cb), gtkconv);
6589 gtk_widget_show(event); 6595 gtk_widget_show(event);
6590 6596
6591 gtkconv->u.im->icon = gtk_image_new_from_pixbuf(scale); 6597 gtkconv->u.im->icon = gtk_image_new_from_pixbuf(scale);
6592 gtk_container_add(GTK_CONTAINER(event), gtkconv->u.im->icon); 6598 gtk_container_add(GTK_CONTAINER(event), gtkconv->u.im->icon);
6593 gtk_widget_show(gtkconv->u.im->icon); 6599 gtk_widget_show(gtkconv->u.im->icon);

mercurial