2 bug fix of svn

The dedicated forum for PCMan File Manager - http://wiki.lxde.org/en/PCManFM
Corto
Posts: 14
Joined: Thu Feb 19, 2009 5:21 pm

2 bug fix of svn

Postby Corto » Mon Mar 02, 2009 2:14 pm

I found bugs in svn repository:
Index: src/ptk/ptk-utils.c
===================================================================
--- src/ptk/ptk-utils.c (revision 787)
+++ src/ptk/ptk-utils.c (working copy)
@@ -291,7 +291,7 @@
{
break_gnome_hig( dlg, i == 0 ? 3 : 2 );
gtk_widget_size_request( dlg, &req );
- /* g_debug("%d, %d", req.width, req.height ); */
+ // g_debug("%d, %d", req.width, req.height );
}

if( GTK_WIDGET_REALIZED( dlg ) )
@@ -309,14 +309,14 @@
}
if( changed )
gtk_window_resize( (GtkWindow*)dlg, dw, dh );
- /* gtk_window_move( dlg, 0, 0 ); */
+ // gtk_window_move( dlg, 0, 0 );
}
else
{
- gtk_window_get_default_size( (GtkWindow*)dlg, &dw, dh );
+ gtk_window_get_default_size( (GtkWindow*)dlg, &dw, &dh );
if( dw > wa.width )
dw = wa.width;
- if( dh > wa.width )
+ if( dh > wa.height )
dh = wa.height;
gtk_window_set_default_size( dlg, dw, dh );
}


Index: src/main.c
===================================================================
--- src/main.c (revision 787)
+++ src/main.c (working copy)
@@ -571,11 +571,26 @@
g_free( *file );
*file = file_path;
}
else
file_path = *file;

- real_path = vfs_file_resolve_path( NULL, file_path );
- if( g_file_test( real_path, G_FILE_TEST_IS_DIR ) )
+ real_path = vfs_file_resolve_path( cwd, file_path );
+ VFSFileInfo *fi = vfs_file_info_new();
+ vfs_file_info_get( fi, file_path, NULL );
+ if( vfs_file_info_is_dir(fi))//g_file_test( real_path, G_FILE_TEST_IS_DIR ) )
{
if( G_UNLIKELY( ! main_window ) ) /* create main window if needed */
{

Return to “PCManFM”

Who is online

Users browsing this forum: No registered users and 1 guest