Revision 1922 branches/nntpgrab-0.7/client/gui/main.c
| main.c (revision 1922) | ||
|---|---|---|
| 249 | 249 |
char *hostname = NULL; |
| 250 | 250 |
|
| 251 | 251 |
#if GTK_CHECK_VERSION(2,90,0) |
| 252 |
GtkTreeIter iter; |
|
| 253 |
GtkTreeModel *model = gtk_combo_box_get_model(GTK_COMBO_BOX(cmbConnectHostname)); |
|
| 254 |
g_return_if_fail(gtk_combo_box_get_active_iter(GTK_COMBO_BOX(cmbConnectHostname), &iter)); |
|
| 255 |
gtk_tree_model_get(model, &iter, 0, &hostname, -1); |
|
| 252 |
hostname = g_strdup(gtk_entry_get_text(GTK_ENTRY(gtk_bin_get_child(GTK_BIN(cmbConnectHostname))))); |
|
| 256 | 253 |
#else |
| 257 | 254 |
hostname = gtk_combo_box_get_active_text(GTK_COMBO_BOX(cmbConnectHostname)); |
| 258 | 255 |
#endif |
| ... | ... | |
| 290 | 287 |
strncpy(opts.hostname1, hostname, sizeof(opts.hostname1)); |
| 291 | 288 |
} |
| 292 | 289 |
|
| 290 |
g_free(hostname); |
|
| 291 |
|
|
| 293 | 292 |
config_gui_set_opts(opts); |
| 294 | 293 |
|
| 295 | 294 |
gtk_widget_set_sensitive(windowConnect, FALSE); |
Also available in: Unified diff
NNTPGrab

