Parent Directory | Revision Log | Patch
revision 1.5 by scresto, Mon Jan 24 01:43:50 2005 UTC | revision 1.6 by scresto, Tue Feb 1 02:35:19 2005 UTC | |
---|---|---|
# | Line 415 void put_devicelabel(Tdriveinfo *Adrive, | Line 415 void put_devicelabel(Tdriveinfo *Adrive, |
415 | } | } |
416 | } | } |
417 | ||
418 | extern Tdriveinfo *get_drive_cmb(GtkComboBox *Acombo) | |
419 | { | |
420 | GtkTreeModel *Lmodel = gtk_combo_box_get_model(GTK_COMBO_BOX(Acombo)); | |
421 | GtkTreeIter Liter; | |
422 | gint Lvalue = -1; | |
423 | if (!gtk_combo_box_get_active_iter(Acombo, &Liter)) return NULL; | |
424 | ||
425 | gtk_tree_model_get(Lmodel, &Liter, 3, &Lvalue, -1); | |
426 | ||
427 | return (Tdriveinfo *) g_slist_nth_data(Glistdrives, Lvalue); | |
428 | } | |
429 | ||
430 | ||
431 | /* | /* |
432 | * vim:et:ts=8:sts=2:sw=2 | * vim:et:ts=8:sts=2:sw=2 |
|
savannah-hackers-public@gnu.org | ViewVC Help |
Powered by ViewVC 1.1.26 |