Two little cleanups from cppcheck:

- unused variable
= don't trust GTK_IS_PROGRESS_BAR to provide the necessary parentheses

svn path=/trunk/; revision=43915
This commit is contained in:
Evan Huus 2012-07-22 15:58:36 +00:00
parent 79dd3fc264
commit afec796598
2 changed files with 2 additions and 4 deletions

View File

@ -1203,9 +1203,7 @@ welcome_new(void)
GtkWidget *topic_capture_to_fill;
gchar *label_text;
GtkWidget *file_child_box;
#ifdef _WIN32
DWORD chimney_enabled = 0;
#endif
/* prepare colors */
#if 0
/* Allocating color isn't necessary? */

View File

@ -570,7 +570,7 @@ static void
update_progress_bar(gfloat fraction)
{
if GTK_IS_PROGRESS_BAR(progress_bar)
if (GTK_IS_PROGRESS_BAR(progress_bar))
gtk_progress_bar_set_fraction(GTK_PROGRESS_BAR(progress_bar), fraction);
/* Force gtk to redraw the window before starting decoding the packet */