| 1990 pidgin_status_box_draw(GtkWidget *widget, cairo_t *cr) |
1990 pidgin_status_box_draw(GtkWidget *widget, cairo_t *cr) |
| 1991 { |
1991 { |
| 1992 PidginStatusBox *status_box = PIDGIN_STATUS_BOX(widget); |
1992 PidginStatusBox *status_box = PIDGIN_STATUS_BOX(widget); |
| 1993 gtk_widget_draw(status_box->toggle_button, cr); |
1993 gtk_widget_draw(status_box->toggle_button, cr); |
| 1994 |
1994 |
| 1995 gtk_container_propagate_draw(GTK_CONTAINER(widget), status_box->icon_box, cr); |
|
| 1996 gtk_container_propagate_draw(GTK_CONTAINER(widget), status_box->vbox, cr); |
1995 gtk_container_propagate_draw(GTK_CONTAINER(widget), status_box->vbox, cr); |
| 1997 |
1996 |
| 1998 if (status_box->icon_box && status_box->icon_opaque) { |
1997 if (status_box->icon_box) { |
| 1999 GtkAllocation allocation; |
1998 gtk_container_propagate_draw(GTK_CONTAINER(widget), |
| 2000 GtkStyleContext *context; |
1999 status_box->icon_box, cr); |
| 2001 |
2000 |
| 2002 gtk_widget_get_allocation(status_box->icon_box, &allocation); |
2001 if (status_box->icon_opaque) { |
| 2003 context = gtk_widget_get_style_context(widget); |
2002 GtkAllocation allocation; |
| 2004 gtk_style_context_add_class(context, GTK_STYLE_CLASS_BUTTON); |
2003 GtkStyleContext *context; |
| 2005 gtk_render_frame(context, cr, allocation.x-1, allocation.y-1, 34, 34); |
2004 |
| |
2005 gtk_widget_get_allocation(status_box->icon_box, &allocation); |
| |
2006 context = gtk_widget_get_style_context(widget); |
| |
2007 gtk_style_context_add_class(context, GTK_STYLE_CLASS_BUTTON); |
| |
2008 gtk_render_frame(context, cr, allocation.x-1, allocation.y-1, 34, 34); |
| |
2009 } |
| 2006 } |
2010 } |
| 2007 return FALSE; |
2011 return FALSE; |
| 2008 } |
2012 } |
| 2009 |
2013 |
| 2010 static void |
2014 static void |