Text   |  XML   |  ReML   |   Visible Warnings:

Dangerous Function Cast  at gui_utils.c:135

No properties have been set. | edit properties
Jump to warning location ↓ warning details...
Show Events | Options

window_new

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/gui_utils.c)expand/collapse
Show more  
 125  /* Create a new window, of the specified type, with the specified title
 126     (if any) and the Wireshark icon. */
 127  GtkWidget *
 128  window_new(GtkWindowType type, const gchar *title)
 129  {
 130    GtkWidget *win;
 131   
 132    win = gtk_window_new(type);
 133    if (title != NULL)
 134      gtk_window_set_title(GTK_WINDOW(win), title);
 135    g_signal_connect(win, "realize", G_CALLBACK(window_icon_realize_cb), NULL);
 136   
 137    /* XXX - which one is the correct default policy? or use a preference for this? */
 138    /* GTK_WIN_POS_NONE, GTK_WIN_POS_CENTER or GTK_WIN_POS_MOUSE */
 139    /* a lot of people dislike GTK_WIN_POS_MOUSE */
 140   
 141    /* set the initial position (must be done, before show is called!) */
 142  /*  gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_CENTER_ON_PARENT);*/
 143    gtk_window_set_position(GTK_WINDOW(win), GTK_WIN_POS_NONE);
 144   
 145    return win;
Show more  




Change Warning 314.28254 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: