[snappy] ui: use strcmp() to compare strings when creating window title
- From: Luis de Bethencourt <luisbg src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [snappy] ui: use strcmp() to compare strings when creating window title
- Date: Tue, 26 Mar 2013 17:20:48 +0000 (UTC)
commit 59ecb1e32799992d41aea061c28d384033d3814e
Author: Luis de Bethencourt <luis debethencourt com>
Date: Tue Mar 26 11:44:59 2013 -0400
ui: use strcmp() to compare strings when creating window title
src/user_interface.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/user_interface.c b/src/user_interface.c
index f46f8f2..c42b8cf 100644
--- a/src/user_interface.c
+++ b/src/user_interface.c
@@ -1244,7 +1244,7 @@ interface_start (UserInterface * ui, gchar * uri)
/* Create the window and some child widgets: */
ui->window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
- if (ui->filename != "")
+ if (strcmp(ui->filename, "") != 0)
gtk_window_set_title (GTK_WINDOW (ui->window), ui->filename);
else
gtk_window_set_title (GTK_WINDOW (ui->window), "snappy");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]