LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File gnome-user-share-soft-dep-apache.patch of Package gnome-user-share (Project home:acho-novell:branches:openSUSE:11.4:Update)

Index: gnome-user-share-0.40/src/file-share-properties.c
===================================================================
--- gnome-user-share-0.40.orig/src/file-share-properties.c
+++ gnome-user-share-0.40/src/file-share-properties.c
@@ -468,6 +468,9 @@ main (int argc, char *argv[])
 			  GCONF_CLIENT_PRELOAD_RECURSIVE,
 			  NULL);
 
+    if (!g_file_test (HTTPD_PROGRAM, G_FILE_TEST_EXISTS))
+      gtk_widget_hide (GTK_WIDGET (gtk_builder_get_object (builder, "vbox3")));
+
     check = GTK_WIDGET (gtk_builder_get_object (builder, "enable_check"));
     password_combo = GTK_WIDGET (gtk_builder_get_object (builder, "password_combo"));
     password_entry = GTK_WIDGET (gtk_builder_get_object (builder, "password_entry"));