gnome-user-share/gnome-user-share-soft-dep-apache.patch

15 lines
760 B
Diff

Index: gnome-user-share-3.0.3/src/file-share-properties.c
===================================================================
--- gnome-user-share-3.0.3.orig/src/file-share-properties.c
+++ gnome-user-share-3.0.3/src/file-share-properties.c
@@ -358,6 +358,9 @@ create_window (void)
window = GTK_WIDGET (gtk_builder_get_object (builder, "user_share_dialog"));
+ 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"));