Mercurial > gftp.yaz
comparison src/gtk/gftp-gtk.c @ 924:f37091406523
2007-5-18 Brian Masney <masneyb@gftp.org>
* lib/protocols.c (gftp_request_destroy) - initialize the
request->server_type if the request structure isn't destroyed.
* src/gtk/gftp-gtk.c (gftp_gtk_init_request) - don't create a new
request structure.
* src/gtk/gtkui.c (gftpui_disconnect) - don't free the request
structure.
author | masneyb |
---|---|
date | Sat, 19 May 2007 01:37:07 +0000 |
parents | 1f9c6baa458c |
children | 19b6d55e2646 |
comparison
equal
deleted
inserted
replaced
923:70b7e6663a05 | 924:f37091406523 |
---|---|
763 | 763 |
764 | 764 |
765 void | 765 void |
766 gftp_gtk_init_request (gftp_window_data * wdata) | 766 gftp_gtk_init_request (gftp_window_data * wdata) |
767 { | 767 { |
768 wdata->request = gftp_request_new (); | |
769 wdata->request->logging_function = ftp_log; | 768 wdata->request->logging_function = ftp_log; |
770 wdata->filespec = g_malloc0 (2); | 769 wdata->filespec = g_malloc0 (2); |
771 *wdata->filespec = '*'; | 770 *wdata->filespec = '*'; |
772 } | 771 } |
773 | 772 |
790 titles[3] = _("User"); | 789 titles[3] = _("User"); |
791 titles[4] = _("Group"); | 790 titles[4] = _("Group"); |
792 titles[5] = _("Date"); | 791 titles[5] = _("Date"); |
793 titles[6] = _("Attribs"); | 792 titles[6] = _("Attribs"); |
794 | 793 |
794 wdata->request = gftp_request_new (); | |
795 gftp_gtk_init_request (wdata); | 795 gftp_gtk_init_request (wdata); |
796 | 796 |
797 parent = gtk_frame_new (NULL); | 797 parent = gtk_frame_new (NULL); |
798 | 798 |
799 gftp_lookup_global_option ("listbox_file_height", &listbox_file_height); | 799 gftp_lookup_global_option ("listbox_file_height", &listbox_file_height); |