Text   |  XML   |  ReML   |   Visible Warnings:

Unused Value  at color_edit_dlg.c:553

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

color_sel_ok_cb

(/home/sate/Testcases/c/cve/wireshark-1.2.0/gtk/color_edit_dlg.c)expand/collapse
Show more  
 529  color_sel_ok_cb                        (GtkButton       *button _U_,
 530                                          gpointer         user_data)
 531  {
 532    GdkColor new_color; /* Color from color selection dialog */
 533    GtkWidget *color_dialog;
 534    GtkWidget *parent;
 535    GtkWidget *color_selection_fg, *color_selection_bg;
 536    gboolean is_bg;
 537   
 538    color_dialog = (GtkWidget *)user_data;
 539   
 540    gtk_color_selection_get_current_color(GTK_COLOR_SELECTION(
 541     GTK_COLOR_SELECTION_DIALOG(color_dialog)->colorsel), &new_color);
 542   
 543    if ( ! get_color(&new_color) ){
 544          simple_dialog(ESD_TYPE_ERROR, ESD_BTN_OK,
 545                        "Could not allocate color.  Try again.");
 546    } else {
 547          /* Find the "Edit color filter" dialog box with which this is
 548             associated. */
 549          parent = (GtkWidget *)g_object_get_data(G_OBJECT(color_dialog), COLOR_SELECTION_PARENT);
 550   
 551          /* Find that dialog box's foreground and background color selection 
 552             boxes, if any. */
 553          color_selection_fg = g_object_get_data(G_OBJECT(parent), COLOR_SELECTION_FG);
 554          color_selection_bg = g_object_get_data(G_OBJECT(parent), COLOR_SELECTION_BG);
 555          is_bg = (color_dialog == color_selection_bg);
 556   
 557          color_sel_win_destroy(color_dialog);
 558   
 559          /* now apply the change to the fore/background */
 560          if (is_bg)
 561            gtk_widget_modify_base(filt_name_entry, GTK_STATE_NORMAL, &new_color);
 562          else 
 563            gtk_widget_modify_text(filt_name_entry, GTK_STATE_NORMAL, &new_color);
 564    }
 565  }
Show more  




Change Warning 4026.30578 : Unused Value

Priority:
State:
Finding:
Owner:
Note: