[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Graveman-cvs] Changes to graveman/current/src/matos.c
From: |
sylvain cresto |
Subject: |
[Graveman-cvs] Changes to graveman/current/src/matos.c |
Date: |
Mon, 31 Jan 2005 21:35:29 -0500 |
Index: graveman/current/src/matos.c
diff -u graveman/current/src/matos.c:1.5 graveman/current/src/matos.c:1.6
--- graveman/current/src/matos.c:1.5 Mon Jan 24 01:43:50 2005
+++ graveman/current/src/matos.c Tue Feb 1 02:35:19 2005
@@ -415,6 +415,18 @@
}
}
+extern Tdriveinfo *get_drive_cmb(GtkComboBox *Acombo)
+{
+ GtkTreeModel *Lmodel = gtk_combo_box_get_model(GTK_COMBO_BOX(Acombo));
+ GtkTreeIter Liter;
+ gint Lvalue = -1;
+ if (!gtk_combo_box_get_active_iter(Acombo, &Liter)) return NULL;
+
+ gtk_tree_model_get(Lmodel, &Liter, 3, &Lvalue, -1);
+
+ return (Tdriveinfo *) g_slist_nth_data(Glistdrives, Lvalue);
+}
+
/*
* vim:et:ts=8:sts=2:sw=2
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Graveman-cvs] Changes to graveman/current/src/matos.c,
sylvain cresto <=