50 |
GtkWidget *dateentry, *gmtentry, *callentry, *rstentry, *myrstentry, |
GtkWidget *dateentry, *gmtentry, *callentry, *rstentry, *myrstentry, |
51 |
*remarksentry, *bandentry, *modeentry, *bandoptionmenu, |
*remarksentry, *bandentry, *modeentry, *bandoptionmenu, |
52 |
*modeoptionmenu, *incheckbutton, *outcheckbutton, |
*modeoptionmenu, *incheckbutton, *outcheckbutton, |
53 |
*qsoframe, *menu, *active_item, *endhbox, *endentry, *powerhbox, |
*qsoframe, *endhbox, *endentry, *powerhbox, |
54 |
*powerentry, *namehbox, *nameentry, *qthhbox, *qthentry, |
*powerentry, *namehbox, *nameentry, *qthhbox, *qthentry, |
55 |
*locatorhbox, *locatorentry, *unknown1hbox, *unknownentry1, |
*locatorhbox, *locatorentry, *unknown1hbox, *unknownentry1, |
56 |
*unknown2hbox, *unknownentry2, *qslhbox, *remarksvbox, *framelabel; |
*unknown2hbox, *unknownentry2, *qslhbox, *remarksvbox, *framelabel; |
83 |
qso[CALL] = gtk_editable_get_chars (GTK_EDITABLE (callentry), 0, -1); |
qso[CALL] = gtk_editable_get_chars (GTK_EDITABLE (callentry), 0, -1); |
84 |
if (preferences.bandseditbox == 0) |
if (preferences.bandseditbox == 0) |
85 |
{ |
{ |
86 |
menu = GTK_OPTION_MENU (bandoptionmenu)->menu; |
bandindex = gtk_combo_box_get_active (GTK_COMBO_BOX(bandoptionmenu)); |
|
active_item = gtk_menu_get_active (GTK_MENU (menu)); |
|
|
bandindex = g_list_index (GTK_MENU_SHELL (menu)->children, active_item); |
|
87 |
qso[BAND] = lookup_band (bandsplit[bandindex]); |
qso[BAND] = lookup_band (bandsplit[bandindex]); |
88 |
} |
} |
89 |
else |
else |
90 |
qso[BAND] = gtk_editable_get_chars (GTK_EDITABLE (bandentry), 0, -1); |
qso[BAND] = gtk_editable_get_chars (GTK_EDITABLE (bandentry), 0, -1); |
91 |
if (preferences.modeseditbox == 0) |
if (preferences.modeseditbox == 0) |
92 |
{ |
{ |
93 |
menu = GTK_OPTION_MENU (modeoptionmenu)->menu; |
modeindex = gtk_combo_box_get_active (GTK_COMBO_BOX(modeoptionmenu)); |
|
active_item = gtk_menu_get_active (GTK_MENU (menu)); |
|
|
modeindex = g_list_index (GTK_MENU_SHELL (menu)->children, active_item); |
|
94 |
qso[MODE] = lookup_mode (modesplit[modeindex]); |
qso[MODE] = lookup_mode (modesplit[modeindex]); |
95 |
} |
} |
96 |
else |
else |
337 |
{ |
{ |
338 |
GtkWidget *dateentry, *gmtentry, *callentry, *rstentry, *myrstentry, |
GtkWidget *dateentry, *gmtentry, *callentry, *rstentry, *myrstentry, |
339 |
*remarksentry, *bandentry, *modeentry, *incheckbutton, |
*remarksentry, *bandentry, *modeentry, *incheckbutton, |
340 |
*outcheckbutton, *modeoptionmenu, *bandoptionmenu, *menu, |
*outcheckbutton, *modeoptionmenu, *bandoptionmenu, |
341 |
*active_item, *qsoframe, *endhbox, *endentry, *powerhbox, |
*qsoframe, *endhbox, *endentry, *powerhbox, |
342 |
*powerentry, *namehbox, *nameentry, *qthhbox, *qthentry, |
*powerentry, *namehbox, *nameentry, *qthhbox, *qthentry, |
343 |
*locatorhbox, *locatorentry, *unknown1hbox, *unknownentry1, |
*locatorhbox, *locatorentry, *unknown1hbox, *unknownentry1, |
344 |
*unknown2hbox, *unknownentry2, *qslhbox, *remarksvbox, *gmtbutton, |
*unknown2hbox, *unknownentry2, *qslhbox, *remarksvbox, *gmtbutton, |
381 |
} |
} |
382 |
else |
else |
383 |
{ |
{ |
384 |
menu = GTK_OPTION_MENU (bandoptionmenu)->menu; |
bandindex = gtk_combo_box_get_active (GTK_COMBO_BOX(bandoptionmenu)); |
|
active_item = gtk_menu_get_active (GTK_MENU (menu)); |
|
|
bandindex = g_list_index (GTK_MENU_SHELL (menu)->children, active_item); |
|
385 |
qso[BAND] = lookup_band (bandsplit[bandindex]); |
qso[BAND] = lookup_band (bandsplit[bandindex]); |
386 |
} |
} |
387 |
|
|
391 |
} |
} |
392 |
else |
else |
393 |
{ |
{ |
394 |
menu = GTK_OPTION_MENU (modeoptionmenu)->menu; |
modeindex = gtk_combo_box_get_active (GTK_COMBO_BOX(modeoptionmenu)); |
|
active_item = gtk_menu_get_active (GTK_MENU (menu)); |
|
|
modeindex = g_list_index (GTK_MENU_SHELL (menu)->children, active_item); |
|
395 |
qso[MODE] = lookup_mode (modesplit[modeindex]); |
qso[MODE] = lookup_mode (modesplit[modeindex]); |
396 |
} |
} |
397 |
|
|