Mercurial > pidgin
comparison src/conversation.c @ 2895:63cdece2348d
[gaim-migrate @ 2908]
thanks Brian Bernas
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Sun, 16 Dec 2001 21:50:36 +0000 |
parents | 58baac124b0d |
children | 019d7462337b |
comparison
equal
deleted
inserted
replaced
2894:44140dae2865 | 2895:63cdece2348d |
---|---|
3032 | 3032 |
3033 void remove_icon(struct conversation *c) | 3033 void remove_icon(struct conversation *c) |
3034 { | 3034 { |
3035 #if USE_PIXBUF | 3035 #if USE_PIXBUF |
3036 if (c->icon) | 3036 if (c->icon) |
3037 gtk_container_remove(GTK_CONTAINER(c->bbox), c->icon->parent); | 3037 gtk_container_remove(GTK_CONTAINER(c->bbox), c->icon->parent->parent); |
3038 c->icon = NULL; | 3038 c->icon = NULL; |
3039 if (c->anim) | 3039 if (c->anim) |
3040 gdk_pixbuf_animation_unref(c->anim); | 3040 gdk_pixbuf_animation_unref(c->anim); |
3041 c->anim = NULL; | 3041 c->anim = NULL; |
3042 if (c->icon_timer) | 3042 if (c->icon_timer) |
3057 | 3057 |
3058 GList *frames; | 3058 GList *frames; |
3059 GdkPixbuf *buf; | 3059 GdkPixbuf *buf; |
3060 | 3060 |
3061 GtkWidget *event; | 3061 GtkWidget *event; |
3062 GtkWidget *frame; | |
3062 GdkPixbuf *scale; | 3063 GdkPixbuf *scale; |
3063 GdkPixmap *pm; | 3064 GdkPixmap *pm; |
3064 GdkBitmap *bm; | 3065 GdkBitmap *bm; |
3065 int sf = 0; | 3066 int sf = 0; |
3066 | 3067 |
3112 } | 3113 } |
3113 | 3114 |
3114 gdk_pixbuf_render_pixmap_and_mask(scale, &pm, &bm, 0); | 3115 gdk_pixbuf_render_pixmap_and_mask(scale, &pm, &bm, 0); |
3115 gdk_pixbuf_unref(scale); | 3116 gdk_pixbuf_unref(scale); |
3116 | 3117 |
3118 frame = gtk_frame_new(NULL); | |
3119 gtk_frame_set_shadow_type(GTK_FRAME(frame), GTK_SHADOW_IN); | |
3120 gtk_box_pack_start(GTK_BOX(c->bbox), frame, FALSE, FALSE, 5); | |
3121 gtk_widget_show(frame); | |
3122 | |
3117 event = gtk_event_box_new(); | 3123 event = gtk_event_box_new(); |
3118 gtk_box_pack_start(GTK_BOX(c->bbox), event, FALSE, FALSE, 5); | 3124 gtk_container_add(GTK_CONTAINER(frame), event); |
3119 gtk_signal_connect(GTK_OBJECT(event), "button-press-event", GTK_SIGNAL_FUNC(icon_menu), c); | 3125 gtk_signal_connect(GTK_OBJECT(event), "button-press-event", GTK_SIGNAL_FUNC(icon_menu), c); |
3120 gtk_widget_show(event); | 3126 gtk_widget_show(event); |
3121 | 3127 |
3122 c->icon = gtk_pixmap_new(pm, bm); | 3128 c->icon = gtk_pixmap_new(pm, bm); |
3123 gtk_widget_set_usize(c->icon, sf, sf); | 3129 gtk_widget_set_usize(c->icon, sf, sf); |