Text   |  XML   |  ReML   |   Visible Warnings:

Dangerous Function Cast  at gui_utils.c:246

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

window_set_cancel

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/gui_utils.c)expand/collapse
Show more  
 236     XXX - there should be a GTK+ widget that'll do that for you, and 
 237     let you specify a "Cancel" button.  It should also not impose
 238     a requirement that there be a separator in the dialog box, as 
 239     the GtkDialog widget does; the visual convention that there's
 240     such a separator between the rest of the dialog boxes and buttons 
 241     such as "OK" and "Cancel" is, for better or worse, not universal
 242     (not even in GTK+ - look at the GtkFileSelection dialog!). */
 243  static void
 244  window_set_cancel(GtkWidget *widget, GtkWidget *cancel_button)
 245  {
 246    g_signal_connect(widget, "key_press_event", G_CALLBACK(window_key_press_cb), cancel_button);
 247  }
 248   
 249   
 250  /* set the actions needed for the cancel "Close"/"Ok"/"Cancel" button that closes the window */
 251  void window_set_cancel_button(GtkWidget *win, GtkWidget *bt, window_cancel_button_fct cb)
 252  {
 253    if(cb)
 254      g_signal_connect(bt, "clicked", G_CALLBACK(cb), win);
 255   
 256    gtk_widget_grab_default(bt);
Show more  




Change Warning 315.28255 : Dangerous Function Cast

Priority:
State:
Finding:
Owner:
Note: