src/gtkstatusbox.c

changeset 13284
9966a5ebfc46
parent 13281
3558cb15ebb9
child 13317
ee79fd9d7aa1
equal deleted inserted replaced
13283:89a0621d5d6a 13284:9966a5ebfc46
1373 static void gtk_gaim_status_box_changed(GtkComboBox *box) 1373 static void gtk_gaim_status_box_changed(GtkComboBox *box)
1374 { 1374 {
1375 GtkGaimStatusBox *status_box; 1375 GtkGaimStatusBox *status_box;
1376 GtkTreeIter iter; 1376 GtkTreeIter iter;
1377 GtkGaimStatusBoxItemType type; 1377 GtkGaimStatusBoxItemType type;
1378 char *text, *desc;
1379 GdkPixbuf *pixbuf;
1380 gpointer data; 1378 gpointer data;
1381 GList *accounts = NULL, *node; 1379 GList *accounts = NULL, *node;
1382 1380
1383 status_box = GTK_GAIM_STATUS_BOX(box); 1381 status_box = GTK_GAIM_STATUS_BOX(box);
1384 1382
1385 if (!gtk_combo_box_get_active_iter(GTK_COMBO_BOX(status_box), &iter)) 1383 if (!gtk_combo_box_get_active_iter(GTK_COMBO_BOX(status_box), &iter))
1386 return; 1384 return;
1387 gtk_tree_model_get(GTK_TREE_MODEL(status_box->dropdown_store), &iter, 1385 gtk_tree_model_get(GTK_TREE_MODEL(status_box->dropdown_store), &iter,
1388 TYPE_COLUMN, &type, 1386 TYPE_COLUMN, &type,
1389 TITLE_COLUMN, &text,
1390 DESC_COLUMN, &desc,
1391 ICON_COLUMN, &pixbuf,
1392 DATA_COLUMN, &data, 1387 DATA_COLUMN, &data,
1393 -1); 1388 -1);
1394 if (status_box->typing != 0) 1389 if (status_box->typing != 0)
1395 g_source_remove(status_box->typing); 1390 g_source_remove(status_box->typing);
1396 status_box->typing = 0; 1391 status_box->typing = 0;

mercurial