Diff of /trunk/src/geotoad.c

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

revision 203 by harbaum, Thu Nov 19 13:57:17 2009 UTC revision 204 by harbaum, Mon Nov 23 18:32:06 2009 UTC
# Line 187  static void run(gt_context_t *context) { Line 187  static void run(gt_context_t *context) {
187    g_ptr_array_add (gt_argv, g_strdup_printf("--output=%s", context->appdata->gt.filename));    g_ptr_array_add (gt_argv, g_strdup_printf("--output=%s", context->appdata->gt.filename));
188    g_ptr_array_add (gt_argv, g_strdup_printf("--password=%s", context->appdata->gt.password));    g_ptr_array_add (gt_argv, g_strdup_printf("--password=%s", context->appdata->gt.password));
189    g_ptr_array_add (gt_argv, g_strdup_printf("--queryType=coord"));    g_ptr_array_add (gt_argv, g_strdup_printf("--queryType=coord"));
190    g_ptr_array_add (gt_argv, g_strdup_printf("--user=%s", context->appdata->gt.username));    g_ptr_array_add (gt_argv, g_strdup_printf("--user=%s", context->appdata->username));
191    
192    /* check if we need to add proxy config */    /* check if we need to add proxy config */
193    char *proxy = NULL;    char *proxy = NULL;
# Line 451  static gboolean gui_setup(gt_context_t * Line 451  static gboolean gui_setup(gt_context_t *
451    gtk_entry_set_visibility(GTK_ENTRY(context->password), FALSE);    gtk_entry_set_visibility(GTK_ENTRY(context->password), FALSE);
452    
453    /* set saved defaults */    /* set saved defaults */
454    if(appdata->gt.username)    if(appdata->username)
455      gtk_entry_set_text(GTK_ENTRY(context->username),      gtk_entry_set_text(GTK_ENTRY(context->username),
456                         appdata->gt.username);                         appdata->username);
457    
458    if(appdata->gt.password)    if(appdata->gt.password)
459      gtk_entry_set_text(GTK_ENTRY(context->password),      gtk_entry_set_text(GTK_ENTRY(context->password),
# Line 475  static gboolean gui_setup(gt_context_t * Line 475  static gboolean gui_setup(gt_context_t *
475      /* ... */      /* ... */
476    
477      /* save values */      /* save values */
478      if(appdata->gt.username) g_free(appdata->gt.username);      if(appdata->username) g_free(appdata->username);
479      appdata->gt.username =      appdata->username =
480        g_strdup(gtk_entry_get_text(GTK_ENTRY(context->username)));        g_strdup(gtk_entry_get_text(GTK_ENTRY(context->username)));
481    
482      if(appdata->gt.password) g_free(appdata->gt.password);      if(appdata->gt.password) g_free(appdata->gt.password);

Legend:
Removed from v.203  
changed lines
  Added in v.204