src/gtkstatusbox.c

changeset 11593
71d9d00b36ba
parent 11562
58d047d8e724
child 11627
07feb58977aa
equal deleted inserted replaced
11592:441f57340de7 11593:71d9d00b36ba
219 GtkCellRenderer *text_rend; 219 GtkCellRenderer *text_rend;
220 GtkCellRenderer *icon_rend; 220 GtkCellRenderer *icon_rend;
221 GtkTextBuffer *buffer; 221 GtkTextBuffer *buffer;
222 GdkPixbuf *pixbuf, *pixbuf2, *pixbuf3, *pixbuf4; 222 GdkPixbuf *pixbuf, *pixbuf2, *pixbuf3, *pixbuf4;
223 GtkIconSize icon_size; 223 GtkIconSize icon_size;
224 GtkTreePath *path;
224 225
225 text_rend = gtk_cell_renderer_text_new(); 226 text_rend = gtk_cell_renderer_text_new();
226 icon_rend = gtk_cell_renderer_pixbuf_new(); 227 icon_rend = gtk_cell_renderer_pixbuf_new();
227 icon_size = gtk_icon_size_from_name(GAIM_ICON_SIZE_STATUS); 228 icon_size = gtk_icon_size_from_name(GAIM_ICON_SIZE_STATUS);
228 229
260 gtk_combo_box_set_model(GTK_COMBO_BOX(status_box), GTK_TREE_MODEL(status_box->dropdown_store)); 261 gtk_combo_box_set_model(GTK_COMBO_BOX(status_box), GTK_TREE_MODEL(status_box->dropdown_store));
261 gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store)); 262 gtk_cell_view_set_model(GTK_CELL_VIEW(status_box->cell_view), GTK_TREE_MODEL(status_box->store));
262 gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(status_box), 0); 263 gtk_combo_box_set_wrap_width(GTK_COMBO_BOX(status_box), 0);
263 gtk_list_store_append(status_box->store, &(status_box->iter)); 264 gtk_list_store_append(status_box->store, &(status_box->iter));
264 gtk_gaim_status_box_refresh(status_box); 265 gtk_gaim_status_box_refresh(status_box);
265 gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(status_box->cell_view), gtk_tree_path_new_from_string("0")); 266 path = gtk_tree_path_new_from_string("0");
267 gtk_cell_view_set_displayed_row(GTK_CELL_VIEW(status_box->cell_view), path);
268 gtk_tree_path_free(path);
266 gtk_container_add(GTK_CONTAINER(status_box), status_box->cell_view); 269 gtk_container_add(GTK_CONTAINER(status_box), status_box->cell_view);
267 270
268 status_box->icon_rend = gtk_cell_renderer_pixbuf_new(); 271 status_box->icon_rend = gtk_cell_renderer_pixbuf_new();
269 status_box->text_rend = gtk_cell_renderer_text_new(); 272 status_box->text_rend = gtk_cell_renderer_text_new();
270 273

mercurial