/[xlog]/xlog/src/callbacks_mainwindow_toolbar.c
ViewVC logotype

Diff of /xlog/src/callbacks_mainwindow_toolbar.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by pa4tu, Thu Apr 8 21:51:55 2004 UTC revision 1.2 by pa4tu, Mon Sep 20 19:38:41 2004 UTC
# Line 50  on_abutton_clicked (GtkButton * button, Line 50  on_abutton_clicked (GtkButton * button,
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;
# Line 83  on_abutton_clicked (GtkButton * button, Line 83  on_abutton_clicked (GtkButton * button,
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
# Line 341  on_ubutton_clicked (GtkButton * button, Line 337  on_ubutton_clicked (GtkButton * button,
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,
# Line 385  on_ubutton_clicked (GtkButton * button, Line 381  on_ubutton_clicked (GtkButton * button,
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    
# Line 397  on_ubutton_clicked (GtkButton * button, Line 391  on_ubutton_clicked (GtkButton * button,
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    

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26