diff options
author | Evan Huus <eapache@gmail.com> | 2012-07-22 15:58:36 +0000 |
---|---|---|
committer | Evan Huus <eapache@gmail.com> | 2012-07-22 15:58:36 +0000 |
commit | afec7965987ae02222bfdc6ea1ab3135c48f48da (patch) | |
tree | 16aad8af2c1ff7296d40d03d07ca5dbaf82c29fe /ui | |
parent | 79dd3fc264ee0c71c7e8de86f5bfec393bb00ad2 (diff) |
Two little cleanups from cppcheck:
- unused variable
= don't trust GTK_IS_PROGRESS_BAR to provide the necessary parentheses
svn path=/trunk/; revision=43915
Diffstat (limited to 'ui')
-rw-r--r-- | ui/gtk/main_welcome.c | 4 | ||||
-rw-r--r-- | ui/gtk/rtp_player.c | 2 |
2 files changed, 2 insertions, 4 deletions
diff --git a/ui/gtk/main_welcome.c b/ui/gtk/main_welcome.c index 4317b99934..c1c09df32e 100644 --- a/ui/gtk/main_welcome.c +++ b/ui/gtk/main_welcome.c @@ -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? */ diff --git a/ui/gtk/rtp_player.c b/ui/gtk/rtp_player.c index 4380f4f976..46874ff1fb 100644 --- a/ui/gtk/rtp_player.c +++ b/ui/gtk/rtp_player.c @@ -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 */ |