119 |
return Lvalue; |
return Lvalue; |
120 |
} |
} |
121 |
|
|
122 |
|
/* retourne la valeur d'un combo */ |
123 |
|
gchar *get_combo_value_pos(GtkWidget *Acombo, gint Apos) |
124 |
|
{ |
125 |
|
GtkTreeModel *Lmodel = gtk_combo_box_get_model(GTK_COMBO_BOX(Acombo)); |
126 |
|
GtkTreeIter Liter; |
127 |
|
gchar *Lvalue = NULL; |
128 |
|
if (!gtk_combo_box_get_active_iter(GTK_COMBO_BOX(Acombo), &Liter)) return g_strdup(""); |
129 |
|
|
130 |
|
gtk_tree_model_get(Lmodel, &Liter, Apos, &Lvalue, -1); |
131 |
|
|
132 |
|
return Lvalue; |
133 |
|
} |
134 |
|
|
135 |
|
|
136 |
gint make_int(gchar *Abuf) |
gint make_int(gchar *Abuf) |
137 |
{ |
{ |