~ubuntu-branches/ubuntu/precise/grcm/precise

« back to all changes in this revision

Viewing changes to src/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Luca Niccoli
  • Date: 2009-04-04 00:23:55 UTC
  • mfrom: (1.1.1 upstream)
  • mto: This revision was merged to the branch mainline in revision 8.
  • Revision ID: james.westby@ubuntu.com-20090404002355-hgzcfwns8vis1mmx
Tags: 0.1.6-1
* Adopt package.
* New upstream release.
* Repackage from scratch using quilt.
* Use debhelper 7
* Set Standards Version to 3.8.1
* Move build system to latest automake in Debian.

Show diffs side-by-side

added added

removed removed

Lines of Context:
458
458
void
459
459
rcm_first_run (void)
460
460
{
461
 
        ConnectionType type, ssht;
 
461
        ConnectionType type;
462
462
        Connection connection;
463
463
        GtkWidget *dialog = NULL;
464
464
        
465
465
        memset(&type,0,sizeof(struct ConnectionType));
466
 
        memset(&ssht,0,sizeof(struct ConnectionType));
467
466
        memset(&connection,0,sizeof(struct Connection));
468
467
        
469
468
        strncpy(type.Command,"ftp",MAX_BUFFER_LENGTH);
471
470
        strncpy(type.Icon,PACKAGE_PIXMAP_DIR,MAX_BUFFER_LENGTH);
472
471
        strncat(type.Icon,"/ftp.xpm",MAX_BUFFER_LENGTH);
473
472
        type.Terminal = TRUE;
474
 
 
475
 
        strncpy(ssht.Command,"ssh",MAX_BUFFER_LENGTH);
476
 
        strncpy(ssht.Name,"SSH",MAX_BUFFER_LENGTH);
477
 
        strncpy(ssht.Icon,PACKAGE_PIXMAP_DIR,MAX_BUFFER_LENGTH);
478
 
        strncat(ssht.Icon,"/ssh.png",MAX_BUFFER_LENGTH);
479
 
        strncpy(ssht.Arguments,"%h -l %u",MAX_BUFFER_LENGTH);
480
 
        type.Terminal = TRUE;
481
473
        
482
474
        strncpy(connection.Arguments,"%h",MAX_BUFFER_LENGTH);
483
475
        strncpy(connection.Hostname,"ftp.gnome.org",MAX_BUFFER_LENGTH);
484
476
        strncpy(connection.Name,"Gnome FTP Site",MAX_BUFFER_LENGTH);
485
 
 
 
477
        
486
478
        rcm_save_type(type);
487
 
        rcm_save_type(ssht);
488
479
        rcm_save_types_to_disk();
489
480
        rcm_save_connection(connection);
490
481
        rcm_save_connections_to_disk();