[snappy] ui: use strcmp() to compare strings when creating window title



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]