pidgin/gtkstatusbox.c

branch
soc.2013.gobjectification.plugins
changeset 37109
94d1a2589d5a
parent 37102
63a5361c11a1
parent 35532
2c802bb77720
child 37110
4309235d2a46
equal deleted inserted replaced
37108:73c5fb6d78b3 37109:94d1a2589d5a
453 { 453 {
454 if (statusbox->icon_box == NULL) 454 if (statusbox->icon_box == NULL)
455 return; 455 return;
456 456
457 gtk_widget_destroy(statusbox->icon_box); 457 gtk_widget_destroy(statusbox->icon_box);
458 gdk_cursor_unref(statusbox->hand_cursor); 458 g_object_unref(statusbox->hand_cursor);
459 gdk_cursor_unref(statusbox->arrow_cursor); 459 g_object_unref(statusbox->arrow_cursor);
460 460
461 purple_imgstore_unref(statusbox->buddy_icon_img); 461 purple_imgstore_unref(statusbox->buddy_icon_img);
462 462
463 g_object_unref(G_OBJECT(statusbox->buddy_icon)); 463 g_object_unref(G_OBJECT(statusbox->buddy_icon));
464 g_object_unref(G_OBJECT(statusbox->buddy_icon_hover)); 464 g_object_unref(G_OBJECT(statusbox->buddy_icon_hover));
1742 status_box->webview_visible = FALSE; 1742 status_box->webview_visible = FALSE;
1743 status_box->network_available = purple_network_is_available(); 1743 status_box->network_available = purple_network_is_available();
1744 status_box->connecting = FALSE; 1744 status_box->connecting = FALSE;
1745 status_box->typing = 0; 1745 status_box->typing = 0;
1746 status_box->toggle_button = gtk_toggle_button_new(); 1746 status_box->toggle_button = gtk_toggle_button_new();
1747 status_box->hbox = gtk_hbox_new(FALSE, 6); 1747 status_box->hbox = gtk_box_new(GTK_ORIENTATION_HORIZONTAL, 6);
1748 status_box->cell_view = gtk_cell_view_new(); 1748 status_box->cell_view = gtk_cell_view_new();
1749 status_box->vsep = gtk_vseparator_new(); 1749 status_box->vsep = gtk_separator_new(GTK_ORIENTATION_VERTICAL);
1750 status_box->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE); 1750 status_box->arrow = gtk_arrow_new (GTK_ARROW_DOWN, GTK_SHADOW_NONE);
1751 1751
1752 status_box->store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, G_TYPE_STRING, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, 1752 status_box->store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, G_TYPE_STRING, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING,
1753 G_TYPE_STRING, G_TYPE_POINTER, GDK_TYPE_PIXBUF, G_TYPE_BOOLEAN); 1753 G_TYPE_STRING, G_TYPE_POINTER, GDK_TYPE_PIXBUF, G_TYPE_BOOLEAN);
1754 status_box->dropdown_store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, G_TYPE_STRING, GDK_TYPE_PIXBUF, G_TYPE_STRING, 1754 status_box->dropdown_store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, G_TYPE_STRING, GDK_TYPE_PIXBUF, G_TYPE_STRING,
1829 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(status_box->cell_view), status_box->icon_rend, "stock-id", ICON_STOCK_COLUMN, NULL); 1829 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(status_box->cell_view), status_box->icon_rend, "stock-id", ICON_STOCK_COLUMN, NULL);
1830 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(status_box->cell_view), status_box->text_rend, "markup", TEXT_COLUMN, NULL); 1830 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(status_box->cell_view), status_box->text_rend, "markup", TEXT_COLUMN, NULL);
1831 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(status_box->cell_view), emblem_rend, "pixbuf", EMBLEM_COLUMN, "visible", EMBLEM_VISIBLE_COLUMN, NULL); 1831 gtk_cell_layout_set_attributes(GTK_CELL_LAYOUT(status_box->cell_view), emblem_rend, "pixbuf", EMBLEM_COLUMN, "visible", EMBLEM_VISIBLE_COLUMN, NULL);
1832 g_object_set(status_box->text_rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL); 1832 g_object_set(status_box->text_rend, "ellipsize", PANGO_ELLIPSIZE_END, NULL);
1833 1833
1834 status_box->vbox = gtk_vbox_new(0, FALSE); 1834 status_box->vbox = gtk_box_new(GTK_ORIENTATION_VERTICAL, FALSE);
1835 status_box->sw = pidgin_create_webview(TRUE, &status_box->webview, NULL); 1835 status_box->sw = pidgin_create_webview(TRUE, &status_box->webview, NULL);
1836 pidgin_webview_hide_toolbar(PIDGIN_WEBVIEW(status_box->webview)); 1836 pidgin_webview_hide_toolbar(PIDGIN_WEBVIEW(status_box->webview));
1837 1837
1838 #if 0 1838 #if 0
1839 g_signal_connect(G_OBJECT(status_box->toggle_button), "button-press-event", 1839 g_signal_connect(G_OBJECT(status_box->toggle_button), "button-press-event",

mercurial