summaryrefslogtreecommitdiffstats
path: root/sfshare-gui/src/sfshare.c
diff options
context:
space:
mode:
Diffstat (limited to 'sfshare-gui/src/sfshare.c')
-rw-r--r--sfshare-gui/src/sfshare.c29
1 files changed, 17 insertions, 12 deletions
diff --git a/sfshare-gui/src/sfshare.c b/sfshare-gui/src/sfshare.c
index 17bed74..d223cab 100644
--- a/sfshare-gui/src/sfshare.c
+++ b/sfshare-gui/src/sfshare.c
@@ -25,7 +25,7 @@
#include <stdlib.h>
-/* Types of share service */
+/** Types of share service */
typedef enum share_service
{
NOTHING_SELECTED = -1,
@@ -34,7 +34,7 @@ typedef enum share_service
} TShare_service;
-/* Dialog widgets */
+/** Dialog widgets */
typedef struct _sfsdialog
{
GtkWidget *window;
@@ -52,16 +52,16 @@ typedef struct _sfsdialog
} SFSDialog;
-/* Dialog window */
+/** Dialog window */
SFSDialog sfsdialog;
-/* Is directory shared? */
+/** Is directory shared? */
gboolean shared_smbconf = FALSE;
-/* Did user changed something? */
+/** Did user changed something? */
gboolean change_in_gui = FALSE;
-/* path to folder */
+/** Path to folder */
gchar *dir_path;
@@ -79,7 +79,7 @@ sfshare_dialog_destroy ()
}
-
+/** On change event - enable Save button */
void
gui_changed ( void )
{
@@ -92,7 +92,7 @@ gui_changed ( void )
}
-/* Show info, error or warning message*/
+/** Show info, error or warning message */
void
show_message (GtkMessageType type, const gchar *format, gchar *msgtxt, const gchar *format_sec, gchar *msgtxt_sec)
{
@@ -115,7 +115,7 @@ show_message (GtkMessageType type, const gchar *format, gchar *msgtxt, const gch
}
-/*
+/**
* Fill in information about shared directory to GUI
*/
void
@@ -181,6 +181,9 @@ reload_share_info ( void )
load_share_info ();
}
+/**
+* Check authority via PolicyKit - OnClick Save
+*/
void
sfshare_authority_check ( void )
{
@@ -218,8 +221,8 @@ sfshare_authority_check ( void )
-/*
-* Call set_share
+/**
+* Save button - call functions to save/change or delete section
*/
void
save_share ( void )
@@ -270,7 +273,9 @@ save_share ( void )
}
}
-
+/**
+* Create main window
+*/
int
main ( int argc, char **argv )
{