Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Diff of /src/tools.c [db140b] .. [0998f1] Maximize Restore

  Switch to side-by-side view

--- a/src/tools.c
+++ b/src/tools.c
@@ -105,7 +105,7 @@
 	gint argc;
 	gchar **argv;
 
-	if (! NZV(cmd))
+	if (EMPTY(cmd))
 		stock_id = GTK_STOCK_YES;
 	else if (g_shell_parse_argv(cmd, &argc, &argv, &err))
 	{
@@ -264,7 +264,7 @@
 			}
 		} while (rv == G_IO_STATUS_NORMAL || rv == G_IO_STATUS_AGAIN);
 
-		if (NZV(str->str))
+		if (!EMPTY(str->str))
 		{
 			g_warning("%s: %s\n", data->command, str->str);
 			ui_set_statusbar(TRUE,
@@ -583,7 +583,7 @@
 
 		for (i = 0; i < len; i++)
 		{
-			if (! NZV(ui_prefs.custom_commands[i]))
+			if (EMPTY(ui_prefs.custom_commands[i]))
 				continue; /* skip empty fields */
 
 			cc_dialog_add_command(&cc, i, FALSE);
@@ -642,7 +642,7 @@
 				gchar *lbl;
 
 				gtk_tree_model_get(GTK_TREE_MODEL(cc.store), &iter, CC_COLUMN_CMD, &cmd, CC_COLUMN_LABEL, &lbl, -1);
-				if (NZV(cmd))
+				if (!EMPTY(cmd))
 				{
 					cmd_list = g_slist_prepend(cmd_list, cmd);
 					lbl_list = g_slist_prepend(lbl_list, lbl);
@@ -770,9 +770,9 @@
 		{
 			const gchar *label = ui_prefs.custom_commands_labels[i];
 
-			if (! NZV(label))
+			if (EMPTY(label))
 				label = ui_prefs.custom_commands[i];
-			if (NZV(label)) /* skip empty items */
+			if (!EMPTY(label)) /* skip empty items */
 			{
 				cc_insert_custom_command_items(menu_edit, label, ui_prefs.custom_commands[i], idx);
 				idx++;