| 417 status_box->cell_view = gtk_cell_view_new(); |
419 status_box->cell_view = gtk_cell_view_new(); |
| 418 gtk_widget_show (status_box->cell_view); |
420 gtk_widget_show (status_box->cell_view); |
| 419 |
421 |
| 420 status_box->store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); |
422 status_box->store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); |
| 421 status_box->dropdown_store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); |
423 status_box->dropdown_store = gtk_list_store_new(NUM_COLUMNS, G_TYPE_INT, GDK_TYPE_PIXBUF, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_STRING); |
| |
424 #if GTK_CHECK_VERSION(2,6,0) |
| 422 gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(status_box), dropdown_store_row_separator_func, NULL, NULL); |
425 gtk_combo_box_set_row_separator_func(GTK_COMBO_BOX(status_box), dropdown_store_row_separator_func, NULL, NULL); |
| |
426 #endif |
| 423 gtk_combo_box_set_model(GTK_COMBO_BOX(status_box), GTK_TREE_MODEL(status_box->dropdown_store)); |
427 gtk_combo_box_set_model(GTK_COMBO_BOX(status_box), GTK_TREE_MODEL(status_box->dropdown_store)); |
| 424 gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store)); |
428 gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store)); |
| 425 gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(status_box), 0); |
429 gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(status_box), 0); |
| 426 gtk_list_store_append(status_box->store, &(status_box->iter)); |
430 gtk_list_store_append(status_box->store, &(status_box->iter)); |
| 427 gtk_gaim_status_box_refresh(status_box); |
431 gtk_gaim_status_box_refresh(status_box); |