(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/main_statusbar.c) |
| |
| 445 | | | gtk_widget_show(expert_image); |
| 446 | | | expert_info_chat = gtk_event_box_new(); |
| 447 | | | gtk_container_add(GTK_CONTAINER(expert_info_chat), expert_image);
x /usr/include/gtk-2.0/gtk/gtkcontainer.h |
| |
42 | #define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
x /usr/include/gtk-2.0/gtk/gtkcontainer.h |
| |
41 | #define GTK_TYPE_CONTAINER (gtk_container_get_type ()) |
| |
|
| 448 | | | g_signal_connect(expert_info_chat, "button_press_event", G_CALLBACK(expert_comp_dlg_cb), NULL);
x /usr/include/glib-2.0/gobject/gsignal.h |
| |
421 | #define g_signal_connect(instance, detailed_signal, c_handler, data) \ |
422 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) |
| |
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
| 449 | | | |
| 450 | | | expert_image = xpm_to_widget_from_parent(top_level, expert_none_xpm); |
| 451 | | | gtk_tooltips_set_tip(tooltips, expert_image, "No expert info", NULL); |
| 452 | | | gtk_widget_show(expert_image); |
| 453 | | | expert_info_none = gtk_event_box_new(); |
| 454 | | | gtk_container_add(GTK_CONTAINER(expert_info_none), expert_image);
x /usr/include/gtk-2.0/gtk/gtkcontainer.h |
| |
42 | #define GTK_CONTAINER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_CONTAINER, GtkContainer)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
482 | #define G_TYPE_CHECK_INSTANCE_CAST(instance, g_type, c_type) (_G_TYPE_CIC ((instance), (g_type), c_type)) |
| |
x /usr/include/glib-2.0/gobject/gtype.h |
| |
1678 | # define _G_TYPE_CIC(ip, gt, ct) \ |
1679 | ((ct*) g_type_check_instance_cast ((GTypeInstance*) ip, gt)) |
| |
x /usr/include/gtk-2.0/gtk/gtkcontainer.h |
| |
41 | #define GTK_TYPE_CONTAINER (gtk_container_get_type ()) |
| |
|
| 455 | | | g_signal_connect(expert_info_none, "button_press_event", G_CALLBACK(expert_comp_dlg_cb), NULL);
x /usr/include/glib-2.0/gobject/gsignal.h |
| |
421 | #define g_signal_connect(instance, detailed_signal, c_handler, data) \ |
422 | g_signal_connect_data ((instance), (detailed_signal), (c_handler), (data), NULL, (GConnectFlags) 0) |
| |
x /usr/include/glib-2.0/gobject/gclosure.h |
| |
72 | #define G_CALLBACK(f) ((GCallback) (f)) |
| |
|
Dangerous Function Cast
Casting expert_comp_dlg_cb to this new type could lead to unsafe program behavior. - There were previously 2 arguments, now there are 0.
|
|
| 456 | | | gtk_widget_show(expert_info_none); |
| 457 | | | } |
| 458 | | | |
| 459 | | | static void |
| 460 | | | status_expert_hide(void) |
| 461 | | | { |
| 462 | | | |
| 463 | | | gtk_widget_hide(expert_info_error); |
| 464 | | | gtk_widget_hide(expert_info_warn); |
| 465 | | | gtk_widget_hide(expert_info_note); |
| |