Correct "loading" signal handler in FmTabPage (almost cosmetic fix).
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Wed, 11 Jun 2014 19:36:03 +0000 (22:36 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Wed, 11 Jun 2014 19:36:03 +0000 (22:36 +0300)
src/connect-server.c
src/tab-page.c
src/tab-page.h

index 7c73b3d..e6a05fd 100644 (file)
@@ -67,6 +67,8 @@ static void on_response(GtkDialog *dialog, gint resp, ConnectDlg *dlg)
             def_port = 21;
         else if (strcmp(scheme, "dav") == 0)
             def_port = 80;
+        else
+            def_port = -1;
         used_port = (int)gtk_spin_button_get_value(dlg->server_port);
         if (def_port != used_port)
             g_string_append_printf(str, ":%d", used_port);
index 9fc837d..975cf49 100644 (file)
@@ -157,12 +157,12 @@ static void fm_tab_page_class_init(FmTabPageClass *klass)
                     NULL, NULL,
                     g_cclosure_marshal_VOID__VOID,
                     G_TYPE_NONE, 0);
-    /* folder view received the focus */
+    /* the folder finished loading */
     signals[LOADED] =
         g_signal_new("loaded",
                     G_TYPE_FROM_CLASS(klass),
                     G_SIGNAL_RUN_FIRST,
-                    G_STRUCT_OFFSET (FmTabPageClass, got_focus),
+                    G_STRUCT_OFFSET (FmTabPageClass, loaded),
                     NULL, NULL,
                     g_cclosure_marshal_VOID__VOID,
                     G_TYPE_NONE, 0);
index 76cc768..cfd7f10 100644 (file)
@@ -89,6 +89,7 @@ struct _FmTabPageClass
     //void (*open_dir)(FmTabPage* page, guint where, FmPath* path);
     void (*status)(FmTabPage* page, guint type, const char* status_text);
     void (*got_focus)(FmTabPage* page);
+    void (*loaded)(FmTabPage* page);
 };
 
 /* Side Pane mode extensions */