Problem with gtk_message dialog_new



Hi

I got a problem with gtk_message_dialog_new function :I pass a gchar*  as a parameter to a function for 
creating message dialog box and it only writes a part of the whole string. 

In main :
...
quick_message (" message bla bla ");
...

Function quick_message : 

void quick_message(gchar *message)
{
  GtkWidget *dialog ;

  
dialog=gtk_message_dialog_new(GTK_WINDOW(pWindow),GTK_DIALOG_DESTROY_WITH_PARENT,GTK_MESSAGE_ERROR,GTK_BUTTONS_CLOSE,message);

  gtk_dialog_run(GTK_DIALOG(dialog));
  
  gtk_widget_destroy(dialog);
  
}

When running , I only see the part of string : message b. Could you tell me why ?
Thanks

Dimitri




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]