changeset 115:32cbf51617fb

2003-2-25 Brian Masney <masneyb@gftp.org> * src/gtk/gftp-gtk.c - use gtk_container_add() instead of gtk_scrolled_window_add_with_viewport() (from Kang Jeong-Hee <Keizi@mail.co.kr>)
author masneyb
date Wed, 26 Feb 2003 01:41:35 +0000
parents fe36ed90aedd
children 915389849ed9
files ChangeLog src/gtk/gftp-gtk.c
diffstat 2 files changed, 14 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog	Mon Feb 24 02:47:58 2003 +0000
+++ b/ChangeLog	Wed Feb 26 01:41:35 2003 +0000
@@ -1,3 +1,8 @@
+2003-2-25 Brian Masney <masneyb@gftp.org>
+	* src/gtk/gftp-gtk.c - use gtk_container_add() instead of
+	gtk_scrolled_window_add_with_viewport() 
+	(from Kang Jeong-Hee <Keizi@mail.co.kr>)
+
 2003-2-23 Brian Masney <masneyb@gftp.org>
 	* lib/cache.c - added function gftp_parse_cache_entry(). Save
 	request->server_type (output of SYST in FTP command) to the directory
@@ -511,7 +516,7 @@
 
 	* cvsclean - added this script
 
-	* *.[ch] - added $Id: ChangeLog,v 1.62 2003/02/24 02:47:57 masneyb Exp $ tags
+	* *.[ch] - added $Id: ChangeLog,v 1.63 2003/02/26 01:41:33 masneyb Exp $ tags
 
 	* debian/* - updated files from Debian maintainer
 
--- a/src/gtk/gftp-gtk.c	Mon Feb 24 02:47:58 2003 +0000
+++ b/src/gtk/gftp-gtk.c	Wed Feb 26 01:41:35 2003 +0000
@@ -733,7 +733,7 @@
   else
     gtk_clist_set_column_width (GTK_CLIST (dlwdw), 0, file_trans_column);
 
-  gtk_scrolled_window_add_with_viewport (GTK_SCROLLED_WINDOW (transfer_scroll),                                          dlwdw);
+  gtk_container_add (GTK_CONTAINER (transfer_scroll), dlwdw);
   gtk_signal_connect (GTK_OBJECT (dlwdw), "button_press_event",
 		      GTK_SIGNAL_FUNC (menu_mouse_click), (gpointer) dl_factory);
   gtk_paned_pack2 (GTK_PANED (dlpane), transfer_scroll, 1, 1);
@@ -974,6 +974,7 @@
 main (int argc, char **argv)
 {
   GtkWidget *window, *ui;
+  int i;
 
 #ifdef HAVE_GETTEXT
   setlocale (LC_ALL, "");
@@ -995,6 +996,12 @@
   signal (SIGINT, signal_handler);
 
   graphic_hash_table = g_hash_table_new (string_hash_function, string_hash_compare);
+ 
+  for (i=0; gftp_protocols[i].register_options != NULL; i++)
+    {
+      gftp_protocols[i].register_options ();
+    }
+
   gftp_read_config_file (argv, 1);
   if (gftp_parse_command_line (&argc, &argv) != 0)
     exit (0);