* Moved all GUI calls to main thread * Refine socket interface * Added origin/destination task id on message display list git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4258 818b1a75-f10b-46b9-bf7c-635c3b92a50f
25 lines
538 B
C
25 lines
538 B
C
#include "rc.h"
|
|
|
|
#include "ui_notif_dlg.h"
|
|
#include "ui_main_screen.h"
|
|
|
|
int ui_notification_dialog(dialog_type_t type, const char *fmt, ...)
|
|
{
|
|
va_list args;
|
|
GtkWidget *dialogbox;
|
|
|
|
va_start(args, fmt);
|
|
|
|
dialogbox = gtk_message_dialog_new(GTK_WINDOW(ui_main_data.window),
|
|
GTK_DIALOG_MODAL, type,
|
|
GTK_BUTTONS_OK, fmt, args);
|
|
|
|
gtk_dialog_run(GTK_DIALOG (dialogbox));
|
|
|
|
gtk_widget_destroy (dialogbox);
|
|
|
|
va_end(args);
|
|
|
|
return RC_OK;
|
|
}
|