![]() | ![]() | ![]() | GKSu Developers Manual |
---|
gksutil —
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);
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. |
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. |
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. |
ssize_t full_write (int d, const char *buf, size_t nbytes);
d : | |
buf : | |
nbytes : | |
Returns : |
<< GKSu Hackers Utility Functions Guide |