gksutil

gksutil —

Synopsis




gchar*      conv_from_utf8                  (gchar *msg);
gchar*      conv_to_utf8                    (gchar *msg);
void        gk_dialog                       (GtkMessageType type,
                                             gchar *format,
                                             ...);
ssize_t     full_write                      (int d,
                                             const char *buf,
                                             size_t nbytes);
void        copy                            (const char *fn,
                                             const char *dir);

Description

Details

conv_from_utf8 ()

gchar*      conv_from_utf8                  (gchar *msg);

Converts a string from UTF-8 to the current locale. It is mostly a wrapper to Glib's g_locale_from_utf8().

msg : message to convert from UTF-8.
Returns : a newly allocated with the converted string or NULL on failure.

conv_to_utf8 ()

gchar*      conv_to_utf8                    (gchar *msg);

Converts a string from the current locale to UTF-8. It is mostly a wrapper to Glib's g_locale_to_utf8().

msg : message to convert to UTF-8.
Returns : a newly allocated with the converted string or NULL on failure.

gk_dialog ()

void        gk_dialog                       (GtkMessageType type,
                                             gchar *format,
                                             ...);

Shows 'msg' in a dialog box with an OK button This function is to be a helper for functions needing to display some information to the user. Notice that it will not let the program go on if the user does not close the dialog.

type : a GtkMessageType (GTK_MESSAGE_{INFO,ERROR,WARNING})
format : a printf()-like format for the label of the dialog
... : the actual variables.

full_write ()

ssize_t     full_write                      (int d,
                                             const char *buf,
                                             size_t nbytes);

d :
buf :
nbytes :
Returns :

copy ()

void        copy                            (const char *fn,
                                             const char *dir);

fn :
dir :