summaryrefslogtreecommitdiffstats
path: root/meta/packages/pcmanfm/files/no-warnings.patch
blob: b1570a0d98c1e04d09ba6b6d0f6e5fcddfa81771 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
Index: pcmanfm-0.5/src/main.c
===================================================================
--- pcmanfm-0.5.orig/src/main.c
+++ pcmanfm-0.5/src/main.c
@@ -118,7 +118,7 @@
 
 static void init_folder();
 static void init_daemon_or_desktop();
-static void check_icon_theme();
+/*static void check_icon_theme();*/
 
 static gboolean handle_parsed_commandline_args();
 
@@ -322,7 +322,7 @@
     gtk_widget_show ( GTK_WIDGET( main_window ) );
     return main_window;
 }
-
+#if 0
 void check_icon_theme()
 {
     GtkSettings * settings;
@@ -361,7 +361,7 @@
     }
     g_free( theme );
 }
-
+#endif
 #ifdef _DEBUG_THREAD
 
 G_LOCK_DEFINE(gdk_lock);
@@ -405,7 +405,7 @@
     vfs_file_info_set_thumbnail_size( app_settings.big_icon_size,
                                       app_settings.small_icon_size );
 
-    check_icon_theme();
+/*    check_icon_theme();*/
     folder_initialized = TRUE;
 }
 
Index: pcmanfm-0.5/src/main-window.c
===================================================================
--- pcmanfm-0.5.orig/src/main-window.c
+++ pcmanfm-0.5/src/main-window.c
@@ -633,6 +633,7 @@
     gtk_widget_grab_focus ( GTK_WIDGET( main_window->address_bar ) );
 
 #ifdef SUPER_USER_CHECKS
+#if 0
     /* Create warning bar for super user */
     if ( geteuid() == 0 )                 /* Run as super user! */
     {
@@ -648,6 +649,7 @@
                              main_window->status_bar, FALSE, FALSE, 2 );
     }
 #endif
+#endif
 
     /* Create client area */
     main_window->notebook = gtk_notebook_new();