From 61657b35e5e0da31301b894445ff6bcf7f62a8c5 Mon Sep 17 00:00:00 2001 From: winckel Date: Wed, 29 Jan 2014 13:51:41 +0000 Subject: [PATCH] Put dialog box in the center of main window. git-svn-id: http://svn.eurecom.fr/openair4G/trunk@4985 818b1a75-f10b-46b9-bf7c-635c3b92a50f --- common/utils/itti_analyzer/libui/ui_notif_dlg.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/utils/itti_analyzer/libui/ui_notif_dlg.c b/common/utils/itti_analyzer/libui/ui_notif_dlg.c index cf7e6d8c59..8179eb0670 100644 --- a/common/utils/itti_analyzer/libui/ui_notif_dlg.c +++ b/common/utils/itti_analyzer/libui/ui_notif_dlg.c @@ -41,6 +41,9 @@ int ui_notification_dialog(GtkMessageType type, gboolean cancel, const char *tit dialogbox = gtk_message_dialog_new (GTK_WINDOW(ui_main_data.window), GTK_DIALOG_DESTROY_WITH_PARENT | GTK_DIALOG_MODAL, type, cancel ? GTK_BUTTONS_OK_CANCEL : GTK_BUTTONS_OK, "%s", buffer); + /* Set the window at center of main window */ + gtk_window_set_position (GTK_WINDOW(dialogbox), GTK_WIN_POS_CENTER_ON_PARENT); + gtk_dialog_set_default_response (GTK_DIALOG(dialogbox), GTK_RESPONSE_OK); snprintf (buffer, sizeof(buffer), "%s: %s", title_type_strings[type], title);