diff options
Diffstat (limited to 'meta/packages/pcmanfm/files/no-warnings.patch')
-rw-r--r-- | meta/packages/pcmanfm/files/no-warnings.patch | 53 |
1 files changed, 33 insertions, 20 deletions
diff --git a/meta/packages/pcmanfm/files/no-warnings.patch b/meta/packages/pcmanfm/files/no-warnings.patch index 2e0d92bd7b..b1570a0d98 100644 --- a/meta/packages/pcmanfm/files/no-warnings.patch +++ b/meta/packages/pcmanfm/files/no-warnings.patch | |||
@@ -1,47 +1,60 @@ | |||
1 | --- pcmanfm-0.3.2-beta/src/main.c.old 2006-09-25 11:51:51.000000000 +0100 | 1 | Index: pcmanfm-0.5/src/main.c |
2 | +++ pcmanfm-0.3.2-beta/src/main.c 2006-09-25 11:51:55.000000000 +0100 | 2 | =================================================================== |
3 | @@ -173,7 +173,7 @@ | 3 | --- pcmanfm-0.5.orig/src/main.c |
4 | +++ pcmanfm-0.5/src/main.c | ||
5 | @@ -118,7 +118,7 @@ | ||
6 | |||
7 | static void init_folder(); | ||
8 | static void init_daemon_or_desktop(); | ||
9 | -static void check_icon_theme(); | ||
10 | +/*static void check_icon_theme();*/ | ||
11 | |||
12 | static gboolean handle_parsed_commandline_args(); | ||
13 | |||
14 | @@ -322,7 +322,7 @@ | ||
4 | gtk_widget_show ( GTK_WIDGET( main_window ) ); | 15 | gtk_widget_show ( GTK_WIDGET( main_window ) ); |
5 | return main_window; | 16 | return main_window; |
6 | } | 17 | } |
7 | - | 18 | - |
8 | +#if 0 | 19 | +#if 0 |
9 | static void check_icon_theme() | 20 | void check_icon_theme() |
10 | { | 21 | { |
11 | GtkSettings * settings; | 22 | GtkSettings * settings; |
12 | @@ -212,7 +212,7 @@ | 23 | @@ -361,7 +361,7 @@ |
13 | } | 24 | } |
14 | g_free( theme ); | 25 | g_free( theme ); |
15 | } | 26 | } |
16 | - | 27 | - |
17 | +#endif | 28 | +#endif |
18 | int | 29 | #ifdef _DEBUG_THREAD |
19 | main ( int argc, char *argv[] ) | 30 | |
20 | { | 31 | G_LOCK_DEFINE(gdk_lock); |
21 | @@ -274,7 +274,7 @@ | 32 | @@ -405,7 +405,7 @@ |
22 | vfs_file_info_set_thumbnail_size( appSettings.bigIconSize, | 33 | vfs_file_info_set_thumbnail_size( app_settings.big_icon_size, |
23 | appSettings.smallIconSize ); | 34 | app_settings.small_icon_size ); |
24 | 35 | ||
25 | - check_icon_theme(); | 36 | - check_icon_theme(); |
26 | +/* check_icon_theme();*/ | 37 | +/* check_icon_theme();*/ |
38 | folder_initialized = TRUE; | ||
39 | } | ||
27 | 40 | ||
28 | if( appSettings.showDesktop ) | 41 | Index: pcmanfm-0.5/src/main-window.c |
29 | fm_desktop_init(); | 42 | =================================================================== |
30 | --- pcmanfm-0.3.2-beta/src/main-window.c.old 2006-09-25 11:47:45.000000000 +0100 | 43 | --- pcmanfm-0.5.orig/src/main-window.c |
31 | +++ pcmanfm-0.3.2-beta/src/main-window.c 2006-09-25 11:50:32.000000000 +0100 | 44 | +++ pcmanfm-0.5/src/main-window.c |
32 | @@ -496,6 +496,7 @@ | 45 | @@ -633,6 +633,7 @@ |
33 | gtk_window_add_accel_group ( GTK_WINDOW ( main_window ), main_window->accel_group ); | ||
34 | gtk_widget_grab_focus ( GTK_WIDGET( main_window->address_bar ) ); | 46 | gtk_widget_grab_focus ( GTK_WIDGET( main_window->address_bar ) ); |
35 | 47 | ||
48 | #ifdef SUPER_USER_CHECKS | ||
36 | +#if 0 | 49 | +#if 0 |
37 | /* Create warning bar for super user */ | 50 | /* Create warning bar for super user */ |
38 | if ( geteuid() == 0 ) /* Run as super user! */ | 51 | if ( geteuid() == 0 ) /* Run as super user! */ |
39 | { | 52 | { |
40 | @@ -510,6 +511,7 @@ | 53 | @@ -648,6 +649,7 @@ |
41 | gtk_box_pack_start ( GTK_BOX ( main_window->main_vbox ), | ||
42 | main_window->status_bar, FALSE, FALSE, 2 ); | 54 | main_window->status_bar, FALSE, FALSE, 2 ); |
43 | } | 55 | } |
56 | #endif | ||
44 | +#endif | 57 | +#endif |
45 | 58 | ||
46 | /* Create client area */ | 59 | /* Create client area */ |
47 | main_window->notebook = GTK_NOTEBOOK( gtk_notebook_new () ); | 60 | main_window->notebook = gtk_notebook_new(); |