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

Diff of /xlog/src/callbacks_menu.c

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

revision 1.49 by pa4tu, Sat Oct 11 09:42:20 2003 UTC revision 1.50 by pa4tu, Sun Nov 2 08:30:49 2003 UTC
# Line 78  on_menu_print_activate (GtkMenuItem * me Line 78  on_menu_print_activate (GtkMenuItem * me
78    gchar *temp;    gchar *temp;
79          GtkTreeViewColumn *column;          GtkTreeViewColumn *column;
80    logtype *logwindow;    logtype *logwindow;
81      gint page;
82    
83      page = gtk_notebook_get_current_page (GTK_NOTEBOOK(mainnotebook));
84      if (page >= 0)
85      {
86    
87    printdialog = create_printdialog ();    printdialog = create_printdialog ();
88    printallradiobutton = lookup_widget (printdialog, "printallradiobutton");    printallradiobutton = lookup_widget (printdialog, "printallradiobutton");
# Line 158  on_menu_print_activate (GtkMenuItem * me Line 163  on_menu_print_activate (GtkMenuItem * me
163                                      (filedestinationradiobutton), TRUE);                                      (filedestinationradiobutton), TRUE);
164      }      }
165    
166    logwindow = g_list_nth_data (logwindowlist,    logwindow = g_list_nth_data (logwindowlist, page);
                                gtk_notebook_get_current_page (GTK_NOTEBOOK  
                                                               (mainnotebook)));  
167    
168    temp = g_strdup_printf ("1");    temp = g_strdup_printf ("1");
169    gtk_entry_set_text (GTK_ENTRY (printlowentry), temp);    gtk_entry_set_text (GTK_ENTRY (printlowentry), temp);
# Line 338  on_menu_print_activate (GtkMenuItem * me Line 341  on_menu_print_activate (GtkMenuItem * me
341    
342    gtk_widget_set_sensitive (mainwindow, 0);    gtk_widget_set_sensitive (mainwindow, 0);
343    gtk_widget_show (printdialog);    gtk_widget_show (printdialog);
344      }
345  }  }
346    
347  void  void
# Line 374  on_menu_save_activate (GtkMenuItem * men Line 378  on_menu_save_activate (GtkMenuItem * men
378    gchar *temp;    gchar *temp;
379    logtype *logwindow;    logtype *logwindow;
380    gchar *xlogfile;    gchar *xlogfile;
381      gint page;
382    
383    logwindow = g_list_nth_data (logwindowlist,    page = gtk_notebook_get_current_page (GTK_NOTEBOOK(mainnotebook));
384                                 gtk_notebook_get_current_page (GTK_NOTEBOOK    if (page >= 0)
385                                                                (mainnotebook)));    {
386    xlogfile =      logwindow = g_list_nth_data (logwindowlist, page);
387      g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S, logwindow->logname,      xlogfile = g_strconcat (preferences.savedir, G_DIR_SEPARATOR_S,
388                   ".xlog", NULL);        logwindow->logname, ".xlog", NULL);
389    savelog (logwindow, xlogfile, TYPE_FLOG, 1 , logwindow->qsos);      savelog (logwindow, xlogfile, TYPE_FLOG, 1 , logwindow->qsos);
390    temp = g_strdup_printf (_("Log saved to %s"), xlogfile);      temp = g_strdup_printf (_("Log saved to %s"), xlogfile);
391    update_statusbar (temp);      update_statusbar (temp);
392    g_free (temp);      g_free (temp);
393    g_free (xlogfile);      g_free (xlogfile);
394    logwindow->logchanged = FALSE;      logwindow->logchanged = FALSE;
395    gtk_label_set_text (GTK_LABEL (logwindow->label), logwindow->logname);      gtk_label_set_text (GTK_LABEL (logwindow->label), logwindow->logname);
396      }
397  }  }
398    
399    
# Line 818  on_menu_saveas_activate (GtkMenuItem * m Line 824  on_menu_saveas_activate (GtkMenuItem * m
824      *lowqsoentry, *highqsoentry, *dash;      *lowqsoentry, *highqsoentry, *dash;
825    gchar *selection, *temp;    gchar *selection, *temp;
826    logtype *logwindow;    logtype *logwindow;
827      gint page;
828    
829      page = gtk_notebook_get_current_page (GTK_NOTEBOOK(mainnotebook));
830      if (page >= 0)
831      {
832    
833    saveasdialog = create_saveasdialog ();    saveasdialog = create_saveasdialog ();
834    
# Line 859  on_menu_saveas_activate (GtkMenuItem * m Line 870  on_menu_saveas_activate (GtkMenuItem * m
870    gtk_widget_set_size_request (highqsoentry, 50, -1);    gtk_widget_set_size_request (highqsoentry, 50, -1);
871    gtk_box_pack_start (GTK_BOX (hbox), highqsoentry, FALSE, FALSE, 5);    gtk_box_pack_start (GTK_BOX (hbox), highqsoentry, FALSE, FALSE, 5);
872        
873    logwindow = g_list_nth_data (logwindowlist,    logwindow = g_list_nth_data (logwindowlist, page);
                                gtk_notebook_get_current_page (GTK_NOTEBOOK  
                                                               (mainnotebook)));  
874    
875    temp = g_strdup_printf ("1");    temp = g_strdup_printf ("1");
876    gtk_entry_set_text (GTK_ENTRY (lowqsoentry), temp);    gtk_entry_set_text (GTK_ENTRY (lowqsoentry), temp);
# Line 881  on_menu_saveas_activate (GtkMenuItem * m Line 890  on_menu_saveas_activate (GtkMenuItem * m
890    
891    gtk_widget_set_sensitive (mainwindow, 0);    gtk_widget_set_sensitive (mainwindow, 0);
892    gtk_widget_show (saveasdialog);    gtk_widget_show (saveasdialog);
893      }
894  }  }
895    
896  void  void
# Line 979  on_menu_dupecheck_activate (GtkMenuItem Line 989  on_menu_dupecheck_activate (GtkMenuItem
989  {  {
990    GtkWidget *dupecheckdialog, *dupecheckthisradiobutton,    GtkWidget *dupecheckdialog, *dupecheckthisradiobutton,
991      *dupecheckallradiobutton, *dupecheckbuttonmode, *dupecheckbuttonband;      *dupecheckallradiobutton, *dupecheckbuttonmode, *dupecheckbuttonband;
992      gint page;
993    
994      page = gtk_notebook_get_current_page (GTK_NOTEBOOK(mainnotebook));
995      if (page >= 0)
996      {
997    
998    dupecheckdialog = create_dupecheckdialog ();    dupecheckdialog = create_dupecheckdialog ();
999    dupecheckthisradiobutton = lookup_widget (dupecheckdialog,    dupecheckthisradiobutton = lookup_widget (dupecheckdialog,
# Line 1012  on_menu_dupecheck_activate (GtkMenuItem Line 1027  on_menu_dupecheck_activate (GtkMenuItem
1027    
1028    gtk_widget_set_sensitive (mainwindow, 0);    gtk_widget_set_sensitive (mainwindow, 0);
1029    gtk_widget_show (dupecheckdialog);    gtk_widget_show (dupecheckdialog);
1030      }
1031  }  }
1032    
1033  void  void

Legend:
Removed from v.1.49  
changed lines
  Added in v.1.50

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