(gtk) use G_GNUC_PRINTF where appropriate.
This commit is contained in:
parent
a311e12f9b
commit
af7bb90ac1
12
gtk/util.h
12
gtk/util.h
|
@ -93,21 +93,13 @@ sizingmagic( GtkWindow * wind, GtkScrolledWindow * scroll,
|
||||||
/* create an error dialog, if wind is NULL or mapped then show dialog now,
|
/* create an error dialog, if wind is NULL or mapped then show dialog now,
|
||||||
otherwise show it when wind becomes mapped */
|
otherwise show it when wind becomes mapped */
|
||||||
void
|
void
|
||||||
errmsg( GtkWindow * wind, const char * format, ... )
|
errmsg( GtkWindow * wind, const char * format, ... ) G_GNUC_PRINTF(2,3);
|
||||||
#ifdef __GNUC__
|
|
||||||
__attribute__ (( format ( printf, 2, 3 ) ))
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
/* create an error dialog but do not gtk_widget_show() it,
|
/* create an error dialog but do not gtk_widget_show() it,
|
||||||
calls func( data ) when the dialog is closed */
|
calls func( data ) when the dialog is closed */
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
errmsg_full( GtkWindow * wind, callbackfunc_t func, void * data,
|
errmsg_full( GtkWindow * wind, callbackfunc_t func, void * data,
|
||||||
const char * format, ... )
|
const char * format, ... ) G_GNUC_PRINTF(4,5);
|
||||||
#ifdef __GNUC__
|
|
||||||
__attribute__ (( format ( printf, 4, 5 ) ))
|
|
||||||
#endif
|
|
||||||
;
|
|
||||||
|
|
||||||
/* varargs version of errmsg_full() */
|
/* varargs version of errmsg_full() */
|
||||||
GtkWidget *
|
GtkWidget *
|
||||||
|
|
Loading…
Reference in New Issue